dfish-widget 1.0.55 → 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 +29 -23
- 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
|
|
|
@@ -5515,6 +5515,11 @@ const props = __props;
|
|
|
5515
5515
|
const itemStyle = (item) => {
|
|
5516
5516
|
return {
|
|
5517
5517
|
top: `${item[leafSymbol].showIndex * itemHeight}px`,
|
|
5518
|
+
}
|
|
5519
|
+
};
|
|
5520
|
+
|
|
5521
|
+
const leafStyle = (item) => {
|
|
5522
|
+
return {
|
|
5518
5523
|
paddingLeft: `${item[leafSymbol].level * 16}px`
|
|
5519
5524
|
}
|
|
5520
5525
|
};
|
|
@@ -5775,7 +5780,8 @@ return (_ctx, _cache) => {
|
|
|
5775
5780
|
(col.type=='leaf')
|
|
5776
5781
|
? (openBlock(), createElementBlock("div", {
|
|
5777
5782
|
key: 0,
|
|
5778
|
-
class: normalizeClass(['w-leaf w-leaf-v2', {'z-folder': isFolder(item)}])
|
|
5783
|
+
class: normalizeClass(['w-leaf w-leaf-v2', {'z-folder': isFolder(item)}]),
|
|
5784
|
+
style: normalizeStyle(leafStyle(item))
|
|
5779
5785
|
}, [
|
|
5780
5786
|
(isItemLoading(item))
|
|
5781
5787
|
? (openBlock(), createBlock(_component_w_img, {
|
|
@@ -5798,8 +5804,8 @@ return (_ctx, _cache) => {
|
|
|
5798
5804
|
createElementVNode("div", {
|
|
5799
5805
|
class: "w-leaf-text f-line-1",
|
|
5800
5806
|
title: item[col.field]
|
|
5801
|
-
}, toDisplayString(item[col.field]), 9 /* TEXT, PROPS */, _hoisted_5$
|
|
5802
|
-
],
|
|
5807
|
+
}, toDisplayString(item[col.field]), 9 /* TEXT, PROPS */, _hoisted_5$3)
|
|
5808
|
+
], 6 /* CLASS, STYLE */))
|
|
5803
5809
|
: renderSlot(_ctx.$slots, col.field, {
|
|
5804
5810
|
key: 1,
|
|
5805
5811
|
item: item,
|
|
@@ -6454,7 +6460,8 @@ script$D.__file = "src/widgets/Tree.vue";
|
|
|
6454
6460
|
const _hoisted_1$5 = { class: "w-tree-loading w-tree-v2-loading" };
|
|
6455
6461
|
const _hoisted_2$5 = ["onClick"];
|
|
6456
6462
|
const _hoisted_3$3 = ["onClick"];
|
|
6457
|
-
const _hoisted_4$2 =
|
|
6463
|
+
const _hoisted_4$2 = { class: "w-leaf-text f-line-1" };
|
|
6464
|
+
const _hoisted_5$2 = ["title"];
|
|
6458
6465
|
|
|
6459
6466
|
|
|
6460
6467
|
const __default__ = {
|
|
@@ -6476,7 +6483,7 @@ var script$C = /*#__PURE__*/Object.assign(__default__, {
|
|
|
6476
6483
|
}
|
|
6477
6484
|
},
|
|
6478
6485
|
current: {
|
|
6479
|
-
type: [String, Number]
|
|
6486
|
+
type: [String, Number, Array]
|
|
6480
6487
|
},
|
|
6481
6488
|
itemHeight: {
|
|
6482
6489
|
type: [String, Number],
|
|
@@ -6539,7 +6546,7 @@ const props = __props;
|
|
|
6539
6546
|
};
|
|
6540
6547
|
|
|
6541
6548
|
const isCurrent = (item) => {
|
|
6542
|
-
return props.current === item[propValue]
|
|
6549
|
+
return Array.isArray(props.current) ? props.current.includes(item[propValue]) : (props.current === item[propValue])
|
|
6543
6550
|
};
|
|
6544
6551
|
|
|
6545
6552
|
const clickItem = (e, item) => {
|
|
@@ -6685,8 +6692,10 @@ const props = __props;
|
|
|
6685
6692
|
const watchCurrent = async (val) => {
|
|
6686
6693
|
await nextTick();
|
|
6687
6694
|
current = val;
|
|
6688
|
-
if (!
|
|
6689
|
-
|
|
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]);
|
|
6690
6699
|
const i = flatList.value.indexOf(item);
|
|
6691
6700
|
if (i > -1) {
|
|
6692
6701
|
await nextTick();
|
|
@@ -6708,9 +6717,9 @@ const props = __props;
|
|
|
6708
6717
|
watch(() => props.current, watchCurrent);
|
|
6709
6718
|
const src = props.src && props.src();
|
|
6710
6719
|
if (src) {
|
|
6711
|
-
|
|
6720
|
+
xLoading.value = true;
|
|
6712
6721
|
await src();
|
|
6713
|
-
|
|
6722
|
+
xLoading.value = false;
|
|
6714
6723
|
}
|
|
6715
6724
|
});
|
|
6716
6725
|
|
|
@@ -6761,6 +6770,7 @@ return (_ctx, _cache) => {
|
|
|
6761
6770
|
class: normalizeClass(['w-leaf-toggle f-i', item.expanded ? 'f-i-caret-down' : 'f-i-caret-right']),
|
|
6762
6771
|
onClick: $event => (clickToggle($event, item))
|
|
6763
6772
|
}, null, 10 /* CLASS, PROPS */, _hoisted_3$3)),
|
|
6773
|
+
renderSlot(_ctx.$slots, "box", { item: item }),
|
|
6764
6774
|
(itemIcon(item))
|
|
6765
6775
|
? (openBlock(), createBlock(_component_w_img, {
|
|
6766
6776
|
key: 2,
|
|
@@ -6768,17 +6778,13 @@ return (_ctx, _cache) => {
|
|
|
6768
6778
|
class: "w-leaf-icon"
|
|
6769
6779
|
}, null, 8 /* PROPS */, ["src"]))
|
|
6770
6780
|
: createCommentVNode("v-if", true),
|
|
6771
|
-
createElementVNode("div",
|
|
6772
|
-
|
|
6773
|
-
|
|
6774
|
-
|
|
6775
|
-
|
|
6776
|
-
item: item,
|
|
6777
|
-
index: index
|
|
6778
|
-
}, () => [
|
|
6779
|
-
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)
|
|
6780
6786
|
])
|
|
6781
|
-
]
|
|
6787
|
+
])
|
|
6782
6788
|
], 14 /* CLASS, STYLE, PROPS */, _hoisted_2$5))
|
|
6783
6789
|
}), 128 /* KEYED_FRAGMENT */))
|
|
6784
6790
|
], 4 /* STYLE */))
|