@cloudbase/weda-ui 3.28.0 → 3.29.2
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/actions/showMessage.json +1 -1
- package/dist/configs/actions/showModal.json +1 -1
- package/dist/configs/actions/showToast.json +1 -1
- package/dist/configs/components/auth.json +1 -1
- package/dist/configs/components/button.d.ts +1 -1
- package/dist/configs/components/button.js +2 -1
- package/dist/configs/components/calendar.d.ts +1 -1
- package/dist/configs/components/calendar.js +2 -1
- package/dist/configs/components/carousel.json +4 -11
- package/dist/configs/components/chart/bar.d.ts +1 -1
- package/dist/configs/components/chart/bar.js +2 -1
- package/dist/configs/components/chart/line.d.ts +1 -1
- package/dist/configs/components/chart/line.js +2 -1
- package/dist/configs/components/chart/pie.d.ts +1 -1
- package/dist/configs/components/chart/pie.js +2 -1
- package/dist/configs/components/chart/statisticsCard.d.ts +1 -1
- package/dist/configs/components/chart/statisticsCard.js +2 -1
- package/dist/configs/components/container.d.ts +1 -1
- package/dist/configs/components/container.js +2 -1
- package/dist/configs/components/customer-service.d.ts +1 -1
- package/dist/configs/components/customer-service.js +2 -1
- package/dist/configs/components/dataView.js +2 -2
- package/dist/configs/components/echart.d.ts +175 -2
- package/dist/configs/components/echart.js +53 -48
- package/dist/configs/components/echarts.d.ts +139 -0
- package/dist/configs/components/echarts.js +16 -0
- package/dist/configs/components/flow/flow.json +2 -4
- package/dist/configs/components/flow/flowbasic.json +2 -4
- package/dist/configs/components/flow/flowchart.json +2 -4
- package/dist/configs/components/flow/flowcontrol.json +2 -4
- package/dist/configs/components/flow/flowlayout.json +2 -4
- package/dist/configs/components/flow/flowprocess.json +2 -4
- package/dist/configs/components/flowgraph.json +2 -4
- package/dist/configs/components/form/checkbox.json +1 -1
- package/dist/configs/components/form/departTreeSelect.json +1 -1
- package/dist/configs/components/form/form.json +1 -1
- package/dist/configs/components/form/input.json +4 -11
- package/dist/configs/components/form/location.json +1 -1
- package/dist/configs/components/form/radio.json +2 -4
- package/dist/configs/components/form/richText.json +3 -7
- package/dist/configs/components/form/select.json +6 -26
- package/dist/configs/components/form/switch.json +1 -1
- package/dist/configs/components/form/textarea.json +2 -4
- package/dist/configs/components/form/tips.json +1 -1
- package/dist/configs/components/form/uploader.json +4 -10
- package/dist/configs/components/form/uploaderFile.json +3 -7
- package/dist/configs/components/form/userTreeSelect.json +3 -9
- package/dist/configs/components/form-checkbox.d.ts +1 -1
- package/dist/configs/components/form-checkbox.js +2 -1
- package/dist/configs/components/form-date.d.ts +1 -1
- package/dist/configs/components/form-date.js +2 -1
- package/dist/configs/components/form-depart-tree-select.d.ts +1 -1
- package/dist/configs/components/form-depart-tree-select.js +2 -1
- package/dist/configs/components/form-email.d.ts +1 -1
- package/dist/configs/components/form-email.js +2 -1
- package/dist/configs/components/form-image-uploader.d.ts +1 -1
- package/dist/configs/components/form-image-uploader.js +2 -1
- package/dist/configs/components/form-input.d.ts +1 -1
- package/dist/configs/components/form-input.js +2 -1
- package/dist/configs/components/form-location.d.ts +1 -1
- package/dist/configs/components/form-location.js +2 -1
- package/dist/configs/components/form-multi-region.d.ts +1 -1
- package/dist/configs/components/form-multi-region.js +2 -1
- package/dist/configs/components/form-phone.d.ts +1 -1
- package/dist/configs/components/form-phone.js +2 -1
- package/dist/configs/components/form-radio.d.ts +1 -1
- package/dist/configs/components/form-radio.js +2 -1
- package/dist/configs/components/form-region.d.ts +1 -1
- package/dist/configs/components/form-region.js +2 -1
- package/dist/configs/components/form-rich-text.d.ts +1 -1
- package/dist/configs/components/form-rich-text.js +2 -1
- package/dist/configs/components/form-select-multiple.d.ts +1 -1
- package/dist/configs/components/form-select-multiple.js +2 -1
- package/dist/configs/components/form-select.d.ts +1 -1
- package/dist/configs/components/form-select.js +2 -1
- package/dist/configs/components/form-switch.d.ts +1 -1
- package/dist/configs/components/form-switch.js +2 -1
- package/dist/configs/components/form-text-area.d.ts +1 -1
- package/dist/configs/components/form-text-area.js +2 -1
- package/dist/configs/components/form-time.d.ts +1 -1
- package/dist/configs/components/form-time.js +2 -1
- package/dist/configs/components/form-upload-file.d.ts +1 -1
- package/dist/configs/components/form-upload-file.js +2 -1
- package/dist/configs/components/form-url.d.ts +1 -1
- package/dist/configs/components/form-url.js +2 -1
- package/dist/configs/components/form-user-tree-select.d.ts +1 -1
- package/dist/configs/components/form-user-tree-select.js +2 -1
- package/dist/configs/components/formdetail.json +8 -22
- package/dist/configs/components/graphicCard.json +4 -11
- package/dist/configs/components/grid/col.d.ts +1 -1
- package/dist/configs/components/grid/col.js +2 -1
- package/dist/configs/components/grid/grid.d.ts +1 -1
- package/dist/configs/components/grid/grid.js +2 -1
- package/dist/configs/components/grid/row.d.ts +1 -1
- package/dist/configs/components/grid/row.js +2 -1
- package/dist/configs/components/image.d.ts +1 -1
- package/dist/configs/components/image.js +2 -1
- package/dist/configs/components/jsx.js +2 -1
- package/dist/configs/components/link.d.ts +1 -1
- package/dist/configs/components/link.js +2 -1
- package/dist/configs/components/listView.js +2 -1
- package/dist/configs/components/lottery.d.ts +1 -1
- package/dist/configs/components/lottery.js +2 -1
- package/dist/configs/components/modal.d.ts +1 -1
- package/dist/configs/components/modal.js +2 -1
- package/dist/configs/components/navLayout.json +4 -11
- package/dist/configs/components/navigationBar.json +1 -1
- package/dist/configs/components/pagelayout.json +3 -8
- package/dist/configs/components/picker/datePicker.json +1 -1
- package/dist/configs/components/qr_code.d.ts +1 -1
- package/dist/configs/components/qr_code.js +2 -1
- package/dist/configs/components/repeater-item.json +1 -1
- package/dist/configs/components/repeater.d.ts +1 -1
- package/dist/configs/components/repeater.js +2 -1
- package/dist/configs/components/richtextview.json +2 -4
- package/dist/configs/components/scrollView.d.ts +1 -1
- package/dist/configs/components/scrollView.js +2 -1
- package/dist/configs/components/slot.json +1 -1
- package/dist/configs/components/swiper.d.ts +1 -1
- package/dist/configs/components/swiper.js +2 -1
- package/dist/configs/components/table.json +17 -65
- package/dist/configs/components/tabs.d.ts +1 -1
- package/dist/configs/components/tabs.js +2 -1
- package/dist/configs/components/text.d.ts +1 -1
- package/dist/configs/components/text.js +2 -1
- package/dist/configs/components/wd-ad.d.ts +1 -1
- package/dist/configs/components/wd-ad.js +2 -1
- package/dist/configs/components/wd-audio.d.ts +1 -1
- package/dist/configs/components/wd-audio.js +2 -1
- package/dist/configs/components/wd-bubble.d.ts +1 -1
- package/dist/configs/components/wd-bubble.js +2 -1
- package/dist/configs/components/wd-button.d.ts +1 -1
- package/dist/configs/components/wd-button.js +3 -2
- package/dist/configs/components/wd-calendar.d.ts +1 -1
- package/dist/configs/components/wd-calendar.js +2 -1
- package/dist/configs/components/wd-canvas.d.ts +1 -1
- package/dist/configs/components/wd-canvas.js +2 -1
- package/dist/configs/components/wd-card.d.ts +3 -3
- package/dist/configs/components/wd-card.js +4 -3
- package/dist/configs/components/wd-cascader.d.ts +1 -1
- package/dist/configs/components/wd-cascader.js +2 -1
- package/dist/configs/components/wd-checkbox.d.ts +1 -1
- package/dist/configs/components/wd-checkbox.js +2 -1
- package/dist/configs/components/wd-code-editor.d.ts +1 -1
- package/dist/configs/components/wd-code-editor.js +2 -1
- package/dist/configs/components/wd-date-range.d.ts +1 -1
- package/dist/configs/components/wd-date-range.js +2 -1
- package/dist/configs/components/wd-date.d.ts +1 -1
- package/dist/configs/components/wd-date.js +2 -1
- package/dist/configs/components/wd-department.d.ts +1 -1
- package/dist/configs/components/wd-department.js +2 -1
- package/dist/configs/components/wd-divider.d.ts +1 -1
- package/dist/configs/components/wd-divider.js +2 -1
- package/dist/configs/components/wd-drawer.d.ts +1 -1
- package/dist/configs/components/wd-drawer.js +2 -1
- package/dist/configs/components/wd-form-arr.d.ts +1 -1
- package/dist/configs/components/wd-form-arr.js +2 -1
- package/dist/configs/components/wd-form-detail.d.ts +1 -1
- package/dist/configs/components/wd-form-detail.js +2 -1
- package/dist/configs/components/wd-form-obj.d.ts +1 -1
- package/dist/configs/components/wd-form-obj.js +2 -1
- package/dist/configs/components/wd-form.d.ts +2 -2
- package/dist/configs/components/wd-form.js +3 -3
- package/dist/configs/components/wd-icon.d.ts +1 -1
- package/dist/configs/components/wd-icon.js +2 -1
- package/dist/configs/components/wd-image.d.ts +1 -1
- package/dist/configs/components/wd-image.js +2 -1
- package/dist/configs/components/wd-input-email.d.ts +1 -1
- package/dist/configs/components/wd-input-email.js +2 -1
- package/dist/configs/components/wd-input-number.d.ts +1 -1
- package/dist/configs/components/wd-input-number.js +2 -1
- package/dist/configs/components/wd-input-phone.d.ts +1 -1
- package/dist/configs/components/wd-input-phone.js +2 -1
- package/dist/configs/components/wd-input-url.d.ts +1 -1
- package/dist/configs/components/wd-input-url.js +2 -1
- package/dist/configs/components/wd-input.d.ts +1 -1
- package/dist/configs/components/wd-input.js +2 -1
- package/dist/configs/components/wd-layout.d.ts +1 -1
- package/dist/configs/components/wd-layout.js +2 -1
- package/dist/configs/components/wd-link.d.ts +1 -1
- package/dist/configs/components/wd-link.js +2 -1
- package/dist/configs/components/wd-location.d.ts +15 -1
- package/dist/configs/components/wd-location.js +18 -1
- package/dist/configs/components/wd-markdown.d.ts +1 -1
- package/dist/configs/components/wd-markdown.js +2 -1
- package/dist/configs/components/wd-member.d.ts +1 -1
- package/dist/configs/components/wd-member.js +2 -1
- package/dist/configs/components/wd-menu-base-layout.d.ts +1 -1
- package/dist/configs/components/wd-menu-base-layout.js +2 -1
- package/dist/configs/components/wd-menu-horizontal-layout.d.ts +1 -1
- package/dist/configs/components/wd-menu-horizontal-layout.js +2 -1
- package/dist/configs/components/wd-menu-layout.d.ts +2 -2
- package/dist/configs/components/wd-menu-layout.js +2 -1
- package/dist/configs/components/wd-menu-list.d.ts +1 -1
- package/dist/configs/components/wd-menu-list.js +2 -1
- package/dist/configs/components/wd-menu-nav-layout.d.ts +1 -1
- package/dist/configs/components/wd-menu-nav-layout.js +2 -1
- package/dist/configs/components/wd-menu-nav-tab-layou.d.ts +1 -1
- package/dist/configs/components/wd-menu-nav-tab-layou.js +2 -1
- package/dist/configs/components/wd-menu-plant-layout.d.ts +1 -1
- package/dist/configs/components/wd-menu-plant-layout.js +2 -1
- package/dist/configs/components/wd-menu-tab-layout.d.ts +1 -1
- package/dist/configs/components/wd-menu-tab-layout.js +2 -1
- package/dist/configs/components/wd-menu-vertical-layout.d.ts +1 -1
- package/dist/configs/components/wd-menu-vertical-layout.js +2 -1
- package/dist/configs/components/wd-modal.d.ts +1 -1
- package/dist/configs/components/wd-modal.js +2 -2
- package/dist/configs/components/wd-official-account.d.ts +1 -1
- package/dist/configs/components/wd-official-account.js +2 -1
- package/dist/configs/components/wd-progress.d.ts +1 -1
- package/dist/configs/components/wd-progress.js +2 -1
- package/dist/configs/components/wd-radio.d.ts +1 -1
- package/dist/configs/components/wd-radio.js +2 -1
- package/dist/configs/components/wd-rating.d.ts +1 -1
- package/dist/configs/components/wd-rating.js +2 -1
- package/dist/configs/components/wd-region.d.ts +1 -1
- package/dist/configs/components/wd-region.js +2 -1
- package/dist/configs/components/wd-rich-text.d.ts +1 -1
- package/dist/configs/components/wd-rich-text.js +2 -1
- package/dist/configs/components/wd-select-multiple.d.ts +1 -1
- package/dist/configs/components/wd-select-multiple.js +2 -1
- package/dist/configs/components/wd-select.d.ts +1 -1
- package/dist/configs/components/wd-select.js +2 -1
- package/dist/configs/components/wd-side-tab.d.ts +1 -1
- package/dist/configs/components/wd-side-tab.js +2 -1
- package/dist/configs/components/wd-store-home.d.ts +1 -1
- package/dist/configs/components/wd-store-home.js +2 -1
- package/dist/configs/components/wd-store-product.d.ts +1 -1
- package/dist/configs/components/wd-store-product.js +2 -1
- package/dist/configs/components/wd-switch.d.ts +1 -1
- package/dist/configs/components/wd-switch.js +2 -1
- package/dist/configs/components/wd-tabbar.d.ts +1 -1
- package/dist/configs/components/wd-tabbar.js +2 -1
- package/dist/configs/components/wd-table.d.ts +1 -1
- package/dist/configs/components/wd-table.js +2 -1
- package/dist/configs/components/wd-tag-select.d.ts +1 -1
- package/dist/configs/components/wd-tag-select.js +2 -1
- package/dist/configs/components/wd-tag.d.ts +1 -1
- package/dist/configs/components/wd-tag.js +2 -1
- package/dist/configs/components/wd-text.d.ts +1 -1
- package/dist/configs/components/wd-text.js +2 -1
- package/dist/configs/components/wd-textarea.d.ts +1 -1
- package/dist/configs/components/wd-textarea.js +2 -1
- package/dist/configs/components/wd-time.d.ts +1 -1
- package/dist/configs/components/wd-time.js +2 -1
- package/dist/configs/components/wd-top-tab.d.ts +1 -1
- package/dist/configs/components/wd-top-tab.js +2 -1
- package/dist/configs/components/wd-tree.d.ts +1 -1
- package/dist/configs/components/wd-tree.js +2 -1
- package/dist/configs/components/wd-unified-link.d.ts +1 -1
- package/dist/configs/components/wd-unified-link.js +2 -1
- package/dist/configs/components/wd-upload-file.d.ts +5 -1
- package/dist/configs/components/wd-upload-file.js +12 -1
- package/dist/configs/components/wd-upload-image.d.ts +1 -1
- package/dist/configs/components/wd-upload-image.js +2 -1
- package/dist/configs/components/web-view.d.ts +1 -1
- package/dist/configs/components/web-view.js +2 -1
- package/dist/configs/components/wedaVideo.d.ts +1 -1
- package/dist/configs/components/wedaVideo.js +2 -1
- package/dist/configs/components/wxOpenApi/phone.d.ts +1 -1
- package/dist/configs/components/wxOpenApi/phone.js +2 -1
- package/dist/configs/components/wxOpenApi/phoneCode.d.ts +1 -1
- package/dist/configs/components/wxOpenApi/phoneCode.js +2 -1
- package/dist/configs/components/wxOpenApi/share.d.ts +1 -1
- package/dist/configs/components/wxOpenApi/share.js +2 -1
- package/dist/configs/components/wxOpenApi/userInfo.d.ts +1 -1
- package/dist/configs/components/wxOpenApi/userInfo.js +2 -1
- package/dist/configs/index.d.ts +540 -232
- package/dist/configs/index.js +2 -0
- package/dist/configs/type-utils/index.d.ts +3 -1
- package/dist/configs/type-utils/index.js +2 -0
- package/dist/configs/type-utils/type-form.js +8 -4
- package/dist/configs/type-utils/x-runtime-default.d.ts +1 -0
- package/dist/configs/type-utils/x-runtime-default.js +1 -0
- package/dist/configs/utils/constants.d.ts +2 -0
- package/dist/configs/utils/constants.js +2 -0
- package/dist/onlineConfig.json +4 -4
- package/dist/style/weda-ui.min.css +2 -2
- package/dist/web/components/form/location/common/fetchLocationApiKey.d.ts +11 -0
- package/dist/web/components/form/location/common/fetchLocationApiKey.js +20 -0
- package/dist/web/components/form/location/components/LocationH5/location.h5.js +20 -33
- package/dist/web/components/form/location/components/LocationPC/location.PC.js +20 -30
- package/dist/web/components/form/uploaderFile/index.css +11 -1
- package/dist/web/components/form/uploaderFile/uploadFile.pc.d.ts +2 -1
- package/dist/web/components/form/uploaderFile/uploadFile.pc.js +8 -4
- package/dist/web/components/index.d.ts +1 -1
- package/dist/web/components/index.js +2 -0
- package/dist/web/components/uploaderFileView/index.js +0 -2
- package/dist/web/components/wd-code-editor/wd-code-editor.js +4 -5
- package/dist/web/components/wd-upload-file/wd-upload-file.js +2 -2
- package/dist/web/utils/i18n/locale/en_US.d.ts +1 -0
- package/dist/web/utils/i18n/locale/en_US.js +1 -0
- package/dist/web/utils/i18n/locale/zh_CN.d.ts +1 -0
- package/dist/web/utils/i18n/locale/zh_CN.js +1 -0
- package/dist/web/utils/tcb.d.ts +16 -0
- package/dist/web/utils/tcb.js +32 -0
- package/package.json +2 -2
|
@@ -51,7 +51,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
51
51
|
size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
52
52
|
}>;
|
|
53
53
|
declare const config: {
|
|
54
|
-
readonly $schema:
|
|
54
|
+
readonly $schema: string;
|
|
55
55
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
56
56
|
start: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny & {
|
|
57
57
|
'x-component': string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineConfig, Type } from '../type-utils';
|
|
2
|
+
import { $SCHEMA } from '../utils/constants';
|
|
2
3
|
import { FORM_ITEM_DATA, FORM_ITEM_DATA_TITLE, FORM_ITEM_EVENTS, FORM_ITEM_META, ItemData, X_CATEGORY, pickWithXCategory, FORM_ITEM_METHODS, } from '../type-utils/type-form';
|
|
3
4
|
import { getClasses } from '../type-utils/classes';
|
|
4
5
|
import { templateInitNameWithId } from './common/init-name-with-id';
|
|
@@ -78,7 +79,7 @@ const classes = [
|
|
|
78
79
|
CLASSES.input_addon_right,
|
|
79
80
|
];
|
|
80
81
|
const config = defineConfig({
|
|
81
|
-
$schema:
|
|
82
|
+
$schema: $SCHEMA,
|
|
82
83
|
data,
|
|
83
84
|
properties,
|
|
84
85
|
classes,
|
|
@@ -19,7 +19,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
19
19
|
}>;
|
|
20
20
|
export type DataType = Simplify<Static<typeof data>>;
|
|
21
21
|
declare const config: {
|
|
22
|
-
readonly $schema:
|
|
22
|
+
readonly $schema: string;
|
|
23
23
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
24
24
|
isMultipleSlot: import("@sinclair/typebox").TBoolean;
|
|
25
25
|
isSlotAuto: import("@sinclair/typebox").TBoolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineConfig, Type, Tuple } from '../type-utils';
|
|
2
2
|
import { WD_ICON_ENUM } from '../../enum';
|
|
3
|
+
import { $SCHEMA } from '../utils/constants';
|
|
3
4
|
const template = `
|
|
4
5
|
[attributes]
|
|
5
6
|
isSlotAuto = true
|
|
@@ -346,7 +347,7 @@ const data = Type.Object({
|
|
|
346
347
|
const properties = Type.Pick(data, ['selectedValue', 'list', 'isMultipleSlot']);
|
|
347
348
|
// export default
|
|
348
349
|
const config = defineConfig({
|
|
349
|
-
$schema:
|
|
350
|
+
$schema: $SCHEMA,
|
|
350
351
|
// 属性定义
|
|
351
352
|
data,
|
|
352
353
|
// 只读属性定义
|
|
@@ -145,7 +145,7 @@ declare const properties: import("@sinclair/typebox").TObject<{
|
|
|
145
145
|
export type DataType = Simplify<Static<typeof data>>;
|
|
146
146
|
export type PropsType = Simplify<Static<typeof properties>>;
|
|
147
147
|
declare const config: {
|
|
148
|
-
readonly $schema:
|
|
148
|
+
readonly $schema: string;
|
|
149
149
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
150
150
|
data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TRecursive<import("@sinclair/typebox").TObject<{
|
|
151
151
|
label: import("@sinclair/typebox").TString;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineConfig, Type, Tuple } from '../type-utils';
|
|
2
2
|
import { svgDataUri as svg } from '../svg-tag';
|
|
3
|
+
import { $SCHEMA } from '../utils/constants';
|
|
3
4
|
const Node = Type.Recursive((Node) => Type.Object({
|
|
4
5
|
label: Type.String({ title: 'label' }),
|
|
5
6
|
value: Type.String({ title: 'value' }),
|
|
@@ -376,7 +377,7 @@ const properties = Type.Composite([
|
|
|
376
377
|
]);
|
|
377
378
|
// export default
|
|
378
379
|
const config = defineConfig({
|
|
379
|
-
$schema:
|
|
380
|
+
$schema: $SCHEMA,
|
|
380
381
|
// 属性定义
|
|
381
382
|
data,
|
|
382
383
|
// 只读属性定义
|
|
@@ -8,7 +8,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
8
8
|
}>;
|
|
9
9
|
export type DataType = Simplify<Static<typeof data>>;
|
|
10
10
|
declare const config: {
|
|
11
|
-
$schema:
|
|
11
|
+
$schema: string;
|
|
12
12
|
data: import("@sinclair/typebox").TObject<{
|
|
13
13
|
url: import("@sinclair/typebox").TString;
|
|
14
14
|
options: import("@sinclair/typebox").TObject<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineConfig, Type } from '../type-utils';
|
|
2
|
+
import { $SCHEMA } from '../utils/constants';
|
|
2
3
|
const template = `
|
|
3
4
|
[attributes]
|
|
4
5
|
':options'="{
|
|
@@ -56,7 +57,7 @@ const data = Type.Object({
|
|
|
56
57
|
// 组件对外暴露的只读属性
|
|
57
58
|
const properties = Type.Pick(data, ['options', 'url']);
|
|
58
59
|
const config = defineConfig({
|
|
59
|
-
$schema:
|
|
60
|
+
$schema: $SCHEMA,
|
|
60
61
|
// 属性定义
|
|
61
62
|
data,
|
|
62
63
|
properties,
|
|
@@ -7,8 +7,10 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
7
7
|
title: string;
|
|
8
8
|
'x-helper-text': string;
|
|
9
9
|
}>;
|
|
10
|
+
draggable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
10
11
|
maxUploadCount: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber & {
|
|
11
12
|
title: string;
|
|
13
|
+
'x-index': number;
|
|
12
14
|
}>;
|
|
13
15
|
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
14
16
|
required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
@@ -43,7 +45,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
43
45
|
}>;
|
|
44
46
|
}>;
|
|
45
47
|
declare const config: {
|
|
46
|
-
$schema:
|
|
48
|
+
$schema: string;
|
|
47
49
|
data: import("@sinclair/typebox").TObject<{
|
|
48
50
|
acceptTypes: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
49
51
|
maxSize: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
@@ -51,8 +53,10 @@ declare const config: {
|
|
|
51
53
|
title: string;
|
|
52
54
|
'x-helper-text': string;
|
|
53
55
|
}>;
|
|
56
|
+
draggable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
54
57
|
maxUploadCount: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber & {
|
|
55
58
|
title: string;
|
|
59
|
+
'x-index': number;
|
|
56
60
|
}>;
|
|
57
61
|
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
58
62
|
required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
@@ -3,6 +3,7 @@ import { X_RUNTIME_DEFAULT } from '../type-utils/x-runtime-default';
|
|
|
3
3
|
import { FORM_ITEM_DATA, FORM_ITEM_EVENTS, FORM_ITEM_METHODS, FORM_ITEM_META, ItemData, pickWithXCategory, X_CATEGORY, getFormItemDataTitle, } from '../type-utils/type-form';
|
|
4
4
|
import { getClasses } from '../type-utils/classes';
|
|
5
5
|
import { templateInitNameWithId } from './common/init-name-with-id';
|
|
6
|
+
import { $SCHEMA } from '../utils/constants';
|
|
6
7
|
const SELECT = pickWithXCategory(FORM_ITEM_DATA, ['extra', 'downloadVisible', 'deleteVisible', 'borderedH5'], X_CATEGORY.FILE_CONTENT);
|
|
7
8
|
const TITLE = getFormItemDataTitle('文件上传');
|
|
8
9
|
// 属性类型定义
|
|
@@ -26,8 +27,18 @@ const data = Type.Partial(Type.Object({
|
|
|
26
27
|
title: '上传单个文件',
|
|
27
28
|
'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)',
|
|
28
29
|
}),
|
|
30
|
+
draggable: Type.Boolean({
|
|
31
|
+
'x-runtime-default': X_RUNTIME_DEFAULT.draggable,
|
|
32
|
+
'x-category': X_CATEGORY.COMMON,
|
|
33
|
+
'x-index': 275,
|
|
34
|
+
title: '拖拽上传',
|
|
35
|
+
description: '开启后,支持拖拽上传',
|
|
36
|
+
'x-helper-text': '开启后,支持拖拽上传,仅支持PC 端',
|
|
37
|
+
'x-platforms': ['PCWEB'],
|
|
38
|
+
}),
|
|
29
39
|
maxUploadCount: Object.assign({}, FORM_ITEM_DATA.maxUploadCount, {
|
|
30
40
|
title: '文件数量上限',
|
|
41
|
+
'x-index': 276,
|
|
31
42
|
}),
|
|
32
43
|
status: FORM_ITEM_DATA.status,
|
|
33
44
|
required: FORM_ITEM_DATA.required,
|
|
@@ -101,7 +112,7 @@ const paramValueType = Type.Object({
|
|
|
101
112
|
});
|
|
102
113
|
// export default
|
|
103
114
|
const config = defineConfig({
|
|
104
|
-
$schema:
|
|
115
|
+
$schema: $SCHEMA,
|
|
105
116
|
data,
|
|
106
117
|
properties,
|
|
107
118
|
classes,
|
|
@@ -97,7 +97,7 @@ declare const uploadInstance: import("@sinclair/typebox").TObject<{
|
|
|
97
97
|
onFail: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TFunction<[import("@sinclair/typebox").TAny], import("@sinclair/typebox").TAny>>;
|
|
98
98
|
}>;
|
|
99
99
|
declare const config: {
|
|
100
|
-
$schema:
|
|
100
|
+
$schema: string;
|
|
101
101
|
data: import("@sinclair/typebox").TObject<{
|
|
102
102
|
isCompressBeforeUpload: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
103
103
|
compressQuality: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
@@ -2,6 +2,7 @@ import { defineConfig, Type, Tuple } from '../type-utils';
|
|
|
2
2
|
import { FORM_ITEM_DATA, FORM_ITEM_EVENTS, FORM_ITEM_METHODS, FORM_ITEM_META, ItemData, pickWithXCategory, X_CATEGORY, getFormItemDataTitle, getFormItemClasses, } from '../type-utils/type-form';
|
|
3
3
|
import { templateInitNameWithId } from './common/init-name-with-id';
|
|
4
4
|
import { $upload_image_template } from '../utils/field';
|
|
5
|
+
import { $SCHEMA } from '../utils/constants';
|
|
5
6
|
const TPL = `
|
|
6
7
|
{{#with $self as |$self|}}
|
|
7
8
|
{{#if (helper_utils '===' $self.attributes.template 'custom')}}
|
|
@@ -289,7 +290,7 @@ const events = [
|
|
|
289
290
|
];
|
|
290
291
|
// export default
|
|
291
292
|
const config = defineConfig({
|
|
292
|
-
$schema:
|
|
293
|
+
$schema: $SCHEMA,
|
|
293
294
|
data,
|
|
294
295
|
properties,
|
|
295
296
|
isContainer: true,
|
|
@@ -26,7 +26,7 @@ declare const events: [{
|
|
|
26
26
|
}>;
|
|
27
27
|
}];
|
|
28
28
|
declare const config: {
|
|
29
|
-
readonly $schema:
|
|
29
|
+
readonly $schema: string;
|
|
30
30
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
31
31
|
link: import("@sinclair/typebox").TString;
|
|
32
32
|
allow: import("@sinclair/typebox").TString;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineConfig, Type, Tuple } from '../type-utils';
|
|
2
|
+
import { $SCHEMA } from '../utils/constants';
|
|
2
3
|
// 属性类型定义
|
|
3
4
|
const data = Type.Object({
|
|
4
5
|
link: Type.String({
|
|
@@ -67,7 +68,7 @@ const events = Tuple([
|
|
|
67
68
|
]);
|
|
68
69
|
// export default
|
|
69
70
|
const config = defineConfig({
|
|
70
|
-
$schema:
|
|
71
|
+
$schema: $SCHEMA,
|
|
71
72
|
// 属性定义
|
|
72
73
|
data,
|
|
73
74
|
// 只读属性定义
|
|
@@ -14,7 +14,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
14
14
|
}>;
|
|
15
15
|
export type DataType = Simplify<Static<typeof data>>;
|
|
16
16
|
declare const config: {
|
|
17
|
-
readonly $schema:
|
|
17
|
+
readonly $schema: string;
|
|
18
18
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
19
19
|
videoDataSource: import("@sinclair/typebox").TString;
|
|
20
20
|
posterImage: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineConfig, Type, Tuple } from '../type-utils';
|
|
2
|
+
import { $SCHEMA } from '../utils/constants';
|
|
2
3
|
const data = Type.Object({
|
|
3
4
|
videoDataSource: Type.String({
|
|
4
5
|
title: '视频资源',
|
|
@@ -106,7 +107,7 @@ const data = Type.Object({
|
|
|
106
107
|
})),
|
|
107
108
|
});
|
|
108
109
|
const config = defineConfig({
|
|
109
|
-
$schema:
|
|
110
|
+
$schema: $SCHEMA,
|
|
110
111
|
data,
|
|
111
112
|
properties: Type.Object({
|
|
112
113
|
videoContext: Type.Object({}, {
|
|
@@ -7,7 +7,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
7
7
|
}>;
|
|
8
8
|
export type DataType = Simplify<Static<typeof data>>;
|
|
9
9
|
declare const config: {
|
|
10
|
-
readonly $schema:
|
|
10
|
+
readonly $schema: string;
|
|
11
11
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
12
12
|
text: import("@sinclair/typebox").TString;
|
|
13
13
|
type: import("@sinclair/typebox").TUnsafe<"primary" | "default" | "warn" | "wechat">;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineConfig, Tuple, Type } from '../../type-utils';
|
|
2
|
+
import { $SCHEMA } from '../../utils/constants';
|
|
2
3
|
const data = Type.Object({
|
|
3
4
|
text: Type.String({
|
|
4
5
|
title: '按钮标题',
|
|
@@ -62,7 +63,7 @@ const data = Type.Object({
|
|
|
62
63
|
});
|
|
63
64
|
// export default
|
|
64
65
|
const config = defineConfig({
|
|
65
|
-
$schema:
|
|
66
|
+
$schema: $SCHEMA,
|
|
66
67
|
data,
|
|
67
68
|
events: [
|
|
68
69
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
readonly $schema:
|
|
2
|
+
readonly $schema: string;
|
|
3
3
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
4
4
|
text: import("@sinclair/typebox").TString;
|
|
5
5
|
type: import("@sinclair/typebox").TUnsafe<"primary" | "default" | "warn" | "wechat">;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineConfig, Tuple, Type } from '../../type-utils';
|
|
2
|
+
import { $SCHEMA } from '../../utils/constants';
|
|
2
3
|
const data = Type.Object({
|
|
3
4
|
text: Type.String({
|
|
4
5
|
title: '按钮标题',
|
|
@@ -61,7 +62,7 @@ const data = Type.Object({
|
|
|
61
62
|
}),
|
|
62
63
|
});
|
|
63
64
|
export default defineConfig({
|
|
64
|
-
$schema:
|
|
65
|
+
$schema: $SCHEMA,
|
|
65
66
|
data,
|
|
66
67
|
events: [
|
|
67
68
|
{
|
|
@@ -15,7 +15,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
15
15
|
}>;
|
|
16
16
|
export type DataType = Simplify<Static<typeof data>>;
|
|
17
17
|
declare const config: {
|
|
18
|
-
readonly $schema:
|
|
18
|
+
readonly $schema: string;
|
|
19
19
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
20
20
|
text: import("@sinclair/typebox").TString;
|
|
21
21
|
type: import("@sinclair/typebox").TUnsafe<"primary" | "default" | "warn" | "wechat">;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineConfig, Tuple, Type } from '../../type-utils';
|
|
2
|
+
import { $SCHEMA } from '../../utils/constants';
|
|
2
3
|
const data = Type.Object({
|
|
3
4
|
text: Type.String({
|
|
4
5
|
title: '按钮标题',
|
|
@@ -177,7 +178,7 @@ const data = Type.Object({
|
|
|
177
178
|
}),
|
|
178
179
|
});
|
|
179
180
|
const config = defineConfig({
|
|
180
|
-
$schema:
|
|
181
|
+
$schema: $SCHEMA,
|
|
181
182
|
data,
|
|
182
183
|
events: [],
|
|
183
184
|
meta: {
|
|
@@ -8,7 +8,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
8
8
|
}>;
|
|
9
9
|
export type DataType = Simplify<Static<typeof data>>;
|
|
10
10
|
declare const config: {
|
|
11
|
-
readonly $schema:
|
|
11
|
+
readonly $schema: string;
|
|
12
12
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
13
13
|
text: import("@sinclair/typebox").TString;
|
|
14
14
|
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"primary" | "default" | "warn" | "wechat">>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineConfig, Tuple, Type } from '../../type-utils';
|
|
2
|
+
import { $SCHEMA } from '../../utils/constants';
|
|
2
3
|
const data = Type.Object({
|
|
3
4
|
text: Type.String({
|
|
4
5
|
title: '按钮标题',
|
|
@@ -104,7 +105,7 @@ const data = Type.Object({
|
|
|
104
105
|
}),
|
|
105
106
|
});
|
|
106
107
|
const config = defineConfig({
|
|
107
|
-
$schema:
|
|
108
|
+
$schema: $SCHEMA,
|
|
108
109
|
data,
|
|
109
110
|
events: [
|
|
110
111
|
{
|