vue-editify 0.2.17 → 0.2.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/examples/App.vue +4 -12
  2. package/lib/components/colors/colors.vue.d.ts +9 -0
  3. package/lib/components/colors/props.d.ts +4 -0
  4. package/lib/components/tooltip/tooltip.vue.d.ts +1 -1
  5. package/lib/core/function.d.ts +112 -64
  6. package/lib/core/rule.d.ts +23 -17
  7. package/lib/core/shortcut.d.ts +36 -0
  8. package/lib/core/tool.d.ts +12 -16
  9. package/lib/editify/editify.vue.d.ts +162 -15
  10. package/lib/editify/props.d.ts +1 -5
  11. package/lib/editify/toolbar/props.d.ts +1 -1
  12. package/lib/editify/toolbar/toolbar.vue.d.ts +3 -3
  13. package/lib/editify.es.js +13660 -12954
  14. package/lib/editify.umd.js +2 -2
  15. package/lib/feature/align.d.ts +0 -14
  16. package/lib/feature/heading.d.ts +0 -14
  17. package/lib/feature/lineHeight.d.ts +0 -14
  18. package/lib/feature/orderList.d.ts +1 -3
  19. package/lib/feature/task.d.ts +0 -14
  20. package/lib/feature/unorderList.d.ts +1 -3
  21. package/lib/index.d.ts +164 -17
  22. package/package.json +2 -2
  23. package/src/components/button/button.vue +3 -3
  24. package/src/components/checkbox/checkbox.vue +1 -1
  25. package/src/components/colors/colors.vue +4 -4
  26. package/src/components/colors/props.ts +6 -1
  27. package/src/components/insertAttachment/insertAttachment.vue +1 -1
  28. package/src/components/insertImage/insertImage.vue +1 -1
  29. package/src/components/insertLink/insertLink.vue +1 -1
  30. package/src/components/insertVideo/insertVideo.vue +1 -1
  31. package/src/components/layer/layer.vue +9 -3
  32. package/src/components/tooltip/tooltip.vue +1 -1
  33. package/src/components/updateLink/updateLink.vue +1 -1
  34. package/src/core/function.ts +873 -491
  35. package/src/core/rule.ts +86 -368
  36. package/src/core/shortcut.ts +386 -0
  37. package/src/core/tool.ts +111 -159
  38. package/src/css/var.less +0 -10
  39. package/src/editify/editify.less +85 -39
  40. package/src/editify/editify.vue +204 -88
  41. package/src/editify/menu/menu.vue +2 -3
  42. package/src/editify/props.ts +1 -6
  43. package/src/editify/toolbar/props.ts +2 -2
  44. package/src/editify/toolbar/toolbar.vue +12 -12
  45. package/src/feature/align.ts +2 -62
  46. package/src/feature/attachment.ts +14 -27
  47. package/src/feature/backColor.ts +2 -1
  48. package/src/feature/bold.ts +1 -1
  49. package/src/feature/code.ts +1 -1
  50. package/src/feature/codeBlock.ts +3 -3
  51. package/src/feature/fontFamily.ts +1 -1
  52. package/src/feature/fontSize.ts +1 -1
  53. package/src/feature/foreColor.ts +2 -1
  54. package/src/feature/formatClear.ts +1 -1
  55. package/src/feature/fullScreen.ts +1 -1
  56. package/src/feature/heading.ts +5 -76
  57. package/src/feature/image.ts +1 -1
  58. package/src/feature/indent.ts +1 -1
  59. package/src/feature/infoBlock.ts +6 -37
  60. package/src/feature/italic.ts +1 -1
  61. package/src/feature/lineHeight.ts +2 -78
  62. package/src/feature/link.ts +1 -1
  63. package/src/feature/mathformula.ts +4 -51
  64. package/src/feature/orderList.ts +168 -37
  65. package/src/feature/quote.ts +3 -3
  66. package/src/feature/redo.ts +1 -1
  67. package/src/feature/separator.ts +1 -1
  68. package/src/feature/sourceView.ts +1 -1
  69. package/src/feature/strikethrough.ts +1 -1
  70. package/src/feature/sub.ts +1 -1
  71. package/src/feature/super.ts +1 -1
  72. package/src/feature/table.ts +3 -3
  73. package/src/feature/task.ts +4 -58
  74. package/src/feature/underline.ts +1 -1
  75. package/src/feature/undo.ts +1 -1
  76. package/src/feature/unorderList.ts +108 -37
  77. package/src/feature/video.ts +1 -1
  78. package/src/icon/iconfont.css +39 -3
  79. package/src/icon/iconfont.ttf +0 -0
  80. package/src/icon/iconfont.woff +0 -0
  81. package/src/index.ts +13 -11
  82. package/src/locale/en_US.ts +109 -110
  83. package/src/locale/zh_CN.ts +11 -12
  84. package/lib/feature/panel.d.ts +0 -18
  85. package/src/feature/panel.ts +0 -107
@@ -1,7 +1,7 @@
1
- import { defineComponent, h, inject, PropType, Ref, ref } from 'vue'
2
- import { AlexElementsRangeType, AlexEditor } from 'alex-editor'
1
+ import { computed, defineComponent, h, inject, PropType, Ref } from 'vue'
2
+ import { AlexElementsRangeType, AlexEditor, AlexElement } from 'alex-editor'
3
3
  import { MenuButtonType } from '@/core/tool'
4
- import { hasPanelInRange, hasPreInRange, hasTableInRange, rangeIsInList, setList } from '@/core/function'
4
+ import { elementIsList, getMatchElementByRange, hasPreInRange, hasTableInRange, rangeIsInList, setList } from '@/core/function'
5
5
  import { Button } from '@/components/button'
6
6
  import { Icon } from '@/components/icon'
7
7
 
@@ -10,47 +10,119 @@ import { Icon } from '@/components/icon'
10
10
  */
11
11
  const FEATURE_NAME = 'unorderList'
12
12
 
13
+ type orderType = 'disc' | 'circle' | 'square'
14
+
13
15
  /**
14
16
  * 工具栏 - 无序列表
15
17
  */
16
- export const UnorderListToolbarButton = defineComponent(
17
- (props, { expose }) => {
18
+ export const UnorderListToolbar = defineComponent(
19
+ props => {
18
20
  const editor = inject<Ref<AlexEditor>>('editor')!
19
21
  const dataRangeCaches = inject<Ref<AlexElementsRangeType>>('dataRangeCaches')!
20
22
  const $editTrans = inject<(key: string) => any>('$editTrans')!
21
23
 
22
- const btnRef = ref<InstanceType<typeof Button> | null>(null)
23
-
24
- expose({
25
- btnRef
24
+ const active = computed<(val: orderType) => boolean>(() => {
25
+ return val => {
26
+ const el = getMatchElementByRange(editor.value, dataRangeCaches.value, {
27
+ parsedom: 'div',
28
+ marks: {
29
+ 'data-editify-list': 'ul'
30
+ }
31
+ })
32
+ if (el && el.marks!['data-editify-list-style']) {
33
+ return el.marks!['data-editify-list-style'] == val
34
+ }
35
+ return val == 'disc'
36
+ }
26
37
  })
27
38
 
39
+ //设置前面列表的序标样式
40
+ const setPreviouseListStyle = (element: AlexElement, val: orderType) => {
41
+ element.marks!['data-editify-list-style'] = val
42
+ const previousElement = editor.value.getPreviousElement(element)
43
+ if (previousElement && elementIsList(previousElement, false)) {
44
+ setPreviouseListStyle(previousElement, val)
45
+ }
46
+ }
47
+
48
+ //设置后面列表的序标样式
49
+ const setNextListStyle = (element: AlexElement, val: orderType) => {
50
+ element.marks!['data-editify-list-style'] = val
51
+ const nextElement = editor.value.getNextElement(element)
52
+ if (nextElement && elementIsList(nextElement, false)) {
53
+ setNextListStyle(nextElement, val)
54
+ }
55
+ }
56
+
57
+ //设置列表序标样式
58
+ const setListStyle = (val: orderType) => {
59
+ const el = getMatchElementByRange(editor.value, dataRangeCaches.value, {
60
+ parsedom: 'div',
61
+ marks: {
62
+ 'data-editify-list': 'ul'
63
+ }
64
+ })!
65
+ el.marks!['data-editify-list-style'] = val
66
+ const previousElement = editor.value.getPreviousElement(el)
67
+ const nextElement = editor.value.getNextElement(el)
68
+ if (previousElement && elementIsList(previousElement, false)) {
69
+ setPreviouseListStyle(previousElement, val)
70
+ }
71
+ if (nextElement && elementIsList(nextElement, false)) {
72
+ setNextListStyle(nextElement, val)
73
+ }
74
+ editor.value.domRender()
75
+ editor.value.rangeRender()
76
+ }
77
+
28
78
  return () => {
29
- return props.config.show
30
- ? h(
31
- Button,
32
- {
33
- ref: btnRef,
34
- name: FEATURE_NAME,
35
- title: $editTrans('unorderList'),
36
- tooltip: props.tooltip,
37
- color: props.color,
38
- zIndex: props.zIndex,
39
- leftBorder: props.config.leftBorder,
40
- rightBorder: props.config.rightBorder,
41
- active: rangeIsInList(editor.value, dataRangeCaches.value, false),
42
- disabled: props.config.disabled,
43
- onOperate: () => {
44
- setList(editor.value, dataRangeCaches.value, false)
45
- editor.value.domRender()
46
- editor.value.rangeRender()
47
- }
48
- },
49
- {
50
- default: () => h(Icon, { value: 'list-unordered' })
51
- }
52
- )
53
- : null
79
+ return [
80
+ h(
81
+ Button,
82
+ {
83
+ name: 'disc',
84
+ title: $editTrans('disc'),
85
+ tooltip: props.tooltip,
86
+ color: props.color,
87
+ zIndex: props.zIndex,
88
+ active: active.value('disc'),
89
+ onOperate: () => setListStyle('disc')
90
+ },
91
+ {
92
+ default: () => h(Icon, { value: 'list-disc', style: { fontSize: '18px' } })
93
+ }
94
+ ),
95
+ h(
96
+ Button,
97
+ {
98
+ name: 'circle',
99
+ title: $editTrans('circle'),
100
+ tooltip: props.tooltip,
101
+ color: props.color,
102
+ zIndex: props.zIndex,
103
+ active: active.value('circle'),
104
+ onOperate: () => setListStyle('circle')
105
+ },
106
+ {
107
+ default: () => h(Icon, { value: 'list-circle', style: { fontSize: '18px' } })
108
+ }
109
+ ),
110
+ h(
111
+ Button,
112
+ {
113
+ name: 'square',
114
+ title: $editTrans('square'),
115
+ tooltip: props.tooltip,
116
+ color: props.color,
117
+ zIndex: props.zIndex,
118
+ active: active.value('square'),
119
+ onOperate: () => setListStyle('square')
120
+ },
121
+ {
122
+ default: () => h(Icon, { value: 'list-square', style: { fontSize: '18px' } })
123
+ }
124
+ )
125
+ ]
54
126
  }
55
127
  },
56
128
  {
@@ -58,7 +130,6 @@ export const UnorderListToolbarButton = defineComponent(
58
130
  props: {
59
131
  color: String,
60
132
  zIndex: Number,
61
- config: Object as PropType<MenuButtonType>,
62
133
  tooltip: Boolean
63
134
  }
64
135
  }
@@ -83,11 +154,11 @@ export const UnorderListMenuButton = defineComponent(
83
154
  tooltip: props.tooltip,
84
155
  color: props.color,
85
156
  zIndex: props.zIndex,
86
- title: $editTrans('unorderList'),
157
+ title: `${$editTrans('unorderList')}${props.config.shortcut?.title ? `【${props.config.shortcut?.title}】` : ''}`,
87
158
  leftBorder: props.config.leftBorder,
88
159
  rightBorder: props.config.rightBorder,
89
160
  active: rangeIsInList(editor.value, dataRangeCaches.value, false),
90
- disabled: props.disabled || isSourceView.value || hasPreInRange(editor.value, dataRangeCaches.value) || hasTableInRange(editor.value, dataRangeCaches.value) || hasPanelInRange(editor.value, dataRangeCaches.value) || props.config.disabled,
161
+ disabled: props.disabled || isSourceView.value || hasPreInRange(editor.value, dataRangeCaches.value) || hasTableInRange(editor.value, dataRangeCaches.value) || props.config.disabled,
91
162
  onOperate: () => {
92
163
  setList(editor.value, dataRangeCaches.value, false)
93
164
  editor.value.domRender()
@@ -278,7 +278,7 @@ export const VideoMenuButton = defineComponent(
278
278
  zIndex: props.zIndex,
279
279
  type: 'select',
280
280
  hideScroll: true,
281
- title: $editTrans('insertImage'),
281
+ title: `${$editTrans('insertVideo')}${props.config.shortcut?.title ? `【${props.config.shortcut?.title}】` : ''}`,
282
282
  leftBorder: props.config.leftBorder,
283
283
  rightBorder: props.config.rightBorder,
284
284
  active: false,
@@ -1,9 +1,45 @@
1
1
  .editify-icon-info:before {
2
- content: '\e610';
2
+ content: '\e600';
3
3
  }
4
4
 
5
- .editify-icon-panel:before {
6
- content: '\e6c0';
5
+ .editify-icon-list-square:before {
6
+ content: '\e659';
7
+ }
8
+
9
+ .editify-icon-list-circle:before {
10
+ content: '\e65a';
11
+ }
12
+
13
+ .editify-icon-list-disc:before {
14
+ content: '\e65b';
15
+ }
16
+
17
+ .editify-icon-list-cjk-ideographic:before {
18
+ content: '\e658';
19
+ }
20
+
21
+ .editify-icon-list-lower-roman:before {
22
+ content: '\e653';
23
+ }
24
+
25
+ .editify-icon-list-lower-greek:before {
26
+ content: '\e654';
27
+ }
28
+
29
+ .editify-icon-list-upper-roman:before {
30
+ content: '\e655';
31
+ }
32
+
33
+ .editify-icon-list-decimal:before {
34
+ content: '\e656';
35
+ }
36
+
37
+ .editify-icon-list-lower-alpha:before {
38
+ content: '\e657';
39
+ }
40
+
41
+ .editify-icon-list-upper-alpha:before {
42
+ content: '\e651';
7
43
  }
8
44
 
9
45
  .editify-icon-merge-cells-up:before {
Binary file
Binary file
package/src/index.ts CHANGED
@@ -57,40 +57,42 @@ export {
57
57
  elementIsMathformula,
58
58
  getMathformulaByElement,
59
59
  hasMathformulaInRange,
60
- elementIsPanel,
61
- getPanelByElement,
62
- hasPanelInRange,
63
60
  elementIsInfoBlock,
64
61
  getInfoBlockByElement,
65
62
  hasInfoBlockInRange,
66
63
  rangeIsInInfoBlock,
67
64
  hasPreInRange,
65
+ hasTableInRange,
68
66
  hasQuoteInRange,
67
+ rangeIsInQuote,
69
68
  hasLinkInRange,
70
- hasTableInRange,
71
69
  hasImageInRange,
72
70
  hasVideoInRange,
73
- rangeIsInQuote,
74
71
  queryTextStyle,
72
+ setTextStyle,
73
+ removeTextStyle,
75
74
  queryTextMark,
75
+ setTextMark,
76
+ removeTextMark,
76
77
  getRangeText,
78
+ addSpaceTextToBothSides,
79
+ setHeading,
77
80
  setIndentIncrease,
78
81
  setIndentDecrease,
79
82
  setQuote,
80
83
  setAlign,
81
84
  setList,
82
85
  setTask,
83
- setTextStyle,
84
- setTextMark,
85
- removeTextStyle,
86
- removeTextMark,
87
86
  setLineHeight,
88
87
  insertLink,
89
88
  insertImage,
90
89
  insertVideo,
91
90
  insertTable,
92
91
  insertCodeBlock,
93
- insertSeparator
92
+ insertSeparator,
93
+ insertAttachment,
94
+ insertMathformula,
95
+ insertInfoBlock
94
96
  } from '@/core/function'
95
97
 
96
98
  //安装函数
@@ -98,7 +100,7 @@ const install = (app: App) => {
98
100
  app.component(Editify.name!, Editify)
99
101
  }
100
102
  //版本号
101
- const version = '0.2.17'
103
+ const version = '0.2.19'
102
104
 
103
105
  //导出组件和安装函数
104
106
  export { Editify as default, Editify, install, AlexElement, version }
@@ -1,116 +1,115 @@
1
1
  import { ObjectType } from '@/core/tool'
2
2
 
3
3
  export const en_US: ObjectType = {
4
- textWrapUp: 'Up feed',
5
- textWrapDown: 'Down feed',
6
- insertRowTop: 'Insert row forward',
7
- insertRowBottom: 'Insert row backward',
8
- insertColumnLeft: 'Insert column forward',
9
- insertColumnRight: 'Insert column backward',
10
- deleteRow: 'Delete rows',
11
- deleteColumn: 'Delete column',
12
- mergeCellsLeft: 'Merge cells to the left',
13
- mergeCellsRight: 'Merge cells to the right',
14
- mergeCellsUp: 'Merge cells up',
15
- mergeCellsDown: 'Merge cells down',
16
- deleteTable: 'Delete table',
17
- selectLanguages: 'Select language',
18
- autoRecognize: 'Auto',
19
- linkAddress: 'Link address',
20
- newWindowOpen: 'Open in new window',
21
- removeLink: 'Remove',
22
- viewLink: 'View',
23
- linkUrlEnterPlaceholder: 'Please enter the link address',
24
- linkTextEnterPlaceholder: 'Please enter the link text',
25
- width30: 'Set the width to 30%',
26
- width50: 'Set the width to 50%',
27
- width100: 'Set the width to 100%',
28
- deleteImage: 'Delete image',
29
- autoplay: 'Autoplay',
30
- disabledAutoplay: 'Turn off autoplay',
31
- loop: 'Loop',
32
- disabledLoop: 'Close loop',
33
- muted: 'Mute',
34
- unmuted: 'Unmute',
35
- controls: 'Play control',
36
- deleteVideo: 'Delete video',
37
- heading: 'Heading',
38
- bold: 'Bold',
39
- h1: 'Heading 1',
40
- h2: 'Heading 2',
41
- h3: 'Heading 3',
42
- h4: 'Heading 4',
43
- h5: 'Heading 5',
44
- h6: 'Heading 6',
45
- text: 'Paragraph',
46
- italic: 'Italic',
47
- orderList: 'Ordered list',
48
- unorderList: 'Unordered list',
49
- strikethrough: 'Strikethrough',
50
- underline: 'Underline',
51
- code: 'Inline code',
52
- super: 'Superscript',
53
- sub: 'Subscript',
54
- fontSize: 'Font size',
55
- fontFamily: 'Font family',
56
- defaultFontFamily: 'Default',
57
- foreColor: 'Forecolor',
58
- defaultColor: 'Default color',
59
- backColor: 'Backcolor',
60
- formatClear: 'Clear format',
61
- defaultSize: 'Default',
62
- totalWordCount: 'Total word count: ',
63
- align: 'Alignment mode',
64
- undo: 'Undo',
65
- redo: 'Redo',
66
- quote: 'Quote',
67
- separator: 'Separator',
68
- lineHeight: 'Line height',
69
- indent: 'Indent',
70
- insertLink: 'Insert Link',
71
- insertImage: 'Insert Image',
72
- remoteImage: 'Remote',
73
- uploadImage: 'Upload',
74
- imageUrlPlaceholder: 'Please enter the image address',
75
- insert: 'Insert',
76
- insertVideo: 'Insert Video',
77
- remoteVideo: 'Remote',
78
- uploadVideo: 'Upload',
79
- videoUrlPlaceholder: 'Please enter the video address',
80
- insertTable: 'Insert table',
81
- inserCodeBlock: 'Insert code block',
82
- sourceView: 'Code view',
83
- task: 'Task',
84
- indentIncrease: 'Increase indent',
85
- indentDecrease: 'Reduce indent',
86
- alignLeft: 'Align left',
87
- alignCenter: 'Align center',
88
- alignRight: 'Align right',
89
- alignJustify: 'Align justify',
90
- defaultLineHeight: 'Default',
4
+ textWrapUp: 'up feed',
5
+ textWrapDown: 'down feed',
6
+ insertRowTop: 'insert row forward',
7
+ insertRowBottom: 'insert row backward',
8
+ insertColumnLeft: 'insert column forward',
9
+ insertColumnRight: 'insert column backward',
10
+ deleteRow: 'delete rows',
11
+ deleteColumn: 'delete column',
12
+ mergeCellsLeft: 'merge cells to the left',
13
+ mergeCellsRight: 'merge cells to the right',
14
+ mergeCellsUp: 'merge cells up',
15
+ mergeCellsDown: 'merge cells down',
16
+ deleteTable: 'delete table',
17
+ selectLanguages: 'select language',
18
+ autoRecognize: 'auto',
19
+ linkAddress: 'link address',
20
+ newWindowOpen: 'open in new window',
21
+ removeLink: 'remove',
22
+ viewLink: 'view',
23
+ linkUrlEnterPlaceholder: 'please enter the link address',
24
+ linkTextEnterPlaceholder: 'please enter the link text',
25
+ width30: 'set the width to 30%',
26
+ width50: 'set the width to 50%',
27
+ width100: 'set the width to 100%',
28
+ deleteImage: 'delete image',
29
+ autoplay: 'autoplay',
30
+ disabledAutoplay: 'turn off autoplay',
31
+ loop: 'loop',
32
+ disabledLoop: 'close loop',
33
+ muted: 'mute',
34
+ unmuted: 'unmute',
35
+ controls: 'play control',
36
+ deleteVideo: 'delete video',
37
+ heading: 'heading',
38
+ bold: 'bold',
39
+ h1: 'heading 1',
40
+ h2: 'heading 2',
41
+ h3: 'heading 3',
42
+ h4: 'heading 4',
43
+ h5: 'heading 5',
44
+ h6: 'heading 6',
45
+ text: 'paragraph',
46
+ italic: 'italic',
47
+ orderList: 'ordered list',
48
+ unorderList: 'unordered list',
49
+ strikethrough: 'strikethrough',
50
+ underline: 'underline',
51
+ code: 'inline code',
52
+ super: 'superscript',
53
+ sub: 'subscript',
54
+ fontSize: 'font size',
55
+ fontFamily: 'font family',
56
+ defaultFontFamily: 'default',
57
+ foreColor: 'forecolor',
58
+ defaultColor: 'default color',
59
+ backColor: 'backcolor',
60
+ formatClear: 'clear format',
61
+ defaultSize: 'default',
62
+ totalWordCount: 'total word count: ',
63
+ align: 'alignment mode',
64
+ undo: 'undo',
65
+ redo: 'redo',
66
+ quote: 'quote',
67
+ separator: 'separator',
68
+ lineHeight: 'line height',
69
+ indent: 'indent',
70
+ insertLink: 'insert Link',
71
+ insertImage: 'insert Image',
72
+ remoteImage: 'remote',
73
+ uploadImage: 'upload',
74
+ imageUrlPlaceholder: 'please enter the image address',
75
+ insert: 'insert',
76
+ insertVideo: 'insert Video',
77
+ remoteVideo: 'remote',
78
+ uploadVideo: 'upload',
79
+ videoUrlPlaceholder: 'please enter the video address',
80
+ insertTable: 'insert table',
81
+ inserCodeBlock: 'insert code block',
82
+ sourceView: 'code view',
83
+ task: 'task',
84
+ indentIncrease: 'increase indent',
85
+ indentDecrease: 'reduce indent',
86
+ alignLeft: 'align left',
87
+ alignCenter: 'align center',
88
+ alignRight: 'align right',
89
+ alignJustify: 'align justify',
90
+ defaultLineHeight: 'default',
91
91
  auto: 'auto',
92
- fullScreen: 'Full screen',
93
- confirm: 'Confirm',
94
-
95
- //插件语言配置
96
- insertAttachment: 'Insert attachment',
97
- uploadAttachment: 'Upload',
98
- remoteAttachment: 'Remote',
99
- attachmentNamePlaceholder: 'Please enter the attachment name',
100
- attachmentUrlPlaceholder: 'Please enter the attachment address',
101
- attachmentDownloadTitle: 'Click to download attachment',
92
+ fullScreen: 'full screen',
93
+ confirm: 'confirm',
94
+ insertAttachment: 'insert attachment',
95
+ uploadAttachment: 'upload',
96
+ remoteAttachment: 'remote',
97
+ attachmentNamePlaceholder: 'please enter the attachment name',
98
+ attachmentUrlPlaceholder: 'please enter the attachment address',
99
+ attachmentDownloadTitle: 'click to download attachment',
102
100
  attachmentDefaultName: 'attachment',
103
-
104
- //数学公式插件语言配置
105
- insertMathformula: 'Insert mathematical formula',
106
- editMathformula: 'Edit mathematical formula',
107
- mathformulaPlaceholder: 'Please enter LaTex syntax',
108
-
109
- //面板插件语言配置
110
- insertPanel: 'Insert Panel',
111
- panelTitle: 'Here is the title',
112
- panelContent: 'Here is the content',
113
-
114
- //信息插件语言配置
115
- insertInfoBlock: 'Insert Information Block'
101
+ insertMathformula: 'insert mathematical formula',
102
+ editMathformula: 'edit mathematical formula',
103
+ mathformulaPlaceholder: 'please enter latex syntax',
104
+ insertInfoBlock: 'insert Information Block',
105
+ decimal: 'decimal',
106
+ lowerRoman: 'lower roman',
107
+ upperRoman: 'upper roman',
108
+ lowerAlpha: 'lower alpha',
109
+ upperAlpha: 'upper alpha',
110
+ lowerGreek: 'lower greek',
111
+ cjkIdeographic: 'cjk ideographic',
112
+ disc: 'disc',
113
+ circle: 'circle',
114
+ square: 'square'
116
115
  }
@@ -91,8 +91,6 @@ export const zh_CN: ObjectType = {
91
91
  auto: '自适应',
92
92
  fullScreen: '全屏',
93
93
  confirm: '确定',
94
-
95
- //附件插件语言配置
96
94
  insertAttachment: '插入附件',
97
95
  uploadAttachment: '上传附件',
98
96
  remoteAttachment: '远程地址',
@@ -100,17 +98,18 @@ export const zh_CN: ObjectType = {
100
98
  attachmentUrlPlaceholder: '请输入附件地址',
101
99
  attachmentDownloadTitle: '点击下载附件',
102
100
  attachmentDefaultName: '附件',
103
-
104
- //数学公式插件语言配置
105
101
  insertMathformula: '插入数学公式',
106
102
  editMathformula: '编辑数学公式',
107
103
  mathformulaPlaceholder: '请输入LaTex语法',
108
-
109
- //面板插件语言配置
110
- insertPanel: '插入面板',
111
- panelTitle: '这里是标题',
112
- panelContent: '这里是内容',
113
-
114
- //信息插件语言配置
115
- insertInfoBlock: '插入信息块'
104
+ insertInfoBlock: '插入信息块',
105
+ decimal: '默认数字',
106
+ lowerRoman: '小写罗马数字',
107
+ upperRoman: '大写罗马数字',
108
+ lowerAlpha: '小写英文字母',
109
+ upperAlpha: '大写英文字母',
110
+ lowerGreek: '小写希腊字母',
111
+ cjkIdeographic: '表意数字',
112
+ disc: '实心圆',
113
+ circle: '空心圆',
114
+ square: '实心方块'
116
115
  }
@@ -1,18 +0,0 @@
1
- import { MenuButtonType } from '../core/tool';
2
-
3
- /**
4
- * 菜单栏 - 插入面板
5
- */
6
- export declare const PanelMenuButton: import('vue').DefineSetupFnComponent<{
7
- color: string;
8
- zIndex: number;
9
- config: MenuButtonType;
10
- tooltip: boolean;
11
- disabled: boolean;
12
- }, {}, {}, {
13
- color: string;
14
- zIndex: number;
15
- config: MenuButtonType;
16
- tooltip: boolean;
17
- disabled: boolean;
18
- } & {}, import('vue').PublicProps>;