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