ll-plus 2.3.19 → 2.3.20
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/components/advanced-filtering/index.d.ts +36 -34
- package/es/components/advanced-filtering/index.mjs +1 -1
- package/es/components/advanced-filtering/src/advanced-filtering.d.ts +15 -2
- package/es/components/advanced-filtering/src/advanced-filtering.mjs +60 -2
- package/es/components/advanced-filtering/src/advanced-filtering.mjs.map +1 -1
- package/es/components/advanced-filtering/src/advanced-filtering.vue.d.ts +20 -19
- package/es/components/advanced-filtering/src/advanced-filtering.vue2.mjs +4 -3
- package/es/components/advanced-filtering/src/advanced-filtering.vue2.mjs.map +1 -1
- package/es/components/advanced-filtering/src/components/advanced-filtering-params.vue.d.ts +11 -6
- package/es/components/advanced-filtering/src/components/advanced-filtering-params.vue2.mjs +64 -11
- package/es/components/advanced-filtering/src/components/advanced-filtering-params.vue2.mjs.map +1 -1
- package/es/components/advanced-filtering/src/components/advanced-filtering-tags.vue.d.ts +5 -9
- package/es/components/advanced-filtering/src/components/advanced-filtering-tags.vue2.mjs +33 -61
- package/es/components/advanced-filtering/src/components/advanced-filtering-tags.vue2.mjs.map +1 -1
- package/es/components/api-component/index.d.ts +8 -8
- package/es/components/api-component/src/api-component.vue.d.ts +8 -8
- package/es/components/api-component/src/components/body-component.vue.d.ts +4 -4
- package/es/components/api-component/src/components/params-table-row.vue.d.ts +2 -2
- package/es/components/api-component/src/components/params-table.vue.d.ts +4 -4
- package/es/components/code-editor/index.d.ts +2 -2
- package/es/components/code-editor/src/code-editor.vue.d.ts +2 -2
- package/es/components/drawer/src/components/second-confirmation/index.d.ts +2 -2
- package/es/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +2 -2
- package/es/components/easy-cron/index.d.ts +5 -5
- package/es/components/easy-cron/src/easy-cron.vue.d.ts +5 -5
- package/es/components/form/src/form.vue2.mjs +12 -0
- package/es/components/form/src/form.vue2.mjs.map +1 -1
- package/es/components/index.mjs +1 -1
- package/es/components/input/index.d.ts +31 -31
- package/es/components/input/src/input.vue.d.ts +31 -31
- package/es/components/number-range/index.d.ts +13 -13
- package/es/components/number-range/src/number-range.d.ts +4 -4
- package/es/components/number-range/src/number-range.mjs +1 -1
- package/es/components/number-range/src/number-range.mjs.map +1 -1
- package/es/components/number-range/src/number-range.vue.d.ts +13 -14
- package/es/components/number-range/src/number-range.vue2.mjs +14 -7
- package/es/components/number-range/src/number-range.vue2.mjs.map +1 -1
- package/es/components/select-group/index.d.ts +1 -1
- package/es/components/select-group/src/select-group.vue.d.ts +1 -1
- package/es/components/textarea/index.d.ts +5 -5
- package/es/components/textarea/src/textarea.vue.d.ts +5 -5
- package/es/index.mjs +1 -1
- package/index.full.js +196 -83
- package/index.full.min.js +17 -17
- package/index.full.min.js.map +1 -1
- package/index.full.min.mjs +17 -17
- package/index.full.min.mjs.map +1 -1
- package/index.full.mjs +193 -85
- package/lib/components/advanced-filtering/index.d.ts +36 -34
- package/lib/components/advanced-filtering/index.js +5 -0
- package/lib/components/advanced-filtering/index.js.map +1 -1
- package/lib/components/advanced-filtering/src/advanced-filtering.d.ts +15 -2
- package/lib/components/advanced-filtering/src/advanced-filtering.js +64 -1
- package/lib/components/advanced-filtering/src/advanced-filtering.js.map +1 -1
- package/lib/components/advanced-filtering/src/advanced-filtering.vue.d.ts +20 -19
- package/lib/components/advanced-filtering/src/advanced-filtering.vue2.js +3 -2
- package/lib/components/advanced-filtering/src/advanced-filtering.vue2.js.map +1 -1
- package/lib/components/advanced-filtering/src/components/advanced-filtering-params.vue.d.ts +11 -6
- package/lib/components/advanced-filtering/src/components/advanced-filtering-params.vue2.js +62 -9
- package/lib/components/advanced-filtering/src/components/advanced-filtering-params.vue2.js.map +1 -1
- package/lib/components/advanced-filtering/src/components/advanced-filtering-tags.vue.d.ts +5 -9
- package/lib/components/advanced-filtering/src/components/advanced-filtering-tags.vue2.js +33 -61
- package/lib/components/advanced-filtering/src/components/advanced-filtering-tags.vue2.js.map +1 -1
- package/lib/components/api-component/index.d.ts +8 -8
- package/lib/components/api-component/src/api-component.vue.d.ts +8 -8
- package/lib/components/api-component/src/components/body-component.vue.d.ts +4 -4
- package/lib/components/api-component/src/components/params-table-row.vue.d.ts +2 -2
- package/lib/components/api-component/src/components/params-table.vue.d.ts +4 -4
- package/lib/components/code-editor/index.d.ts +2 -2
- package/lib/components/code-editor/src/code-editor.vue.d.ts +2 -2
- package/lib/components/drawer/src/components/second-confirmation/index.d.ts +2 -2
- package/lib/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +2 -2
- package/lib/components/easy-cron/index.d.ts +5 -5
- package/lib/components/easy-cron/src/easy-cron.vue.d.ts +5 -5
- package/lib/components/form/src/form.vue2.js +12 -0
- package/lib/components/form/src/form.vue2.js.map +1 -1
- package/lib/components/index.js +5 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/input/index.d.ts +31 -31
- package/lib/components/input/src/input.vue.d.ts +31 -31
- package/lib/components/number-range/index.d.ts +13 -13
- package/lib/components/number-range/src/number-range.d.ts +4 -4
- package/lib/components/number-range/src/number-range.js +1 -1
- package/lib/components/number-range/src/number-range.js.map +1 -1
- package/lib/components/number-range/src/number-range.vue.d.ts +13 -14
- package/lib/components/number-range/src/number-range.vue2.js +14 -7
- package/lib/components/number-range/src/number-range.vue2.js.map +1 -1
- package/lib/components/select-group/index.d.ts +1 -1
- package/lib/components/select-group/src/select-group.vue.d.ts +1 -1
- package/lib/components/textarea/index.d.ts +5 -5
- package/lib/components/textarea/src/textarea.vue.d.ts +5 -5
- package/lib/index.js +5 -0
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/theme-chalk/css/index.css +1 -1
- package/theme-chalk/css/operate-icon.css +1 -1
- package/types/packages/components/advanced-filtering/index.d.ts +36 -34
- package/types/packages/components/advanced-filtering/src/advanced-filtering.d.ts +15 -2
- package/types/packages/components/advanced-filtering/src/advanced-filtering.vue.d.ts +20 -19
- package/types/packages/components/advanced-filtering/src/components/advanced-filtering-params.vue.d.ts +11 -6
- package/types/packages/components/advanced-filtering/src/components/advanced-filtering-tags.vue.d.ts +5 -9
- package/types/packages/components/api-component/index.d.ts +8 -8
- package/types/packages/components/api-component/src/api-component.vue.d.ts +8 -8
- package/types/packages/components/api-component/src/components/body-component.vue.d.ts +4 -4
- package/types/packages/components/api-component/src/components/params-table-row.vue.d.ts +2 -2
- package/types/packages/components/api-component/src/components/params-table.vue.d.ts +4 -4
- package/types/packages/components/code-editor/index.d.ts +2 -2
- package/types/packages/components/code-editor/src/code-editor.vue.d.ts +2 -2
- package/types/packages/components/drawer/src/components/second-confirmation/index.d.ts +2 -2
- package/types/packages/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +2 -2
- package/types/packages/components/easy-cron/index.d.ts +5 -5
- package/types/packages/components/easy-cron/src/easy-cron.vue.d.ts +5 -5
- package/types/packages/components/input/index.d.ts +31 -31
- package/types/packages/components/input/src/input.vue.d.ts +31 -31
- package/types/packages/components/number-range/index.d.ts +13 -13
- package/types/packages/components/number-range/src/number-range.d.ts +4 -4
- package/types/packages/components/number-range/src/number-range.vue.d.ts +13 -14
- package/types/packages/components/select-group/index.d.ts +1 -1
- package/types/packages/components/select-group/src/select-group.vue.d.ts +1 -1
- package/types/packages/components/textarea/index.d.ts +5 -5
- package/types/packages/components/textarea/src/textarea.vue.d.ts +5 -5
package/index.full.js
CHANGED
|
@@ -765,6 +765,7 @@
|
|
|
765
765
|
});
|
|
766
766
|
return result;
|
|
767
767
|
});
|
|
768
|
+
var stringToPath$1 = stringToPath;
|
|
768
769
|
|
|
769
770
|
function toString(value) {
|
|
770
771
|
return value == null ? "" : baseToString(value);
|
|
@@ -774,7 +775,7 @@
|
|
|
774
775
|
if (isArray$1(value)) {
|
|
775
776
|
return value;
|
|
776
777
|
}
|
|
777
|
-
return isKey(value, object) ? [value] : stringToPath(toString(value));
|
|
778
|
+
return isKey(value, object) ? [value] : stringToPath$1(toString(value));
|
|
778
779
|
}
|
|
779
780
|
|
|
780
781
|
var INFINITY = 1 / 0;
|
|
@@ -1156,9 +1157,9 @@
|
|
|
1156
1157
|
var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
|
1157
1158
|
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
1158
1159
|
|
|
1159
|
-
var CLONE_DEEP_FLAG$
|
|
1160
|
+
var CLONE_DEEP_FLAG$2 = 1;
|
|
1160
1161
|
var CLONE_FLAT_FLAG$1 = 2;
|
|
1161
|
-
var CLONE_SYMBOLS_FLAG$
|
|
1162
|
+
var CLONE_SYMBOLS_FLAG$2 = 4;
|
|
1162
1163
|
var argsTag = "[object Arguments]";
|
|
1163
1164
|
var arrayTag = "[object Array]";
|
|
1164
1165
|
var boolTag$1 = "[object Boolean]";
|
|
@@ -1189,7 +1190,7 @@
|
|
|
1189
1190
|
cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag$1] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag$1] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag$1] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
1190
1191
|
cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
|
|
1191
1192
|
function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
1192
|
-
var result, isDeep = bitmask & CLONE_DEEP_FLAG$
|
|
1193
|
+
var result, isDeep = bitmask & CLONE_DEEP_FLAG$2, isFlat = bitmask & CLONE_FLAT_FLAG$1, isFull = bitmask & CLONE_SYMBOLS_FLAG$2;
|
|
1193
1194
|
if (customizer) {
|
|
1194
1195
|
result = object ? customizer(value, key, object, stack) : customizer(value);
|
|
1195
1196
|
}
|
|
@@ -1249,6 +1250,12 @@
|
|
|
1249
1250
|
return result;
|
|
1250
1251
|
}
|
|
1251
1252
|
|
|
1253
|
+
var CLONE_DEEP_FLAG$1 = 1;
|
|
1254
|
+
var CLONE_SYMBOLS_FLAG$1 = 4;
|
|
1255
|
+
function cloneDeep(value) {
|
|
1256
|
+
return baseClone(value, CLONE_DEEP_FLAG$1 | CLONE_SYMBOLS_FLAG$1);
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1252
1259
|
function hasPath(object, path, hasFunc) {
|
|
1253
1260
|
path = castPath(path, object);
|
|
1254
1261
|
var index = -1, length = path.length, result = false;
|
|
@@ -1540,6 +1547,62 @@
|
|
|
1540
1547
|
}
|
|
1541
1548
|
}
|
|
1542
1549
|
|
|
1550
|
+
const ALL_VALUE = "_ALL";
|
|
1551
|
+
const initValue = (column, values) => {
|
|
1552
|
+
let value = has(values, column.key) ? values[column.key] : null;
|
|
1553
|
+
if (has(column, "options") && !column.unUseDefaultOption) {
|
|
1554
|
+
if (column.type === "checkbox-group" || has(column, "mode")) {
|
|
1555
|
+
value = isEmpty(value) || isNil(value) ? [ALL_VALUE] : value;
|
|
1556
|
+
} else {
|
|
1557
|
+
value = isNil(value) ? ALL_VALUE : value;
|
|
1558
|
+
}
|
|
1559
|
+
}
|
|
1560
|
+
return value;
|
|
1561
|
+
};
|
|
1562
|
+
const filterAllValue = (values) => {
|
|
1563
|
+
let value = null;
|
|
1564
|
+
if (Array.isArray(values)) {
|
|
1565
|
+
value = values.filter((item) => item !== ALL_VALUE);
|
|
1566
|
+
} else {
|
|
1567
|
+
value = values === ALL_VALUE ? null : values;
|
|
1568
|
+
}
|
|
1569
|
+
return value;
|
|
1570
|
+
};
|
|
1571
|
+
const treeDataFormat = (arr = [], fieldNames) => {
|
|
1572
|
+
let options = [];
|
|
1573
|
+
if (!arr)
|
|
1574
|
+
return [];
|
|
1575
|
+
options = arr.map((e) => {
|
|
1576
|
+
const obj = {};
|
|
1577
|
+
obj.label = e[fieldNames.label];
|
|
1578
|
+
obj.value = e[fieldNames.value];
|
|
1579
|
+
if (e[fieldNames.children] && e[fieldNames.children].length) {
|
|
1580
|
+
obj.children = treeDataFormat(e[fieldNames.children], fieldNames);
|
|
1581
|
+
}
|
|
1582
|
+
return obj;
|
|
1583
|
+
});
|
|
1584
|
+
return options;
|
|
1585
|
+
};
|
|
1586
|
+
const findLabelByValue = (tree, value) => {
|
|
1587
|
+
function _findLabel(nodes) {
|
|
1588
|
+
const labels = [];
|
|
1589
|
+
if (!nodes)
|
|
1590
|
+
return [];
|
|
1591
|
+
for (const node of nodes) {
|
|
1592
|
+
if (node.value === value) {
|
|
1593
|
+
labels.push(node.label);
|
|
1594
|
+
}
|
|
1595
|
+
if (node.children && node.children.length > 0) {
|
|
1596
|
+
const childLabels = _findLabel(node.children);
|
|
1597
|
+
if (childLabels) {
|
|
1598
|
+
labels.push(...childLabels);
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
return labels.length > 0 ? labels : [];
|
|
1603
|
+
}
|
|
1604
|
+
return _findLabel(tree).join(",");
|
|
1605
|
+
};
|
|
1543
1606
|
const advancedFilteringProps = buildProps({
|
|
1544
1607
|
filterColumns: {
|
|
1545
1608
|
type: definePropType(Array),
|
|
@@ -1585,7 +1648,8 @@
|
|
|
1585
1648
|
const advancedFilteringParamsEmits = {
|
|
1586
1649
|
close: () => true,
|
|
1587
1650
|
confirm: () => true,
|
|
1588
|
-
changeValue: (value) => !!value
|
|
1651
|
+
changeValue: (value) => !!value,
|
|
1652
|
+
"update:value": (value) => !!value
|
|
1589
1653
|
};
|
|
1590
1654
|
const advancedFilteringTagsEmits = {
|
|
1591
1655
|
change: (value) => !!value,
|
|
@@ -1611,7 +1675,25 @@
|
|
|
1611
1675
|
const props = __props;
|
|
1612
1676
|
const emits = __emit;
|
|
1613
1677
|
const bem = createNamespace("advanced-filtering-params");
|
|
1614
|
-
const
|
|
1678
|
+
const innerValue = require$$0.ref({});
|
|
1679
|
+
const computeFormColumns = require$$0.computed(() => {
|
|
1680
|
+
return props.filterColumns.map((column) => {
|
|
1681
|
+
if (has(column, "options")) {
|
|
1682
|
+
if (column.options.length && column.options[0].value === ALL_VALUE || column.unUseDefaultOption) {
|
|
1683
|
+
console.log({ column });
|
|
1684
|
+
return column;
|
|
1685
|
+
}
|
|
1686
|
+
column.options = [
|
|
1687
|
+
{
|
|
1688
|
+
label: column?.defaultOptionLabel ?? "\u5168\u90E8",
|
|
1689
|
+
value: ALL_VALUE
|
|
1690
|
+
},
|
|
1691
|
+
...column.options
|
|
1692
|
+
];
|
|
1693
|
+
}
|
|
1694
|
+
return column;
|
|
1695
|
+
});
|
|
1696
|
+
});
|
|
1615
1697
|
const handleClose = () => {
|
|
1616
1698
|
emits("close");
|
|
1617
1699
|
};
|
|
@@ -1619,12 +1701,47 @@
|
|
|
1619
1701
|
emits("confirm");
|
|
1620
1702
|
};
|
|
1621
1703
|
const handleChange = (val) => {
|
|
1622
|
-
|
|
1704
|
+
setData(val);
|
|
1705
|
+
};
|
|
1706
|
+
const setData = (val) => {
|
|
1707
|
+
const value = cloneDeep(val);
|
|
1708
|
+
const obj = {};
|
|
1709
|
+
for (const i in value) {
|
|
1710
|
+
obj[i] = filterAllValue(value[i]);
|
|
1711
|
+
}
|
|
1712
|
+
emits("update:value", obj);
|
|
1713
|
+
emits("changeValue", obj);
|
|
1623
1714
|
};
|
|
1624
1715
|
require$$0.watch(
|
|
1625
1716
|
() => props.value,
|
|
1626
|
-
() => {
|
|
1627
|
-
|
|
1717
|
+
(val) => {
|
|
1718
|
+
const value = cloneDeep(val);
|
|
1719
|
+
const cloneInnerValue = cloneDeep(innerValue.value);
|
|
1720
|
+
const obj = {};
|
|
1721
|
+
computeFormColumns.value.forEach((item) => {
|
|
1722
|
+
obj[item.key] = initValue(item, value);
|
|
1723
|
+
});
|
|
1724
|
+
const comparedObj = {};
|
|
1725
|
+
computeFormColumns.value.forEach((item) => {
|
|
1726
|
+
comparedObj[item.key] = initValue(item, cloneInnerValue);
|
|
1727
|
+
});
|
|
1728
|
+
if (JSON.stringify(obj) !== JSON.stringify(comparedObj)) {
|
|
1729
|
+
innerValue.value = cloneDeep(obj);
|
|
1730
|
+
}
|
|
1731
|
+
},
|
|
1732
|
+
{
|
|
1733
|
+
deep: true,
|
|
1734
|
+
immediate: true
|
|
1735
|
+
}
|
|
1736
|
+
);
|
|
1737
|
+
require$$0.watch(
|
|
1738
|
+
() => innerValue.value,
|
|
1739
|
+
(val) => {
|
|
1740
|
+
setData(val);
|
|
1741
|
+
},
|
|
1742
|
+
{
|
|
1743
|
+
deep: true,
|
|
1744
|
+
immediate: true
|
|
1628
1745
|
}
|
|
1629
1746
|
);
|
|
1630
1747
|
return (_ctx, _cache) => {
|
|
@@ -1653,13 +1770,12 @@
|
|
|
1653
1770
|
class: require$$0.normalizeClass(require$$0.unref(bem).m("content"))
|
|
1654
1771
|
},
|
|
1655
1772
|
[
|
|
1656
|
-
props.filterColumns.length > 0 ? (require$$0.openBlock(), require$$0.createBlock(require$$0.unref(LlForm), {
|
|
1657
|
-
|
|
1658
|
-
"form-columns": props.filterColumns,
|
|
1773
|
+
props.filterColumns.length > 0 ? (require$$0.openBlock(), require$$0.createBlock(require$$0.unref(LlForm), require$$0.mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
1774
|
+
"form-columns": computeFormColumns.value,
|
|
1659
1775
|
"form-options": props.formOptions,
|
|
1660
|
-
"form-data":
|
|
1776
|
+
"form-data": innerValue.value,
|
|
1661
1777
|
onChange: handleChange
|
|
1662
|
-
}, null,
|
|
1778
|
+
}), null, 16, ["form-columns", "form-options", "form-data"])) : (require$$0.openBlock(), require$$0.createElementBlock(
|
|
1663
1779
|
"div",
|
|
1664
1780
|
{
|
|
1665
1781
|
key: 1,
|
|
@@ -2089,45 +2205,11 @@
|
|
|
2089
2205
|
emits("update:value", obj);
|
|
2090
2206
|
emits("change", obj);
|
|
2091
2207
|
};
|
|
2092
|
-
const
|
|
2093
|
-
let options = [];
|
|
2094
|
-
if (!arr)
|
|
2095
|
-
return [];
|
|
2096
|
-
options = arr.map((e) => {
|
|
2097
|
-
const obj = {};
|
|
2098
|
-
obj.label = e[fieldNames.label];
|
|
2099
|
-
obj.value = e[fieldNames.value];
|
|
2100
|
-
if (e[fieldNames.children] && e[fieldNames.children].length) {
|
|
2101
|
-
obj.children = treeDataFormat(e[fieldNames.children], fieldNames);
|
|
2102
|
-
}
|
|
2103
|
-
return obj;
|
|
2104
|
-
});
|
|
2105
|
-
return options;
|
|
2106
|
-
};
|
|
2107
|
-
const findLabelByValue = (tree, value) => {
|
|
2108
|
-
function _findLabel(nodes) {
|
|
2109
|
-
const labels = [];
|
|
2110
|
-
if (!nodes)
|
|
2111
|
-
return [];
|
|
2112
|
-
for (const node of nodes) {
|
|
2113
|
-
if (node.value === value) {
|
|
2114
|
-
labels.push(node.label);
|
|
2115
|
-
}
|
|
2116
|
-
if (node.children && node.children.length > 0) {
|
|
2117
|
-
const childLabels = _findLabel(node.children);
|
|
2118
|
-
if (childLabels) {
|
|
2119
|
-
labels.push(...childLabels);
|
|
2120
|
-
}
|
|
2121
|
-
}
|
|
2122
|
-
}
|
|
2123
|
-
return labels.length > 0 ? labels : [];
|
|
2124
|
-
}
|
|
2125
|
-
return _findLabel(tree).join(",");
|
|
2126
|
-
};
|
|
2127
|
-
const getTags = (filterColumns, value) => {
|
|
2208
|
+
const getTags = (filterColumns, values) => {
|
|
2128
2209
|
const arr = [];
|
|
2129
2210
|
filterColumns.map((item) => {
|
|
2130
|
-
|
|
2211
|
+
const value = filterAllValue(values[item.key]);
|
|
2212
|
+
if (!isNil(value)) {
|
|
2131
2213
|
let tagValue = "";
|
|
2132
2214
|
if (item?.options) {
|
|
2133
2215
|
let options = [];
|
|
@@ -2136,47 +2218,53 @@
|
|
|
2136
2218
|
} else {
|
|
2137
2219
|
options = item.options;
|
|
2138
2220
|
}
|
|
2139
|
-
if (Array.isArray(value
|
|
2221
|
+
if (Array.isArray(value)) {
|
|
2140
2222
|
let tagArr = [];
|
|
2141
|
-
tagArr = value
|
|
2223
|
+
tagArr = value.map((val) => {
|
|
2142
2224
|
return findLabelByValue(options, val);
|
|
2143
2225
|
});
|
|
2144
2226
|
tagValue = tagArr.join(",");
|
|
2145
2227
|
} else {
|
|
2146
|
-
tagValue = findLabelByValue(options, value
|
|
2228
|
+
tagValue = findLabelByValue(options, value);
|
|
2147
2229
|
}
|
|
2148
2230
|
} else {
|
|
2149
|
-
tagValue = value
|
|
2231
|
+
tagValue = value;
|
|
2150
2232
|
}
|
|
2151
2233
|
if (item.type === "date-picker") {
|
|
2152
|
-
tagValue = dayjs(value
|
|
2234
|
+
tagValue = dayjs(value).format(item?.format ?? "YYYY-MM-DD");
|
|
2153
2235
|
}
|
|
2154
2236
|
if (item.type === "time-picker") {
|
|
2155
|
-
tagValue = dayjs(value
|
|
2156
|
-
item?.format ?? "YYYY/MM/DD hh:mm:ss"
|
|
2157
|
-
);
|
|
2237
|
+
tagValue = dayjs(value).format(item?.format ?? "YYYY/MM/DD hh:mm:ss");
|
|
2158
2238
|
}
|
|
2159
2239
|
if (item.type === "date-range") {
|
|
2160
|
-
tagValue = `${dayjs(value[
|
|
2240
|
+
tagValue = `${dayjs(value[0]).format(
|
|
2161
2241
|
item?.format ?? "YYYY-MM-DD"
|
|
2162
|
-
)}-${dayjs(value[
|
|
2242
|
+
)}-${dayjs(value[1]).format(item?.format ?? "YYYY-MM-DD")}`;
|
|
2163
2243
|
}
|
|
2164
2244
|
if (item.type === "number-range") {
|
|
2165
|
-
tagValue = `${value[
|
|
2245
|
+
tagValue = `${value[0]}${value[1] ? `-${value[1]}` : ""}`;
|
|
2166
2246
|
}
|
|
2167
|
-
if (item.type === "time-
|
|
2168
|
-
tagValue = `${dayjs(value[
|
|
2247
|
+
if (item.type === "time-range") {
|
|
2248
|
+
tagValue = `${dayjs(value[0]).format(
|
|
2169
2249
|
item?.format ?? "YYYY/MM/DD HH:mm:ss"
|
|
2170
|
-
)}-${dayjs(value[
|
|
2171
|
-
|
|
2172
|
-
)
|
|
2250
|
+
)}-${dayjs(value[1]).format(item?.format ?? "YYYY/MM/DD HH:mm:ss")}`;
|
|
2251
|
+
}
|
|
2252
|
+
if (item.type === "switch") {
|
|
2253
|
+
if (has(item, "checkedChildren") && has(item, "checkedValue") && has(item, "unCheckedChildren") && has(item, "unCheckedValue")) {
|
|
2254
|
+
tagValue = value === item.checkedValue ? item.checkedChildren : item.unCheckedChildren;
|
|
2255
|
+
}
|
|
2256
|
+
if (has(item, "checkedChildren") && !has(item, "checkedValue")) {
|
|
2257
|
+
tagValue = value ? item.checkedChildren : false;
|
|
2258
|
+
}
|
|
2259
|
+
}
|
|
2260
|
+
if (tagValue) {
|
|
2261
|
+
arr.push({
|
|
2262
|
+
label: item.label || "",
|
|
2263
|
+
key: item.key,
|
|
2264
|
+
value,
|
|
2265
|
+
showValue: tagValue
|
|
2266
|
+
});
|
|
2173
2267
|
}
|
|
2174
|
-
arr.push({
|
|
2175
|
-
label: item.label || "",
|
|
2176
|
-
key: item.key,
|
|
2177
|
-
value: value[item.key],
|
|
2178
|
-
showValue: tagValue
|
|
2179
|
-
});
|
|
2180
2268
|
}
|
|
2181
2269
|
});
|
|
2182
2270
|
return arr;
|
|
@@ -2320,8 +2408,9 @@
|
|
|
2320
2408
|
require$$0.watch(
|
|
2321
2409
|
filterValue,
|
|
2322
2410
|
(n) => {
|
|
2323
|
-
|
|
2324
|
-
emits("
|
|
2411
|
+
const value = filterAllValue(n);
|
|
2412
|
+
emits("update:value", value);
|
|
2413
|
+
emits("change", value);
|
|
2325
2414
|
},
|
|
2326
2415
|
{
|
|
2327
2416
|
deep: true
|
|
@@ -57272,6 +57361,18 @@
|
|
|
57272
57361
|
deep: true
|
|
57273
57362
|
}
|
|
57274
57363
|
);
|
|
57364
|
+
require$$0.watch(
|
|
57365
|
+
() => props.formData,
|
|
57366
|
+
async (val) => {
|
|
57367
|
+
for (const i in val) {
|
|
57368
|
+
formData[i] = val[i];
|
|
57369
|
+
}
|
|
57370
|
+
},
|
|
57371
|
+
{
|
|
57372
|
+
deep: true,
|
|
57373
|
+
immediate: true
|
|
57374
|
+
}
|
|
57375
|
+
);
|
|
57275
57376
|
__expose({
|
|
57276
57377
|
validate,
|
|
57277
57378
|
resetFields
|
|
@@ -59211,7 +59312,7 @@
|
|
|
59211
59312
|
|
|
59212
59313
|
const numberRangeProps = buildProps({
|
|
59213
59314
|
value: {
|
|
59214
|
-
type: definePropType(Array),
|
|
59315
|
+
type: definePropType([Array, null]),
|
|
59215
59316
|
default: () => []
|
|
59216
59317
|
},
|
|
59217
59318
|
min: Number,
|
|
@@ -59242,18 +59343,18 @@
|
|
|
59242
59343
|
const props = __props;
|
|
59243
59344
|
const emits = __emit;
|
|
59244
59345
|
const bem = createNamespace("number-range");
|
|
59245
|
-
const minValue = require$$0.ref(
|
|
59246
|
-
const maxValue = require$$0.ref(
|
|
59346
|
+
const minValue = require$$0.ref(void 0);
|
|
59347
|
+
const maxValue = require$$0.ref(void 0);
|
|
59247
59348
|
const setValue = () => {
|
|
59248
59349
|
const arr = [minValue.value, maxValue.value];
|
|
59249
|
-
emits("change", arr);
|
|
59250
59350
|
emits("update:value", arr);
|
|
59351
|
+
emits("change", arr);
|
|
59251
59352
|
};
|
|
59252
59353
|
const handleMinChange = (e) => {
|
|
59253
59354
|
if (!!e || e.value === 0) {
|
|
59254
59355
|
minValue.value = e;
|
|
59255
59356
|
} else {
|
|
59256
|
-
minValue.value =
|
|
59357
|
+
minValue.value = void 0;
|
|
59257
59358
|
}
|
|
59258
59359
|
setValue();
|
|
59259
59360
|
};
|
|
@@ -59261,7 +59362,7 @@
|
|
|
59261
59362
|
if (!!e || e.value === 0) {
|
|
59262
59363
|
maxValue.value = e;
|
|
59263
59364
|
} else {
|
|
59264
|
-
minValue.value =
|
|
59365
|
+
minValue.value = void 0;
|
|
59265
59366
|
}
|
|
59266
59367
|
setValue();
|
|
59267
59368
|
};
|
|
@@ -59288,14 +59389,21 @@
|
|
|
59288
59389
|
if (n[0] || n[0] === 0) {
|
|
59289
59390
|
minValue.value = n[0];
|
|
59290
59391
|
} else {
|
|
59291
|
-
minValue.value =
|
|
59392
|
+
minValue.value = void 0;
|
|
59292
59393
|
}
|
|
59293
59394
|
if (n[1] || n[1] === 0) {
|
|
59294
59395
|
maxValue.value = n[1];
|
|
59295
59396
|
} else {
|
|
59296
|
-
maxValue.value =
|
|
59397
|
+
maxValue.value = void 0;
|
|
59297
59398
|
}
|
|
59399
|
+
} else {
|
|
59400
|
+
minValue.value = void 0;
|
|
59401
|
+
maxValue.value = void 0;
|
|
59298
59402
|
}
|
|
59403
|
+
},
|
|
59404
|
+
{
|
|
59405
|
+
immediate: true,
|
|
59406
|
+
deep: true
|
|
59299
59407
|
}
|
|
59300
59408
|
);
|
|
59301
59409
|
return (_ctx, _cache) => {
|
|
@@ -77321,6 +77429,7 @@
|
|
|
77321
77429
|
|
|
77322
77430
|
const install = installer.install;
|
|
77323
77431
|
|
|
77432
|
+
exports.ALL_VALUE = ALL_VALUE;
|
|
77324
77433
|
exports.DEFAULT_METHOD = DEFAULT_METHOD;
|
|
77325
77434
|
exports.DEFAULT_TYPE = DEFAULT_TYPE;
|
|
77326
77435
|
exports.HEADER_SRARCH_HEIGHT = HEADER_SRARCH_HEIGHT;
|
|
@@ -77433,6 +77542,8 @@
|
|
|
77433
77542
|
exports.easyCronEmits = easyCronEmits;
|
|
77434
77543
|
exports.easyCronProps = easyCronProps;
|
|
77435
77544
|
exports.emptyProps = emptyProps;
|
|
77545
|
+
exports.filterAllValue = filterAllValue;
|
|
77546
|
+
exports.findLabelByValue = findLabelByValue;
|
|
77436
77547
|
exports.formColumns = formColumns;
|
|
77437
77548
|
exports.formComponentProps = formComponentProps;
|
|
77438
77549
|
exports.formEmits = formEmits;
|
|
@@ -77453,6 +77564,7 @@
|
|
|
77453
77564
|
exports.iconPickerSearchProps = iconPickerSearchProps;
|
|
77454
77565
|
exports.iconProps = iconProps;
|
|
77455
77566
|
exports.iconTypes = iconTypes;
|
|
77567
|
+
exports.initValue = initValue;
|
|
77456
77568
|
exports.inputNumberEmits = inputNumberEmits;
|
|
77457
77569
|
exports.inputNumberProps = inputNumberProps;
|
|
77458
77570
|
exports.inputProps = inputProps;
|
|
@@ -77506,6 +77618,7 @@
|
|
|
77506
77618
|
exports.tagGroupEmits = tagGroupEmits;
|
|
77507
77619
|
exports.tagGroupProps = tagGroupProps;
|
|
77508
77620
|
exports.tooltipProps = tooltipProps;
|
|
77621
|
+
exports.treeDataFormat = treeDataFormat;
|
|
77509
77622
|
exports.treeEmits = treeEmits;
|
|
77510
77623
|
exports.treeProps = treeProps;
|
|
77511
77624
|
exports.treeSearchEmits = treeSearchEmits;
|