@web-utils/component 3.8.3 → 4.0.1
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/awesome-button/index.mjs +25 -55
- package/base.css +1 -1
- package/card/index.mjs +13 -13
- package/card/style.css +1 -1
- package/carousel/style.css +1 -1
- package/chat/index.mjs +2 -2
- package/chat/style.css +1 -1
- package/chunks/{ElementForm.8w6UkiuU.mjs → ElementForm.CQ3PN5qj.mjs} +17 -35
- package/chunks/{ElementListeners.DOy8wyD2.mjs → ElementListeners.De_PRuIm.mjs} +56 -95
- package/chunks/{ElementMultiInstance.3Z28ewuh.mjs → ElementMultiInstance.DQo2wuAQ.mjs} +16 -26
- package/chunks/{ElementProperties.B2I48muA.mjs → ElementProperties.CosfDrlW.mjs} +16 -16
- package/chunks/{ElementTaskConfig.MBbkLrth.mjs → ElementTaskConfig.Bko0kgTp.mjs} +104 -113
- package/chunks/{FlowCondition.BfU9kw6h.mjs → FlowCondition.Y6qEYi1T.mjs} +36 -66
- package/chunks/{FormTemp.BSpnNput.mjs → FormTemp.Bu2VCxUh.mjs} +2 -2
- package/chunks/{SignalAndMessage.CH6L7cYu.mjs → SignalAndMessage.Bb5PFX0N.mjs} +11 -22
- package/chunks/{UserTaskListeners.XXe5dC5I.mjs → UserTaskListeners.Bv3BDfEI.mjs} +45 -86
- package/chunks/configComponents.BDhlZU8F.mjs +23 -0
- package/chunks/confirmable-mixin.D9aKzKZ9.mjs +85 -0
- package/chunks/core.DJEgjQW6.mjs +54 -0
- package/chunks/{dataformat.B9UvztrQ.mjs → dataformat.CpqOeGBl.mjs} +2 -2
- package/chunks/{dic.CET0XdKP.mjs → dic.Dkl-leRW.mjs} +43 -43
- package/chunks/dictionary.DqiP9x2m.mjs +25 -0
- package/chunks/{event.BT1F_1vF.mjs → event.9aDS6jcw.mjs} +2 -2
- package/chunks/form-input.B8z37eqj.mjs +31 -0
- package/chunks/form-item.D-H-wCPE.mjs +233 -0
- package/chunks/form-validate.CVarNHKX.mjs +12 -0
- package/chunks/helper.BiMLcEEk.mjs +41 -0
- package/chunks/index.9OxHjTIE.mjs +16 -0
- package/chunks/{index.MAFc4eFi.mjs → index.d3MV3Wq2.mjs} +43 -47
- package/chunks/{init.ofpxEyAI.mjs → init.DAsXSoLW.mjs} +2 -2
- package/chunks/{packages.CWPkeLu9.mjs → packages.ByyangTp.mjs} +3 -3
- package/chunks/sub-table-plus-props.BVsD71hT.mjs +30 -0
- package/chunks/{tab-mixin.CVr9bZtn.mjs → tab-mixin.BNK6dxLN.mjs} +1 -1
- package/chunks/{util.CoahLDYn.mjs → util.DqFv_pWg.mjs} +54 -55
- package/chunks/utilSelf.Csq1766E.mjs +48 -0
- package/color-picker/index.mjs +19 -37
- package/comment/style.css +1 -1
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/context-menu/style.css +1 -1
- package/count-up/index.mjs +13 -24
- package/custom-scrollbar/index.mjs +1 -2
- package/data-operatext/style.css +1 -1
- package/data-panel/style.css +1 -1
- package/data-pay/style.css +1 -1
- package/data-price/style.css +1 -1
- package/data-rotate/style.css +1 -1
- package/data-table-picker/index.mjs +1 -1
- package/data-tabs/style.css +1 -1
- package/dialog-form/index.mjs +16 -28
- package/dynamic-table/style.css +1 -1
- package/easy-popup/index.mjs +22 -40
- package/easy-popup/style.css +1 -1
- package/editable-tree/index.mjs +203 -250
- package/editable-tree/style.css +1 -1
- package/element-dialog/index.mjs +30 -52
- package/element-dialog/style.css +1 -1
- package/flex-column/index.mjs +13 -25
- package/flex-item/index.mjs +15 -27
- package/flex-row/index.mjs +13 -25
- package/flow/index.mjs +30 -32
- package/flow-designer/index.mjs +344 -375
- package/flow-designer/style.css +1 -1
- package/flow-node/index.mjs +1 -1
- package/flow-viewer/index.mjs +64 -91
- package/form-block/index.mjs +33 -26
- package/form-card/index.mjs +25 -0
- package/form-cascader/index.mjs +70 -67
- package/form-checkbox/index.mjs +71 -0
- package/form-checkbox-group/index.mjs +33 -53
- package/form-date-picker/index.mjs +44 -73
- package/form-holder/index.mjs +60 -64
- package/form-holder/style.css +1 -0
- package/form-input/index.mjs +62 -40
- package/form-input-cron-expression/index.mjs +77 -0
- package/form-input-cron-expression/style.css +1 -0
- package/form-input-email/index.mjs +21 -33
- package/form-input-id-card/index.mjs +25 -38
- package/form-input-number/index.mjs +39 -42
- package/form-input-number/style.css +1 -1
- package/form-input-phone-number/index.mjs +26 -37
- package/form-input-tag/index.mjs +32 -34
- package/form-input-time/index.mjs +22 -37
- package/form-item/index.mjs +109 -101
- package/form-item/style.css +1 -1
- package/form-item-config-provider/index.mjs +18 -10
- package/form-item-group/index.mjs +73 -69
- package/form-item-group/style.css +1 -1
- package/form-radio-group/index.mjs +41 -36
- package/form-radio-group/style.css +1 -1
- package/form-select/index.mjs +142 -75
- package/form-select/style.css +1 -0
- package/form-switch/index.mjs +29 -34
- package/form-table/index.mjs +85 -0
- package/form-table-plus/index.mjs +109 -0
- package/form-textarea/index.mjs +23 -35
- package/form-tree-select/index.mjs +72 -0
- package/form-tree-select/style.css +1 -0
- package/form-tree-select-multiple/index.mjs +78 -0
- package/form-view/index.mjs +43 -77
- package/form-view/style.css +1 -1
- package/fy-array/index.mjs +2 -2
- package/fy-cascader/index.mjs +1 -1
- package/fy-checkbox/index.mjs +1 -1
- package/fy-code/index.mjs +1 -1
- package/fy-curd/index.mjs +12 -17
- package/fy-curd/style.css +1 -1
- package/fy-date/index.mjs +1 -1
- package/fy-draggable/index.mjs +5 -7
- package/fy-draggable/style.css +1 -1
- package/fy-dynamic/index.mjs +14 -16
- package/fy-empty/index.mjs +1 -1
- package/fy-empty/style.css +1 -1
- package/fy-form/index.mjs +117 -136
- package/fy-form/style.css +1 -1
- package/fy-form-design/index.mjs +319 -345
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +2 -2
- package/fy-input-color/index.mjs +1 -1
- package/fy-input-icon/index.mjs +1 -1
- package/fy-input-map/index.mjs +21 -26
- package/fy-input-map/style.css +1 -1
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +10 -12
- package/fy-input-tree/index.mjs +1 -1
- package/fy-radio/index.mjs +1 -1
- package/fy-rate/index.mjs +1 -1
- package/fy-select/index.mjs +4 -4
- package/fy-slider/index.mjs +2 -2
- package/fy-switch/index.mjs +1 -1
- package/fy-tabs/index.mjs +0 -1
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +1 -1
- package/fy-u-editor/index.mjs +77 -103
- package/fy-upload/index.mjs +3 -3
- package/fy-upload/style.css +1 -1
- package/highlight-j-s/index.mjs +1 -1
- package/highlight-j-s/style.css +1 -1
- package/image-cropper/index.mjs +14 -65
- package/image-preview/index.mjs +17 -45
- package/image-preview/style.css +1 -1
- package/image-viewer/style.css +1 -1
- package/index.mjs +666 -496
- package/input-number/index.mjs +64 -9
- package/keyboard/style.css +1 -1
- package/license/index.mjs +1 -1
- package/login/index.mjs +1 -1
- package/monaco-editor/index.mjs +44 -74
- package/name-avatar/style.css +1 -1
- package/package.json +18 -17
- package/page-index/index.mjs +30 -54
- package/page-index-top/index.mjs +25 -47
- package/pageable-table/index.mjs +354 -226
- package/pageable-table/style.css +1 -1
- package/pageable-view/index.mjs +63 -106
- package/photo-swipe/index.mjs +51 -74
- package/picker-table-view/index.mjs +117 -0
- package/present-view/index.mjs +43 -77
- package/present-view/style.css +1 -1
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +1 -1
- package/resize-observer/style.css +1 -1
- package/search/index.mjs +2 -2
- package/search/style.css +1 -1
- package/search-popover/index.mjs +28 -48
- package/search-popover/style.css +1 -1
- package/sign/index.mjs +2 -2
- package/sign-panel/style.css +1 -1
- package/skeleton-panel/index.mjs +38 -0
- package/skeleton-panel/style.css +1 -0
- package/split-pane/index.mjs +31 -49
- package/split-pane/style.css +1 -1
- package/sub-table/index.mjs +206 -0
- package/sub-table/style.css +1 -0
- package/sub-table-plus/index.mjs +231 -0
- package/sub-table-plus/style.css +1 -0
- package/swiper/index.mjs +18 -38
- package/swiper/style.css +1 -1
- package/tab/index.mjs +1 -1
- package/tab/style.css +1 -1
- package/tab-item/index.mjs +2 -2
- package/table-column/index.mjs +112 -37
- package/table-column/style.css +1 -0
- package/table-view/index.mjs +178 -135
- package/table-view/style.css +1 -1
- package/tabs-view/index.mjs +104 -0
- package/tabs-view/style.css +1 -0
- package/tag-render/index.mjs +13 -24
- package/text-ellipsis/index.mjs +1 -1
- package/toolbar/index.mjs +115 -58
- package/toolbar/style.css +1 -1
- package/toolbar-button/index.mjs +92 -48
- package/verify/index.mjs +1 -1
- package/vue-cron/index.mjs +48 -66
- package/vue-qr-code/index.mjs +14 -32
- package/vue-quill-editor/index.mjs +3 -3
- package/vue-tags-input/index.mjs +1 -1
- package/vue-tree-select/index.mjs +352 -393
- package/vue-tree-select/style.css +1 -1
- package/vue-video-player/index.mjs +36 -67
- package/watermark/index.mjs +21 -31
- package/web-types.json +9240 -3843
- package/x-input-tag/index.mjs +29 -61
- package/chunks/confirmable-mixin.D4LAArE5.mjs +0 -114
- package/chunks/form-input-mixin.BkKiqJhi.mjs +0 -24
- package/chunks/form-item-mixin.CG4ZwzMC.mjs +0 -140
- package/chunks/input-number-mixin.CzjtGf2n.mjs +0 -60
- package/chunks/utilSelf.CRqpl0Cz.mjs +0 -56
- package/toolbar-button/style.css +0 -1
- /package/chunks/{form-pick-mixin.BFTIVn_i.mjs → form-pick.BFTIVn_i.mjs} +0 -0
package/swiper/index.mjs
CHANGED
|
@@ -1,27 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
try {
|
|
4
|
-
a(s.next(n));
|
|
5
|
-
} catch (o) {
|
|
6
|
-
r(o);
|
|
7
|
-
}
|
|
8
|
-
}, d = (n) => {
|
|
9
|
-
try {
|
|
10
|
-
a(s.throw(n));
|
|
11
|
-
} catch (o) {
|
|
12
|
-
r(o);
|
|
13
|
-
}
|
|
14
|
-
}, a = (n) => n.done ? i(n.value) : Promise.resolve(n.value).then(l, d);
|
|
15
|
-
a((s = s.apply(e, t)).next());
|
|
16
|
-
});
|
|
17
|
-
import { getEleWidth as c } from "@web-utils/core";
|
|
18
|
-
import p from "../resize-observer/index.mjs";
|
|
1
|
+
import { getEleWidth as r } from "@web-utils/core";
|
|
2
|
+
import a from "../resize-observer/index.mjs";
|
|
19
3
|
import "../resize-observer/style.css";
|
|
20
|
-
import { n as
|
|
21
|
-
const
|
|
4
|
+
import { n as o } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
+
const h = {
|
|
22
6
|
name: "Swiper",
|
|
23
7
|
components: {
|
|
24
|
-
ResizeObserver:
|
|
8
|
+
ResizeObserver: a
|
|
25
9
|
},
|
|
26
10
|
data() {
|
|
27
11
|
return {
|
|
@@ -38,19 +22,15 @@ const f = {
|
|
|
38
22
|
}
|
|
39
23
|
};
|
|
40
24
|
},
|
|
41
|
-
mounted() {
|
|
42
|
-
|
|
43
|
-
yield this.layout();
|
|
44
|
-
});
|
|
25
|
+
async mounted() {
|
|
26
|
+
await this.layout();
|
|
45
27
|
},
|
|
46
28
|
updated() {
|
|
47
29
|
this.computeContentWidth();
|
|
48
30
|
},
|
|
49
31
|
methods: {
|
|
50
|
-
layout() {
|
|
51
|
-
|
|
52
|
-
yield this.$nextTick(), this.computeContentWidth(), this.resize();
|
|
53
|
-
});
|
|
32
|
+
async layout() {
|
|
33
|
+
await this.$nextTick(), this.computeContentWidth(), this.resize();
|
|
54
34
|
},
|
|
55
35
|
resize() {
|
|
56
36
|
this.swiperBoxWith = this.$refs.swiperBox.offsetWidth;
|
|
@@ -59,8 +39,8 @@ const f = {
|
|
|
59
39
|
let e = 0;
|
|
60
40
|
const t = [], { children: s } = this.$refs.swiperContent;
|
|
61
41
|
Array.prototype.forEach.call(s, (i) => {
|
|
62
|
-
const
|
|
63
|
-
e +=
|
|
42
|
+
const n = r(i);
|
|
43
|
+
e += n, t.push(n);
|
|
64
44
|
}), this.childrenWidth = t, this.swiperContentWidth = e;
|
|
65
45
|
},
|
|
66
46
|
updateDuration(e) {
|
|
@@ -121,20 +101,20 @@ const f = {
|
|
|
121
101
|
}
|
|
122
102
|
}
|
|
123
103
|
};
|
|
124
|
-
var
|
|
104
|
+
var l = function() {
|
|
125
105
|
var t = this, s = t._self._c;
|
|
126
106
|
return s("div", { staticClass: "egd-swiper" }, [s("ElButton", { staticClass: "el-carousel__arrow el-carousel__arrow--left", attrs: { disabled: t.reachedLeft, icon: "el-icon-arrow-left" }, on: { click: t.clickLeft } }), s("div", { ref: "swiperBox", staticClass: "egd-swiper-box", on: { wheel: function(i) {
|
|
127
107
|
return i.stopPropagation(), i.preventDefault(), t.onMouseWheel.apply(null, arguments);
|
|
128
108
|
} } }, [s("div", { ref: "swiperContent", staticClass: "egd-swiper-content", style: t.swiperContentStyle }, [t._t("default")], 2)]), s("ElButton", { staticClass: "el-carousel__arrow el-carousel__arrow--right", attrs: { disabled: t.reachedRight, icon: "el-icon-arrow-right" }, on: { click: t.clickRight } }), s("ResizeObserver", { on: { notify: t.resize } })], 1);
|
|
129
|
-
},
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
109
|
+
}, d = [], c = /* @__PURE__ */ o(
|
|
110
|
+
h,
|
|
111
|
+
l,
|
|
112
|
+
d,
|
|
133
113
|
!1,
|
|
134
114
|
null,
|
|
135
115
|
null
|
|
136
116
|
);
|
|
137
|
-
const
|
|
117
|
+
const m = c.exports;
|
|
138
118
|
export {
|
|
139
|
-
|
|
119
|
+
m as default
|
|
140
120
|
};
|
package/swiper/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.egd-swiper{height:100%;padding:0 60px;position:relative}.egd-swiper .el-button.el-carousel__arrow{color:#fff;background-color
|
|
1
|
+
.egd-swiper{height:100%;padding:0 60px;position:relative}.egd-swiper .el-button.el-carousel__arrow{color:#fff;background-color:#1f2d3d1c;border-color:#1f2d3d03;border-radius:50%;padding:0;font-size:12px}.egd-swiper .el-button.el-carousel__arrow i{cursor:unset}.egd-swiper .el-button.el-carousel__arrow.is-disabled{color:#fff;background-color:#1f2d3d1c;border-color:#1f2d3d03}.egd-swiper .egd-swiper-box{-webkit-user-select:none;user-select:none;height:100%;overflow:hidden}.egd-swiper .egd-swiper-box .egd-swiper-content{flex-flow:row;width:100%;height:100%;padding-top:14px;transition-property:transform;display:flex;overflow:visible;transform:translate(0,0)}
|
package/tab/index.mjs
CHANGED
package/tab/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.vux-tab-ink-bar{text-align:center;background-color:#1989fa;height:2px;position:absolute;bottom:0;left:0}.vux-tab-ink-bar-transition-forward{transition:right .3s cubic-bezier(.35,0,.25,1),left .3s cubic-bezier(.35,0,.25,1) 90ms}.vux-tab-ink-bar-transition-backward{transition:right .3s cubic-bezier(.35,0,.25,1) 90ms,left .3s cubic-bezier(.35,0,.25,1)}.vux-tab-bar-top .vux-tab-ink-bar{top:0}.vux-tab{background-color:#fff;height:36px;display:flex;position:relative}.vux-tab button{-webkit-appearance:none;-moz-appearance:none
|
|
1
|
+
.vux-tab-ink-bar{text-align:center;background-color:#1989fa;height:2px;position:absolute;bottom:0;left:0}.vux-tab-ink-bar-transition-forward{transition:right .3s cubic-bezier(.35,0,.25,1),left .3s cubic-bezier(.35,0,.25,1) 90ms}.vux-tab-ink-bar-transition-backward{transition:right .3s cubic-bezier(.35,0,.25,1) 90ms,left .3s cubic-bezier(.35,0,.25,1)}.vux-tab-bar-top .vux-tab-ink-bar{top:0}.vux-tab{background-color:#fff;height:36px;display:flex;position:relative}.vux-tab button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:0 0;border:0;outline:0;padding:0}.vux-tab .vux-tab-item{box-sizing:border-box;color:#666;text-align:center;cursor:pointer;flex:auto;width:100%;height:100%;font-size:14px;line-height:36px;display:block}.vux-tab .vux-tab-item.vux-tab-selected{color:#1989fa;border-bottom:3px solid #1989fa}.vux-tab-bar-top .vux-tab .vux-tab-item.vux-tab-selected{border-top:3px solid #1989fa;border-bottom:none}.vux-tab .vux-tab-item.vux-tab-disabled{color:#ddd}.vux-tab.vux-tab-no-animate .vux-tab-item.vux-tab-selected{background:0 0}.vux-tab-bar-inner{background-color:#1989fa;height:100%;margin:auto;transition:width .3s cubic-bezier(.35,0,.25,1);display:block}.vux-tab-item-badge{box-sizing:border-box;vertical-align:middle;background-clip:padding-box;border-radius:30px;min-width:18px;height:18px;margin:auto 0 auto 4px;padding:0 4px;font-size:11px;line-height:18px;display:inline-block;position:absolute;top:0;bottom:0}.vux-tab-wrap{padding-top:36px;position:relative}.vux-tab-container{height:36px;position:absolute;top:0;left:0;right:0;overflow:hidden}.scrollable{box-sizing:content-box;-webkit-overflow-scrolling:touch;padding-bottom:17px;overflow:auto hidden}.scrollable::-webkit-scrollbar{display:none}.scrollable .vux-tab-ink-bar{position:absolute;bottom:17px}.scrollable .vux-tab-item{flex:0 0 22%}
|
package/tab-item/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as a } from "../chunks/tab-mixin.
|
|
1
|
+
import { c as a } from "../chunks/tab-mixin.BNK6dxLN.mjs";
|
|
2
2
|
import { n as r } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
3
3
|
const l = {
|
|
4
4
|
name: "TabItem",
|
|
@@ -39,7 +39,7 @@ var n = function() {
|
|
|
39
39
|
"vux-tab-selected": e.currentSelected,
|
|
40
40
|
"vux-tab-disabled": e.disabled
|
|
41
41
|
}
|
|
42
|
-
], style: e.style, on: { click: e.onItemClick } }, [e._t("default"), typeof e.badgeLabel
|
|
42
|
+
], style: e.style, on: { click: e.onItemClick } }, [e._t("default"), typeof e.badgeLabel < "u" && e.badgeLabel !== "" ? t("span", { staticClass: "vux-tab-item-badge", style: {
|
|
43
43
|
background: e.badgeBackground,
|
|
44
44
|
color: e.badgeColor
|
|
45
45
|
} }, [e._v(" " + e._s(e.badgeLabel) + " ")]) : e._e()], 2);
|
package/table-column/index.mjs
CHANGED
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
c.call(e, n) && i(t, n, e[n]);
|
|
8
|
-
if (o)
|
|
9
|
-
for (var n of o(e))
|
|
10
|
-
f.call(e, n) && i(t, n, e[n]);
|
|
11
|
-
return t;
|
|
12
|
-
}, r = (t, e) => u(t, d(e));
|
|
13
|
-
import { n as p } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
14
|
-
const g = {
|
|
1
|
+
import { _ } from "../chunks/helper.BiMLcEEk.mjs";
|
|
2
|
+
import { h as g } from "vue";
|
|
3
|
+
import w from "../dict-render/index.mjs";
|
|
4
|
+
import { f as v } from "../chunks/core.DJEgjQW6.mjs";
|
|
5
|
+
import { n as F } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
6
|
+
const x = {
|
|
15
7
|
props: {
|
|
16
8
|
type: {
|
|
17
9
|
type: String,
|
|
@@ -27,7 +19,7 @@ const g = {
|
|
|
27
19
|
renderHeader: Function,
|
|
28
20
|
sortable: {
|
|
29
21
|
type: [Boolean, String],
|
|
30
|
-
default: !
|
|
22
|
+
default: !0
|
|
31
23
|
},
|
|
32
24
|
sortMethod: Function,
|
|
33
25
|
sortBy: [String, Function, Array],
|
|
@@ -39,6 +31,8 @@ const g = {
|
|
|
39
31
|
align: String,
|
|
40
32
|
headerAlign: String,
|
|
41
33
|
showTooltipWhenOverflow: Boolean,
|
|
34
|
+
clickable: Boolean,
|
|
35
|
+
cellClick: Function,
|
|
42
36
|
showOverflowTooltip: {
|
|
43
37
|
type: Boolean,
|
|
44
38
|
default: !0
|
|
@@ -61,36 +55,117 @@ const g = {
|
|
|
61
55
|
default() {
|
|
62
56
|
return ["ascending", "descending", null];
|
|
63
57
|
},
|
|
64
|
-
validator(
|
|
65
|
-
return
|
|
58
|
+
validator(n) {
|
|
59
|
+
return n.every((t) => ["ascending", "descending", null].indexOf(t) > -1);
|
|
66
60
|
}
|
|
67
|
-
}
|
|
61
|
+
},
|
|
62
|
+
dictType: String,
|
|
63
|
+
options: Array,
|
|
64
|
+
autoUpdate: Boolean,
|
|
65
|
+
treeDict: Boolean,
|
|
66
|
+
idAsValue: {
|
|
67
|
+
type: Boolean,
|
|
68
|
+
default: !0
|
|
69
|
+
},
|
|
70
|
+
labelAsValue: Boolean
|
|
71
|
+
}
|
|
72
|
+
}, N = {
|
|
73
|
+
selection: !0,
|
|
74
|
+
"single-selection": !0,
|
|
75
|
+
index: !0,
|
|
76
|
+
expand: !0
|
|
77
|
+
}, O = (n, t, e, y, d) => {
|
|
78
|
+
var i;
|
|
79
|
+
const l = n.rowDbClick || ((i = n.$children.find((f) => f.$options.name === "TableView")) == null ? void 0 : i.rowDbClick);
|
|
80
|
+
l == null || l(t, e, y, d);
|
|
81
|
+
}, V = (n) => {
|
|
82
|
+
let t = n.target;
|
|
83
|
+
for (; t && t.tagName.toUpperCase() !== "HTML"; ) {
|
|
84
|
+
if (t.tagName.toUpperCase() === "TD")
|
|
85
|
+
return t;
|
|
86
|
+
t = t.parentNode;
|
|
68
87
|
}
|
|
69
|
-
|
|
88
|
+
return null;
|
|
89
|
+
}, D = () => {
|
|
90
|
+
}, M = (n) => !v(n).length, k = {
|
|
70
91
|
name: "TableColumn",
|
|
71
92
|
functional: !0,
|
|
72
|
-
mixins: [
|
|
73
|
-
render(
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
93
|
+
mixins: [x],
|
|
94
|
+
render(n, {
|
|
95
|
+
data: t,
|
|
96
|
+
props: e,
|
|
97
|
+
children: y,
|
|
98
|
+
parent: d,
|
|
99
|
+
listeners: {
|
|
100
|
+
click: l
|
|
101
|
+
}
|
|
102
|
+
}) {
|
|
103
|
+
const {
|
|
104
|
+
scopedSlots: i,
|
|
105
|
+
...f
|
|
106
|
+
} = t, {
|
|
107
|
+
clickable: C,
|
|
108
|
+
cellClick: a,
|
|
109
|
+
...b
|
|
110
|
+
} = e, S = {
|
|
111
|
+
...i || {}
|
|
112
|
+
}, h = N[e.type];
|
|
113
|
+
if (!h) {
|
|
114
|
+
const p = i == null ? void 0 : i.default, c = C || l || a;
|
|
115
|
+
(c || e.dictType || e.options) && (S.default = (T) => {
|
|
116
|
+
const {
|
|
117
|
+
row: o,
|
|
118
|
+
column: r
|
|
119
|
+
} = T, B = c ? (u) => {
|
|
120
|
+
const m = V(u);
|
|
121
|
+
l || a ? (l == null || l(o, r, o, r, m, u), a == null || a(o, r, o, r, m, u)) : O(d, o, r, m, u);
|
|
122
|
+
} : D;
|
|
123
|
+
let s = p == null ? void 0 : p(T);
|
|
124
|
+
return M(s) && (s = null), (e.dictType || e.options) && !s ? g(w, {
|
|
125
|
+
class: {
|
|
126
|
+
"is-clickable": c
|
|
127
|
+
},
|
|
128
|
+
on: {
|
|
129
|
+
click: B
|
|
130
|
+
},
|
|
131
|
+
attrs: {
|
|
132
|
+
row: o,
|
|
133
|
+
column: r,
|
|
134
|
+
dictType: e.dictType,
|
|
135
|
+
treeDict: e.treeDict,
|
|
136
|
+
idAsValue: e.idAsValue,
|
|
137
|
+
labelAsValue: e.labelAsValue,
|
|
138
|
+
options: e.options
|
|
139
|
+
}
|
|
140
|
+
}) : c ? g("span", {
|
|
141
|
+
class: "is-clickable",
|
|
142
|
+
on: {
|
|
143
|
+
click: B
|
|
144
|
+
}
|
|
145
|
+
}, [s || (o == null ? void 0 : o[r == null ? void 0 : r.property])]) : s;
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
const A = {
|
|
149
|
+
...f,
|
|
150
|
+
props: {
|
|
151
|
+
...b,
|
|
152
|
+
showOverflowTooltip: h ? !1 : b.showOverflowTooltip
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
return g("ElTableColumn", _([{}, A, {
|
|
156
|
+
scopedSlots: S
|
|
157
|
+
}]));
|
|
83
158
|
}
|
|
84
|
-
},
|
|
85
|
-
var
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
159
|
+
}, H = null, P = null;
|
|
160
|
+
var U = /* @__PURE__ */ F(
|
|
161
|
+
k,
|
|
162
|
+
H,
|
|
163
|
+
P,
|
|
89
164
|
!1,
|
|
90
165
|
null,
|
|
91
166
|
null
|
|
92
167
|
);
|
|
93
|
-
const
|
|
168
|
+
const K = U.exports;
|
|
94
169
|
export {
|
|
95
|
-
|
|
170
|
+
K as default
|
|
96
171
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.is-clickable{cursor:pointer;text-decoration:underline}.is-clickable:hover{color:var(--color-primary)}.el-table__column-filter-trigger{line-height:unset}
|