|
|
|
@ -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>
|
|
|
|
|