Commit f606bfb12b015ab9cbaf9039ec733f838fb26b2d
1 parent
2de05a87
fix: inputnumber
Showing
3 changed files
with
11 additions
and
6 deletions
yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/views/data.ts.vm
| @@ -41,7 +41,6 @@ const crudSchemas = reactive<VxeCrudSchema>({ | @@ -41,7 +41,6 @@ const crudSchemas = reactive<VxeCrudSchema>({ | ||
| 41 | #elseif(!("" != $column.dictType)) | 41 | #elseif(!("" != $column.dictType)) |
| 42 | #if ($column.htmlType == "datetime")## 时间框 | 42 | #if ($column.htmlType == "datetime")## 时间框 |
| 43 | form: { | 43 | form: { |
| 44 | - show: true, | ||
| 45 | component: 'DatePicker', | 44 | component: 'DatePicker', |
| 46 | componentProps: { | 45 | componentProps: { |
| 47 | type: 'datetime', | 46 | type: 'datetime', |
| @@ -50,7 +49,6 @@ const crudSchemas = reactive<VxeCrudSchema>({ | @@ -50,7 +49,6 @@ const crudSchemas = reactive<VxeCrudSchema>({ | ||
| 50 | }, | 49 | }, |
| 51 | #elseif($column.htmlType == "editor")## 文本编辑器 | 50 | #elseif($column.htmlType == "editor")## 文本编辑器 |
| 52 | form: { | 51 | form: { |
| 53 | - show: true, | ||
| 54 | component: 'Editor', | 52 | component: 'Editor', |
| 55 | colProps: { | 53 | colProps: { |
| 56 | span: 24 | 54 | span: 24 |
| @@ -61,7 +59,6 @@ const crudSchemas = reactive<VxeCrudSchema>({ | @@ -61,7 +59,6 @@ const crudSchemas = reactive<VxeCrudSchema>({ | ||
| 61 | }, | 59 | }, |
| 62 | #elseif($column.htmlType == "textarea")## 文本框 | 60 | #elseif($column.htmlType == "textarea")## 文本框 |
| 63 | form: { | 61 | form: { |
| 64 | - show: true, | ||
| 65 | component: 'Input', | 62 | component: 'Input', |
| 66 | componentProps: { | 63 | componentProps: { |
| 67 | type: 'textarea', | 64 | type: 'textarea', |
| @@ -71,6 +68,11 @@ const crudSchemas = reactive<VxeCrudSchema>({ | @@ -71,6 +68,11 @@ const crudSchemas = reactive<VxeCrudSchema>({ | ||
| 71 | span: 24 | 68 | span: 24 |
| 72 | } | 69 | } |
| 73 | }, | 70 | }, |
| 71 | + #elseif(${column.javaType.toLowerCase()} == "long" || ${column.javaType.toLowerCase()} == "integer")## 数字类型 | ||
| 72 | + form: { | ||
| 73 | + component: 'InputNumber', | ||
| 74 | + value: 0 | ||
| 75 | + }, | ||
| 74 | #end | 76 | #end |
| 75 | #end | 77 | #end |
| 76 | #if ($column.listOperationResult) | 78 | #if ($column.listOperationResult) |
yudao-ui-admin-vue3/src/views/Profile/components/BasicInfo.vue
| @@ -62,7 +62,8 @@ const schema = reactive<FormSchema[]>([ | @@ -62,7 +62,8 @@ const schema = reactive<FormSchema[]>([ | ||
| 62 | { | 62 | { |
| 63 | field: 'sex', | 63 | field: 'sex', |
| 64 | label: t('profile.user.sex'), | 64 | label: t('profile.user.sex'), |
| 65 | - component: 'InputNumber' | 65 | + component: 'InputNumber', |
| 66 | + value: 0 | ||
| 66 | } | 67 | } |
| 67 | ]) | 68 | ]) |
| 68 | const sexVlue = ref<number>() | 69 | const sexVlue = ref<number>() |
yudao-ui-admin-vue3/src/views/system/oauth2/client/client.data.ts
| @@ -52,7 +52,8 @@ const crudSchemas = reactive<VxeCrudSchema>({ | @@ -52,7 +52,8 @@ const crudSchemas = reactive<VxeCrudSchema>({ | ||
| 52 | title: '访问令牌的有效期', | 52 | title: '访问令牌的有效期', |
| 53 | field: 'accessTokenValiditySeconds', | 53 | field: 'accessTokenValiditySeconds', |
| 54 | form: { | 54 | form: { |
| 55 | - component: 'InputNumber' | 55 | + component: 'InputNumber', |
| 56 | + value: 0 | ||
| 56 | }, | 57 | }, |
| 57 | table: { | 58 | table: { |
| 58 | slots: { | 59 | slots: { |
| @@ -64,7 +65,8 @@ const crudSchemas = reactive<VxeCrudSchema>({ | @@ -64,7 +65,8 @@ const crudSchemas = reactive<VxeCrudSchema>({ | ||
| 64 | title: '刷新令牌的有效期', | 65 | title: '刷新令牌的有效期', |
| 65 | field: 'refreshTokenValiditySeconds', | 66 | field: 'refreshTokenValiditySeconds', |
| 66 | form: { | 67 | form: { |
| 67 | - component: 'InputNumber' | 68 | + component: 'InputNumber', |
| 69 | + value: 0 | ||
| 68 | }, | 70 | }, |
| 69 | table: { | 71 | table: { |
| 70 | slots: { | 72 | slots: { |