3h1-ui 2.14.22 → 2.14.24
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 +23 -11
- package/es/style.css +7 -7
- package/lib/index.js +23 -11
- package/package.json +1 -1
package/es/index.js
CHANGED
|
@@ -7061,7 +7061,7 @@ const _hoisted_1$r = { class: "flex justify-between" };
|
|
|
7061
7061
|
const _hoisted_2$9 = { key: 0 };
|
|
7062
7062
|
const _hoisted_3$6 = { class: "flex flex-wrap px-2" };
|
|
7063
7063
|
const _hoisted_4$5 = ["onClick", "title"];
|
|
7064
|
-
const _hoisted_5$
|
|
7064
|
+
const _hoisted_5$4 = {
|
|
7065
7065
|
key: 0,
|
|
7066
7066
|
class: "flex py-2 items-center justify-center"
|
|
7067
7067
|
};
|
|
@@ -7198,7 +7198,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
7198
7198
|
]),
|
|
7199
7199
|
_: 1
|
|
7200
7200
|
}),
|
|
7201
|
-
unref(getTotal) >= __props.pageSize ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
7201
|
+
unref(getTotal) >= __props.pageSize ? (openBlock(), createElementBlock("div", _hoisted_5$4, [
|
|
7202
7202
|
createVNode(unref(APagination), {
|
|
7203
7203
|
showLessItems: "",
|
|
7204
7204
|
size: "small",
|
|
@@ -7381,6 +7381,10 @@ const _hoisted_2$8 = {
|
|
|
7381
7381
|
};
|
|
7382
7382
|
const _hoisted_3$5 = { class: "delete-index" };
|
|
7383
7383
|
const _hoisted_4$4 = ["onClick"];
|
|
7384
|
+
const _hoisted_5$3 = {
|
|
7385
|
+
key: 1,
|
|
7386
|
+
class: "delete-index"
|
|
7387
|
+
};
|
|
7384
7388
|
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
7385
7389
|
__name: "Table",
|
|
7386
7390
|
props: {
|
|
@@ -7391,9 +7395,13 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
7391
7395
|
value: {
|
|
7392
7396
|
type: Array,
|
|
7393
7397
|
default: () => []
|
|
7398
|
+
},
|
|
7399
|
+
isShowAction: {
|
|
7400
|
+
type: Boolean,
|
|
7401
|
+
default: () => true
|
|
7394
7402
|
}
|
|
7395
7403
|
},
|
|
7396
|
-
emits: ["update:value"],
|
|
7404
|
+
emits: ["update:value", "change"],
|
|
7397
7405
|
setup(__props, { expose, emit }) {
|
|
7398
7406
|
const props2 = __props;
|
|
7399
7407
|
const listFormRefs = ref([]);
|
|
@@ -7406,13 +7414,13 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
7406
7414
|
customRender: ({ index: index2 }) => {
|
|
7407
7415
|
return `${index2 + 1}`;
|
|
7408
7416
|
},
|
|
7409
|
-
|
|
7417
|
+
minWidth: 50,
|
|
7410
7418
|
align: "center"
|
|
7411
7419
|
};
|
|
7412
7420
|
return [indexColumn, ...props2.columns];
|
|
7413
7421
|
});
|
|
7414
7422
|
const plusClickEvent = () => {
|
|
7415
|
-
state.value
|
|
7423
|
+
state.value = [{}, ...state.value];
|
|
7416
7424
|
};
|
|
7417
7425
|
const rowClickEvent = (index2) => {
|
|
7418
7426
|
state.value = unref(state).filter((item, i) => {
|
|
@@ -7433,8 +7441,10 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
7433
7441
|
watch(
|
|
7434
7442
|
() => state.value,
|
|
7435
7443
|
(v) => {
|
|
7444
|
+
console.log(11, v);
|
|
7436
7445
|
emit("update:value", v);
|
|
7437
7446
|
}
|
|
7447
|
+
// { immediate: true }
|
|
7438
7448
|
);
|
|
7439
7449
|
const validate = async () => {
|
|
7440
7450
|
try {
|
|
@@ -7503,8 +7513,9 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
7503
7513
|
}, null, 8, ["value", "onUpdate:value", "min", "max", "precision"])) : (openBlock(), createBlock(unref(Input), {
|
|
7504
7514
|
key: 3,
|
|
7505
7515
|
value: record[column.dataIndex],
|
|
7506
|
-
"onUpdate:value": ($event) => record[column.dataIndex] = $event
|
|
7507
|
-
|
|
7516
|
+
"onUpdate:value": ($event) => record[column.dataIndex] = $event,
|
|
7517
|
+
disabled: !props2.isShowAction
|
|
7518
|
+
}, null, 8, ["value", "onUpdate:value", "disabled"]))
|
|
7508
7519
|
]),
|
|
7509
7520
|
_: 2
|
|
7510
7521
|
}, 1032, ["rules", "name"])
|
|
@@ -7512,7 +7523,8 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
7512
7523
|
_: 2
|
|
7513
7524
|
}, 1032, ["model"])) : (openBlock(), createElementBlock("div", _hoisted_2$8, [
|
|
7514
7525
|
createElementVNode("span", _hoisted_3$5, toDisplayString(index2 + 1), 1),
|
|
7515
|
-
|
|
7526
|
+
props2.isShowAction ? (openBlock(), createElementBlock("div", {
|
|
7527
|
+
key: 0,
|
|
7516
7528
|
class: "delete-item",
|
|
7517
7529
|
onClick: ($event) => rowClickEvent(index2)
|
|
7518
7530
|
}, [
|
|
@@ -7520,7 +7532,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
7520
7532
|
icon: "ant-design:delete-filled",
|
|
7521
7533
|
color: "#fff"
|
|
7522
7534
|
})
|
|
7523
|
-
], 8, _hoisted_4$4)
|
|
7535
|
+
], 8, _hoisted_4$4)) : (openBlock(), createElementBlock("span", _hoisted_5$3, toDisplayString(index2 + 1), 1))
|
|
7524
7536
|
]))
|
|
7525
7537
|
]),
|
|
7526
7538
|
_: 1
|
|
@@ -7528,8 +7540,8 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
7528
7540
|
};
|
|
7529
7541
|
}
|
|
7530
7542
|
});
|
|
7531
|
-
const
|
|
7532
|
-
const Table = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-
|
|
7543
|
+
const Table_vue_vue_type_style_index_0_scoped_d4551041_lang = "";
|
|
7544
|
+
const Table = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-d4551041"]]);
|
|
7533
7545
|
const componentMap$2 = /* @__PURE__ */ new Map();
|
|
7534
7546
|
componentMap$2.set("Input", Input);
|
|
7535
7547
|
componentMap$2.set("InputGroup", Input.Group);
|
package/es/style.css
CHANGED
|
@@ -24831,7 +24831,7 @@ span.iconify {
|
|
|
24831
24831
|
}
|
|
24832
24832
|
.shy-countdown-input .ant-input-group-addon button {
|
|
24833
24833
|
font-size: 14px;
|
|
24834
|
-
}.table-plus[data-v-
|
|
24834
|
+
}.table-plus[data-v-d4551041] {
|
|
24835
24835
|
width: 30px;
|
|
24836
24836
|
height: 30px;
|
|
24837
24837
|
font-size: 24px;
|
|
@@ -24842,21 +24842,21 @@ span.iconify {
|
|
|
24842
24842
|
line-height: 30px;
|
|
24843
24843
|
cursor: pointer;
|
|
24844
24844
|
}
|
|
24845
|
-
.table-children[data-v-
|
|
24845
|
+
.table-children[data-v-d4551041] .ant-form-item {
|
|
24846
24846
|
margin-bottom: 0 !important;
|
|
24847
24847
|
}
|
|
24848
|
-
.delete-wrapper[data-v-
|
|
24848
|
+
.delete-wrapper[data-v-d4551041] {
|
|
24849
24849
|
height: 100%;
|
|
24850
24850
|
}
|
|
24851
|
-
.delete-wrapper:hover .delete-item[data-v-
|
|
24851
|
+
.delete-wrapper:hover .delete-item[data-v-d4551041] {
|
|
24852
24852
|
display: flex;
|
|
24853
24853
|
justify-content: center;
|
|
24854
24854
|
align-items: center;
|
|
24855
24855
|
}
|
|
24856
|
-
.delete-wrapper:hover .delete-index[data-v-
|
|
24856
|
+
.delete-wrapper:hover .delete-index[data-v-d4551041] {
|
|
24857
24857
|
display: none;
|
|
24858
24858
|
}
|
|
24859
|
-
.delete-wrapper .delete-item[data-v-
|
|
24859
|
+
.delete-wrapper .delete-item[data-v-d4551041] {
|
|
24860
24860
|
background-color: red;
|
|
24861
24861
|
border-radius: 50%;
|
|
24862
24862
|
width: 30px;
|
|
@@ -24865,7 +24865,7 @@ span.iconify {
|
|
|
24865
24865
|
display: none;
|
|
24866
24866
|
cursor: pointer;
|
|
24867
24867
|
}
|
|
24868
|
-
.delete-wrapper .delete-index[data-v-
|
|
24868
|
+
.delete-wrapper .delete-index[data-v-d4551041] {
|
|
24869
24869
|
display: inline-block;
|
|
24870
24870
|
}@media screen and (max-height: 600px) {
|
|
24871
24871
|
.ant-modal {
|
package/lib/index.js
CHANGED
|
@@ -7063,7 +7063,7 @@ const _hoisted_1$r = { class: "flex justify-between" };
|
|
|
7063
7063
|
const _hoisted_2$9 = { key: 0 };
|
|
7064
7064
|
const _hoisted_3$6 = { class: "flex flex-wrap px-2" };
|
|
7065
7065
|
const _hoisted_4$5 = ["onClick", "title"];
|
|
7066
|
-
const _hoisted_5$
|
|
7066
|
+
const _hoisted_5$4 = {
|
|
7067
7067
|
key: 0,
|
|
7068
7068
|
class: "flex py-2 items-center justify-center"
|
|
7069
7069
|
};
|
|
@@ -7200,7 +7200,7 @@ const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
|
|
|
7200
7200
|
]),
|
|
7201
7201
|
_: 1
|
|
7202
7202
|
}),
|
|
7203
|
-
vue.unref(getTotal) >= __props.pageSize ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$
|
|
7203
|
+
vue.unref(getTotal) >= __props.pageSize ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$4, [
|
|
7204
7204
|
vue.createVNode(vue.unref(APagination), {
|
|
7205
7205
|
showLessItems: "",
|
|
7206
7206
|
size: "small",
|
|
@@ -7383,6 +7383,10 @@ const _hoisted_2$8 = {
|
|
|
7383
7383
|
};
|
|
7384
7384
|
const _hoisted_3$5 = { class: "delete-index" };
|
|
7385
7385
|
const _hoisted_4$4 = ["onClick"];
|
|
7386
|
+
const _hoisted_5$3 = {
|
|
7387
|
+
key: 1,
|
|
7388
|
+
class: "delete-index"
|
|
7389
|
+
};
|
|
7386
7390
|
const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
|
|
7387
7391
|
__name: "Table",
|
|
7388
7392
|
props: {
|
|
@@ -7393,9 +7397,13 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
|
|
|
7393
7397
|
value: {
|
|
7394
7398
|
type: Array,
|
|
7395
7399
|
default: () => []
|
|
7400
|
+
},
|
|
7401
|
+
isShowAction: {
|
|
7402
|
+
type: Boolean,
|
|
7403
|
+
default: () => true
|
|
7396
7404
|
}
|
|
7397
7405
|
},
|
|
7398
|
-
emits: ["update:value"],
|
|
7406
|
+
emits: ["update:value", "change"],
|
|
7399
7407
|
setup(__props, { expose, emit }) {
|
|
7400
7408
|
const props2 = __props;
|
|
7401
7409
|
const listFormRefs = vue.ref([]);
|
|
@@ -7408,13 +7416,13 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
|
|
|
7408
7416
|
customRender: ({ index: index2 }) => {
|
|
7409
7417
|
return `${index2 + 1}`;
|
|
7410
7418
|
},
|
|
7411
|
-
|
|
7419
|
+
minWidth: 50,
|
|
7412
7420
|
align: "center"
|
|
7413
7421
|
};
|
|
7414
7422
|
return [indexColumn, ...props2.columns];
|
|
7415
7423
|
});
|
|
7416
7424
|
const plusClickEvent = () => {
|
|
7417
|
-
state.value
|
|
7425
|
+
state.value = [{}, ...state.value];
|
|
7418
7426
|
};
|
|
7419
7427
|
const rowClickEvent = (index2) => {
|
|
7420
7428
|
state.value = vue.unref(state).filter((item, i) => {
|
|
@@ -7435,8 +7443,10 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
|
|
|
7435
7443
|
vue.watch(
|
|
7436
7444
|
() => state.value,
|
|
7437
7445
|
(v) => {
|
|
7446
|
+
console.log(11, v);
|
|
7438
7447
|
emit("update:value", v);
|
|
7439
7448
|
}
|
|
7449
|
+
// { immediate: true }
|
|
7440
7450
|
);
|
|
7441
7451
|
const validate = async () => {
|
|
7442
7452
|
try {
|
|
@@ -7505,8 +7515,9 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
|
|
|
7505
7515
|
}, null, 8, ["value", "onUpdate:value", "min", "max", "precision"])) : (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Input), {
|
|
7506
7516
|
key: 3,
|
|
7507
7517
|
value: record[column.dataIndex],
|
|
7508
|
-
"onUpdate:value": ($event) => record[column.dataIndex] = $event
|
|
7509
|
-
|
|
7518
|
+
"onUpdate:value": ($event) => record[column.dataIndex] = $event,
|
|
7519
|
+
disabled: !props2.isShowAction
|
|
7520
|
+
}, null, 8, ["value", "onUpdate:value", "disabled"]))
|
|
7510
7521
|
]),
|
|
7511
7522
|
_: 2
|
|
7512
7523
|
}, 1032, ["rules", "name"])
|
|
@@ -7514,7 +7525,8 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
|
|
|
7514
7525
|
_: 2
|
|
7515
7526
|
}, 1032, ["model"])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$8, [
|
|
7516
7527
|
vue.createElementVNode("span", _hoisted_3$5, vue.toDisplayString(index2 + 1), 1),
|
|
7517
|
-
vue.
|
|
7528
|
+
props2.isShowAction ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
7529
|
+
key: 0,
|
|
7518
7530
|
class: "delete-item",
|
|
7519
7531
|
onClick: ($event) => rowClickEvent(index2)
|
|
7520
7532
|
}, [
|
|
@@ -7522,7 +7534,7 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
|
|
|
7522
7534
|
icon: "ant-design:delete-filled",
|
|
7523
7535
|
color: "#fff"
|
|
7524
7536
|
})
|
|
7525
|
-
], 8, _hoisted_4$4)
|
|
7537
|
+
], 8, _hoisted_4$4)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$3, vue.toDisplayString(index2 + 1), 1))
|
|
7526
7538
|
]))
|
|
7527
7539
|
]),
|
|
7528
7540
|
_: 1
|
|
@@ -7530,8 +7542,8 @@ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
|
|
|
7530
7542
|
};
|
|
7531
7543
|
}
|
|
7532
7544
|
});
|
|
7533
|
-
const
|
|
7534
|
-
const Table = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-
|
|
7545
|
+
const Table_vue_vue_type_style_index_0_scoped_d4551041_lang = "";
|
|
7546
|
+
const Table = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-d4551041"]]);
|
|
7535
7547
|
const componentMap$2 = /* @__PURE__ */ new Map();
|
|
7536
7548
|
componentMap$2.set("Input", antDesignVue.Input);
|
|
7537
7549
|
componentMap$2.set("InputGroup", antDesignVue.Input.Group);
|