@cloudbase/weda-ui 3.1.0 → 3.1.3
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/asset-manifest.json +17 -0
- package/dist/configs/actions/showModal.json +48 -0
- package/dist/configs/actions/showToast.json +41 -0
- package/dist/configs/components/auth.json +16 -0
- package/dist/configs/components/button.json +239 -0
- package/dist/configs/components/calendar.json +81 -0
- package/dist/configs/components/carousel.json +292 -0
- package/dist/configs/components/chart/bar.json +721 -0
- package/dist/configs/components/chart/line.json +674 -0
- package/dist/configs/components/chart/pie.json +494 -0
- package/dist/configs/components/chart/statisticsCard.json +376 -0
- package/dist/configs/components/container.json +50 -0
- package/dist/configs/components/dataView.json +239 -0
- package/dist/configs/components/drawer.json +115 -0
- package/dist/configs/components/form/checkbox.json +178 -0
- package/dist/configs/components/form/form.json +45 -0
- package/dist/configs/components/form/input.json +154 -0
- package/dist/configs/components/form/location.json +216 -0
- package/dist/configs/components/form/radio.json +203 -0
- package/dist/configs/components/form/richText.json +125 -0
- package/dist/configs/components/form/select.json +430 -0
- package/dist/configs/components/form/switch.json +58 -0
- package/dist/configs/components/form/textarea.json +116 -0
- package/dist/configs/components/form/tips.json +34 -0
- package/dist/configs/components/form/uploader.json +171 -0
- package/dist/configs/components/form/uploaderFile.json +158 -0
- package/dist/configs/components/graphicCard.json +413 -0
- package/dist/configs/components/image.json +187 -0
- package/dist/configs/components/link.json +79 -0
- package/dist/configs/components/listView.json +370 -0
- package/dist/configs/components/lottery.json +163 -0
- package/dist/configs/components/modal.json +72 -0
- package/dist/configs/components/navLayout.json +368 -0
- package/dist/configs/components/navigationBar.json +62 -0
- package/dist/configs/components/richtextview.json +26 -0
- package/dist/configs/components/scrollVeiw.json +253 -0
- package/dist/configs/components/slot.json +17 -0
- package/dist/configs/components/swiper.json +90 -0
- package/dist/configs/components/tabs.json +121 -0
- package/dist/configs/components/text.json +95 -0
- package/dist/configs/components/wedaVideo.json +89 -0
- package/dist/configs/components/wxOpenApi/phone.json +127 -0
- package/dist/configs/components/wxOpenApi/phoneCode.json +109 -0
- package/dist/configs/components/wxOpenApi/share.json +157 -0
- package/dist/configs/components/wxOpenApi/userInfo.json +156 -0
- package/dist/configs/index.d.ts +97 -0
- package/dist/configs/index.js +105 -0
- package/dist/docs/common/format.d.ts +13 -0
- package/dist/docs/common/format.js +103 -0
- package/dist/docs/common/tableView.d.ts +30 -0
- package/dist/docs/common/tableView.js +159 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.html +88 -0
- package/dist/index.js +3 -0
- package/dist/setupTests.d.ts +1 -0
- package/dist/setupTests.js +14 -0
- package/dist/static/js/bundle.js +963 -0
- package/dist/static/js/bundle.js.map +1 -0
- package/dist/static/js/main.chunk.js +8841 -0
- package/dist/static/js/main.chunk.js.map +1 -0
- package/dist/static/js/vendors~main.chunk.js +247885 -0
- package/dist/static/js/vendors~main.chunk.js.map +1 -0
- package/dist/static/media/ef6fa527e24e354765d806b826b41391.fa67580a.svg +627 -0
- package/dist/web/actions/index.d.ts +2 -0
- package/dist/web/actions/index.js +2 -0
- package/dist/web/actions/showModal/index.d.ts +3 -0
- package/dist/web/actions/showModal/index.js +66 -0
- package/dist/web/actions/showToast/index.d.ts +1 -0
- package/dist/web/actions/showToast/index.js +3 -0
- package/dist/web/components/auth/index.d.ts +10 -0
- package/dist/web/components/auth/index.js +37 -0
- package/dist/web/components/button/index.css +27 -0
- package/dist/web/components/button/index.d.ts +32 -0
- package/dist/web/components/button/index.js +48 -0
- package/dist/web/components/calendar/index.css +416 -0
- package/dist/web/components/calendar/index.d.ts +19 -0
- package/dist/web/components/calendar/index.js +181 -0
- package/dist/web/components/calendar/util.d.ts +13 -0
- package/dist/web/components/calendar/util.js +74 -0
- package/dist/web/components/carousel/index.css +119 -0
- package/dist/web/components/carousel/index.d.ts +41 -0
- package/dist/web/components/carousel/index.js +240 -0
- package/dist/web/components/chart/bar/index.d.ts +41 -0
- package/dist/web/components/chart/bar/index.js +56 -0
- package/dist/web/components/chart/common/config/bar.d.ts +48 -0
- package/dist/web/components/chart/common/config/bar.js +49 -0
- package/dist/web/components/chart/common/config/global.d.ts +13 -0
- package/dist/web/components/chart/common/config/global.js +16 -0
- package/dist/web/components/chart/common/config/line.d.ts +46 -0
- package/dist/web/components/chart/common/config/line.js +49 -0
- package/dist/web/components/chart/common/config/pie.d.ts +29 -0
- package/dist/web/components/chart/common/config/pie.js +36 -0
- package/dist/web/components/chart/common/core/eChartBar.d.ts +68 -0
- package/dist/web/components/chart/common/core/eChartBar.js +196 -0
- package/dist/web/components/chart/common/core/eChartBase.d.ts +128 -0
- package/dist/web/components/chart/common/core/eChartBase.js +346 -0
- package/dist/web/components/chart/common/core/eChartLine.d.ts +62 -0
- package/dist/web/components/chart/common/core/eChartLine.js +168 -0
- package/dist/web/components/chart/common/core/eChartPie.d.ts +50 -0
- package/dist/web/components/chart/common/core/eChartPie.js +132 -0
- package/dist/web/components/chart/common/core/type.d.ts +35 -0
- package/dist/web/components/chart/common/core/type.js +9 -0
- package/dist/web/components/chart/common/echarts.d.ts +2 -0
- package/dist/web/components/chart/common/echarts.js +24 -0
- package/dist/web/components/chart/common/useChart.d.ts +8 -0
- package/dist/web/components/chart/common/useChart.js +60 -0
- package/dist/web/components/chart/line/index.d.ts +39 -0
- package/dist/web/components/chart/line/index.js +53 -0
- package/dist/web/components/chart/pie/index.d.ts +27 -0
- package/dist/web/components/chart/pie/index.js +40 -0
- package/dist/web/components/chart/statisticsCard/index.css +63 -0
- package/dist/web/components/chart/statisticsCard/index.d.ts +85 -0
- package/dist/web/components/chart/statisticsCard/index.js +203 -0
- package/dist/web/components/chart/statisticsCard/interface.d.ts +13 -0
- package/dist/web/components/chart/statisticsCard/interface.js +1 -0
- package/dist/web/components/container/index.d.ts +6 -0
- package/dist/web/components/container/index.js +6 -0
- package/dist/web/components/dataView/index.d.ts +6 -0
- package/dist/web/components/dataView/index.js +8 -0
- package/dist/web/components/dataView/interface.d.ts +5 -0
- package/dist/web/components/dataView/interface.js +1 -0
- package/dist/web/components/drawer/index.d.ts +13 -0
- package/dist/web/components/drawer/index.js +12 -0
- package/dist/web/components/form/checkbox/index.d.ts +13 -0
- package/dist/web/components/form/checkbox/index.js +167 -0
- package/dist/web/components/form/enumSelect/MultipleSelect.d.ts +78 -0
- package/dist/web/components/form/enumSelect/MultipleSelect.js +52 -0
- package/dist/web/components/form/enumSelect/NormalSelect.d.ts +83 -0
- package/dist/web/components/form/enumSelect/NormalSelect.js +52 -0
- package/dist/web/components/form/enumSelect/SelectContainer.d.ts +16 -0
- package/dist/web/components/form/enumSelect/SelectContainer.js +30 -0
- package/dist/web/components/form/enumSelect/index.d.ts +82 -0
- package/dist/web/components/form/enumSelect/index.js +6 -0
- package/dist/web/components/form/enumSelect/props/defaultProps.d.ts +34 -0
- package/dist/web/components/form/enumSelect/props/defaultProps.js +40 -0
- package/dist/web/components/form/enumSelect/props/propsTypes.d.ts +39 -0
- package/dist/web/components/form/enumSelect/props/propsTypes.js +47 -0
- package/dist/web/components/form/form/index.css +9 -0
- package/dist/web/components/form/form/index.d.ts +13 -0
- package/dist/web/components/form/form/index.js +31 -0
- package/dist/web/components/form/formcell/index.css +85 -0
- package/dist/web/components/form/formcell/index.d.ts +8 -0
- package/dist/web/components/form/formcell/index.js +40 -0
- package/dist/web/components/form/input/index.css +40 -0
- package/dist/web/components/form/input/index.d.ts +14 -0
- package/dist/web/components/form/input/index.js +86 -0
- package/dist/web/components/form/location/common/mapChoose.css +477 -0
- package/dist/web/components/form/location/common/mapChoose.d.ts +15 -0
- package/dist/web/components/form/location/common/mapChoose.js +435 -0
- package/dist/web/components/form/location/common/mapView.d.ts +19 -0
- package/dist/web/components/form/location/common/mapView.js +170 -0
- package/dist/web/components/form/location/common/propsConfig.d.ts +59 -0
- package/dist/web/components/form/location/common/propsConfig.js +50 -0
- package/dist/web/components/form/location/common/selectModal.css +45 -0
- package/dist/web/components/form/location/common/selectModal.d.ts +21 -0
- package/dist/web/components/form/location/common/selectModal.js +44 -0
- package/dist/web/components/form/location/common/useLocationInfo.d.ts +36 -0
- package/dist/web/components/form/location/common/useLocationInfo.js +104 -0
- package/dist/web/components/form/location/components/LocationH5/index.css +100 -0
- package/dist/web/components/form/location/components/LocationH5/location.h5.d.ts +8 -0
- package/dist/web/components/form/location/components/LocationH5/location.h5.js +323 -0
- package/dist/web/components/form/location/components/LocationPC/Header.d.ts +12 -0
- package/dist/web/components/form/location/components/LocationPC/Header.js +43 -0
- package/dist/web/components/form/location/components/LocationPC/index.css +40 -0
- package/dist/web/components/form/location/components/LocationPC/location.PC.d.ts +8 -0
- package/dist/web/components/form/location/components/LocationPC/location.PC.js +224 -0
- package/dist/web/components/form/location/constants.d.ts +2 -0
- package/dist/web/components/form/location/constants.js +3 -0
- package/dist/web/components/form/location/index.css +13 -0
- package/dist/web/components/form/location/index.d.ts +1 -0
- package/dist/web/components/form/location/index.js +17 -0
- package/dist/web/components/form/radio/index.css +12 -0
- package/dist/web/components/form/radio/index.d.ts +11 -0
- package/dist/web/components/form/radio/index.js +115 -0
- package/dist/web/components/form/renderDecorator.d.ts +6 -0
- package/dist/web/components/form/renderDecorator.js +20 -0
- package/dist/web/components/form/select/h5.d.ts +16 -0
- package/dist/web/components/form/select/h5.js +504 -0
- package/dist/web/components/form/select/index.css +27 -0
- package/dist/web/components/form/select/index.d.ts +65 -0
- package/dist/web/components/form/select/index.js +301 -0
- package/dist/web/components/form/select/region/index.d.ts +6 -0
- package/dist/web/components/form/select/region/index.js +147 -0
- package/dist/web/components/form/select/time.d.ts +9 -0
- package/dist/web/components/form/select/time.js +146 -0
- package/dist/web/components/form/select/year.d.ts +7 -0
- package/dist/web/components/form/select/year.js +72 -0
- package/dist/web/components/form/switch/index.d.ts +6 -0
- package/dist/web/components/form/switch/index.js +57 -0
- package/dist/web/components/form/textarea/index.css +11 -0
- package/dist/web/components/form/textarea/index.d.ts +12 -0
- package/dist/web/components/form/textarea/index.js +66 -0
- package/dist/web/components/form/tips/index.css +4 -0
- package/dist/web/components/form/tips/index.d.ts +8 -0
- package/dist/web/components/form/tips/index.js +17 -0
- package/dist/web/components/form/uploader/index.css +118 -0
- package/dist/web/components/form/uploader/index.d.ts +3 -0
- package/dist/web/components/form/uploader/index.js +42 -0
- package/dist/web/components/form/uploader/uploader.h5.d.ts +19 -0
- package/dist/web/components/form/uploader/uploader.h5.js +201 -0
- package/dist/web/components/form/uploader/uploader.pc.d.ts +29 -0
- package/dist/web/components/form/uploader/uploader.pc.js +182 -0
- package/dist/web/components/form/uploaderFile/index.css +422 -0
- package/dist/web/components/form/uploaderFile/index.d.ts +4 -0
- package/dist/web/components/form/uploaderFile/index.js +19 -0
- package/dist/web/components/form/uploaderFile/uploadFile.h5.d.ts +23 -0
- package/dist/web/components/form/uploaderFile/uploadFile.h5.js +315 -0
- package/dist/web/components/form/uploaderFile/uploadFile.pc.d.ts +24 -0
- package/dist/web/components/form/uploaderFile/uploadFile.pc.js +290 -0
- package/dist/web/components/graphicCard/index.css +159 -0
- package/dist/web/components/graphicCard/index.d.ts +31 -0
- package/dist/web/components/graphicCard/index.js +166 -0
- package/dist/web/components/image/image.d.ts +9 -0
- package/dist/web/components/image/image.js +119 -0
- package/dist/web/components/image/index.css +54 -0
- package/dist/web/components/image/index.d.ts +13 -0
- package/dist/web/components/image/index.js +91 -0
- package/dist/web/components/index.d.ts +47 -0
- package/dist/web/components/index.js +94 -0
- package/dist/web/components/link/index.css +8 -0
- package/dist/web/components/link/index.d.ts +24 -0
- package/dist/web/components/link/index.js +71 -0
- package/dist/web/components/listView/index.css +143 -0
- package/dist/web/components/listView/index.d.ts +7 -0
- package/dist/web/components/listView/index.js +262 -0
- package/dist/web/components/listView/interface.d.ts +122 -0
- package/dist/web/components/listView/interface.js +1 -0
- package/dist/web/components/lottery/index.css +359 -0
- package/dist/web/components/lottery/index.d.ts +22 -0
- package/dist/web/components/lottery/index.js +390 -0
- package/dist/web/components/lottery/lotteryUtil.d.ts +23 -0
- package/dist/web/components/lottery/lotteryUtil.js +180 -0
- package/dist/web/components/modal/h5.css +53 -0
- package/dist/web/components/modal/index.d.ts +17 -0
- package/dist/web/components/modal/index.js +11 -0
- package/dist/web/components/modal/modal.h5.d.ts +4 -0
- package/dist/web/components/modal/modal.h5.js +46 -0
- package/dist/web/components/modal/modal.pc.d.ts +3 -0
- package/dist/web/components/modal/modal.pc.js +31 -0
- package/dist/web/components/navLayout/index.css +332 -0
- package/dist/web/components/navLayout/index.d.ts +46 -0
- package/dist/web/components/navLayout/index.js +116 -0
- package/dist/web/components/navigationBar/common.d.ts +15 -0
- package/dist/web/components/navigationBar/common.js +127 -0
- package/dist/web/components/navigationBar/h5Menu.d.ts +14 -0
- package/dist/web/components/navigationBar/h5Menu.js +72 -0
- package/dist/web/components/navigationBar/horizontalMenu.d.ts +12 -0
- package/dist/web/components/navigationBar/horizontalMenu.js +99 -0
- package/dist/web/components/navigationBar/index.css +762 -0
- package/dist/web/components/navigationBar/index.d.ts +13 -0
- package/dist/web/components/navigationBar/index.js +157 -0
- package/dist/web/components/navigationBar/verticalMenu.d.ts +13 -0
- package/dist/web/components/navigationBar/verticalMenu.js +38 -0
- package/dist/web/components/phone/index.d.ts +18 -0
- package/dist/web/components/phone/index.js +4 -0
- package/dist/web/components/phoneCode/index.d.ts +18 -0
- package/dist/web/components/phoneCode/index.js +4 -0
- package/dist/web/components/picker/datePicker.d.ts +10 -0
- package/dist/web/components/picker/datePicker.js +31 -0
- package/dist/web/components/picker/picker.d.ts +6 -0
- package/dist/web/components/picker/picker.js +45 -0
- package/dist/web/components/picker/timePicker.d.ts +7 -0
- package/dist/web/components/picker/timePicker.js +42 -0
- package/dist/web/components/richText/const.d.ts +1 -0
- package/dist/web/components/richText/const.js +2 -0
- package/dist/web/components/richText/index.css +93 -0
- package/dist/web/components/richText/index.d.ts +51 -0
- package/dist/web/components/richText/index.js +298 -0
- package/dist/web/components/richTextView/index.css +63 -0
- package/dist/web/components/richTextView/index.d.ts +7 -0
- package/dist/web/components/richTextView/index.js +44 -0
- package/dist/web/components/scrollView/index.d.ts +27 -0
- package/dist/web/components/scrollView/index.js +95 -0
- package/dist/web/components/share/index.d.ts +34 -0
- package/dist/web/components/share/index.js +4 -0
- package/dist/web/components/slot/index.d.ts +6 -0
- package/dist/web/components/slot/index.js +9 -0
- package/dist/web/components/swiper/index.css +106 -0
- package/dist/web/components/swiper/index.d.ts +24 -0
- package/dist/web/components/swiper/index.js +149 -0
- package/dist/web/components/tabs/index.css +64 -0
- package/dist/web/components/tabs/index.d.ts +13 -0
- package/dist/web/components/tabs/index.js +15 -0
- package/dist/web/components/tabs/tabs.h5.d.ts +4 -0
- package/dist/web/components/tabs/tabs.h5.js +42 -0
- package/dist/web/components/tabs/tabs.pc.d.ts +3 -0
- package/dist/web/components/tabs/tabs.pc.js +40 -0
- package/dist/web/components/text/index.css +26 -0
- package/dist/web/components/text/index.d.ts +14 -0
- package/dist/web/components/text/index.js +17 -0
- package/dist/web/components/uploaderFileView/index.css +11 -0
- package/dist/web/components/uploaderFileView/index.d.ts +10 -0
- package/dist/web/components/uploaderFileView/index.js +61 -0
- package/dist/web/components/uploaderView/index.css +31 -0
- package/dist/web/components/uploaderView/index.d.ts +17 -0
- package/dist/web/components/uploaderView/index.js +48 -0
- package/dist/web/components/userInfo/index.d.ts +26 -0
- package/dist/web/components/userInfo/index.js +4 -0
- package/dist/web/components/wedaVideo/index.css +42 -0
- package/dist/web/components/wedaVideo/index.d.ts +17 -0
- package/dist/web/components/wedaVideo/index.js +159 -0
- package/dist/web/index.d.ts +8 -0
- package/dist/web/index.js +4 -0
- package/dist/web/utils/classnames.d.ts +2 -0
- package/dist/web/utils/classnames.js +37 -0
- package/dist/web/utils/constant.d.ts +23 -0
- package/dist/web/utils/constant.js +24 -0
- package/dist/web/utils/debounce.d.ts +2 -0
- package/dist/web/utils/debounce.js +92 -0
- package/dist/web/utils/events.d.ts +1 -0
- package/dist/web/utils/events.js +2 -0
- package/dist/web/utils/getLocalCounter.d.ts +1 -0
- package/dist/web/utils/getLocalCounter.js +4 -0
- package/dist/web/utils/isObjectEqual.d.ts +2 -0
- package/dist/web/utils/isObjectEqual.js +12 -0
- package/dist/web/utils/loading-fallback.d.ts +2 -0
- package/dist/web/utils/loading-fallback.js +2 -0
- package/dist/web/utils/lodash.d.ts +1 -0
- package/dist/web/utils/lodash.js +2 -0
- package/dist/web/utils/platform.d.ts +18 -0
- package/dist/web/utils/platform.js +191 -0
- package/dist/web/utils/tcb.d.ts +23 -0
- package/dist/web/utils/tcb.js +82 -0
- package/dist/web/utils/tmap.d.ts +3 -0
- package/dist/web/utils/tmap.js +21 -0
- package/dist/web/utils/useSetState.d.ts +1 -0
- package/dist/web/utils/useSetState.js +8 -0
- package/dist/web/utils/useSyncValue.d.ts +4 -0
- package/dist/web/utils/useSyncValue.js +15 -0
- package/dist/web/utils/weui.d.ts +1 -0
- package/dist/web/utils/weui.js +2 -0
- package/dist/web/weda-ui.css +90 -0
- package/package.json +12 -12
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* 数据容器公共属性
|
|
4
|
+
*/
|
|
5
|
+
export interface IDataContainer {
|
|
6
|
+
/**
|
|
7
|
+
* 数据源类型
|
|
8
|
+
*/
|
|
9
|
+
dataSourceType: 'data-model' | 'connector' | 'custom-connector';
|
|
10
|
+
/**
|
|
11
|
+
* 连接器
|
|
12
|
+
*/
|
|
13
|
+
bindConnectMetadata?: {
|
|
14
|
+
datasource: {
|
|
15
|
+
name?: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* 连接器方法
|
|
20
|
+
*/
|
|
21
|
+
connectorMethod?: {
|
|
22
|
+
name?: string;
|
|
23
|
+
inParams?: string[];
|
|
24
|
+
outParams?: string[];
|
|
25
|
+
title?: string;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* 数据模型
|
|
29
|
+
*/
|
|
30
|
+
datasource?: {
|
|
31
|
+
name?: string;
|
|
32
|
+
extra?: {
|
|
33
|
+
viewId?: string;
|
|
34
|
+
methodName?: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* 连接器查询入参
|
|
39
|
+
*/
|
|
40
|
+
connectorParams?: object;
|
|
41
|
+
/**
|
|
42
|
+
* 数据筛选
|
|
43
|
+
*/
|
|
44
|
+
where?: {
|
|
45
|
+
groupLogic?: null | 'or' | 'and';
|
|
46
|
+
logicData?: {
|
|
47
|
+
keyType?: 'field' | 'var-font';
|
|
48
|
+
key: string;
|
|
49
|
+
rel: 'eq' | 'neq' | 'lt' | 'gt' | 'gte' | 'lte' | 'in' | 'nin' | 'search';
|
|
50
|
+
value: any;
|
|
51
|
+
valueType?: 'const' | 'var-font' | 'relative-amount' | 'field';
|
|
52
|
+
expression?: string | boolean;
|
|
53
|
+
logic?: null | 'or' | 'and' | string;
|
|
54
|
+
extra?: {
|
|
55
|
+
type?: 'string' | 'number' | 'boolean' | 'object' | 'array' | string;
|
|
56
|
+
format?: string | null;
|
|
57
|
+
isExpression?: boolean;
|
|
58
|
+
};
|
|
59
|
+
}[];
|
|
60
|
+
}[];
|
|
61
|
+
/**
|
|
62
|
+
* 容器事件
|
|
63
|
+
*/
|
|
64
|
+
events?: {
|
|
65
|
+
queryEmpty?: any;
|
|
66
|
+
querySuccess?: any;
|
|
67
|
+
queryFail?: any;
|
|
68
|
+
onDataChange?: (param: any) => any;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* 类
|
|
72
|
+
*/
|
|
73
|
+
className?: string;
|
|
74
|
+
/**
|
|
75
|
+
* app.cloud 对象依赖,默认会从 window.app 取值
|
|
76
|
+
*/
|
|
77
|
+
appCloud?: {
|
|
78
|
+
callDataSource?: any;
|
|
79
|
+
isInIde?: any;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* 子元素
|
|
83
|
+
*/
|
|
84
|
+
children?: React.ReactNode | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* 其他属性
|
|
87
|
+
*/
|
|
88
|
+
[key: string]: any;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* 数据容器-列表视图
|
|
92
|
+
*/
|
|
93
|
+
export interface IListView extends IDataContainer {
|
|
94
|
+
/**
|
|
95
|
+
* 数据字段
|
|
96
|
+
*/
|
|
97
|
+
orderBy?: string;
|
|
98
|
+
/**
|
|
99
|
+
* 数据类型
|
|
100
|
+
*/
|
|
101
|
+
orderType?: 'desc' | 'asc';
|
|
102
|
+
/**
|
|
103
|
+
* 模板
|
|
104
|
+
*/
|
|
105
|
+
template?: 'simpleList' | 'detailList' | 'imageTextList' | 'cardList' | 'none';
|
|
106
|
+
/**
|
|
107
|
+
* 显示行数
|
|
108
|
+
*/
|
|
109
|
+
pageSize?: number;
|
|
110
|
+
/**
|
|
111
|
+
* 分页类型,加载更多|底部刷新|分页器
|
|
112
|
+
*/
|
|
113
|
+
pagination?: 'loadMoreButton' | 'bottomLoad' | 'pagination' | 'none';
|
|
114
|
+
/**
|
|
115
|
+
* 调用 onDataChange 之前的数据转换,如列表视图需要接受 array,而数据视图需要接受 object
|
|
116
|
+
*/
|
|
117
|
+
beforeDataChange?: (param: any) => any;
|
|
118
|
+
/**
|
|
119
|
+
* 是否展示回调recoreds字段
|
|
120
|
+
*/
|
|
121
|
+
isRecords?: boolean;
|
|
122
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
/* pc style start */
|
|
2
|
+
.weda-lottery {
|
|
3
|
+
width: 23.28571rem;
|
|
4
|
+
height: 23.28571rem;
|
|
5
|
+
position: relative;
|
|
6
|
+
}
|
|
7
|
+
.weda-lottery .weda-lottery__wrap {
|
|
8
|
+
position: relative;
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 100%;
|
|
11
|
+
background: #ff465c;
|
|
12
|
+
border: 0.07143rem solid rgba(255, 255, 255, 0.6);
|
|
13
|
+
box-shadow: inset 0 0 0.28571rem rgba(255, 255, 255, 0.5);
|
|
14
|
+
border-radius: 0.71429rem;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.weda-lottery .weda-lottery__dot-top {
|
|
18
|
+
position: absolute;
|
|
19
|
+
top: 0.28571rem;
|
|
20
|
+
left: calc((100% - 15.5rem) / 2);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.weda-lottery .weda-lottery__dot-bottom {
|
|
24
|
+
position: absolute;
|
|
25
|
+
bottom: 0.28571rem;
|
|
26
|
+
left: calc((100% - 15.5rem) / 2);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.weda-lottery .weda-lottery__dot-left {
|
|
30
|
+
position: absolute;
|
|
31
|
+
left: 0.28571rem;
|
|
32
|
+
top: calc((100% - 15.5rem) / 2);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.weda-lottery .weda-lottery__dot-right {
|
|
36
|
+
position: absolute;
|
|
37
|
+
right: 0.28571rem;
|
|
38
|
+
top: calc((100% - 15.5rem) / 2);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.weda-lottery .weda-lottery__dot {
|
|
42
|
+
display: flex;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.weda-lottery .weda-lottery__dot-horizontal {
|
|
46
|
+
flex-direction: row;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.weda-lottery .weda-lottery__dot-vertical {
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.weda-lottery .weda-lottery__dot .weda-lottery__dot-item,
|
|
54
|
+
.weda-lottery .weda-lottery__dot-single {
|
|
55
|
+
width: 0.64286rem;
|
|
56
|
+
height: 0.64286rem;
|
|
57
|
+
box-shadow: 0 0 0.28571rem rgba(255, 255, 255, 0.3);
|
|
58
|
+
border-radius: 50%;
|
|
59
|
+
background: #ffffff;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.weda-lottery .weda-lottery__dot .weda-lottery__dot-item:nth-child(odd) {
|
|
63
|
+
background: #ffee52;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.weda-lottery .weda-lottery__dot .weda-lottery__dot-item:nth-child(even) {
|
|
67
|
+
background: #ffffff;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.weda-lottery .weda-lottery__dot-horizontal .weda-lottery__dot-item {
|
|
71
|
+
margin-right: 3.07143rem;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.weda-lottery .weda-lottery__dot-horizontal .weda-lottery__dot-item:last-child {
|
|
75
|
+
margin-right: 0 !important;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.weda-lottery .weda-lottery__dot-vertical .weda-lottery__dot-item {
|
|
79
|
+
margin-bottom: 3.07143rem;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.weda-lottery .weda-lottery__dot-vertical .weda-lottery__dot-item:last-child {
|
|
83
|
+
margin-bottom: 0 !important;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.weda-lottery .weda-lottery__dot-left-top {
|
|
87
|
+
position: absolute;
|
|
88
|
+
top: 0.64286rem;
|
|
89
|
+
left: 0.42857rem;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.weda-lottery .weda-lottery__dot-right-top {
|
|
93
|
+
position: absolute;
|
|
94
|
+
top: 0.64286rem;
|
|
95
|
+
right: 0.42857rem;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.weda-lottery .weda-lottery__dot-left-bottom {
|
|
99
|
+
position: absolute;
|
|
100
|
+
left: 0.42857rem;
|
|
101
|
+
bottom: 0.64286rem;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.weda-lottery .weda-lottery__dot-right-bottom {
|
|
105
|
+
position: absolute;
|
|
106
|
+
right: 0.42857rem;
|
|
107
|
+
bottom: 0.64286rem;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.weda-lottery .weda-lottery__inner {
|
|
111
|
+
padding: 1.28571rem;
|
|
112
|
+
width: 100%;
|
|
113
|
+
height: 100%;
|
|
114
|
+
box-sizing: border-box;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.weda-lottery .weda-lottery__inner .weda-lottery__inner-wrap {
|
|
118
|
+
position: relative;
|
|
119
|
+
width: 100%;
|
|
120
|
+
box-sizing: border-box;
|
|
121
|
+
background: linear-gradient(180deg, #dd0d00 0%, #d80027 100%);
|
|
122
|
+
border: 0.07143rem solid rgba(255, 255, 255, 0.25);
|
|
123
|
+
box-shadow: inset 0 0 0.28571rem rgba(255, 255, 255, 0.5);
|
|
124
|
+
border-radius: 0.71429rem;
|
|
125
|
+
height: 100%;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.weda-lottery .weda-lottery__inner .weda-lottery__list {
|
|
129
|
+
position: absolute;
|
|
130
|
+
top: 0;
|
|
131
|
+
left: 0;
|
|
132
|
+
right: 0;
|
|
133
|
+
bottom: 0;
|
|
134
|
+
z-index: 1;
|
|
135
|
+
box-sizing: border-box;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.weda-lottery .weda-lottery__inner .weda-lottery__turntable-item {
|
|
139
|
+
position: absolute;
|
|
140
|
+
width: calc((100% - 2.28571rem) / 3);
|
|
141
|
+
height: calc((100% - 2.28571rem) / 3);
|
|
142
|
+
font-size: 0;
|
|
143
|
+
text-align: center;
|
|
144
|
+
background: #fff8ee;
|
|
145
|
+
box-shadow: inset 0 -0.14286rem 0 #ffddbd;
|
|
146
|
+
border-radius: 0.57143rem;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.weda-lottery .weda-lottery__inner .weda-lottery__turntable-item.is-actived {
|
|
150
|
+
background: #fff8ee;
|
|
151
|
+
box-shadow: 0 0 0.42857rem #ffffff;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.weda-lottery .weda-lottery__inner .weda-lottery__turntable-item.is-selected {
|
|
155
|
+
background: #ff6666;
|
|
156
|
+
box-shadow: inset 0 -0.14286rem 0 #ffa4a4;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.weda-lottery .weda-lottery__inner .weda-lottery__turntable-item:first-child {
|
|
160
|
+
top: 0.57143rem;
|
|
161
|
+
left: 0.57143rem;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.weda-lottery .weda-lottery__inner .weda-lottery__turntable-item:nth-child(2) {
|
|
165
|
+
top: 0.57143rem;
|
|
166
|
+
left: calc((100% - 2.28571rem) / 3 + 1.14286rem);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.weda-lottery .weda-lottery__inner .weda-lottery__turntable-item:nth-child(3) {
|
|
170
|
+
top: 0.57143rem;
|
|
171
|
+
right: 0.57143rem;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.weda-lottery .weda-lottery__inner .weda-lottery__turntable-item:nth-child(4) {
|
|
175
|
+
top: calc((100% - 2.28571rem) / 3 + 1.14286rem);
|
|
176
|
+
right: 0.57143rem;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.weda-lottery .weda-lottery__inner .weda-lottery__turntable-item:nth-child(5) {
|
|
180
|
+
bottom: 0.57143rem;
|
|
181
|
+
right: 0.57143rem;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.weda-lottery .weda-lottery__inner .weda-lottery__turntable-item:nth-child(6) {
|
|
185
|
+
bottom: 0.57143rem;
|
|
186
|
+
left: calc((100% - 2.28571rem) / 3 + 1.14286rem);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.weda-lottery .weda-lottery__inner .weda-lottery__turntable-item:nth-child(7) {
|
|
190
|
+
bottom: 0.57143rem;
|
|
191
|
+
left: 0.57143rem;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.weda-lottery .weda-lottery__inner .weda-lottery__turntable-item:nth-child(8) {
|
|
195
|
+
bottom: calc((100% - 2.28571rem) / 3 + 1.14286rem);
|
|
196
|
+
left: 0.57143rem;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.weda-lottery .weda-lottery__inner .weda-lottery__turntable-cell {
|
|
200
|
+
width: 100%;
|
|
201
|
+
height: 100%;
|
|
202
|
+
max-width: 100%;
|
|
203
|
+
max-height: 100%;
|
|
204
|
+
box-sizing: border-box;
|
|
205
|
+
border-style: solid;
|
|
206
|
+
border-color: transparent;
|
|
207
|
+
border-radius: 0.57143rem;
|
|
208
|
+
display: flex;
|
|
209
|
+
flex-direction: column;
|
|
210
|
+
align-items: center;
|
|
211
|
+
justify-content: center;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.weda-lottery
|
|
215
|
+
.weda-lottery__inner
|
|
216
|
+
.weda-lottery__turntable-item.is-actived
|
|
217
|
+
.weda-lottery__turntable-cell {
|
|
218
|
+
border-color: #ffe05f;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.weda-lottery .weda-lottery__inner .weda-lottery__turntable-cell-image {
|
|
222
|
+
height: 2.85714rem;
|
|
223
|
+
display: flex;
|
|
224
|
+
align-items: center;
|
|
225
|
+
justify-content: center;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.weda-lottery .weda-lottery__inner .weda-lottery__turntable-cell-icon {
|
|
229
|
+
display: block;
|
|
230
|
+
width: 2.85714rem;
|
|
231
|
+
height: 2.85714rem;
|
|
232
|
+
object-fit: contain;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.weda-lottery .weda-lottery__inner .weda-lottery__turntable-cell-desc {
|
|
236
|
+
margin-top: 0.42857rem;
|
|
237
|
+
font-weight: 400;
|
|
238
|
+
font-size: 0.85714rem;
|
|
239
|
+
line-height: 1.21429rem;
|
|
240
|
+
text-align: center;
|
|
241
|
+
color: #ba0000;
|
|
242
|
+
white-space: nowrap;
|
|
243
|
+
text-overflow: ellipsis;
|
|
244
|
+
overflow: hidden;
|
|
245
|
+
width: 100%;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.weda-lottery
|
|
249
|
+
.weda-lottery__inner
|
|
250
|
+
.weda-lottery__turntable-item.is-selected
|
|
251
|
+
.weda-lottery__turntable-cell-desc {
|
|
252
|
+
color: #ffffff;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.weda-lottery .weda-lottery__turntable-btn {
|
|
256
|
+
z-index: 2;
|
|
257
|
+
position: absolute;
|
|
258
|
+
width: calc((100% - 2.28571rem) / 3);
|
|
259
|
+
height: calc((100% - 2.28571rem) / 3);
|
|
260
|
+
top: calc((100% - 2.28571rem) / 3 + 1.14286rem);
|
|
261
|
+
left: calc((100% - 2.28571rem) / 3 + 1.14286rem);
|
|
262
|
+
background: linear-gradient(180deg, #ffee81 0%, #ffd646 100%);
|
|
263
|
+
box-shadow: inset 0 -0.14286rem 0 #ff7a00;
|
|
264
|
+
border-radius: 50%;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.weda-lottery .weda-lottery__turntable-btn.is-actived {
|
|
268
|
+
background: linear-gradient(180deg, #ffee81 0%, #ffd646 100%);
|
|
269
|
+
box-shadow: inset 0 0.14286rem 0 #ffffff;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.weda-lottery .weda-lottery__btn-inner {
|
|
273
|
+
padding: 0.64286rem;
|
|
274
|
+
width: 100%;
|
|
275
|
+
height: 100%;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.weda-lottery .weda-lottery__btn {
|
|
279
|
+
width: 100%;
|
|
280
|
+
height: 100%;
|
|
281
|
+
background: linear-gradient(180deg, #ff922d 0%, #ff3c76 100%);
|
|
282
|
+
box-shadow: inset 0 0 0.57143rem rgba(234, 27, 53, 0.5);
|
|
283
|
+
border-radius: 50%;
|
|
284
|
+
display: flex;
|
|
285
|
+
align-items: center;
|
|
286
|
+
justify-content: center;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.weda-lottery .weda-lottery__turntable-btn.is-actived .weda-lottery__btn {
|
|
290
|
+
background: linear-gradient(180deg, #ff922d 0%, #ff3c76 100%);
|
|
291
|
+
box-shadow: inset 0 0 0.57143rem rgba(234, 27, 53, 0.5);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.weda-lottery .weda-lottery__btn-image {
|
|
295
|
+
padding: 0.78571rem 1.07143rem;
|
|
296
|
+
width: 100%;
|
|
297
|
+
height: 100%;
|
|
298
|
+
box-sizing: border-box;
|
|
299
|
+
display: flex;
|
|
300
|
+
align-items: center;
|
|
301
|
+
text-decoration: none;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.weda-lottery .weda-lottery__btn-image .weda-lottery__btn-text {
|
|
305
|
+
font-weight: 600;
|
|
306
|
+
font-size: 1.28571rem;
|
|
307
|
+
line-height: 1.57143rem;
|
|
308
|
+
text-align: center;
|
|
309
|
+
color: #ffffff;
|
|
310
|
+
text-shadow: 0 0.03571rem 0 #e42b27;
|
|
311
|
+
max-height: 100%;
|
|
312
|
+
display: -webkit-box;
|
|
313
|
+
overflow: hidden;
|
|
314
|
+
text-overflow: ellipsis;
|
|
315
|
+
-webkit-box-orient: vertical;
|
|
316
|
+
-webkit-line-clamp: 2;
|
|
317
|
+
width: 100%;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.weda-lottery .weda-lottery__turntable-btn.is-actived .weda-lottery__btn-image {
|
|
321
|
+
opacity: 0.6;
|
|
322
|
+
}
|
|
323
|
+
/* pc style end */
|
|
324
|
+
|
|
325
|
+
/* mobile style start */
|
|
326
|
+
.weda-lottery-mobile {
|
|
327
|
+
width: 100%;
|
|
328
|
+
height: auto;
|
|
329
|
+
}
|
|
330
|
+
.weda-lottery-mobile::before {
|
|
331
|
+
float: left;
|
|
332
|
+
width: 100%;
|
|
333
|
+
height: auto;
|
|
334
|
+
padding-top: 100%;
|
|
335
|
+
content: '';
|
|
336
|
+
}
|
|
337
|
+
.weda-lottery-mobile::after {
|
|
338
|
+
display: block;
|
|
339
|
+
width: 100%;
|
|
340
|
+
height: auto;
|
|
341
|
+
content: '';
|
|
342
|
+
clear: both;
|
|
343
|
+
}
|
|
344
|
+
.weda-lottery-mobile .weda-lottery__wrap {
|
|
345
|
+
position: absolute;
|
|
346
|
+
top: 0;
|
|
347
|
+
left: 0;
|
|
348
|
+
right: 0;
|
|
349
|
+
bottom: 0;
|
|
350
|
+
width: 100%;
|
|
351
|
+
height: 100%;
|
|
352
|
+
object-fit: cover;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.weda-lottery-mobile .weda-lottery__wrap,
|
|
356
|
+
.weda-lottery-mobile .weda-lottery__content {
|
|
357
|
+
width: 100%;
|
|
358
|
+
}
|
|
359
|
+
/* mobile style end */
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.css';
|
|
3
|
+
import type { CommonPropsType, ICompRef } from '../../types';
|
|
4
|
+
declare type TCompRef = ICompRef<{
|
|
5
|
+
start: () => void;
|
|
6
|
+
}>;
|
|
7
|
+
declare const _default: React.ForwardRefExoticComponent<PropsType & React.RefAttributes<TCompRef>>;
|
|
8
|
+
export default _default;
|
|
9
|
+
export interface PropsType extends CommonPropsType {
|
|
10
|
+
/**
|
|
11
|
+
* 奖品列表
|
|
12
|
+
*/
|
|
13
|
+
prizeList: any;
|
|
14
|
+
/**
|
|
15
|
+
* 启动抽奖
|
|
16
|
+
*/
|
|
17
|
+
enablePrize: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* 抽奖结果
|
|
20
|
+
*/
|
|
21
|
+
prizeResult: string;
|
|
22
|
+
}
|