@cloudbase/weda-ui 3.6.2 → 3.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/configs/components/form-location.d.ts +2 -2
- package/dist/configs/components/wd-card.d.ts +14 -14
- package/dist/configs/components/wd-card.js +38 -32
- package/dist/configs/components/wd-cascader.d.ts +276 -0
- package/dist/configs/components/wd-cascader.js +183 -0
- package/dist/configs/components/wd-code-editor.d.ts +245 -0
- package/dist/configs/components/wd-code-editor.js +92 -0
- package/dist/configs/components/wd-form-arr.d.ts +193 -0
- package/dist/configs/components/wd-form-arr.js +206 -0
- package/dist/configs/components/wd-form-obj.d.ts +181 -0
- package/dist/configs/components/wd-form-obj.js +107 -0
- package/dist/configs/components/wd-form.d.ts +2 -2
- package/dist/configs/components/wd-image.js +1 -1
- package/dist/configs/components/wd-table.d.ts +3 -3
- package/dist/configs/components/wd-upload-file.d.ts +1 -0
- package/dist/configs/components/wd-upload-file.js +4 -1
- package/dist/configs/components/wd-upload-image.d.ts +2 -0
- package/dist/configs/components/wd-upload-image.js +4 -1
- package/dist/configs/components/web-view.d.ts +20 -1
- package/dist/configs/components/web-view.js +22 -1
- package/dist/configs/index.d.ts +1604 -28
- package/dist/configs/index.js +8 -0
- package/dist/configs/type-utils/type-form.d.ts +22 -0
- package/dist/configs/type-utils/type-form.js +58 -1
- package/dist/configs/type-utils/x-runtime-default.d.ts +3 -0
- package/dist/configs/type-utils/x-runtime-default.js +3 -0
- package/dist/enum/index.d.ts +8 -0
- package/dist/enum/index.js +11 -0
- package/dist/style/index.scss +1 -1
- package/dist/web/components/container/index.js +49 -1
- package/dist/web/components/form/uploader/uploader.h5.js +3 -3
- package/dist/web/components/form/uploader/uploader.pc.js +3 -3
- package/dist/web/components/form-input-hooks/index.js +14 -7
- package/dist/web/components/form-input-hooks/validator.js +2 -2
- package/dist/web/components/form-location/index.d.ts +1 -1
- package/dist/web/components/index.d.ts +4 -0
- package/dist/web/components/index.js +6 -0
- package/dist/web/components/richTextView/index.css +2 -1
- package/dist/web/components/wd-cascader/cascader.d.ts +6 -0
- package/dist/web/components/wd-cascader/cascader.h5.d.ts +2 -0
- package/dist/web/components/wd-cascader/cascader.h5.js +132 -0
- package/dist/web/components/wd-cascader/cascader.js +97 -0
- package/dist/web/components/wd-cascader/index.d.ts +4 -0
- package/dist/web/components/wd-cascader/index.js +3 -0
- package/dist/web/components/wd-cascader/interface.d.ts +26 -0
- package/dist/web/components/wd-cascader/interface.js +1 -0
- package/dist/web/components/wd-cascader/utils.d.ts +6 -0
- package/dist/web/components/wd-cascader/utils.js +63 -0
- package/dist/web/components/wd-code-editor/index.d.ts +3 -0
- package/dist/web/components/wd-code-editor/index.js +3 -0
- package/dist/web/components/wd-code-editor/lang/index.d.ts +17 -0
- package/dist/web/components/wd-code-editor/lang/index.js +21 -0
- package/dist/web/components/wd-code-editor/lang/mongodb/complete.d.ts +8 -0
- package/dist/web/components/wd-code-editor/lang/mongodb/complete.js +222 -0
- package/dist/web/components/wd-code-editor/lang/mongodb/index.d.ts +2 -0
- package/dist/web/components/wd-code-editor/lang/mongodb/index.js +60 -0
- package/dist/web/components/wd-code-editor/lang/mongodb/snippets.d.ts +6 -0
- package/dist/web/components/wd-code-editor/lang/mongodb/snippets.js +189 -0
- package/dist/web/components/wd-code-editor/theme.d.ts +4 -0
- package/dist/web/components/wd-code-editor/theme.js +5 -0
- package/dist/web/components/wd-code-editor/wd-code-editor.d.ts +9 -0
- package/dist/web/components/wd-code-editor/wd-code-editor.js +66 -0
- package/dist/web/components/wd-date/elements/Modal.h5.d.ts +2 -0
- package/dist/web/components/wd-date/elements/Modal.h5.js +4 -2
- package/dist/web/components/wd-form/form-utils.js +1 -1
- package/dist/web/components/wd-form/index.d.ts +4 -4
- package/dist/web/components/wd-form-arr/index.d.ts +4 -0
- package/dist/web/components/wd-form-arr/index.js +3 -0
- package/dist/web/components/wd-form-arr/wd-form-arr.d.ts +8 -0
- package/dist/web/components/wd-form-arr/wd-form-arr.js +6 -0
- package/dist/web/components/wd-form-item/wd-form-item.js +3 -3
- package/dist/web/components/wd-form-obj/base-form-obj.d.ts +13 -0
- package/dist/web/components/wd-form-obj/base-form-obj.js +351 -0
- package/dist/web/components/wd-form-obj/index.d.ts +4 -0
- package/dist/web/components/wd-form-obj/index.js +3 -0
- package/dist/web/components/wd-form-obj/wd-form-obj.d.ts +9 -0
- package/dist/web/components/wd-form-obj/wd-form-obj.js +7 -0
- package/dist/web/components/wd-input/wd-input.d.ts +2 -2
- package/dist/web/components/wd-input-phone/wd-input-phone.js +2 -2
- package/dist/web/components/wd-table/utils/index.js +20 -8
- package/dist/web/components/wd-table/wd-table.js +4 -2
- package/dist/web/components/wd-tabs/tabs.d.ts +1 -1
- package/dist/web/components/wd-textarea/calcTextareaHeight.d.ts +1 -0
- package/dist/web/components/wd-textarea/calcTextareaHeight.js +45 -0
- package/dist/web/components/wd-textarea/wd-textarea.js +4 -6
- package/dist/web/components/wd-unified-link/index.js +2 -2
- package/dist/web/components/web-view/web-view.js +15 -4
- package/dist/web/utils/tool.d.ts +1 -0
- package/dist/web/utils/tool.js +4 -1
- package/dist/web/utils/widget-api/index.d.ts +20 -0
- package/dist/web/utils/widget-api/index.js +14 -0
- package/package.json +8 -1
package/dist/configs/index.js
CHANGED
|
@@ -137,14 +137,22 @@ import Chart from './components/echart';
|
|
|
137
137
|
import WdCanvas from './components/wd-canvas';
|
|
138
138
|
import WdAudio from './components/wd-audio';
|
|
139
139
|
import WdAd from './components/wd-ad';
|
|
140
|
+
import WdFormObj from './components/wd-form-obj';
|
|
141
|
+
import WdFormArr from './components/wd-form-arr';
|
|
140
142
|
import WdUnifiedLink from './components/wd-unified-link';
|
|
141
143
|
import WdRating from './components/wd-rating';
|
|
142
144
|
import WdProgress from './components/wd-progress';
|
|
145
|
+
import WdCascader from './components/wd-cascader';
|
|
146
|
+
import WdCodeEditor from './components/wd-code-editor';
|
|
143
147
|
export const components = {
|
|
148
|
+
WdCodeEditor,
|
|
144
149
|
WdUnifiedLink,
|
|
145
150
|
WdRating,
|
|
146
151
|
WdProgress,
|
|
152
|
+
WdCascader,
|
|
147
153
|
WdAudio,
|
|
154
|
+
WdFormObj,
|
|
155
|
+
WdFormArr,
|
|
148
156
|
WdAd,
|
|
149
157
|
WdCanvas,
|
|
150
158
|
WdModal,
|
|
@@ -31,6 +31,8 @@ export declare const X_CATEGORY: {
|
|
|
31
31
|
export declare const FORM_ITEM_DATA: {
|
|
32
32
|
/** 通用 */
|
|
33
33
|
name: import("@sinclair/typebox").TString;
|
|
34
|
+
language: import("@sinclair/typebox").TUnsafe<string>;
|
|
35
|
+
theme: import("@sinclair/typebox").TUnsafe<string>;
|
|
34
36
|
_rangeInTagSelect: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
35
37
|
label: import("@sinclair/typebox").TString;
|
|
36
38
|
value: import("@sinclair/typebox").TString;
|
|
@@ -63,12 +65,16 @@ export declare const FORM_ITEM_DATA: {
|
|
|
63
65
|
value: import("@sinclair/typebox").TString;
|
|
64
66
|
_valueInTag: import("@sinclair/typebox").TUnknown;
|
|
65
67
|
_valueInFormDetail: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{}>>;
|
|
68
|
+
_valueInFormObj: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{}>, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{}>>]>;
|
|
69
|
+
_valueInFormArr: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{}>>;
|
|
66
70
|
_valueInUpload: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
67
71
|
_valueInRegion: import("@sinclair/typebox").TString;
|
|
68
72
|
_valueInDate: import("@sinclair/typebox").TAny;
|
|
69
73
|
_valueInDateRange: import("@sinclair/typebox").TUnknown;
|
|
70
74
|
_valueInTime: import("@sinclair/typebox").TAny;
|
|
71
75
|
_valueInSelectMultiple: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
76
|
+
_valueInCascader: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TAny>;
|
|
77
|
+
_multipleInCascader: import("@sinclair/typebox").TBoolean;
|
|
72
78
|
start: import("@sinclair/typebox").TAny;
|
|
73
79
|
end: import("@sinclair/typebox").TAny;
|
|
74
80
|
inputValue: import("@sinclair/typebox").TString;
|
|
@@ -160,6 +166,10 @@ export declare const FORM_ITEM_DATA: {
|
|
|
160
166
|
visible: import("@sinclair/typebox").TBoolean;
|
|
161
167
|
disabled: import("@sinclair/typebox").TBoolean;
|
|
162
168
|
readOnly: import("@sinclair/typebox").TBoolean;
|
|
169
|
+
selectedOptions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
170
|
+
label: import("@sinclair/typebox").TString;
|
|
171
|
+
value: import("@sinclair/typebox").TString;
|
|
172
|
+
}>>;
|
|
163
173
|
selectedLabel: import("@sinclair/typebox").TString;
|
|
164
174
|
item: import("@sinclair/typebox").TObject<{}>;
|
|
165
175
|
isTableView: import("@sinclair/typebox").TBoolean;
|
|
@@ -419,6 +429,8 @@ export declare const FORM_ITEM_META: {
|
|
|
419
429
|
};
|
|
420
430
|
export declare const ItemData: import("@sinclair/typebox").TObject<{
|
|
421
431
|
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
432
|
+
language: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
433
|
+
theme: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
422
434
|
_rangeInTagSelect: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
423
435
|
label: import("@sinclair/typebox").TString;
|
|
424
436
|
value: import("@sinclair/typebox").TString;
|
|
@@ -451,12 +463,16 @@ export declare const ItemData: import("@sinclair/typebox").TObject<{
|
|
|
451
463
|
value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
452
464
|
_valueInTag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnknown>;
|
|
453
465
|
_valueInFormDetail: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{}>>>;
|
|
466
|
+
_valueInFormObj: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{}>, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{}>>]>>;
|
|
467
|
+
_valueInFormArr: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{}>>>;
|
|
454
468
|
_valueInUpload: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
455
469
|
_valueInRegion: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
456
470
|
_valueInDate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
457
471
|
_valueInDateRange: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnknown>;
|
|
458
472
|
_valueInTime: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
459
473
|
_valueInSelectMultiple: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
474
|
+
_valueInCascader: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TAny>>;
|
|
475
|
+
_multipleInCascader: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
460
476
|
start: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
461
477
|
end: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
462
478
|
inputValue: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -543,6 +559,10 @@ export declare const ItemData: import("@sinclair/typebox").TObject<{
|
|
|
543
559
|
visible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
544
560
|
disabled: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
545
561
|
readOnly: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
562
|
+
selectedOptions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
563
|
+
label: import("@sinclair/typebox").TString;
|
|
564
|
+
value: import("@sinclair/typebox").TString;
|
|
565
|
+
}>>>;
|
|
546
566
|
selectedLabel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
547
567
|
item: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{}>>;
|
|
548
568
|
isTableView: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
@@ -582,6 +602,8 @@ export interface WdFormItemProps extends CommonPropsType, Pick<ItemDataType, 'la
|
|
|
582
602
|
isWdFormDetail?: boolean;
|
|
583
603
|
/** 只读时是否包含前后缀 */
|
|
584
604
|
readBeforeAfter?: boolean;
|
|
605
|
+
/** 标题容器 */
|
|
606
|
+
LabelContainer?: (props: any) => JSX.Element;
|
|
585
607
|
}
|
|
586
608
|
export interface WdInputGroupProps extends Pick<ItemDataType, 'before' | 'after' | 'block' | 'size' | 'readOnly'> {
|
|
587
609
|
/** 子元素 */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Type, Tuple } from './index';
|
|
2
|
-
import { WD_INPUT_SIZE, WD_INPUT_LABEL_ALIGN, WD_INPUT_LAYOUT, WD_INPUT_TYPE, WD_INPUT_STATUS, WD_INPUT_RULES, WD_INPUT_VALIDATE_STATUS, WD_INPUT_ICON_TYPE, WD_ICON_ENUM, WD_DATE_MODE, WD_DATE_FORMAT, WD_TIME_MODE, WD_SELECT_FORMAT, WD_REGION_TYPE, PROPS_WHERE_REL, PROPS_WHERE_REL_MEMBER, WD_LOCATION_TYPE, WD_LOCATION_RANGE, WD_UPLOAD_SHOW_SHAPE, WD_UPLOAD_IMAGE_ACCEPT_TYPES, WD_FORM_DETAIL_VIEW_TYPE, WD_INPUT_ICON_TYPE_SELECT, WD_CHECK_TYPE, WD_TAG_DIRECTION, WD_TAG_STYLE_TYPE, WD_TAG_STYLE_WIDTH_TYPE, WD_TAG_STYLE_SPACE, WD_TAG_ICON_TYPE, WD_TAG_STYLE_WIDTH_COLS, } from '../../enum';
|
|
2
|
+
import { WD_INPUT_SIZE, WD_INPUT_LABEL_ALIGN, WD_INPUT_LAYOUT, WD_INPUT_TYPE, WD_INPUT_STATUS, WD_INPUT_RULES, WD_INPUT_VALIDATE_STATUS, WD_INPUT_ICON_TYPE, WD_ICON_ENUM, WD_DATE_MODE, WD_DATE_FORMAT, WD_TIME_MODE, WD_SELECT_FORMAT, WD_REGION_TYPE, PROPS_WHERE_REL, PROPS_WHERE_REL_MEMBER, WD_LOCATION_TYPE, WD_LOCATION_RANGE, WD_UPLOAD_SHOW_SHAPE, WD_UPLOAD_IMAGE_ACCEPT_TYPES, WD_FORM_DETAIL_VIEW_TYPE, WD_INPUT_ICON_TYPE_SELECT, WD_CHECK_TYPE, WD_TAG_DIRECTION, WD_TAG_STYLE_TYPE, WD_TAG_STYLE_WIDTH_TYPE, WD_TAG_STYLE_SPACE, WD_TAG_ICON_TYPE, WD_TAG_STYLE_WIDTH_COLS, WD_CODE_EDITOR_LANGUAGE, WD_CODE_EDITOR_THEME, } from '../../enum';
|
|
3
3
|
import { X_RUNTIME_DEFAULT } from './x-runtime-default';
|
|
4
4
|
const WD_ICON_OPTIONS = WD_ICON_ENUM.map((item) => ({
|
|
5
5
|
label: item,
|
|
@@ -71,6 +71,20 @@ export const FORM_ITEM_DATA = {
|
|
|
71
71
|
},
|
|
72
72
|
],
|
|
73
73
|
}),
|
|
74
|
+
language: Type.StringEnum({
|
|
75
|
+
title: '支持语言',
|
|
76
|
+
enum: Tuple(WD_CODE_EDITOR_LANGUAGE),
|
|
77
|
+
default: X_RUNTIME_DEFAULT.codeEditorLanguage,
|
|
78
|
+
'x-category': X_CATEGORY.COMMON,
|
|
79
|
+
'x-index': 12,
|
|
80
|
+
}),
|
|
81
|
+
theme: Type.StringEnum({
|
|
82
|
+
title: '主题',
|
|
83
|
+
enum: Tuple(WD_CODE_EDITOR_THEME),
|
|
84
|
+
default: X_RUNTIME_DEFAULT.codeEditorTheme,
|
|
85
|
+
'x-category': X_CATEGORY.COMMON,
|
|
86
|
+
'x-index': 13,
|
|
87
|
+
}),
|
|
74
88
|
_rangeInTagSelect: Type.Array(Type.Object({
|
|
75
89
|
label: Type.String({ title: '标签名称', require: true }),
|
|
76
90
|
value: Type.String({ title: '标签值', require: true }),
|
|
@@ -543,6 +557,20 @@ export const FORM_ITEM_DATA = {
|
|
|
543
557
|
'x-component': 'jsontext',
|
|
544
558
|
'x-category': X_CATEGORY.COMMON,
|
|
545
559
|
}),
|
|
560
|
+
_valueInFormObj: Type.Union([Type.Object({}), Type.Array(Type.Object({}))], {
|
|
561
|
+
title: '对象嵌套表单值',
|
|
562
|
+
default: {},
|
|
563
|
+
'x-index': 20,
|
|
564
|
+
'x-component': 'jsontext',
|
|
565
|
+
'x-category': X_CATEGORY.COMMON,
|
|
566
|
+
}),
|
|
567
|
+
_valueInFormArr: Type.Array(Type.Object({}), {
|
|
568
|
+
title: '数组嵌套表单值',
|
|
569
|
+
default: [],
|
|
570
|
+
'x-index': 20,
|
|
571
|
+
'x-component': 'jsontext',
|
|
572
|
+
'x-category': X_CATEGORY.COMMON,
|
|
573
|
+
}),
|
|
546
574
|
_valueInUpload: Type.Array(Type.String(), {
|
|
547
575
|
type: 'array',
|
|
548
576
|
title: '图片值',
|
|
@@ -600,6 +628,27 @@ export const FORM_ITEM_DATA = {
|
|
|
600
628
|
'x-index': 20,
|
|
601
629
|
'x-category': X_CATEGORY.COMMON,
|
|
602
630
|
}),
|
|
631
|
+
_valueInCascader: Type.Array(Type.Any({
|
|
632
|
+
title: 'value',
|
|
633
|
+
}), {
|
|
634
|
+
type: 'array',
|
|
635
|
+
title: '选中值',
|
|
636
|
+
'x-runtime-default': X_RUNTIME_DEFAULT._valueInCascader,
|
|
637
|
+
description: '默认选中的选项',
|
|
638
|
+
'x-index': 15,
|
|
639
|
+
'x-category': X_CATEGORY.COMMON,
|
|
640
|
+
'x-component': 'jsontext',
|
|
641
|
+
}),
|
|
642
|
+
_multipleInCascader: Type.Boolean({
|
|
643
|
+
type: 'boolean',
|
|
644
|
+
title: '是否为多选模式',
|
|
645
|
+
'x-helper-text': '如需支持多选,开启该属性,绑定数组-文本字段,以保证表单的正常提交 [了解详情](https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/form/FormUploadFile#%E7%BB%91%E5%AE%9A%E6%96%87%E4%BB%B6%E6%95%B0%E7%BB%84%E5%AD%97%E6%AE%B5)',
|
|
646
|
+
default: X_RUNTIME_DEFAULT.multiple,
|
|
647
|
+
description: '默认选中的选项',
|
|
648
|
+
'x-index': 16,
|
|
649
|
+
'x-category': X_CATEGORY.COMMON,
|
|
650
|
+
display: false,
|
|
651
|
+
}),
|
|
603
652
|
start: Type.Any({
|
|
604
653
|
title: '最早可选时间',
|
|
605
654
|
'x-index': 22,
|
|
@@ -1483,6 +1532,14 @@ export const FORM_ITEM_DATA = {
|
|
|
1483
1532
|
description: '组件是否只读',
|
|
1484
1533
|
'x-platforms': [],
|
|
1485
1534
|
}),
|
|
1535
|
+
selectedOptions: Type.Array(Type.Object({
|
|
1536
|
+
label: Type.String({ title: 'label' }),
|
|
1537
|
+
value: Type.String({ title: 'value' }),
|
|
1538
|
+
}), {
|
|
1539
|
+
title: '选中项',
|
|
1540
|
+
description: '选中项对应的对象',
|
|
1541
|
+
'x-platforms': [],
|
|
1542
|
+
}),
|
|
1486
1543
|
selectedLabel: Type.String({
|
|
1487
1544
|
title: '选中项名称',
|
|
1488
1545
|
description: '选中项对应的文本名称',
|
|
@@ -20,6 +20,7 @@ export declare const X_RUNTIME_DEFAULT: {
|
|
|
20
20
|
_modeInTime: string;
|
|
21
21
|
dateFormat: string;
|
|
22
22
|
_valueInSelectMultiple: any[];
|
|
23
|
+
_valueInCascader: any[];
|
|
23
24
|
locationType: number;
|
|
24
25
|
regionType: string;
|
|
25
26
|
ignoreCase: boolean;
|
|
@@ -84,4 +85,6 @@ export declare const X_RUNTIME_DEFAULT: {
|
|
|
84
85
|
adType: string;
|
|
85
86
|
adTheme: string;
|
|
86
87
|
gridCount: number;
|
|
88
|
+
codeEditorTheme: string;
|
|
89
|
+
codeEditorLanguage: string;
|
|
87
90
|
};
|
|
@@ -20,6 +20,7 @@ export const X_RUNTIME_DEFAULT = {
|
|
|
20
20
|
_modeInTime: 'minute',
|
|
21
21
|
dateFormat: 'YYYY-MM-DD HH:mm:ss',
|
|
22
22
|
_valueInSelectMultiple: [],
|
|
23
|
+
_valueInCascader: [],
|
|
23
24
|
locationType: 1,
|
|
24
25
|
regionType: 'levelThree',
|
|
25
26
|
ignoreCase: true,
|
|
@@ -84,4 +85,6 @@ export const X_RUNTIME_DEFAULT = {
|
|
|
84
85
|
adType: 'banner',
|
|
85
86
|
adTheme: 'white',
|
|
86
87
|
gridCount: 5,
|
|
88
|
+
codeEditorTheme: 'githubLight',
|
|
89
|
+
codeEditorLanguage: 'javascript',
|
|
87
90
|
};
|
package/dist/enum/index.d.ts
CHANGED
|
@@ -202,3 +202,11 @@ export const WD_TABLE_CUSTOM_FORMAT: {
|
|
|
202
202
|
label: string;
|
|
203
203
|
value: string;
|
|
204
204
|
}[];
|
|
205
|
+
export const WD_CODE_EDITOR_LANGUAGE: {
|
|
206
|
+
label: string;
|
|
207
|
+
value: string;
|
|
208
|
+
}[];
|
|
209
|
+
export const WD_CODE_EDITOR_THEME: {
|
|
210
|
+
label: string;
|
|
211
|
+
value: string;
|
|
212
|
+
}[];
|
package/dist/enum/index.js
CHANGED
|
@@ -1204,3 +1204,14 @@ export const WD_TABLE_CUSTOM_FORMAT = [
|
|
|
1204
1204
|
{ label: '数组', value: 'array' },
|
|
1205
1205
|
{ label: 'JSON', value: 'json' },
|
|
1206
1206
|
];
|
|
1207
|
+
export const WD_CODE_EDITOR_LANGUAGE = [
|
|
1208
|
+
{ label: 'JS', value: 'javascript' },
|
|
1209
|
+
{ label: 'TypeScript', value: 'typescript' },
|
|
1210
|
+
{ label: 'MongoDB', value: 'mongodb' },
|
|
1211
|
+
{ label: 'SQL', value: 'sql' },
|
|
1212
|
+
{ label: 'MySQL', value: 'mysql' },
|
|
1213
|
+
];
|
|
1214
|
+
export const WD_CODE_EDITOR_THEME = [
|
|
1215
|
+
{ label: '暗黑', value: 'githubDark' },
|
|
1216
|
+
{ label: '明亮', value: 'githubLight' },
|
|
1217
|
+
];
|