@widget-js/cli 1.2.10 → 1.2.11

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": "@widget-js/cli",
3
- "version": "1.2.10",
3
+ "version": "1.2.11",
4
4
  "main": "lib/index.js",
5
5
  "author": "Neo Fu",
6
6
  "license": "MIT",
@@ -29,4 +29,4 @@ path,
29
29
  configPagePath
30
30
  })
31
31
 
32
- export default <%= name %>WidgetDefine;
32
+ export default <%= name %>Widget;
@@ -1,10 +1,10 @@
1
1
  import type { RouteRecordRaw } from 'vue-router'
2
- import <%= name %>WidgetDefine from "./<%= name %>.widget";
2
+ import <%= name %>Widget from "./<%= name %>.widget";
3
3
 
4
- const path = <%= name %>WidgetDefine.path;
5
- const name = <%= name %>WidgetDefine.name;
4
+ const path = <%= name %>Widget.path;
5
+ const name = <%= name %>Widget.name;
6
6
  <% if (configurable) { %>
7
- const configPagePath = <%= name %>WidgetDefine.configPagePath!;
7
+ const configPagePath = <%= name %>Widget.configPagePath!;
8
8
 
9
9
  const <%= name %>WidgetRoutes: RouteRecordRaw[] = [
10
10
  {