Browse Source

fix: 修复props中Array类型定义问题

pull/768/head
cKey 3 years ago
parent
commit
49f826f25b
  1. 2
      apps/vue/src/components/Dropdown/src/Dropdown.vue
  2. 4
      apps/vue/src/components/Form/src/props.ts
  3. 2
      apps/vue/src/components/Preview/src/Functional.vue
  4. 2
      apps/vue/src/components/Table/src/props.ts
  5. 2
      apps/vue/src/components/Upload/src/props.ts

2
apps/vue/src/components/Dropdown/src/Dropdown.vue

@ -57,7 +57,7 @@
* @type string[]
*/
trigger: {
type: [Array] as PropType<('contextmenu' | 'click' | 'hover')[]>,
type: Array as PropType<('contextmenu' | 'click' | 'hover')[]>,
default: () => {
return ['contextmenu'];
},

4
apps/vue/src/components/Form/src/props.ts

@ -23,7 +23,7 @@ export const basicProps = {
compact: propTypes.bool,
// 表单配置规则
schemas: {
type: [Array] as PropType<FormSchema[]>,
type: Array as PropType<FormSchema[]>,
default: () => [],
},
mergeDynamicData: {
@ -120,7 +120,7 @@ export const tabProps = {
compact: propTypes.bool,
// 表单配置规则
schemas: {
type: [Array] as PropType<TabFormSchema[]>,
type: Array as PropType<TabFormSchema[]>,
default: () => [],
},
mergeDynamicData: {

2
apps/vue/src/components/Preview/src/Functional.vue

@ -30,7 +30,7 @@
default: false,
},
imageList: {
type: [Array] as PropType<string[]>,
type: Array as PropType<string[]>,
default: null,
},
index: {

2
apps/vue/src/components/Table/src/props.ts

@ -83,7 +83,7 @@ export const basicProps = {
default: null,
},
columns: {
type: [Array] as PropType<BasicColumn[]>,
type: Array as PropType<BasicColumn[]>,
default: () => [],
},
showIndexColumn: { type: Boolean, default: true },

2
apps/vue/src/components/Upload/src/props.ts

@ -69,7 +69,7 @@ export const previewProps = {
export const fileListProps = {
columns: {
type: [Array] as PropType<FileBasicColumn[]>,
type: Array as PropType<FileBasicColumn[]>,
default: null,
},
actionColumn: {

Loading…
Cancel
Save