xframelib 0.7.9 → 0.8.1

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.
@@ -16,12 +16,16 @@ export declare enum LayoutContainerEnum {
16
16
  * 组件布局
17
17
  */
18
18
  export interface IWidgetLayout {
19
- top?: number;
20
- left?: number;
21
- right?: number;
22
- bottom?: number;
19
+ top?: number | string;
20
+ left?: number | string;
21
+ right?: number | string;
22
+ bottom?: number | string;
23
23
  width?: string;
24
24
  height?: string;
25
+ /**
26
+ * 扩展属性,支持应用
27
+ */
28
+ [props: string]: any;
25
29
  }
26
30
  export interface IWidgetConfig {
27
31
  /**
@@ -49,7 +53,7 @@ export interface IWidgetConfig {
49
53
  */
50
54
  jsURL?: string;
51
55
  /**
52
- * 外部组件css url(备用)
56
+ * 外部组件css url(备用,暂不用)
53
57
  */
54
58
  cssURL?: string;
55
59
  /**
@@ -76,6 +80,11 @@ export interface IWidgetConfig {
76
80
  * 外部定义布局(备用)
77
81
  */
78
82
  layout?: IWidgetLayout;
83
+ /**
84
+ * 组件的外部扩展样式(在layouts布局、视图页面里定义)
85
+ * 通过定义class名称
86
+ */
87
+ cssClass?: string;
79
88
  /**
80
89
  * 扩展属性,支持应用
81
90
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xframelib",
3
- "version": "0.7.9",
3
+ "version": "0.8.1",
4
4
  "description": "积累的前端开发基础库",
5
5
  "main": "dist/index.js",
6
6
  "common": "dist/index.cjs",
@@ -28,36 +28,36 @@
28
28
  "@hprose/rpc-html5": "^3.0.10",
29
29
  "@iconify/vue": "^4.1.2",
30
30
  "@microsoft/signalr": "^8.0.7",
31
- "axios": "^1.7.2",
31
+ "axios": "^1.7.7",
32
32
  "localforage": "^1.10.0",
33
- "loglevel": "^1.9.1",
34
- "qs": "^6.12.3",
33
+ "loglevel": "^1.9.2",
34
+ "qs": "^6.13.0",
35
35
  "spark-md5": "^3.0.2",
36
36
  "streamsaver": "^2.0.6",
37
37
  "xhr": "^2.6.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@rollup/plugin-alias": "^5.1.0",
41
- "@rollup/plugin-commonjs": "^26.0.1",
40
+ "@rollup/plugin-alias": "^5.1.1",
41
+ "@rollup/plugin-commonjs": "^28.0.0",
42
42
  "@rollup/plugin-json": "^6.1.0",
43
- "@rollup/plugin-node-resolve": "^15.2.3",
44
- "@rollup/plugin-typescript": "^11.1.6",
45
- "@types/streamsaver": "^2.0.4",
46
- "@vitejs/plugin-vue": "^5.0.5",
47
- "@vue/compiler-sfc": "^3.4.31",
48
- "esbuild": "^0.23.0",
49
- "rimraf": "^5.0.9",
43
+ "@rollup/plugin-node-resolve": "^15.3.0",
44
+ "@rollup/plugin-typescript": "^12.1.0",
45
+ "@types/streamsaver": "^2.0.5",
46
+ "@vitejs/plugin-vue": "^5.1.4",
47
+ "@vue/compiler-sfc": "^3.5.12",
48
+ "esbuild": "^0.24.0",
49
+ "rimraf": "^5.0.10",
50
50
  "rollup-plugin-copy": "^3.5.0",
51
51
  "rollup-plugin-esbuild": "^6.1.1",
52
52
  "rollup-plugin-scss": "^4.0.0",
53
53
  "rollup-plugin-terser": "^7.0.2",
54
54
  "rollup-plugin-typescript2": "^0.36.0",
55
55
  "rollup-plugin-vue": "^6.0.0",
56
- "sass": "^1.77.7",
57
- "typescript": "^5.5.3",
58
- "vite": "^5.3.3",
59
- "vue": "^3.4.31",
60
- "vue-router": "^4.4.0",
61
- "vue-tsc": "^2.0.26"
56
+ "sass": "^1.79.5",
57
+ "typescript": "^5.6.3",
58
+ "vite": "^5.4.8",
59
+ "vue": "^3.5.12",
60
+ "vue-router": "^4.4.5",
61
+ "vue-tsc": "^2.1.6"
62
62
  }
63
63
  }