xframelib 1.1.3 → 1.1.4

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.
@@ -12,21 +12,6 @@ export declare enum LayoutContainerEnum {
12
12
  left = 5,
13
13
  right = 6
14
14
  }
15
- /**
16
- * 组件布局
17
- */
18
- export interface IWidgetLayout {
19
- top?: number | string;
20
- left?: number | string;
21
- right?: number | string;
22
- bottom?: number | string;
23
- width?: string;
24
- height?: string;
25
- /**
26
- * 扩展属性,支持应用
27
- */
28
- [props: string]: any;
29
- }
30
15
  export interface IWidgetConfig {
31
16
  /**
32
17
  * Layout标识名,以支撑多个布局使用
@@ -48,23 +33,10 @@ export interface IWidgetConfig {
48
33
  * 所属容器,top/bottom/left/right等
49
34
  */
50
35
  container: LayoutContainerEnum;
51
- /**
52
- * 外部组件js url(备用)
53
- */
54
- jsURL?: string;
55
- /**
56
- * 外部组件css url(备用,暂不用)
57
- */
58
- cssURL?: string;
59
36
  /**
60
37
  * 动态加载的组件
61
38
  */
62
39
  component: Lazy<Component>;
63
- /**
64
- * 组件要绑定的属性
65
- * 20260224新增
66
- */
67
- componentProps?: Record<string, unknown>;
68
40
  /**
69
41
  * 是否初始化时,预加载
70
42
  */
@@ -73,23 +45,23 @@ export interface IWidgetConfig {
73
45
  * 前置组件 ID,一般也就是bindid
74
46
  */
75
47
  afterid?: string;
76
- /**
77
- * 20220424 WM:暂时去掉,容易混乱和循环引用
78
- * 绑定依赖组件ID,不一定有afterid
79
- */
80
48
  /**
81
49
  * 所属组,用于业务分类
82
50
  */
83
51
  group?: string;
84
52
  /**
85
- * 外部定义布局(备用)
53
+ * 修改style样式,例如外部定义布局、定义CSS变量等
86
54
  */
87
- layout?: IWidgetLayout;
55
+ style?: string | Record<string, unknown>;
88
56
  /**
57
+ * 定义组件的外部css类名
89
58
  * 组件的外部扩展样式(在layouts布局、视图页面里定义)
90
- * 通过定义class名称
91
59
  */
92
- cssClass?: string;
60
+ class?: string;
61
+ /**
62
+ * Widget示例化后的对象,动态绑定上的
63
+ */
64
+ instance?: Component;
93
65
  /**
94
66
  * 扩展属性,支持应用
95
67
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "xframelib",
3
- "version": "1.1.3",
4
- "description": "积累的前端开发基础库,来源于项目,服务于项目。",
3
+ "version": "1.1.4",
4
+ "description": "The accumulated front-end development foundation library originates from projects and serves projects.",
5
5
  "main": "dist/index.js",
6
6
  "common": "dist/index.cjs",
7
7
  "typings": "dist/index.d.ts",
@@ -34,7 +34,7 @@
34
34
  "@hprose/rpc-core": "^3.0.10",
35
35
  "@hprose/rpc-html5": "^3.0.10",
36
36
  "@iconify-icons/ant-design": "^1.2.7",
37
- "@iconify/vue": "^5.0.0",
37
+ "@iconify/vue": "^5.0.1",
38
38
  "@microsoft/signalr": "^10.0.0",
39
39
  "axios": "^1.16.0",
40
40
  "buffer": "^6.0.3",
@@ -52,7 +52,7 @@
52
52
  "@rollup/plugin-commonjs": "^29.0.2",
53
53
  "@rollup/plugin-terser": "^1.0.0",
54
54
  "@rollup/plugin-typescript": "^12.3.0",
55
- "@types/node": "^25.6.0",
55
+ "@types/node": "^25.6.2",
56
56
  "@vitejs/plugin-vue": "^6.0.6",
57
57
  "@vue/language-core": "^3.2.8",
58
58
  "comlink": "^4.4.2",
@@ -64,12 +64,12 @@
64
64
  "sass": "^1.99.0",
65
65
  "typescript": "^6.0.3",
66
66
  "unplugin-dts": "1.0.0",
67
- "vite": "^8.0.10",
67
+ "vite": "^8.0.12",
68
68
  "vite-plugin-comlink": "^5.3.0",
69
69
  "vite-plugin-commonjs": "^0.10.4",
70
70
  "vite-plugin-node-polyfills": "^0.26.0",
71
71
  "vite-plugin-static-copy": "^4.1.0",
72
- "vue": "^3.5.33",
72
+ "vue": "^3.5.34",
73
73
  "vue-router": "^5.0.6"
74
74
  }
75
75
  }