24282 11 meses atrás
pai
commit
71b74f7cd0

+ 2 - 1
jy-ui/src/components/AForm/ACheckbox.vue

@@ -10,11 +10,12 @@ const props = withDefaults(
     {
       modelValue: CheckboxGroupValueType | undefined | null
       style?: StrAnyObj
-      disabled: boolean
+      disabled?: boolean
       change?: (value: any) => void
     } & FormOptionType
   >(),
   {
+    disabled: false,
     autoLoadOption: true,
     keyName: 'key',
     labelName: 'label',

+ 6 - 3
jy-ui/src/components/AForm/ADatePicker.vue

@@ -14,9 +14,9 @@ const props = withDefaults(
     >
     style?: StrAnyObj
     placeholder: string
-    clearable: boolean
-    disabled: boolean
-    readonly: boolean
+    clearable?: boolean
+    disabled?: boolean
+    readonly?: boolean
     // 显示类型
     type?:
       | 'year'
@@ -57,6 +57,9 @@ const props = withDefaults(
     change?: (value: any) => void
   }>(),
   {
+    clearable: true,
+    disabled: false,
+    readonly: false,
     type: 'date',
     format: 'YYYY-MM-DD',
     valueFormat: 'YYYY-MM-DD HH:mm:ss',

+ 8 - 4
jy-ui/src/components/AForm/AInput.vue

@@ -13,9 +13,9 @@ const props = withDefaults(
     >
     style?: StrAnyObj
     placeholder: string
-    clearable: boolean
-    disabled: boolean
-    readonly: boolean
+    clearable?: boolean
+    disabled?: boolean
+    readonly?: boolean
     type?: 'text' | 'textarea' | 'password'
     maxlength?: number
     minlength?: number
@@ -26,7 +26,11 @@ const props = withDefaults(
     resize?: 'none' | 'both' | 'horizontal' | 'vertical'
     change?: (value: any) => void
   }>(),
-  {}
+  {
+    clearable: true,
+    disabled: false,
+    readonly: false
+  }
 )
 
 const emits = defineEmits(['update:modelValue'])

+ 6 - 3
jy-ui/src/components/AForm/AInputNumber.vue

@@ -6,8 +6,8 @@ const props = withDefaults(
     modelValue: number | undefined
     style?: StrAnyObj
     placeholder: string
-    disabled: boolean
-    readonly: boolean
+    disabled?: boolean
+    readonly?: boolean
     min?: number
     max?: number
     precision?: number
@@ -17,7 +17,10 @@ const props = withDefaults(
     valueOnClear?: number | null | 'min' | 'max'
     change?: (value: any) => void
   }>(),
-  {}
+  {
+    disabled: false,
+    readonly: false
+  }
 )
 
 const emits = defineEmits(['update:modelValue'])

+ 2 - 1
jy-ui/src/components/AForm/ARadio.vue

@@ -14,11 +14,12 @@ const props = withDefaults(
         unknown
       >
       style?: StrAnyObj
-      disabled: boolean
+      disabled?: boolean
       change?: (value: any) => void
     } & FormOptionType
   >(),
   {
+    disabled: false,
     autoLoadOption: true,
     keyName: 'key',
     labelName: 'label',

+ 5 - 3
jy-ui/src/components/AForm/ASelect.vue

@@ -20,15 +20,17 @@ const props = withDefaults(
         unknown
       >
       style?: StrAnyObj
-      placeholder: string
-      clearable: boolean
-      disabled: boolean
+      placeholder?: string
+      clearable?: boolean
+      disabled?: boolean
       filterable?: boolean
       multiple?: boolean
       change?: (value: any) => void
     } & FormOptionType
   >(),
   {
+    clearable: true,
+    disabled: false,
     filterable: true,
     multiple: false,
     autoLoadOption: true,