mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(TextEllipsis): failed to inherit attrs (#11621)
This commit is contained in:
parent
c00d389f77
commit
47d1dd4148
@ -26,8 +26,6 @@ export type TextEllipsisProps = ExtractPropTypes<typeof textEllipsisProps>;
|
|||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name,
|
name,
|
||||||
|
|
||||||
inheritAttrs: false,
|
|
||||||
|
|
||||||
props: textEllipsisProps,
|
props: textEllipsisProps,
|
||||||
|
|
||||||
emits: ['clickAction'],
|
emits: ['clickAction'],
|
||||||
@ -120,9 +118,7 @@ export default defineComponent({
|
|||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(calcEllipsised);
|
||||||
calcEllipsised();
|
|
||||||
});
|
|
||||||
|
|
||||||
watch(() => [props.content, props.rows], calcEllipsised);
|
watch(() => [props.content, props.rows], calcEllipsised);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user