@srcker/editor-vue-next 1.0.1 → 1.0.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@srcker/editor-vue-next",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": "^20.19.0 || >=22.12.0"
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) => {
4
- app.component('RichEditor', RichEditor);
5
- };
3
+ // RichEditor.install = (app: 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/vite.config.ts CHANGED
@@ -12,11 +12,6 @@ export default defineConfig({
12
12
  name: 'RichEditor',
13
13
  fileName: (format) => `rich-editor.${format}.js`
14
14
  },
15
- resolve: {
16
- alias: {
17
- '@': path.resolve(__dirname, 'src') // 让 Rollup 识别 @
18
- }
19
- },
20
15
  rollupOptions: {
21
16
  external: ['vue'],
22
17
  output: {
package/index.ts DELETED
@@ -1,11 +0,0 @@
1
- /**
2
- * 组件统一导出
3
- */
4
- import RichEditor from './RichEditor.vue';
5
- export { RichEditor }
6
-
7
- export default {
8
- install(app: any) {
9
- app.use(RichEditor)
10
- }
11
- }
package/src/main.js DELETED
@@ -1,4 +0,0 @@
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 DELETED
@@ -1,7 +0,0 @@
1
- import { createApp } from 'vue'
2
- import App from './App.vue'
3
-
4
-
5
- import './styles/style.scss'
6
-
7
- createApp(App).mount('#app')