diff --git a/src/plugins/crud/components/select/index.tsx b/src/plugins/crud/components/select/index.tsx index 3c04b8f..2d2574e 100644 --- a/src/plugins/crud/components/select/index.tsx +++ b/src/plugins/crud/components/select/index.tsx @@ -230,6 +230,7 @@ export default defineComponent({ clearable filterable placeholder={placeholder} + disabled={props.disabled} data={list.value} checkStrictly={props.allLevelsId || props.checkStrictly} defaultExpandAll={props.defaultExpandAll} @@ -249,6 +250,7 @@ export default defineComponent({ v-model={value.value} clearable filterable + disabled={props.disabled} placeholder={placeholder} style={style} onChange={onChange} diff --git a/src/plugins/crud/components/switch/index.tsx b/src/plugins/crud/components/switch/index.tsx index 6303c32..249d69c 100644 --- a/src/plugins/crud/components/switch/index.tsx +++ b/src/plugins/crud/components/switch/index.tsx @@ -120,6 +120,7 @@ export default defineComponent({ model-value={status.value} active-value={activeValue.value} inactive-value={inactiveValue.value} + disabled={props.disabled} onChange={onChange} onClick={onClick} />