@srcker/editor-vue-next 1.0.2 → 1.0.3

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.
package/index.ts ADDED
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 组件统一导出
3
+ */
4
+ import RichEditor from './src/RichEditor.vue';
5
+ export { RichEditor }
6
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@srcker/editor-vue-next",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": "^20.19.0 || >=22.12.0"
@@ -0,0 +1,6 @@
1
+ // 统一导出所有自定义 Tiptap 扩展
2
+ export { default as UploadImage } from './UploadImage';
3
+ export { default as BulletListStyle } from './BulletListStyle';
4
+ export { default as OrderedListStyle } from './OrderedListStyle';
5
+ export { default as Indent } from './Indent';
6
+ export { default as FontSize } from './FontSize';
@@ -0,0 +1,6 @@
1
+ // 统一导出所有自定义 Tiptap 扩展
2
+ export { default as UploadImage } from './UploadImage'
3
+ export { default as BulletListStyle } from './BulletListStyle'
4
+ export { default as OrderedListStyle } from './OrderedListStyle'
5
+ export { default as Indent } from './Indent'
6
+ export { default as FontSize } from './FontSize'
package/src/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import './styles/style.scss';
2
2
  import RichEditor from './RichEditor.vue';
3
- // RichEditor.install = (app: App) => {
4
- // app.component('RichEditor', RichEditor)
5
- // }
3
+ RichEditor.install = (app) => {
4
+ app.component('RichEditor', RichEditor);
5
+ };
6
6
  export default RichEditor;
package/src/index.ts CHANGED
@@ -4,8 +4,8 @@ import './styles/style.scss'
4
4
  import RichEditor from './RichEditor.vue';
5
5
 
6
6
 
7
- // RichEditor.install = (app: App) => {
8
- // app.component('RichEditor', RichEditor)
9
- // }
7
+ RichEditor.install = (app: App) => {
8
+ app.component('RichEditor', RichEditor)
9
+ }
10
10
 
11
11
  export default RichEditor
package/src/main.js ADDED
@@ -0,0 +1,4 @@
1
+ import { createApp } from 'vue';
2
+ import App from './App.vue';
3
+ import './styles/style.scss';
4
+ createApp(App).mount('#app');
package/src/main.ts ADDED
@@ -0,0 +1,7 @@
1
+ import { createApp } from 'vue'
2
+ import App from './App.vue'
3
+
4
+
5
+ import './styles/style.scss'
6
+
7
+ createApp(App).mount('#app')