mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 11:54:02 +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({
|
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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user