@widget-js/cli 1.0.1 → 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/bin/widget.js +0 -0
- package/package.json +6 -7
- package/template/WidgetConfig.ejs +2 -2
package/bin/widget.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@widget-js/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"main": "bin/widget.js",
|
|
5
5
|
"author": "Neo Fu",
|
|
6
6
|
"license": "MIT",
|
|
@@ -9,17 +9,13 @@
|
|
|
9
9
|
"bin": {
|
|
10
10
|
"widget": "bin/widget.js"
|
|
11
11
|
},
|
|
12
|
-
"scripts": {
|
|
13
|
-
"widget": "node ./bin/widget.js"
|
|
14
|
-
},
|
|
15
12
|
"publishConfig": {
|
|
16
13
|
"access": "public"
|
|
17
14
|
},
|
|
18
15
|
"engines": {
|
|
19
16
|
"node": "^12.0.0 || >= 14.0.0"
|
|
20
17
|
},
|
|
21
|
-
"dependencies": {
|
|
22
|
-
},
|
|
18
|
+
"dependencies": {},
|
|
23
19
|
"devDependencies": {
|
|
24
20
|
"@vue/cli-shared-utils": "^5.0.8",
|
|
25
21
|
"change-case": "^4.1.2",
|
|
@@ -27,5 +23,8 @@
|
|
|
27
23
|
"ejs": "^3.1.8",
|
|
28
24
|
"inquirer": "^9.1.4",
|
|
29
25
|
"shelljs": "^0.8.5"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"widget": "node ./bin/widget.js"
|
|
30
29
|
}
|
|
31
|
-
}
|
|
30
|
+
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
<script lang="ts">
|
|
20
20
|
|
|
21
|
-
import <%= name %>Widget from "
|
|
21
|
+
import <%= name %>Widget from "./<%= name%>Widget.vue";
|
|
22
22
|
import {useWidget, WidgetConfigOption, WidgetEditDialog} from "@widget-js/vue3";
|
|
23
23
|
import {WidgetData, WidgetDataRepository} from "@widget-js/core";
|
|
24
24
|
import {reactive} from "vue";
|
|
@@ -31,7 +31,7 @@ export default {
|
|
|
31
31
|
|
|
32
32
|
//修改成需要设置组件参数配置
|
|
33
33
|
const widgetConfigOption = reactive(new WidgetConfigOption({
|
|
34
|
-
custom:
|
|
34
|
+
custom: true,
|
|
35
35
|
backgroundColor: true,
|
|
36
36
|
borderRadius: true
|
|
37
37
|
}));
|