🐛(button): 修复 disabled 属性只标注属性不生效的问题
This commit is contained in:
parent
cf254de182
commit
21d8d05032
@ -24,10 +24,10 @@ export interface ButtonProps {
|
||||
loadingIcon?: string;
|
||||
borderStyle?: string;
|
||||
border?: ButtonBorder;
|
||||
fluid?: string | boolean;
|
||||
radius?: string | boolean;
|
||||
loading?: string | boolean;
|
||||
disabled?: string | boolean;
|
||||
fluid?: boolean;
|
||||
radius?: boolean;
|
||||
loading?: boolean;
|
||||
disabled?: boolean;
|
||||
nativeType?: ButtonNativeType;
|
||||
}
|
||||
|
||||
@ -35,7 +35,6 @@ const props = withDefaults(defineProps<ButtonProps>(), {
|
||||
loadingIcon: "layui-icon-loading-one",
|
||||
borderStyle: "soild",
|
||||
nativeType: "button",
|
||||
disabled: false,
|
||||
loading: false,
|
||||
radius: false,
|
||||
fluid: false,
|
||||
|
@ -99,7 +99,7 @@ export default {
|
||||
<lay-button type="normal" size="lg">百搭按钮</lay-button>
|
||||
<lay-button type="warm" size="lg">暖色按钮</lay-button>
|
||||
<lay-button type="danger" size="lg">警告按钮</lay-button>
|
||||
<lay-button type="disabled" size="lg">禁用按钮</lay-button>
|
||||
<lay-button disabled size="lg">禁用按钮</lay-button>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
Loading…
Reference in New Issue
Block a user