@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
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import { Type } from '@sinclair/typebox';
|
|
2
|
+
import { defineConfig } from '../type-utils';
|
|
3
|
+
import { $SCHEMA } from '../utils/constants';
|
|
4
|
+
const data = Type.Object({
|
|
5
|
+
scrollX: Type.Boolean({
|
|
6
|
+
title: '允许横向滚动',
|
|
7
|
+
default: false,
|
|
8
|
+
'x-linkages': [
|
|
9
|
+
{
|
|
10
|
+
type: 'value:visible',
|
|
11
|
+
target: '*(scrollLeft)',
|
|
12
|
+
condition: '{{ $self.value }}',
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
'x-category': '基础属性',
|
|
16
|
+
'x-index': 2,
|
|
17
|
+
description: '开启后,将开启横向滚动条,组件支持左右滚动',
|
|
18
|
+
}),
|
|
19
|
+
scrollY: Type.Boolean({
|
|
20
|
+
title: '允许纵向滚动',
|
|
21
|
+
default: true,
|
|
22
|
+
'x-linkages': [
|
|
23
|
+
{
|
|
24
|
+
type: 'value:visible',
|
|
25
|
+
target: '*(scrollTop)',
|
|
26
|
+
condition: '{{ $self.value }}',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
'x-category': '基础属性',
|
|
30
|
+
'x-index': 3,
|
|
31
|
+
description: '开启后,将开启纵向滚动条,组件支持上下滚动',
|
|
32
|
+
}),
|
|
33
|
+
scrollIntoView: Type.String({
|
|
34
|
+
title: '滚到的元素ID',
|
|
35
|
+
'x-category': '高级属性',
|
|
36
|
+
'x-index': 4,
|
|
37
|
+
description: '将当前的元素滚动到浏览器窗口的可视区域内',
|
|
38
|
+
'x-helper-text': '小程序端需启用 scroll-view 增强特性后生效',
|
|
39
|
+
}),
|
|
40
|
+
scrollLeft: Type.Number({
|
|
41
|
+
title: '横向滚动条位置',
|
|
42
|
+
'x-category': '高级属性',
|
|
43
|
+
'x-index': 5,
|
|
44
|
+
description: '输入默认值,横向滚动条将默认移动到该位置',
|
|
45
|
+
}),
|
|
46
|
+
scrollTop: Type.Number({
|
|
47
|
+
title: '竖向滚动条位置',
|
|
48
|
+
'x-category': '高级属性',
|
|
49
|
+
'x-index': 6,
|
|
50
|
+
description: '输入默认值,竖向滚动条将默认移动到该位置',
|
|
51
|
+
}),
|
|
52
|
+
lowerThreshold: Type.Number({
|
|
53
|
+
title: '距底部/右边多远时,触发scrolltolower事件',
|
|
54
|
+
default: 50,
|
|
55
|
+
'x-index': 7,
|
|
56
|
+
'x-category': '高级属性',
|
|
57
|
+
}),
|
|
58
|
+
upperThreshold: Type.Number({
|
|
59
|
+
title: '距顶部/左边多远时,触发scrolltoupper事件',
|
|
60
|
+
default: 50,
|
|
61
|
+
'x-index': 8,
|
|
62
|
+
'x-category': '高级属性',
|
|
63
|
+
}),
|
|
64
|
+
observerSelector: Type.Array(Type.String({
|
|
65
|
+
title: '目标元素class',
|
|
66
|
+
}), {
|
|
67
|
+
title: '滚动到目标元素附近,触发scrollToTarget事件',
|
|
68
|
+
'x-index': 9,
|
|
69
|
+
'x-category': '高级属性',
|
|
70
|
+
'x-helper-text': '滚动到目标元素附近时触发scrollToTarget事件',
|
|
71
|
+
}),
|
|
72
|
+
// observerThreshold: Type.Number({
|
|
73
|
+
// title: '滚动到目标元素的阈值',
|
|
74
|
+
// 'x-index': 10,
|
|
75
|
+
// 'x-category': '高级属性',
|
|
76
|
+
// default: 0.5,
|
|
77
|
+
// description: '滚动到目标元素的阈值,默认0.5',
|
|
78
|
+
// 'x-helper-text': '滚动到目标元素的阈值,默认0.5,仅支持web端',
|
|
79
|
+
// 'x-platforms': ['WEB'],
|
|
80
|
+
// }),
|
|
81
|
+
rootMargin: Type.Object({
|
|
82
|
+
top: Type.String({
|
|
83
|
+
title: '顶部边距,单位px',
|
|
84
|
+
default: '0px',
|
|
85
|
+
}),
|
|
86
|
+
bottom: Type.String({
|
|
87
|
+
title: '底部边距,单位px',
|
|
88
|
+
default: '0px',
|
|
89
|
+
}),
|
|
90
|
+
left: Type.String({
|
|
91
|
+
title: '左边边距,单位px',
|
|
92
|
+
default: '0px',
|
|
93
|
+
}),
|
|
94
|
+
right: Type.String({
|
|
95
|
+
title: '右边边距,单位px',
|
|
96
|
+
default: '0px',
|
|
97
|
+
}),
|
|
98
|
+
}, {
|
|
99
|
+
title: '用来扩展(或收缩)参照节点布局区域的边界',
|
|
100
|
+
'x-index': 11,
|
|
101
|
+
'x-category': '高级属性',
|
|
102
|
+
description: '指定页面显示区域作为参照区域之一,使用margins来扩展(或收缩)参照节点布局区域的边界,单位px。',
|
|
103
|
+
'x-component': 'jsontext',
|
|
104
|
+
}),
|
|
105
|
+
showScrollbar: Type.Boolean({
|
|
106
|
+
title: '滚动条显隐控制',
|
|
107
|
+
default: true,
|
|
108
|
+
'x-platforms': ['MP'],
|
|
109
|
+
'x-category': '高级属性',
|
|
110
|
+
'x-index': 80,
|
|
111
|
+
description: '控制滚动条是否显示/隐藏',
|
|
112
|
+
'x-helper-text': '隐藏滚动条需启用 scroll-view 增强特性后生效',
|
|
113
|
+
'x-linkages': [
|
|
114
|
+
{
|
|
115
|
+
type: 'value:state',
|
|
116
|
+
target: '*(enhanced)',
|
|
117
|
+
condition: '{{ !$self.value }}',
|
|
118
|
+
state: {
|
|
119
|
+
value: true,
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
],
|
|
123
|
+
}),
|
|
124
|
+
enhanced: Type.Boolean({
|
|
125
|
+
title: '启用 scroll-view 增强特性',
|
|
126
|
+
default: true,
|
|
127
|
+
'x-linkages': [
|
|
128
|
+
{
|
|
129
|
+
type: 'value:visible',
|
|
130
|
+
target: '*(bounces,pagingEnabled,fastDeceleration)',
|
|
131
|
+
condition: '{{ $self.value }}',
|
|
132
|
+
},
|
|
133
|
+
],
|
|
134
|
+
'x-platforms': ['MP'],
|
|
135
|
+
'x-category': '高级属性',
|
|
136
|
+
'x-index': 90,
|
|
137
|
+
description: '开启scroll-view增强特性 ',
|
|
138
|
+
}),
|
|
139
|
+
bounces: Type.Boolean({
|
|
140
|
+
title: 'iOS 下 scroll-view 边界弹性控制',
|
|
141
|
+
default: true,
|
|
142
|
+
'x-platforms': ['MP'],
|
|
143
|
+
'x-index': 91,
|
|
144
|
+
'x-category': '高级属性',
|
|
145
|
+
}),
|
|
146
|
+
pagingEnabled: Type.Boolean({
|
|
147
|
+
title: '分页滑动效果',
|
|
148
|
+
default: false,
|
|
149
|
+
'x-platforms': ['MP'],
|
|
150
|
+
'x-index': 93,
|
|
151
|
+
'x-category': '高级属性',
|
|
152
|
+
}),
|
|
153
|
+
fastDeceleration: Type.Boolean({
|
|
154
|
+
title: '滑动减速速率控制',
|
|
155
|
+
default: false,
|
|
156
|
+
'x-platforms': ['MP'],
|
|
157
|
+
'x-index': 94,
|
|
158
|
+
'x-category': '高级属性',
|
|
159
|
+
}),
|
|
160
|
+
refresherEnabled: Type.Boolean({
|
|
161
|
+
title: '开启自定义下拉刷新',
|
|
162
|
+
default: false,
|
|
163
|
+
'x-linkages': [
|
|
164
|
+
{
|
|
165
|
+
type: 'value:visible',
|
|
166
|
+
target: '*(refresherThreshold,refresherDefaultStyle,refresherBackground,refresherTriggered)',
|
|
167
|
+
condition: '{{ $self.value }}',
|
|
168
|
+
},
|
|
169
|
+
],
|
|
170
|
+
'x-platforms': ['MP'],
|
|
171
|
+
'x-category': '高级属性',
|
|
172
|
+
'x-index': 100,
|
|
173
|
+
description: '开启后可自定义对下拉刷新进行相关配置',
|
|
174
|
+
}),
|
|
175
|
+
refresherThreshold: Type.Number({
|
|
176
|
+
title: '设置自定义下拉刷新阈值',
|
|
177
|
+
default: 50,
|
|
178
|
+
'x-index': 101,
|
|
179
|
+
'x-platforms': ['MP'],
|
|
180
|
+
'x-category': '高级属性',
|
|
181
|
+
}),
|
|
182
|
+
refresherDefaultStyle: Type.String({
|
|
183
|
+
title: '设置自定义下拉刷新默认样式',
|
|
184
|
+
default: 'block',
|
|
185
|
+
'x-component': 'radio',
|
|
186
|
+
enum: [
|
|
187
|
+
{
|
|
188
|
+
label: 'black',
|
|
189
|
+
value: 'black',
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
label: 'white',
|
|
193
|
+
value: 'white',
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
label: 'none',
|
|
197
|
+
value: 'none',
|
|
198
|
+
},
|
|
199
|
+
],
|
|
200
|
+
'x-platforms': ['MP'],
|
|
201
|
+
'x-index': 102,
|
|
202
|
+
'x-category': '高级属性',
|
|
203
|
+
}),
|
|
204
|
+
refresherBackground: Type.String({
|
|
205
|
+
title: '设置自定义下拉刷新区域背景颜色',
|
|
206
|
+
'x-component': 'color',
|
|
207
|
+
default: '#fff',
|
|
208
|
+
'x-platforms': ['MP'],
|
|
209
|
+
'x-index': 103,
|
|
210
|
+
'x-category': '高级属性',
|
|
211
|
+
}),
|
|
212
|
+
refresherTriggered: Type.Boolean({
|
|
213
|
+
title: '设置当前下拉刷新状态',
|
|
214
|
+
default: true,
|
|
215
|
+
'x-platforms': ['MP'],
|
|
216
|
+
'x-index': 104,
|
|
217
|
+
'x-category': '高级属性',
|
|
218
|
+
}),
|
|
219
|
+
scrollAnchoring: Type.Boolean({
|
|
220
|
+
title: '开启 scroll anchoring 特性',
|
|
221
|
+
default: false,
|
|
222
|
+
'x-platforms': ['MP'],
|
|
223
|
+
'x-category': '高级属性',
|
|
224
|
+
'x-index': 110,
|
|
225
|
+
description: '开启scroll-anchoring特性',
|
|
226
|
+
}),
|
|
227
|
+
enableFlex: Type.Boolean({
|
|
228
|
+
title: '启用 flexbox 布局',
|
|
229
|
+
default: false,
|
|
230
|
+
'x-platforms': ['MP'],
|
|
231
|
+
'x-category': '高级属性',
|
|
232
|
+
'x-index': 120,
|
|
233
|
+
description: '开启flexbox布局',
|
|
234
|
+
}),
|
|
235
|
+
enableBackToTop: Type.Boolean({
|
|
236
|
+
title: 'iOS点击顶部状态栏、安卓双击标题栏时,滚动条返回顶部,只支持竖向',
|
|
237
|
+
default: false,
|
|
238
|
+
'x-platforms': ['MP'],
|
|
239
|
+
'x-category': '高级属性',
|
|
240
|
+
'x-index': 130,
|
|
241
|
+
description: '开启后当执行对应操作后滚动条将自动返回顶部',
|
|
242
|
+
}),
|
|
243
|
+
scrollWithAnimation: Type.Boolean({
|
|
244
|
+
title: '在设置滚动条位置时使用动画过渡',
|
|
245
|
+
default: false,
|
|
246
|
+
'x-platforms': ['MP'],
|
|
247
|
+
'x-index': 140,
|
|
248
|
+
'x-category': '高级属性',
|
|
249
|
+
description: '开启滚动条动画',
|
|
250
|
+
}),
|
|
251
|
+
});
|
|
252
|
+
export default defineConfig({
|
|
253
|
+
$schema: $SCHEMA,
|
|
254
|
+
data,
|
|
255
|
+
isContainer: true,
|
|
256
|
+
mpOrigin: 'scroll-view',
|
|
257
|
+
events: [
|
|
258
|
+
{ name: 'onReady', title: '滚动容器初次渲染完成时触发' },
|
|
259
|
+
{
|
|
260
|
+
name: 'scroll',
|
|
261
|
+
title: '滚动时触发',
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
name: 'scrollToTarget',
|
|
265
|
+
title: '滚动到指定位置时触发',
|
|
266
|
+
detail: Type.Object({
|
|
267
|
+
scrollViewContext: Type.Object({}, {
|
|
268
|
+
title: 'scrollViewContext实例',
|
|
269
|
+
description: 'scrollViewContext实例,web端为HTMLDivElement,小程序端为ScrollView实例',
|
|
270
|
+
}),
|
|
271
|
+
}),
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
name: 'scrolltolower',
|
|
275
|
+
title: '滚动到底部/右边时触发',
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
name: 'scrolltoupper',
|
|
279
|
+
title: '滚动到顶部/左边时触发',
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
name: 'dragstart',
|
|
283
|
+
'x-platforms': ['MP'],
|
|
284
|
+
title: '滑动开始事件(同时开启 enhanced 属性后生效)',
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
name: 'dragging',
|
|
288
|
+
'x-platforms': ['MP'],
|
|
289
|
+
title: '滑动事件(同时开启 enhanced 属性后生效)',
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
name: 'dragend',
|
|
293
|
+
'x-platforms': ['MP'],
|
|
294
|
+
title: '滑动结束事件(同时开启 enhanced 属性后生效)',
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
name: 'refresherpulling',
|
|
298
|
+
'x-platforms': ['MP'],
|
|
299
|
+
title: '自定义下拉刷新控件被下拉',
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
name: 'refresherrefresh',
|
|
303
|
+
'x-platforms': ['MP'],
|
|
304
|
+
title: '自定义下拉刷新被触发',
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
name: 'refresherrestore',
|
|
308
|
+
'x-platforms': ['MP'],
|
|
309
|
+
title: '自定义下拉刷新被复位',
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
name: 'refresherabort',
|
|
313
|
+
'x-platforms': ['MP'],
|
|
314
|
+
title: '自定义下拉刷新被中止',
|
|
315
|
+
},
|
|
316
|
+
],
|
|
317
|
+
methods: [
|
|
318
|
+
{
|
|
319
|
+
name: 'scrollIntoElement',
|
|
320
|
+
label: '滚动到指定位置',
|
|
321
|
+
params: Type.Object({
|
|
322
|
+
selector: Type.String({
|
|
323
|
+
title: 'id或class选择器',
|
|
324
|
+
description: 'id或class选择器,格式:#id或.class',
|
|
325
|
+
'x-helper-text': '请输入id或class选择器,格式:#id或.class',
|
|
326
|
+
}),
|
|
327
|
+
}, []),
|
|
328
|
+
},
|
|
329
|
+
],
|
|
330
|
+
meta: {
|
|
331
|
+
title: '滚动容器',
|
|
332
|
+
description: '当组件元素内容长度大于滚动容器时,滚动容器会出滚动条用来对页面内容进行滑动展示。',
|
|
333
|
+
category: '布局',
|
|
334
|
+
categoryOrder: 200,
|
|
335
|
+
componentOrder: 110,
|
|
336
|
+
figureIcon: '../figureIcons/ScrollView.svg',
|
|
337
|
+
icon: '../icons/ScrollView.svg',
|
|
338
|
+
},
|
|
339
|
+
configMeta: {
|
|
340
|
+
docsUrl: 'https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/grid/ScrollView',
|
|
341
|
+
shortcut: {
|
|
342
|
+
props: ['scrollX', 'scrollY'],
|
|
343
|
+
extra: {
|
|
344
|
+
container: {
|
|
345
|
+
'x-component': 'container',
|
|
346
|
+
'x-component-props': [
|
|
347
|
+
'gsd-h5-react:Text',
|
|
348
|
+
'CLOUDBASE_STANDARD:Button',
|
|
349
|
+
'gsd-h5-react:Image',
|
|
350
|
+
'CLOUDBASE_STANDARD:FormInput',
|
|
351
|
+
],
|
|
352
|
+
'x-index': 1,
|
|
353
|
+
},
|
|
354
|
+
},
|
|
355
|
+
},
|
|
356
|
+
},
|
|
357
|
+
});
|
|
@@ -17,7 +17,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
17
17
|
easingFunction: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
18
18
|
}>;
|
|
19
19
|
declare const config: {
|
|
20
|
-
readonly $schema:
|
|
20
|
+
readonly $schema: string;
|
|
21
21
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
22
22
|
interval: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
23
23
|
vertical: 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
|
const data = Type.Object({
|
|
3
4
|
interval: Type.Optional(Type.Number({
|
|
4
5
|
title: '自动切换时间间隔(毫秒)',
|
|
@@ -150,7 +151,7 @@ const data = Type.Object({
|
|
|
150
151
|
})),
|
|
151
152
|
});
|
|
152
153
|
const config = defineConfig({
|
|
153
|
-
$schema:
|
|
154
|
+
$schema: $SCHEMA,
|
|
154
155
|
data,
|
|
155
156
|
events: [
|
|
156
157
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://comp-public-replace-
|
|
2
|
+
"$schema": "https://comp-public-replace-cos.cloudbase.net/schema/lcds_component.json",
|
|
3
3
|
"data": {
|
|
4
4
|
"properties": {
|
|
5
5
|
"dataSourceType": {
|
|
@@ -230,14 +230,8 @@
|
|
|
230
230
|
}
|
|
231
231
|
],
|
|
232
232
|
"blackListConfig": {
|
|
233
|
-
"format": [
|
|
234
|
-
|
|
235
|
-
"x-image"
|
|
236
|
-
],
|
|
237
|
-
"type": [
|
|
238
|
-
"object",
|
|
239
|
-
"array"
|
|
240
|
-
]
|
|
233
|
+
"format": ["x-file", "x-image"],
|
|
234
|
+
"type": ["object", "array"]
|
|
241
235
|
},
|
|
242
236
|
"customRelOptions": {
|
|
243
237
|
"number": [
|
|
@@ -453,9 +447,7 @@
|
|
|
453
447
|
}
|
|
454
448
|
}
|
|
455
449
|
},
|
|
456
|
-
"required": [
|
|
457
|
-
"records"
|
|
458
|
-
]
|
|
450
|
+
"required": ["records"]
|
|
459
451
|
}
|
|
460
452
|
}
|
|
461
453
|
}
|
|
@@ -487,9 +479,7 @@
|
|
|
487
479
|
"x-index": 70,
|
|
488
480
|
"x-runtime-default": true,
|
|
489
481
|
"x-category": "基础属性",
|
|
490
|
-
"x-platforms": [
|
|
491
|
-
"PCWEB"
|
|
492
|
-
],
|
|
482
|
+
"x-platforms": ["PCWEB"],
|
|
493
483
|
"description": "对 APIs 调用方法填充的表格列头排序图标进行显隐控制 "
|
|
494
484
|
},
|
|
495
485
|
"columnSets": {
|
|
@@ -721,24 +711,16 @@
|
|
|
721
711
|
"title": "选中数据改变",
|
|
722
712
|
"name": "rowsSelect",
|
|
723
713
|
"description": "可将当前选中的行记录,作为数组传参出去",
|
|
724
|
-
"x-platforms": [
|
|
725
|
-
"MOBILEWEB",
|
|
726
|
-
"PCWEB"
|
|
727
|
-
]
|
|
714
|
+
"x-platforms": ["MOBILEWEB", "PCWEB"]
|
|
728
715
|
},
|
|
729
716
|
{
|
|
730
717
|
"title": "查询成功",
|
|
731
718
|
"name": "querySuccess",
|
|
732
719
|
"description": "查询成功的回调事件",
|
|
733
|
-
"x-platforms": [
|
|
734
|
-
"MOBILEWEB",
|
|
735
|
-
"PCWEB"
|
|
736
|
-
]
|
|
720
|
+
"x-platforms": ["MOBILEWEB", "PCWEB"]
|
|
737
721
|
}
|
|
738
722
|
],
|
|
739
|
-
"platforms": [
|
|
740
|
-
"web"
|
|
741
|
-
],
|
|
723
|
+
"platforms": ["web"],
|
|
742
724
|
"meta": {
|
|
743
725
|
"title": "数据表格(旧)",
|
|
744
726
|
"componentName": "Table",
|
|
@@ -747,10 +729,7 @@
|
|
|
747
729
|
"category": "数据容器",
|
|
748
730
|
"categoryOrder": 100,
|
|
749
731
|
"componentOrder": 40,
|
|
750
|
-
"platform": [
|
|
751
|
-
"MOBILEWEB",
|
|
752
|
-
"PCWEB"
|
|
753
|
-
],
|
|
732
|
+
"platform": ["MOBILEWEB", "PCWEB"],
|
|
754
733
|
"visible": [],
|
|
755
734
|
"selectableBlock": {
|
|
756
735
|
"events": [
|
|
@@ -773,13 +752,7 @@
|
|
|
773
752
|
},
|
|
774
753
|
"configMeta": {
|
|
775
754
|
"shortcut": {
|
|
776
|
-
"props": [
|
|
777
|
-
"dataSourceType",
|
|
778
|
-
"bindMetadata",
|
|
779
|
-
"bindConnectMetadata",
|
|
780
|
-
"connectorMethod",
|
|
781
|
-
"connectorParams"
|
|
782
|
-
]
|
|
755
|
+
"props": ["dataSourceType", "bindMetadata", "bindConnectMetadata", "connectorMethod", "connectorParams"]
|
|
783
756
|
},
|
|
784
757
|
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/database/ModelTable",
|
|
785
758
|
"contextData": {
|
|
@@ -817,28 +790,19 @@
|
|
|
817
790
|
{
|
|
818
791
|
"name": "import",
|
|
819
792
|
"label": "数据导入",
|
|
820
|
-
"x-platforms": [
|
|
821
|
-
"MOBILEWEB",
|
|
822
|
-
"PCWEB"
|
|
823
|
-
],
|
|
793
|
+
"x-platforms": ["MOBILEWEB", "PCWEB"],
|
|
824
794
|
"description": "仅当数据源为数据模型场景时支持导入,可按照模版,上传 excel 文件,录入数据"
|
|
825
795
|
},
|
|
826
796
|
{
|
|
827
797
|
"name": "exportOptionalMode",
|
|
828
798
|
"label": "数据导出(可选导出模式)",
|
|
829
|
-
"x-platforms": [
|
|
830
|
-
"MOBILEWEB",
|
|
831
|
-
"PCWEB"
|
|
832
|
-
],
|
|
799
|
+
"x-platforms": ["MOBILEWEB", "PCWEB"],
|
|
833
800
|
"description": "支持将当前选中数据导出为 excel"
|
|
834
801
|
},
|
|
835
802
|
{
|
|
836
803
|
"name": "export",
|
|
837
804
|
"label": "数据导出(导出选中数据)",
|
|
838
|
-
"x-platforms": [
|
|
839
|
-
"MOBILEWEB",
|
|
840
|
-
"PCWEB"
|
|
841
|
-
],
|
|
805
|
+
"x-platforms": ["MOBILEWEB", "PCWEB"],
|
|
842
806
|
"description": "支持将当前选中数据导出为 excel"
|
|
843
807
|
},
|
|
844
808
|
{
|
|
@@ -853,37 +817,25 @@
|
|
|
853
817
|
}
|
|
854
818
|
}
|
|
855
819
|
},
|
|
856
|
-
"x-platforms": [
|
|
857
|
-
"MOBILEWEB",
|
|
858
|
-
"PCWEB"
|
|
859
|
-
],
|
|
820
|
+
"x-platforms": ["MOBILEWEB", "PCWEB"],
|
|
860
821
|
"description": "仅当数据源为数据模型场景时,支持删除行数据"
|
|
861
822
|
},
|
|
862
823
|
{
|
|
863
824
|
"name": "deleteSelected",
|
|
864
825
|
"label": "删除选中数据",
|
|
865
|
-
"x-platforms": [
|
|
866
|
-
"MOBILEWEB",
|
|
867
|
-
"PCWEB"
|
|
868
|
-
],
|
|
826
|
+
"x-platforms": ["MOBILEWEB", "PCWEB"],
|
|
869
827
|
"description": "仅当数据源为数据模型场景时,支持删除当前选中的行记录"
|
|
870
828
|
},
|
|
871
829
|
{
|
|
872
830
|
"name": "refresh",
|
|
873
831
|
"label": "刷新表格(查看第1页数据)",
|
|
874
|
-
"x-platforms": [
|
|
875
|
-
"MOBILEWEB",
|
|
876
|
-
"PCWEB"
|
|
877
|
-
],
|
|
832
|
+
"x-platforms": ["MOBILEWEB", "PCWEB"],
|
|
878
833
|
"description": "刷新表格(查看第 1 页数据)"
|
|
879
834
|
},
|
|
880
835
|
{
|
|
881
836
|
"name": "refreshKeepPage",
|
|
882
837
|
"label": "刷新表格(查看当前页数据)",
|
|
883
|
-
"x-platforms": [
|
|
884
|
-
"MOBILEWEB",
|
|
885
|
-
"PCWEB"
|
|
886
|
-
],
|
|
838
|
+
"x-platforms": ["MOBILEWEB", "PCWEB"],
|
|
887
839
|
"description": "刷新表格(查看当前页数据)"
|
|
888
840
|
}
|
|
889
841
|
]
|
|
@@ -9,7 +9,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
9
9
|
panel: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
|
|
10
10
|
}>;
|
|
11
11
|
declare const config: {
|
|
12
|
-
readonly $schema:
|
|
12
|
+
readonly $schema: string;
|
|
13
13
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
14
14
|
isMultipleSlot: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
15
15
|
tabs: import("@sinclair/typebox").TReadonly<import("@sinclair/typebox").TArray<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 data = Type.Object({
|
|
3
4
|
isMultipleSlot: Type.Optional(Type.Boolean({
|
|
4
5
|
title: '启用多个插槽',
|
|
@@ -96,7 +97,7 @@ const data = Type.Object({
|
|
|
96
97
|
})),
|
|
97
98
|
});
|
|
98
99
|
const config = defineConfig({
|
|
99
|
-
$schema:
|
|
100
|
+
$schema: $SCHEMA,
|
|
100
101
|
data,
|
|
101
102
|
events: [
|
|
102
103
|
{
|
|
@@ -15,7 +15,7 @@ declare const events: readonly [{
|
|
|
15
15
|
}];
|
|
16
16
|
export type EventsType = Simplify<StaticEventsType<typeof events>>;
|
|
17
17
|
declare const _default: {
|
|
18
|
-
readonly $schema:
|
|
18
|
+
readonly $schema: string;
|
|
19
19
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
20
20
|
text: import("@sinclair/typebox").TString;
|
|
21
21
|
level: import("@sinclair/typebox").TUnsafe<"0" | "1" | "2" | "3" | "4" | "5" | "6">;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Tuple, defineConfig, Type } from '../type-utils';
|
|
2
|
+
import { $SCHEMA } from '../utils/constants';
|
|
2
3
|
const data = Type.Object({
|
|
3
4
|
text: Type.String({
|
|
4
5
|
title: '文本内容',
|
|
@@ -84,7 +85,7 @@ const events = [
|
|
|
84
85
|
},
|
|
85
86
|
];
|
|
86
87
|
export default defineConfig({
|
|
87
|
-
$schema:
|
|
88
|
+
$schema: $SCHEMA,
|
|
88
89
|
data,
|
|
89
90
|
events,
|
|
90
91
|
meta: {
|
|
@@ -10,7 +10,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
10
10
|
disableFallbackSharePage: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
11
11
|
}>;
|
|
12
12
|
declare const config: {
|
|
13
|
-
readonly $schema:
|
|
13
|
+
readonly $schema: string;
|
|
14
14
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
15
15
|
adType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<string>>;
|
|
16
16
|
unitId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineConfig, Tuple, Type } from '../type-utils';
|
|
2
2
|
import { X_RUNTIME_DEFAULT } from '../type-utils/x-runtime-default';
|
|
3
|
+
import { $SCHEMA } from '../utils/constants';
|
|
3
4
|
const AD_TYPE = [
|
|
4
5
|
{ label: 'Banner 广告', value: 'banner' },
|
|
5
6
|
{ label: '视频广告', value: 'video' },
|
|
@@ -124,7 +125,7 @@ const data = Type.Partial(Type.Object({
|
|
|
124
125
|
}),
|
|
125
126
|
}));
|
|
126
127
|
const config = defineConfig({
|
|
127
|
-
$schema:
|
|
128
|
+
$schema: $SCHEMA,
|
|
128
129
|
data,
|
|
129
130
|
classes: [
|
|
130
131
|
{
|
|
@@ -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
|
template: import("@sinclair/typebox").TString;
|
|
16
16
|
src: 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 NORMAL_TPL = `
|
|
3
4
|
[extra.commonStyle]
|
|
4
5
|
display = "flex"
|
|
@@ -251,7 +252,7 @@ const properties = Type.Composite([
|
|
|
251
252
|
]);
|
|
252
253
|
// export default
|
|
253
254
|
const config = defineConfig({
|
|
254
|
-
$schema:
|
|
255
|
+
$schema: $SCHEMA,
|
|
255
256
|
// 属性定义
|
|
256
257
|
data,
|
|
257
258
|
// 只读属性定义
|