Showing
7 changed files
with
69 additions
and
90 deletions
| 1 | 1 | <template> |
| 2 | 2 | <div :class="`${prefixCls}-config-list`"> |
| 3 | - <RadioGroup v-model:value="type"> | |
| 3 | + <a-radio-group v-model:value="type"> | |
| 4 | 4 | <div class="item"> |
| 5 | - <Radio :value="TypeEnum.unset" v-bind="beforeRadioAttrs">不设置</Radio> | |
| 5 | + <a-radio :value="TypeEnum.unset" v-bind="beforeRadioAttrs">不设置</a-radio> | |
| 6 | 6 | <span class="tip-info">日和周只能设置其中之一</span> |
| 7 | 7 | </div> |
| 8 | 8 | <div class="item"> |
| 9 | - <Radio :value="TypeEnum.every" v-bind="beforeRadioAttrs">每日</Radio> | |
| 9 | + <a-radio :value="TypeEnum.every" v-bind="beforeRadioAttrs">每日</a-radio> | |
| 10 | 10 | </div> |
| 11 | 11 | <div class="item"> |
| 12 | - <Radio :value="TypeEnum.range" v-bind="beforeRadioAttrs">区间</Radio> | |
| 12 | + <a-radio :value="TypeEnum.range" v-bind="beforeRadioAttrs">区间</a-radio> | |
| 13 | 13 | <span> 从 </span> |
| 14 | 14 | <InputNumber v-model:value="valueRange.start" v-bind="typeRangeAttrs" /> |
| 15 | 15 | <span> 日 至 </span> |
| ... | ... | @@ -17,7 +17,7 @@ |
| 17 | 17 | <span> 日 </span> |
| 18 | 18 | </div> |
| 19 | 19 | <div class="item"> |
| 20 | - <Radio :value="TypeEnum.loop" v-bind="beforeRadioAttrs">循环</Radio> | |
| 20 | + <a-radio :value="TypeEnum.loop" v-bind="beforeRadioAttrs">循环</a-radio> | |
| 21 | 21 | <span> 从 </span> |
| 22 | 22 | <InputNumber v-model:value="valueLoop.start" v-bind="typeLoopAttrs" /> |
| 23 | 23 | <span> 日开始,间隔 </span> |
| ... | ... | @@ -25,25 +25,25 @@ |
| 25 | 25 | <span> 日 </span> |
| 26 | 26 | </div> |
| 27 | 27 | <div class="item"> |
| 28 | - <Radio :value="TypeEnum.work" v-bind="beforeRadioAttrs">工作日</Radio> | |
| 28 | + <a-radio :value="TypeEnum.work" v-bind="beforeRadioAttrs">工作日</a-radio> | |
| 29 | 29 | <span> 本月 </span> |
| 30 | 30 | <InputNumber v-model:value="valueWork" v-bind="typeWorkAttrs" /> |
| 31 | 31 | <span> 日,最近的工作日 </span> |
| 32 | 32 | </div> |
| 33 | 33 | <div class="item"> |
| 34 | - <Radio :value="TypeEnum.last" v-bind="beforeRadioAttrs">最后一日</Radio> | |
| 34 | + <a-radio :value="TypeEnum.last" v-bind="beforeRadioAttrs">最后一日</a-radio> | |
| 35 | 35 | </div> |
| 36 | 36 | <div class="item"> |
| 37 | - <Radio :value="TypeEnum.specify" v-bind="beforeRadioAttrs">指定</Radio> | |
| 37 | + <a-radio :value="TypeEnum.specify" v-bind="beforeRadioAttrs">指定</a-radio> | |
| 38 | 38 | <div class="list"> |
| 39 | - <CheckboxGroup v-model:value="valueList"> | |
| 39 | + <a-checkbox-group v-model:value="valueList"> | |
| 40 | 40 | <template v-for="i in specifyRange" :key="i"> |
| 41 | - <Checkbox :value="i" v-bind="typeSpecifyAttrs">{{ i }}</Checkbox> | |
| 41 | + <a-checkbox :value="i" v-bind="typeSpecifyAttrs">{{ i }}</a-checkbox> | |
| 42 | 42 | </template> |
| 43 | - </CheckboxGroup> | |
| 43 | + </a-checkbox-group> | |
| 44 | 44 | </div> |
| 45 | 45 | </div> |
| 46 | - </RadioGroup> | |
| 46 | + </a-radio-group> | |
| 47 | 47 | </div> |
| 48 | 48 | </template> |
| 49 | 49 | |
| ... | ... | @@ -51,14 +51,10 @@ |
| 51 | 51 | import { computed, defineComponent, watch } from 'vue'; |
| 52 | 52 | import { InputNumber } from 'ant-design-vue'; |
| 53 | 53 | import { TypeEnum, useTabEmits, useTabProps, useTabSetup } from './useTabMixin'; |
| 54 | - import { Radio, Checkbox } from 'ant-design-vue'; | |
| 55 | - | |
| 56 | - const { CheckboxGroup } = Checkbox; | |
| 57 | - const { RadioGroup } = Radio; | |
| 58 | 54 | |
| 59 | 55 | export default defineComponent({ |
| 60 | 56 | name: 'DayUI', |
| 61 | - components: { InputNumber, RadioGroup, Radio, CheckboxGroup, Checkbox }, | |
| 57 | + components: { InputNumber }, | |
| 62 | 58 | props: useTabProps({ |
| 63 | 59 | defaultValue: '*', |
| 64 | 60 | props: { | ... | ... |
| 1 | 1 | <template> |
| 2 | 2 | <div :class="`${prefixCls}-config-list`"> |
| 3 | - <RadioGroup v-model:value="type"> | |
| 3 | + <a-radio-group v-model:value="type"> | |
| 4 | 4 | <div class="item"> |
| 5 | - <Radio :value="TypeEnum.every" v-bind="beforeRadioAttrs">每时</Radio> | |
| 5 | + <a-radio :value="TypeEnum.every" v-bind="beforeRadioAttrs">每时</a-radio> | |
| 6 | 6 | </div> |
| 7 | 7 | <div class="item"> |
| 8 | - <Radio :value="TypeEnum.range" v-bind="beforeRadioAttrs">区间</Radio> | |
| 8 | + <a-radio :value="TypeEnum.range" v-bind="beforeRadioAttrs">区间</a-radio> | |
| 9 | 9 | <span> 从 </span> |
| 10 | 10 | <InputNumber v-model:value="valueRange.start" v-bind="typeRangeAttrs" /> |
| 11 | 11 | <span> 时 至 </span> |
| ... | ... | @@ -13,7 +13,7 @@ |
| 13 | 13 | <span> 时 </span> |
| 14 | 14 | </div> |
| 15 | 15 | <div class="item"> |
| 16 | - <Radio :value="TypeEnum.loop" v-bind="beforeRadioAttrs">循环</Radio> | |
| 16 | + <a-radio :value="TypeEnum.loop" v-bind="beforeRadioAttrs">循环</a-radio> | |
| 17 | 17 | <span> 从 </span> |
| 18 | 18 | <InputNumber v-model:value="valueLoop.start" v-bind="typeLoopAttrs" /> |
| 19 | 19 | <span> 时开始,间隔 </span> |
| ... | ... | @@ -21,16 +21,16 @@ |
| 21 | 21 | <span> 时 </span> |
| 22 | 22 | </div> |
| 23 | 23 | <div class="item"> |
| 24 | - <Radio :value="TypeEnum.specify" v-bind="beforeRadioAttrs">指定</Radio> | |
| 24 | + <a-radio :value="TypeEnum.specify" v-bind="beforeRadioAttrs">指定</a-radio> | |
| 25 | 25 | <div class="list"> |
| 26 | - <CheckboxGroup v-model:value="valueList"> | |
| 26 | + <a-checkbox-group v-model:value="valueList"> | |
| 27 | 27 | <template v-for="i in specifyRange" :key="i"> |
| 28 | - <Checkbox :value="i" v-bind="typeSpecifyAttrs">{{ i }}</Checkbox> | |
| 28 | + <a-checkbox :value="i" v-bind="typeSpecifyAttrs">{{ i }}</a-checkbox> | |
| 29 | 29 | </template> |
| 30 | - </CheckboxGroup> | |
| 30 | + </a-checkbox-group> | |
| 31 | 31 | </div> |
| 32 | 32 | </div> |
| 33 | - </RadioGroup> | |
| 33 | + </a-radio-group> | |
| 34 | 34 | </div> |
| 35 | 35 | </template> |
| 36 | 36 | |
| ... | ... | @@ -38,13 +38,10 @@ |
| 38 | 38 | import { defineComponent } from 'vue'; |
| 39 | 39 | import { InputNumber } from 'ant-design-vue'; |
| 40 | 40 | import { useTabProps, useTabEmits, useTabSetup } from './useTabMixin'; |
| 41 | - import { Radio, Checkbox } from 'ant-design-vue'; | |
| 42 | - const { CheckboxGroup } = Checkbox; | |
| 43 | - const { RadioGroup } = Radio; | |
| 44 | 41 | |
| 45 | 42 | export default defineComponent({ |
| 46 | 43 | name: 'HourUI', |
| 47 | - components: { InputNumber, RadioGroup, Radio, CheckboxGroup, Checkbox }, | |
| 44 | + components: { InputNumber }, | |
| 48 | 45 | props: useTabProps({ |
| 49 | 46 | defaultValue: '*', |
| 50 | 47 | }), | ... | ... |
| 1 | 1 | <template> |
| 2 | 2 | <div :class="`${prefixCls}-config-list`"> |
| 3 | - <RadioGroup v-model:value="type"> | |
| 3 | + <a-radio-group v-model:value="type"> | |
| 4 | 4 | <div class="item"> |
| 5 | - <Radio :value="TypeEnum.every" v-bind="beforeRadioAttrs">每分</Radio> | |
| 5 | + <a-radio :value="TypeEnum.every" v-bind="beforeRadioAttrs">每分</a-radio> | |
| 6 | 6 | </div> |
| 7 | 7 | <div class="item"> |
| 8 | - <Radio :value="TypeEnum.range" v-bind="beforeRadioAttrs">区间</Radio> | |
| 8 | + <a-radio :value="TypeEnum.range" v-bind="beforeRadioAttrs">区间</a-radio> | |
| 9 | 9 | <span> 从 </span> |
| 10 | 10 | <InputNumber v-model:value="valueRange.start" v-bind="typeRangeAttrs" /> |
| 11 | 11 | <span> 分 至 </span> |
| ... | ... | @@ -13,7 +13,7 @@ |
| 13 | 13 | <span> 分 </span> |
| 14 | 14 | </div> |
| 15 | 15 | <div class="item"> |
| 16 | - <Radio :value="TypeEnum.loop" v-bind="beforeRadioAttrs">循环</Radio> | |
| 16 | + <a-radio :value="TypeEnum.loop" v-bind="beforeRadioAttrs">循环</a-radio> | |
| 17 | 17 | <span> 从 </span> |
| 18 | 18 | <InputNumber v-model:value="valueLoop.start" v-bind="typeLoopAttrs" /> |
| 19 | 19 | <span> 分开始,间隔 </span> |
| ... | ... | @@ -21,16 +21,16 @@ |
| 21 | 21 | <span> 分 </span> |
| 22 | 22 | </div> |
| 23 | 23 | <div class="item"> |
| 24 | - <Radio :value="TypeEnum.specify" v-bind="beforeRadioAttrs">指定</Radio> | |
| 24 | + <a-radio :value="TypeEnum.specify" v-bind="beforeRadioAttrs">指定</a-radio> | |
| 25 | 25 | <div class="list"> |
| 26 | - <CheckboxGroup v-model:value="valueList"> | |
| 26 | + <a-checkbox-group v-model:value="valueList"> | |
| 27 | 27 | <template v-for="i in specifyRange" :key="i"> |
| 28 | - <Checkbox :value="i" v-bind="typeSpecifyAttrs">{{ i }}</Checkbox> | |
| 28 | + <a-checkbox :value="i" v-bind="typeSpecifyAttrs">{{ i }}</a-checkbox> | |
| 29 | 29 | </template> |
| 30 | - </CheckboxGroup> | |
| 30 | + </a-checkbox-group> | |
| 31 | 31 | </div> |
| 32 | 32 | </div> |
| 33 | - </RadioGroup> | |
| 33 | + </a-radio-group> | |
| 34 | 34 | </div> |
| 35 | 35 | </template> |
| 36 | 36 | |
| ... | ... | @@ -38,13 +38,10 @@ |
| 38 | 38 | import { defineComponent } from 'vue'; |
| 39 | 39 | import { InputNumber } from 'ant-design-vue'; |
| 40 | 40 | import { useTabProps, useTabEmits, useTabSetup } from './useTabMixin'; |
| 41 | - import { Checkbox, Radio } from 'ant-design-vue'; | |
| 42 | - const { CheckboxGroup } = Checkbox; | |
| 43 | - const { RadioGroup } = Radio; | |
| 44 | 41 | |
| 45 | 42 | export default defineComponent({ |
| 46 | 43 | name: 'MinuteUI', |
| 47 | - components: { InputNumber, RadioGroup, Radio, CheckboxGroup, Checkbox }, | |
| 44 | + components: { InputNumber }, | |
| 48 | 45 | props: useTabProps({ |
| 49 | 46 | defaultValue: '*', |
| 50 | 47 | }), | ... | ... |
| 1 | 1 | <template> |
| 2 | 2 | <div :class="`${prefixCls}-config-list`"> |
| 3 | - <RadioGroup v-model:value="type"> | |
| 3 | + <a-radio-group v-model:value="type"> | |
| 4 | 4 | <div class="item"> |
| 5 | - <Radio :value="TypeEnum.every" v-bind="beforeRadioAttrs">每月</Radio> | |
| 5 | + <a-radio :value="TypeEnum.every" v-bind="beforeRadioAttrs">每月</a-radio> | |
| 6 | 6 | </div> |
| 7 | 7 | <div class="item"> |
| 8 | - <Radio :value="TypeEnum.range" v-bind="beforeRadioAttrs">区间</Radio> | |
| 8 | + <a-radio :value="TypeEnum.range" v-bind="beforeRadioAttrs">区间</a-radio> | |
| 9 | 9 | <span> 从 </span> |
| 10 | 10 | <InputNumber v-model:value="valueRange.start" v-bind="typeRangeAttrs" /> |
| 11 | 11 | <span> 月 至 </span> |
| ... | ... | @@ -13,7 +13,7 @@ |
| 13 | 13 | <span> 月 </span> |
| 14 | 14 | </div> |
| 15 | 15 | <div class="item"> |
| 16 | - <Radio :value="TypeEnum.loop" v-bind="beforeRadioAttrs">循环</Radio> | |
| 16 | + <a-radio :value="TypeEnum.loop" v-bind="beforeRadioAttrs">循环</a-radio> | |
| 17 | 17 | <span> 从 </span> |
| 18 | 18 | <InputNumber v-model:value="valueLoop.start" v-bind="typeLoopAttrs" /> |
| 19 | 19 | <span> 月开始,间隔 </span> |
| ... | ... | @@ -21,16 +21,16 @@ |
| 21 | 21 | <span> 月 </span> |
| 22 | 22 | </div> |
| 23 | 23 | <div class="item"> |
| 24 | - <Radio :value="TypeEnum.specify" v-bind="beforeRadioAttrs">指定</Radio> | |
| 24 | + <a-radio :value="TypeEnum.specify" v-bind="beforeRadioAttrs">指定</a-radio> | |
| 25 | 25 | <div class="list"> |
| 26 | - <CheckboxGroup v-model:value="valueList"> | |
| 26 | + <a-checkbox-group v-model:value="valueList"> | |
| 27 | 27 | <template v-for="i in specifyRange" :key="i"> |
| 28 | - <Checkbox :value="i" v-bind="typeSpecifyAttrs">{{ i }}</Checkbox> | |
| 28 | + <a-checkbox :value="i" v-bind="typeSpecifyAttrs">{{ i }}</a-checkbox> | |
| 29 | 29 | </template> |
| 30 | - </CheckboxGroup> | |
| 30 | + </a-checkbox-group> | |
| 31 | 31 | </div> |
| 32 | 32 | </div> |
| 33 | - </RadioGroup> | |
| 33 | + </a-radio-group> | |
| 34 | 34 | </div> |
| 35 | 35 | </template> |
| 36 | 36 | |
| ... | ... | @@ -38,13 +38,10 @@ |
| 38 | 38 | import { defineComponent } from 'vue'; |
| 39 | 39 | import { InputNumber } from 'ant-design-vue'; |
| 40 | 40 | import { useTabProps, useTabEmits, useTabSetup } from './useTabMixin'; |
| 41 | - import { Checkbox, Radio } from 'ant-design-vue'; | |
| 42 | - const { CheckboxGroup } = Checkbox; | |
| 43 | - const { RadioGroup } = Radio; | |
| 44 | 41 | |
| 45 | 42 | export default defineComponent({ |
| 46 | 43 | name: 'MonthUI', |
| 47 | - components: { InputNumber, RadioGroup, Radio, CheckboxGroup, Checkbox }, | |
| 44 | + components: { InputNumber }, | |
| 48 | 45 | props: useTabProps({ |
| 49 | 46 | defaultValue: '*', |
| 50 | 47 | }), | ... | ... |
| 1 | 1 | <template> |
| 2 | 2 | <div :class="`${prefixCls}-config-list`"> |
| 3 | - <RadioGroup v-model:value="type"> | |
| 3 | + <a-radio-group v-model:value="type"> | |
| 4 | 4 | <div class="item"> |
| 5 | - <Radio :value="TypeEnum.every" v-bind="beforeRadioAttrs">每秒</Radio> | |
| 5 | + <a-radio :value="TypeEnum.every" v-bind="beforeRadioAttrs">每秒</a-radio> | |
| 6 | 6 | </div> |
| 7 | 7 | <div class="item"> |
| 8 | - <Radio :value="TypeEnum.range" v-bind="beforeRadioAttrs">区间</Radio> | |
| 8 | + <a-radio :value="TypeEnum.range" v-bind="beforeRadioAttrs">区间</a-radio> | |
| 9 | 9 | <span> 从 </span> |
| 10 | 10 | <InputNumber v-model:value="valueRange.start" v-bind="typeRangeAttrs" /> |
| 11 | 11 | <span> 秒 至 </span> |
| ... | ... | @@ -13,7 +13,7 @@ |
| 13 | 13 | <span> 秒 </span> |
| 14 | 14 | </div> |
| 15 | 15 | <div class="item"> |
| 16 | - <Radio :value="TypeEnum.loop" v-bind="beforeRadioAttrs">循环</Radio> | |
| 16 | + <a-radio :value="TypeEnum.loop" v-bind="beforeRadioAttrs">循环</a-radio> | |
| 17 | 17 | <span> 从 </span> |
| 18 | 18 | <InputNumber v-model:value="valueLoop.start" v-bind="typeLoopAttrs" /> |
| 19 | 19 | <span> 秒开始,间隔 </span> |
| ... | ... | @@ -21,16 +21,16 @@ |
| 21 | 21 | <span> 秒 </span> |
| 22 | 22 | </div> |
| 23 | 23 | <div class="item"> |
| 24 | - <Radio :value="TypeEnum.specify" v-bind="beforeRadioAttrs">指定</Radio> | |
| 24 | + <a-radio :value="TypeEnum.specify" v-bind="beforeRadioAttrs">指定</a-radio> | |
| 25 | 25 | <div class="list"> |
| 26 | - <CheckboxGroup v-model:value="valueList"> | |
| 26 | + <a-checkbox-group v-model:value="valueList"> | |
| 27 | 27 | <template v-for="i in specifyRange" :key="i"> |
| 28 | - <Checkbox :value="i" v-bind="typeSpecifyAttrs">{{ i }}</Checkbox> | |
| 28 | + <a-checkbox :value="i" v-bind="typeSpecifyAttrs">{{ i }}</a-checkbox> | |
| 29 | 29 | </template> |
| 30 | - </CheckboxGroup> | |
| 30 | + </a-checkbox-group> | |
| 31 | 31 | </div> |
| 32 | 32 | </div> |
| 33 | - </RadioGroup> | |
| 33 | + </a-radio-group> | |
| 34 | 34 | </div> |
| 35 | 35 | </template> |
| 36 | 36 | |
| ... | ... | @@ -38,13 +38,10 @@ |
| 38 | 38 | import { defineComponent } from 'vue'; |
| 39 | 39 | import { InputNumber } from 'ant-design-vue'; |
| 40 | 40 | import { useTabProps, useTabEmits, useTabSetup } from './useTabMixin'; |
| 41 | - import { Radio, Checkbox } from 'ant-design-vue'; | |
| 42 | - const { CheckboxGroup } = Checkbox; | |
| 43 | - const { RadioGroup } = Radio; | |
| 44 | 41 | |
| 45 | 42 | export default defineComponent({ |
| 46 | 43 | name: 'SecondUI', |
| 47 | - components: { InputNumber, RadioGroup, Radio, CheckboxGroup, Checkbox }, | |
| 44 | + components: { InputNumber }, | |
| 48 | 45 | props: useTabProps({ |
| 49 | 46 | defaultValue: '*', |
| 50 | 47 | }), | ... | ... |
| 1 | 1 | <template> |
| 2 | 2 | <div :class="`${prefixCls}-config-list`"> |
| 3 | - <RadioGroup v-model:value="type"> | |
| 3 | + <a-radio-group v-model:value="type"> | |
| 4 | 4 | <div class="item"> |
| 5 | - <Radio :value="TypeEnum.unset" v-bind="beforeRadioAttrs">不设置</Radio> | |
| 5 | + <a-radio :value="TypeEnum.unset" v-bind="beforeRadioAttrs">不设置</a-radio> | |
| 6 | 6 | <span class="tip-info">日和周只能设置其中之一</span> |
| 7 | 7 | </div> |
| 8 | 8 | <div class="item"> |
| 9 | - <Radio :value="TypeEnum.range" v-bind="beforeRadioAttrs">区间</Radio> | |
| 9 | + <a-radio :value="TypeEnum.range" v-bind="beforeRadioAttrs">区间</a-radio> | |
| 10 | 10 | <span> 从 </span> |
| 11 | 11 | <a-select |
| 12 | 12 | v-model:value="valueRange.start" |
| ... | ... | @@ -21,7 +21,7 @@ |
| 21 | 21 | /> |
| 22 | 22 | </div> |
| 23 | 23 | <div class="item"> |
| 24 | - <Radio :value="TypeEnum.loop" v-bind="beforeRadioAttrs">循环</Radio> | |
| 24 | + <a-radio :value="TypeEnum.loop" v-bind="beforeRadioAttrs">循环</a-radio> | |
| 25 | 25 | <span> 从 </span> |
| 26 | 26 | <a-select |
| 27 | 27 | v-model:value="valueLoop.start" |
| ... | ... | @@ -33,16 +33,16 @@ |
| 33 | 33 | <span> 天 </span> |
| 34 | 34 | </div> |
| 35 | 35 | <div class="item"> |
| 36 | - <Radio :value="TypeEnum.specify" v-bind="beforeRadioAttrs">指定</Radio> | |
| 36 | + <a-radio :value="TypeEnum.specify" v-bind="beforeRadioAttrs">指定</a-radio> | |
| 37 | 37 | <div class="list list-cn"> |
| 38 | - <CheckboxGroup v-model:value="valueList"> | |
| 38 | + <a-checkbox-group v-model:value="valueList"> | |
| 39 | 39 | <template v-for="opt in weekOptions" :key="i"> |
| 40 | - <Checkbox :value="opt.value" v-bind="typeSpecifyAttrs">{{ opt.label }}</Checkbox> | |
| 40 | + <a-checkbox :value="opt.value" v-bind="typeSpecifyAttrs">{{ opt.label }}</a-checkbox> | |
| 41 | 41 | </template> |
| 42 | - </CheckboxGroup> | |
| 42 | + </a-checkbox-group> | |
| 43 | 43 | </div> |
| 44 | 44 | </div> |
| 45 | - </RadioGroup> | |
| 45 | + </a-radio-group> | |
| 46 | 46 | </div> |
| 47 | 47 | </template> |
| 48 | 48 | |
| ... | ... | @@ -50,9 +50,6 @@ |
| 50 | 50 | import { computed, watch, defineComponent } from 'vue'; |
| 51 | 51 | import { InputNumber } from 'ant-design-vue'; |
| 52 | 52 | import { useTabProps, useTabEmits, useTabSetup, TypeEnum } from './useTabMixin'; |
| 53 | - import { Checkbox, Radio } from 'ant-design-vue'; | |
| 54 | - const { CheckboxGroup } = Checkbox; | |
| 55 | - const { RadioGroup } = Radio; | |
| 56 | 53 | |
| 57 | 54 | const WEEK_MAP_EN = { |
| 58 | 55 | '1': 'SUN', |
| ... | ... | @@ -76,7 +73,7 @@ |
| 76 | 73 | |
| 77 | 74 | export default defineComponent({ |
| 78 | 75 | name: 'WeekUI', |
| 79 | - components: { InputNumber, RadioGroup, Radio, CheckboxGroup, Checkbox }, | |
| 76 | + components: { InputNumber }, | |
| 80 | 77 | props: useTabProps({ |
| 81 | 78 | defaultValue: '?', |
| 82 | 79 | props: { | ... | ... |
| 1 | 1 | <template> |
| 2 | 2 | <div :class="`${prefixCls}-config-list`"> |
| 3 | - <RadioGroup v-model:value="type"> | |
| 3 | + <a-radio-group v-model:value="type"> | |
| 4 | 4 | <div class="item"> |
| 5 | - <Radio :value="TypeEnum.every" v-bind="beforeRadioAttrs">每年</Radio> | |
| 5 | + <a-radio :value="TypeEnum.every" v-bind="beforeRadioAttrs">每年</a-radio> | |
| 6 | 6 | </div> |
| 7 | 7 | <div class="item"> |
| 8 | - <Radio :value="TypeEnum.range" v-bind="beforeRadioAttrs">区间</Radio> | |
| 8 | + <a-radio :value="TypeEnum.range" v-bind="beforeRadioAttrs">区间</a-radio> | |
| 9 | 9 | <span> 从 </span> |
| 10 | 10 | <InputNumber class="w80" v-model:value="valueRange.start" v-bind="typeRangeAttrs" /> |
| 11 | 11 | <span> 年 至 </span> |
| ... | ... | @@ -13,14 +13,14 @@ |
| 13 | 13 | <span> 年 </span> |
| 14 | 14 | </div> |
| 15 | 15 | <div class="item"> |
| 16 | - <Radio :value="TypeEnum.loop" v-bind="beforeRadioAttrs">循环</Radio> | |
| 16 | + <a-radio :value="TypeEnum.loop" v-bind="beforeRadioAttrs">循环</a-radio> | |
| 17 | 17 | <span> 从 </span> |
| 18 | 18 | <InputNumber class="w80" v-model:value="valueLoop.start" v-bind="typeLoopAttrs" /> |
| 19 | 19 | <span> 年开始,间隔 </span> |
| 20 | 20 | <InputNumber class="w80" v-model:value="valueLoop.interval" v-bind="typeLoopAttrs" /> |
| 21 | 21 | <span> 年 </span> |
| 22 | 22 | </div> |
| 23 | - </RadioGroup> | |
| 23 | + </a-radio-group> | |
| 24 | 24 | </div> |
| 25 | 25 | </template> |
| 26 | 26 | |
| ... | ... | @@ -28,12 +28,10 @@ |
| 28 | 28 | import { defineComponent } from 'vue'; |
| 29 | 29 | import { InputNumber } from 'ant-design-vue'; |
| 30 | 30 | import { useTabProps, useTabEmits, useTabSetup } from './useTabMixin'; |
| 31 | - import { Radio } from 'ant-design-vue'; | |
| 32 | - const { RadioGroup } = Radio; | |
| 33 | 31 | |
| 34 | 32 | export default defineComponent({ |
| 35 | 33 | name: 'YearUI', |
| 36 | - components: { InputNumber, RadioGroup, Radio }, | |
| 34 | + components: { InputNumber }, | |
| 37 | 35 | props: useTabProps({ |
| 38 | 36 | defaultValue: '*', |
| 39 | 37 | }), | ... | ... |