Prechádzať zdrojové kódy

fixup! feat: 增加全局系统字典组件

喵你个旺呀 1 rok pred
rodič
commit
9242d8e516
1 zmenil súbory, kde vykonal 1 pridanie a 5 odobranie
  1. 1 5
      Web/src/components/sysDict/sysDict.vue

+ 1 - 5
Web/src/components/sysDict/sysDict.vue

@@ -30,7 +30,7 @@ const props = defineProps({
     type: String,
     default: 'tag',
     validator(value: string) {
-      return ['tag', 'select', 'radio', 'switch'].includes(value);
+      return ['tag', 'select', 'radio'].includes(value);
     }
   }
 });
@@ -69,10 +69,6 @@ watch(() => props.modelValue, (newValue) => setDictValue(newValue), { immediate:
       <el-radio :value="item[props.propValue]" v-for="(item, index) in state.dictData" :key="index">{{item[props.propLabel]}}</el-radio>
     </el-radio-group>
   </template>
-  <!-- 渲染开关 -->
-  <template v-if="props.renderAs === 'switch'">
-    <el-switch v-model="state.value" v-bind="$attrs" @change="(newValue: any) => emit('update:modelValue', newValue)" />
-  </template>
 </template>
 
 <style scoped lang="scss">