3h1-ui 3.0.0-next.216 → 3.0.0-next.218
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 +8 -6
- package/lib/index.js +8 -6
- package/package.json +1 -1
package/es/index.js
CHANGED
|
@@ -11779,7 +11779,7 @@ const FormItem$2 = /* @__PURE__ */ defineComponent({
|
|
|
11779
11779
|
}, [`${current.month() + 1}月`]);
|
|
11780
11780
|
};
|
|
11781
11781
|
}
|
|
11782
|
-
if (schema2.component === "Input"
|
|
11782
|
+
if (schema2.component === "Input") {
|
|
11783
11783
|
const maxlength = (componentProps == null ? void 0 : componentProps.maxlength) === void 0 ? 100 : componentProps.maxlength;
|
|
11784
11784
|
componentProps = Object.assign({}, componentProps, {
|
|
11785
11785
|
maxlength
|
|
@@ -32271,13 +32271,14 @@ const ShyFormTable = /* @__PURE__ */ defineComponent({
|
|
|
32271
32271
|
}
|
|
32272
32272
|
emit("add", state.value);
|
|
32273
32273
|
};
|
|
32274
|
-
const remove = (
|
|
32274
|
+
const remove = (record) => {
|
|
32275
|
+
const index2 = record[props2.rowKey];
|
|
32275
32276
|
curIndex.value -= curIndex.value === 0 ? 0 : 1;
|
|
32276
32277
|
const tempState = state.value.filter((item) => {
|
|
32277
32278
|
return item[props2.rowKey] !== index2;
|
|
32278
32279
|
});
|
|
32279
32280
|
state.value = [...tempState];
|
|
32280
|
-
emit("remove", state.value, index2);
|
|
32281
|
+
emit("remove", state.value, index2, record);
|
|
32281
32282
|
};
|
|
32282
32283
|
const rulesRef = reactive({});
|
|
32283
32284
|
const getRules = ({
|
|
@@ -32363,7 +32364,7 @@ const ShyFormTable = /* @__PURE__ */ defineComponent({
|
|
|
32363
32364
|
ifShow: () => props2.dynamicShowRemove(record),
|
|
32364
32365
|
popConfirm: {
|
|
32365
32366
|
title: "确定删除",
|
|
32366
|
-
confirm: remove.bind(null, record
|
|
32367
|
+
confirm: remove.bind(null, record)
|
|
32367
32368
|
}
|
|
32368
32369
|
}] : [], ...props2.tableAction(record)];
|
|
32369
32370
|
};
|
|
@@ -42942,7 +42943,7 @@ const Descriptions = /* @__PURE__ */ defineComponent({
|
|
|
42942
42943
|
componentProps: comProps,
|
|
42943
42944
|
component
|
|
42944
42945
|
} = item;
|
|
42945
|
-
const componentProps = isFunction$5(comProps) ? comProps() : comProps;
|
|
42946
|
+
const componentProps = isFunction$5(comProps) ? comProps({}) : comProps;
|
|
42946
42947
|
const {
|
|
42947
42948
|
data,
|
|
42948
42949
|
summaryTotalFields
|
|
@@ -43123,10 +43124,11 @@ const Descriptions = /* @__PURE__ */ defineComponent({
|
|
|
43123
43124
|
if (!isIfShow)
|
|
43124
43125
|
return null;
|
|
43125
43126
|
const {
|
|
43126
|
-
componentProps,
|
|
43127
|
+
componentProps: comProps,
|
|
43127
43128
|
label,
|
|
43128
43129
|
colProps: colProps2
|
|
43129
43130
|
} = group;
|
|
43131
|
+
const componentProps = isFunction$5(comProps) ? comProps({}) : comProps;
|
|
43130
43132
|
const realSpan = ((colProps2 == null ? void 0 : colProps2.span) || ((_b = (_a2 = unref(getProps)) == null ? void 0 : _a2.baseColProps) == null ? void 0 : _b.span) || basicColProps) / basicRowProps;
|
|
43131
43133
|
const style2 = {
|
|
43132
43134
|
[`--col-span`]: `${realSpan * 100}%`,
|
package/lib/index.js
CHANGED
|
@@ -11803,7 +11803,7 @@ const FormItem$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
11803
11803
|
}, [`${current.month() + 1}月`]);
|
|
11804
11804
|
};
|
|
11805
11805
|
}
|
|
11806
|
-
if (schema2.component === "Input"
|
|
11806
|
+
if (schema2.component === "Input") {
|
|
11807
11807
|
const maxlength = (componentProps == null ? void 0 : componentProps.maxlength) === void 0 ? 100 : componentProps.maxlength;
|
|
11808
11808
|
componentProps = Object.assign({}, componentProps, {
|
|
11809
11809
|
maxlength
|
|
@@ -32295,13 +32295,14 @@ const ShyFormTable = /* @__PURE__ */ vue.defineComponent({
|
|
|
32295
32295
|
}
|
|
32296
32296
|
emit("add", state.value);
|
|
32297
32297
|
};
|
|
32298
|
-
const remove = (
|
|
32298
|
+
const remove = (record) => {
|
|
32299
|
+
const index2 = record[props2.rowKey];
|
|
32299
32300
|
curIndex.value -= curIndex.value === 0 ? 0 : 1;
|
|
32300
32301
|
const tempState = state.value.filter((item) => {
|
|
32301
32302
|
return item[props2.rowKey] !== index2;
|
|
32302
32303
|
});
|
|
32303
32304
|
state.value = [...tempState];
|
|
32304
|
-
emit("remove", state.value, index2);
|
|
32305
|
+
emit("remove", state.value, index2, record);
|
|
32305
32306
|
};
|
|
32306
32307
|
const rulesRef = vue.reactive({});
|
|
32307
32308
|
const getRules = ({
|
|
@@ -32387,7 +32388,7 @@ const ShyFormTable = /* @__PURE__ */ vue.defineComponent({
|
|
|
32387
32388
|
ifShow: () => props2.dynamicShowRemove(record),
|
|
32388
32389
|
popConfirm: {
|
|
32389
32390
|
title: "确定删除",
|
|
32390
|
-
confirm: remove.bind(null, record
|
|
32391
|
+
confirm: remove.bind(null, record)
|
|
32391
32392
|
}
|
|
32392
32393
|
}] : [], ...props2.tableAction(record)];
|
|
32393
32394
|
};
|
|
@@ -42966,7 +42967,7 @@ const Descriptions = /* @__PURE__ */ vue.defineComponent({
|
|
|
42966
42967
|
componentProps: comProps,
|
|
42967
42968
|
component
|
|
42968
42969
|
} = item;
|
|
42969
|
-
const componentProps = utils$1.isFunction(comProps) ? comProps() : comProps;
|
|
42970
|
+
const componentProps = utils$1.isFunction(comProps) ? comProps({}) : comProps;
|
|
42970
42971
|
const {
|
|
42971
42972
|
data,
|
|
42972
42973
|
summaryTotalFields
|
|
@@ -43147,10 +43148,11 @@ const Descriptions = /* @__PURE__ */ vue.defineComponent({
|
|
|
43147
43148
|
if (!isIfShow)
|
|
43148
43149
|
return null;
|
|
43149
43150
|
const {
|
|
43150
|
-
componentProps,
|
|
43151
|
+
componentProps: comProps,
|
|
43151
43152
|
label,
|
|
43152
43153
|
colProps: colProps2
|
|
43153
43154
|
} = group;
|
|
43155
|
+
const componentProps = utils$1.isFunction(comProps) ? comProps({}) : comProps;
|
|
43154
43156
|
const realSpan = ((colProps2 == null ? void 0 : colProps2.span) || ((_b = (_a2 = vue.unref(getProps)) == null ? void 0 : _a2.baseColProps) == null ? void 0 : _b.span) || basicColProps) / basicRowProps;
|
|
43155
43157
|
const style2 = {
|
|
43156
43158
|
[`--col-span`]: `${realSpan * 100}%`,
|