xframelib 0.4.2 → 0.4.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.
@@ -24,13 +24,52 @@ export interface IWidgetLayout {
24
24
  height?: string;
25
25
  }
26
26
  export interface IWidgetConfig {
27
+ /**
28
+ * 唯一ID,与组件名一致
29
+ */
27
30
  id: string;
31
+ /**
32
+ * 标题或说明
33
+ */
28
34
  label?: string;
35
+ /**
36
+ * 图标路径(备用)
37
+ */
29
38
  icon?: string;
39
+ /**
40
+ * 所属容器,top/bottom/left/right等
41
+ */
30
42
  container: LayoutContainerEnum;
43
+ /**
44
+ * 外部组件js url(备用)
45
+ */
46
+ jsURL?: string;
47
+ /**
48
+ * 外部组件css url(备用)
49
+ */
50
+ cssURL?: string;
51
+ /**
52
+ * 动态加载的组件
53
+ */
31
54
  component: Lazy<Component>;
55
+ /**
56
+ * 是否初始化时,预加载
57
+ */
32
58
  preload?: boolean;
59
+ /**
60
+ * 前置容器ID,一般也就是bindid
61
+ */
33
62
  afterid?: string;
63
+ /**
64
+ * 绑定依赖容器ID,不一定有afterid
65
+ */
66
+ bindid?: string;
67
+ /**
68
+ * 所属组,用于业务分类
69
+ */
34
70
  group?: string;
71
+ /**
72
+ * 外部定义布局(备用)
73
+ */
35
74
  layout?: IWidgetLayout;
36
75
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xframelib",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "积累的前端开发基础库",
5
5
  "main": "dist/index.js",
6
6
  "common": "dist/index.cjs",
@@ -31,27 +31,26 @@
31
31
  "xhr": "^2.6.0"
32
32
  },
33
33
  "devDependencies": {
34
- "@rollup/plugin-alias": "^3.1.8",
34
+ "@rollup/plugin-alias": "^3.1.9",
35
35
  "@rollup/plugin-commonjs": "^21.0.1",
36
36
  "@rollup/plugin-json": "^4.1.0",
37
- "@rollup/plugin-node-resolve": "^13.0.6",
37
+ "@rollup/plugin-node-resolve": "^13.1.2",
38
38
  "@rollup/plugin-typescript": "^8.3.0",
39
39
  "@types/streamsaver": "^2.0.1",
40
- "@vitejs/plugin-vue": "^1.9.3",
41
- "@vue/compiler-sfc": "^3.2.20",
42
- "axios": "^0.23.0",
43
- "esbuild": "^0.13.9",
44
- "node-sass": "^6.0.1",
45
- "rollup-plugin-esbuild": "^4.6.0",
40
+ "@vitejs/plugin-vue": "^2.0.1",
41
+ "@vue/compiler-sfc": "^3.2.26",
42
+ "axios": "^0.24.0",
43
+ "esbuild": "^0.14.10",
44
+ "rollup-plugin-esbuild": "^4.8.2",
46
45
  "rollup-plugin-scss": "^3.0.0",
47
46
  "rollup-plugin-terser": "^7.0.2",
48
47
  "rollup-plugin-typescript2": "^0.31.1",
49
48
  "rollup-plugin-vue": "^6.0.0",
50
- "sass": "^1.43.3",
51
- "typescript": "^4.4.4",
52
- "vite": "^2.6.10",
49
+ "sass": "^1.45.2",
50
+ "typescript": "^4.5.4",
51
+ "vite": "^2.7.10",
53
52
  "vue": "^3.2.20",
54
53
  "vue-router": "^4.0.10",
55
- "vue-tsc": "^0.28.8"
54
+ "vue-tsc": "^0.30.2"
56
55
  }
57
56
  }