fix: crontab number input

pull/12/head
xingyu 2023-05-12 16:29:02 +08:00
parent 81d24264d5
commit 5733a2f2c9
7 changed files with 39 additions and 39 deletions

View File

@ -11,17 +11,17 @@
<div class="item"> <div class="item">
<Radio :value="TypeEnum.range" v-bind="beforeRadioAttrs"></Radio> <Radio :value="TypeEnum.range" v-bind="beforeRadioAttrs"></Radio>
<span> </span> <span> </span>
<InputNumber v-model:value="valueRange.start" v-bind="typeRangeAttrs" /> <Input type="number" v-model:value="valueRange.start" v-bind="typeRangeAttrs" />
<span> </span> <span> </span>
<InputNumber v-model:value="valueRange.end" v-bind="typeRangeAttrs" /> <Input type="number" v-model:value="valueRange.end" v-bind="typeRangeAttrs" />
<span> </span> <span> </span>
</div> </div>
<div class="item"> <div class="item">
<Radio :value="TypeEnum.loop" v-bind="beforeRadioAttrs"></Radio> <Radio :value="TypeEnum.loop" v-bind="beforeRadioAttrs"></Radio>
<span> </span> <span> </span>
<InputNumber v-model:value="valueLoop.start" class="w-4" v-bind="typeLoopAttrs" /> <Input type="number" v-model:value="valueLoop.start" class="w-4" v-bind="typeLoopAttrs" />
<span> 日开始间隔 </span> <span> 日开始间隔 </span>
<InputNumber v-model:value="valueLoop.interval" v-bind="typeLoopAttrs" /> <Input type="number" v-model:value="valueLoop.interval" v-bind="typeLoopAttrs" />
<span> </span> <span> </span>
</div> </div>
<div class="item"> <div class="item">
@ -43,12 +43,12 @@
<script lang="ts"> <script lang="ts">
import { computed, defineComponent, watch } from 'vue' import { computed, defineComponent, watch } from 'vue'
import { InputNumber, Radio, Checkbox } from 'ant-design-vue' import { Input, Radio, Checkbox } from 'ant-design-vue'
import { TypeEnum, useTabEmits, useTabProps, useTabSetup } from './useTabMixin' import { TypeEnum, useTabEmits, useTabProps, useTabSetup } from './useTabMixin'
export default defineComponent({ export default defineComponent({
name: 'DayUI', name: 'DayUI',
components: { InputNumber, Checkbox, CheckboxGroup: Checkbox.Group, Radio, RadioGroup: Radio.Group }, components: { Input, Checkbox, CheckboxGroup: Checkbox.Group, Radio, RadioGroup: Radio.Group },
props: useTabProps({ props: useTabProps({
defaultValue: '*', defaultValue: '*',
props: { props: {

View File

@ -7,17 +7,17 @@
<div class="item"> <div class="item">
<Radio :value="TypeEnum.range" v-bind="beforeRadioAttrs"></Radio> <Radio :value="TypeEnum.range" v-bind="beforeRadioAttrs"></Radio>
<span> </span> <span> </span>
<InputNumber v-model:value="valueRange.start" v-bind="typeRangeAttrs" /> <Input type="number" v-model:value="valueRange.start" v-bind="typeRangeAttrs" />
<span> </span> <span> </span>
<InputNumber v-model:value="valueRange.end" v-bind="typeRangeAttrs" /> <Input type="number" v-model:value="valueRange.end" v-bind="typeRangeAttrs" />
<span> </span> <span> </span>
</div> </div>
<div class="item"> <div class="item">
<Radio :value="TypeEnum.loop" v-bind="beforeRadioAttrs"></Radio> <Radio :value="TypeEnum.loop" v-bind="beforeRadioAttrs"></Radio>
<span> </span> <span> </span>
<InputNumber v-model:value="valueLoop.start" v-bind="typeLoopAttrs" /> <Input type="number" v-model:value="valueLoop.start" v-bind="typeLoopAttrs" />
<span> 时开始间隔 </span> <span> 时开始间隔 </span>
<InputNumber v-model:value="valueLoop.interval" v-bind="typeLoopAttrs" /> <Input type="number" v-model:value="valueLoop.interval" v-bind="typeLoopAttrs" />
<span> </span> <span> </span>
</div> </div>
<div class="item"> <div class="item">
@ -36,12 +36,12 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue' import { defineComponent } from 'vue'
import { InputNumber, Radio, Checkbox } from 'ant-design-vue' import { Input, Radio, Checkbox } from 'ant-design-vue'
import { useTabProps, useTabEmits, useTabSetup } from './useTabMixin' import { useTabProps, useTabEmits, useTabSetup } from './useTabMixin'
export default defineComponent({ export default defineComponent({
name: 'HourUI', name: 'HourUI',
components: { InputNumber, Checkbox, CheckboxGroup: Checkbox.Group, Radio, RadioGroup: Radio.Group }, components: { Input, Checkbox, CheckboxGroup: Checkbox.Group, Radio, RadioGroup: Radio.Group },
props: useTabProps({ props: useTabProps({
defaultValue: '*' defaultValue: '*'
}), }),

View File

@ -7,17 +7,17 @@
<div class="item"> <div class="item">
<Radio :value="TypeEnum.range" v-bind="beforeRadioAttrs"></Radio> <Radio :value="TypeEnum.range" v-bind="beforeRadioAttrs"></Radio>
<span> </span> <span> </span>
<InputNumber v-model:value="valueRange.start" v-bind="typeRangeAttrs" /> <Input type="number" v-model:value="valueRange.start" v-bind="typeRangeAttrs" />
<span> </span> <span> </span>
<InputNumber v-model:value="valueRange.end" v-bind="typeRangeAttrs" /> <Input type="number" v-model:value="valueRange.end" v-bind="typeRangeAttrs" />
<span> </span> <span> </span>
</div> </div>
<div class="item"> <div class="item">
<Radio :value="TypeEnum.loop" v-bind="beforeRadioAttrs"></Radio> <Radio :value="TypeEnum.loop" v-bind="beforeRadioAttrs"></Radio>
<span> </span> <span> </span>
<InputNumber v-model:value="valueLoop.start" v-bind="typeLoopAttrs" /> <Input type="number" v-model:value="valueLoop.start" v-bind="typeLoopAttrs" />
<span> 分开始间隔 </span> <span> 分开始间隔 </span>
<InputNumber v-model:value="valueLoop.interval" v-bind="typeLoopAttrs" /> <Input type="number" v-model:value="valueLoop.interval" v-bind="typeLoopAttrs" />
<span> </span> <span> </span>
</div> </div>
<div class="item"> <div class="item">
@ -36,12 +36,12 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue' import { defineComponent } from 'vue'
import { InputNumber, Radio, Checkbox } from 'ant-design-vue' import { Input, Radio, Checkbox } from 'ant-design-vue'
import { useTabProps, useTabEmits, useTabSetup } from './useTabMixin' import { useTabProps, useTabEmits, useTabSetup } from './useTabMixin'
export default defineComponent({ export default defineComponent({
name: 'MinuteUI', name: 'MinuteUI',
components: { InputNumber, Checkbox, CheckboxGroup: Checkbox.Group, Radio, RadioGroup: Radio.Group }, components: { Input, Checkbox, CheckboxGroup: Checkbox.Group, Radio, RadioGroup: Radio.Group },
props: useTabProps({ props: useTabProps({
defaultValue: '*' defaultValue: '*'
}), }),

View File

@ -7,17 +7,17 @@
<div class="item"> <div class="item">
<Radio :value="TypeEnum.range" v-bind="beforeRadioAttrs"></Radio> <Radio :value="TypeEnum.range" v-bind="beforeRadioAttrs"></Radio>
<span> </span> <span> </span>
<InputNumber v-model:value="valueRange.start" v-bind="typeRangeAttrs" /> <Input type="number" v-model:value="valueRange.start" v-bind="typeRangeAttrs" />
<span> </span> <span> </span>
<InputNumber v-model:value="valueRange.end" v-bind="typeRangeAttrs" /> <Input type="number" v-model:value="valueRange.end" v-bind="typeRangeAttrs" />
<span> </span> <span> </span>
</div> </div>
<div class="item"> <div class="item">
<Radio :value="TypeEnum.loop" v-bind="beforeRadioAttrs"></Radio> <Radio :value="TypeEnum.loop" v-bind="beforeRadioAttrs"></Radio>
<span> </span> <span> </span>
<InputNumber v-model:value="valueLoop.start" v-bind="typeLoopAttrs" /> <Input type="number" v-model:value="valueLoop.start" v-bind="typeLoopAttrs" />
<span> 月开始间隔 </span> <span> 月开始间隔 </span>
<InputNumber v-model:value="valueLoop.interval" v-bind="typeLoopAttrs" /> <Input type="number" v-model:value="valueLoop.interval" v-bind="typeLoopAttrs" />
<span> </span> <span> </span>
</div> </div>
<div class="item"> <div class="item">
@ -36,12 +36,12 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue' import { defineComponent } from 'vue'
import { InputNumber, Radio, Checkbox } from 'ant-design-vue' import { Input, Radio, Checkbox } from 'ant-design-vue'
import { useTabProps, useTabEmits, useTabSetup } from './useTabMixin' import { useTabProps, useTabEmits, useTabSetup } from './useTabMixin'
export default defineComponent({ export default defineComponent({
name: 'MonthUI', name: 'MonthUI',
components: { InputNumber, Checkbox, CheckboxGroup: Checkbox.Group, Radio, RadioGroup: Radio.Group }, components: { Input, Checkbox, CheckboxGroup: Checkbox.Group, Radio, RadioGroup: Radio.Group },
props: useTabProps({ props: useTabProps({
defaultValue: '*' defaultValue: '*'
}), }),

View File

@ -7,17 +7,17 @@
<div class="item"> <div class="item">
<Radio :value="TypeEnum.range" v-bind="beforeRadioAttrs"></Radio> <Radio :value="TypeEnum.range" v-bind="beforeRadioAttrs"></Radio>
<span> </span> <span> </span>
<InputNumber v-model:value="valueRange.start" v-bind="typeRangeAttrs" /> <Input type="number" v-model:value="valueRange.start" v-bind="typeRangeAttrs" />
<span> </span> <span> </span>
<InputNumber v-model:value="valueRange.end" v-bind="typeRangeAttrs" /> <Input type="number" v-model:value="valueRange.end" v-bind="typeRangeAttrs" />
<span> </span> <span> </span>
</div> </div>
<div class="item"> <div class="item">
<Radio :value="TypeEnum.loop" v-bind="beforeRadioAttrs"></Radio> <Radio :value="TypeEnum.loop" v-bind="beforeRadioAttrs"></Radio>
<span> </span> <span> </span>
<InputNumber v-model:value="valueLoop.start" v-bind="typeLoopAttrs" /> <Input type="number" v-model:value="valueLoop.start" v-bind="typeLoopAttrs" />
<span> 秒开始间隔 </span> <span> 秒开始间隔 </span>
<InputNumber v-model:value="valueLoop.interval" v-bind="typeLoopAttrs" /> <Input type="number" v-model:value="valueLoop.interval" v-bind="typeLoopAttrs" />
<span> </span> <span> </span>
</div> </div>
<div class="item"> <div class="item">
@ -36,12 +36,12 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue' import { defineComponent } from 'vue'
import { InputNumber, Radio, Checkbox } from 'ant-design-vue' import { Input, Radio, Checkbox } from 'ant-design-vue'
import { useTabProps, useTabEmits, useTabSetup } from './useTabMixin' import { useTabProps, useTabEmits, useTabSetup } from './useTabMixin'
export default defineComponent({ export default defineComponent({
name: 'SecondUI', name: 'SecondUI',
components: { InputNumber, Checkbox, CheckboxGroup: Checkbox.Group, Radio, RadioGroup: Radio.Group }, components: { Input, Checkbox, CheckboxGroup: Checkbox.Group, Radio, RadioGroup: Radio.Group },
props: useTabProps({ props: useTabProps({
defaultValue: '*' defaultValue: '*'
}), }),

View File

@ -17,7 +17,7 @@
<span> </span> <span> </span>
<Select v-model:value="valueLoop.start" :options="weekOptions" v-bind="typeLoopSelectAttrs" /> <Select v-model:value="valueLoop.start" :options="weekOptions" v-bind="typeLoopSelectAttrs" />
<span> 开始间隔 </span> <span> 开始间隔 </span>
<InputNumber v-model:value="valueLoop.interval" v-bind="typeLoopAttrs" /> <Input type="number" v-model:value="valueLoop.interval" v-bind="typeLoopAttrs" />
<span> </span> <span> </span>
</div> </div>
<div class="item"> <div class="item">
@ -36,7 +36,7 @@
<script lang="ts"> <script lang="ts">
import { computed, watch, defineComponent } from 'vue' import { computed, watch, defineComponent } from 'vue'
import { InputNumber, Radio, Checkbox, Select } from 'ant-design-vue' import { Input, Radio, Checkbox, Select } from 'ant-design-vue'
import { useTabProps, useTabEmits, useTabSetup, TypeEnum } from './useTabMixin' import { useTabProps, useTabEmits, useTabSetup, TypeEnum } from './useTabMixin'
const WEEK_MAP_EN = { const WEEK_MAP_EN = {
@ -61,7 +61,7 @@ const WEEK_MAP_CN = {
export default defineComponent({ export default defineComponent({
name: 'WeekUI', name: 'WeekUI',
components: { InputNumber, Select, Checkbox, CheckboxGroup: Checkbox.Group, Radio, RadioGroup: Radio.Group }, components: { Input, Select, Checkbox, CheckboxGroup: Checkbox.Group, Radio, RadioGroup: Radio.Group },
props: useTabProps({ props: useTabProps({
defaultValue: '?', defaultValue: '?',
props: { props: {

View File

@ -7,17 +7,17 @@
<div class="item"> <div class="item">
<Radio :value="TypeEnum.range" v-bind="beforeRadioAttrs"></Radio> <Radio :value="TypeEnum.range" v-bind="beforeRadioAttrs"></Radio>
<span> </span> <span> </span>
<InputNumber class="w80" v-model:value="valueRange.start" v-bind="typeRangeAttrs" /> <Input type="number" class="w80" v-model:value="valueRange.start" v-bind="typeRangeAttrs" />
<span> </span> <span> </span>
<InputNumber class="w80" v-model:value="valueRange.end" v-bind="typeRangeAttrs" /> <Input type="number" class="w80" v-model:value="valueRange.end" v-bind="typeRangeAttrs" />
<span> </span> <span> </span>
</div> </div>
<div class="item"> <div class="item">
<Radio :value="TypeEnum.loop" v-bind="beforeRadioAttrs"></Radio> <Radio :value="TypeEnum.loop" v-bind="beforeRadioAttrs"></Radio>
<span> </span> <span> </span>
<InputNumber class="w80" v-model:value="valueLoop.start" v-bind="typeLoopAttrs" /> <Input type="number" class="w80" v-model:value="valueLoop.start" v-bind="typeLoopAttrs" />
<span> 年开始间隔 </span> <span> 年开始间隔 </span>
<InputNumber class="w80" v-model:value="valueLoop.interval" v-bind="typeLoopAttrs" /> <Input type="number" class="w80" v-model:value="valueLoop.interval" v-bind="typeLoopAttrs" />
<span> </span> <span> </span>
</div> </div>
</RadioGroup> </RadioGroup>
@ -26,12 +26,12 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue' import { defineComponent } from 'vue'
import { InputNumber, Radio } from 'ant-design-vue' import { Input, Radio } from 'ant-design-vue'
import { useTabProps, useTabEmits, useTabSetup } from './useTabMixin' import { useTabProps, useTabEmits, useTabSetup } from './useTabMixin'
export default defineComponent({ export default defineComponent({
name: 'YearUI', name: 'YearUI',
components: { InputNumber, Radio, RadioGroup: Radio.Group }, components: { Input, Radio, RadioGroup: Radio.Group },
props: useTabProps({ props: useTabProps({
defaultValue: '*' defaultValue: '*'
}), }),