lew-ui 1.8.10 → 1.8.12
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 +30 -33
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -15168,9 +15168,6 @@ const _sfc_main$i = defineComponent({
|
|
|
15168
15168
|
pageSize: props.pageSize,
|
|
15169
15169
|
visiblePagesCount: props.visiblePagesCount
|
|
15170
15170
|
});
|
|
15171
|
-
watch(total, () => {
|
|
15172
|
-
currentPage.value = 1;
|
|
15173
|
-
});
|
|
15174
15171
|
onMounted(() => {
|
|
15175
15172
|
state.visiblePagesCount = Math.max(state.visiblePagesCount, 5);
|
|
15176
15173
|
state.visiblePagesCount = Math.min(state.visiblePagesCount, 12);
|
|
@@ -18540,7 +18537,7 @@ const textTrimProps = {
|
|
|
18540
18537
|
default: "",
|
|
18541
18538
|
description: "\u6587\u672C\u5185\u5BB9"
|
|
18542
18539
|
},
|
|
18543
|
-
|
|
18540
|
+
allowHtml: {
|
|
18544
18541
|
type: Boolean,
|
|
18545
18542
|
default: false,
|
|
18546
18543
|
description: "HTML"
|
|
@@ -18576,31 +18573,6 @@ const _sfc_main$9 = defineComponent({
|
|
|
18576
18573
|
const textTrimRef = ref();
|
|
18577
18574
|
let instance2;
|
|
18578
18575
|
const watchOptions = { debounce: 250, maxWait: 1e3 };
|
|
18579
|
-
watchDebounced(
|
|
18580
|
-
() => props.text,
|
|
18581
|
-
() => init(),
|
|
18582
|
-
watchOptions
|
|
18583
|
-
);
|
|
18584
|
-
watchDebounced(
|
|
18585
|
-
() => props.allowHTML,
|
|
18586
|
-
() => init(),
|
|
18587
|
-
watchOptions
|
|
18588
|
-
);
|
|
18589
|
-
watchDebounced(
|
|
18590
|
-
() => props.placement,
|
|
18591
|
-
() => init(),
|
|
18592
|
-
watchOptions
|
|
18593
|
-
);
|
|
18594
|
-
watchDebounced(
|
|
18595
|
-
() => props.allowHTML,
|
|
18596
|
-
() => init(),
|
|
18597
|
-
watchOptions
|
|
18598
|
-
);
|
|
18599
|
-
watchDebounced(
|
|
18600
|
-
() => props.offset,
|
|
18601
|
-
() => init(),
|
|
18602
|
-
watchOptions
|
|
18603
|
-
);
|
|
18604
18576
|
const init = () => {
|
|
18605
18577
|
const element = textTrimRef.value;
|
|
18606
18578
|
if (!element) {
|
|
@@ -18611,7 +18583,7 @@ const _sfc_main$9 = defineComponent({
|
|
|
18611
18583
|
instance2 = null;
|
|
18612
18584
|
}
|
|
18613
18585
|
let isEllipsis = false;
|
|
18614
|
-
const { placement,
|
|
18586
|
+
const { placement, allowHtml, text, offset: offset2 } = props;
|
|
18615
18587
|
if (props.lineClamp) {
|
|
18616
18588
|
isEllipsis = element.offsetHeight < element.scrollHeight;
|
|
18617
18589
|
} else {
|
|
@@ -18630,7 +18602,7 @@ const _sfc_main$9 = defineComponent({
|
|
|
18630
18602
|
appendTo: () => document.body,
|
|
18631
18603
|
placement,
|
|
18632
18604
|
offset: offset2,
|
|
18633
|
-
allowHTML,
|
|
18605
|
+
allowHTML: allowHtml,
|
|
18634
18606
|
arrow: false,
|
|
18635
18607
|
maxWidth: 250
|
|
18636
18608
|
});
|
|
@@ -18638,6 +18610,31 @@ const _sfc_main$9 = defineComponent({
|
|
|
18638
18610
|
} else if (instance2)
|
|
18639
18611
|
instance2.setContent(props.text);
|
|
18640
18612
|
};
|
|
18613
|
+
watchDebounced(
|
|
18614
|
+
() => props.text,
|
|
18615
|
+
() => init(),
|
|
18616
|
+
watchOptions
|
|
18617
|
+
);
|
|
18618
|
+
watchDebounced(
|
|
18619
|
+
() => props.allowHtml,
|
|
18620
|
+
() => init(),
|
|
18621
|
+
watchOptions
|
|
18622
|
+
);
|
|
18623
|
+
watchDebounced(
|
|
18624
|
+
() => props.placement,
|
|
18625
|
+
() => init(),
|
|
18626
|
+
watchOptions
|
|
18627
|
+
);
|
|
18628
|
+
watchDebounced(
|
|
18629
|
+
() => props.allowHtml,
|
|
18630
|
+
() => init(),
|
|
18631
|
+
watchOptions
|
|
18632
|
+
);
|
|
18633
|
+
watchDebounced(
|
|
18634
|
+
() => props.offset,
|
|
18635
|
+
() => init(),
|
|
18636
|
+
watchOptions
|
|
18637
|
+
);
|
|
18641
18638
|
const getTextTrimStyleObject = computed(() => {
|
|
18642
18639
|
if (props.lineClamp) {
|
|
18643
18640
|
return `display: -webkit-box;-webkit-line-clamp: ${props.lineClamp};-webkit-box-orient: vertical;`;
|
|
@@ -18679,7 +18676,7 @@ const _sfc_main$9 = defineComponent({
|
|
|
18679
18676
|
ref: textTrimRef,
|
|
18680
18677
|
class: normalizeClass(["lew-text-trim-wrapper", unref(getClassNames)]),
|
|
18681
18678
|
style: normalizeStyle(unref(getTextTrimStyleObject)),
|
|
18682
|
-
|
|
18679
|
+
onMouseenter: check,
|
|
18683
18680
|
innerHTML: _ctx.text
|
|
18684
18681
|
}, null, 46, _hoisted_1$7);
|
|
18685
18682
|
};
|
|
@@ -20420,7 +20417,7 @@ var LewTooltip = {
|
|
|
20420
20417
|
interactive: true,
|
|
20421
20418
|
appendTo: () => document.body,
|
|
20422
20419
|
placement: binding.value.placement,
|
|
20423
|
-
allowHTML: binding.value.
|
|
20420
|
+
allowHTML: binding.value.allowHtml,
|
|
20424
20421
|
arrow: false,
|
|
20425
20422
|
duration: [120, 120],
|
|
20426
20423
|
maxWidth: 250,
|