From 0d82c7d7ba5bfebd8bd46ca0b921b16a482b32aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=A3=E5=BD=AC?= Date: Tue, 20 Oct 2020 11:08:24 +0800 Subject: [PATCH] =?UTF-8?q?chore(version):=20=E5=8F=91=E5=B8=83=E7=89=88?= =?UTF-8?q?=E6=9C=AC1.0.11?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../material-parser/src/core/schema/types.ts | 50 +++++++++---------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/packages/material-parser/src/core/schema/types.ts b/packages/material-parser/src/core/schema/types.ts index 55c1b1d48..e612461e5 100644 --- a/packages/material-parser/src/core/schema/types.ts +++ b/packages/material-parser/src/core/schema/types.ts @@ -42,13 +42,13 @@ export interface Npm { [k: string]: any; } export interface PropsSection { - props: { + props: Array<{ name: string; propType: PropType; description?: string; defaultValue?: any; [k: string]: any; - }[]; + }>; [k: string]: any; } export interface RequiredType { @@ -57,7 +57,7 @@ export interface RequiredType { } export interface OneOf { type: 'oneOf'; - value: (string | number | boolean)[]; + value: Array; isRequired?: boolean; [k: string]: any; } @@ -81,19 +81,19 @@ export interface ObjectOf { } export interface Shape { type: 'shape'; - value: { + value: Array<{ name?: string; propType?: PropType; - }[]; + }>; isRequired?: boolean; [k: string]: any; } export interface Exact { type: 'exact'; - value: { + value: Array<{ name?: string; propType?: PropType; - }[]; + }>; isRequired?: boolean; [k: string]: any; } @@ -119,24 +119,24 @@ export interface ConfigureFieldProp { } export interface ConfigureFieldSetter { componentName: - | 'List' - | 'Object' - | 'Function' - | 'Node' - | 'Mixin' - | 'Expression' - | 'Switch' - | 'Number' - | 'Input' - | 'TextArea' - | 'Date' - | 'DateYear' - | 'DateMonth' - | 'DateRange' - | 'ColorPicker' - | 'CodeEditor' - | 'Select' - | 'RadioGroup'; + | 'List' + | 'Object' + | 'Function' + | 'Node' + | 'Mixin' + | 'Expression' + | 'Switch' + | 'Number' + | 'Input' + | 'TextArea' + | 'Date' + | 'DateYear' + | 'DateMonth' + | 'DateRange' + | 'ColorPicker' + | 'CodeEditor' + | 'Select' + | 'RadioGroup'; props?: { [k: string]: any; };