3h1-ui 3.0.0-next.223 → 3.0.0-next.225
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/es/index.js +88 -48
- package/lib/index.js +88 -48
- package/package.json +1 -1
package/es/index.js
CHANGED
|
@@ -11730,7 +11730,7 @@ const FormItem$2 = /* @__PURE__ */ defineComponent({
|
|
|
11730
11730
|
const isTableForm = computed(() => !!formProps2.value.formLabelInInput);
|
|
11731
11731
|
const componentsPropsRef = ref({});
|
|
11732
11732
|
watch(() => props2.formModel, () => {
|
|
11733
|
-
var _a2;
|
|
11733
|
+
var _a2, _b, _c, _d, _e;
|
|
11734
11734
|
const {
|
|
11735
11735
|
schema: schema2,
|
|
11736
11736
|
tableAction: tableAction2,
|
|
@@ -11762,7 +11762,7 @@ const FormItem$2 = /* @__PURE__ */ defineComponent({
|
|
|
11762
11762
|
...props2
|
|
11763
11763
|
});
|
|
11764
11764
|
}
|
|
11765
|
-
if (schema2.component.includes("Picker") || schema2.component.includes("Select")) {
|
|
11765
|
+
if (((_b = (_a2 = schema2.component) == null ? void 0 : _a2.includes) == null ? void 0 : _b.call(_a2, "Picker")) || ((_d = (_c = schema2.component) == null ? void 0 : _c.includes) == null ? void 0 : _d.call(_c, "Select"))) {
|
|
11766
11766
|
componentProps.getPopupContainer = () => document.body;
|
|
11767
11767
|
}
|
|
11768
11768
|
if (["RangePicker", "DatePicker"].includes(schema2.component)) {
|
|
@@ -11794,7 +11794,7 @@ const FormItem$2 = /* @__PURE__ */ defineComponent({
|
|
|
11794
11794
|
};
|
|
11795
11795
|
}
|
|
11796
11796
|
if (schema2.component === "Select") {
|
|
11797
|
-
const label = ((
|
|
11797
|
+
const label = ((_e = componentProps == null ? void 0 : componentProps.fieldNames) == null ? void 0 : _e.label) || "label";
|
|
11798
11798
|
componentProps = Object.assign({}, componentProps, {
|
|
11799
11799
|
showSearch: true,
|
|
11800
11800
|
filterOption: (input, option) => {
|
|
@@ -30043,6 +30043,8 @@ const ShyTag = /* @__PURE__ */ defineComponent({
|
|
|
30043
30043
|
...props2.fieldNames
|
|
30044
30044
|
}));
|
|
30045
30045
|
watch(() => props2.options, (val) => {
|
|
30046
|
+
if (!(val == null ? void 0 : val.length))
|
|
30047
|
+
return;
|
|
30046
30048
|
optionsRef.value = unref(val);
|
|
30047
30049
|
}, {
|
|
30048
30050
|
immediate: true,
|
|
@@ -30055,10 +30057,12 @@ const ShyTag = /* @__PURE__ */ defineComponent({
|
|
|
30055
30057
|
}, {
|
|
30056
30058
|
immediate: true
|
|
30057
30059
|
});
|
|
30058
|
-
const tag2 = computed(() =>
|
|
30059
|
-
[unref(fieldNames).
|
|
30060
|
-
|
|
30061
|
-
|
|
30060
|
+
const tag2 = computed(() => {
|
|
30061
|
+
return unref(optionsRef).find((item) => item[unref(fieldNames).value] == props2.value) ?? {
|
|
30062
|
+
[unref(fieldNames).label]: "-",
|
|
30063
|
+
[unref(fieldNames).color]: "var(--gray-5)",
|
|
30064
|
+
[unref(fieldNames).css]: ""
|
|
30065
|
+
};
|
|
30062
30066
|
});
|
|
30063
30067
|
const renderTag = computed(() => {
|
|
30064
30068
|
const [isTag, tagMode] = [props2.isTag, props2.tagMode];
|
|
@@ -49264,6 +49268,7 @@ const CustomCollapse = /* @__PURE__ */ defineComponent({
|
|
|
49264
49268
|
"onUpdate:activeKey": ($event) => collapseActiveKey.value = $event
|
|
49265
49269
|
}, {
|
|
49266
49270
|
default: () => [createVNode(Collapse.Panel, {
|
|
49271
|
+
"forceRender": true,
|
|
49267
49272
|
"key": field
|
|
49268
49273
|
}, {
|
|
49269
49274
|
default: () => [props2 == null ? void 0 : props2.renderGroup(componentProps == null ? void 0 : componentProps.schemas)],
|
|
@@ -49300,49 +49305,72 @@ const Descriptions = /* @__PURE__ */ defineComponent({
|
|
|
49300
49305
|
};
|
|
49301
49306
|
});
|
|
49302
49307
|
const handleValuePrecision = (item, data) => {
|
|
49303
|
-
|
|
49304
|
-
return slots[`${item.field}Value`] ? (_a2 = slots[`${item.field}Value`]) == null ? void 0 : _a2.call(slots, {
|
|
49305
|
-
model: data,
|
|
49306
|
-
field: data[`${item.field}`]
|
|
49307
|
-
}) : getProps.value.summaryTotalFields.includes(item.field) && isNumber$3(+data[`${item.field}`]) && !isNaN(+data[`${item.field}`]) ? (+data[`${item.field}`]).toFixed(getProps.value.summaryPrecision).replace(/\d(?=(?:\d{3})+(?:\.|$))/g, (match, offset2, string3) => {
|
|
49308
|
+
return getProps.value.summaryTotalFields.includes(item.field) && isNumber$3(+data[`${item.field}`]) && !isNaN(+data[`${item.field}`]) ? (+data[`${item.field}`]).toFixed(getProps.value.summaryPrecision).replace(/\d(?=(?:\d{3})+(?:\.|$))/g, (match, offset2, string3) => {
|
|
49308
49309
|
return match + (string3.charAt(offset2 + 1) === "." || offset2 === string3.length - 1 ? "" : ",");
|
|
49309
49310
|
}) : data[`${item.field}`];
|
|
49310
49311
|
};
|
|
49311
49312
|
emit("register", {
|
|
49312
49313
|
setDescProps
|
|
49313
49314
|
});
|
|
49314
|
-
const transformValue = (
|
|
49315
|
-
|
|
49316
|
-
|
|
49317
|
-
|
|
49318
|
-
|
|
49319
|
-
|
|
49320
|
-
|
|
49321
|
-
|
|
49322
|
-
|
|
49323
|
-
|
|
49324
|
-
|
|
49325
|
-
|
|
49326
|
-
|
|
49327
|
-
|
|
49328
|
-
|
|
49329
|
-
|
|
49330
|
-
|
|
49331
|
-
|
|
49332
|
-
|
|
49315
|
+
const transformValue = computed(() => {
|
|
49316
|
+
return (item) => {
|
|
49317
|
+
var _a2;
|
|
49318
|
+
const {
|
|
49319
|
+
field,
|
|
49320
|
+
componentProps: comProps,
|
|
49321
|
+
component,
|
|
49322
|
+
label
|
|
49323
|
+
} = item;
|
|
49324
|
+
const {
|
|
49325
|
+
data,
|
|
49326
|
+
summaryTotalFields
|
|
49327
|
+
} = unref(getProps);
|
|
49328
|
+
const componentProps = isFunction$6(comProps) ? (
|
|
49329
|
+
// @ts-ignore
|
|
49330
|
+
comProps({
|
|
49331
|
+
formModel: data
|
|
49332
|
+
})
|
|
49333
|
+
) : comProps;
|
|
49334
|
+
if (slots[`${item.field}Value`]) {
|
|
49335
|
+
return (_a2 = slots[`${item.field}Value`]) == null ? void 0 : _a2.call(slots, {
|
|
49336
|
+
model: data,
|
|
49337
|
+
field: data[`${item.field}`]
|
|
49338
|
+
});
|
|
49339
|
+
}
|
|
49340
|
+
if ((summaryTotalFields == null ? void 0 : summaryTotalFields.length) && summaryTotalFields.includes(field)) {
|
|
49341
|
+
return handleValuePrecision(item, data);
|
|
49342
|
+
}
|
|
49343
|
+
if ((componentProps == null ? void 0 : componentProps.options) || (componentProps == null ? void 0 : componentProps.api)) {
|
|
49344
|
+
let options = [];
|
|
49345
|
+
if (Array.isArray(componentProps.options)) {
|
|
49346
|
+
options = treeToList(componentProps.options);
|
|
49347
|
+
}
|
|
49348
|
+
return createVNode(ShyTag, mergeProps({
|
|
49349
|
+
"value": data[`${field}`]
|
|
49350
|
+
}, componentProps, {
|
|
49351
|
+
"options": options
|
|
49352
|
+
}), null);
|
|
49353
|
+
}
|
|
49354
|
+
if (["DatePicker", "MonthPicker", "RangePicker", "WeekPicker", "TimePicker"].includes(component)) {
|
|
49355
|
+
if (!data[`${field}`])
|
|
49356
|
+
return "";
|
|
49357
|
+
return dayjs$1(data[`${field}`]).format((componentProps == null ? void 0 : componentProps.valueFormat) || "YYYY-MM-DD");
|
|
49358
|
+
}
|
|
49359
|
+
if (component === "Table") {
|
|
49360
|
+
return createVNode(ShyFormTable, mergeProps(componentProps, {
|
|
49361
|
+
"isShowAddBtn": false,
|
|
49362
|
+
"isShowAction": false,
|
|
49363
|
+
"value": data[`${field}`]
|
|
49364
|
+
}), null);
|
|
49365
|
+
}
|
|
49366
|
+
if (component === "Divider") {
|
|
49367
|
+
return createVNode(Divider, componentProps, _isSlot(label) ? label : {
|
|
49368
|
+
default: () => [label]
|
|
49369
|
+
});
|
|
49333
49370
|
}
|
|
49334
|
-
return createVNode(ShyTag, mergeProps({
|
|
49335
|
-
"value": data[`${field}`]
|
|
49336
|
-
}, componentProps, {
|
|
49337
|
-
"options": options
|
|
49338
|
-
}), null);
|
|
49339
|
-
} else if (["DatePicker", "MonthPicker", "RangePicker", "WeekPicker", "TimePicker"].includes(component)) {
|
|
49340
|
-
if (!data[`${field}`])
|
|
49341
|
-
return "";
|
|
49342
|
-
return dayjs$1(data[`${field}`]).format((componentProps == null ? void 0 : componentProps.valueFormat) || "YYYY-MM-DD");
|
|
49343
|
-
} else
|
|
49344
49371
|
return data[`${field}`];
|
|
49345
|
-
|
|
49372
|
+
};
|
|
49373
|
+
});
|
|
49346
49374
|
const renderValue = (item) => {
|
|
49347
49375
|
var _a2;
|
|
49348
49376
|
const {
|
|
@@ -49364,12 +49392,13 @@ const Descriptions = /* @__PURE__ */ defineComponent({
|
|
|
49364
49392
|
return render3(unref(getValues)(item));
|
|
49365
49393
|
} else {
|
|
49366
49394
|
const contentStyles = {
|
|
49395
|
+
overflow: "hidden",
|
|
49367
49396
|
...unref(getProps).contentStyle,
|
|
49368
49397
|
...contentStyle
|
|
49369
49398
|
};
|
|
49370
49399
|
return createVNode("div", {
|
|
49371
49400
|
"style": contentStyles
|
|
49372
|
-
}, [transformValue(item)]);
|
|
49401
|
+
}, [unref(transformValue)(item)]);
|
|
49373
49402
|
}
|
|
49374
49403
|
};
|
|
49375
49404
|
const labelAlignCss = computed(() => {
|
|
@@ -49491,7 +49520,7 @@ const Descriptions = /* @__PURE__ */ defineComponent({
|
|
|
49491
49520
|
}), [[vShow, isShow]]);
|
|
49492
49521
|
};
|
|
49493
49522
|
const renderSchema = (group) => {
|
|
49494
|
-
var _a2, _b;
|
|
49523
|
+
var _a2, _b, _c;
|
|
49495
49524
|
if (isArray$3(group)) {
|
|
49496
49525
|
let _slot2;
|
|
49497
49526
|
const props3 = pick$1(unref(getProps), ["bordered"]);
|
|
@@ -49513,10 +49542,10 @@ const Descriptions = /* @__PURE__ */ defineComponent({
|
|
|
49513
49542
|
const componentProps = isFunction$6(comProps) ? (
|
|
49514
49543
|
// @ts-ignore
|
|
49515
49544
|
comProps({
|
|
49516
|
-
formModel: unref(
|
|
49545
|
+
formModel: (_a2 = unref(getProps)) == null ? void 0 : _a2.data
|
|
49517
49546
|
})
|
|
49518
49547
|
) : comProps;
|
|
49519
|
-
const realSpan = ((colProps2 == null ? void 0 : colProps2.span) || ((
|
|
49548
|
+
const realSpan = ((colProps2 == null ? void 0 : colProps2.span) || ((_c = (_b = unref(getProps)) == null ? void 0 : _b.baseColProps) == null ? void 0 : _c.span) || basicColProps) / basicRowProps;
|
|
49520
49549
|
const style2 = {
|
|
49521
49550
|
[`--col-span`]: `${realSpan * 100}%`,
|
|
49522
49551
|
[`--w-gap`]: `${realSpan * basicGap}px`
|
|
@@ -49537,7 +49566,10 @@ const Descriptions = /* @__PURE__ */ defineComponent({
|
|
|
49537
49566
|
"style": style2,
|
|
49538
49567
|
"class": `${prefixCls2}-group`
|
|
49539
49568
|
}, [createVNode(CustomCollapse, {
|
|
49540
|
-
"schema":
|
|
49569
|
+
"schema": {
|
|
49570
|
+
...group,
|
|
49571
|
+
componentProps
|
|
49572
|
+
},
|
|
49541
49573
|
"renderGroup": renderGroup
|
|
49542
49574
|
}, null)]), [[vShow, isShow]]);
|
|
49543
49575
|
case "Custom":
|
|
@@ -49562,10 +49594,18 @@ const Descriptions = /* @__PURE__ */ defineComponent({
|
|
|
49562
49594
|
if (!isArray$3(schemas))
|
|
49563
49595
|
return [];
|
|
49564
49596
|
return schemas.reduce((prev2, curr) => {
|
|
49565
|
-
if (curr
|
|
49597
|
+
if ((curr == null ? void 0 : curr.component) === "Group") {
|
|
49566
49598
|
prev2.push(curr);
|
|
49567
49599
|
return prev2;
|
|
49568
49600
|
}
|
|
49601
|
+
if ((curr == null ? void 0 : curr.component) === "Divider") {
|
|
49602
|
+
prev2.push(merge$2(curr, {
|
|
49603
|
+
componentProps: {
|
|
49604
|
+
groupType: "Divider"
|
|
49605
|
+
}
|
|
49606
|
+
}));
|
|
49607
|
+
return prev2;
|
|
49608
|
+
}
|
|
49569
49609
|
if (!isArray$3(prev2[prev2.length - 1])) {
|
|
49570
49610
|
prev2.push([]);
|
|
49571
49611
|
}
|
package/lib/index.js
CHANGED
|
@@ -11754,7 +11754,7 @@ const FormItem$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
11754
11754
|
const isTableForm = vue.computed(() => !!formProps2.value.formLabelInInput);
|
|
11755
11755
|
const componentsPropsRef = vue.ref({});
|
|
11756
11756
|
vue.watch(() => props2.formModel, () => {
|
|
11757
|
-
var _a2;
|
|
11757
|
+
var _a2, _b, _c, _d, _e;
|
|
11758
11758
|
const {
|
|
11759
11759
|
schema: schema2,
|
|
11760
11760
|
tableAction: tableAction2,
|
|
@@ -11786,7 +11786,7 @@ const FormItem$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
11786
11786
|
...props2
|
|
11787
11787
|
});
|
|
11788
11788
|
}
|
|
11789
|
-
if (schema2.component.includes("Picker") || schema2.component.includes("Select")) {
|
|
11789
|
+
if (((_b = (_a2 = schema2.component) == null ? void 0 : _a2.includes) == null ? void 0 : _b.call(_a2, "Picker")) || ((_d = (_c = schema2.component) == null ? void 0 : _c.includes) == null ? void 0 : _d.call(_c, "Select"))) {
|
|
11790
11790
|
componentProps.getPopupContainer = () => document.body;
|
|
11791
11791
|
}
|
|
11792
11792
|
if (["RangePicker", "DatePicker"].includes(schema2.component)) {
|
|
@@ -11818,7 +11818,7 @@ const FormItem$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
11818
11818
|
};
|
|
11819
11819
|
}
|
|
11820
11820
|
if (schema2.component === "Select") {
|
|
11821
|
-
const label = ((
|
|
11821
|
+
const label = ((_e = componentProps == null ? void 0 : componentProps.fieldNames) == null ? void 0 : _e.label) || "label";
|
|
11822
11822
|
componentProps = Object.assign({}, componentProps, {
|
|
11823
11823
|
showSearch: true,
|
|
11824
11824
|
filterOption: (input, option) => {
|
|
@@ -30067,6 +30067,8 @@ const ShyTag = /* @__PURE__ */ vue.defineComponent({
|
|
|
30067
30067
|
...props2.fieldNames
|
|
30068
30068
|
}));
|
|
30069
30069
|
vue.watch(() => props2.options, (val) => {
|
|
30070
|
+
if (!(val == null ? void 0 : val.length))
|
|
30071
|
+
return;
|
|
30070
30072
|
optionsRef.value = vue.unref(val);
|
|
30071
30073
|
}, {
|
|
30072
30074
|
immediate: true,
|
|
@@ -30079,10 +30081,12 @@ const ShyTag = /* @__PURE__ */ vue.defineComponent({
|
|
|
30079
30081
|
}, {
|
|
30080
30082
|
immediate: true
|
|
30081
30083
|
});
|
|
30082
|
-
const tag2 = vue.computed(() =>
|
|
30083
|
-
[vue.unref(fieldNames).
|
|
30084
|
-
|
|
30085
|
-
|
|
30084
|
+
const tag2 = vue.computed(() => {
|
|
30085
|
+
return vue.unref(optionsRef).find((item) => item[vue.unref(fieldNames).value] == props2.value) ?? {
|
|
30086
|
+
[vue.unref(fieldNames).label]: "-",
|
|
30087
|
+
[vue.unref(fieldNames).color]: "var(--gray-5)",
|
|
30088
|
+
[vue.unref(fieldNames).css]: ""
|
|
30089
|
+
};
|
|
30086
30090
|
});
|
|
30087
30091
|
const renderTag = vue.computed(() => {
|
|
30088
30092
|
const [isTag, tagMode] = [props2.isTag, props2.tagMode];
|
|
@@ -49288,6 +49292,7 @@ const CustomCollapse = /* @__PURE__ */ vue.defineComponent({
|
|
|
49288
49292
|
"onUpdate:activeKey": ($event) => collapseActiveKey.value = $event
|
|
49289
49293
|
}, {
|
|
49290
49294
|
default: () => [vue.createVNode(antDesignVue.Collapse.Panel, {
|
|
49295
|
+
"forceRender": true,
|
|
49291
49296
|
"key": field
|
|
49292
49297
|
}, {
|
|
49293
49298
|
default: () => [props2 == null ? void 0 : props2.renderGroup(componentProps == null ? void 0 : componentProps.schemas)],
|
|
@@ -49324,49 +49329,72 @@ const Descriptions = /* @__PURE__ */ vue.defineComponent({
|
|
|
49324
49329
|
};
|
|
49325
49330
|
});
|
|
49326
49331
|
const handleValuePrecision = (item, data) => {
|
|
49327
|
-
|
|
49328
|
-
return slots[`${item.field}Value`] ? (_a2 = slots[`${item.field}Value`]) == null ? void 0 : _a2.call(slots, {
|
|
49329
|
-
model: data,
|
|
49330
|
-
field: data[`${item.field}`]
|
|
49331
|
-
}) : getProps.value.summaryTotalFields.includes(item.field) && utils$1.isNumber(+data[`${item.field}`]) && !isNaN(+data[`${item.field}`]) ? (+data[`${item.field}`]).toFixed(getProps.value.summaryPrecision).replace(/\d(?=(?:\d{3})+(?:\.|$))/g, (match, offset2, string3) => {
|
|
49332
|
+
return getProps.value.summaryTotalFields.includes(item.field) && utils$1.isNumber(+data[`${item.field}`]) && !isNaN(+data[`${item.field}`]) ? (+data[`${item.field}`]).toFixed(getProps.value.summaryPrecision).replace(/\d(?=(?:\d{3})+(?:\.|$))/g, (match, offset2, string3) => {
|
|
49332
49333
|
return match + (string3.charAt(offset2 + 1) === "." || offset2 === string3.length - 1 ? "" : ",");
|
|
49333
49334
|
}) : data[`${item.field}`];
|
|
49334
49335
|
};
|
|
49335
49336
|
emit("register", {
|
|
49336
49337
|
setDescProps
|
|
49337
49338
|
});
|
|
49338
|
-
const transformValue = (
|
|
49339
|
-
|
|
49340
|
-
|
|
49341
|
-
|
|
49342
|
-
|
|
49343
|
-
|
|
49344
|
-
|
|
49345
|
-
|
|
49346
|
-
|
|
49347
|
-
|
|
49348
|
-
|
|
49349
|
-
|
|
49350
|
-
|
|
49351
|
-
|
|
49352
|
-
|
|
49353
|
-
|
|
49354
|
-
|
|
49355
|
-
|
|
49356
|
-
|
|
49339
|
+
const transformValue = vue.computed(() => {
|
|
49340
|
+
return (item) => {
|
|
49341
|
+
var _a2;
|
|
49342
|
+
const {
|
|
49343
|
+
field,
|
|
49344
|
+
componentProps: comProps,
|
|
49345
|
+
component,
|
|
49346
|
+
label
|
|
49347
|
+
} = item;
|
|
49348
|
+
const {
|
|
49349
|
+
data,
|
|
49350
|
+
summaryTotalFields
|
|
49351
|
+
} = vue.unref(getProps);
|
|
49352
|
+
const componentProps = utils$1.isFunction(comProps) ? (
|
|
49353
|
+
// @ts-ignore
|
|
49354
|
+
comProps({
|
|
49355
|
+
formModel: data
|
|
49356
|
+
})
|
|
49357
|
+
) : comProps;
|
|
49358
|
+
if (slots[`${item.field}Value`]) {
|
|
49359
|
+
return (_a2 = slots[`${item.field}Value`]) == null ? void 0 : _a2.call(slots, {
|
|
49360
|
+
model: data,
|
|
49361
|
+
field: data[`${item.field}`]
|
|
49362
|
+
});
|
|
49363
|
+
}
|
|
49364
|
+
if ((summaryTotalFields == null ? void 0 : summaryTotalFields.length) && summaryTotalFields.includes(field)) {
|
|
49365
|
+
return handleValuePrecision(item, data);
|
|
49366
|
+
}
|
|
49367
|
+
if ((componentProps == null ? void 0 : componentProps.options) || (componentProps == null ? void 0 : componentProps.api)) {
|
|
49368
|
+
let options = [];
|
|
49369
|
+
if (Array.isArray(componentProps.options)) {
|
|
49370
|
+
options = treeToList(componentProps.options);
|
|
49371
|
+
}
|
|
49372
|
+
return vue.createVNode(ShyTag, vue.mergeProps({
|
|
49373
|
+
"value": data[`${field}`]
|
|
49374
|
+
}, componentProps, {
|
|
49375
|
+
"options": options
|
|
49376
|
+
}), null);
|
|
49377
|
+
}
|
|
49378
|
+
if (["DatePicker", "MonthPicker", "RangePicker", "WeekPicker", "TimePicker"].includes(component)) {
|
|
49379
|
+
if (!data[`${field}`])
|
|
49380
|
+
return "";
|
|
49381
|
+
return dayjs$1(data[`${field}`]).format((componentProps == null ? void 0 : componentProps.valueFormat) || "YYYY-MM-DD");
|
|
49382
|
+
}
|
|
49383
|
+
if (component === "Table") {
|
|
49384
|
+
return vue.createVNode(ShyFormTable, vue.mergeProps(componentProps, {
|
|
49385
|
+
"isShowAddBtn": false,
|
|
49386
|
+
"isShowAction": false,
|
|
49387
|
+
"value": data[`${field}`]
|
|
49388
|
+
}), null);
|
|
49389
|
+
}
|
|
49390
|
+
if (component === "Divider") {
|
|
49391
|
+
return vue.createVNode(Divider, componentProps, _isSlot(label) ? label : {
|
|
49392
|
+
default: () => [label]
|
|
49393
|
+
});
|
|
49357
49394
|
}
|
|
49358
|
-
return vue.createVNode(ShyTag, vue.mergeProps({
|
|
49359
|
-
"value": data[`${field}`]
|
|
49360
|
-
}, componentProps, {
|
|
49361
|
-
"options": options
|
|
49362
|
-
}), null);
|
|
49363
|
-
} else if (["DatePicker", "MonthPicker", "RangePicker", "WeekPicker", "TimePicker"].includes(component)) {
|
|
49364
|
-
if (!data[`${field}`])
|
|
49365
|
-
return "";
|
|
49366
|
-
return dayjs$1(data[`${field}`]).format((componentProps == null ? void 0 : componentProps.valueFormat) || "YYYY-MM-DD");
|
|
49367
|
-
} else
|
|
49368
49395
|
return data[`${field}`];
|
|
49369
|
-
|
|
49396
|
+
};
|
|
49397
|
+
});
|
|
49370
49398
|
const renderValue = (item) => {
|
|
49371
49399
|
var _a2;
|
|
49372
49400
|
const {
|
|
@@ -49388,12 +49416,13 @@ const Descriptions = /* @__PURE__ */ vue.defineComponent({
|
|
|
49388
49416
|
return render3(vue.unref(getValues)(item));
|
|
49389
49417
|
} else {
|
|
49390
49418
|
const contentStyles = {
|
|
49419
|
+
overflow: "hidden",
|
|
49391
49420
|
...vue.unref(getProps).contentStyle,
|
|
49392
49421
|
...contentStyle
|
|
49393
49422
|
};
|
|
49394
49423
|
return vue.createVNode("div", {
|
|
49395
49424
|
"style": contentStyles
|
|
49396
|
-
}, [transformValue(item)]);
|
|
49425
|
+
}, [vue.unref(transformValue)(item)]);
|
|
49397
49426
|
}
|
|
49398
49427
|
};
|
|
49399
49428
|
const labelAlignCss = vue.computed(() => {
|
|
@@ -49515,7 +49544,7 @@ const Descriptions = /* @__PURE__ */ vue.defineComponent({
|
|
|
49515
49544
|
}), [[vue.vShow, isShow]]);
|
|
49516
49545
|
};
|
|
49517
49546
|
const renderSchema = (group) => {
|
|
49518
|
-
var _a2, _b;
|
|
49547
|
+
var _a2, _b, _c;
|
|
49519
49548
|
if (utils$1.isArray(group)) {
|
|
49520
49549
|
let _slot2;
|
|
49521
49550
|
const props3 = pick$1(vue.unref(getProps), ["bordered"]);
|
|
@@ -49537,10 +49566,10 @@ const Descriptions = /* @__PURE__ */ vue.defineComponent({
|
|
|
49537
49566
|
const componentProps = utils$1.isFunction(comProps) ? (
|
|
49538
49567
|
// @ts-ignore
|
|
49539
49568
|
comProps({
|
|
49540
|
-
formModel: vue.unref(
|
|
49569
|
+
formModel: (_a2 = vue.unref(getProps)) == null ? void 0 : _a2.data
|
|
49541
49570
|
})
|
|
49542
49571
|
) : comProps;
|
|
49543
|
-
const realSpan = ((colProps2 == null ? void 0 : colProps2.span) || ((
|
|
49572
|
+
const realSpan = ((colProps2 == null ? void 0 : colProps2.span) || ((_c = (_b = vue.unref(getProps)) == null ? void 0 : _b.baseColProps) == null ? void 0 : _c.span) || basicColProps) / basicRowProps;
|
|
49544
49573
|
const style2 = {
|
|
49545
49574
|
[`--col-span`]: `${realSpan * 100}%`,
|
|
49546
49575
|
[`--w-gap`]: `${realSpan * basicGap}px`
|
|
@@ -49561,7 +49590,10 @@ const Descriptions = /* @__PURE__ */ vue.defineComponent({
|
|
|
49561
49590
|
"style": style2,
|
|
49562
49591
|
"class": `${prefixCls2}-group`
|
|
49563
49592
|
}, [vue.createVNode(CustomCollapse, {
|
|
49564
|
-
"schema":
|
|
49593
|
+
"schema": {
|
|
49594
|
+
...group,
|
|
49595
|
+
componentProps
|
|
49596
|
+
},
|
|
49565
49597
|
"renderGroup": renderGroup
|
|
49566
49598
|
}, null)]), [[vue.vShow, isShow]]);
|
|
49567
49599
|
case "Custom":
|
|
@@ -49586,10 +49618,18 @@ const Descriptions = /* @__PURE__ */ vue.defineComponent({
|
|
|
49586
49618
|
if (!utils$1.isArray(schemas))
|
|
49587
49619
|
return [];
|
|
49588
49620
|
return schemas.reduce((prev2, curr) => {
|
|
49589
|
-
if (curr
|
|
49621
|
+
if ((curr == null ? void 0 : curr.component) === "Group") {
|
|
49590
49622
|
prev2.push(curr);
|
|
49591
49623
|
return prev2;
|
|
49592
49624
|
}
|
|
49625
|
+
if ((curr == null ? void 0 : curr.component) === "Divider") {
|
|
49626
|
+
prev2.push(merge$2(curr, {
|
|
49627
|
+
componentProps: {
|
|
49628
|
+
groupType: "Divider"
|
|
49629
|
+
}
|
|
49630
|
+
}));
|
|
49631
|
+
return prev2;
|
|
49632
|
+
}
|
|
49593
49633
|
if (!utils$1.isArray(prev2[prev2.length - 1])) {
|
|
49594
49634
|
prev2.push([]);
|
|
49595
49635
|
}
|