✨(select): 优化 disabled 属性启用时将不再显示 allow-clear 操作, 本次变动涉及 input tag-input select 组件
This commit is contained in:
@@ -175,7 +175,7 @@ const showPassword = () => {
|
||||
<password-icon v-if="isPassword"></password-icon>
|
||||
<un-password-icon v-else></un-password-icon>
|
||||
</span>
|
||||
<span class="layui-input-clear" v-if="allowClear && hasContent">
|
||||
<span class="layui-input-clear" v-if="allowClear && hasContent && !disabled">
|
||||
<lay-icon type="layui-icon-close-fill" @click.stop="onClear"></lay-icon>
|
||||
</span>
|
||||
<span class="layui-input-suffix" v-if="slots.suffix || props.suffixIcon">
|
||||
|
||||
@@ -319,7 +319,7 @@ defineExpose({
|
||||
/>
|
||||
</template>
|
||||
</span>
|
||||
<span v-if="allowClear && tagData?.length" class="layui-tag-input-clear">
|
||||
<span v-if="allowClear && tagData?.length && !disabled" class="layui-tag-input-clear">
|
||||
<lay-icon type="layui-icon-close-fill" @click.stop="handleClearClick" />
|
||||
</span>
|
||||
<span class="layui-tag-input-suffix" v-if="$slots.suffix">
|
||||
|
||||
Reference in New Issue
Block a user