File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vue-expression-editor" ,
3
- "version" : " 1.0.1 " ,
3
+ "version" : " 1.0.2 " ,
4
4
"description" : " A powerful Vue 3 mathematical expression editor component" ,
5
5
"main" : " dist/index.js" ,
6
6
"module" : " dist/index.mjs" ,
Original file line number Diff line number Diff line change 1
1
import { App } from 'vue'
2
2
import ExpressionEditor from './components/ExpressionEditor.vue'
3
3
4
- export { ExpressionEditor }
5
-
6
- export default {
7
- install : ( app : App ) => {
8
- app . component ( 'ExpressionEditor' , ExpressionEditor )
9
- }
4
+ const install = ( app : App ) => {
5
+ app . component ( 'ExpressionEditor' , ExpressionEditor )
10
6
}
7
+
8
+ // 直接导出组件
9
+ ExpressionEditor . install = install
10
+
11
+ export { ExpressionEditor }
12
+ export default ExpressionEditor
You can’t perform that action at this time.
0 commit comments