3h1-ui 3.0.0-next.62 → 3.0.0-next.63
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 +141 -107
- package/es/style.css +141 -153
- package/lib/index.js +140 -106
- package/lib/style.css +141 -153
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -5935,61 +5935,37 @@ const _sfc_main$1z = /* @__PURE__ */ vue.defineComponent({
|
|
|
5935
5935
|
* Whether the color block on the left side of the title
|
|
5936
5936
|
* @default: false
|
|
5937
5937
|
*/
|
|
5938
|
-
span: { type: Boolean, default: true }
|
|
5939
|
-
/**
|
|
5940
|
-
* Whether show to expand
|
|
5941
|
-
* @default: false
|
|
5942
|
-
*/
|
|
5943
|
-
expand: {
|
|
5944
|
-
type: Boolean,
|
|
5945
|
-
default: false
|
|
5946
|
-
}
|
|
5938
|
+
span: { type: Boolean, default: true }
|
|
5947
5939
|
},
|
|
5948
|
-
|
|
5949
|
-
setup(__props, { emit: __emit }) {
|
|
5940
|
+
setup(__props) {
|
|
5950
5941
|
const props2 = __props;
|
|
5951
|
-
const emit = __emit;
|
|
5952
|
-
const handleExpand = () => {
|
|
5953
|
-
isExpand.value = !isExpand.value;
|
|
5954
|
-
emit("handleExpand");
|
|
5955
|
-
};
|
|
5956
5942
|
const { prefixCls: prefixCls2 } = use.useDesign("basic-title");
|
|
5957
5943
|
const slots = vue.useSlots();
|
|
5958
5944
|
const getClass = vue.computed(() => [
|
|
5959
5945
|
prefixCls2,
|
|
5960
5946
|
{ [`${prefixCls2}-show-span`]: props2.span && slots.default }
|
|
5961
5947
|
]);
|
|
5962
|
-
const isExpand = vue.ref(false);
|
|
5963
5948
|
return (_ctx, _cache) => {
|
|
5949
|
+
var _a2, _b, _c;
|
|
5964
5950
|
return vue.openBlock(), vue.createElementBlock("span", {
|
|
5965
5951
|
class: vue.normalizeClass(getClass.value)
|
|
5966
5952
|
}, [
|
|
5967
|
-
vue.
|
|
5968
|
-
|
|
5969
|
-
__props.helpMessage ? (vue.openBlock(), vue.createBlock(_sfc_main$1A, {
|
|
5970
|
-
key: 0,
|
|
5971
|
-
class: vue.normalizeClass(`${vue.unref(prefixCls2)}-help`),
|
|
5972
|
-
text: __props.helpMessage
|
|
5973
|
-
}, null, 8, ["class", "text"])) : vue.createCommentVNode("", true)
|
|
5974
|
-
]),
|
|
5975
|
-
__props.expand ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
5953
|
+
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
5954
|
+
__props.helpMessage ? (vue.openBlock(), vue.createBlock(_sfc_main$1A, {
|
|
5976
5955
|
key: 0,
|
|
5977
|
-
class: vue.normalizeClass(`${vue.unref(prefixCls2)}-
|
|
5978
|
-
|
|
5979
|
-
}, [
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
}, null, 8, ["expand", "class"]),
|
|
5985
|
-
vue.createElementVNode("span", null, vue.toDisplayString(isExpand.value ? "收起" : "展开"), 1)
|
|
5986
|
-
], 2)) : vue.createCommentVNode("", true)
|
|
5956
|
+
class: vue.normalizeClass(`${vue.unref(prefixCls2)}-help`),
|
|
5957
|
+
text: __props.helpMessage
|
|
5958
|
+
}, null, 8, ["class", "text"])) : vue.createCommentVNode("", true),
|
|
5959
|
+
vue.renderSlot(_ctx.$slots, "extra", {}, void 0, true),
|
|
5960
|
+
((_a2 = _ctx.$attrs) == null ? void 0 : _a2.extra) ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(
|
|
5961
|
+
vue.unref(utils.isFunction)(_ctx.$attrs.extra) ? (_c = (_b = _ctx.$attrs).extra) == null ? void 0 : _c.call(_b) : vue.h("span", _ctx.$attrs.extra)
|
|
5962
|
+
), { key: 1 })) : vue.createCommentVNode("", true)
|
|
5987
5963
|
], 2);
|
|
5988
5964
|
};
|
|
5989
5965
|
}
|
|
5990
5966
|
});
|
|
5991
|
-
const
|
|
5992
|
-
const BasicTitle$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["__scopeId", "data-v-
|
|
5967
|
+
const BasicTitle_vue_vue_type_style_index_0_scoped_b0cf71c3_lang = "";
|
|
5968
|
+
const BasicTitle$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["__scopeId", "data-v-b0cf71c3"]]);
|
|
5993
5969
|
const props$b = {
|
|
5994
5970
|
prefixCls: { type: String },
|
|
5995
5971
|
helpMessage: {
|
|
@@ -6006,6 +5982,7 @@ const _sfc_main$1y = vue.defineComponent({
|
|
|
6006
5982
|
props: props$b,
|
|
6007
5983
|
emits: ["expand"]
|
|
6008
5984
|
});
|
|
5985
|
+
const CollapseHeader_vue_vue_type_style_index_0_lang = "";
|
|
6009
5986
|
function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6010
5987
|
const _component_BasicTitle = vue.resolveComponent("BasicTitle");
|
|
6011
5988
|
const _component_BasicArrow = vue.resolveComponent("BasicArrow");
|
|
@@ -6027,12 +6004,17 @@ function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6027
6004
|
class: vue.normalizeClass(`${_ctx.prefixCls}__action`)
|
|
6028
6005
|
}, [
|
|
6029
6006
|
vue.renderSlot(_ctx.$slots, "action"),
|
|
6030
|
-
_ctx.canExpan ? (vue.openBlock(), vue.
|
|
6007
|
+
_ctx.canExpan ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
6031
6008
|
key: 0,
|
|
6032
|
-
|
|
6033
|
-
|
|
6034
|
-
|
|
6035
|
-
|
|
6009
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("expand")),
|
|
6010
|
+
class: vue.normalizeClass(`${_ctx.prefixCls}-arrow`)
|
|
6011
|
+
}, [
|
|
6012
|
+
vue.createVNode(_component_BasicArrow, {
|
|
6013
|
+
down: "",
|
|
6014
|
+
expand: _ctx.show
|
|
6015
|
+
}, null, 8, ["expand"]),
|
|
6016
|
+
vue.createElementVNode("span", null, vue.toDisplayString(_ctx.show ? "收起" : "展开"), 1)
|
|
6017
|
+
], 2)) : vue.createCommentVNode("", true)
|
|
6036
6018
|
], 2)
|
|
6037
6019
|
], 2);
|
|
6038
6020
|
}
|
|
@@ -6084,7 +6066,11 @@ const _sfc_main$1x = /* @__PURE__ */ vue.defineComponent({
|
|
|
6084
6066
|
vue.createVNode(CollapseHeader, vue.mergeProps(props2, {
|
|
6085
6067
|
prefixCls: prefixCls$5,
|
|
6086
6068
|
show: show.value,
|
|
6087
|
-
onExpand: handleExpand
|
|
6069
|
+
onExpand: handleExpand,
|
|
6070
|
+
class: [
|
|
6071
|
+
`${prefixCls$5}__header`,
|
|
6072
|
+
show.value ? "" : `${prefixCls$5}__header-action`
|
|
6073
|
+
]
|
|
6088
6074
|
}), {
|
|
6089
6075
|
title: vue.withCtx(() => [
|
|
6090
6076
|
vue.renderSlot(_ctx.$slots, "title")
|
|
@@ -6093,7 +6079,7 @@ const _sfc_main$1x = /* @__PURE__ */ vue.defineComponent({
|
|
|
6093
6079
|
vue.renderSlot(_ctx.$slots, "action")
|
|
6094
6080
|
]),
|
|
6095
6081
|
_: 3
|
|
6096
|
-
}, 16, ["show"]),
|
|
6082
|
+
}, 16, ["show", "class"]),
|
|
6097
6083
|
vue.createElementVNode("div", _hoisted_1$E, [
|
|
6098
6084
|
vue.createVNode(vue.unref(CollapseTransition), { enable: __props.canExpan }, {
|
|
6099
6085
|
default: vue.withCtx(() => [
|
|
@@ -8932,8 +8918,8 @@ function useTransition(source, options = {}) {
|
|
|
8932
8918
|
}
|
|
8933
8919
|
const _hoisted_1$B = { class: "flex justify-between" };
|
|
8934
8920
|
const _hoisted_2$f = { key: 0 };
|
|
8935
|
-
const _hoisted_3$
|
|
8936
|
-
const _hoisted_4$
|
|
8921
|
+
const _hoisted_3$a = { class: "flex flex-wrap px-2" };
|
|
8922
|
+
const _hoisted_4$8 = ["onClick", "title"];
|
|
8937
8923
|
const _hoisted_5$6 = {
|
|
8938
8924
|
key: 0,
|
|
8939
8925
|
class: "flex py-2 items-center justify-center"
|
|
@@ -9051,7 +9037,7 @@ const _sfc_main$1t = /* @__PURE__ */ vue.defineComponent({
|
|
|
9051
9037
|
vue.unref(getPaginationList).length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$f, [
|
|
9052
9038
|
vue.createVNode(vue.unref(ScrollContainer$1), { class: "border border-solid border-t-0" }, {
|
|
9053
9039
|
default: vue.withCtx(() => [
|
|
9054
|
-
vue.createElementVNode("ul", _hoisted_3$
|
|
9040
|
+
vue.createElementVNode("ul", _hoisted_3$a, [
|
|
9055
9041
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(getPaginationList), (icon) => {
|
|
9056
9042
|
return vue.openBlock(), vue.createElementBlock("li", {
|
|
9057
9043
|
key: icon,
|
|
@@ -9066,7 +9052,7 @@ const _sfc_main$1t = /* @__PURE__ */ vue.defineComponent({
|
|
|
9066
9052
|
key: 1,
|
|
9067
9053
|
icon
|
|
9068
9054
|
}, null, 8, ["icon"]))
|
|
9069
|
-
], 10, _hoisted_4$
|
|
9055
|
+
], 10, _hoisted_4$8);
|
|
9070
9056
|
}), 128))
|
|
9071
9057
|
])
|
|
9072
9058
|
]),
|
|
@@ -9276,8 +9262,8 @@ const _hoisted_2$e = {
|
|
|
9276
9262
|
key: 0,
|
|
9277
9263
|
class: "table-children-required"
|
|
9278
9264
|
};
|
|
9279
|
-
const _hoisted_3$
|
|
9280
|
-
const _hoisted_4$
|
|
9265
|
+
const _hoisted_3$9 = { class: "text-red-500" };
|
|
9266
|
+
const _hoisted_4$7 = {
|
|
9281
9267
|
key: 0,
|
|
9282
9268
|
class: "table-children-delete-index"
|
|
9283
9269
|
};
|
|
@@ -9507,7 +9493,7 @@ const _sfc_main$1p = /* @__PURE__ */ vue.defineComponent({
|
|
|
9507
9493
|
content: vue.withCtx(() => {
|
|
9508
9494
|
var _a3;
|
|
9509
9495
|
return [
|
|
9510
|
-
vue.createElementVNode("span", _hoisted_3$
|
|
9496
|
+
vue.createElementVNode("span", _hoisted_3$9, vue.toDisplayString((_a3 = rulesRef[`${column2.dataIndex}-${record.uuid}Info`]) == null ? void 0 : _a3.msg), 1)
|
|
9511
9497
|
];
|
|
9512
9498
|
}),
|
|
9513
9499
|
default: vue.withCtx(() => [
|
|
@@ -9559,7 +9545,7 @@ const _sfc_main$1p = /* @__PURE__ */ vue.defineComponent({
|
|
|
9559
9545
|
class: "table-children-delete-wrapper",
|
|
9560
9546
|
key: record[__props.rowKey]
|
|
9561
9547
|
}, [
|
|
9562
|
-
__props.isShowAction ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$
|
|
9548
|
+
__props.isShowAction ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$7, vue.toDisplayString(index2 + 1), 1)) : vue.createCommentVNode("", true),
|
|
9563
9549
|
__props.isShowAction ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
9564
9550
|
key: 1,
|
|
9565
9551
|
class: "table-children-delete-item",
|
|
@@ -12306,7 +12292,7 @@ const _sfc_main$1a = /* @__PURE__ */ vue.defineComponent({
|
|
|
12306
12292
|
});
|
|
12307
12293
|
const _hoisted_1$v = { key: 0 };
|
|
12308
12294
|
const _hoisted_2$c = { style: { "margin-top": "8px" } };
|
|
12309
|
-
const _hoisted_3$
|
|
12295
|
+
const _hoisted_3$8 = ["src"];
|
|
12310
12296
|
const _sfc_main$19 = /* @__PURE__ */ vue.defineComponent({
|
|
12311
12297
|
__name: "ImageUpload",
|
|
12312
12298
|
props: {
|
|
@@ -12475,7 +12461,7 @@ const _sfc_main$19 = /* @__PURE__ */ vue.defineComponent({
|
|
|
12475
12461
|
alt: "",
|
|
12476
12462
|
style: { "width": "100%" },
|
|
12477
12463
|
src: previewImage.value
|
|
12478
|
-
}, null, 8, _hoisted_3$
|
|
12464
|
+
}, null, 8, _hoisted_3$8)
|
|
12479
12465
|
]),
|
|
12480
12466
|
_: 1
|
|
12481
12467
|
}, 8, ["open", "title"])
|
|
@@ -14419,7 +14405,8 @@ const treeProps = utils.buildProps({
|
|
|
14419
14405
|
type: Boolean,
|
|
14420
14406
|
default: false
|
|
14421
14407
|
},
|
|
14422
|
-
checkable: { type: Boolean, default:
|
|
14408
|
+
checkable: { type: Boolean, default: false },
|
|
14409
|
+
addable: { type: Boolean, default: false },
|
|
14423
14410
|
defaultExpandLevel: {
|
|
14424
14411
|
type: [String, Number],
|
|
14425
14412
|
default: ""
|
|
@@ -14500,6 +14487,10 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
|
|
|
14500
14487
|
type: Boolean,
|
|
14501
14488
|
default: false
|
|
14502
14489
|
},
|
|
14490
|
+
addable: {
|
|
14491
|
+
type: Boolean,
|
|
14492
|
+
default: false
|
|
14493
|
+
},
|
|
14503
14494
|
search: {
|
|
14504
14495
|
type: Boolean,
|
|
14505
14496
|
default: false
|
|
@@ -14576,14 +14567,15 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
|
|
|
14576
14567
|
]),
|
|
14577
14568
|
_: 1
|
|
14578
14569
|
}, 8, ["helpMessage"])) : vue.createCommentVNode("", true),
|
|
14579
|
-
vue.
|
|
14570
|
+
_ctx.addable ? (vue.openBlock(), vue.createBlock(vue.unref(Icon2), {
|
|
14571
|
+
key: 1,
|
|
14580
14572
|
icon: "ant-design:plus-square-outlined",
|
|
14581
14573
|
style: {
|
|
14582
14574
|
color: "#2da44e"
|
|
14583
14575
|
},
|
|
14584
14576
|
class: "cursor-pointer",
|
|
14585
14577
|
onClick: handleMenuClick
|
|
14586
|
-
})
|
|
14578
|
+
})) : vue.createCommentVNode("", true)
|
|
14587
14579
|
]),
|
|
14588
14580
|
_ctx.search || _ctx.toolbar ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$b, [
|
|
14589
14581
|
_ctx.search ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -14602,8 +14594,8 @@ const _sfc_main$15 = /* @__PURE__ */ vue.defineComponent({
|
|
|
14602
14594
|
};
|
|
14603
14595
|
}
|
|
14604
14596
|
});
|
|
14605
|
-
const
|
|
14606
|
-
const TreeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-
|
|
14597
|
+
const TreeHeader_vue_vue_type_style_index_0_scoped_743e62ba_lang = "";
|
|
14598
|
+
const TreeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$15, [["__scopeId", "data-v-743e62ba"]]);
|
|
14607
14599
|
process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
14608
14600
|
process.env.NODE_ENV !== "production" ? Object.freeze([]) : [];
|
|
14609
14601
|
const isString$1 = (val) => typeof val === "string";
|
|
@@ -15387,7 +15379,8 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
|
|
|
15387
15379
|
helpMessage,
|
|
15388
15380
|
toolbar,
|
|
15389
15381
|
search,
|
|
15390
|
-
checkable
|
|
15382
|
+
checkable,
|
|
15383
|
+
addable
|
|
15391
15384
|
} = props2;
|
|
15392
15385
|
const showTitle = title || toolbar || search || slots.headerTitle;
|
|
15393
15386
|
const scrollStyle = {
|
|
@@ -15406,7 +15399,8 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
|
|
|
15406
15399
|
"onStrictlyChange": onStrictlyChange,
|
|
15407
15400
|
"onSearch": handleSearch,
|
|
15408
15401
|
"searchText": searchState.searchText,
|
|
15409
|
-
"onPlusClick": handlePlusClick
|
|
15402
|
+
"onPlusClick": handlePlusClick,
|
|
15403
|
+
"addable": addable
|
|
15410
15404
|
}, _isSlot$4(_slot = utils.extendSlots(slots)) ? _slot : {
|
|
15411
15405
|
default: () => [_slot]
|
|
15412
15406
|
}), vue.createVNode(antDesignVue.Spin, {
|
|
@@ -18241,11 +18235,11 @@ const getGlobalAdvancedType = (fieldList, value) => {
|
|
|
18241
18235
|
};
|
|
18242
18236
|
const _hoisted_1$q = { class: "shy-ui-advanced-search-add" };
|
|
18243
18237
|
const _hoisted_2$a = { class: "shy-ui-advanced-search-item-wrapper" };
|
|
18244
|
-
const _hoisted_3$
|
|
18238
|
+
const _hoisted_3$7 = {
|
|
18245
18239
|
key: 0,
|
|
18246
18240
|
class: "shy-ui-advanced-search-item-value-range"
|
|
18247
18241
|
};
|
|
18248
|
-
const _hoisted_4$
|
|
18242
|
+
const _hoisted_4$6 = /* @__PURE__ */ vue.createElementVNode("div", { style: { "flex": "0", "width": "40px", "margin-right": "8px" } }, " 至 ", -1);
|
|
18249
18243
|
const _hoisted_5$4 = {
|
|
18250
18244
|
key: 0,
|
|
18251
18245
|
class: "shy-ui-advanced-search-item-value-range"
|
|
@@ -18467,7 +18461,7 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
|
|
|
18467
18461
|
}, {
|
|
18468
18462
|
default: vue.withCtx(() => [
|
|
18469
18463
|
getTypeByField(schema == null ? void 0 : schema.field) === "number" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
18470
|
-
schema.op === "bt" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
18464
|
+
schema.op === "bt" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$7, [
|
|
18471
18465
|
vue.createVNode(vue.unref(antDesignVue.FormItem), null, {
|
|
18472
18466
|
default: vue.withCtx(() => [
|
|
18473
18467
|
vue.createVNode(vue.unref(antDesignVue.InputNumber), {
|
|
@@ -18478,7 +18472,7 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
|
|
|
18478
18472
|
]),
|
|
18479
18473
|
_: 2
|
|
18480
18474
|
}, 1024),
|
|
18481
|
-
_hoisted_4$
|
|
18475
|
+
_hoisted_4$6,
|
|
18482
18476
|
vue.createVNode(vue.unref(antDesignVue.FormItem), null, {
|
|
18483
18477
|
default: vue.withCtx(() => [
|
|
18484
18478
|
vue.createVNode(vue.unref(antDesignVue.InputNumber), {
|
|
@@ -18771,14 +18765,14 @@ const _hoisted_2$9 = {
|
|
|
18771
18765
|
key: 0,
|
|
18772
18766
|
style: { "margin": "5px" }
|
|
18773
18767
|
};
|
|
18774
|
-
const _hoisted_3$
|
|
18768
|
+
const _hoisted_3$6 = { class: "flex items-center" };
|
|
18775
18769
|
function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
18776
18770
|
const _component_TableSetting = vue.resolveComponent("TableSetting");
|
|
18777
18771
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$o, [
|
|
18778
18772
|
_ctx.$slots.headerTop ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$9, [
|
|
18779
18773
|
vue.renderSlot(_ctx.$slots, "headerTop")
|
|
18780
18774
|
])) : vue.createCommentVNode("", true),
|
|
18781
|
-
vue.createElementVNode("div", _hoisted_3$
|
|
18775
|
+
vue.createElementVNode("div", _hoisted_3$6, [
|
|
18782
18776
|
_ctx.$slots.tableTitle ? vue.renderSlot(_ctx.$slots, "tableTitle", { key: 0 }) : vue.createCommentVNode("", true),
|
|
18783
18777
|
vue.createElementVNode("div", {
|
|
18784
18778
|
class: vue.normalizeClass(`${_ctx.prefixCls}__toolbar`)
|
|
@@ -19528,8 +19522,8 @@ const TableGlobalSearch_vue_vue_type_style_index_0_scoped_90331d26_lang = "";
|
|
|
19528
19522
|
const _withScopeId$1 = (n) => (vue.pushScopeId("data-v-90331d26"), n = n(), vue.popScopeId(), n);
|
|
19529
19523
|
const _hoisted_1$m = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("div", null, "搜索全部", -1));
|
|
19530
19524
|
const _hoisted_2$8 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("div", null, "搜索特定字段", -1));
|
|
19531
|
-
const _hoisted_3$
|
|
19532
|
-
const _hoisted_4$
|
|
19525
|
+
const _hoisted_3$5 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("div", null, null, -1));
|
|
19526
|
+
const _hoisted_4$5 = { class: "shy-basic-table-global-search-checkbox-wrapper" };
|
|
19533
19527
|
const _hoisted_5$3 = { style: { "color": "#131415", "font-size": "12px" } };
|
|
19534
19528
|
function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
19535
19529
|
const _component_CheckOutlined = vue.resolveComponent("CheckOutlined");
|
|
@@ -19554,8 +19548,8 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19554
19548
|
_hoisted_2$8,
|
|
19555
19549
|
_ctx.curSelected === 2 ? (vue.openBlock(), vue.createBlock(_component_CheckOutlined, { key: 0 })) : vue.createCommentVNode("", true)
|
|
19556
19550
|
], 2),
|
|
19557
|
-
_hoisted_3$
|
|
19558
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
19551
|
+
_hoisted_3$5,
|
|
19552
|
+
vue.createElementVNode("div", _hoisted_4$5, [
|
|
19559
19553
|
vue.createVNode(_component_CheckboxGroup, {
|
|
19560
19554
|
value: _ctx.fieldList,
|
|
19561
19555
|
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => _ctx.fieldList = $event),
|
|
@@ -25217,8 +25211,8 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
|
25217
25211
|
});
|
|
25218
25212
|
const _hoisted_1$c = { key: 0 };
|
|
25219
25213
|
const _hoisted_2$5 = { key: 1 };
|
|
25220
|
-
const _hoisted_3$
|
|
25221
|
-
const _hoisted_4$
|
|
25214
|
+
const _hoisted_3$4 = { key: 2 };
|
|
25215
|
+
const _hoisted_4$4 = { style: { "display": "flex", "justify-content": "space-between" } };
|
|
25222
25216
|
const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
25223
25217
|
__name: "TableColGroup",
|
|
25224
25218
|
props: {
|
|
@@ -25290,7 +25284,7 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
|
25290
25284
|
}), null, 16, ["value", "onUpdate:value"])
|
|
25291
25285
|
])) : (c == null ? void 0 : c.isEdit) && ((_e = c == null ? void 0 : c.editComponentProps) == null ? void 0 : _e.component) === "Switch" ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$5, [
|
|
25292
25286
|
vue.createElementVNode("span", null, vue.toDisplayString(getSwitchShowText(c, config.row)), 1)
|
|
25293
|
-
])) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$
|
|
25287
|
+
])) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$4, vue.toDisplayString(config.row[c.field]), 1))
|
|
25294
25288
|
], 64))
|
|
25295
25289
|
];
|
|
25296
25290
|
})
|
|
@@ -25299,7 +25293,7 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
|
25299
25293
|
vue.renderSlot(_ctx.$slots, `${c.field}Header`, vue.normalizeProps(vue.guardReactiveProps({ c })), () => {
|
|
25300
25294
|
var _a2;
|
|
25301
25295
|
return [
|
|
25302
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
25296
|
+
vue.createElementVNode("div", _hoisted_4$4, [
|
|
25303
25297
|
vue.createElementVNode("div", null, vue.toDisplayString(c.title), 1),
|
|
25304
25298
|
((_a2 = _ctx.column) == null ? void 0 : _a2.sortable) ? (vue.openBlock(), vue.createBlock(_sfc_main$w, {
|
|
25305
25299
|
key: 0,
|
|
@@ -25940,8 +25934,8 @@ const useSort = () => {
|
|
|
25940
25934
|
};
|
|
25941
25935
|
const _hoisted_1$8 = { key: 0 };
|
|
25942
25936
|
const _hoisted_2$4 = { key: 1 };
|
|
25943
|
-
const _hoisted_3$
|
|
25944
|
-
const _hoisted_4$
|
|
25937
|
+
const _hoisted_3$3 = { key: 2 };
|
|
25938
|
+
const _hoisted_4$3 = { style: { "display": "flex", "justify-content": "space-between" } };
|
|
25945
25939
|
const _hoisted_5$2 = { class: "flex items-center" };
|
|
25946
25940
|
const prefixCls = "shy-basic-table-plus";
|
|
25947
25941
|
const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -26288,14 +26282,14 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
|
26288
26282
|
}), null, 16, ["value", "onUpdate:value"])
|
|
26289
26283
|
])) : (column2 == null ? void 0 : column2.isEdit) && ((_d2 = column2 == null ? void 0 : column2.editComponentProps) == null ? void 0 : _d2.component) === "Switch" ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$4, [
|
|
26290
26284
|
vue.createElementVNode("span", null, vue.toDisplayString(getSwitchShowText(column2, config.row)), 1)
|
|
26291
|
-
])) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$
|
|
26285
|
+
])) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$3, vue.toDisplayString(config.row[column2.field]), 1))
|
|
26292
26286
|
], 64))
|
|
26293
26287
|
];
|
|
26294
26288
|
})
|
|
26295
26289
|
]),
|
|
26296
26290
|
header: vue.withCtx(() => [
|
|
26297
26291
|
vue.renderSlot(_ctx.$slots, `${column2.field}Header`, vue.normalizeProps(vue.guardReactiveProps({ column: column2 })), () => [
|
|
26298
|
-
vue.createElementVNode("div", _hoisted_4$
|
|
26292
|
+
vue.createElementVNode("div", _hoisted_4$3, [
|
|
26299
26293
|
vue.createElementVNode("div", null, vue.toDisplayString(column2.title), 1),
|
|
26300
26294
|
(column2 == null ? void 0 : column2.sortable) ? (vue.openBlock(), vue.createBlock(_sfc_main$w, {
|
|
26301
26295
|
key: 0,
|
|
@@ -31891,7 +31885,7 @@ const componentSetting = {
|
|
|
31891
31885
|
// Number of pages that can be selected
|
|
31892
31886
|
pageSizeOptions: ["10", "20", "50", "100"],
|
|
31893
31887
|
// Default display quantity on one page
|
|
31894
|
-
defaultPageSize:
|
|
31888
|
+
defaultPageSize: 20,
|
|
31895
31889
|
// Default Size
|
|
31896
31890
|
defaultSize: "small",
|
|
31897
31891
|
// Custom general sort function
|
|
@@ -33145,6 +33139,8 @@ const _hoisted_1$6 = {
|
|
|
33145
33139
|
class: "table-children-required"
|
|
33146
33140
|
};
|
|
33147
33141
|
const _hoisted_2$3 = { class: "text-red-500" };
|
|
33142
|
+
const _hoisted_3$2 = { class: "table-children-add-btn" };
|
|
33143
|
+
const _hoisted_4$2 = { class: "w-full h-[fit-content] py-8px flex justify-end items-center" };
|
|
33148
33144
|
const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
33149
33145
|
__name: "Table",
|
|
33150
33146
|
props: {
|
|
@@ -33160,6 +33156,14 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
33160
33156
|
type: Array,
|
|
33161
33157
|
default: () => []
|
|
33162
33158
|
},
|
|
33159
|
+
isShowFooter: {
|
|
33160
|
+
type: Boolean,
|
|
33161
|
+
default: () => false
|
|
33162
|
+
},
|
|
33163
|
+
footerRender: {
|
|
33164
|
+
type: Function,
|
|
33165
|
+
default: () => ""
|
|
33166
|
+
},
|
|
33163
33167
|
isShowAction: {
|
|
33164
33168
|
type: Boolean,
|
|
33165
33169
|
default: () => true
|
|
@@ -33176,6 +33180,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
33176
33180
|
const formActionType = vue.inject("formActionType");
|
|
33177
33181
|
const emit = __emit;
|
|
33178
33182
|
const props2 = __props;
|
|
33183
|
+
const tableElRef = vue.ref();
|
|
33179
33184
|
const emitData = vue.ref([]);
|
|
33180
33185
|
const [state] = use.useRuleFormItem(props2, "value", "change", emitData);
|
|
33181
33186
|
const getColumns = vue.computed(() => {
|
|
@@ -33203,6 +33208,25 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
33203
33208
|
...(props2 == null ? void 0 : props2.isShowAction) ? [actionColumn] : []
|
|
33204
33209
|
];
|
|
33205
33210
|
});
|
|
33211
|
+
const getScrollX = vue.computed(() => {
|
|
33212
|
+
var _a2;
|
|
33213
|
+
let width = 0;
|
|
33214
|
+
const NORMAL_WIDTH = 150;
|
|
33215
|
+
const columns = vue.unref(props2.columns).filter((item) => !item.defaultHidden);
|
|
33216
|
+
columns.forEach((item) => {
|
|
33217
|
+
width += Number.parseFloat(item.width) || 0;
|
|
33218
|
+
});
|
|
33219
|
+
const unsetWidthColumns = columns.filter(
|
|
33220
|
+
(item) => !Reflect.has(item, "width")
|
|
33221
|
+
);
|
|
33222
|
+
const len = unsetWidthColumns.length;
|
|
33223
|
+
if (len !== 0) {
|
|
33224
|
+
width += len * NORMAL_WIDTH;
|
|
33225
|
+
}
|
|
33226
|
+
const table2 = vue.unref(tableElRef);
|
|
33227
|
+
const tableWidth = ((_a2 = table2 == null ? void 0 : table2.$el) == null ? void 0 : _a2.offsetWidth) ?? 0;
|
|
33228
|
+
return tableWidth > width ? "100%" : width;
|
|
33229
|
+
});
|
|
33206
33230
|
const plusClickEvent = () => {
|
|
33207
33231
|
state.value = [{ [props2.rowKey]: utils.buildUUID() }, ...vue.toRaw(state.value)];
|
|
33208
33232
|
emit("add", state.value);
|
|
@@ -33219,7 +33243,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
33219
33243
|
const rulesRef = vue.reactive({});
|
|
33220
33244
|
const getRules = ({ column: column2, record, index: index2, ...args }) => {
|
|
33221
33245
|
var _a2, _b;
|
|
33222
|
-
const errKey = `${column2.dataIndex}-${record.
|
|
33246
|
+
const errKey = `${column2.dataIndex}-${record[props2.rowKey]}Info`;
|
|
33223
33247
|
if (!column2.required)
|
|
33224
33248
|
return [];
|
|
33225
33249
|
if ((_a2 = rulesRef[errKey]) == null ? void 0 : _a2.rules)
|
|
@@ -33289,15 +33313,12 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
33289
33313
|
() => state.value,
|
|
33290
33314
|
(v, old) => {
|
|
33291
33315
|
if (!isEqual(vue.toRaw(v), vue.toRaw(old))) {
|
|
33292
|
-
|
|
33293
|
-
|
|
33294
|
-
|
|
33295
|
-
|
|
33296
|
-
|
|
33297
|
-
|
|
33298
|
-
};
|
|
33299
|
-
})
|
|
33300
|
-
);
|
|
33316
|
+
state.value = vue.toRaw(v).map((ele) => {
|
|
33317
|
+
return {
|
|
33318
|
+
...ele,
|
|
33319
|
+
[props2.rowKey]: ele[props2.rowKey] || utils.buildUUID()
|
|
33320
|
+
};
|
|
33321
|
+
});
|
|
33301
33322
|
}
|
|
33302
33323
|
},
|
|
33303
33324
|
{
|
|
@@ -33350,7 +33371,12 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
33350
33371
|
return (_ctx, _cache) => {
|
|
33351
33372
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
33352
33373
|
vue.createVNode(vue.unref(antDesignVue.Table), {
|
|
33374
|
+
ref_key: "tableElRef",
|
|
33375
|
+
ref: tableElRef,
|
|
33353
33376
|
columns: getColumns.value,
|
|
33377
|
+
scroll: {
|
|
33378
|
+
x: getScrollX.value
|
|
33379
|
+
},
|
|
33354
33380
|
"data-source": vue.unref(state),
|
|
33355
33381
|
pagination: false,
|
|
33356
33382
|
bordered: "",
|
|
@@ -33377,12 +33403,12 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
33377
33403
|
return [
|
|
33378
33404
|
vue.createVNode(vue.unref(antDesignVue.Popover), {
|
|
33379
33405
|
overlayClassName: "table-children-err-popover",
|
|
33380
|
-
visible: !!((_a2 = rulesRef == null ? void 0 : rulesRef[`${column2.dataIndex}-${record.
|
|
33406
|
+
visible: !!((_a2 = rulesRef == null ? void 0 : rulesRef[`${column2.dataIndex}-${record[props2.rowKey]}Info`]) == null ? void 0 : _a2.show) && !isScroll.value
|
|
33381
33407
|
}, {
|
|
33382
33408
|
content: vue.withCtx(() => {
|
|
33383
33409
|
var _a3;
|
|
33384
33410
|
return [
|
|
33385
|
-
vue.createElementVNode("span", _hoisted_2$3, vue.toDisplayString((_a3 = rulesRef[`${column2.dataIndex}-${record.
|
|
33411
|
+
vue.createElementVNode("span", _hoisted_2$3, vue.toDisplayString((_a3 = rulesRef[`${column2.dataIndex}-${record[props2.rowKey]}Info`]) == null ? void 0 : _a3.msg), 1)
|
|
33386
33412
|
];
|
|
33387
33413
|
}),
|
|
33388
33414
|
default: vue.withCtx(() => [
|
|
@@ -33437,19 +33463,27 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
33437
33463
|
}, null, 8, ["actions"])) : vue.createCommentVNode("", true)
|
|
33438
33464
|
]),
|
|
33439
33465
|
_: 1
|
|
33440
|
-
}, 8, ["columns", "data-source"]),
|
|
33441
|
-
vue.createElementVNode("div",
|
|
33442
|
-
vue.
|
|
33466
|
+
}, 8, ["columns", "scroll", "data-source"]),
|
|
33467
|
+
vue.createElementVNode("div", _hoisted_3$2, [
|
|
33468
|
+
vue.createVNode(vue.unref(BasicButton), {
|
|
33443
33469
|
onClick: plusClickEvent,
|
|
33444
|
-
|
|
33445
|
-
},
|
|
33470
|
+
type: "dashed"
|
|
33471
|
+
}, {
|
|
33472
|
+
default: vue.withCtx(() => [
|
|
33473
|
+
vue.createTextVNode(" 新增 ")
|
|
33474
|
+
]),
|
|
33475
|
+
_: 1
|
|
33476
|
+
})
|
|
33477
|
+
]),
|
|
33478
|
+
vue.createElementVNode("div", _hoisted_4$2, [
|
|
33479
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.h("span", null, __props.footerRender()))))
|
|
33446
33480
|
])
|
|
33447
33481
|
], 64);
|
|
33448
33482
|
};
|
|
33449
33483
|
}
|
|
33450
33484
|
});
|
|
33451
|
-
const
|
|
33452
|
-
const Table = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
33485
|
+
const Table_vue_vue_type_style_index_0_scoped_221ba907_lang = "";
|
|
33486
|
+
const Table = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-221ba907"]]);
|
|
33453
33487
|
const ShyComponentMap = /* @__PURE__ */ new Map();
|
|
33454
33488
|
ShyComponentMap.set("Input", antDesignVue.Input);
|
|
33455
33489
|
ShyComponentMap.set("InputGroup", antDesignVue.Input.Group);
|
|
@@ -35502,23 +35536,23 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
35502
35536
|
}
|
|
35503
35537
|
},
|
|
35504
35538
|
setup(__props) {
|
|
35505
|
-
const { prefixCls: prefixCls2 } = use.useDesign("ant-form");
|
|
35539
|
+
const { prefixCls: prefixCls2 } = use.useDesign("ant-form-wrapper");
|
|
35506
35540
|
const props2 = __props;
|
|
35507
35541
|
const getClass = vue.computed(() => {
|
|
35508
35542
|
switch (props2.span) {
|
|
35509
35543
|
case 1:
|
|
35510
|
-
return `${prefixCls2}-
|
|
35544
|
+
return `${prefixCls2}-col-1`;
|
|
35511
35545
|
case 2:
|
|
35512
|
-
return `${prefixCls2}-
|
|
35546
|
+
return `${prefixCls2}-col-2`;
|
|
35513
35547
|
case 3:
|
|
35514
|
-
return `${prefixCls2}-
|
|
35548
|
+
return `${prefixCls2}-col-3`;
|
|
35515
35549
|
default:
|
|
35516
35550
|
return "";
|
|
35517
35551
|
}
|
|
35518
35552
|
});
|
|
35519
35553
|
return (_ctx, _cache) => {
|
|
35520
35554
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
35521
|
-
class: vue.normalizeClass(getClass.value)
|
|
35555
|
+
class: vue.normalizeClass([vue.unref(prefixCls2), getClass.value])
|
|
35522
35556
|
}, [
|
|
35523
35557
|
vue.renderSlot(_ctx.$slots, "default")
|
|
35524
35558
|
], 2);
|
|
@@ -35613,7 +35647,7 @@ function usePagination(refProps) {
|
|
|
35613
35647
|
isShowPagination,
|
|
35614
35648
|
current: 1,
|
|
35615
35649
|
pageSize: PAGE_SIZE,
|
|
35616
|
-
size:
|
|
35650
|
+
// size: '',
|
|
35617
35651
|
defaultPageSize: PAGE_SIZE,
|
|
35618
35652
|
showTotal: (total) => vue.createVNode("span", null, [vue.createTextVNode("共 "), vue.createVNode("span", null, [total]), vue.createTextVNode(" 条")]),
|
|
35619
35653
|
showSizeChanger: true,
|