未验证 提交 f1717973 编写于 作者: 前端爱码士 提交者: GitHub

fix: 修复props中Array类型定义问题 (#2491)

上级 0cc53558
......@@ -57,7 +57,7 @@
* @type string[]
*/
trigger: {
type: [Array] as PropType<('contextmenu' | 'click' | 'hover')[]>,
type: Array as PropType<('contextmenu' | 'click' | 'hover')[]>,
default: () => {
return ['contextmenu'];
},
......
......@@ -23,7 +23,7 @@ export const basicProps = {
compact: propTypes.bool,
// 表单配置规则
schemas: {
type: [Array] as PropType<FormSchema[]>,
type: Array as PropType<FormSchema[]>,
default: () => [],
},
mergeDynamicData: {
......
......@@ -30,7 +30,7 @@
default: false,
},
imageList: {
type: [Array] as PropType<string[]>,
type: Array as PropType<string[]>,
default: null,
},
index: {
......
......@@ -84,7 +84,7 @@ export const basicProps = {
default: null,
},
columns: {
type: [Array] as PropType<BasicColumn[]>,
type: Array as PropType<BasicColumn[]>,
default: () => [],
},
showIndexColumn: { type: Boolean, default: true },
......
......@@ -69,7 +69,7 @@ export const previewProps = {
export const fileListProps = {
columns: {
type: [Array] as PropType<FileBasicColumn[]>,
type: Array as PropType<FileBasicColumn[]>,
default: null,
},
actionColumn: {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册