@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,5 +1,6 @@
|
|
|
1
1
|
import { Type } from '../type-utils';
|
|
2
2
|
import { svgDataUri as svg } from '../svg-tag';
|
|
3
|
+
import { $SCHEMA } from '../utils/constants';
|
|
3
4
|
import { genericErrorType } from '../type-utils/error';
|
|
4
5
|
const stringTemplate = `
|
|
5
6
|
{{#with (helper_utils 'get' _field 'name') as |_name|}}
|
|
@@ -1705,7 +1706,7 @@ const data = Type.Object({
|
|
|
1705
1706
|
})),
|
|
1706
1707
|
});
|
|
1707
1708
|
export default {
|
|
1708
|
-
$schema:
|
|
1709
|
+
$schema: $SCHEMA,
|
|
1709
1710
|
data,
|
|
1710
1711
|
events: [
|
|
1711
1712
|
{
|
|
@@ -23,7 +23,7 @@ declare const events: [{
|
|
|
23
23
|
}>;
|
|
24
24
|
}];
|
|
25
25
|
declare const config: {
|
|
26
|
-
readonly $schema:
|
|
26
|
+
readonly $schema: string;
|
|
27
27
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
28
28
|
prizeList: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
29
29
|
title: 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 data = Type.Object({
|
|
3
4
|
prizeList: Type.Array(Type.Object({
|
|
4
5
|
title: Type.String({
|
|
@@ -158,7 +159,7 @@ const events = Tuple([
|
|
|
158
159
|
},
|
|
159
160
|
]);
|
|
160
161
|
const config = defineConfig({
|
|
161
|
-
$schema:
|
|
162
|
+
$schema: $SCHEMA,
|
|
162
163
|
data,
|
|
163
164
|
events,
|
|
164
165
|
meta: {
|
|
@@ -7,7 +7,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
7
7
|
customButton: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnsafe<import("react").ReactNode>>;
|
|
8
8
|
}>;
|
|
9
9
|
declare const config: {
|
|
10
|
-
readonly $schema:
|
|
10
|
+
readonly $schema: string;
|
|
11
11
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
12
12
|
content: import("@sinclair/typebox").TString;
|
|
13
13
|
visible: 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
|
content: Type.String({
|
|
4
5
|
type: 'string',
|
|
@@ -29,7 +30,7 @@ const data = Type.Object({
|
|
|
29
30
|
})),
|
|
30
31
|
});
|
|
31
32
|
const config = defineConfig({
|
|
32
|
-
$schema:
|
|
33
|
+
$schema: $SCHEMA,
|
|
33
34
|
data,
|
|
34
35
|
methods: [
|
|
35
36
|
{
|
|
@@ -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
|
"navOption": {
|
|
@@ -108,18 +108,13 @@
|
|
|
108
108
|
"icon": "weda-editor-icon-link",
|
|
109
109
|
"tooltip": [
|
|
110
110
|
{
|
|
111
|
-
"platform": [
|
|
112
|
-
"ALL",
|
|
113
|
-
"MP"
|
|
114
|
-
],
|
|
111
|
+
"platform": ["ALL", "MP"],
|
|
115
112
|
"text": "小程序平台不支持跳转外部链接"
|
|
116
113
|
}
|
|
117
114
|
],
|
|
118
115
|
"disabled": [
|
|
119
116
|
{
|
|
120
|
-
"platform": [
|
|
121
|
-
"MP"
|
|
122
|
-
]
|
|
117
|
+
"platform": ["MP"]
|
|
123
118
|
}
|
|
124
119
|
]
|
|
125
120
|
}
|
|
@@ -182,9 +177,7 @@
|
|
|
182
177
|
"x-category": "基础属性",
|
|
183
178
|
"x-index": 120,
|
|
184
179
|
"x-component-props": {
|
|
185
|
-
"hideAddPlatform": [
|
|
186
|
-
"MP"
|
|
187
|
-
],
|
|
180
|
+
"hideAddPlatform": ["MP"],
|
|
188
181
|
"addHidden": true
|
|
189
182
|
},
|
|
190
183
|
"x-linkages": [
|
|
@@ -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
|
"title": {
|
|
@@ -14,9 +14,7 @@
|
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"events": [],
|
|
17
|
-
"platforms": [
|
|
18
|
-
"web"
|
|
19
|
-
],
|
|
17
|
+
"platforms": ["web"],
|
|
20
18
|
"meta": {
|
|
21
19
|
"title": "布局组件(旧)",
|
|
22
20
|
"description": "用于构建带有顶部导航的页面布局。",
|
|
@@ -24,10 +22,7 @@
|
|
|
24
22
|
"category": "布局",
|
|
25
23
|
"categoryOrder": 200,
|
|
26
24
|
"componentOrder": 100,
|
|
27
|
-
"platform": [
|
|
28
|
-
"MOBILEWEB",
|
|
29
|
-
"PCWEB"
|
|
30
|
-
],
|
|
25
|
+
"platform": ["MOBILEWEB", "PCWEB"],
|
|
31
26
|
"visible": []
|
|
32
27
|
},
|
|
33
28
|
"configMeta": {
|
|
@@ -8,7 +8,7 @@ declare const data: import("@sinclair/typebox").TObject<{
|
|
|
8
8
|
}>;
|
|
9
9
|
export type DataType = Simplify<Static<typeof data>>;
|
|
10
10
|
declare const config: {
|
|
11
|
-
readonly $schema:
|
|
11
|
+
readonly $schema: string;
|
|
12
12
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
13
13
|
text: import("@sinclair/typebox").TString;
|
|
14
14
|
showMenuByLongpress: import("@sinclair/typebox").TBoolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineConfig, Type } from '../type-utils';
|
|
2
|
+
import { $SCHEMA } from '../utils/constants';
|
|
2
3
|
// 属性类型定义
|
|
3
4
|
const data = Type.Object({
|
|
4
5
|
text: Type.String({
|
|
@@ -38,7 +39,7 @@ const data = Type.Object({
|
|
|
38
39
|
const properties = Type.Pick(data, ['text', 'showMenuByLongpress', 'backgroundColor', 'foregroundColor']);
|
|
39
40
|
// export default
|
|
40
41
|
const config = defineConfig({
|
|
41
|
-
$schema:
|
|
42
|
+
$schema: $SCHEMA,
|
|
42
43
|
// 属性定义
|
|
43
44
|
data,
|
|
44
45
|
// 只读属性定义
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
readonly $schema:
|
|
2
|
+
readonly $schema: string;
|
|
3
3
|
readonly data: import("@sinclair/typebox").TObject<{
|
|
4
4
|
data: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{}>>;
|
|
5
5
|
key: import("@sinclair/typebox").TString;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Type } from '@sinclair/typebox';
|
|
2
2
|
import { defineConfig } from '../type-utils';
|
|
3
|
+
import { $SCHEMA } from '../utils/constants';
|
|
3
4
|
export default defineConfig({
|
|
4
|
-
$schema:
|
|
5
|
+
$schema: $SCHEMA,
|
|
5
6
|
data: Type.Object({
|
|
6
7
|
data: Type.Array(Type.Object({}), {
|
|
7
8
|
title: '数据',
|
|
@@ -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
|
"value": {
|
|
@@ -23,9 +23,7 @@
|
|
|
23
23
|
"icon": "../icons/RichTextView.svg",
|
|
24
24
|
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/RichTextView",
|
|
25
25
|
"shortcut": {
|
|
26
|
-
"props": [
|
|
27
|
-
"value"
|
|
28
|
-
]
|
|
26
|
+
"props": ["value"]
|
|
29
27
|
}
|
|
30
28
|
}
|
|
31
29
|
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import type { Simplify } from 'type-fest';
|
|
2
|
+
import { Static } from '../type-utils';
|
|
3
|
+
declare const data: import("@sinclair/typebox").TObject<{
|
|
4
|
+
scrollX: import("@sinclair/typebox").TBoolean;
|
|
5
|
+
scrollY: import("@sinclair/typebox").TBoolean;
|
|
6
|
+
scrollIntoView: import("@sinclair/typebox").TString;
|
|
7
|
+
scrollLeft: import("@sinclair/typebox").TNumber;
|
|
8
|
+
scrollTop: import("@sinclair/typebox").TNumber;
|
|
9
|
+
lowerThreshold: import("@sinclair/typebox").TNumber;
|
|
10
|
+
upperThreshold: import("@sinclair/typebox").TNumber;
|
|
11
|
+
observerSelector: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
12
|
+
rootMargin: import("@sinclair/typebox").TObject<{
|
|
13
|
+
top: import("@sinclair/typebox").TString;
|
|
14
|
+
bottom: import("@sinclair/typebox").TString;
|
|
15
|
+
left: import("@sinclair/typebox").TString;
|
|
16
|
+
right: import("@sinclair/typebox").TString;
|
|
17
|
+
}>;
|
|
18
|
+
showScrollbar: import("@sinclair/typebox").TBoolean;
|
|
19
|
+
enhanced: import("@sinclair/typebox").TBoolean;
|
|
20
|
+
bounces: import("@sinclair/typebox").TBoolean;
|
|
21
|
+
pagingEnabled: import("@sinclair/typebox").TBoolean;
|
|
22
|
+
fastDeceleration: import("@sinclair/typebox").TBoolean;
|
|
23
|
+
refresherEnabled: import("@sinclair/typebox").TBoolean;
|
|
24
|
+
refresherThreshold: import("@sinclair/typebox").TNumber;
|
|
25
|
+
refresherDefaultStyle: import("@sinclair/typebox").TString;
|
|
26
|
+
refresherBackground: import("@sinclair/typebox").TString;
|
|
27
|
+
refresherTriggered: import("@sinclair/typebox").TBoolean;
|
|
28
|
+
scrollAnchoring: import("@sinclair/typebox").TBoolean;
|
|
29
|
+
enableFlex: import("@sinclair/typebox").TBoolean;
|
|
30
|
+
enableBackToTop: import("@sinclair/typebox").TBoolean;
|
|
31
|
+
scrollWithAnimation: import("@sinclair/typebox").TBoolean;
|
|
32
|
+
}>;
|
|
33
|
+
export type DataType = Simplify<Static<typeof data>>;
|
|
34
|
+
declare const _default: {
|
|
35
|
+
readonly $schema: string;
|
|
36
|
+
readonly data: import("@sinclair/typebox").TObject<{
|
|
37
|
+
scrollX: import("@sinclair/typebox").TBoolean;
|
|
38
|
+
scrollY: import("@sinclair/typebox").TBoolean;
|
|
39
|
+
scrollIntoView: import("@sinclair/typebox").TString;
|
|
40
|
+
scrollLeft: import("@sinclair/typebox").TNumber;
|
|
41
|
+
scrollTop: import("@sinclair/typebox").TNumber;
|
|
42
|
+
lowerThreshold: import("@sinclair/typebox").TNumber;
|
|
43
|
+
upperThreshold: import("@sinclair/typebox").TNumber;
|
|
44
|
+
observerSelector: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
45
|
+
rootMargin: import("@sinclair/typebox").TObject<{
|
|
46
|
+
top: import("@sinclair/typebox").TString;
|
|
47
|
+
bottom: import("@sinclair/typebox").TString;
|
|
48
|
+
left: import("@sinclair/typebox").TString;
|
|
49
|
+
right: import("@sinclair/typebox").TString;
|
|
50
|
+
}>;
|
|
51
|
+
showScrollbar: import("@sinclair/typebox").TBoolean;
|
|
52
|
+
enhanced: import("@sinclair/typebox").TBoolean;
|
|
53
|
+
bounces: import("@sinclair/typebox").TBoolean;
|
|
54
|
+
pagingEnabled: import("@sinclair/typebox").TBoolean;
|
|
55
|
+
fastDeceleration: import("@sinclair/typebox").TBoolean;
|
|
56
|
+
refresherEnabled: import("@sinclair/typebox").TBoolean;
|
|
57
|
+
refresherThreshold: import("@sinclair/typebox").TNumber;
|
|
58
|
+
refresherDefaultStyle: import("@sinclair/typebox").TString;
|
|
59
|
+
refresherBackground: import("@sinclair/typebox").TString;
|
|
60
|
+
refresherTriggered: import("@sinclair/typebox").TBoolean;
|
|
61
|
+
scrollAnchoring: import("@sinclair/typebox").TBoolean;
|
|
62
|
+
enableFlex: import("@sinclair/typebox").TBoolean;
|
|
63
|
+
enableBackToTop: import("@sinclair/typebox").TBoolean;
|
|
64
|
+
scrollWithAnimation: import("@sinclair/typebox").TBoolean;
|
|
65
|
+
}>;
|
|
66
|
+
readonly isContainer: true;
|
|
67
|
+
readonly mpOrigin: "scroll-view";
|
|
68
|
+
readonly events: readonly [{
|
|
69
|
+
readonly name: "onReady";
|
|
70
|
+
readonly title: "滚动容器初次渲染完成时触发";
|
|
71
|
+
}, {
|
|
72
|
+
readonly name: "scroll";
|
|
73
|
+
readonly title: "滚动时触发";
|
|
74
|
+
}, {
|
|
75
|
+
readonly name: "scrollToTarget";
|
|
76
|
+
readonly title: "滚动到指定位置时触发";
|
|
77
|
+
readonly detail: import("@sinclair/typebox").TObject<{
|
|
78
|
+
scrollViewContext: import("@sinclair/typebox").TObject<{}>;
|
|
79
|
+
}>;
|
|
80
|
+
}, {
|
|
81
|
+
readonly name: "scrolltolower";
|
|
82
|
+
readonly title: "滚动到底部/右边时触发";
|
|
83
|
+
}, {
|
|
84
|
+
readonly name: "scrolltoupper";
|
|
85
|
+
readonly title: "滚动到顶部/左边时触发";
|
|
86
|
+
}, {
|
|
87
|
+
readonly name: "dragstart";
|
|
88
|
+
readonly 'x-platforms': readonly ["MP"];
|
|
89
|
+
readonly title: "滑动开始事件(同时开启 enhanced 属性后生效)";
|
|
90
|
+
}, {
|
|
91
|
+
readonly name: "dragging";
|
|
92
|
+
readonly 'x-platforms': readonly ["MP"];
|
|
93
|
+
readonly title: "滑动事件(同时开启 enhanced 属性后生效)";
|
|
94
|
+
}, {
|
|
95
|
+
readonly name: "dragend";
|
|
96
|
+
readonly 'x-platforms': readonly ["MP"];
|
|
97
|
+
readonly title: "滑动结束事件(同时开启 enhanced 属性后生效)";
|
|
98
|
+
}, {
|
|
99
|
+
readonly name: "refresherpulling";
|
|
100
|
+
readonly 'x-platforms': readonly ["MP"];
|
|
101
|
+
readonly title: "自定义下拉刷新控件被下拉";
|
|
102
|
+
}, {
|
|
103
|
+
readonly name: "refresherrefresh";
|
|
104
|
+
readonly 'x-platforms': readonly ["MP"];
|
|
105
|
+
readonly title: "自定义下拉刷新被触发";
|
|
106
|
+
}, {
|
|
107
|
+
readonly name: "refresherrestore";
|
|
108
|
+
readonly 'x-platforms': readonly ["MP"];
|
|
109
|
+
readonly title: "自定义下拉刷新被复位";
|
|
110
|
+
}, {
|
|
111
|
+
readonly name: "refresherabort";
|
|
112
|
+
readonly 'x-platforms': readonly ["MP"];
|
|
113
|
+
readonly title: "自定义下拉刷新被中止";
|
|
114
|
+
}];
|
|
115
|
+
readonly methods: readonly [{
|
|
116
|
+
readonly name: "scrollIntoElement";
|
|
117
|
+
readonly label: "滚动到指定位置";
|
|
118
|
+
readonly params: import("@sinclair/typebox").TObject<{
|
|
119
|
+
selector: import("@sinclair/typebox").TString;
|
|
120
|
+
}>;
|
|
121
|
+
}];
|
|
122
|
+
readonly meta: {
|
|
123
|
+
readonly title: "滚动容器";
|
|
124
|
+
readonly description: "当组件元素内容长度大于滚动容器时,滚动容器会出滚动条用来对页面内容进行滑动展示。";
|
|
125
|
+
readonly category: "布局";
|
|
126
|
+
readonly categoryOrder: 200;
|
|
127
|
+
readonly componentOrder: 110;
|
|
128
|
+
readonly figureIcon: "../figureIcons/ScrollView.svg";
|
|
129
|
+
readonly icon: "../icons/ScrollView.svg";
|
|
130
|
+
};
|
|
131
|
+
readonly configMeta: {
|
|
132
|
+
readonly docsUrl: "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/grid/ScrollView";
|
|
133
|
+
readonly shortcut: {
|
|
134
|
+
readonly props: readonly ["scrollX", "scrollY"];
|
|
135
|
+
readonly extra: {
|
|
136
|
+
readonly container: {
|
|
137
|
+
readonly 'x-component': "container";
|
|
138
|
+
readonly 'x-component-props': readonly ["gsd-h5-react:Text", "CLOUDBASE_STANDARD:Button", "gsd-h5-react:Image", "CLOUDBASE_STANDARD:FormInput"];
|
|
139
|
+
readonly 'x-index': 1;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
export default _default;
|