lw-cdp-ui 1.1.18 → 1.1.19
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.
|
@@ -25,6 +25,7 @@ export default function registerCustom(lf, node) {
|
|
|
25
25
|
*/
|
|
26
26
|
function parseTemplateString(data) {
|
|
27
27
|
let html = ''
|
|
28
|
+
console.log(nodeDatas)
|
|
28
29
|
nodeDatas[node.type].nodeHtml.forEach((item) => {
|
|
29
30
|
let value = item.value?.split('.').reduce((acc, part) => acc && acc[part], data)
|
|
30
31
|
// 日期
|
package/dist/lw-cdp-ui.esm.js
CHANGED
|
@@ -8281,14 +8281,15 @@ function registerStart(e) {
|
|
|
8281
8281
|
};
|
|
8282
8282
|
});
|
|
8283
8283
|
}
|
|
8284
|
-
const files = /* @__PURE__ */ Object.assign({ "./datas/timer.js": () => import("./timer-BacWPwXJ.js") });
|
|
8284
|
+
const modules = {}, files = /* @__PURE__ */ Object.assign({ "./datas/timer.js": () => import("./timer-BacWPwXJ.js") });
|
|
8285
8285
|
async function loadModules() {
|
|
8286
8286
|
const e = Object.keys(files).map(async (n) => {
|
|
8287
|
-
n.match(/\.\/datas\/(.+)\.js$/)[1],
|
|
8287
|
+
const a = n.match(/\.\/datas\/(.+)\.js$/)[1], m = await files[n]();
|
|
8288
|
+
modules[a] = m.default;
|
|
8288
8289
|
});
|
|
8289
8290
|
await Promise.all(e);
|
|
8290
8291
|
}
|
|
8291
|
-
|
|
8292
|
+
loadModules();
|
|
8292
8293
|
function registerCustom(lf, node) {
|
|
8293
8294
|
function hideHandle(item, data) {
|
|
8294
8295
|
if (Object.keys(data).length == 0) return !1;
|
|
@@ -8301,7 +8302,7 @@ function registerCustom(lf, node) {
|
|
|
8301
8302
|
}
|
|
8302
8303
|
function parseTemplateString(e) {
|
|
8303
8304
|
let n = "";
|
|
8304
|
-
return
|
|
8305
|
+
return console.log(modules), modules[node.type].nodeHtml.forEach((a) => {
|
|
8305
8306
|
var r;
|
|
8306
8307
|
let m = (r = a.value) == null ? void 0 : r.split(".").reduce((u, _) => u && u[_], e);
|
|
8307
8308
|
if ((a == null ? void 0 : a.component) == "date" && (Array.isArray(m) ? m = `${dayjs(m[0]).format(a["value-format"] || "YYYY-MM-DD HH:mm:ss")}到${dayjs(m[1]).format(a["value-format"] || "YYYY-MM-DD HH:mm:ss")}` : m = dayjs(m).format(a["value-format"] || "YYYY-MM-DD HH:mm:ss")), a != null && a.items) {
|
|
@@ -8395,7 +8396,7 @@ const _sfc_main$3 = {
|
|
|
8395
8396
|
span: 24
|
|
8396
8397
|
}
|
|
8397
8398
|
]
|
|
8398
|
-
}, n = ((a =
|
|
8399
|
+
}, n = ((a = modules[this.type]) == null ? void 0 : a.formConfig) || {};
|
|
8399
8400
|
return n != null && n.labelWidth && (e.labelWidth = n.labelWidth), n != null && n.labelPosition && (e.labelPosition = n.labelPosition), n != null && n.formItems && (e.formItems = n.formItems), e;
|
|
8400
8401
|
}
|
|
8401
8402
|
},
|