Merge branch 'msb_prod' into feat-im-0607-xwk

feat-im-0607-xwk
向文可 2 years ago
commit b350800d2e

@ -13,6 +13,10 @@
type: Boolean,
default: true,
},
maxlength: {
type: [Number, String],
default: 255,
},
placeholder: {
type: String,
default: '请输入',
@ -44,6 +48,7 @@
});
const attrs = useAttrs();
const slots = useSlots();
const render = () => <ElInput {...props} {...attrs} v-slots={slots}></ElInput>;
const showWordLimit = props.showWordLimit === true && props.maxlength !== 255;
const render = () => <ElInput {...{ ...props, showWordLimit }} {...attrs} v-slots={slots}></ElInput>;
</script>
<style lang="less" scoped></style>

Loading…
Cancel
Save