lew-ui 1.8.12 → 1.8.14
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/dist/index.es.js +11 -4
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -14713,8 +14713,10 @@ const _sfc_main$j = defineComponent({
|
|
|
14713
14713
|
}
|
|
14714
14714
|
state.hidScrollLine = "";
|
|
14715
14715
|
};
|
|
14716
|
-
const resizeTableHandle = () => {
|
|
14716
|
+
const resizeTableHandle = _.throttle(() => {
|
|
14717
14717
|
const table = tableRef.value;
|
|
14718
|
+
if (!table)
|
|
14719
|
+
return;
|
|
14718
14720
|
let clientWidth = 0;
|
|
14719
14721
|
props.columns.map((e) => e.width).forEach((w) => {
|
|
14720
14722
|
clientWidth += w;
|
|
@@ -14724,7 +14726,8 @@ const _sfc_main$j = defineComponent({
|
|
|
14724
14726
|
}
|
|
14725
14727
|
state.scrollClientWidth = table.clientWidth;
|
|
14726
14728
|
state.scrollbarVisible = clientWidth > state.scrollClientWidth;
|
|
14727
|
-
|
|
14729
|
+
checkScroll();
|
|
14730
|
+
}, 200);
|
|
14728
14731
|
const getTdNotWidth = computed(() => {
|
|
14729
14732
|
let totalWidth = 0;
|
|
14730
14733
|
const countWidth = props.columns.filter((e) => !!e.width).length;
|
|
@@ -15435,12 +15438,12 @@ const avatarProps = {
|
|
|
15435
15438
|
description: "\u4F4D\u7F6E"
|
|
15436
15439
|
},
|
|
15437
15440
|
width: {
|
|
15438
|
-
type: Number,
|
|
15441
|
+
type: [Number, String],
|
|
15439
15442
|
default: 40,
|
|
15440
15443
|
description: "\u5BBD\u5EA6"
|
|
15441
15444
|
},
|
|
15442
15445
|
height: {
|
|
15443
|
-
type: Number,
|
|
15446
|
+
type: [Number, String],
|
|
15444
15447
|
default: 40,
|
|
15445
15448
|
description: "\u9AD8\u5EA6"
|
|
15446
15449
|
},
|
|
@@ -18851,12 +18854,14 @@ const _sfc_main$8 = defineComponent({
|
|
|
18851
18854
|
createVNode(unref(LewButton), mergeProps({ onClick: cancel }, {
|
|
18852
18855
|
type: "text",
|
|
18853
18856
|
text: "\u53D6\u6D88",
|
|
18857
|
+
round: true,
|
|
18854
18858
|
color: "normal",
|
|
18855
18859
|
..._ctx.cancelProps
|
|
18856
18860
|
}), null, 16),
|
|
18857
18861
|
createVNode(unref(LewButton), mergeProps({ onClick: ok }, {
|
|
18858
18862
|
text: "\u786E\u5B9A",
|
|
18859
18863
|
color: "primary",
|
|
18864
|
+
round: true,
|
|
18860
18865
|
..._ctx.okProps
|
|
18861
18866
|
}), null, 16)
|
|
18862
18867
|
]),
|
|
@@ -20251,6 +20256,7 @@ const _sfc_main = defineComponent({
|
|
|
20251
20256
|
text: _ctx.cancelText,
|
|
20252
20257
|
type: "text",
|
|
20253
20258
|
color: "gray",
|
|
20259
|
+
round: "",
|
|
20254
20260
|
loading: unref(cancelLoading),
|
|
20255
20261
|
onClick: withModifiers(cancel, ["stop"])
|
|
20256
20262
|
}, null, 8, ["text", "loading", "onClick"])) : createCommentVNode("v-if", true),
|
|
@@ -20258,6 +20264,7 @@ const _sfc_main = defineComponent({
|
|
|
20258
20264
|
key: 1,
|
|
20259
20265
|
text: _ctx.okText,
|
|
20260
20266
|
type: "fill",
|
|
20267
|
+
round: "",
|
|
20261
20268
|
color: _ctx.type,
|
|
20262
20269
|
loading: unref(okLoading),
|
|
20263
20270
|
onClick: withModifiers(ok, ["stop"])
|