@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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Type, Tuple, defineConfig } from '../type-utils';
|
|
2
|
+
import { $SCHEMA } from '../utils/constants';
|
|
2
3
|
const data = Type.Object({
|
|
3
4
|
src: Type.Optional(Type.String({
|
|
4
5
|
title: '地址',
|
|
@@ -97,7 +98,7 @@ const data = Type.Object({
|
|
|
97
98
|
});
|
|
98
99
|
const properties = Type.Pick(data, ['fit', 'src', 'alt']);
|
|
99
100
|
const config = defineConfig({
|
|
100
|
-
$schema:
|
|
101
|
+
$schema: $SCHEMA,
|
|
101
102
|
data,
|
|
102
103
|
properties,
|
|
103
104
|
events: [
|
|
@@ -43,7 +43,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
43
43
|
isConvert: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
44
44
|
}>;
|
|
45
45
|
declare const config: {
|
|
46
|
-
readonly $schema:
|
|
46
|
+
readonly $schema: string;
|
|
47
47
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
48
48
|
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
49
49
|
label: 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 { omit, FORM_ITEM_META } from '../type-utils/type-form';
|
|
3
4
|
import wdInputConfig, { WD_INPUT_DATA } from './wd-input';
|
|
4
5
|
import { getClasses } from '../type-utils/classes';
|
|
@@ -31,7 +32,7 @@ const classes = [
|
|
|
31
32
|
];
|
|
32
33
|
// export default
|
|
33
34
|
const config = defineConfig({
|
|
34
|
-
$schema:
|
|
35
|
+
$schema: $SCHEMA,
|
|
35
36
|
data,
|
|
36
37
|
properties: wdInputConfig.properties,
|
|
37
38
|
classes,
|
|
@@ -116,7 +116,7 @@ declare const properties: import("@sinclair/typebox").TObject<{
|
|
|
116
116
|
}>;
|
|
117
117
|
export type PropertiesType = Simplify<Static<typeof properties>>;
|
|
118
118
|
declare const config: {
|
|
119
|
-
readonly $schema:
|
|
119
|
+
readonly $schema: string;
|
|
120
120
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
121
121
|
/** 通用 */
|
|
122
122
|
name: 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
|
import { FORM_ITEM_DATA, FORM_ITEM_META, FORM_ITEM_METHODS, FORM_ITEM_EVENTS, X_CATEGORY, } from '../type-utils/type-form';
|
|
3
4
|
import wdInputConfig from './wd-input';
|
|
4
5
|
import { getClasses } from '../type-utils/classes';
|
|
@@ -164,7 +165,7 @@ const properties = Type.Composite([
|
|
|
164
165
|
// ^?
|
|
165
166
|
// export default
|
|
166
167
|
const config = defineConfig({
|
|
167
|
-
$schema:
|
|
168
|
+
$schema: $SCHEMA,
|
|
168
169
|
data,
|
|
169
170
|
properties,
|
|
170
171
|
classes,
|
|
@@ -42,7 +42,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
42
42
|
isConvert: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
43
43
|
}>;
|
|
44
44
|
declare const config: {
|
|
45
|
-
readonly $schema:
|
|
45
|
+
readonly $schema: string;
|
|
46
46
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
47
47
|
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
48
48
|
label: 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 { omit, FORM_ITEM_META } from '../type-utils/type-form';
|
|
3
4
|
import wdInputConfig, { WD_INPUT_DATA } from './wd-input';
|
|
4
5
|
import { getClasses } from '../type-utils/classes';
|
|
@@ -31,7 +32,7 @@ const classes = [
|
|
|
31
32
|
];
|
|
32
33
|
// export default
|
|
33
34
|
const config = defineConfig({
|
|
34
|
-
$schema:
|
|
35
|
+
$schema: $SCHEMA,
|
|
35
36
|
data,
|
|
36
37
|
properties: wdInputConfig.properties,
|
|
37
38
|
classes,
|
|
@@ -43,7 +43,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
43
43
|
isConvert: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
44
44
|
}>;
|
|
45
45
|
declare const config: {
|
|
46
|
-
readonly $schema:
|
|
46
|
+
readonly $schema: string;
|
|
47
47
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
48
48
|
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
49
49
|
label: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString & {
|
|
@@ -3,6 +3,7 @@ import { omit, FORM_ITEM_META } from '../type-utils/type-form';
|
|
|
3
3
|
import wdInputConfig, { WD_INPUT_DATA } from './wd-input';
|
|
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
|
// 属性类型定义
|
|
7
8
|
const data = Type.Partial(Type.Object(Object.assign({}, omit(WD_INPUT_DATA, ['password', 'type', 'isNickNameType', 'rules']), {
|
|
8
9
|
name: WD_INPUT_DATA.name,
|
|
@@ -31,7 +32,7 @@ const classes = [
|
|
|
31
32
|
];
|
|
32
33
|
// export default
|
|
33
34
|
const config = defineConfig({
|
|
34
|
-
$schema:
|
|
35
|
+
$schema: $SCHEMA,
|
|
35
36
|
data,
|
|
36
37
|
properties: wdInputConfig.properties,
|
|
37
38
|
classes,
|
|
@@ -129,7 +129,7 @@ declare const events: [{
|
|
|
129
129
|
}>;
|
|
130
130
|
}];
|
|
131
131
|
declare const config: {
|
|
132
|
-
readonly $schema:
|
|
132
|
+
readonly $schema: string;
|
|
133
133
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
134
134
|
clearable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
135
135
|
before: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineConfig, Type, Tuple } from '../type-utils';
|
|
2
2
|
import { FORM_ITEM_DATA, FORM_ITEM_DATA_TITLE, FORM_ITEM_EVENTS, FORM_ITEM_METHODS, FORM_ITEM_META, ItemData, } from '../type-utils/type-form';
|
|
3
|
+
import { $SCHEMA } from '../utils/constants';
|
|
3
4
|
import { getClasses } from '../type-utils/classes';
|
|
4
5
|
import { templateInitNameWithId } from './common/init-name-with-id';
|
|
5
6
|
// 属性类型定义,同时提供给 url/phone/email 三个组件使用
|
|
@@ -122,7 +123,7 @@ const classes = [
|
|
|
122
123
|
];
|
|
123
124
|
// 组件配置
|
|
124
125
|
const config = defineConfig({
|
|
125
|
-
$schema:
|
|
126
|
+
$schema: $SCHEMA,
|
|
126
127
|
data,
|
|
127
128
|
properties,
|
|
128
129
|
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
|
headerLeftSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
|
|
16
16
|
headerRightSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
|
|
@@ -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
|
headerLeftSlot: Type.Optional(Type.Slot({ title: '头部左侧', 'x-index': 10, 'x-group': '基础属性' })),
|
|
@@ -61,7 +62,7 @@ const data = Type.Object({
|
|
|
61
62
|
const properties = Type.Pick(data, []);
|
|
62
63
|
// export default
|
|
63
64
|
const config = defineConfig({
|
|
64
|
-
$schema:
|
|
65
|
+
$schema: $SCHEMA,
|
|
65
66
|
// 属性定义
|
|
66
67
|
data,
|
|
67
68
|
// 只读属性定义
|
|
@@ -20,7 +20,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
20
20
|
}>;
|
|
21
21
|
export type DataType = Simplify<Static<typeof data>>;
|
|
22
22
|
declare const config: {
|
|
23
|
-
readonly $schema:
|
|
23
|
+
readonly $schema: string;
|
|
24
24
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
25
25
|
content: import("@sinclair/typebox").TString;
|
|
26
26
|
packageName: import("@sinclair/typebox").TString;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineConfig, Type, Tuple } from '../type-utils';
|
|
2
2
|
import { WD_ICON_ENUM, WD_ICON_TYPE, WD_LINK_ICON_TYPE, WD_LINK_ICON_POSITION } from '../../enum';
|
|
3
|
+
import { $SCHEMA } from '../utils/constants';
|
|
3
4
|
const btnTemplate = `
|
|
4
5
|
[attributes]
|
|
5
6
|
enableSlot = false
|
|
@@ -185,7 +186,7 @@ const data = Type.Object({
|
|
|
185
186
|
const properties = Type.Pick(data, ['content', 'url', 'disabled']);
|
|
186
187
|
// export default
|
|
187
188
|
const config = defineConfig({
|
|
188
|
-
$schema:
|
|
189
|
+
$schema: $SCHEMA,
|
|
189
190
|
// 属性定义
|
|
190
191
|
data,
|
|
191
192
|
// 只读属性定义
|
|
@@ -11,6 +11,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
11
11
|
requiredFlag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
12
12
|
extra: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
13
13
|
clearable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
14
|
+
openLocation: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
14
15
|
showLngLat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
15
16
|
showMap: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
16
17
|
borderedH5: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
@@ -37,7 +38,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
37
38
|
}>;
|
|
38
39
|
}>;
|
|
39
40
|
declare const config: {
|
|
40
|
-
readonly $schema:
|
|
41
|
+
readonly $schema: string;
|
|
41
42
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
42
43
|
locationRange: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<number>>;
|
|
43
44
|
customRange: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
@@ -49,6 +50,7 @@ declare const config: {
|
|
|
49
50
|
requiredFlag: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
50
51
|
extra: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
51
52
|
clearable: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
53
|
+
openLocation: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
52
54
|
showLngLat: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
53
55
|
showMap: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
54
56
|
borderedH5: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
@@ -289,6 +291,20 @@ declare const config: {
|
|
|
289
291
|
readonly body: "\n [attributes]\n name = \"{{$self.id}}\"\n ";
|
|
290
292
|
readonly __k: "init-name-with-id";
|
|
291
293
|
}];
|
|
294
|
+
readonly validate: readonly [{
|
|
295
|
+
readonly rule: "checkLocationPermission";
|
|
296
|
+
readonly options: {
|
|
297
|
+
readonly allowFailure: true;
|
|
298
|
+
readonly title: "地图定位组件需完善小程序接口权限相关设置";
|
|
299
|
+
readonly description: "";
|
|
300
|
+
readonly type: "mp";
|
|
301
|
+
readonly version: "-";
|
|
302
|
+
readonly platform: readonly ["MP"];
|
|
303
|
+
readonly extra: {
|
|
304
|
+
readonly limitPublishPlatform: readonly ["miniprogram"];
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
}];
|
|
292
308
|
};
|
|
293
309
|
readonly compConfig: {
|
|
294
310
|
readonly componentType: "formField";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { defineConfig, Type } from '../type-utils';
|
|
2
|
+
import { $SCHEMA } from '../utils/constants';
|
|
2
3
|
import { FORM_ITEM_DATA, FORM_ITEM_EVENTS, FORM_ITEM_METHODS, FORM_ITEM_META, ItemData, pickWithXCategory, X_CATEGORY, getFormItemDataTitle, } from '../type-utils/type-form';
|
|
3
4
|
import { getClasses } from '../type-utils/classes';
|
|
4
5
|
import { templateInitNameWithId } from './common/init-name-with-id';
|
|
5
6
|
import { genericErrorType } from '../type-utils/error';
|
|
6
|
-
const SELECT = pickWithXCategory(FORM_ITEM_DATA, ['clearable', 'extra', 'showLngLat', 'showMap', 'borderedH5'], X_CATEGORY.LOCATION_CONTENT);
|
|
7
|
+
const SELECT = pickWithXCategory(FORM_ITEM_DATA, ['clearable', 'extra', 'showLngLat', 'showMap', 'openLocation', 'borderedH5'], X_CATEGORY.LOCATION_CONTENT);
|
|
7
8
|
const TITLE = getFormItemDataTitle('地图');
|
|
8
9
|
// 属性类型定义
|
|
9
10
|
const data = Type.Partial(Type.Object({
|
|
@@ -83,7 +84,7 @@ const paramValueType = Type.Object({
|
|
|
83
84
|
});
|
|
84
85
|
// export default
|
|
85
86
|
const config = defineConfig({
|
|
86
|
-
$schema:
|
|
87
|
+
$schema: $SCHEMA,
|
|
87
88
|
data,
|
|
88
89
|
properties,
|
|
89
90
|
classes,
|
|
@@ -131,6 +132,22 @@ const config = defineConfig({
|
|
|
131
132
|
visible: FORM_ITEM_META.visible,
|
|
132
133
|
inlineStyleForm: FORM_ITEM_META.inlineStyleForm,
|
|
133
134
|
templates: [templateInitNameWithId],
|
|
135
|
+
validate: [
|
|
136
|
+
{
|
|
137
|
+
rule: 'checkLocationPermission',
|
|
138
|
+
options: {
|
|
139
|
+
allowFailure: true,
|
|
140
|
+
title: '地图定位组件需完善小程序接口权限相关设置',
|
|
141
|
+
description: '',
|
|
142
|
+
type: 'mp',
|
|
143
|
+
version: '-',
|
|
144
|
+
platform: ['MP'],
|
|
145
|
+
extra: {
|
|
146
|
+
limitPublishPlatform: ['miniprogram'],
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
],
|
|
134
151
|
},
|
|
135
152
|
compConfig: {
|
|
136
153
|
componentType: 'formField',
|
|
@@ -6,7 +6,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
6
6
|
}>;
|
|
7
7
|
export type DataType = Simplify<Static<typeof data>>;
|
|
8
8
|
declare const config: {
|
|
9
|
-
readonly $schema:
|
|
9
|
+
readonly $schema: string;
|
|
10
10
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
11
11
|
value: import("@sinclair/typebox").TString;
|
|
12
12
|
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" = "{
|
|
@@ -51,7 +52,7 @@ const properties = Type.Composite([
|
|
|
51
52
|
]);
|
|
52
53
|
// export default
|
|
53
54
|
const config = defineConfig({
|
|
54
|
-
$schema:
|
|
55
|
+
$schema: $SCHEMA,
|
|
55
56
|
// 属性定义
|
|
56
57
|
data,
|
|
57
58
|
// 只读属性定义
|
|
@@ -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
|
where: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TAny>>;
|
|
50
50
|
status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
@@ -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',
|
|
@@ -65,7 +66,7 @@ const properties = Type.Pick(ItemData, [
|
|
|
65
66
|
const classes = getFormItemClasses('member');
|
|
66
67
|
// export default
|
|
67
68
|
const config = defineConfig({
|
|
68
|
-
$schema:
|
|
69
|
+
$schema: $SCHEMA,
|
|
69
70
|
data,
|
|
70
71
|
properties,
|
|
71
72
|
classes,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const config: {
|
|
2
|
-
readonly $schema:
|
|
2
|
+
readonly $schema: string;
|
|
3
3
|
readonly data: import("@sinclair/typebox").TObject<{}>;
|
|
4
4
|
readonly events: readonly [];
|
|
5
5
|
readonly isContainer: true;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineConfig, Type } from '../type-utils';
|
|
2
|
+
import { $SCHEMA } from '../utils/constants';
|
|
2
3
|
const BODY = `
|
|
3
4
|
{{#with $self as |$self|}}
|
|
4
5
|
[[template]]
|
|
@@ -8,7 +9,7 @@ name = 'default'
|
|
|
8
9
|
{{/width}}
|
|
9
10
|
`;
|
|
10
11
|
const config = defineConfig({
|
|
11
|
-
$schema:
|
|
12
|
+
$schema: $SCHEMA,
|
|
12
13
|
data: Type.Object({}),
|
|
13
14
|
events: [],
|
|
14
15
|
isContainer: true,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const config: {
|
|
2
|
-
readonly $schema:
|
|
2
|
+
readonly $schema: string;
|
|
3
3
|
readonly data: import("@sinclair/typebox").TObject<{}>;
|
|
4
4
|
readonly events: readonly [];
|
|
5
5
|
readonly isContainer: true;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { defineConfig, Type } from '../type-utils';
|
|
2
2
|
import { getChildrenTemplate, getItems } from '../utils/layout';
|
|
3
|
+
import { $SCHEMA } from '../utils/constants';
|
|
3
4
|
const config = defineConfig({
|
|
4
|
-
$schema:
|
|
5
|
+
$schema: $SCHEMA,
|
|
5
6
|
data: Type.Object({}),
|
|
6
7
|
events: [],
|
|
7
8
|
isContainer: true,
|
|
@@ -5,7 +5,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
5
5
|
headRightSlot: import("@sinclair/typebox").TUnsafe<import("react").ReactNode>;
|
|
6
6
|
contentSlot: import("@sinclair/typebox").TUnsafe<import("react").ReactNode>;
|
|
7
7
|
footerSlot: import("@sinclair/typebox").TUnsafe<import("react").ReactNode>;
|
|
8
|
-
template: import("@sinclair/typebox").TUnsafe<"nav" | "tab" | "
|
|
8
|
+
template: import("@sinclair/typebox").TUnsafe<"nav" | "tab" | "horizontal" | "vertical" | "plant" | "navTab">;
|
|
9
9
|
menu: import("@sinclair/typebox").TObject<{
|
|
10
10
|
isMultiTerminal: import("@sinclair/typebox").TBoolean;
|
|
11
11
|
menuData: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TRecursive<import("@sinclair/typebox").TObject<{
|
|
@@ -39,20 +39,20 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
39
39
|
subPackageName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
40
40
|
}>>>;
|
|
41
41
|
}>;
|
|
42
|
-
type: import("@sinclair/typebox").TUnsafe<"nav" | "tab" | "
|
|
42
|
+
type: import("@sinclair/typebox").TUnsafe<"nav" | "tab" | "horizontal" | "vertical" | "plant" | "navTab">;
|
|
43
43
|
defaultOpened: import("@sinclair/typebox").TBoolean;
|
|
44
44
|
outerClickClosable: import("@sinclair/typebox").TBoolean;
|
|
45
45
|
selectedMenuKey: import("@sinclair/typebox").TString;
|
|
46
46
|
}>;
|
|
47
47
|
export type DataType = Simplify<Static<typeof data>>;
|
|
48
48
|
export declare const configInfo: {
|
|
49
|
-
readonly $schema:
|
|
49
|
+
readonly $schema: string;
|
|
50
50
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
51
51
|
headSlot: import("@sinclair/typebox").TUnsafe<import("react").ReactNode>;
|
|
52
52
|
headRightSlot: import("@sinclair/typebox").TUnsafe<import("react").ReactNode>;
|
|
53
53
|
contentSlot: import("@sinclair/typebox").TUnsafe<import("react").ReactNode>;
|
|
54
54
|
footerSlot: import("@sinclair/typebox").TUnsafe<import("react").ReactNode>;
|
|
55
|
-
template: import("@sinclair/typebox").TUnsafe<"nav" | "tab" | "
|
|
55
|
+
template: import("@sinclair/typebox").TUnsafe<"nav" | "tab" | "horizontal" | "vertical" | "plant" | "navTab">;
|
|
56
56
|
menu: import("@sinclair/typebox").TObject<{
|
|
57
57
|
isMultiTerminal: import("@sinclair/typebox").TBoolean;
|
|
58
58
|
menuData: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TRecursive<import("@sinclair/typebox").TObject<{
|
|
@@ -86,7 +86,7 @@ export declare const configInfo: {
|
|
|
86
86
|
subPackageName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
87
87
|
}>>>;
|
|
88
88
|
}>;
|
|
89
|
-
type: import("@sinclair/typebox").TUnsafe<"nav" | "tab" | "
|
|
89
|
+
type: import("@sinclair/typebox").TUnsafe<"nav" | "tab" | "horizontal" | "vertical" | "plant" | "navTab">;
|
|
90
90
|
defaultOpened: import("@sinclair/typebox").TBoolean;
|
|
91
91
|
outerClickClosable: import("@sinclair/typebox").TBoolean;
|
|
92
92
|
selectedMenuKey: import("@sinclair/typebox").TString;
|
|
@@ -256,13 +256,13 @@ export declare const configInfo: {
|
|
|
256
256
|
readonly items: any;
|
|
257
257
|
};
|
|
258
258
|
declare const config: {
|
|
259
|
-
readonly $schema:
|
|
259
|
+
readonly $schema: string;
|
|
260
260
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
261
261
|
headSlot: import("@sinclair/typebox").TUnsafe<import("react").ReactNode>;
|
|
262
262
|
headRightSlot: import("@sinclair/typebox").TUnsafe<import("react").ReactNode>;
|
|
263
263
|
contentSlot: import("@sinclair/typebox").TUnsafe<import("react").ReactNode>;
|
|
264
264
|
footerSlot: import("@sinclair/typebox").TUnsafe<import("react").ReactNode>;
|
|
265
|
-
template: import("@sinclair/typebox").TUnsafe<"nav" | "tab" | "
|
|
265
|
+
template: import("@sinclair/typebox").TUnsafe<"nav" | "tab" | "horizontal" | "vertical" | "plant" | "navTab">;
|
|
266
266
|
menu: import("@sinclair/typebox").TObject<{
|
|
267
267
|
isMultiTerminal: import("@sinclair/typebox").TBoolean;
|
|
268
268
|
menuData: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TRecursive<import("@sinclair/typebox").TObject<{
|
|
@@ -296,7 +296,7 @@ declare const config: {
|
|
|
296
296
|
subPackageName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
297
297
|
}>>>;
|
|
298
298
|
}>;
|
|
299
|
-
type: import("@sinclair/typebox").TUnsafe<"nav" | "tab" | "
|
|
299
|
+
type: import("@sinclair/typebox").TUnsafe<"nav" | "tab" | "horizontal" | "vertical" | "plant" | "navTab">;
|
|
300
300
|
defaultOpened: import("@sinclair/typebox").TBoolean;
|
|
301
301
|
outerClickClosable: import("@sinclair/typebox").TBoolean;
|
|
302
302
|
selectedMenuKey: 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
|
import { Node } from './wd-menu-list';
|
|
3
4
|
import { HEAD_TPL, HEAD_RIGHT_TPL, CONTENT_TPL, FOOT_TPL, BODY_TPL, getItems } from '../utils/layout';
|
|
4
5
|
const TYPE = Tuple([
|
|
@@ -151,7 +152,7 @@ const data = Type.Object({
|
|
|
151
152
|
// 组件对外先规范定义,暂时不对外开放
|
|
152
153
|
const properties = Type.Pick(data, []);
|
|
153
154
|
export const configInfo = {
|
|
154
|
-
$schema:
|
|
155
|
+
$schema: $SCHEMA,
|
|
155
156
|
// 属性定义
|
|
156
157
|
data,
|
|
157
158
|
// 只读属性定义
|
|
@@ -85,13 +85,13 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
85
85
|
subPackageName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
86
86
|
}>>>;
|
|
87
87
|
}>;
|
|
88
|
-
template: import("@sinclair/typebox").TUnsafe<"
|
|
88
|
+
template: import("@sinclair/typebox").TUnsafe<"horizontal" | "vertical" | "plant">;
|
|
89
89
|
defaultOpened: import("@sinclair/typebox").TBoolean;
|
|
90
90
|
selectedMenuKey: import("@sinclair/typebox").TString;
|
|
91
91
|
}>;
|
|
92
92
|
export type DataType = Simplify<Static<typeof data>>;
|
|
93
93
|
declare const config: {
|
|
94
|
-
readonly $schema:
|
|
94
|
+
readonly $schema: string;
|
|
95
95
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
96
96
|
menu: import("@sinclair/typebox").TObject<{
|
|
97
97
|
isMultiTerminal: import("@sinclair/typebox").TBoolean;
|
|
@@ -126,7 +126,7 @@ declare const config: {
|
|
|
126
126
|
subPackageName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
127
127
|
}>>>;
|
|
128
128
|
}>;
|
|
129
|
-
template: import("@sinclair/typebox").TUnsafe<"
|
|
129
|
+
template: import("@sinclair/typebox").TUnsafe<"horizontal" | "vertical" | "plant">;
|
|
130
130
|
defaultOpened: import("@sinclair/typebox").TBoolean;
|
|
131
131
|
selectedMenuKey: import("@sinclair/typebox").TString;
|
|
132
132
|
}>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineConfig, Type, Tuple } from '../type-utils';
|
|
2
|
+
import { $SCHEMA } from '../utils/constants';
|
|
2
3
|
export const menu = {
|
|
3
4
|
isMultiTerminal: false,
|
|
4
5
|
menuData: [
|
|
@@ -147,7 +148,7 @@ const data = Type.Object({
|
|
|
147
148
|
const properties = Type.Pick(data, []);
|
|
148
149
|
// export default
|
|
149
150
|
const config = defineConfig({
|
|
150
|
-
$schema:
|
|
151
|
+
$schema: $SCHEMA,
|
|
151
152
|
// 属性定义
|
|
152
153
|
data,
|
|
153
154
|
// 只读属性定义
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const config: {
|
|
2
|
-
readonly $schema:
|
|
2
|
+
readonly $schema: string;
|
|
3
3
|
readonly data: import("@sinclair/typebox").TObject<{}>;
|
|
4
4
|
readonly events: readonly [];
|
|
5
5
|
readonly isContainer: true;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { defineConfig, Type } from '../type-utils';
|
|
2
2
|
import { getChildrenTemplate, getItems } from '../utils/layout';
|
|
3
|
+
import { $SCHEMA } from '../utils/constants';
|
|
3
4
|
const config = defineConfig({
|
|
4
|
-
$schema:
|
|
5
|
+
$schema: $SCHEMA,
|
|
5
6
|
data: Type.Object({}),
|
|
6
7
|
events: [],
|
|
7
8
|
isContainer: true,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const config: {
|
|
2
|
-
readonly $schema:
|
|
2
|
+
readonly $schema: string;
|
|
3
3
|
readonly data: import("@sinclair/typebox").TObject<{}>;
|
|
4
4
|
readonly events: readonly [];
|
|
5
5
|
readonly isContainer: true;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { defineConfig, Type } from '../type-utils';
|
|
2
2
|
import { getChildrenTemplate, getItems } from '../utils/layout';
|
|
3
|
+
import { $SCHEMA } from '../utils/constants';
|
|
3
4
|
const config = defineConfig({
|
|
4
|
-
$schema:
|
|
5
|
+
$schema: $SCHEMA,
|
|
5
6
|
data: Type.Object({}),
|
|
6
7
|
events: [],
|
|
7
8
|
isContainer: true,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const config: {
|
|
2
|
-
readonly $schema:
|
|
2
|
+
readonly $schema: string;
|
|
3
3
|
readonly data: import("@sinclair/typebox").TObject<{}>;
|
|
4
4
|
readonly events: readonly [];
|
|
5
5
|
readonly isContainer: true;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { defineConfig, Type } from '../type-utils';
|
|
2
2
|
import { getChildrenTemplate, getItems } from '../utils/layout';
|
|
3
|
+
import { $SCHEMA } from '../utils/constants';
|
|
3
4
|
const config = defineConfig({
|
|
4
|
-
$schema:
|
|
5
|
+
$schema: $SCHEMA,
|
|
5
6
|
data: Type.Object({}),
|
|
6
7
|
events: [],
|
|
7
8
|
isContainer: true,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const config: {
|
|
2
|
-
readonly $schema:
|
|
2
|
+
readonly $schema: string;
|
|
3
3
|
readonly data: import("@sinclair/typebox").TObject<{}>;
|
|
4
4
|
readonly events: readonly [];
|
|
5
5
|
readonly isContainer: true;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { defineConfig, Type } from '../type-utils';
|
|
2
2
|
import { getChildrenTemplate, getItems } from '../utils/layout';
|
|
3
|
+
import { $SCHEMA } from '../utils/constants';
|
|
3
4
|
const config = defineConfig({
|
|
4
|
-
$schema:
|
|
5
|
+
$schema: $SCHEMA,
|
|
5
6
|
data: Type.Object({}),
|
|
6
7
|
events: [],
|
|
7
8
|
isContainer: true,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const config: {
|
|
2
|
-
readonly $schema:
|
|
2
|
+
readonly $schema: string;
|
|
3
3
|
readonly data: import("@sinclair/typebox").TObject<{}>;
|
|
4
4
|
readonly events: readonly [];
|
|
5
5
|
readonly isContainer: true;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { defineConfig, Type } from '../type-utils';
|
|
2
2
|
import { getChildrenTemplate, getItems } from '../utils/layout';
|
|
3
|
+
import { $SCHEMA } from '../utils/constants';
|
|
3
4
|
const config = defineConfig({
|
|
4
|
-
$schema:
|
|
5
|
+
$schema: $SCHEMA,
|
|
5
6
|
data: Type.Object({}),
|
|
6
7
|
events: [],
|
|
7
8
|
isContainer: true,
|
|
@@ -18,7 +18,7 @@ declare const properties: import("@sinclair/typebox").TObject<{
|
|
|
18
18
|
export type DataType = Simplify<Static<typeof data>>;
|
|
19
19
|
export type PropsType = Simplify<Static<typeof properties>>;
|
|
20
20
|
declare const config: {
|
|
21
|
-
readonly $schema:
|
|
21
|
+
readonly $schema: string;
|
|
22
22
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
23
23
|
defaultShow: import("@sinclair/typebox").TBoolean;
|
|
24
24
|
template: import("@sinclair/typebox").TString;
|