3h1-ui 3.0.0-next.224 → 3.0.0-next.226
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 +108 -72
- package/lib/index.js +108 -72
- package/package.json +1 -1
package/es/index.js
CHANGED
|
@@ -4694,7 +4694,7 @@ const _hoisted_7 = {
|
|
|
4694
4694
|
key: 0,
|
|
4695
4695
|
class: "cursor-pointer px-2 py-1 flex items-center"
|
|
4696
4696
|
};
|
|
4697
|
-
const prefixCls$
|
|
4697
|
+
const prefixCls$8 = "shy-icon-picker";
|
|
4698
4698
|
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
4699
4699
|
__name: "IconPicker",
|
|
4700
4700
|
props: {
|
|
@@ -4774,7 +4774,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
4774
4774
|
disabled: "",
|
|
4775
4775
|
style: normalizeStyle$1({ width: _ctx.width }),
|
|
4776
4776
|
placeholder: "点击选择图标",
|
|
4777
|
-
class: normalizeClass(prefixCls$
|
|
4777
|
+
class: normalizeClass(prefixCls$8),
|
|
4778
4778
|
value: currentSelect.value,
|
|
4779
4779
|
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => currentSelect.value = $event)
|
|
4780
4780
|
}, {
|
|
@@ -4784,7 +4784,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
4784
4784
|
trigger: "click",
|
|
4785
4785
|
modelValue: visible.value,
|
|
4786
4786
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => visible.value = $event),
|
|
4787
|
-
overlayClassName: `${prefixCls$
|
|
4787
|
+
overlayClassName: `${prefixCls$8}-popover`
|
|
4788
4788
|
}, {
|
|
4789
4789
|
title: withCtx(() => [
|
|
4790
4790
|
createElementVNode("div", _hoisted_1$n, [
|
|
@@ -4851,7 +4851,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
4851
4851
|
}
|
|
4852
4852
|
});
|
|
4853
4853
|
const IconPicker_vue_vue_type_style_index_0_lang = "";
|
|
4854
|
-
const prefixCls$
|
|
4854
|
+
const prefixCls$7 = "shy-basic-arrow";
|
|
4855
4855
|
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
4856
4856
|
__name: "BasicArrow",
|
|
4857
4857
|
props: {
|
|
@@ -4877,9 +4877,9 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
4877
4877
|
const getClass = computed(() => {
|
|
4878
4878
|
const { expand, up, down, inset } = props2;
|
|
4879
4879
|
return [
|
|
4880
|
-
prefixCls$
|
|
4880
|
+
prefixCls$7,
|
|
4881
4881
|
{
|
|
4882
|
-
[`${prefixCls$
|
|
4882
|
+
[`${prefixCls$7}--active`]: expand,
|
|
4883
4883
|
up,
|
|
4884
4884
|
inset,
|
|
4885
4885
|
down
|
|
@@ -7507,7 +7507,7 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7507
7507
|
}
|
|
7508
7508
|
const CollapseHeader = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["render", _sfc_render$z]]);
|
|
7509
7509
|
const _hoisted_1$m = { class: "p-2" };
|
|
7510
|
-
const prefixCls$
|
|
7510
|
+
const prefixCls$6 = "shy-collapse-container";
|
|
7511
7511
|
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
7512
7512
|
__name: "CollapseContainer",
|
|
7513
7513
|
props: {
|
|
@@ -7548,15 +7548,15 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
7548
7548
|
});
|
|
7549
7549
|
return (_ctx, _cache) => {
|
|
7550
7550
|
return openBlock(), createElementBlock("div", {
|
|
7551
|
-
class: normalizeClass(prefixCls$
|
|
7551
|
+
class: normalizeClass(prefixCls$6)
|
|
7552
7552
|
}, [
|
|
7553
7553
|
createVNode(CollapseHeader, mergeProps(props2, {
|
|
7554
|
-
prefixCls: prefixCls$
|
|
7554
|
+
prefixCls: prefixCls$6,
|
|
7555
7555
|
show: show.value,
|
|
7556
7556
|
onExpand: handleExpand,
|
|
7557
7557
|
class: [
|
|
7558
|
-
`${prefixCls$
|
|
7559
|
-
show.value ? "" : `${prefixCls$
|
|
7558
|
+
`${prefixCls$6}__header`,
|
|
7559
|
+
show.value ? "" : `${prefixCls$6}__header-action`
|
|
7560
7560
|
]
|
|
7561
7561
|
}), {
|
|
7562
7562
|
title: withCtx(() => [
|
|
@@ -7575,7 +7575,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
7575
7575
|
active: __props.loading
|
|
7576
7576
|
}, null, 8, ["active"])) : withDirectives((openBlock(), createElementBlock("div", {
|
|
7577
7577
|
key: 1,
|
|
7578
|
-
class: normalizeClass(`${prefixCls$
|
|
7578
|
+
class: normalizeClass(`${prefixCls$6}__body`)
|
|
7579
7579
|
}, [
|
|
7580
7580
|
renderSlot(_ctx.$slots, "default")
|
|
7581
7581
|
], 2)), [
|
|
@@ -7587,7 +7587,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
7587
7587
|
]),
|
|
7588
7588
|
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", {
|
|
7589
7589
|
key: 0,
|
|
7590
|
-
class: normalizeClass(`${prefixCls$
|
|
7590
|
+
class: normalizeClass(`${prefixCls$6}__footer`)
|
|
7591
7591
|
}, [
|
|
7592
7592
|
renderSlot(_ctx.$slots, "footer")
|
|
7593
7593
|
], 2)) : createCommentVNode("", true)
|
|
@@ -8950,7 +8950,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8950
8950
|
], 64);
|
|
8951
8951
|
}
|
|
8952
8952
|
const ModalFooter = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$s]]);
|
|
8953
|
-
const prefixCls$
|
|
8953
|
+
const prefixCls$5 = "shy-basic-title";
|
|
8954
8954
|
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
8955
8955
|
__name: "BasicTitle",
|
|
8956
8956
|
props: {
|
|
@@ -8977,9 +8977,9 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
8977
8977
|
const props2 = __props;
|
|
8978
8978
|
const slots = useSlots();
|
|
8979
8979
|
const getClass = computed(() => [
|
|
8980
|
-
prefixCls$
|
|
8981
|
-
{ [`${prefixCls$
|
|
8982
|
-
{ [`${prefixCls$
|
|
8980
|
+
prefixCls$5,
|
|
8981
|
+
{ [`${prefixCls$5}-show-span`]: props2.span && slots.default },
|
|
8982
|
+
{ [`${prefixCls$5}-normal`]: props2.normal }
|
|
8983
8983
|
]);
|
|
8984
8984
|
return (_ctx, _cache) => {
|
|
8985
8985
|
return openBlock(), createElementBlock("span", {
|
|
@@ -8988,7 +8988,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
8988
8988
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
8989
8989
|
__props.helpMessage ? (openBlock(), createBlock(unref(BasicHelp), {
|
|
8990
8990
|
key: 0,
|
|
8991
|
-
class: normalizeClass(`${prefixCls$
|
|
8991
|
+
class: normalizeClass(`${prefixCls$5}-help`),
|
|
8992
8992
|
text: __props.helpMessage
|
|
8993
8993
|
}, null, 8, ["class", "text"])) : createCommentVNode("", true)
|
|
8994
8994
|
], 2);
|
|
@@ -9640,7 +9640,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9640
9640
|
], 2);
|
|
9641
9641
|
}
|
|
9642
9642
|
const PageWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render$o]]);
|
|
9643
|
-
const prefixCls$
|
|
9643
|
+
const prefixCls$4 = "shy-basic-page-second";
|
|
9644
9644
|
const PageSecond = /* @__PURE__ */ defineComponent({
|
|
9645
9645
|
props: {
|
|
9646
9646
|
title: {
|
|
@@ -9685,20 +9685,20 @@ const PageSecond = /* @__PURE__ */ defineComponent({
|
|
|
9685
9685
|
return () => {
|
|
9686
9686
|
var _a2;
|
|
9687
9687
|
return createVNode("div", {
|
|
9688
|
-
"class": `${prefixCls$
|
|
9688
|
+
"class": `${prefixCls$4}-wrapper`
|
|
9689
9689
|
}, [createVNode("div", {
|
|
9690
|
-
"class": `${prefixCls$
|
|
9690
|
+
"class": `${prefixCls$4}-header`
|
|
9691
9691
|
}, [createVNode(ArrowLeftOutlined$1, {
|
|
9692
|
-
"class": `${prefixCls$
|
|
9692
|
+
"class": `${prefixCls$4}-header-icon`,
|
|
9693
9693
|
"onClick": handleClick
|
|
9694
9694
|
}, null), createVNode("div", {
|
|
9695
|
-
"class": `${prefixCls$
|
|
9695
|
+
"class": `${prefixCls$4}-header-title`
|
|
9696
9696
|
}, [createVNode("div", {
|
|
9697
9697
|
"style": "margin-right:10px"
|
|
9698
9698
|
}, [(slots == null ? void 0 : slots.title) ? slots == null ? void 0 : slots.title() : props2.title]), (slots == null ? void 0 : slots.titleAfter) ? slots == null ? void 0 : slots.titleAfter() : null])]), createVNode("div", {
|
|
9699
|
-
"class": `${prefixCls$
|
|
9699
|
+
"class": `${prefixCls$4}-body`
|
|
9700
9700
|
}, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)]), props2.isShowFooter ? createVNode("div", {
|
|
9701
|
-
"class": `${prefixCls$
|
|
9701
|
+
"class": `${prefixCls$4}-footer`
|
|
9702
9702
|
}, [createVNode(Space, null, {
|
|
9703
9703
|
default: () => {
|
|
9704
9704
|
var _a3, _b, _c;
|
|
@@ -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) => {
|
|
@@ -26559,7 +26559,7 @@ const index$6 = "";
|
|
|
26559
26559
|
function _isSlot$7(s2) {
|
|
26560
26560
|
return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !isVNode(s2);
|
|
26561
26561
|
}
|
|
26562
|
-
const prefixCls$
|
|
26562
|
+
const prefixCls$3 = "context-menu";
|
|
26563
26563
|
const props$4 = {
|
|
26564
26564
|
width: {
|
|
26565
26565
|
type: Number,
|
|
@@ -26678,7 +26678,7 @@ const contextMenuVue = /* @__PURE__ */ defineComponent({
|
|
|
26678
26678
|
if (!children || children.length === 0) {
|
|
26679
26679
|
return createVNode(Fragment, null, [createVNode(Menu.Item, {
|
|
26680
26680
|
"disabled": disabled,
|
|
26681
|
-
"class": `${prefixCls$
|
|
26681
|
+
"class": `${prefixCls$3}__item`,
|
|
26682
26682
|
"key": label
|
|
26683
26683
|
}, {
|
|
26684
26684
|
default: () => [createVNode(ItemContent, contentProps, null)]
|
|
@@ -26691,7 +26691,7 @@ const contextMenuVue = /* @__PURE__ */ defineComponent({
|
|
|
26691
26691
|
return createVNode(Menu.SubMenu, {
|
|
26692
26692
|
"key": label,
|
|
26693
26693
|
"disabled": disabled,
|
|
26694
|
-
"popupClassName": `${prefixCls$
|
|
26694
|
+
"popupClassName": `${prefixCls$3}__popup`
|
|
26695
26695
|
}, {
|
|
26696
26696
|
title: () => createVNode(ItemContent, contentProps, null),
|
|
26697
26697
|
default: () => renderMenuItem(children)
|
|
@@ -26707,7 +26707,7 @@ const contextMenuVue = /* @__PURE__ */ defineComponent({
|
|
|
26707
26707
|
items
|
|
26708
26708
|
} = props2;
|
|
26709
26709
|
return createVNode("div", {
|
|
26710
|
-
"class": prefixCls$
|
|
26710
|
+
"class": prefixCls$3
|
|
26711
26711
|
}, [createVNode(Menu, {
|
|
26712
26712
|
"inlineIndent": 12,
|
|
26713
26713
|
"mode": "vertical",
|
|
@@ -35265,6 +35265,9 @@ const makeStyle = (path, styleFn) => {
|
|
|
35265
35265
|
}), hashId];
|
|
35266
35266
|
};
|
|
35267
35267
|
};
|
|
35268
|
+
const {
|
|
35269
|
+
prefixCls: prefixCls$2
|
|
35270
|
+
} = useDesign$1("color-picker");
|
|
35268
35271
|
const {
|
|
35269
35272
|
useToken
|
|
35270
35273
|
} = theme;
|
|
@@ -35565,6 +35568,7 @@ const ColorPickerPanel = /* @__PURE__ */ defineComponent({
|
|
|
35565
35568
|
}
|
|
35566
35569
|
}, {
|
|
35567
35570
|
default: () => [createVNode("div", {
|
|
35571
|
+
"class": prefixCls$2,
|
|
35568
35572
|
"style": {
|
|
35569
35573
|
backgroundColor: props2.value,
|
|
35570
35574
|
width: "48px",
|
|
@@ -49305,49 +49309,72 @@ const Descriptions = /* @__PURE__ */ defineComponent({
|
|
|
49305
49309
|
};
|
|
49306
49310
|
});
|
|
49307
49311
|
const handleValuePrecision = (item, data) => {
|
|
49308
|
-
|
|
49309
|
-
return slots[`${item.field}Value`] ? (_a2 = slots[`${item.field}Value`]) == null ? void 0 : _a2.call(slots, {
|
|
49310
|
-
model: data,
|
|
49311
|
-
field: data[`${item.field}`]
|
|
49312
|
-
}) : 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) => {
|
|
49312
|
+
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) => {
|
|
49313
49313
|
return match + (string3.charAt(offset2 + 1) === "." || offset2 === string3.length - 1 ? "" : ",");
|
|
49314
49314
|
}) : data[`${item.field}`];
|
|
49315
49315
|
};
|
|
49316
49316
|
emit("register", {
|
|
49317
49317
|
setDescProps
|
|
49318
49318
|
});
|
|
49319
|
-
const transformValue = (
|
|
49320
|
-
|
|
49321
|
-
|
|
49322
|
-
|
|
49323
|
-
|
|
49324
|
-
|
|
49325
|
-
|
|
49326
|
-
|
|
49327
|
-
|
|
49328
|
-
|
|
49329
|
-
|
|
49330
|
-
|
|
49331
|
-
|
|
49332
|
-
|
|
49333
|
-
|
|
49334
|
-
|
|
49335
|
-
|
|
49336
|
-
|
|
49337
|
-
|
|
49319
|
+
const transformValue = computed(() => {
|
|
49320
|
+
return (item) => {
|
|
49321
|
+
var _a2;
|
|
49322
|
+
const {
|
|
49323
|
+
field,
|
|
49324
|
+
componentProps: comProps,
|
|
49325
|
+
component,
|
|
49326
|
+
label
|
|
49327
|
+
} = item;
|
|
49328
|
+
const {
|
|
49329
|
+
data,
|
|
49330
|
+
summaryTotalFields
|
|
49331
|
+
} = unref(getProps);
|
|
49332
|
+
const componentProps = isFunction$6(comProps) ? (
|
|
49333
|
+
// @ts-ignore
|
|
49334
|
+
comProps({
|
|
49335
|
+
formModel: data
|
|
49336
|
+
})
|
|
49337
|
+
) : comProps;
|
|
49338
|
+
if (slots[`${item.field}Value`]) {
|
|
49339
|
+
return (_a2 = slots[`${item.field}Value`]) == null ? void 0 : _a2.call(slots, {
|
|
49340
|
+
model: data,
|
|
49341
|
+
field: data[`${item.field}`]
|
|
49342
|
+
});
|
|
49343
|
+
}
|
|
49344
|
+
if ((summaryTotalFields == null ? void 0 : summaryTotalFields.length) && summaryTotalFields.includes(field)) {
|
|
49345
|
+
return handleValuePrecision(item, data);
|
|
49346
|
+
}
|
|
49347
|
+
if ((componentProps == null ? void 0 : componentProps.options) || (componentProps == null ? void 0 : componentProps.api)) {
|
|
49348
|
+
let options = [];
|
|
49349
|
+
if (Array.isArray(componentProps.options)) {
|
|
49350
|
+
options = treeToList(componentProps.options);
|
|
49351
|
+
}
|
|
49352
|
+
return createVNode(ShyTag, mergeProps({
|
|
49353
|
+
"value": data[`${field}`]
|
|
49354
|
+
}, componentProps, {
|
|
49355
|
+
"options": options
|
|
49356
|
+
}), null);
|
|
49357
|
+
}
|
|
49358
|
+
if (["DatePicker", "MonthPicker", "RangePicker", "WeekPicker", "TimePicker"].includes(component)) {
|
|
49359
|
+
if (!data[`${field}`])
|
|
49360
|
+
return "";
|
|
49361
|
+
return dayjs$1(data[`${field}`]).format((componentProps == null ? void 0 : componentProps.valueFormat) || "YYYY-MM-DD");
|
|
49362
|
+
}
|
|
49363
|
+
if (component === "Table") {
|
|
49364
|
+
return createVNode(ShyFormTable, mergeProps(componentProps, {
|
|
49365
|
+
"isShowAddBtn": false,
|
|
49366
|
+
"isShowAction": false,
|
|
49367
|
+
"value": data[`${field}`]
|
|
49368
|
+
}), null);
|
|
49369
|
+
}
|
|
49370
|
+
if (component === "Divider") {
|
|
49371
|
+
return createVNode(Divider, componentProps, _isSlot(label) ? label : {
|
|
49372
|
+
default: () => [label]
|
|
49373
|
+
});
|
|
49338
49374
|
}
|
|
49339
|
-
return createVNode(ShyTag, mergeProps({
|
|
49340
|
-
"value": data[`${field}`]
|
|
49341
|
-
}, componentProps, {
|
|
49342
|
-
"options": options
|
|
49343
|
-
}), null);
|
|
49344
|
-
} else if (["DatePicker", "MonthPicker", "RangePicker", "WeekPicker", "TimePicker"].includes(component)) {
|
|
49345
|
-
if (!data[`${field}`])
|
|
49346
|
-
return "";
|
|
49347
|
-
return dayjs$1(data[`${field}`]).format((componentProps == null ? void 0 : componentProps.valueFormat) || "YYYY-MM-DD");
|
|
49348
|
-
} else
|
|
49349
49375
|
return data[`${field}`];
|
|
49350
|
-
|
|
49376
|
+
};
|
|
49377
|
+
});
|
|
49351
49378
|
const renderValue = (item) => {
|
|
49352
49379
|
var _a2;
|
|
49353
49380
|
const {
|
|
@@ -49369,12 +49396,13 @@ const Descriptions = /* @__PURE__ */ defineComponent({
|
|
|
49369
49396
|
return render3(unref(getValues)(item));
|
|
49370
49397
|
} else {
|
|
49371
49398
|
const contentStyles = {
|
|
49399
|
+
overflow: "hidden",
|
|
49372
49400
|
...unref(getProps).contentStyle,
|
|
49373
49401
|
...contentStyle
|
|
49374
49402
|
};
|
|
49375
49403
|
return createVNode("div", {
|
|
49376
49404
|
"style": contentStyles
|
|
49377
|
-
}, [transformValue(item)]);
|
|
49405
|
+
}, [unref(transformValue)(item)]);
|
|
49378
49406
|
}
|
|
49379
49407
|
};
|
|
49380
49408
|
const labelAlignCss = computed(() => {
|
|
@@ -49496,7 +49524,7 @@ const Descriptions = /* @__PURE__ */ defineComponent({
|
|
|
49496
49524
|
}), [[vShow, isShow]]);
|
|
49497
49525
|
};
|
|
49498
49526
|
const renderSchema = (group) => {
|
|
49499
|
-
var _a2, _b;
|
|
49527
|
+
var _a2, _b, _c;
|
|
49500
49528
|
if (isArray$3(group)) {
|
|
49501
49529
|
let _slot2;
|
|
49502
49530
|
const props3 = pick$1(unref(getProps), ["bordered"]);
|
|
@@ -49518,10 +49546,10 @@ const Descriptions = /* @__PURE__ */ defineComponent({
|
|
|
49518
49546
|
const componentProps = isFunction$6(comProps) ? (
|
|
49519
49547
|
// @ts-ignore
|
|
49520
49548
|
comProps({
|
|
49521
|
-
formModel: unref(
|
|
49549
|
+
formModel: (_a2 = unref(getProps)) == null ? void 0 : _a2.data
|
|
49522
49550
|
})
|
|
49523
49551
|
) : comProps;
|
|
49524
|
-
const realSpan = ((colProps2 == null ? void 0 : colProps2.span) || ((
|
|
49552
|
+
const realSpan = ((colProps2 == null ? void 0 : colProps2.span) || ((_c = (_b = unref(getProps)) == null ? void 0 : _b.baseColProps) == null ? void 0 : _c.span) || basicColProps) / basicRowProps;
|
|
49525
49553
|
const style2 = {
|
|
49526
49554
|
[`--col-span`]: `${realSpan * 100}%`,
|
|
49527
49555
|
[`--w-gap`]: `${realSpan * basicGap}px`
|
|
@@ -49570,10 +49598,18 @@ const Descriptions = /* @__PURE__ */ defineComponent({
|
|
|
49570
49598
|
if (!isArray$3(schemas))
|
|
49571
49599
|
return [];
|
|
49572
49600
|
return schemas.reduce((prev2, curr) => {
|
|
49573
|
-
if (curr
|
|
49601
|
+
if ((curr == null ? void 0 : curr.component) === "Group") {
|
|
49574
49602
|
prev2.push(curr);
|
|
49575
49603
|
return prev2;
|
|
49576
49604
|
}
|
|
49605
|
+
if ((curr == null ? void 0 : curr.component) === "Divider") {
|
|
49606
|
+
prev2.push(merge$2(curr, {
|
|
49607
|
+
componentProps: {
|
|
49608
|
+
groupType: "Divider"
|
|
49609
|
+
}
|
|
49610
|
+
}));
|
|
49611
|
+
return prev2;
|
|
49612
|
+
}
|
|
49577
49613
|
if (!isArray$3(prev2[prev2.length - 1])) {
|
|
49578
49614
|
prev2.push([]);
|
|
49579
49615
|
}
|
package/lib/index.js
CHANGED
|
@@ -4718,7 +4718,7 @@ const _hoisted_7 = {
|
|
|
4718
4718
|
key: 0,
|
|
4719
4719
|
class: "cursor-pointer px-2 py-1 flex items-center"
|
|
4720
4720
|
};
|
|
4721
|
-
const prefixCls$
|
|
4721
|
+
const prefixCls$8 = "shy-icon-picker";
|
|
4722
4722
|
const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
|
|
4723
4723
|
__name: "IconPicker",
|
|
4724
4724
|
props: {
|
|
@@ -4798,7 +4798,7 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
|
|
|
4798
4798
|
disabled: "",
|
|
4799
4799
|
style: vue.normalizeStyle({ width: _ctx.width }),
|
|
4800
4800
|
placeholder: "点击选择图标",
|
|
4801
|
-
class: vue.normalizeClass(prefixCls$
|
|
4801
|
+
class: vue.normalizeClass(prefixCls$8),
|
|
4802
4802
|
value: currentSelect.value,
|
|
4803
4803
|
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => currentSelect.value = $event)
|
|
4804
4804
|
}, {
|
|
@@ -4808,7 +4808,7 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
|
|
|
4808
4808
|
trigger: "click",
|
|
4809
4809
|
modelValue: visible.value,
|
|
4810
4810
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => visible.value = $event),
|
|
4811
|
-
overlayClassName: `${prefixCls$
|
|
4811
|
+
overlayClassName: `${prefixCls$8}-popover`
|
|
4812
4812
|
}, {
|
|
4813
4813
|
title: vue.withCtx(() => [
|
|
4814
4814
|
vue.createElementVNode("div", _hoisted_1$n, [
|
|
@@ -4875,7 +4875,7 @@ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
|
|
|
4875
4875
|
}
|
|
4876
4876
|
});
|
|
4877
4877
|
const IconPicker_vue_vue_type_style_index_0_lang = "";
|
|
4878
|
-
const prefixCls$
|
|
4878
|
+
const prefixCls$7 = "shy-basic-arrow";
|
|
4879
4879
|
const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
|
|
4880
4880
|
__name: "BasicArrow",
|
|
4881
4881
|
props: {
|
|
@@ -4901,9 +4901,9 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
|
|
|
4901
4901
|
const getClass = vue.computed(() => {
|
|
4902
4902
|
const { expand, up, down, inset } = props2;
|
|
4903
4903
|
return [
|
|
4904
|
-
prefixCls$
|
|
4904
|
+
prefixCls$7,
|
|
4905
4905
|
{
|
|
4906
|
-
[`${prefixCls$
|
|
4906
|
+
[`${prefixCls$7}--active`]: expand,
|
|
4907
4907
|
up,
|
|
4908
4908
|
inset,
|
|
4909
4909
|
down
|
|
@@ -7531,7 +7531,7 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
7531
7531
|
}
|
|
7532
7532
|
const CollapseHeader = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["render", _sfc_render$z]]);
|
|
7533
7533
|
const _hoisted_1$m = { class: "p-2" };
|
|
7534
|
-
const prefixCls$
|
|
7534
|
+
const prefixCls$6 = "shy-collapse-container";
|
|
7535
7535
|
const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
|
|
7536
7536
|
__name: "CollapseContainer",
|
|
7537
7537
|
props: {
|
|
@@ -7572,15 +7572,15 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
|
|
|
7572
7572
|
});
|
|
7573
7573
|
return (_ctx, _cache) => {
|
|
7574
7574
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
7575
|
-
class: vue.normalizeClass(prefixCls$
|
|
7575
|
+
class: vue.normalizeClass(prefixCls$6)
|
|
7576
7576
|
}, [
|
|
7577
7577
|
vue.createVNode(CollapseHeader, vue.mergeProps(props2, {
|
|
7578
|
-
prefixCls: prefixCls$
|
|
7578
|
+
prefixCls: prefixCls$6,
|
|
7579
7579
|
show: show.value,
|
|
7580
7580
|
onExpand: handleExpand,
|
|
7581
7581
|
class: [
|
|
7582
|
-
`${prefixCls$
|
|
7583
|
-
show.value ? "" : `${prefixCls$
|
|
7582
|
+
`${prefixCls$6}__header`,
|
|
7583
|
+
show.value ? "" : `${prefixCls$6}__header-action`
|
|
7584
7584
|
]
|
|
7585
7585
|
}), {
|
|
7586
7586
|
title: vue.withCtx(() => [
|
|
@@ -7599,7 +7599,7 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
|
|
|
7599
7599
|
active: __props.loading
|
|
7600
7600
|
}, null, 8, ["active"])) : vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", {
|
|
7601
7601
|
key: 1,
|
|
7602
|
-
class: vue.normalizeClass(`${prefixCls$
|
|
7602
|
+
class: vue.normalizeClass(`${prefixCls$6}__body`)
|
|
7603
7603
|
}, [
|
|
7604
7604
|
vue.renderSlot(_ctx.$slots, "default")
|
|
7605
7605
|
], 2)), [
|
|
@@ -7611,7 +7611,7 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
|
|
|
7611
7611
|
]),
|
|
7612
7612
|
_ctx.$slots.footer ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
7613
7613
|
key: 0,
|
|
7614
|
-
class: vue.normalizeClass(`${prefixCls$
|
|
7614
|
+
class: vue.normalizeClass(`${prefixCls$6}__footer`)
|
|
7615
7615
|
}, [
|
|
7616
7616
|
vue.renderSlot(_ctx.$slots, "footer")
|
|
7617
7617
|
], 2)) : vue.createCommentVNode("", true)
|
|
@@ -8974,7 +8974,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8974
8974
|
], 64);
|
|
8975
8975
|
}
|
|
8976
8976
|
const ModalFooter = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$s]]);
|
|
8977
|
-
const prefixCls$
|
|
8977
|
+
const prefixCls$5 = "shy-basic-title";
|
|
8978
8978
|
const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
8979
8979
|
__name: "BasicTitle",
|
|
8980
8980
|
props: {
|
|
@@ -9001,9 +9001,9 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
|
9001
9001
|
const props2 = __props;
|
|
9002
9002
|
const slots = vue.useSlots();
|
|
9003
9003
|
const getClass = vue.computed(() => [
|
|
9004
|
-
prefixCls$
|
|
9005
|
-
{ [`${prefixCls$
|
|
9006
|
-
{ [`${prefixCls$
|
|
9004
|
+
prefixCls$5,
|
|
9005
|
+
{ [`${prefixCls$5}-show-span`]: props2.span && slots.default },
|
|
9006
|
+
{ [`${prefixCls$5}-normal`]: props2.normal }
|
|
9007
9007
|
]);
|
|
9008
9008
|
return (_ctx, _cache) => {
|
|
9009
9009
|
return vue.openBlock(), vue.createElementBlock("span", {
|
|
@@ -9012,7 +9012,7 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
|
|
|
9012
9012
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
9013
9013
|
__props.helpMessage ? (vue.openBlock(), vue.createBlock(vue.unref(BasicHelp), {
|
|
9014
9014
|
key: 0,
|
|
9015
|
-
class: vue.normalizeClass(`${prefixCls$
|
|
9015
|
+
class: vue.normalizeClass(`${prefixCls$5}-help`),
|
|
9016
9016
|
text: __props.helpMessage
|
|
9017
9017
|
}, null, 8, ["class", "text"])) : vue.createCommentVNode("", true)
|
|
9018
9018
|
], 2);
|
|
@@ -9664,7 +9664,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9664
9664
|
], 2);
|
|
9665
9665
|
}
|
|
9666
9666
|
const PageWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render$o]]);
|
|
9667
|
-
const prefixCls$
|
|
9667
|
+
const prefixCls$4 = "shy-basic-page-second";
|
|
9668
9668
|
const PageSecond = /* @__PURE__ */ vue.defineComponent({
|
|
9669
9669
|
props: {
|
|
9670
9670
|
title: {
|
|
@@ -9709,20 +9709,20 @@ const PageSecond = /* @__PURE__ */ vue.defineComponent({
|
|
|
9709
9709
|
return () => {
|
|
9710
9710
|
var _a2;
|
|
9711
9711
|
return vue.createVNode("div", {
|
|
9712
|
-
"class": `${prefixCls$
|
|
9712
|
+
"class": `${prefixCls$4}-wrapper`
|
|
9713
9713
|
}, [vue.createVNode("div", {
|
|
9714
|
-
"class": `${prefixCls$
|
|
9714
|
+
"class": `${prefixCls$4}-header`
|
|
9715
9715
|
}, [vue.createVNode(ArrowLeftOutlined$1, {
|
|
9716
|
-
"class": `${prefixCls$
|
|
9716
|
+
"class": `${prefixCls$4}-header-icon`,
|
|
9717
9717
|
"onClick": handleClick
|
|
9718
9718
|
}, null), vue.createVNode("div", {
|
|
9719
|
-
"class": `${prefixCls$
|
|
9719
|
+
"class": `${prefixCls$4}-header-title`
|
|
9720
9720
|
}, [vue.createVNode("div", {
|
|
9721
9721
|
"style": "margin-right:10px"
|
|
9722
9722
|
}, [(slots == null ? void 0 : slots.title) ? slots == null ? void 0 : slots.title() : props2.title]), (slots == null ? void 0 : slots.titleAfter) ? slots == null ? void 0 : slots.titleAfter() : null])]), vue.createVNode("div", {
|
|
9723
|
-
"class": `${prefixCls$
|
|
9723
|
+
"class": `${prefixCls$4}-body`
|
|
9724
9724
|
}, [(_a2 = slots.default) == null ? void 0 : _a2.call(slots)]), props2.isShowFooter ? vue.createVNode("div", {
|
|
9725
|
-
"class": `${prefixCls$
|
|
9725
|
+
"class": `${prefixCls$4}-footer`
|
|
9726
9726
|
}, [vue.createVNode(antDesignVue.Space, null, {
|
|
9727
9727
|
default: () => {
|
|
9728
9728
|
var _a3, _b, _c;
|
|
@@ -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) => {
|
|
@@ -26583,7 +26583,7 @@ const index$6 = "";
|
|
|
26583
26583
|
function _isSlot$7(s2) {
|
|
26584
26584
|
return typeof s2 === "function" || Object.prototype.toString.call(s2) === "[object Object]" && !vue.isVNode(s2);
|
|
26585
26585
|
}
|
|
26586
|
-
const prefixCls$
|
|
26586
|
+
const prefixCls$3 = "context-menu";
|
|
26587
26587
|
const props$4 = {
|
|
26588
26588
|
width: {
|
|
26589
26589
|
type: Number,
|
|
@@ -26702,7 +26702,7 @@ const contextMenuVue = /* @__PURE__ */ vue.defineComponent({
|
|
|
26702
26702
|
if (!children || children.length === 0) {
|
|
26703
26703
|
return vue.createVNode(vue.Fragment, null, [vue.createVNode(antDesignVue.Menu.Item, {
|
|
26704
26704
|
"disabled": disabled,
|
|
26705
|
-
"class": `${prefixCls$
|
|
26705
|
+
"class": `${prefixCls$3}__item`,
|
|
26706
26706
|
"key": label
|
|
26707
26707
|
}, {
|
|
26708
26708
|
default: () => [vue.createVNode(ItemContent, contentProps, null)]
|
|
@@ -26715,7 +26715,7 @@ const contextMenuVue = /* @__PURE__ */ vue.defineComponent({
|
|
|
26715
26715
|
return vue.createVNode(antDesignVue.Menu.SubMenu, {
|
|
26716
26716
|
"key": label,
|
|
26717
26717
|
"disabled": disabled,
|
|
26718
|
-
"popupClassName": `${prefixCls$
|
|
26718
|
+
"popupClassName": `${prefixCls$3}__popup`
|
|
26719
26719
|
}, {
|
|
26720
26720
|
title: () => vue.createVNode(ItemContent, contentProps, null),
|
|
26721
26721
|
default: () => renderMenuItem(children)
|
|
@@ -26731,7 +26731,7 @@ const contextMenuVue = /* @__PURE__ */ vue.defineComponent({
|
|
|
26731
26731
|
items
|
|
26732
26732
|
} = props2;
|
|
26733
26733
|
return vue.createVNode("div", {
|
|
26734
|
-
"class": prefixCls$
|
|
26734
|
+
"class": prefixCls$3
|
|
26735
26735
|
}, [vue.createVNode(antDesignVue.Menu, {
|
|
26736
26736
|
"inlineIndent": 12,
|
|
26737
26737
|
"mode": "vertical",
|
|
@@ -35289,6 +35289,9 @@ const makeStyle = (path, styleFn) => {
|
|
|
35289
35289
|
}), hashId];
|
|
35290
35290
|
};
|
|
35291
35291
|
};
|
|
35292
|
+
const {
|
|
35293
|
+
prefixCls: prefixCls$2
|
|
35294
|
+
} = use.useDesign("color-picker");
|
|
35292
35295
|
const {
|
|
35293
35296
|
useToken
|
|
35294
35297
|
} = antDesignVue.theme;
|
|
@@ -35589,6 +35592,7 @@ const ColorPickerPanel = /* @__PURE__ */ vue.defineComponent({
|
|
|
35589
35592
|
}
|
|
35590
35593
|
}, {
|
|
35591
35594
|
default: () => [vue.createVNode("div", {
|
|
35595
|
+
"class": prefixCls$2,
|
|
35592
35596
|
"style": {
|
|
35593
35597
|
backgroundColor: props2.value,
|
|
35594
35598
|
width: "48px",
|
|
@@ -49329,49 +49333,72 @@ const Descriptions = /* @__PURE__ */ vue.defineComponent({
|
|
|
49329
49333
|
};
|
|
49330
49334
|
});
|
|
49331
49335
|
const handleValuePrecision = (item, data) => {
|
|
49332
|
-
|
|
49333
|
-
return slots[`${item.field}Value`] ? (_a2 = slots[`${item.field}Value`]) == null ? void 0 : _a2.call(slots, {
|
|
49334
|
-
model: data,
|
|
49335
|
-
field: data[`${item.field}`]
|
|
49336
|
-
}) : 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) => {
|
|
49336
|
+
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) => {
|
|
49337
49337
|
return match + (string3.charAt(offset2 + 1) === "." || offset2 === string3.length - 1 ? "" : ",");
|
|
49338
49338
|
}) : data[`${item.field}`];
|
|
49339
49339
|
};
|
|
49340
49340
|
emit("register", {
|
|
49341
49341
|
setDescProps
|
|
49342
49342
|
});
|
|
49343
|
-
const transformValue = (
|
|
49344
|
-
|
|
49345
|
-
|
|
49346
|
-
|
|
49347
|
-
|
|
49348
|
-
|
|
49349
|
-
|
|
49350
|
-
|
|
49351
|
-
|
|
49352
|
-
|
|
49353
|
-
|
|
49354
|
-
|
|
49355
|
-
|
|
49356
|
-
|
|
49357
|
-
|
|
49358
|
-
|
|
49359
|
-
|
|
49360
|
-
|
|
49361
|
-
|
|
49343
|
+
const transformValue = vue.computed(() => {
|
|
49344
|
+
return (item) => {
|
|
49345
|
+
var _a2;
|
|
49346
|
+
const {
|
|
49347
|
+
field,
|
|
49348
|
+
componentProps: comProps,
|
|
49349
|
+
component,
|
|
49350
|
+
label
|
|
49351
|
+
} = item;
|
|
49352
|
+
const {
|
|
49353
|
+
data,
|
|
49354
|
+
summaryTotalFields
|
|
49355
|
+
} = vue.unref(getProps);
|
|
49356
|
+
const componentProps = utils$1.isFunction(comProps) ? (
|
|
49357
|
+
// @ts-ignore
|
|
49358
|
+
comProps({
|
|
49359
|
+
formModel: data
|
|
49360
|
+
})
|
|
49361
|
+
) : comProps;
|
|
49362
|
+
if (slots[`${item.field}Value`]) {
|
|
49363
|
+
return (_a2 = slots[`${item.field}Value`]) == null ? void 0 : _a2.call(slots, {
|
|
49364
|
+
model: data,
|
|
49365
|
+
field: data[`${item.field}`]
|
|
49366
|
+
});
|
|
49367
|
+
}
|
|
49368
|
+
if ((summaryTotalFields == null ? void 0 : summaryTotalFields.length) && summaryTotalFields.includes(field)) {
|
|
49369
|
+
return handleValuePrecision(item, data);
|
|
49370
|
+
}
|
|
49371
|
+
if ((componentProps == null ? void 0 : componentProps.options) || (componentProps == null ? void 0 : componentProps.api)) {
|
|
49372
|
+
let options = [];
|
|
49373
|
+
if (Array.isArray(componentProps.options)) {
|
|
49374
|
+
options = treeToList(componentProps.options);
|
|
49375
|
+
}
|
|
49376
|
+
return vue.createVNode(ShyTag, vue.mergeProps({
|
|
49377
|
+
"value": data[`${field}`]
|
|
49378
|
+
}, componentProps, {
|
|
49379
|
+
"options": options
|
|
49380
|
+
}), null);
|
|
49381
|
+
}
|
|
49382
|
+
if (["DatePicker", "MonthPicker", "RangePicker", "WeekPicker", "TimePicker"].includes(component)) {
|
|
49383
|
+
if (!data[`${field}`])
|
|
49384
|
+
return "";
|
|
49385
|
+
return dayjs$1(data[`${field}`]).format((componentProps == null ? void 0 : componentProps.valueFormat) || "YYYY-MM-DD");
|
|
49386
|
+
}
|
|
49387
|
+
if (component === "Table") {
|
|
49388
|
+
return vue.createVNode(ShyFormTable, vue.mergeProps(componentProps, {
|
|
49389
|
+
"isShowAddBtn": false,
|
|
49390
|
+
"isShowAction": false,
|
|
49391
|
+
"value": data[`${field}`]
|
|
49392
|
+
}), null);
|
|
49393
|
+
}
|
|
49394
|
+
if (component === "Divider") {
|
|
49395
|
+
return vue.createVNode(Divider, componentProps, _isSlot(label) ? label : {
|
|
49396
|
+
default: () => [label]
|
|
49397
|
+
});
|
|
49362
49398
|
}
|
|
49363
|
-
return vue.createVNode(ShyTag, vue.mergeProps({
|
|
49364
|
-
"value": data[`${field}`]
|
|
49365
|
-
}, componentProps, {
|
|
49366
|
-
"options": options
|
|
49367
|
-
}), null);
|
|
49368
|
-
} else if (["DatePicker", "MonthPicker", "RangePicker", "WeekPicker", "TimePicker"].includes(component)) {
|
|
49369
|
-
if (!data[`${field}`])
|
|
49370
|
-
return "";
|
|
49371
|
-
return dayjs$1(data[`${field}`]).format((componentProps == null ? void 0 : componentProps.valueFormat) || "YYYY-MM-DD");
|
|
49372
|
-
} else
|
|
49373
49399
|
return data[`${field}`];
|
|
49374
|
-
|
|
49400
|
+
};
|
|
49401
|
+
});
|
|
49375
49402
|
const renderValue = (item) => {
|
|
49376
49403
|
var _a2;
|
|
49377
49404
|
const {
|
|
@@ -49393,12 +49420,13 @@ const Descriptions = /* @__PURE__ */ vue.defineComponent({
|
|
|
49393
49420
|
return render3(vue.unref(getValues)(item));
|
|
49394
49421
|
} else {
|
|
49395
49422
|
const contentStyles = {
|
|
49423
|
+
overflow: "hidden",
|
|
49396
49424
|
...vue.unref(getProps).contentStyle,
|
|
49397
49425
|
...contentStyle
|
|
49398
49426
|
};
|
|
49399
49427
|
return vue.createVNode("div", {
|
|
49400
49428
|
"style": contentStyles
|
|
49401
|
-
}, [transformValue(item)]);
|
|
49429
|
+
}, [vue.unref(transformValue)(item)]);
|
|
49402
49430
|
}
|
|
49403
49431
|
};
|
|
49404
49432
|
const labelAlignCss = vue.computed(() => {
|
|
@@ -49520,7 +49548,7 @@ const Descriptions = /* @__PURE__ */ vue.defineComponent({
|
|
|
49520
49548
|
}), [[vue.vShow, isShow]]);
|
|
49521
49549
|
};
|
|
49522
49550
|
const renderSchema = (group) => {
|
|
49523
|
-
var _a2, _b;
|
|
49551
|
+
var _a2, _b, _c;
|
|
49524
49552
|
if (utils$1.isArray(group)) {
|
|
49525
49553
|
let _slot2;
|
|
49526
49554
|
const props3 = pick$1(vue.unref(getProps), ["bordered"]);
|
|
@@ -49542,10 +49570,10 @@ const Descriptions = /* @__PURE__ */ vue.defineComponent({
|
|
|
49542
49570
|
const componentProps = utils$1.isFunction(comProps) ? (
|
|
49543
49571
|
// @ts-ignore
|
|
49544
49572
|
comProps({
|
|
49545
|
-
formModel: vue.unref(
|
|
49573
|
+
formModel: (_a2 = vue.unref(getProps)) == null ? void 0 : _a2.data
|
|
49546
49574
|
})
|
|
49547
49575
|
) : comProps;
|
|
49548
|
-
const realSpan = ((colProps2 == null ? void 0 : colProps2.span) || ((
|
|
49576
|
+
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;
|
|
49549
49577
|
const style2 = {
|
|
49550
49578
|
[`--col-span`]: `${realSpan * 100}%`,
|
|
49551
49579
|
[`--w-gap`]: `${realSpan * basicGap}px`
|
|
@@ -49594,10 +49622,18 @@ const Descriptions = /* @__PURE__ */ vue.defineComponent({
|
|
|
49594
49622
|
if (!utils$1.isArray(schemas))
|
|
49595
49623
|
return [];
|
|
49596
49624
|
return schemas.reduce((prev2, curr) => {
|
|
49597
|
-
if (curr
|
|
49625
|
+
if ((curr == null ? void 0 : curr.component) === "Group") {
|
|
49598
49626
|
prev2.push(curr);
|
|
49599
49627
|
return prev2;
|
|
49600
49628
|
}
|
|
49629
|
+
if ((curr == null ? void 0 : curr.component) === "Divider") {
|
|
49630
|
+
prev2.push(merge$2(curr, {
|
|
49631
|
+
componentProps: {
|
|
49632
|
+
groupType: "Divider"
|
|
49633
|
+
}
|
|
49634
|
+
}));
|
|
49635
|
+
return prev2;
|
|
49636
|
+
}
|
|
49601
49637
|
if (!utils$1.isArray(prev2[prev2.length - 1])) {
|
|
49602
49638
|
prev2.push([]);
|
|
49603
49639
|
}
|