@steedos-widgets/antd 6.10.48 → 6.10.49
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/dist/antd.umd.js
CHANGED
|
@@ -306,23 +306,27 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
306
306
|
};
|
|
307
307
|
// --- 组件实现 ---
|
|
308
308
|
var LiquidComponent = function LiquidComponent(_a) {
|
|
309
|
+
var _b;
|
|
309
310
|
var template = _a.template,
|
|
310
311
|
tpl = _a.tpl,
|
|
311
312
|
data = _a.data,
|
|
312
313
|
className = _a.className,
|
|
313
314
|
$schema = _a.$schema,
|
|
314
315
|
amisRender = _a.render,
|
|
316
|
+
dispatchEvent = _a.dispatchEvent,
|
|
315
317
|
propsPartials = _a.partials;
|
|
318
|
+
__rest(_a, ["template", "tpl", "data", "className", "$schema", "render", "dispatchEvent", "partials"]);
|
|
319
|
+
var doAction = (_b = data._scoped) === null || _b === void 0 ? void 0 : _b.doAction;
|
|
316
320
|
// 支持 tpl 作为 template 的别名
|
|
317
321
|
if (tpl && !template) {
|
|
318
322
|
template = tpl;
|
|
319
323
|
}
|
|
320
|
-
var
|
|
321
|
-
html =
|
|
322
|
-
setHtml =
|
|
323
|
-
var
|
|
324
|
-
mountNodes =
|
|
325
|
-
setMountNodes =
|
|
324
|
+
var _c = __read(React.useState(''), 2),
|
|
325
|
+
html = _c[0],
|
|
326
|
+
setHtml = _c[1];
|
|
327
|
+
var _d = __read(React.useState({}), 2),
|
|
328
|
+
mountNodes = _d[0],
|
|
329
|
+
setMountNodes = _d[1];
|
|
326
330
|
var containerRef = React.useRef(null);
|
|
327
331
|
// 用于存储脚本清理函数的引用,以便在组件卸载或更新时清理副作用
|
|
328
332
|
var scriptCleanupsRef = React.useRef([]);
|
|
@@ -554,8 +558,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
554
558
|
try {
|
|
555
559
|
var debugName = "steedos-liquid-".concat(Math.random().toString(36).slice(2), ".js");
|
|
556
560
|
var debuggableCode = code + "\n//# sourceURL=".concat(debugName);
|
|
557
|
-
var func = new Function('data', 'dom', debuggableCode);
|
|
558
|
-
var cleanupResult = func(data, scriptNode.parentElement);
|
|
561
|
+
var func = new Function('data', 'dom', 'doAction', 'dispatchEvent', debuggableCode);
|
|
562
|
+
var cleanupResult = func(data, scriptNode.parentElement, doAction, dispatchEvent);
|
|
559
563
|
if (typeof cleanupResult === 'function') {
|
|
560
564
|
scriptCleanupsRef.current.push(cleanupResult);
|
|
561
565
|
}
|
package/dist/assets.json
CHANGED
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
{
|
|
32
32
|
"package": "@steedos-widgets/antd",
|
|
33
33
|
"urls": [
|
|
34
|
-
"https://unpkg.com/@steedos-widgets/antd@6.10.
|
|
35
|
-
"https://unpkg.com/@steedos-widgets/antd@6.10.
|
|
34
|
+
"https://unpkg.com/@steedos-widgets/antd@6.10.49/dist/antd.umd.js",
|
|
35
|
+
"https://unpkg.com/@steedos-widgets/antd@6.10.49/dist/antd.umd.css"
|
|
36
36
|
],
|
|
37
37
|
"library": "BuilderAntd"
|
|
38
38
|
}
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"npm": {
|
|
44
44
|
"package": "@steedos-widgets/antd"
|
|
45
45
|
},
|
|
46
|
-
"url": "https://unpkg.com/@steedos-widgets/antd@6.10.
|
|
46
|
+
"url": "https://unpkg.com/@steedos-widgets/antd@6.10.49/dist/meta.js",
|
|
47
47
|
"urls": {
|
|
48
|
-
"default": "https://unpkg.com/@steedos-widgets/antd@6.10.
|
|
49
|
-
"design": "https://unpkg.com/@steedos-widgets/antd@6.10.
|
|
48
|
+
"default": "https://unpkg.com/@steedos-widgets/antd@6.10.49/dist/meta.js",
|
|
49
|
+
"design": "https://unpkg.com/@steedos-widgets/antd@6.10.49/dist/meta.js"
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
]
|
|
@@ -7,6 +7,7 @@ interface LiquidTemplateProps {
|
|
|
7
7
|
$schema?: Record<string, string | object>;
|
|
8
8
|
partials?: Record<string, string | object>;
|
|
9
9
|
className?: string;
|
|
10
|
+
dispatchEvent: any;
|
|
10
11
|
render: (region: string, schema: SchemaObject, props?: any) => React.ReactNode;
|
|
11
12
|
}
|
|
12
13
|
export declare const LiquidComponent: React.FC<LiquidTemplateProps>;
|
|
@@ -7,6 +7,7 @@ interface LiquidTemplateProps {
|
|
|
7
7
|
$schema?: Record<string, string | object>;
|
|
8
8
|
partials?: Record<string, string | object>;
|
|
9
9
|
className?: string;
|
|
10
|
+
dispatchEvent: any;
|
|
10
11
|
render: (region: string, schema: SchemaObject, props?: any) => React.ReactNode;
|
|
11
12
|
}
|
|
12
13
|
export declare const LiquidComponent: React.FC<LiquidTemplateProps>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos-widgets/antd",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "6.10.
|
|
4
|
+
"version": "6.10.49",
|
|
5
5
|
"main": "dist/antd.cjs.js",
|
|
6
6
|
"module": "dist/antd.esm.js",
|
|
7
7
|
"unpkg": "dist/antd.umd.js",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"rollup-plugin-tslib-resolve-id": "^0.0.0",
|
|
48
48
|
"rollup-plugin-visualizer": "^5.8.0"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "bd807f3646ba16317416ef5a445f74d6c9bba34a",
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"liquidjs": "^10.24.0"
|
|
53
53
|
}
|