mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 19:24:16 +00:00
fix(TextEllipsis): failed to inherit attrs (#11621)
This commit is contained in:
@@ -26,8 +26,6 @@ export type TextEllipsisProps = ExtractPropTypes<typeof textEllipsisProps>;
|
||||
export default defineComponent({
|
||||
name,
|
||||
|
||||
inheritAttrs: false,
|
||||
|
||||
props: textEllipsisProps,
|
||||
|
||||
emits: ['clickAction'],
|
||||
@@ -120,9 +118,7 @@ export default defineComponent({
|
||||
</span>
|
||||
);
|
||||
|
||||
onMounted(() => {
|
||||
calcEllipsised();
|
||||
});
|
||||
onMounted(calcEllipsised);
|
||||
|
||||
watch(() => [props.content, props.rows], calcEllipsised);
|
||||
|
||||
|
Reference in New Issue
Block a user