mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-11-11 12:57:10 +08:00
feat(job): 支持可视化生成 CRON 表达式
This commit is contained in:
@@ -11,18 +11,15 @@
|
||||
|
||||
<script lang="ts" setup>
|
||||
import type { LabelValueState } from '@/types/global'
|
||||
import type { GiCellTagType } from '@/components/GiCell/type'
|
||||
|
||||
defineOptions({ name: 'GiCellTag' })
|
||||
|
||||
const props = defineProps({
|
||||
dict: {
|
||||
type: Array<LabelValueState>,
|
||||
required: true
|
||||
},
|
||||
value: {
|
||||
type: [Number, String],
|
||||
required: true
|
||||
}
|
||||
const props = withDefaults(defineProps<Partial<GiCellTagType>>(), {
|
||||
dict: [{
|
||||
label: '',
|
||||
value: ''
|
||||
}],
|
||||
value: ''
|
||||
})
|
||||
|
||||
const dictItem = computed((): LabelValueState => {
|
||||
|
||||
6
src/components/GiCell/type.ts
Normal file
6
src/components/GiCell/type.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import type { LabelValueState } from '@/types/global'
|
||||
|
||||
export interface GiCellTagType {
|
||||
dict: LabelValueState[] | any[]
|
||||
value: number | string
|
||||
}
|
||||
Reference in New Issue
Block a user