@cloudbase/weda-ui 3.27.3 → 3.29.0
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 +1 -1
- package/dist/configs/components/echart.js +2 -1
- 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 +3 -3
- package/dist/configs/components/form-checkbox.js +2 -1
- package/dist/configs/components/form-date.d.ts +3 -3
- package/dist/configs/components/form-date.js +2 -1
- package/dist/configs/components/form-depart-tree-select.d.ts +3 -3
- package/dist/configs/components/form-depart-tree-select.js +2 -1
- package/dist/configs/components/form-email.d.ts +3 -3
- package/dist/configs/components/form-email.js +2 -1
- package/dist/configs/components/form-image-uploader.d.ts +3 -3
- package/dist/configs/components/form-image-uploader.js +2 -1
- package/dist/configs/components/form-input.d.ts +3 -3
- package/dist/configs/components/form-input.js +2 -1
- package/dist/configs/components/form-location.d.ts +3 -3
- package/dist/configs/components/form-location.js +2 -1
- package/dist/configs/components/form-multi-region.d.ts +3 -3
- package/dist/configs/components/form-multi-region.js +2 -1
- package/dist/configs/components/form-phone.d.ts +3 -3
- package/dist/configs/components/form-phone.js +2 -1
- package/dist/configs/components/form-radio.d.ts +3 -3
- package/dist/configs/components/form-radio.js +2 -1
- package/dist/configs/components/form-region.d.ts +3 -3
- package/dist/configs/components/form-region.js +2 -1
- package/dist/configs/components/form-rich-text.d.ts +3 -3
- package/dist/configs/components/form-rich-text.js +2 -1
- package/dist/configs/components/form-select-multiple.d.ts +3 -3
- package/dist/configs/components/form-select-multiple.js +2 -1
- package/dist/configs/components/form-select.d.ts +3 -3
- package/dist/configs/components/form-select.js +2 -1
- package/dist/configs/components/form-switch.d.ts +3 -3
- package/dist/configs/components/form-switch.js +2 -1
- package/dist/configs/components/form-text-area.d.ts +3 -3
- package/dist/configs/components/form-text-area.js +2 -1
- package/dist/configs/components/form-time.d.ts +3 -3
- package/dist/configs/components/form-time.js +2 -1
- package/dist/configs/components/form-upload-file.d.ts +3 -3
- package/dist/configs/components/form-upload-file.js +2 -1
- package/dist/configs/components/form-url.d.ts +3 -3
- package/dist/configs/components/form-url.js +2 -1
- package/dist/configs/components/form-user-tree-select.d.ts +3 -3
- 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 +3 -3
- 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 +145 -0
- package/dist/configs/components/scrollView.js +357 -0
- 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 +4 -4
- 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 +6 -6
- 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 +17 -1
- package/dist/configs/components/wd-location.js +19 -2
- 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 +8 -8
- package/dist/configs/components/wd-menu-layout.js +2 -1
- package/dist/configs/components/wd-menu-list.d.ts +3 -3
- 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 +528 -766
- package/dist/configs/index.js +1 -1
- package/dist/configs/type-utils/index.d.ts +2 -1
- package/dist/configs/type-utils/type-form.d.ts +2 -0
- package/dist/configs/type-utils/type-form.js +15 -0
- 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/components/LocationH5/location.h5.js +13 -1
- package/dist/web/components/form/location/components/LocationPC/location.PC.js +12 -0
- 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/form-date/index.d.ts +1 -1
- package/dist/web/components/form-depart-tree-select/index.d.ts +1 -1
- package/dist/web/components/form-email/index.d.ts +1 -1
- package/dist/web/components/form-image-uploader/index.d.ts +1 -1
- package/dist/web/components/form-input/index.d.ts +1 -1
- package/dist/web/components/form-input-hooks/index.d.ts +1 -1
- package/dist/web/components/form-location/index.d.ts +1 -1
- package/dist/web/components/form-multi-region/index.d.ts +1 -1
- package/dist/web/components/form-phone/index.d.ts +1 -1
- package/dist/web/components/form-radio/index.d.ts +1 -1
- package/dist/web/components/form-region/index.d.ts +1 -1
- package/dist/web/components/form-rich-text/index.d.ts +1 -1
- package/dist/web/components/form-select/index.d.ts +1 -1
- package/dist/web/components/form-select-multiple/index.d.ts +1 -1
- package/dist/web/components/form-switch/index.d.ts +1 -1
- package/dist/web/components/form-text-area/index.d.ts +1 -1
- package/dist/web/components/form-time/index.d.ts +1 -1
- package/dist/web/components/form-upload-file/index.d.ts +1 -1
- package/dist/web/components/form-url/index.d.ts +1 -1
- package/dist/web/components/form-user-tree-select/index.d.ts +1 -1
- package/dist/web/components/grid/col.d.ts +2 -2
- package/dist/web/components/scrollView/index.d.ts +5 -23
- package/dist/web/components/scrollView/index.js +141 -50
- package/dist/web/components/uploaderFileView/index.js +0 -2
- package/dist/web/components/wd-member/wd-member.css +3 -7
- 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/package.json +6 -8
- package/dist/configs/components/scrollVeiw.json +0 -312
|
@@ -2,7 +2,7 @@ import { Static } from '../type-utils';
|
|
|
2
2
|
import type { Simplify } from 'type-fest';
|
|
3
3
|
declare const data: import("@sinclair/typebox").TObject<{
|
|
4
4
|
trigger: import("@sinclair/typebox").TUnsafe<"empty" | "click" | "hover">;
|
|
5
|
-
placement: import("@sinclair/typebox").TUnsafe<"left" | "top" | "
|
|
5
|
+
placement: import("@sinclair/typebox").TUnsafe<"left" | "top" | "bottom" | "right" | "left-start" | "left-end" | "bottom-start" | "bottom-end" | "right-end" | "right-start" | "top-end" | "top-start">;
|
|
6
6
|
promptTheme: import("@sinclair/typebox").TUnsafe<"dark" | "error" | "default">;
|
|
7
7
|
openDelay: import("@sinclair/typebox").TNumber;
|
|
8
8
|
closeDelay: import("@sinclair/typebox").TNumber;
|
|
@@ -12,10 +12,10 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
12
12
|
}>;
|
|
13
13
|
export type DataType = Simplify<Static<typeof data>>;
|
|
14
14
|
declare const config: {
|
|
15
|
-
readonly $schema:
|
|
15
|
+
readonly $schema: string;
|
|
16
16
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
17
17
|
trigger: import("@sinclair/typebox").TUnsafe<"empty" | "click" | "hover">;
|
|
18
|
-
placement: import("@sinclair/typebox").TUnsafe<"left" | "top" | "
|
|
18
|
+
placement: import("@sinclair/typebox").TUnsafe<"left" | "top" | "bottom" | "right" | "left-start" | "left-end" | "bottom-start" | "bottom-end" | "right-end" | "right-start" | "top-end" | "top-start">;
|
|
19
19
|
promptTheme: import("@sinclair/typebox").TUnsafe<"dark" | "error" | "default">;
|
|
20
20
|
openDelay: import("@sinclair/typebox").TNumber;
|
|
21
21
|
closeDelay: import("@sinclair/typebox").TNumber;
|
|
@@ -24,7 +24,7 @@ declare const config: {
|
|
|
24
24
|
bubbleChildren: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
|
|
25
25
|
}>;
|
|
26
26
|
readonly properties: import("@sinclair/typebox").TObject<{
|
|
27
|
-
placement: import("@sinclair/typebox").TUnsafe<"left" | "top" | "
|
|
27
|
+
placement: import("@sinclair/typebox").TUnsafe<"left" | "top" | "bottom" | "right" | "left-start" | "left-end" | "bottom-start" | "bottom-end" | "right-end" | "right-start" | "top-end" | "top-start">;
|
|
28
28
|
trigger: import("@sinclair/typebox").TUnsafe<"empty" | "click" | "hover">;
|
|
29
29
|
promptTheme: import("@sinclair/typebox").TUnsafe<"dark" | "error" | "default">;
|
|
30
30
|
}>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineConfig, Tuple, Type } from '../type-utils';
|
|
2
|
+
import { $SCHEMA } from '../utils/constants';
|
|
2
3
|
const bubbleContentTemplate = `
|
|
3
4
|
[[template]]
|
|
4
5
|
component = "Container"
|
|
@@ -177,7 +178,7 @@ const data = Type.Object({
|
|
|
177
178
|
const properties = Type.Pick(data, ['trigger', 'placement', 'promptTheme']);
|
|
178
179
|
// export default
|
|
179
180
|
const config = defineConfig({
|
|
180
|
-
$schema:
|
|
181
|
+
$schema: $SCHEMA,
|
|
181
182
|
// 属性定义
|
|
182
183
|
data,
|
|
183
184
|
// 只读属性定义
|
|
@@ -24,7 +24,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
24
24
|
}>;
|
|
25
25
|
export type DataType = Simplify<Static<typeof data>>;
|
|
26
26
|
declare const config: {
|
|
27
|
-
readonly $schema:
|
|
27
|
+
readonly $schema: string;
|
|
28
28
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
29
29
|
text: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
30
30
|
theme: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineConfig, Tuple, Type } from '../type-utils';
|
|
2
|
+
import { $SCHEMA } from '../utils/constants';
|
|
2
3
|
import { WD_ICON_ENUM, WD_ICON_TYPE, WD_BUTTON_THEME, WD_BUTTON_VARIANT, WD_BUTTON_SIZE, WD_BUTTON_ICON_TYPE, WD_BUTTON_ICON_POSITION, WD_BUTTON_TYPE, } from '../../enum';
|
|
3
4
|
// 属性类型定义
|
|
4
5
|
const data = Type.Object({
|
|
@@ -187,7 +188,7 @@ const data = Type.Object({
|
|
|
187
188
|
'x-runtime-default': 'button',
|
|
188
189
|
'x-index': 130,
|
|
189
190
|
enum: Tuple(WD_BUTTON_TYPE),
|
|
190
|
-
'x-helper-text': ' 按钮:
|
|
191
|
+
'x-helper-text': ' 按钮: 适用于常见的按钮点击使用场景;[重置、提交: 需配合表单容器组件使用,不触发点击事件](https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/WdButton#%E8%A1%A8%E5%8D%95%E4%B8%AD%E7%9A%84%E6%8C%89%E9%92%AE%E4%BD%BF%E7%94%A8%E5%9C%BA%E6%99%AF)',
|
|
191
192
|
description: ' 按钮: 适用于常见的按钮点击使用场景,可在事件配置区中对按钮组件配置点击事件并触发相应的执行动作;重置: 需配合表单容器组件使用,将按钮放置在表单容器中,点击后即可重置表单容器中表单组件的输入信息;提交:需配合表单容器组件使用,将按钮放置在表单容器中,点击后即可对表单容器中的数据进行提交',
|
|
192
193
|
'x-category': '高级属性',
|
|
193
194
|
'x-linkages': [
|
|
@@ -304,7 +305,7 @@ const data = Type.Object({
|
|
|
304
305
|
const properties = Type.Pick(data, ['text', 'theme', 'variant', 'size', 'block', 'disabled', 'formType', 'openType']);
|
|
305
306
|
// export default
|
|
306
307
|
const config = defineConfig({
|
|
307
|
-
$schema:
|
|
308
|
+
$schema: $SCHEMA,
|
|
308
309
|
// 属性定义
|
|
309
310
|
data,
|
|
310
311
|
// 只读属性定义
|
|
@@ -12,7 +12,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
12
12
|
initVisible: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
13
13
|
}>;
|
|
14
14
|
declare const config: {
|
|
15
|
-
readonly $schema:
|
|
15
|
+
readonly $schema: string;
|
|
16
16
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
17
17
|
initMonth: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
18
18
|
value: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineConfig, Tuple, Type } from '../type-utils';
|
|
2
|
+
import { $SCHEMA } from '../utils/constants';
|
|
2
3
|
const BASIC = '基础属性';
|
|
3
4
|
const DISABLED_ENMU = [
|
|
4
5
|
{ label: '是', value: 'true' },
|
|
@@ -89,7 +90,7 @@ const data = Type.Partial(Type.Object({
|
|
|
89
90
|
}));
|
|
90
91
|
const properties = Type.Pick(data, ['configData', 'initMonth', 'initVisible', 'value']);
|
|
91
92
|
const config = defineConfig({
|
|
92
|
-
$schema:
|
|
93
|
+
$schema: $SCHEMA,
|
|
93
94
|
data,
|
|
94
95
|
properties,
|
|
95
96
|
classes: [
|
|
@@ -10,7 +10,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
10
10
|
}>;
|
|
11
11
|
export type DataType = Simplify<Static<typeof data>>;
|
|
12
12
|
declare const config: {
|
|
13
|
-
readonly $schema:
|
|
13
|
+
readonly $schema: string;
|
|
14
14
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
15
15
|
type: import("@sinclair/typebox").TUnsafe<"2d" | "webgl">;
|
|
16
16
|
template: import("@sinclair/typebox").TString;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineConfig, Tuple, Type } from '../type-utils';
|
|
2
|
+
import { $SCHEMA } from '../utils/constants';
|
|
2
3
|
const TPL = `
|
|
3
4
|
{{#with $self as |$self|}}
|
|
4
5
|
{{#if (helper_utils '===' $self.attributes.template '2d')}}
|
|
@@ -186,7 +187,7 @@ const data = Type.Object({
|
|
|
186
187
|
const properties = Type.Composite([Type.Pick(data, ['type', 'disableScroll', 'code']), Type.Object({ ...canvasProp })]);
|
|
187
188
|
// export default
|
|
188
189
|
const config = defineConfig({
|
|
189
|
-
$schema:
|
|
190
|
+
$schema: $SCHEMA,
|
|
190
191
|
// 属性定义
|
|
191
192
|
data,
|
|
192
193
|
// 只读属性定义
|
|
@@ -12,7 +12,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
12
12
|
}>;
|
|
13
13
|
export type DataType = Simplify<Static<typeof data>>;
|
|
14
14
|
declare const config: {
|
|
15
|
-
readonly $schema:
|
|
15
|
+
readonly $schema: string;
|
|
16
16
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
17
17
|
template: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"card" | "collapse1" | "collapse2">>;
|
|
18
18
|
showHeader: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
@@ -77,11 +77,11 @@ declare const config: {
|
|
|
77
77
|
readonly title: "点击";
|
|
78
78
|
}, {
|
|
79
79
|
readonly name: "contentShow";
|
|
80
|
-
readonly title: "
|
|
80
|
+
readonly title: "卡片折叠面板显示时";
|
|
81
81
|
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB", "WEB", "MP"];
|
|
82
82
|
}, {
|
|
83
83
|
readonly name: "contentHide";
|
|
84
|
-
readonly title: "
|
|
84
|
+
readonly title: "卡片折叠面板隐藏时";
|
|
85
85
|
readonly 'x-platforms': readonly ["MOBILEWEB", "PCWEB", "WEB", "MP"];
|
|
86
86
|
}];
|
|
87
87
|
readonly meta: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { svgDataUri as svg } from '../svg-tag';
|
|
2
2
|
import { defineConfig, Type, Tuple } from '../type-utils';
|
|
3
|
+
import { $SCHEMA } from '../utils/constants';
|
|
3
4
|
const HEAD_TITLE = (prefix = '') => `
|
|
4
5
|
[[template${prefix}]]
|
|
5
6
|
component = "WdText"
|
|
@@ -214,7 +215,7 @@ const properties = Type.Composite([
|
|
|
214
215
|
]);
|
|
215
216
|
// export default
|
|
216
217
|
const config = defineConfig({
|
|
217
|
-
$schema:
|
|
218
|
+
$schema: $SCHEMA,
|
|
218
219
|
// 属性定义
|
|
219
220
|
data,
|
|
220
221
|
// 只读属性定义
|
|
@@ -295,12 +296,12 @@ const config = defineConfig({
|
|
|
295
296
|
},
|
|
296
297
|
{
|
|
297
298
|
name: 'contentShow',
|
|
298
|
-
title: '
|
|
299
|
+
title: '卡片折叠面板显示时',
|
|
299
300
|
'x-platforms': ['MOBILEWEB', 'PCWEB', 'WEB', 'MP'],
|
|
300
301
|
},
|
|
301
302
|
{
|
|
302
303
|
name: 'contentHide',
|
|
303
|
-
title: '
|
|
304
|
+
title: '卡片折叠面板隐藏时',
|
|
304
305
|
'x-platforms': ['MOBILEWEB', 'PCWEB', 'WEB', 'MP'],
|
|
305
306
|
},
|
|
306
307
|
],
|
|
@@ -44,7 +44,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
44
44
|
size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
45
45
|
}>;
|
|
46
46
|
declare const config: {
|
|
47
|
-
readonly $schema:
|
|
47
|
+
readonly $schema: string;
|
|
48
48
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
49
49
|
suffixType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
50
50
|
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
@@ -2,6 +2,7 @@ import { defineConfig, Type } from '../type-utils';
|
|
|
2
2
|
import { FORM_ITEM_DATA, FORM_ITEM_EVENTS, FORM_ITEM_METHODS, FORM_ITEM_META, ItemData, pickWithXCategory, X_CATEGORY, getFormItemDataTitle, } from '../type-utils/type-form';
|
|
3
3
|
import { getClasses } from '../type-utils/classes';
|
|
4
4
|
import { templateInitNameWithId } from './common/init-name-with-id';
|
|
5
|
+
import { $SCHEMA } from '../utils/constants';
|
|
5
6
|
const CASCADER = pickWithXCategory(FORM_ITEM_DATA, [
|
|
6
7
|
'clearable',
|
|
7
8
|
'before',
|
|
@@ -134,7 +135,7 @@ const classes = [
|
|
|
134
135
|
];
|
|
135
136
|
// export default
|
|
136
137
|
const config = defineConfig({
|
|
137
|
-
$schema:
|
|
138
|
+
$schema: $SCHEMA,
|
|
138
139
|
data,
|
|
139
140
|
properties,
|
|
140
141
|
classes,
|
|
@@ -33,7 +33,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
33
33
|
}>;
|
|
34
34
|
export type DataType = Simplify<Static<typeof data>>;
|
|
35
35
|
declare const config: {
|
|
36
|
-
readonly $schema:
|
|
36
|
+
readonly $schema: string;
|
|
37
37
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
38
38
|
extra: import("@sinclair/typebox").TString;
|
|
39
39
|
direction: import("@sinclair/typebox").TUnsafe<string>;
|
|
@@ -2,6 +2,7 @@ import { defineConfig, Type, Tuple } from '../type-utils';
|
|
|
2
2
|
import { FORM_ITEM_DATA_TITLE, FORM_ITEM_METHODS, FORM_ITEM_META, ItemData } from '../type-utils/type-form';
|
|
3
3
|
import { getClasses } from '../type-utils/classes';
|
|
4
4
|
import { templateInitNameWithId } from './common/init-name-with-id';
|
|
5
|
+
import { $SCHEMA } from '../utils/constants';
|
|
5
6
|
const WD_CHECKBOX_DIRECTION = [
|
|
6
7
|
{
|
|
7
8
|
label: '纵向',
|
|
@@ -409,7 +410,7 @@ const classes = [
|
|
|
409
410
|
];
|
|
410
411
|
// export default
|
|
411
412
|
const config = defineConfig({
|
|
412
|
-
$schema:
|
|
413
|
+
$schema: $SCHEMA,
|
|
413
414
|
// 属性定义
|
|
414
415
|
data,
|
|
415
416
|
// 只读属性定义
|
|
@@ -30,7 +30,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
30
30
|
size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
31
31
|
}>;
|
|
32
32
|
declare const config: {
|
|
33
|
-
readonly $schema:
|
|
33
|
+
readonly $schema: string;
|
|
34
34
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
35
35
|
extra: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
36
36
|
focus: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
@@ -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_METHODS, FORM_ITEM_META, ItemData, } from '../type-utils/type-form';
|
|
3
4
|
import { getClasses } from '../type-utils/classes';
|
|
4
5
|
import { templateInitNameWithId } from './common/init-name-with-id';
|
|
@@ -40,7 +41,7 @@ const classes = [
|
|
|
40
41
|
];
|
|
41
42
|
// export default
|
|
42
43
|
const config = defineConfig({
|
|
43
|
-
$schema:
|
|
44
|
+
$schema: $SCHEMA,
|
|
44
45
|
data,
|
|
45
46
|
properties,
|
|
46
47
|
classes: [...classes],
|
|
@@ -41,7 +41,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
41
41
|
size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
42
42
|
}>;
|
|
43
43
|
declare const config: {
|
|
44
|
-
readonly $schema:
|
|
44
|
+
readonly $schema: string;
|
|
45
45
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
46
46
|
start: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
47
47
|
end: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
@@ -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, FORM_ITEM_METHODS, ItemData, X_CATEGORY, pickWithXCategory, DEFAULT_DETAIL_DATE_RANGE, } from '../type-utils/type-form';
|
|
3
4
|
import { getClasses } from '../type-utils/classes';
|
|
4
5
|
import { templateInitNameWithId } from './common/init-name-with-id';
|
|
@@ -79,7 +80,7 @@ const classes = [
|
|
|
79
80
|
CLASSES.input_addon_right,
|
|
80
81
|
];
|
|
81
82
|
const config = defineConfig({
|
|
82
|
-
$schema:
|
|
83
|
+
$schema: $SCHEMA,
|
|
83
84
|
data,
|
|
84
85
|
properties,
|
|
85
86
|
classes,
|
|
@@ -42,7 +42,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
42
42
|
size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
43
43
|
}>;
|
|
44
44
|
declare const config: {
|
|
45
|
-
readonly $schema:
|
|
45
|
+
readonly $schema: string;
|
|
46
46
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
47
47
|
start: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
48
48
|
end: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TAny>;
|
|
@@ -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, FORM_ITEM_METHODS, ItemData, X_CATEGORY, pickWithXCategory, } from '../type-utils/type-form';
|
|
3
4
|
import { getClasses } from '../type-utils/classes';
|
|
4
5
|
import { templateInitNameWithId } from './common/init-name-with-id';
|
|
@@ -73,7 +74,7 @@ const classes = [
|
|
|
73
74
|
CLASSES.input_addon_right,
|
|
74
75
|
];
|
|
75
76
|
const config = defineConfig({
|
|
76
|
-
$schema:
|
|
77
|
+
$schema: $SCHEMA,
|
|
77
78
|
data,
|
|
78
79
|
properties,
|
|
79
80
|
classes,
|
|
@@ -41,7 +41,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
41
41
|
size: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
42
42
|
}>;
|
|
43
43
|
declare const config: {
|
|
44
|
-
readonly $schema:
|
|
44
|
+
readonly $schema: string;
|
|
45
45
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
46
46
|
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
47
47
|
required: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { defineConfig, Type } from '../type-utils';
|
|
2
2
|
import { FORM_ITEM_DATA, FORM_ITEM_EVENTS, FORM_ITEM_METHODS, FORM_ITEM_META, getFormItemClasses, ItemData, pickWithXCategory, X_CATEGORY, getFormItemDataTitle, } from '../type-utils/type-form';
|
|
3
3
|
import { templateInitNameWithId } from './common/init-name-with-id';
|
|
4
|
+
import { $SCHEMA } from '../utils/constants';
|
|
4
5
|
const SELECT = pickWithXCategory(FORM_ITEM_DATA, [
|
|
5
6
|
'clearable',
|
|
6
7
|
'before',
|
|
@@ -59,7 +60,7 @@ const properties = Type.Pick(ItemData, [
|
|
|
59
60
|
const classes = getFormItemClasses('select');
|
|
60
61
|
// export default
|
|
61
62
|
const config = defineConfig({
|
|
62
|
-
$schema:
|
|
63
|
+
$schema: $SCHEMA,
|
|
63
64
|
data,
|
|
64
65
|
properties,
|
|
65
66
|
classes,
|
|
@@ -5,7 +5,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
5
5
|
}>;
|
|
6
6
|
export type DataType = Simplify<Static<typeof data>>;
|
|
7
7
|
declare const config: {
|
|
8
|
-
readonly $schema:
|
|
8
|
+
readonly $schema: string;
|
|
9
9
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
10
10
|
type: import("@sinclair/typebox").TUnsafe<string>;
|
|
11
11
|
}>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineConfig, Tuple, Type } from '../type-utils';
|
|
2
2
|
import { WD_DIVIDER_TYPE } from '../../enum';
|
|
3
|
+
import { $SCHEMA } from '../utils/constants';
|
|
3
4
|
// 属性类型定义
|
|
4
5
|
const data = Type.Object({
|
|
5
6
|
type: Type.StringEnum({
|
|
@@ -17,7 +18,7 @@ const data = Type.Object({
|
|
|
17
18
|
const properties = Type.Pick(data, ['type']);
|
|
18
19
|
// export default
|
|
19
20
|
const config = defineConfig({
|
|
20
|
-
$schema:
|
|
21
|
+
$schema: $SCHEMA,
|
|
21
22
|
// 属性定义
|
|
22
23
|
data,
|
|
23
24
|
// 只读属性定义
|
|
@@ -20,7 +20,7 @@ declare const properties: import("@sinclair/typebox").TObject<{
|
|
|
20
20
|
export type DataType = Simplify<Static<typeof data>>;
|
|
21
21
|
export type PropsType = Simplify<Static<typeof properties>>;
|
|
22
22
|
declare const config: {
|
|
23
|
-
readonly $schema:
|
|
23
|
+
readonly $schema: string;
|
|
24
24
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
25
25
|
visible: import("@sinclair/typebox").TBoolean;
|
|
26
26
|
placement: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineConfig, Type, Tuple } from '../type-utils';
|
|
2
2
|
import { WD_DRAWER_PLACEMENT } from '../../enum';
|
|
3
|
+
import { $SCHEMA } from '../utils/constants';
|
|
3
4
|
// 生成随机id
|
|
4
5
|
const getRandomId = () => Date.now().toString(36);
|
|
5
6
|
/**
|
|
@@ -170,7 +171,7 @@ const properties = Type.Object({
|
|
|
170
171
|
});
|
|
171
172
|
// export default
|
|
172
173
|
const config = defineConfig({
|
|
173
|
-
$schema:
|
|
174
|
+
$schema: $SCHEMA,
|
|
174
175
|
// 属性定义
|
|
175
176
|
data,
|
|
176
177
|
// 只读属性定义
|
|
@@ -25,7 +25,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
25
25
|
}>;
|
|
26
26
|
export type DataType = Simplify<Static<typeof data>>;
|
|
27
27
|
declare const config: {
|
|
28
|
-
readonly $schema:
|
|
28
|
+
readonly $schema: string;
|
|
29
29
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
30
30
|
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
31
31
|
dataSourceName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -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_META, ItemData, FORM_ITEM_DATA_TITLE } from '../type-utils/type-form';
|
|
3
4
|
import { getClasses } from '../type-utils/classes';
|
|
4
5
|
import { templateInitNameWithId } from './common/init-name-with-id';
|
|
@@ -58,7 +59,7 @@ const CLASSES = getClasses('form-obj', { kind: '嵌套表单' });
|
|
|
58
59
|
const classes = [CLASSES.root, CLASSES.root_h5, CLASSES.root_pc, CLASSES.root_mp];
|
|
59
60
|
// export default
|
|
60
61
|
const config = defineConfig({
|
|
61
|
-
$schema:
|
|
62
|
+
$schema: $SCHEMA,
|
|
62
63
|
// 属性定义
|
|
63
64
|
data,
|
|
64
65
|
// 只读属性定义
|
|
@@ -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
|
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
25
25
|
layout: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string> & {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineConfig, Type } from '../type-utils';
|
|
2
2
|
import { FORM_ITEM_DATA, FORM_ITEM_META, ItemData, FORM_ITEM_DATA_TITLE } from '../type-utils/type-form';
|
|
3
|
+
import { $SCHEMA } from '../utils/constants';
|
|
3
4
|
// 属性类型定义
|
|
4
5
|
const data = Type.Partial(Type.Object({
|
|
5
6
|
// 通用
|
|
@@ -24,7 +25,7 @@ const properties = Type.Composite([
|
|
|
24
25
|
]);
|
|
25
26
|
// export default
|
|
26
27
|
const config = defineConfig({
|
|
27
|
-
$schema:
|
|
28
|
+
$schema: $SCHEMA,
|
|
28
29
|
// 属性定义
|
|
29
30
|
data,
|
|
30
31
|
// 只读属性定义
|
|
@@ -24,7 +24,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
24
24
|
}>;
|
|
25
25
|
export type DataType = Simplify<Static<typeof data>>;
|
|
26
26
|
declare const config: {
|
|
27
|
-
readonly $schema:
|
|
27
|
+
readonly $schema: string;
|
|
28
28
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
29
29
|
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
30
30
|
layout: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<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_META, ItemData, FORM_ITEM_DATA_TITLE, X_CATEGORY } from '../type-utils/type-form';
|
|
3
4
|
import { getClasses } from '../type-utils/classes';
|
|
4
5
|
import { templateInitNameWithId } from './common/init-name-with-id';
|
|
@@ -46,7 +47,7 @@ const CLASSES = getClasses('form-obj', { kind: '嵌套表单' });
|
|
|
46
47
|
const classes = [CLASSES.root, CLASSES.root_h5, CLASSES.root_pc, CLASSES.root_mp];
|
|
47
48
|
// export default
|
|
48
49
|
const config = defineConfig({
|
|
49
|
-
$schema:
|
|
50
|
+
$schema: $SCHEMA,
|
|
50
51
|
// 属性定义
|
|
51
52
|
data,
|
|
52
53
|
// 只读属性定义
|
|
@@ -53,7 +53,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
53
53
|
methodUpdate: import("@sinclair/typebox").TString;
|
|
54
54
|
colNum: import("@sinclair/typebox").TNever;
|
|
55
55
|
lgWidth: import("@sinclair/typebox").TUnsafe<"lg" | "sm" | "md" | "hundred">;
|
|
56
|
-
layout: import("@sinclair/typebox").TUnsafe<"
|
|
56
|
+
layout: import("@sinclair/typebox").TUnsafe<"horizontal" | "vertical">;
|
|
57
57
|
labelAlign: import("@sinclair/typebox").TUnsafe<"left" | "right">;
|
|
58
58
|
fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
59
59
|
name: import("@sinclair/typebox").TString;
|
|
@@ -64,7 +64,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
64
64
|
declare const properties: import("@sinclair/typebox").TObject<{
|
|
65
65
|
value: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TAny>;
|
|
66
66
|
formType: import("@sinclair/typebox").TUnsafe<"create" | "edit" | "read">;
|
|
67
|
-
layout: import("@sinclair/typebox").TUnsafe<"
|
|
67
|
+
layout: import("@sinclair/typebox").TUnsafe<"horizontal" | "vertical">;
|
|
68
68
|
dataSourceName: import("@sinclair/typebox").TString;
|
|
69
69
|
clearValidate: import("@sinclair/typebox").TFunction<[], import("@sinclair/typebox").TVoid>;
|
|
70
70
|
errors: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
@@ -79,7 +79,7 @@ declare const properties: import("@sinclair/typebox").TObject<{
|
|
|
79
79
|
export type DataType = Simplify<Static<typeof data>>;
|
|
80
80
|
export type PropertiesType = Simplify<Static<typeof properties>>;
|
|
81
81
|
declare const _default: {
|
|
82
|
-
readonly $schema:
|
|
82
|
+
readonly $schema: string;
|
|
83
83
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
84
84
|
contentSlot: import("@sinclair/typebox").TUnsafe<import("react").ReactNode>;
|
|
85
85
|
isDisabledSubmit: import("@sinclair/typebox").TBoolean;
|
|
@@ -95,7 +95,7 @@ declare const _default: {
|
|
|
95
95
|
methodUpdate: import("@sinclair/typebox").TString;
|
|
96
96
|
colNum: import("@sinclair/typebox").TNever;
|
|
97
97
|
lgWidth: import("@sinclair/typebox").TUnsafe<"lg" | "sm" | "md" | "hundred">;
|
|
98
|
-
layout: import("@sinclair/typebox").TUnsafe<"
|
|
98
|
+
layout: import("@sinclair/typebox").TUnsafe<"horizontal" | "vertical">;
|
|
99
99
|
labelAlign: import("@sinclair/typebox").TUnsafe<"left" | "right">;
|
|
100
100
|
fields: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
101
101
|
name: import("@sinclair/typebox").TString;
|
|
@@ -113,7 +113,7 @@ declare const _default: {
|
|
|
113
113
|
readonly properties: import("@sinclair/typebox").TObject<{
|
|
114
114
|
value: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TAny>;
|
|
115
115
|
formType: import("@sinclair/typebox").TUnsafe<"create" | "edit" | "read">;
|
|
116
|
-
layout: import("@sinclair/typebox").TUnsafe<"
|
|
116
|
+
layout: import("@sinclair/typebox").TUnsafe<"horizontal" | "vertical">;
|
|
117
117
|
dataSourceName: import("@sinclair/typebox").TString;
|
|
118
118
|
clearValidate: import("@sinclair/typebox").TFunction<[], import("@sinclair/typebox").TVoid>;
|
|
119
119
|
errors: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
@@ -148,7 +148,7 @@ declare const _default: {
|
|
|
148
148
|
readonly params: import("@sinclair/typebox").TObject<{
|
|
149
149
|
value: import("@sinclair/typebox").TObject<{}>;
|
|
150
150
|
}>;
|
|
151
|
-
readonly description: "通过 $w.form1.setValue({a:'111'}) 设置组件值";
|
|
151
|
+
readonly description: "通过 $w.form1.setValue({value:{a:'111'}}) 设置组件值";
|
|
152
152
|
}, {
|
|
153
153
|
readonly name: "submit";
|
|
154
154
|
readonly label: "提交";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { svgDataUri as svg } from '../svg-tag';
|
|
2
2
|
import { defineConfig, Tuple, Type } from '../type-utils';
|
|
3
3
|
import { genericErrorType } from '../type-utils/error';
|
|
4
|
-
import { previewOperationHeaderIcon } from '../utils/constants';
|
|
4
|
+
import { previewOperationHeaderIcon, $SCHEMA } from '../utils/constants';
|
|
5
5
|
const events = Tuple([
|
|
6
6
|
{
|
|
7
7
|
title: '提交',
|
|
@@ -571,7 +571,7 @@ const properties = Type.Composite([
|
|
|
571
571
|
}),
|
|
572
572
|
]);
|
|
573
573
|
export default defineConfig({
|
|
574
|
-
$schema:
|
|
574
|
+
$schema: $SCHEMA,
|
|
575
575
|
data,
|
|
576
576
|
compConfig: {
|
|
577
577
|
isDataContainer: true,
|
|
@@ -614,7 +614,7 @@ export default defineConfig({
|
|
|
614
614
|
default: {},
|
|
615
615
|
}),
|
|
616
616
|
}),
|
|
617
|
-
description: "通过 $w.form1.setValue({a:'111'}) 设置组件值",
|
|
617
|
+
description: "通过 $w.form1.setValue({value:{a:'111'}}) 设置组件值",
|
|
618
618
|
},
|
|
619
619
|
{
|
|
620
620
|
name: 'submit',
|
|
@@ -10,7 +10,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
10
10
|
}>;
|
|
11
11
|
export type DataType = Simplify<Static<typeof data>>;
|
|
12
12
|
declare const config: {
|
|
13
|
-
readonly $schema:
|
|
13
|
+
readonly $schema: string;
|
|
14
14
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
15
15
|
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
16
16
|
name: import("@sinclair/typebox").TUnsafe<string>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineConfig, Tuple, Type } from '../type-utils';
|
|
2
2
|
import { WD_ICON_ENUM, WD_ICON_TYPE, WD_ICON_SIZE } from '../../enum';
|
|
3
|
+
import { $SCHEMA } from '../utils/constants';
|
|
3
4
|
import onlineConfig from '../../onlineConfig.json';
|
|
4
5
|
// 属性类型定义
|
|
5
6
|
const data = Type.Object({
|
|
@@ -76,7 +77,7 @@ const data = Type.Object({
|
|
|
76
77
|
const properties = Type.Pick(data, ['type', 'name', 'src', 'size']);
|
|
77
78
|
// export default
|
|
78
79
|
const config = defineConfig({
|
|
79
|
-
$schema:
|
|
80
|
+
$schema: $SCHEMA,
|
|
80
81
|
// 属性定义
|
|
81
82
|
data,
|
|
82
83
|
// 只读属性定义
|
|
@@ -11,7 +11,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
11
11
|
}>;
|
|
12
12
|
export type DataType = Simplify<Static<typeof data>>;
|
|
13
13
|
declare const config: {
|
|
14
|
-
readonly $schema:
|
|
14
|
+
readonly $schema: string;
|
|
15
15
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
16
16
|
src: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
17
17
|
fit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<"fill" | "contain" | "cover" | "widthFix" | "heightFix">>;
|