dfish-widget 1.0.56 → 1.0.57
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/lib/index.esm.js +21 -21
- package/lib/index.esm.js.map +1 -1
- package/package.json +1 -1
package/lib/index.esm.js
CHANGED
|
@@ -2327,7 +2327,7 @@ const _hoisted_1$b = {
|
|
|
2327
2327
|
"aria-hidden": "true"
|
|
2328
2328
|
};
|
|
2329
2329
|
const _hoisted_2$9 = /*#__PURE__*/createStaticVNode("<symbol id=\"f-svg-loading\" viewBox=\"0 0 50 50\"><path d=\"M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z\" transform=\"rotate(86.9154 25 25)\"></path></symbol><symbol id=\"f-svg-loading-1\" viewBox=\"0 0 50 50\"><circle cx=\"25\" cy=\"25\" r=\"20\"></circle></symbol><symbol id=\"f-svg-loading-2\" viewBox=\"0 0 24 30\"><rect x=\"0\" y=\"8.66115\" width=\"4\" height=\"12.6777\" opacity=\"0.2\"><animate attributeName=\"opacity\" values=\"0.2; 1; .2\" begin=\"0s\" dur=\"0.6s\" repeatCount=\"indefinite\"></animate><animate attributeName=\"height\" values=\"10; 20; 10\" begin=\"0s\" dur=\"0.6s\" repeatCount=\"indefinite\"></animate><animate attributeName=\"y\" values=\"10; 5; 10\" begin=\"0s\" dur=\"0.6s\" repeatCount=\"indefinite\"></animate></rect><rect x=\"8\" y=\"6.16115\" width=\"4\" height=\"17.6777\" opacity=\"0.2\"><animate attributeName=\"opacity\" values=\"0.2; 1; .2\" begin=\"0.15s\" dur=\"0.6s\" repeatCount=\"indefinite\"></animate><animate attributeName=\"height\" values=\"10; 20; 10\" begin=\"0.15s\" dur=\"0.6s\" repeatCount=\"indefinite\"></animate><animate attributeName=\"y\" values=\"10; 5; 10\" begin=\"0.15s\" dur=\"0.6s\" repeatCount=\"indefinite\"></animate></rect><rect x=\"16\" y=\"6.33885\" width=\"4\" height=\"17.3223\" opacity=\"0.2\"><animate attributeName=\"opacity\" values=\"0.2; 1; .2\" begin=\"0.3s\" dur=\"0.6s\" repeatCount=\"indefinite\"></animate><animate attributeName=\"height\" values=\"10; 20; 10\" begin=\"0.3s\" dur=\"0.6s\" repeatCount=\"indefinite\"></animate><animate attributeName=\"y\" values=\"10; 5; 10\" begin=\"0.3s\" dur=\"0.6s\" repeatCount=\"indefinite\"></animate></rect></symbol>", 3);
|
|
2330
|
-
const _hoisted_5$
|
|
2330
|
+
const _hoisted_5$4 = /*#__PURE__*/createElementVNode("symbol", {
|
|
2331
2331
|
id: "f-svg-loading-3",
|
|
2332
2332
|
viewBox: "0 0 1024 1024"
|
|
2333
2333
|
}, [
|
|
@@ -2338,7 +2338,7 @@ const _hoisted_5$3 = /*#__PURE__*/createElementVNode("symbol", {
|
|
|
2338
2338
|
], -1 /* HOISTED */);
|
|
2339
2339
|
const _hoisted_6$3 = [
|
|
2340
2340
|
_hoisted_2$9,
|
|
2341
|
-
_hoisted_5$
|
|
2341
|
+
_hoisted_5$4
|
|
2342
2342
|
];
|
|
2343
2343
|
|
|
2344
2344
|
function render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -5428,7 +5428,7 @@ const _hoisted_1$6 = { class: "'w-table-v2-th-text f-line-1" };
|
|
|
5428
5428
|
const _hoisted_2$6 = { class: "w-tree-loading w-table-v2-loading" };
|
|
5429
5429
|
const _hoisted_3$4 = ["onClick"];
|
|
5430
5430
|
const _hoisted_4$3 = ["onClick"];
|
|
5431
|
-
const _hoisted_5$
|
|
5431
|
+
const _hoisted_5$3 = ["title"];
|
|
5432
5432
|
const _hoisted_6$2 = { class: "'w-table-v2-td-text f-line-1" };
|
|
5433
5433
|
|
|
5434
5434
|
|
|
@@ -5804,7 +5804,7 @@ return (_ctx, _cache) => {
|
|
|
5804
5804
|
createElementVNode("div", {
|
|
5805
5805
|
class: "w-leaf-text f-line-1",
|
|
5806
5806
|
title: item[col.field]
|
|
5807
|
-
}, toDisplayString(item[col.field]), 9 /* TEXT, PROPS */, _hoisted_5$
|
|
5807
|
+
}, toDisplayString(item[col.field]), 9 /* TEXT, PROPS */, _hoisted_5$3)
|
|
5808
5808
|
], 6 /* CLASS, STYLE */))
|
|
5809
5809
|
: renderSlot(_ctx.$slots, col.field, {
|
|
5810
5810
|
key: 1,
|
|
@@ -6460,7 +6460,8 @@ script$D.__file = "src/widgets/Tree.vue";
|
|
|
6460
6460
|
const _hoisted_1$5 = { class: "w-tree-loading w-tree-v2-loading" };
|
|
6461
6461
|
const _hoisted_2$5 = ["onClick"];
|
|
6462
6462
|
const _hoisted_3$3 = ["onClick"];
|
|
6463
|
-
const _hoisted_4$2 =
|
|
6463
|
+
const _hoisted_4$2 = { class: "w-leaf-text f-line-1" };
|
|
6464
|
+
const _hoisted_5$2 = ["title"];
|
|
6464
6465
|
|
|
6465
6466
|
|
|
6466
6467
|
const __default__ = {
|
|
@@ -6482,7 +6483,7 @@ var script$C = /*#__PURE__*/Object.assign(__default__, {
|
|
|
6482
6483
|
}
|
|
6483
6484
|
},
|
|
6484
6485
|
current: {
|
|
6485
|
-
type: [String, Number]
|
|
6486
|
+
type: [String, Number, Array]
|
|
6486
6487
|
},
|
|
6487
6488
|
itemHeight: {
|
|
6488
6489
|
type: [String, Number],
|
|
@@ -6545,7 +6546,7 @@ const props = __props;
|
|
|
6545
6546
|
};
|
|
6546
6547
|
|
|
6547
6548
|
const isCurrent = (item) => {
|
|
6548
|
-
return props.current === item[propValue]
|
|
6549
|
+
return Array.isArray(props.current) ? props.current.includes(item[propValue]) : (props.current === item[propValue])
|
|
6549
6550
|
};
|
|
6550
6551
|
|
|
6551
6552
|
const clickItem = (e, item) => {
|
|
@@ -6691,8 +6692,10 @@ const props = __props;
|
|
|
6691
6692
|
const watchCurrent = async (val) => {
|
|
6692
6693
|
await nextTick();
|
|
6693
6694
|
current = val;
|
|
6694
|
-
if (!
|
|
6695
|
-
|
|
6695
|
+
if (!val) return
|
|
6696
|
+
val = $$1.array(val);
|
|
6697
|
+
if (!showList.value.find(n => val.includes(n[propValue]))) {
|
|
6698
|
+
const item = expandTo(val[0]);
|
|
6696
6699
|
const i = flatList.value.indexOf(item);
|
|
6697
6700
|
if (i > -1) {
|
|
6698
6701
|
await nextTick();
|
|
@@ -6714,9 +6717,9 @@ const props = __props;
|
|
|
6714
6717
|
watch(() => props.current, watchCurrent);
|
|
6715
6718
|
const src = props.src && props.src();
|
|
6716
6719
|
if (src) {
|
|
6717
|
-
|
|
6720
|
+
xLoading.value = true;
|
|
6718
6721
|
await src();
|
|
6719
|
-
|
|
6722
|
+
xLoading.value = false;
|
|
6720
6723
|
}
|
|
6721
6724
|
});
|
|
6722
6725
|
|
|
@@ -6767,6 +6770,7 @@ return (_ctx, _cache) => {
|
|
|
6767
6770
|
class: normalizeClass(['w-leaf-toggle f-i', item.expanded ? 'f-i-caret-down' : 'f-i-caret-right']),
|
|
6768
6771
|
onClick: $event => (clickToggle($event, item))
|
|
6769
6772
|
}, null, 10 /* CLASS, PROPS */, _hoisted_3$3)),
|
|
6773
|
+
renderSlot(_ctx.$slots, "box", { item: item }),
|
|
6770
6774
|
(itemIcon(item))
|
|
6771
6775
|
? (openBlock(), createBlock(_component_w_img, {
|
|
6772
6776
|
key: 2,
|
|
@@ -6774,17 +6778,13 @@ return (_ctx, _cache) => {
|
|
|
6774
6778
|
class: "w-leaf-icon"
|
|
6775
6779
|
}, null, 8 /* PROPS */, ["src"]))
|
|
6776
6780
|
: createCommentVNode("v-if", true),
|
|
6777
|
-
createElementVNode("div",
|
|
6778
|
-
|
|
6779
|
-
|
|
6780
|
-
|
|
6781
|
-
|
|
6782
|
-
item: item,
|
|
6783
|
-
index: index
|
|
6784
|
-
}, () => [
|
|
6785
|
-
createTextVNode(toDisplayString(item[unref(propText)]), 1 /* TEXT */)
|
|
6781
|
+
createElementVNode("div", _hoisted_4$2, [
|
|
6782
|
+
renderSlot(_ctx.$slots, "text", { item: item }, () => [
|
|
6783
|
+
createElementVNode("span", {
|
|
6784
|
+
title: item[unref(propText)]
|
|
6785
|
+
}, toDisplayString(item[unref(propText)]), 9 /* TEXT, PROPS */, _hoisted_5$2)
|
|
6786
6786
|
])
|
|
6787
|
-
]
|
|
6787
|
+
])
|
|
6788
6788
|
], 14 /* CLASS, STYLE, PROPS */, _hoisted_2$5))
|
|
6789
6789
|
}), 128 /* KEYED_FRAGMENT */))
|
|
6790
6790
|
], 4 /* STYLE */))
|