@cloudbase/weda-ui 2.0.11 → 2.0.27
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/README.md +1 -0
- package/package.json +39 -35
- package/src/configs/components/button.json +60 -13
- package/src/configs/components/calendar.json +3 -3
- package/src/configs/components/carousel.json +57 -47
- package/src/configs/components/chart/bar.json +4 -13
- package/src/configs/components/chart/line.json +4 -13
- package/src/configs/components/chart/pie.json +3 -10
- package/src/configs/components/chart/statisticsCard.json +1 -4
- package/src/configs/components/container.json +1 -3
- package/src/configs/components/dataView.json +7 -15
- package/src/configs/components/drawer.json +24 -6
- package/src/configs/components/form/form.json +19 -0
- package/src/configs/components/form/input.json +20 -5
- package/src/configs/components/form/location.json +51 -48
- package/src/configs/components/form/radio.json +1 -3
- package/src/configs/components/form/richText.json +14 -14
- package/src/configs/components/form/select.json +62 -82
- package/src/configs/components/form/textarea.json +14 -1
- package/src/configs/components/form/uploader.json +64 -64
- package/src/configs/components/form/uploaderFile.json +1 -2
- package/src/configs/components/graphicCard.json +44 -45
- package/src/configs/components/image.json +44 -40
- package/src/configs/components/link.json +5 -10
- package/src/configs/components/listView.json +2 -8
- package/src/configs/components/lottery.json +7 -3
- package/src/configs/components/modal.json +26 -21
- package/src/configs/components/navLayout.json +68 -68
- package/src/configs/components/navigationBar.json +4 -1
- package/src/configs/components/richtextview.json +1 -1
- package/src/configs/components/scrollVeiw.json +14 -42
- package/src/configs/components/swiper.json +9 -9
- package/src/configs/components/wedaVideo.json +89 -0
- package/src/configs/components/wxOpenApi/phone.json +7 -21
- package/src/configs/components/wxOpenApi/phoneCode.json +7 -19
- package/src/configs/components/wxOpenApi/share.json +14 -24
- package/src/configs/components/wxOpenApi/userInfo.json +9 -27
- package/src/configs/index.js +2 -0
- package/src/mp/components/calendar/index.js +4 -1
- package/src/mp/components/calendar/index.json +3 -2
- package/src/mp/components/calendar/index.wxml +6 -28
- package/src/mp/components/calendar/index.wxss +17 -16
- package/src/mp/components/carousel/index.json +1 -1
- package/src/mp/components/carousel/index.wxml +3 -30
- package/src/mp/components/chart/bar/index.wxml +1 -6
- package/src/mp/components/chart/ec-canvas/ec-canvas.json +1 -1
- package/src/mp/components/chart/ec-canvas/ec-canvas.wxml +2 -19
- package/src/mp/components/chart/line/index.wxml +1 -6
- package/src/mp/components/chart/pie/index.wxml +1 -6
- package/src/mp/components/chart/statisticsCard/index.wxml +1 -5
- package/src/mp/components/chart/statisticsCard/index.wxss +7 -10
- package/src/mp/components/dataView/index.wxml +1 -13
- package/src/mp/components/form/checkbox/index.js +5 -1
- package/src/mp/components/form/checkbox/index.wxml +3 -18
- package/src/mp/components/form/formcell/index.wxss +5 -0
- package/src/mp/components/form/input/index.js +1 -1
- package/src/mp/components/form/input/index.wxml +3 -16
- package/src/mp/components/form/input/index.wxss +7 -1
- package/src/mp/components/form/location/components/mapChoose/index.json +1 -1
- package/src/mp/components/form/location/components/mapChoose/index.wxml +11 -58
- package/src/mp/components/form/location/index.js +7 -1
- package/src/mp/components/form/location/index.json +1 -1
- package/src/mp/components/form/location/index.wxml +7 -43
- package/src/mp/components/form/radio/index.js +5 -1
- package/src/mp/components/form/radio/index.wxml +2 -14
- package/src/mp/components/form/select/index.js +2 -2
- package/src/mp/components/form/select/index.wxml +3 -33
- package/src/mp/components/form/select/index.wxss +9 -0
- package/src/mp/components/form/switch/index.wxml +2 -13
- package/src/mp/components/form/textarea/index.js +6 -0
- package/src/mp/components/form/textarea/index.wxml +4 -23
- package/src/mp/components/form/textarea/index.wxss +5 -0
- package/src/mp/components/form/uploader/index.wxml +2 -20
- package/src/mp/components/form/uploader/weui-uploader.json +6 -6
- package/src/mp/components/form/uploader/weui-uploader.wxml +10 -53
- package/src/mp/components/form/uploaderFile/index.wxml +14 -71
- package/src/mp/components/graphicCard/index.js +9 -11
- package/src/mp/components/graphicCard/index.wxml +6 -34
- package/src/mp/components/graphicCard/index.wxss +6 -6
- package/src/mp/components/image/index.wxml +3 -21
- package/src/mp/components/listView/index.wxml +8 -33
- package/src/mp/components/listView/index.wxss +2 -2
- package/src/mp/components/lottery/index.wxml +7 -31
- package/src/mp/components/navLayout/index.js +9 -12
- package/src/mp/components/navLayout/index.wxml +6 -30
- package/src/mp/components/navLayout/index.wxss +10 -10
- package/src/mp/components/navigationBar/index.json +1 -2
- package/src/mp/components/navigationBar/index.wxml +29 -146
- package/src/mp/components/navigationBar/index.wxss +10 -10
- package/src/mp/components/richText/index.wxml +1 -1
- package/src/mp/components/richText/index.wxss +7 -5
- package/src/mp/components/swiper/index.wxml +1 -14
- package/src/mp/components/tabs/index.json +1 -1
- package/src/mp/components/tabs/index.wxml +3 -22
- package/src/mp/components/tabs/index.wxss +1 -2
- package/src/mp/components/text/index.wxml +1 -7
- package/src/mp/components/wedaVideo/index.js +86 -0
- package/src/mp/components/wedaVideo/index.json +4 -0
- package/src/mp/components/wedaVideo/index.wxml +4 -0
- package/src/mp/components/wedaVideo/index.wxss +20 -0
- package/src/mp/components/wxOpenApi/phone/index.js +1 -9
- package/src/mp/components/wxOpenApi/phone/index.wxml +1 -11
- package/src/mp/components/wxOpenApi/phoneCode/index.json +1 -1
- package/src/mp/components/wxOpenApi/phoneCode/index.wxml +1 -11
- package/src/mp/components/wxOpenApi/share/index.wxml +1 -11
- package/src/mp/components/wxOpenApi/userInfo/index.wxml +1 -10
- package/src/mp/index.json +1 -0
- package/src/mp/style/weda-ui.wxss +16 -6
- package/src/web/actions/showModal/index.tsx +5 -4
- package/src/web/components/calendar/index.css +99 -65
- package/src/web/components/chart/common/core/eChartBase.ts +55 -42
- package/src/web/components/chart/common/core/type.ts +23 -23
- package/src/web/components/chart/common/echart.css +12 -12
- package/src/web/components/chart/common/echarts.ts +3 -5
- package/src/web/components/chart/common/useChart.tsx +34 -16
- package/src/web/components/chart/statisticsCard/index.css +9 -8
- package/src/web/components/container/index.tsx +3 -4
- package/src/web/components/drawer/index.tsx +15 -4
- package/src/web/components/form/checkbox/index.tsx +32 -31
- package/src/web/components/form/enumSelect/NormalSelect.tsx +0 -2
- package/src/web/components/form/form/index.css +3 -6
- package/src/web/components/form/form/index.tsx +2 -1
- package/src/web/components/form/formcell/index.css +6 -17
- package/src/web/components/form/formcell/index.tsx +2 -6
- package/src/web/components/form/input/index.css +8 -4
- package/src/web/components/form/input/index.tsx +61 -53
- package/src/web/components/form/location/common/mapChoose.css +13 -11
- package/src/web/components/form/location/common/selectModal.jsx +2 -11
- package/src/web/components/form/location/common/useLocationInfo.js +4 -0
- package/src/web/components/form/location/components/LocationH5/index.css +19 -20
- package/src/web/components/form/location/components/LocationH5/location.h5.jsx +11 -1
- package/src/web/components/form/location/components/LocationPC/Header.jsx +0 -13
- package/src/web/components/form/location/components/LocationPC/location.PC.jsx +14 -5
- package/src/web/components/form/radio/index.tsx +32 -26
- package/src/web/components/form/renderDecorator.tsx +23 -26
- package/src/web/components/form/select/h5.tsx +2 -2
- package/src/web/components/form/select/index.css +9 -0
- package/src/web/components/form/select/index.tsx +76 -49
- package/src/web/components/form/select/region/index.ts +101 -80
- package/src/web/components/form/select/year.tsx +2 -0
- package/src/web/components/form/switch/index.tsx +40 -40
- package/src/web/components/form/textarea/index.css +4 -0
- package/src/web/components/form/textarea/index.tsx +38 -25
- package/src/web/components/form/types.d.ts +10 -10
- package/src/web/components/form/uploader/index.css +10 -0
- package/src/web/components/form/uploader/uploader.h5.tsx +3 -6
- package/src/web/components/form/uploader/uploader.pc.tsx +3 -6
- package/src/web/components/form/uploaderFile/index.css +24 -23
- package/src/web/components/form/uploaderFile/index.jsx +0 -5
- package/src/web/components/form/uploaderFile/uploadFile.h5.tsx +24 -15
- package/src/web/components/form/uploaderFile/uploadFile.pc.tsx +21 -13
- package/src/web/components/graphicCard/index.css +6 -6
- package/src/web/components/image/image.tsx +2 -2
- package/src/web/components/image/index.css +9 -7
- package/src/web/components/image/index.tsx +28 -11
- package/src/web/components/index.js +1 -0
- package/src/web/components/link/index.tsx +12 -12
- package/src/web/components/listView/index.css +8 -8
- package/src/web/components/lottery/index.css +43 -37
- package/src/web/components/lottery/index.tsx +3 -3
- package/src/web/components/modal/index.tsx +34 -34
- package/src/web/components/navLayout/index.css +25 -25
- package/src/web/components/navigationBar/index.css +26 -26
- package/src/web/components/picker/datePicker.tsx +3 -3
- package/src/web/components/picker/picker.tsx +3 -3
- package/src/web/components/richText/index.jsx +41 -46
- package/src/web/components/richTextView/index.css +7 -3
- package/src/web/components/richTextView/index.tsx +4 -6
- package/src/web/components/scrollView/index.tsx +2 -2
- package/src/web/components/slot/index.tsx +3 -4
- package/src/web/components/swiper/index.css +1 -1
- package/src/web/components/swiper/index.tsx +33 -15
- package/src/web/components/tabs/index.css +2 -3
- package/src/web/components/tabs/index.tsx +6 -6
- package/src/web/components/tabs/tabs.h5.tsx +17 -12
- package/src/web/components/tabs/tabs.pc.tsx +45 -34
- package/src/web/components/text/index.css +1 -1
- package/src/web/components/wedaVideo/index.css +42 -0
- package/src/web/components/wedaVideo/index.tsx +208 -0
- package/src/web/utils/constant.ts +2 -1
- package/src/web/utils/loading-fallback.tsx +2 -2
- package/src/web/utils/lodash.ts +1 -1
- package/src/web/utils/platform.js +13 -0
- package/src/web/utils/useSetState.ts +6 -2
- package/src/web/weda-ui.css +23 -8
- package/src/docs/common/format.tsx +0 -112
- package/src/docs/common/tableView.css +0 -164
- package/src/docs/common/tableView.tsx +0 -273
- package/src/docs/compsdocs/chart/Bar.mdx +0 -159
- package/src/docs/compsdocs/chart/Line.mdx +0 -100
- package/src/docs/compsdocs/chart/Pie.mdx +0 -83
- package/src/docs/compsdocs/chart/_category_.json +0 -1
- package/src/docs/compsdocs/chart/statisticsCard.mdx +0 -51
- package/src/docs/compsdocs/database/DataView.mdx +0 -33
- package/src/docs/compsdocs/database/ListView.mdx +0 -33
- package/src/docs/compsdocs/database/_category_.json +0 -1
- package/src/docs/compsdocs/form/Form.mdx +0 -35
- package/src/docs/compsdocs/form/FormCheckbox.mdx +0 -35
- package/src/docs/compsdocs/form/FormDate.mdx +0 -30
- package/src/docs/compsdocs/form/FormEmail.mdx +0 -30
- package/src/docs/compsdocs/form/FormImageUploader.mdx +0 -31
- package/src/docs/compsdocs/form/FormInput.mdx +0 -30
- package/src/docs/compsdocs/form/FormLocation.mdx +0 -64
- package/src/docs/compsdocs/form/FormPhone.mdx +0 -30
- package/src/docs/compsdocs/form/FormRadio.mdx +0 -35
- package/src/docs/compsdocs/form/FormRegion.mdx +0 -30
- package/src/docs/compsdocs/form/FormSelect.mdx +0 -36
- package/src/docs/compsdocs/form/FormSwitch.mdx +0 -30
- package/src/docs/compsdocs/form/FormTextarea.mdx +0 -30
- package/src/docs/compsdocs/form/FormTime.mdx +0 -30
- package/src/docs/compsdocs/form/FormUploadFile.mdx +0 -30
- package/src/docs/compsdocs/form/FormUrl.mdx +0 -30
- package/src/docs/compsdocs/form/_category_.json +0 -1
- package/src/docs/compsdocs/grid/Card.mdx +0 -32
- package/src/docs/compsdocs/grid/Container.mdx +0 -42
- package/src/docs/compsdocs/grid/Footer.mdx +0 -31
- package/src/docs/compsdocs/grid/GridLayout.mdx +0 -32
- package/src/docs/compsdocs/grid/Header.mdx +0 -31
- package/src/docs/compsdocs/grid/Layout.mdx +0 -25
- package/src/docs/compsdocs/grid/List.mdx +0 -31
- package/src/docs/compsdocs/grid/ScrollView.mdx +0 -37
- package/src/docs/compsdocs/grid/Swiper.mdx +0 -58
- package/src/docs/compsdocs/grid/_category_.json +0 -1
- package/src/docs/compsdocs/media/Icon.mdx +0 -31
- package/src/docs/compsdocs/media/Image.mdx +0 -55
- package/src/docs/compsdocs/media/_category_.json +0 -1
- package/src/docs/compsdocs/model/ModelCreate.mdx +0 -20
- package/src/docs/compsdocs/model/ModelDetail.mdx +0 -20
- package/src/docs/compsdocs/model/ModelTable.mdx +0 -24
- package/src/docs/compsdocs/model/ModelUpdate.mdx +0 -21
- package/src/docs/compsdocs/model/PageLayout.mdx +0 -21
- package/src/docs/compsdocs/model/_category_.json +0 -1
- package/src/docs/compsdocs/navmenu/Classification.mdx +0 -38
- package/src/docs/compsdocs/navmenu/NavBar.mdx +0 -43
- package/src/docs/compsdocs/navmenu/NavLayout.mdx +0 -30
- package/src/docs/compsdocs/navmenu/TabBar.mdx +0 -43
- package/src/docs/compsdocs/navmenu/TabBarItem.mdx +0 -29
- package/src/docs/compsdocs/navmenu/_category_.json +0 -1
- package/src/docs/compsdocs/senior/Lottery.mdx +0 -48
- package/src/docs/compsdocs/senior/Modal.mdx +0 -58
- package/src/docs/compsdocs/senior/SlotMachine.mdx +0 -52
- package/src/docs/compsdocs/senior/_category_.json +0 -1
- package/src/docs/compsdocs/show/Calendar.mdx +0 -29
- package/src/docs/compsdocs/show/Divider.mdx +0 -31
- package/src/docs/compsdocs/show/GraphicCard.mdx +0 -30
- package/src/docs/compsdocs/show/Item.mdx +0 -32
- package/src/docs/compsdocs/show/ItemList.mdx +0 -47
- package/src/docs/compsdocs/show/Media.mdx +0 -25
- package/src/docs/compsdocs/show/StatusTip.mdx +0 -25
- package/src/docs/compsdocs/show/Swiper.mdx +0 -33
- package/src/docs/compsdocs/show/Tabs.mdx +0 -38
- package/src/docs/compsdocs/show/_category_.json +0 -1
- package/src/docs/compsdocs/show/button.mdx +0 -25
- package/src/docs/compsdocs/text/Link.mdx +0 -43
- package/src/docs/compsdocs/text/RichTextView.mdx +0 -36
- package/src/docs/compsdocs/text/Text.mdx +0 -31
- package/src/docs/compsdocs/text/Title.mdx +0 -32
- package/src/docs/compsdocs/text/_category_.json +0 -1
- package/src/docs/compsdocs/wxOpen/Phone.mdx +0 -60
- package/src/docs/compsdocs/wxOpen/Share.mdx +0 -46
- package/src/docs/compsdocs/wxOpen/UserInfo.mdx +0 -60
- package/src/docs/compsdocs/wxOpen/_category_.json +0 -4
|
@@ -1,40 +1,14 @@
|
|
|
1
|
-
<view
|
|
2
|
-
class="weda-
|
|
3
|
-
style="display: {{menuData.length?'block':'none'}};"
|
|
4
|
-
>
|
|
5
|
-
<view
|
|
6
|
-
class="weda-menu__wrapper"
|
|
7
|
-
style="background:{{navigationStyle.menuBackgroundColor}}"
|
|
8
|
-
>
|
|
1
|
+
<view class="weda-menu weda-menu-mobile" style="display: {{menuData.length?'block':'none'}};">
|
|
2
|
+
<view class="weda-menu__wrapper" style="background:{{navigationStyle.menuBackgroundColor}}">
|
|
9
3
|
<view class="weda-menu__bar-main">
|
|
10
4
|
<view class="weda-menu__main-logo">
|
|
11
|
-
<image
|
|
12
|
-
|
|
13
|
-
class="weda-menu__main-icon"
|
|
14
|
-
style="width:{{navigationStyle.logoWidth}};height:{{navigationStyle.logoHeight}};"
|
|
15
|
-
src="{{navigationStyle.logoUrl||defaultLogoUrl}}"
|
|
16
|
-
></image>
|
|
17
|
-
<text
|
|
18
|
-
wx:if="{{navigationStyle.showTitle}}"
|
|
19
|
-
style="font-size:{{navigationStyle.titleFontSize}};color:{{navigationStyle.titleColor}};line-height: 2px;"
|
|
20
|
-
>
|
|
21
|
-
{{navigationStyle.title}}
|
|
22
|
-
</text>
|
|
5
|
+
<image wx:if="{{navigationStyle.showLogo}}" class="weda-menu__main-icon" style="width:{{navigationStyle.logoWidth}};height:{{navigationStyle.logoHeight}};" src="{{navigationStyle.logoUrl||defaultLogoUrl}}"></image>
|
|
6
|
+
<text wx:if="{{navigationStyle.showTitle}}" style="font-size:{{navigationStyle.titleFontSize}};color:{{navigationStyle.titleColor}};line-height: 2px;"> {{navigationStyle.title}} </text>
|
|
23
7
|
</view>
|
|
24
8
|
</view>
|
|
25
9
|
<view class="weda-menu__bar-extra">
|
|
26
|
-
<view
|
|
27
|
-
|
|
28
|
-
class=".weda-menu__bar-btn weda-icon t-icon t-icon-view-list"
|
|
29
|
-
bindtap="showMenu"
|
|
30
|
-
style="color:{{navigationStyle.titleColor}}"
|
|
31
|
-
></view>
|
|
32
|
-
<view
|
|
33
|
-
wx:else
|
|
34
|
-
class="weda-menu__bar-btn--close weda-icon t-icon t-icon-close"
|
|
35
|
-
bindtap="showMenu"
|
|
36
|
-
style="color:{{navigationStyle.titleColor}}"
|
|
37
|
-
></view>
|
|
10
|
+
<view wx:if="{{!visible}}" class=".weda-menu__bar-btn weda-icon t-icon t-icon-view-list" bindtap="showMenu" style="color:{{navigationStyle.titleColor}}"></view>
|
|
11
|
+
<view wx:else class="weda-menu__bar-btn--close weda-icon t-icon t-icon-close" bindtap="showMenu" style="color:{{navigationStyle.titleColor}}"></view>
|
|
38
12
|
</view>
|
|
39
13
|
</view>
|
|
40
14
|
<view class="menu-solt">
|
|
@@ -44,140 +18,49 @@
|
|
|
44
18
|
|
|
45
19
|
<view class="weda-menu-mobile__drawer" wx-if="{{visible}}">
|
|
46
20
|
<view class="weda-menu weda-menu-mobile">
|
|
47
|
-
<view
|
|
48
|
-
class="weda-menu__wrapper"
|
|
49
|
-
style="background:{{navigationStyle.menuBackgroundColor}}"
|
|
50
|
-
>
|
|
21
|
+
<view class="weda-menu__wrapper" style="background:{{navigationStyle.menuBackgroundColor}}">
|
|
51
22
|
<view class="weda-menu__bar-main">
|
|
52
23
|
<view class="weda-menu__main-logo">
|
|
53
|
-
<image
|
|
54
|
-
|
|
55
|
-
class="weda-menu__main-icon"
|
|
56
|
-
style="width:{{navigationStyle.logoWidth}};height:{{navigationStyle.logoHeight}};"
|
|
57
|
-
src="{{navigationStyle.logoUrl||defaultLogoUrl}}"
|
|
58
|
-
></image>
|
|
59
|
-
<text
|
|
60
|
-
wx:if="{{navigationStyle.showTitle}}"
|
|
61
|
-
style="font-size:{{navigationStyle.titleFontSize}};color:{{navigationStyle.titleColor}};line-height: 2px;"
|
|
62
|
-
>
|
|
63
|
-
{{navigationStyle.title}}
|
|
64
|
-
</text>
|
|
24
|
+
<image wx:if="{{navigationStyle.showLogo}}" class="weda-menu__main-icon" style="width:{{navigationStyle.logoWidth}};height:{{navigationStyle.logoHeight}};" src="{{navigationStyle.logoUrl||defaultLogoUrl}}"></image>
|
|
25
|
+
<text wx:if="{{navigationStyle.showTitle}}" style="font-size:{{navigationStyle.titleFontSize}};color:{{navigationStyle.titleColor}};line-height: 2px;"> {{navigationStyle.title}} </text>
|
|
65
26
|
</view>
|
|
66
27
|
</view>
|
|
67
28
|
<view class="weda-menu__bar-extra">
|
|
68
|
-
<view
|
|
69
|
-
|
|
70
|
-
class=".weda-menu__bar-btn weda-icon t-icon t-icon-view-list"
|
|
71
|
-
bindtap="showMenu"
|
|
72
|
-
style="color:{{navigationStyle.titleColor}}"
|
|
73
|
-
></view>
|
|
74
|
-
<view
|
|
75
|
-
wx:else
|
|
76
|
-
class="weda-menu__bar-btn--close weda-icon t-icon t-icon-close"
|
|
77
|
-
bindtap="showMenu"
|
|
78
|
-
style="color:{{navigationStyle.titleColor}}"
|
|
79
|
-
></view>
|
|
29
|
+
<view wx:if="{{!visible}}" class=".weda-menu__bar-btn weda-icon t-icon t-icon-view-list" bindtap="showMenu" style="color:{{navigationStyle.titleColor}}"></view>
|
|
30
|
+
<view wx:else class="weda-menu__bar-btn--close weda-icon t-icon t-icon-close" bindtap="showMenu" style="color:{{navigationStyle.titleColor}}"></view>
|
|
80
31
|
</view>
|
|
81
32
|
</view>
|
|
82
33
|
</view>
|
|
83
34
|
<view class="weda-drawer-drawer__body">
|
|
84
|
-
<scroll-view
|
|
85
|
-
class="weda-drawer-menu weda-menu__drawer-menu weda-drawer-menu--light"
|
|
86
|
-
scroll-y
|
|
87
|
-
>
|
|
88
|
-
<view
|
|
89
|
-
class="weda-drawer-menu weda-menu__drawer-menu weda-drawer-menu--light"
|
|
90
|
-
style="background:{{navigationStyle.menuBackgroundColor}}"
|
|
91
|
-
>
|
|
35
|
+
<scroll-view class="weda-drawer-menu weda-menu__drawer-menu weda-drawer-menu--light" scroll-y>
|
|
36
|
+
<view class="weda-drawer-menu weda-menu__drawer-menu weda-drawer-menu--light" style="background:{{navigationStyle.menuBackgroundColor}}">
|
|
92
37
|
<view class="weda-drawer-menu__body">
|
|
93
38
|
<view class="weda-drawer-menu__list">
|
|
94
39
|
<block wx:for="{{menuData}}" wx:key="menuIndex" wx:for-item="menu">
|
|
95
|
-
<view
|
|
96
|
-
class="
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
style="background-color:{{selectedKey===menu.key?navigationStyle.menuHoverColor:'unset'}};"
|
|
101
|
-
bindtap="menuClick"
|
|
102
|
-
data-menu="{{menu}}"
|
|
103
|
-
>
|
|
104
|
-
<view
|
|
105
|
-
wx:if="{{navigationStyle.showMenuIcon && menu.iconType!=='image'}}"
|
|
106
|
-
class="weda-grid-navigation__icon"
|
|
107
|
-
>
|
|
108
|
-
<view
|
|
109
|
-
wx:if="{{menu.iconType === 't-icon'}}"
|
|
110
|
-
class="weda-icon t-icon t-icon-{{menu.ticon}}"
|
|
111
|
-
style="font-size:{{navigationStyle.menuFontSize}};color:{{navigationStyle.menuColor}}"
|
|
112
|
-
></view>
|
|
113
|
-
<view
|
|
114
|
-
wx:if="{{menu.iconType !== 't-icon'}}"
|
|
115
|
-
class="weda-icon lcap-icon-padding lcap-icon lcap-icon-{{menu.iconUrl}}"
|
|
116
|
-
style="font-size:{{navigationStyle.menuFontSize}};color:{{navigationStyle.menuColor}}"
|
|
117
|
-
>
|
|
118
|
-
</view>
|
|
40
|
+
<view class="{{menu.children ? 'weda-drawer-menu__submenu' : ''}} {{menu.expand?'expand':''}}">
|
|
41
|
+
<view class="weda-drawer-menu__item" style="background-color:{{selectedKey===menu.key?navigationStyle.menuHoverColor:'unset'}};" bindtap="menuClick" data-menu="{{menu}}">
|
|
42
|
+
<view wx:if="{{navigationStyle.showMenuIcon && menu.iconType!=='image'}}" class="weda-grid-navigation__icon">
|
|
43
|
+
<view wx:if="{{menu.iconType === 't-icon'}}" class="weda-icon t-icon t-icon-{{menu.ticon}}" style="font-size:{{navigationStyle.menuFontSize}};color:{{navigationStyle.menuColor}}"></view>
|
|
44
|
+
<view wx:if="{{menu.iconType !== 't-icon'}}" class="weda-icon lcap-icon-padding lcap-icon lcap-icon-{{menu.iconUrl}}" style="font-size:{{navigationStyle.menuFontSize}};color:{{navigationStyle.menuColor}}"> </view>
|
|
119
45
|
</view>
|
|
120
|
-
<image
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
src="{{menu.iconUrl}}"
|
|
124
|
-
alt="icon"
|
|
125
|
-
></image>
|
|
126
|
-
<view
|
|
127
|
-
class="weda-drawer-menu__text"
|
|
128
|
-
style="font-size:{{navigationStyle.menuFontSize}};color:{{navigationStyle.menuColor}}"
|
|
129
|
-
>{{menu.title}}</view
|
|
130
|
-
>
|
|
131
|
-
<view
|
|
132
|
-
wx-if="{{menu.children.length>0}}"
|
|
133
|
-
class="weda-menu__bar-btn-expand lcap-icon lcap-icon-chevrondown"
|
|
134
|
-
></view>
|
|
46
|
+
<image wx:if="{{navigationStyle.showMenuIcon && menu.iconType==='image'}}" class="weda-drawer-menu__list-icon" src="{{menu.iconUrl}}" alt="icon"></image>
|
|
47
|
+
<view class="weda-drawer-menu__text" style="font-size:{{navigationStyle.menuFontSize}};color:{{navigationStyle.menuColor}}">{{menu.title}}</view>
|
|
48
|
+
<view wx-if="{{menu.children.length>0}}" class="weda-menu__bar-btn-expand lcap-icon lcap-icon-chevrondown"></view>
|
|
135
49
|
</view>
|
|
136
50
|
<view class="weda-drawer-menu__list">
|
|
137
51
|
<block wx-if="{{menu.children}}">
|
|
138
|
-
<block
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
<view
|
|
144
|
-
class="{{secondMenu.children ? 'weda-drawer-menu__submenu weda-menu__submenu' : ''}} {{secondMenu.expand?'expand':''}}"
|
|
145
|
-
>
|
|
146
|
-
<view
|
|
147
|
-
class="weda-drawer-menu__item"
|
|
148
|
-
style="background-color:{{selectedKey===secondMenu.key?navigationStyle.menuHoverColor:'unset'}};"
|
|
149
|
-
bindtap="menuClick"
|
|
150
|
-
data-menu="{{secondMenu}}"
|
|
151
|
-
>
|
|
152
|
-
<view
|
|
153
|
-
class="weda-drawer-menu__text"
|
|
154
|
-
style="font-size:{{navigationStyle.menuFontSize}};color:{{navigationStyle.menuColor}}"
|
|
155
|
-
>{{secondMenu.title}}</view
|
|
156
|
-
>
|
|
157
|
-
<view
|
|
158
|
-
wx-if="{{secondMenu.children.length>0}}"
|
|
159
|
-
class="weda-menu__bar-btn-expand lcap-icon lcap-icon-chevrondown"
|
|
160
|
-
></view>
|
|
52
|
+
<block wx:for="{{menu.children}}" wx:key="secondIndex" wx:for-item="secondMenu">
|
|
53
|
+
<view class="{{secondMenu.children ? 'weda-drawer-menu__submenu weda-menu__submenu' : ''}} {{secondMenu.expand?'expand':''}}">
|
|
54
|
+
<view class="weda-drawer-menu__item" style="background-color:{{selectedKey===secondMenu.key?navigationStyle.menuHoverColor:'unset'}};" bindtap="menuClick" data-menu="{{secondMenu}}">
|
|
55
|
+
<view class="weda-drawer-menu__text" style="font-size:{{navigationStyle.menuFontSize}};color:{{navigationStyle.menuColor}}">{{secondMenu.title}}</view>
|
|
56
|
+
<view wx-if="{{secondMenu.children.length>0}}" class="weda-menu__bar-btn-expand lcap-icon lcap-icon-chevrondown"></view>
|
|
161
57
|
</view>
|
|
162
58
|
<view class="weda-drawer-menu__list">
|
|
163
59
|
<block wx-if="{{secondMenu.children}}">
|
|
164
|
-
<block
|
|
165
|
-
wx:for="{{secondMenu.children}}"
|
|
166
|
-
wx:key="thridIndex"
|
|
167
|
-
wx:for-item="thridMenu"
|
|
168
|
-
>
|
|
60
|
+
<block wx:for="{{secondMenu.children}}" wx:key="thridIndex" wx:for-item="thridMenu">
|
|
169
61
|
<view class="">
|
|
170
|
-
<view
|
|
171
|
-
class="weda-drawer-
|
|
172
|
-
style="background-color:{{selectedKey===thridMenu.key?navigationStyle.menuHoverColor:'unset'}};"
|
|
173
|
-
bindtap="menuClick"
|
|
174
|
-
data-menu="{{thridMenu}}"
|
|
175
|
-
>
|
|
176
|
-
<view
|
|
177
|
-
class="weda-drawer-menu__text"
|
|
178
|
-
style="font-size:{{navigationStyle.menuFontSize}};color:{{navigationStyle.menuColor}}"
|
|
179
|
-
>{{thridMenu.title}}</view
|
|
180
|
-
>
|
|
62
|
+
<view class="weda-drawer-menu__item" style="background-color:{{selectedKey===thridMenu.key?navigationStyle.menuHoverColor:'unset'}};" bindtap="menuClick" data-menu="{{thridMenu}}">
|
|
63
|
+
<view class="weda-drawer-menu__text" style="font-size:{{navigationStyle.menuFontSize}};color:{{navigationStyle.menuColor}}">{{thridMenu.title}}</view>
|
|
181
64
|
</view>
|
|
182
65
|
</view>
|
|
183
66
|
</block>
|
|
@@ -1069,7 +1069,7 @@
|
|
|
1069
1069
|
align-items: center;
|
|
1070
1070
|
justify-content: space-between;
|
|
1071
1071
|
padding: 0 20px 0 16px;
|
|
1072
|
-
height:
|
|
1072
|
+
height: 4.5714em;
|
|
1073
1073
|
background-color: #fff;
|
|
1074
1074
|
position: relative;
|
|
1075
1075
|
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.05);
|
|
@@ -1084,7 +1084,7 @@
|
|
|
1084
1084
|
|
|
1085
1085
|
.weda-menu-mobile .weda-menu__bar-main .weda-menu__main-logo {
|
|
1086
1086
|
font-weight: normal;
|
|
1087
|
-
font-size:
|
|
1087
|
+
font-size: 1.28571em;
|
|
1088
1088
|
color: #000000;
|
|
1089
1089
|
text-decoration: none;
|
|
1090
1090
|
display: flex;
|
|
@@ -1092,8 +1092,8 @@
|
|
|
1092
1092
|
}
|
|
1093
1093
|
|
|
1094
1094
|
.weda-menu-mobile .weda-menu__bar-main .weda-menu__main-icon {
|
|
1095
|
-
width:
|
|
1096
|
-
height:
|
|
1095
|
+
width: 2.2857em;
|
|
1096
|
+
height: 2.2857em;
|
|
1097
1097
|
margin-right: 12px;
|
|
1098
1098
|
}
|
|
1099
1099
|
|
|
@@ -1105,12 +1105,12 @@
|
|
|
1105
1105
|
|
|
1106
1106
|
.weda-menu-mobile .weda-menu__bar-extra .weda-menu__bar-btn,
|
|
1107
1107
|
.weda-menu-mobile .weda-menu__bar-extra .weda-menu__bar-btn--close {
|
|
1108
|
-
width:
|
|
1109
|
-
height:
|
|
1110
|
-
font-size:
|
|
1108
|
+
width: 1.71428em;
|
|
1109
|
+
height: 1.71428em;
|
|
1110
|
+
font-size: 1.71428em;
|
|
1111
1111
|
}
|
|
1112
1112
|
.weda-menu-mobile .weda-menu__bar-extra .weda-menu__bar-btn--close {
|
|
1113
|
-
font-size:
|
|
1113
|
+
font-size: 2em;
|
|
1114
1114
|
}
|
|
1115
1115
|
.weda-menu-mobile__drawer {
|
|
1116
1116
|
width: 100%;
|
|
@@ -1206,8 +1206,8 @@
|
|
|
1206
1206
|
.weda-drawer-menu__submenu
|
|
1207
1207
|
.weda-drawer-menu__list
|
|
1208
1208
|
.weda-drawer-menu__text {
|
|
1209
|
-
font-size:
|
|
1210
|
-
line-height:
|
|
1209
|
+
font-size: 1.4285em;
|
|
1210
|
+
line-height: 1.4285em;
|
|
1211
1211
|
color: rgba(0, 0, 0, 0.9);
|
|
1212
1212
|
padding: 0;
|
|
1213
1213
|
max-width: 100%;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
.weda-RichTextView {
|
|
2
|
+
font-size: 14px;
|
|
3
|
+
}
|
|
4
|
+
.weda-RichTextView .blockquote {
|
|
2
5
|
margin: 0 0 10px;
|
|
3
6
|
padding: 15px 20px;
|
|
4
7
|
background-color: #f1f2f3;
|
|
@@ -7,7 +10,7 @@ rich-text .blockquote {
|
|
|
7
10
|
font-style: italic;
|
|
8
11
|
}
|
|
9
12
|
|
|
10
|
-
|
|
13
|
+
.weda-RichTextView .pre {
|
|
11
14
|
max-width: 100%;
|
|
12
15
|
max-height: 100%;
|
|
13
16
|
margin: 10px 0;
|
|
@@ -17,9 +20,8 @@ rich-text .pre {
|
|
|
17
20
|
border-radius: 3px;
|
|
18
21
|
color: #666;
|
|
19
22
|
font-family: monospace;
|
|
20
|
-
font-size:
|
|
21
|
-
|
|
22
|
-
line-height: 16px;
|
|
23
|
+
font-size: 1em;
|
|
24
|
+
line-height: 1.14285em;
|
|
23
25
|
word-wrap: break-word;
|
|
24
26
|
white-space: pre-wrap;
|
|
25
27
|
}
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
<swiper
|
|
2
|
-
id="{{id}}"
|
|
3
|
-
class="weda-ui {{className}}"
|
|
4
|
-
style="{{style}}"
|
|
5
|
-
indicator-dots="{{indicatorDots}}"
|
|
6
|
-
autoplay="{{autoplay}}"
|
|
7
|
-
current="{{current}}"
|
|
8
|
-
interval="{{interval}}"
|
|
9
|
-
duration="{{duration}}"
|
|
10
|
-
circular="{{circular}}"
|
|
11
|
-
vertical="{{vertical}}"
|
|
12
|
-
indicator-color="{{indicatorColor}}"
|
|
13
|
-
indicator-active-color="{{indicatorActiveColor}}"
|
|
14
|
-
>
|
|
1
|
+
<swiper id="{{id}}" class="weda-ui {{className}}" style="{{style}}" indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" current="{{current}}" interval="{{interval}}" duration="{{duration}}" circular="{{circular}}" vertical="{{vertical}}" indicator-color="{{indicatorColor}}" indicator-active-color="{{indicatorActiveColor}}">
|
|
15
2
|
<slot></slot>
|
|
16
3
|
</swiper>
|
|
@@ -1,27 +1,8 @@
|
|
|
1
1
|
<view class="weda-tabs ext-class">
|
|
2
|
-
<scroll-view
|
|
3
|
-
class="weda-tabs__nav"
|
|
4
|
-
scroll-into-view="{{ scrollCellId }}"
|
|
5
|
-
scroll-with-animation
|
|
6
|
-
scroll-x
|
|
7
|
-
>
|
|
8
|
-
<view
|
|
9
|
-
bind:tap="toggle"
|
|
10
|
-
class="weda-tabs__nav-cell {{ currentIndex === index ? 'active' : '' }} {{ tabs.length > 5 ? 'scroll' : '' }}"
|
|
11
|
-
data-index="{{index}}"
|
|
12
|
-
id="cell-{{index}}"
|
|
13
|
-
style="width: {{ 1 / tabs.length * 100 }}%"
|
|
14
|
-
wx:for="{{tabs}}"
|
|
15
|
-
wx:for-index="index"
|
|
16
|
-
wx:for-item="tab"
|
|
17
|
-
wx:key="index"
|
|
18
|
-
>{{ tab.title }}</view
|
|
19
|
-
>
|
|
2
|
+
<scroll-view class="weda-tabs__nav" scroll-into-view="{{ scrollCellId }}" scroll-with-animation scroll-x>
|
|
3
|
+
<view bind:tap="toggle" class="weda-tabs__nav-cell {{ currentIndex === index ? 'active' : '' }} {{ tabs.length > 5 ? 'scroll' : '' }}" data-index="{{index}}" id="cell-{{index}}" style="width: {{ 1 / tabs.length * 100 }}%" wx:for="{{tabs}}" wx:for-index="index" wx:for-item="tab" wx:key="index">{{ tab.title }}</view>
|
|
20
4
|
|
|
21
|
-
<view
|
|
22
|
-
class="weda-tabs__nav-sticky"
|
|
23
|
-
style="width: {{ 1 / tabs.length * 100 }}%; transform: translate3d({{currentIndex * 100}}%, 0, 0)"
|
|
24
|
-
></view>
|
|
5
|
+
<view class="weda-tabs__nav-sticky" style="width: {{ 1 / tabs.length * 100 }}%; transform: translate3d({{currentIndex * 100}}%, 0, 0)"></view>
|
|
25
6
|
</scroll-view>
|
|
26
7
|
|
|
27
8
|
<view class="weda-tabs__panel">
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
height: 45px;
|
|
10
10
|
background-color: #fff;
|
|
11
11
|
position: relative;
|
|
12
|
-
font-size: 0;
|
|
13
12
|
white-space: nowrap;
|
|
14
13
|
border-bottom: 1px solid #eee;
|
|
15
14
|
}
|
|
@@ -23,7 +22,7 @@
|
|
|
23
22
|
flex-basis: 0;
|
|
24
23
|
flex-grow: 1;
|
|
25
24
|
height: 100%;
|
|
26
|
-
font-size:
|
|
25
|
+
font-size: 1em;
|
|
27
26
|
color: #000;
|
|
28
27
|
box-sizing: border-box;
|
|
29
28
|
padding: 0 16px;
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
<text
|
|
2
|
-
class="weda-text weda-ui {{className}} {{levelName}}"
|
|
3
|
-
id="{{id}}"
|
|
4
|
-
user-select="{{userSelect}}"
|
|
5
|
-
style="white-space: {{ space ? 'pre-warp' : 'pre-line'}}; {{style}}"
|
|
6
|
-
>{{text}}</text
|
|
7
|
-
>
|
|
1
|
+
<text class="weda-text weda-ui {{className}} {{levelName}}" id="{{id}}" user-select="{{userSelect}}" style="white-space: {{ space ? 'pre-warp' : 'pre-line'}}; {{style}}">{{text}}</text>
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// component/videojs.js
|
|
2
|
+
Component({
|
|
3
|
+
/**
|
|
4
|
+
* 组件的属性列表
|
|
5
|
+
*/
|
|
6
|
+
properties: {
|
|
7
|
+
className: {
|
|
8
|
+
type: String,
|
|
9
|
+
value: '',
|
|
10
|
+
},
|
|
11
|
+
style: {
|
|
12
|
+
type: String,
|
|
13
|
+
value: '',
|
|
14
|
+
},
|
|
15
|
+
videoDataSource: {
|
|
16
|
+
type: String,
|
|
17
|
+
value: '',
|
|
18
|
+
},
|
|
19
|
+
posterImage: {
|
|
20
|
+
type: String,
|
|
21
|
+
value: '',
|
|
22
|
+
},
|
|
23
|
+
autoPlay: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
value: false,
|
|
26
|
+
},
|
|
27
|
+
loopPlay: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
value: false,
|
|
30
|
+
},
|
|
31
|
+
mutePlay: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
value: false,
|
|
34
|
+
},
|
|
35
|
+
controlBarStatus: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
value: true,
|
|
38
|
+
},
|
|
39
|
+
startTime: {
|
|
40
|
+
type: Number,
|
|
41
|
+
value: 0,
|
|
42
|
+
},
|
|
43
|
+
endTime: {
|
|
44
|
+
type: Number,
|
|
45
|
+
value: 0,
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* 组件的初始数据
|
|
51
|
+
*/
|
|
52
|
+
data: {
|
|
53
|
+
videoId: `${new Date().getTime()}-${Math.random()}`,
|
|
54
|
+
videoErrMsg: '',
|
|
55
|
+
videoErrStatus: false,
|
|
56
|
+
},
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* 组件的方法列表
|
|
60
|
+
*/
|
|
61
|
+
methods: {
|
|
62
|
+
bindtimeupdate(event) {
|
|
63
|
+
const { currentTime } = event.detail;
|
|
64
|
+
const { endTime, loopPlay } = this.properties;
|
|
65
|
+
const videoContext = wx.createVideoContext(this.data.videoId, this);
|
|
66
|
+
if (currentTime >= endTime && endTime) {
|
|
67
|
+
videoContext.seek(0);
|
|
68
|
+
loopPlay ? videoContext.play() : videoContext.pause();
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
binderror(event) {
|
|
72
|
+
const { errMsg } = event.detail;
|
|
73
|
+
this.setData({
|
|
74
|
+
videoErrMsg: errMsg,
|
|
75
|
+
videoErrStatus: true,
|
|
76
|
+
});
|
|
77
|
+
console.error('binderror', event.detail);
|
|
78
|
+
},
|
|
79
|
+
bindplay() {
|
|
80
|
+
this.setData({
|
|
81
|
+
videoErrMsg: '',
|
|
82
|
+
videoErrStatus: false,
|
|
83
|
+
});
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
});
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<view style="position: relative">
|
|
2
|
+
<video class="weda-ui_video-mp {{className}}" style="{{style}}" id="{{videoId}}" src="{{videoDataSource}}" poster="{{posterImage}}" autoplay="{{autoPlay}}" loop="{{loopPlay}}" muted="{{mutePlay}}" controls="{{controlBarStatus}}" initial-time="{{startTime}}" duration="{{endTime}}" show-mute-btn="{{true}}" bindtimeupdate="bindtimeupdate" binderror="binderror" bindplay="bindplay"></video>
|
|
3
|
+
<view class="weda-ui_video-mp_error" wx:if="{{videoErrStatus}}"> 频资源加载出错,错误信息:{{videoErrMsg}} </view>
|
|
4
|
+
</view>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* component/videojs.wxss */
|
|
2
|
+
|
|
3
|
+
.weda-ui_video-mp {
|
|
4
|
+
width: 100%;
|
|
5
|
+
position: relative;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.weda-ui_video-mp_error {
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 100%;
|
|
11
|
+
position: absolute;
|
|
12
|
+
background-color: rgba(0, 0, 0);
|
|
13
|
+
top: 0;
|
|
14
|
+
left: 0;
|
|
15
|
+
color: #fff;
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
text-align: center;
|
|
20
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import classNames from '../../../utils/classnames';
|
|
2
2
|
import destr from '../../../utils/destr';
|
|
3
|
+
import { callWedaApi } from '../../../utils/tcb';
|
|
3
4
|
|
|
4
5
|
Component({
|
|
5
6
|
options: {
|
|
@@ -63,15 +64,6 @@ Component({
|
|
|
63
64
|
});
|
|
64
65
|
return;
|
|
65
66
|
}
|
|
66
|
-
const { app } = getApp();
|
|
67
|
-
const callWedaApi = app?.cloud?.callWedaApi;
|
|
68
|
-
if (!callWedaApi) {
|
|
69
|
-
console.warn(`当前环境缺少方法 app.cloud.callWedaApi`);
|
|
70
|
-
this.triggerEvent('phonefail', {
|
|
71
|
-
errMsg: '当前环境缺少方法 app.cloud.callWedaApi,获取手机号失败',
|
|
72
|
-
});
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
67
|
const res = await callWedaApi({
|
|
76
68
|
action: 'InvokeComponentWxModule',
|
|
77
69
|
data: {
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
<button
|
|
2
|
-
id="{{id}}"
|
|
3
|
-
class="{{cls}}"
|
|
4
|
-
style="{{style}}"
|
|
5
|
-
size="{{size}}"
|
|
6
|
-
loading="{{loading}}"
|
|
7
|
-
disabled="{{disabled}}"
|
|
8
|
-
form-type="{{formType}}"
|
|
9
|
-
open-type="{{openType}}"
|
|
10
|
-
bindgetphonenumber="getPhoneNumber"
|
|
11
|
-
>
|
|
1
|
+
<button id="{{id}}" class="{{cls}}" style="{{style}}" size="{{size}}" loading="{{loading}}" disabled="{{disabled}}" form-type="{{formType}}" open-type="{{openType}}" bindgetphonenumber="getPhoneNumber">
|
|
12
2
|
{{text ? text : ''}}
|
|
13
3
|
<slot name="contentSlot" wx:if="{{!text}}" />
|
|
14
4
|
</button>
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
<button
|
|
2
|
-
id="{{id}}"
|
|
3
|
-
class="{{cls}}"
|
|
4
|
-
style="{{style}}"
|
|
5
|
-
size="{{size}}"
|
|
6
|
-
loading="{{loading}}"
|
|
7
|
-
disabled="{{disabled}}"
|
|
8
|
-
form-type="{{formType}}"
|
|
9
|
-
open-type="{{openType}}"
|
|
10
|
-
bindgetphonenumber="getPhoneCodeNumber"
|
|
11
|
-
>
|
|
1
|
+
<button id="{{id}}" class="{{cls}}" style="{{style}}" size="{{size}}" loading="{{loading}}" disabled="{{disabled}}" form-type="{{formType}}" open-type="{{openType}}" bindgetphonenumber="getPhoneCodeNumber">
|
|
12
2
|
{{text ? text : ''}}
|
|
13
3
|
<slot name="contentSlot" wx:if="{{!text}}" />
|
|
14
4
|
</button>
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
<button
|
|
2
|
-
id="{{id}}"
|
|
3
|
-
class="{{cls}}"
|
|
4
|
-
style="{{style}}"
|
|
5
|
-
size="{{size}}"
|
|
6
|
-
loading="{{loading}}"
|
|
7
|
-
disabled="{{disabled}}"
|
|
8
|
-
form-type="{{formType}}"
|
|
9
|
-
open-type="{{openType}}"
|
|
10
|
-
data-weda_share_info="{{shareInfo}}"
|
|
11
|
-
>
|
|
1
|
+
<button id="{{id}}" class="{{cls}}" style="{{style}}" size="{{size}}" loading="{{loading}}" disabled="{{disabled}}" form-type="{{formType}}" open-type="{{openType}}" data-weda_share_info="{{shareInfo}}">
|
|
12
2
|
{{text ? text : ''}}
|
|
13
3
|
<slot name="contentSlot" wx:if="{{!text}}" />
|
|
14
4
|
</button>
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
<button
|
|
2
|
-
id="{{id}}"
|
|
3
|
-
class="{{cls}}"
|
|
4
|
-
style="{{style}}"
|
|
5
|
-
size="{{size}}"
|
|
6
|
-
loading="{{loading}}"
|
|
7
|
-
disabled="{{disabled}}"
|
|
8
|
-
form-type="{{formType}}"
|
|
9
|
-
bindtap="getUserProfile"
|
|
10
|
-
>
|
|
1
|
+
<button id="{{id}}" class="{{cls}}" style="{{style}}" size="{{size}}" loading="{{loading}}" disabled="{{disabled}}" form-type="{{formType}}" bindtap="getUserProfile">
|
|
11
2
|
{{text ? text : ''}}
|
|
12
3
|
<slot name="contentSlot" wx:if="{{!text}}" />
|
|
13
4
|
</button>
|
package/src/mp/index.json
CHANGED
|
@@ -33,18 +33,16 @@ page .weda-ui {
|
|
|
33
33
|
display: none;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
.weda-ui .weui-input.focus.not-placeholder-shown + .weui-btn_input-clear {
|
|
37
|
-
display: inline;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
36
|
.weda-ui.weda-picker .weui-btn_primary:not(.weui-btn_disabled):active {
|
|
41
37
|
background-color: var(--weui-TAG-TEXT-BLUE);
|
|
42
38
|
}
|
|
43
39
|
|
|
44
40
|
.weda-ui .weui-cell {
|
|
45
|
-
font-size:
|
|
41
|
+
font-size: inherit;
|
|
42
|
+
}
|
|
43
|
+
.weda-ui .weui-cells {
|
|
44
|
+
font-size: 1em;
|
|
46
45
|
}
|
|
47
|
-
|
|
48
46
|
.weui-cells__group_form .weui-cell::before,
|
|
49
47
|
.weui-cells__group_form .weui-cells::before {
|
|
50
48
|
left: 16px;
|
|
@@ -59,3 +57,15 @@ page .weda-ui {
|
|
|
59
57
|
.weui-picker a:link:hover {
|
|
60
58
|
text-decoration: none;
|
|
61
59
|
}
|
|
60
|
+
.weda-ui .weui-input {
|
|
61
|
+
padding: 28rpx 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.weda-ui .weui-btn_input-clear {
|
|
65
|
+
visibility: hidden; /* visibilty 防止居中而且宽度auto时,出现输入时宽度抖动 */
|
|
66
|
+
display: inline;
|
|
67
|
+
}
|
|
68
|
+
.weda-ui .weui-input.focus.not-placeholder-shown + .weui-btn_input-clear {
|
|
69
|
+
visibility: visible;
|
|
70
|
+
display: inline;
|
|
71
|
+
}
|