@srcker/editor-vue-next 1.0.4 → 1.0.5

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 (104) hide show
  1. package/dist/rich-editor.es.js +21256 -0
  2. package/dist/style/index.css +1 -0
  3. package/dist/style/style.css +1 -0
  4. package/dist/style/variables.css +1 -0
  5. package/dist/style.es.js +1 -0
  6. package/dist/variables.es.js +1 -0
  7. package/package.json +7 -1
  8. package/.vscode/extensions.json +0 -3
  9. package/index.html +0 -13
  10. package/index.ts +0 -6
  11. package/jsconfig.json +0 -8
  12. package/src/App.vue +0 -9
  13. package/src/App.vue.js +0 -17
  14. package/src/Button/BackgroundButton.vue +0 -331
  15. package/src/Button/BackgroundButton.vue.js +0 -243
  16. package/src/Button/BlockQuoteButton.vue +0 -26
  17. package/src/Button/BlockQuoteButton.vue.js +0 -56
  18. package/src/Button/BoldButton.vue +0 -29
  19. package/src/Button/BoldButton.vue.js +0 -56
  20. package/src/Button/BulletListButton.vue +0 -114
  21. package/src/Button/BulletListButton.vue.js +0 -147
  22. package/src/Button/CodeBlockButton.vue +0 -28
  23. package/src/Button/CodeBlockButton.vue.js +0 -56
  24. package/src/Button/CodeButton.vue +0 -30
  25. package/src/Button/CodeButton.vue.js +0 -56
  26. package/src/Button/FontSizeButton.vue +0 -85
  27. package/src/Button/FontSizeButton.vue.js +0 -131
  28. package/src/Button/FormatButton.vue +0 -25
  29. package/src/Button/FormatButton.vue.js +0 -54
  30. package/src/Button/HeadingButton.vue +0 -103
  31. package/src/Button/HeadingButton.vue.js +0 -164
  32. package/src/Button/ImageUploadButton.vue +0 -93
  33. package/src/Button/ImageUploadButton.vue.js +0 -123
  34. package/src/Button/IndentLeftButton.vue +0 -25
  35. package/src/Button/IndentLeftButton.vue.js +0 -54
  36. package/src/Button/IndentRightButton.vue +0 -29
  37. package/src/Button/IndentRightButton.vue.js +0 -54
  38. package/src/Button/ItalicButton.vue +0 -29
  39. package/src/Button/ItalicButton.vue.js +0 -56
  40. package/src/Button/LineHeightButton.vue +0 -88
  41. package/src/Button/LineHeightButton.vue.js +0 -131
  42. package/src/Button/LinkButton.vue +0 -44
  43. package/src/Button/LinkButton.vue.js +0 -69
  44. package/src/Button/OrderedListButton.vue +0 -121
  45. package/src/Button/OrderedListButton.vue.js +0 -146
  46. package/src/Button/RedoButton.vue +0 -29
  47. package/src/Button/RedoButton.vue.js +0 -55
  48. package/src/Button/StrikeButton.vue +0 -30
  49. package/src/Button/StrikeButton.vue.js +0 -56
  50. package/src/Button/SubscriptButton.vue +0 -29
  51. package/src/Button/SubscriptButton.vue.js +0 -56
  52. package/src/Button/SuperscriptButton.vue +0 -29
  53. package/src/Button/SuperscriptButton.vue.js +0 -56
  54. package/src/Button/TextAlignCenterButton.vue +0 -26
  55. package/src/Button/TextAlignCenterButton.vue.js +0 -56
  56. package/src/Button/TextAlignLeftButton.vue +0 -26
  57. package/src/Button/TextAlignLeftButton.vue.js +0 -56
  58. package/src/Button/TextAlignRightButton.vue +0 -26
  59. package/src/Button/TextAlignRightButton.vue.js +0 -56
  60. package/src/Button/TextColorButton.vue +0 -329
  61. package/src/Button/TextColorButton.vue.js +0 -243
  62. package/src/Button/ThemeButton.vue +0 -34
  63. package/src/Button/ThemeButton.vue.js +0 -63
  64. package/src/Button/UnderLineButton.vue +0 -29
  65. package/src/Button/UnderLineButton.vue.js +0 -56
  66. package/src/Button/UndoButton.vue +0 -29
  67. package/src/Button/UndoButton.vue.js +0 -55
  68. package/src/Components/IconArrow.vue +0 -16
  69. package/src/Components/IconArrow.vue.js +0 -30
  70. package/src/Components/IconCheck.vue +0 -40
  71. package/src/Components/IconCheck.vue.js +0 -59
  72. package/src/EditorToolbar.vue +0 -150
  73. package/src/EditorToolbar.vue.js +0 -306
  74. package/src/Extensions/BulletListStyle.js +0 -19
  75. package/src/Extensions/BulletListStyle.ts +0 -24
  76. package/src/Extensions/FontSize.js +0 -27
  77. package/src/Extensions/FontSize.ts +0 -37
  78. package/src/Extensions/Indent.js +0 -58
  79. package/src/Extensions/Indent.ts +0 -73
  80. package/src/Extensions/OrderedListStyle.js +0 -19
  81. package/src/Extensions/OrderedListStyle.ts +0 -24
  82. package/src/Extensions/UploadImage.js +0 -18
  83. package/src/Extensions/UploadImage.ts +0 -22
  84. package/src/Extensions/index.js +0 -6
  85. package/src/Extensions/index.ts +0 -6
  86. package/src/Extensions/shims.d.ts +0 -26
  87. package/src/RichEditor.vue +0 -198
  88. package/src/RichEditor.vue.js +0 -204
  89. package/src/env.d.ts +0 -7
  90. package/src/index.js +0 -5
  91. package/src/index.ts +0 -10
  92. package/src/main.js +0 -4
  93. package/src/main.ts +0 -7
  94. package/src/styles/index.js +0 -3
  95. package/src/styles/index.ts +0 -3
  96. package/src/styles/style.scss +0 -196
  97. package/src/styles/theme.css +0 -27
  98. package/src/styles/variables.js +0 -1
  99. package/src/styles/variables.scss +0 -175
  100. package/src/styles/variables.ts +0 -1
  101. package/src/types.js +0 -1
  102. package/src/types.ts +0 -7
  103. package/tsconfig.json +0 -17
  104. package/vite.config.ts +0 -35
@@ -1,30 +0,0 @@
1
- <template>
2
- <button
3
- class="icon-button"
4
- :class="{ 'active': editor.isActive('strike') }"
5
- @click="editor.chain().focus().toggleStrike().run()" >
6
-
7
- <div class="icon">
8
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
9
- <path fill="currentColor" stroke="currentColor" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" d="M96 157.5C96 88.2 152.2 32 221.5 32L368 32c17.7 0 32 14.3 32 32s-14.3 32-32 32L221.5 96c-34 0-61.5 27.5-61.5 61.5 0 31 23.1 57.2 53.9 61l44.1 5.5 222 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l83.1 0C103 204.6 96 181.8 96 157.5zM349.2 336l65.5 0c.9 6.1 1.4 12.2 1.4 18.5 0 69.3-56.2 125.5-125.5 125.5L144 480c-17.7 0-32-14.3-32-32s14.3-32 32-32l146.5 0c34 0 61.5-27.5 61.5-61.5 0-6.4-1-12.7-2.8-18.5z"/>
10
- </svg>
11
- </div>
12
-
13
- <div class="tips">删除线</div>
14
- </button>
15
- </template>
16
-
17
-
18
- <script setup>
19
- const props = defineProps({
20
- editor: {
21
- type: Object,
22
- required: true
23
- }
24
- })
25
-
26
-
27
-
28
- </script>
29
-
30
-
@@ -1,56 +0,0 @@
1
- const props = defineProps({
2
- editor: {
3
- type: Object,
4
- required: true
5
- }
6
- });
7
- const __VLS_ctx = {
8
- ...{},
9
- ...{},
10
- ...{},
11
- };
12
- let __VLS_components;
13
- let __VLS_intrinsics;
14
- let __VLS_directives;
15
- __VLS_asFunctionalElement1(__VLS_intrinsics.button, __VLS_intrinsics.button)({
16
- ...{ onClick: (...[$event]) => {
17
- __VLS_ctx.editor.chain().focus().toggleStrike().run();
18
- // @ts-ignore
19
- [editor,];
20
- } },
21
- ...{ class: "icon-button" },
22
- ...{ class: ({ 'active': __VLS_ctx.editor.isActive('strike') }) },
23
- });
24
- /** @type {__VLS_StyleScopedClasses['icon-button']} */ ;
25
- /** @type {__VLS_StyleScopedClasses['active']} */ ;
26
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)({
27
- ...{ class: "icon" },
28
- });
29
- /** @type {__VLS_StyleScopedClasses['icon']} */ ;
30
- __VLS_asFunctionalElement1(__VLS_intrinsics.svg, __VLS_intrinsics.svg)({
31
- xmlns: "http://www.w3.org/2000/svg",
32
- viewBox: "0 0 512 512",
33
- });
34
- __VLS_asFunctionalElement1(__VLS_intrinsics.path)({
35
- fill: "currentColor",
36
- stroke: "currentColor",
37
- 'stroke-width': "4",
38
- 'stroke-linecap': "round",
39
- 'stroke-linejoin': "round",
40
- d: "M96 157.5C96 88.2 152.2 32 221.5 32L368 32c17.7 0 32 14.3 32 32s-14.3 32-32 32L221.5 96c-34 0-61.5 27.5-61.5 61.5 0 31 23.1 57.2 53.9 61l44.1 5.5 222 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l83.1 0C103 204.6 96 181.8 96 157.5zM349.2 336l65.5 0c.9 6.1 1.4 12.2 1.4 18.5 0 69.3-56.2 125.5-125.5 125.5L144 480c-17.7 0-32-14.3-32-32s14.3-32 32-32l146.5 0c34 0 61.5-27.5 61.5-61.5 0-6.4-1-12.7-2.8-18.5z",
41
- });
42
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)({
43
- ...{ class: "tips" },
44
- });
45
- /** @type {__VLS_StyleScopedClasses['tips']} */ ;
46
- // @ts-ignore
47
- [editor,];
48
- const __VLS_export = (await import('vue')).defineComponent({
49
- props: {
50
- editor: {
51
- type: Object,
52
- required: true
53
- }
54
- },
55
- });
56
- export default {};
@@ -1,29 +0,0 @@
1
- <template>
2
- <button
3
- class="icon-button"
4
- :class="{ 'active': editor.isActive('subscript') }"
5
- @click="editor.chain().focus().toggleSubscript().run()" >
6
-
7
- <div class="icon">
8
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512">
9
- <path fill="currentColor" stroke="currentColor" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" d="M96 64C78.3 64 64 78.3 64 96s14.3 32 32 32l15.3 0 89.6 128-89.6 128-15.3 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l32 0c10.4 0 20.2-5.1 26.2-13.6L240 311.8 325.8 434.4c6 8.6 15.8 13.6 26.2 13.6l32 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-15.3 0-89.6-128 89.6-128 15.3 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-32 0c-10.4 0-20.2 5.1-26.2 13.6L240 200.2 154.2 77.6C148.2 69.1 138.4 64 128 64L96 64zM544 320c0-11.1-5.7-21.4-15.2-27.2s-21.2-6.4-31.1-1.4l-32 16c-15.8 7.9-22.2 27.1-14.3 42.9 5.6 11.2 16.9 17.7 28.6 17.7l0 80c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l0-128z"/>
10
- </svg>
11
- </div>
12
-
13
- <div class="tips">下标文字</div>
14
- </button>
15
- </template>
16
-
17
-
18
- <script setup>
19
- const props = defineProps({
20
- editor: {
21
- type: Object,
22
- required: true
23
- }
24
- })
25
-
26
-
27
-
28
- </script>
29
-
@@ -1,56 +0,0 @@
1
- const props = defineProps({
2
- editor: {
3
- type: Object,
4
- required: true
5
- }
6
- });
7
- const __VLS_ctx = {
8
- ...{},
9
- ...{},
10
- ...{},
11
- };
12
- let __VLS_components;
13
- let __VLS_intrinsics;
14
- let __VLS_directives;
15
- __VLS_asFunctionalElement1(__VLS_intrinsics.button, __VLS_intrinsics.button)({
16
- ...{ onClick: (...[$event]) => {
17
- __VLS_ctx.editor.chain().focus().toggleSubscript().run();
18
- // @ts-ignore
19
- [editor,];
20
- } },
21
- ...{ class: "icon-button" },
22
- ...{ class: ({ 'active': __VLS_ctx.editor.isActive('subscript') }) },
23
- });
24
- /** @type {__VLS_StyleScopedClasses['icon-button']} */ ;
25
- /** @type {__VLS_StyleScopedClasses['active']} */ ;
26
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)({
27
- ...{ class: "icon" },
28
- });
29
- /** @type {__VLS_StyleScopedClasses['icon']} */ ;
30
- __VLS_asFunctionalElement1(__VLS_intrinsics.svg, __VLS_intrinsics.svg)({
31
- xmlns: "http://www.w3.org/2000/svg",
32
- viewBox: "0 0 576 512",
33
- });
34
- __VLS_asFunctionalElement1(__VLS_intrinsics.path)({
35
- fill: "currentColor",
36
- stroke: "currentColor",
37
- 'stroke-width': "4",
38
- 'stroke-linecap': "round",
39
- 'stroke-linejoin': "round",
40
- d: "M96 64C78.3 64 64 78.3 64 96s14.3 32 32 32l15.3 0 89.6 128-89.6 128-15.3 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l32 0c10.4 0 20.2-5.1 26.2-13.6L240 311.8 325.8 434.4c6 8.6 15.8 13.6 26.2 13.6l32 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-15.3 0-89.6-128 89.6-128 15.3 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-32 0c-10.4 0-20.2 5.1-26.2 13.6L240 200.2 154.2 77.6C148.2 69.1 138.4 64 128 64L96 64zM544 320c0-11.1-5.7-21.4-15.2-27.2s-21.2-6.4-31.1-1.4l-32 16c-15.8 7.9-22.2 27.1-14.3 42.9 5.6 11.2 16.9 17.7 28.6 17.7l0 80c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l0-128z",
41
- });
42
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)({
43
- ...{ class: "tips" },
44
- });
45
- /** @type {__VLS_StyleScopedClasses['tips']} */ ;
46
- // @ts-ignore
47
- [editor,];
48
- const __VLS_export = (await import('vue')).defineComponent({
49
- props: {
50
- editor: {
51
- type: Object,
52
- required: true
53
- }
54
- },
55
- });
56
- export default {};
@@ -1,29 +0,0 @@
1
- <template>
2
- <button
3
- class="icon-button"
4
- :class="{ 'active': editor.isActive('superscript') }"
5
- @click="editor.chain().focus().toggleSuperscript().run()" >
6
-
7
- <div class="icon">
8
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512">
9
- <path fill="currentColor" stroke="currentColor" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" d="M544 32c0-11.1-5.7-21.4-15.2-27.2s-21.2-6.4-31.1-1.4l-32 16C449.9 27.3 443.5 46.5 451.4 62.3 457 73.5 468.3 80 480 80l0 80c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l0-128zM96 64C78.3 64 64 78.3 64 96s14.3 32 32 32l15.3 0 89.6 128-89.6 128-15.3 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l32 0c10.4 0 20.2-5.1 26.2-13.6L240 311.8 325.8 434.4c6 8.6 15.8 13.6 26.2 13.6l32 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-15.3 0-89.6-128 89.6-128 15.3 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-32 0c-10.4 0-20.2 5.1-26.2 13.6L240 200.2 154.2 77.6C148.2 69.1 138.4 64 128 64L96 64z"/>
10
- </svg>
11
- </div>
12
-
13
- <div class="tips">下标文字</div>
14
- </button>
15
- </template>
16
-
17
-
18
- <script setup>
19
- const props = defineProps({
20
- editor: {
21
- type: Object,
22
- required: true
23
- }
24
- })
25
-
26
-
27
-
28
- </script>
29
-
@@ -1,56 +0,0 @@
1
- const props = defineProps({
2
- editor: {
3
- type: Object,
4
- required: true
5
- }
6
- });
7
- const __VLS_ctx = {
8
- ...{},
9
- ...{},
10
- ...{},
11
- };
12
- let __VLS_components;
13
- let __VLS_intrinsics;
14
- let __VLS_directives;
15
- __VLS_asFunctionalElement1(__VLS_intrinsics.button, __VLS_intrinsics.button)({
16
- ...{ onClick: (...[$event]) => {
17
- __VLS_ctx.editor.chain().focus().toggleSuperscript().run();
18
- // @ts-ignore
19
- [editor,];
20
- } },
21
- ...{ class: "icon-button" },
22
- ...{ class: ({ 'active': __VLS_ctx.editor.isActive('superscript') }) },
23
- });
24
- /** @type {__VLS_StyleScopedClasses['icon-button']} */ ;
25
- /** @type {__VLS_StyleScopedClasses['active']} */ ;
26
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)({
27
- ...{ class: "icon" },
28
- });
29
- /** @type {__VLS_StyleScopedClasses['icon']} */ ;
30
- __VLS_asFunctionalElement1(__VLS_intrinsics.svg, __VLS_intrinsics.svg)({
31
- xmlns: "http://www.w3.org/2000/svg",
32
- viewBox: "0 0 576 512",
33
- });
34
- __VLS_asFunctionalElement1(__VLS_intrinsics.path)({
35
- fill: "currentColor",
36
- stroke: "currentColor",
37
- 'stroke-width': "4",
38
- 'stroke-linecap': "round",
39
- 'stroke-linejoin': "round",
40
- d: "M544 32c0-11.1-5.7-21.4-15.2-27.2s-21.2-6.4-31.1-1.4l-32 16C449.9 27.3 443.5 46.5 451.4 62.3 457 73.5 468.3 80 480 80l0 80c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l0-128zM96 64C78.3 64 64 78.3 64 96s14.3 32 32 32l15.3 0 89.6 128-89.6 128-15.3 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l32 0c10.4 0 20.2-5.1 26.2-13.6L240 311.8 325.8 434.4c6 8.6 15.8 13.6 26.2 13.6l32 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-15.3 0-89.6-128 89.6-128 15.3 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-32 0c-10.4 0-20.2 5.1-26.2 13.6L240 200.2 154.2 77.6C148.2 69.1 138.4 64 128 64L96 64z",
41
- });
42
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)({
43
- ...{ class: "tips" },
44
- });
45
- /** @type {__VLS_StyleScopedClasses['tips']} */ ;
46
- // @ts-ignore
47
- [editor,];
48
- const __VLS_export = (await import('vue')).defineComponent({
49
- props: {
50
- editor: {
51
- type: Object,
52
- required: true
53
- }
54
- },
55
- });
56
- export default {};
@@ -1,26 +0,0 @@
1
- <template>
2
- <button
3
- class="icon-button"
4
- :class="{ 'active': editor.isActive({ textAlign: 'center' }) }"
5
- @click="editor.chain().focus().setTextAlign('center').run()" >
6
-
7
- <div class="icon">
8
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
9
- <path fill="currentColor" stroke="currentColor" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" d="M352 64c0-17.7-14.3-32-32-32L128 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l192 0c17.7 0 32-14.3 32-32zm96 128c0-17.7-14.3-32-32-32L32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32zM0 448c0 17.7 14.3 32 32 32l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 416c-17.7 0-32 14.3-32 32zM352 320c0-17.7-14.3-32-32-32l-192 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l192 0c17.7 0 32-14.3 32-32z"/>
10
- </svg>
11
- </div>
12
-
13
- <div class="tips">居中对齐</div>
14
- </button>
15
- </template>
16
-
17
-
18
- <script setup>
19
- const props = defineProps({
20
- editor: {
21
- type: Object,
22
- required: true
23
- }
24
- })
25
-
26
- </script>
@@ -1,56 +0,0 @@
1
- const props = defineProps({
2
- editor: {
3
- type: Object,
4
- required: true
5
- }
6
- });
7
- const __VLS_ctx = {
8
- ...{},
9
- ...{},
10
- ...{},
11
- };
12
- let __VLS_components;
13
- let __VLS_intrinsics;
14
- let __VLS_directives;
15
- __VLS_asFunctionalElement1(__VLS_intrinsics.button, __VLS_intrinsics.button)({
16
- ...{ onClick: (...[$event]) => {
17
- __VLS_ctx.editor.chain().focus().setTextAlign('center').run();
18
- // @ts-ignore
19
- [editor,];
20
- } },
21
- ...{ class: "icon-button" },
22
- ...{ class: ({ 'active': __VLS_ctx.editor.isActive({ textAlign: 'center' }) }) },
23
- });
24
- /** @type {__VLS_StyleScopedClasses['icon-button']} */ ;
25
- /** @type {__VLS_StyleScopedClasses['active']} */ ;
26
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)({
27
- ...{ class: "icon" },
28
- });
29
- /** @type {__VLS_StyleScopedClasses['icon']} */ ;
30
- __VLS_asFunctionalElement1(__VLS_intrinsics.svg, __VLS_intrinsics.svg)({
31
- xmlns: "http://www.w3.org/2000/svg",
32
- viewBox: "0 0 448 512",
33
- });
34
- __VLS_asFunctionalElement1(__VLS_intrinsics.path)({
35
- fill: "currentColor",
36
- stroke: "currentColor",
37
- 'stroke-width': "4",
38
- 'stroke-linecap': "round",
39
- 'stroke-linejoin': "round",
40
- d: "M352 64c0-17.7-14.3-32-32-32L128 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l192 0c17.7 0 32-14.3 32-32zm96 128c0-17.7-14.3-32-32-32L32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32zM0 448c0 17.7 14.3 32 32 32l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 416c-17.7 0-32 14.3-32 32zM352 320c0-17.7-14.3-32-32-32l-192 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l192 0c17.7 0 32-14.3 32-32z",
41
- });
42
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)({
43
- ...{ class: "tips" },
44
- });
45
- /** @type {__VLS_StyleScopedClasses['tips']} */ ;
46
- // @ts-ignore
47
- [editor,];
48
- const __VLS_export = (await import('vue')).defineComponent({
49
- props: {
50
- editor: {
51
- type: Object,
52
- required: true
53
- }
54
- },
55
- });
56
- export default {};
@@ -1,26 +0,0 @@
1
- <template>
2
- <button
3
- class="icon-button"
4
- :class="{ 'active': editor.isActive({ textAlign: 'left' }) }"
5
- @click="editor.chain().focus().setTextAlign('left').run()" >
6
-
7
- <div class="icon">
8
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
9
- <path fill="currentColor" stroke="currentColor" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" d="M288 64c0 17.7-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l224 0c17.7 0 32 14.3 32 32zm0 256c0 17.7-14.3 32-32 32L32 352c-17.7 0-32-14.3-32-32s14.3-32 32-32l224 0c17.7 0 32 14.3 32 32zM0 192c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 224c-17.7 0-32-14.3-32-32zM448 448c0 17.7-14.3 32-32 32L32 480c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"/>
10
- </svg>
11
- </div>
12
-
13
- <div class="tips">左对齐</div>
14
- </button>
15
- </template>
16
-
17
-
18
- <script setup>
19
- const props = defineProps({
20
- editor: {
21
- type: Object,
22
- required: true
23
- }
24
- })
25
-
26
- </script>
@@ -1,56 +0,0 @@
1
- const props = defineProps({
2
- editor: {
3
- type: Object,
4
- required: true
5
- }
6
- });
7
- const __VLS_ctx = {
8
- ...{},
9
- ...{},
10
- ...{},
11
- };
12
- let __VLS_components;
13
- let __VLS_intrinsics;
14
- let __VLS_directives;
15
- __VLS_asFunctionalElement1(__VLS_intrinsics.button, __VLS_intrinsics.button)({
16
- ...{ onClick: (...[$event]) => {
17
- __VLS_ctx.editor.chain().focus().setTextAlign('left').run();
18
- // @ts-ignore
19
- [editor,];
20
- } },
21
- ...{ class: "icon-button" },
22
- ...{ class: ({ 'active': __VLS_ctx.editor.isActive({ textAlign: 'left' }) }) },
23
- });
24
- /** @type {__VLS_StyleScopedClasses['icon-button']} */ ;
25
- /** @type {__VLS_StyleScopedClasses['active']} */ ;
26
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)({
27
- ...{ class: "icon" },
28
- });
29
- /** @type {__VLS_StyleScopedClasses['icon']} */ ;
30
- __VLS_asFunctionalElement1(__VLS_intrinsics.svg, __VLS_intrinsics.svg)({
31
- xmlns: "http://www.w3.org/2000/svg",
32
- viewBox: "0 0 448 512",
33
- });
34
- __VLS_asFunctionalElement1(__VLS_intrinsics.path)({
35
- fill: "currentColor",
36
- stroke: "currentColor",
37
- 'stroke-width': "4",
38
- 'stroke-linecap': "round",
39
- 'stroke-linejoin': "round",
40
- d: "M288 64c0 17.7-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l224 0c17.7 0 32 14.3 32 32zm0 256c0 17.7-14.3 32-32 32L32 352c-17.7 0-32-14.3-32-32s14.3-32 32-32l224 0c17.7 0 32 14.3 32 32zM0 192c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 224c-17.7 0-32-14.3-32-32zM448 448c0 17.7-14.3 32-32 32L32 480c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z",
41
- });
42
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)({
43
- ...{ class: "tips" },
44
- });
45
- /** @type {__VLS_StyleScopedClasses['tips']} */ ;
46
- // @ts-ignore
47
- [editor,];
48
- const __VLS_export = (await import('vue')).defineComponent({
49
- props: {
50
- editor: {
51
- type: Object,
52
- required: true
53
- }
54
- },
55
- });
56
- export default {};
@@ -1,26 +0,0 @@
1
- <template>
2
- <button
3
- class="icon-button"
4
- :class="{ 'active': editor.isActive({ textAlign: 'right' }) }"
5
- @click="editor.chain().focus().setTextAlign('right').run()" >
6
-
7
- <div class="icon">
8
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
9
- <path fill="currentColor" stroke="currentColor" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" d="M448 64c0 17.7-14.3 32-32 32L192 96c-17.7 0-32-14.3-32-32s14.3-32 32-32l224 0c17.7 0 32 14.3 32 32zm0 256c0 17.7-14.3 32-32 32l-224 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l224 0c17.7 0 32 14.3 32 32zM0 192c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 224c-17.7 0-32-14.3-32-32zM448 448c0 17.7-14.3 32-32 32L32 480c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"/>
10
- </svg>
11
- </div>
12
-
13
- <div class="tips">右对齐</div>
14
- </button>
15
- </template>
16
-
17
-
18
- <script setup>
19
- const props = defineProps({
20
- editor: {
21
- type: Object,
22
- required: true
23
- }
24
- })
25
-
26
- </script>
@@ -1,56 +0,0 @@
1
- const props = defineProps({
2
- editor: {
3
- type: Object,
4
- required: true
5
- }
6
- });
7
- const __VLS_ctx = {
8
- ...{},
9
- ...{},
10
- ...{},
11
- };
12
- let __VLS_components;
13
- let __VLS_intrinsics;
14
- let __VLS_directives;
15
- __VLS_asFunctionalElement1(__VLS_intrinsics.button, __VLS_intrinsics.button)({
16
- ...{ onClick: (...[$event]) => {
17
- __VLS_ctx.editor.chain().focus().setTextAlign('right').run();
18
- // @ts-ignore
19
- [editor,];
20
- } },
21
- ...{ class: "icon-button" },
22
- ...{ class: ({ 'active': __VLS_ctx.editor.isActive({ textAlign: 'right' }) }) },
23
- });
24
- /** @type {__VLS_StyleScopedClasses['icon-button']} */ ;
25
- /** @type {__VLS_StyleScopedClasses['active']} */ ;
26
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)({
27
- ...{ class: "icon" },
28
- });
29
- /** @type {__VLS_StyleScopedClasses['icon']} */ ;
30
- __VLS_asFunctionalElement1(__VLS_intrinsics.svg, __VLS_intrinsics.svg)({
31
- xmlns: "http://www.w3.org/2000/svg",
32
- viewBox: "0 0 448 512",
33
- });
34
- __VLS_asFunctionalElement1(__VLS_intrinsics.path)({
35
- fill: "currentColor",
36
- stroke: "currentColor",
37
- 'stroke-width': "4",
38
- 'stroke-linecap': "round",
39
- 'stroke-linejoin': "round",
40
- d: "M448 64c0 17.7-14.3 32-32 32L192 96c-17.7 0-32-14.3-32-32s14.3-32 32-32l224 0c17.7 0 32 14.3 32 32zm0 256c0 17.7-14.3 32-32 32l-224 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l224 0c17.7 0 32 14.3 32 32zM0 192c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 224c-17.7 0-32-14.3-32-32zM448 448c0 17.7-14.3 32-32 32L32 480c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z",
41
- });
42
- __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)({
43
- ...{ class: "tips" },
44
- });
45
- /** @type {__VLS_StyleScopedClasses['tips']} */ ;
46
- // @ts-ignore
47
- [editor,];
48
- const __VLS_export = (await import('vue')).defineComponent({
49
- props: {
50
- editor: {
51
- type: Object,
52
- required: true
53
- }
54
- },
55
- });
56
- export default {};