@cloudbase/weda-ui 2.0.12 → 2.0.28
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/package.json +36 -33
- package/src/configs/components/form/textarea.json +8 -0
- package/src/configs/components/graphicCard.json +1 -1
- package/src/configs/components/navLayout.json +2 -1
- package/src/configs/components/wedaVideo.json +12 -9
- package/src/mp/components/calendar/index.js +4 -1
- package/src/mp/components/calendar/index.json +2 -1
- package/src/mp/components/calendar/index.wxml +1 -1
- package/src/mp/components/calendar/index.wxss +17 -16
- package/src/mp/components/chart/statisticsCard/index.wxss +7 -10
- package/src/mp/components/form/checkbox/index.js +5 -1
- package/src/mp/components/form/input/index.js +1 -1
- package/src/mp/components/form/radio/index.js +5 -1
- package/src/mp/components/form/select/index.js +7 -7
- package/src/mp/components/form/textarea/index.js +6 -0
- package/src/mp/components/form/textarea/index.wxml +1 -1
- package/src/mp/components/graphicCard/index.wxss +6 -6
- package/src/mp/components/listView/index.wxss +2 -2
- package/src/mp/components/navLayout/index.wxss +10 -10
- package/src/mp/components/navigationBar/index.js +15 -4
- 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/tabs/index.wxss +1 -2
- package/src/mp/style/weda-ui.wxss +4 -2
- package/src/mp/utils/tcb.js +14 -0
- package/src/web/components/calendar/index.css +27 -40
- package/src/web/components/chart/statisticsCard/index.css +9 -8
- package/src/web/components/form/formcell/index.css +1 -14
- package/src/web/components/form/input/index.css +4 -0
- package/src/web/components/form/location/common/mapChoose.css +13 -11
- package/src/web/components/form/location/components/LocationH5/index.css +19 -19
- package/src/web/components/form/select/h5.tsx +1 -1
- package/src/web/components/form/select/index.tsx +1 -1
- package/src/web/components/form/textarea/index.tsx +12 -0
- 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/uploadFile.h5.tsx +9 -4
- package/src/web/components/form/uploaderFile/uploadFile.pc.tsx +7 -4
- package/src/web/components/graphicCard/index.css +6 -6
- package/src/web/components/listView/index.css +8 -8
- package/src/web/components/lottery/index.tsx +1 -1
- package/src/web/components/navLayout/index.css +25 -25
- package/src/web/components/navigationBar/common.tsx +11 -6
- package/src/web/components/navigationBar/h5Menu.tsx +1 -1
- package/src/web/components/navigationBar/horizontalMenu.tsx +3 -2
- package/src/web/components/navigationBar/index.css +26 -26
- package/src/web/components/navigationBar/index.tsx +1 -0
- package/src/web/components/navigationBar/type.d.ts +8 -1
- package/src/web/components/navigationBar/verticalMenu.tsx +1 -1
- package/src/web/components/richTextView/index.css +7 -3
- package/src/web/components/tabs/index.css +1 -2
- package/src/web/components/wedaVideo/index.tsx +14 -4
- package/src/web/utils/platform.js +27 -0
- package/src/web/weda-ui.css +11 -9
- package/src/docs/common/format.tsx +0 -115
- package/src/docs/common/tableView.css +0 -164
- package/src/docs/common/tableView.tsx +0 -283
- 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 -35
- 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 -31
- package/src/docs/compsdocs/grid/Container.mdx +0 -41
- package/src/docs/compsdocs/grid/Footer.mdx +0 -31
- package/src/docs/compsdocs/grid/GridLayout.mdx +0 -31
- 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 -57
- 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 -44
- package/src/docs/compsdocs/model/ModelDetail.mdx +0 -44
- package/src/docs/compsdocs/model/ModelTable.mdx +0 -156
- package/src/docs/compsdocs/model/ModelUpdate.mdx +0 -44
- 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 -37
- package/src/docs/compsdocs/navmenu/NavBar.mdx +0 -52
- package/src/docs/compsdocs/navmenu/NavLayout.mdx +0 -29
- 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 -45
- package/src/docs/compsdocs/senior/Modal.mdx +0 -57
- package/src/docs/compsdocs/senior/SlotMachine.mdx +0 -49
- 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 -29
- package/src/docs/compsdocs/show/Item.mdx +0 -31
- package/src/docs/compsdocs/show/ItemList.mdx +0 -48
- 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 -37
- 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 -35
- package/src/docs/compsdocs/text/Text.mdx +0 -31
- package/src/docs/compsdocs/text/Title.mdx +0 -31
- package/src/docs/compsdocs/text/_category_.json +0 -1
- package/src/docs/compsdocs/wxOpen/Phone.mdx +0 -59
- package/src/docs/compsdocs/wxOpen/Share.mdx +0 -45
- package/src/docs/compsdocs/wxOpen/UserInfo.mdx +0 -59
- package/src/docs/compsdocs/wxOpen/_category_.json +0 -4
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
.wedatea2td-menu__title
|
|
51
51
|
.wedatea2td-menu__title-icon {
|
|
52
52
|
display: block;
|
|
53
|
-
width:
|
|
54
|
-
height:
|
|
53
|
+
width: 2.28571em;
|
|
54
|
+
height: 2.28571em;
|
|
55
55
|
margin-right: 12px;
|
|
56
56
|
}
|
|
57
57
|
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
.weda-menu__menu-content
|
|
61
61
|
.wedatea2td-menu__title
|
|
62
62
|
.wedatea2td-h2 {
|
|
63
|
-
font-size:
|
|
64
|
-
line-height:
|
|
63
|
+
font-size: 1.1428571em;
|
|
64
|
+
line-height: 1.28571em;
|
|
65
65
|
color: #000000;
|
|
66
66
|
margin-top: 0;
|
|
67
67
|
font-weight: normal;
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
.wedatea2td-menu__body
|
|
86
86
|
.wedatea2td-menu__item
|
|
87
87
|
.wedatea2td-menu__list-icon {
|
|
88
|
-
width:
|
|
89
|
-
height:
|
|
88
|
+
width: 1.42857em;
|
|
89
|
+
height: 1.42857em;
|
|
90
90
|
margin-top: 0;
|
|
91
91
|
}
|
|
92
92
|
|
|
@@ -96,8 +96,8 @@
|
|
|
96
96
|
.wedatea2td-menu__item
|
|
97
97
|
.wedatea2td-menu__text {
|
|
98
98
|
font-weight: normal;
|
|
99
|
-
font-size:
|
|
100
|
-
line-height:
|
|
99
|
+
font-size: 1em;
|
|
100
|
+
line-height: 1.5714em;
|
|
101
101
|
color: rgba(0, 0, 0, 0.9);
|
|
102
102
|
padding: 0;
|
|
103
103
|
}
|
|
@@ -298,7 +298,7 @@
|
|
|
298
298
|
|
|
299
299
|
.weda-menu-horizontal .weda-menu__nav .weda-menu__nav-title .weda-menu__title {
|
|
300
300
|
font-weight: normal;
|
|
301
|
-
font-size:
|
|
301
|
+
font-size: 1.14285em;
|
|
302
302
|
line-height: 18px;
|
|
303
303
|
color: #000000;
|
|
304
304
|
margin-left: 12px;
|
|
@@ -410,8 +410,8 @@
|
|
|
410
410
|
|
|
411
411
|
.weda-menu-horizontal .wedatea2td-dropdown .wedatea2td-dropdown__value {
|
|
412
412
|
font-weight: 400;
|
|
413
|
-
font-size:
|
|
414
|
-
line-height:
|
|
413
|
+
font-size: 1em;
|
|
414
|
+
line-height: 1.5714em;
|
|
415
415
|
color: #000000;
|
|
416
416
|
white-space: nowrap;
|
|
417
417
|
}
|
|
@@ -437,8 +437,8 @@
|
|
|
437
437
|
.weda-menu__dropdown
|
|
438
438
|
.wedatea2td-dropdown__value {
|
|
439
439
|
font-weight: normal;
|
|
440
|
-
font-size:
|
|
441
|
-
line-height:
|
|
440
|
+
font-size: 1em;
|
|
441
|
+
line-height: 1.5714em;
|
|
442
442
|
color: #000000;
|
|
443
443
|
padding: 0;
|
|
444
444
|
white-space: nowrap;
|
|
@@ -450,7 +450,7 @@
|
|
|
450
450
|
.wedatea2td-dropdown__header {
|
|
451
451
|
padding-left: 0;
|
|
452
452
|
padding-right: 23px;
|
|
453
|
-
height:
|
|
453
|
+
height: 21.5714em;
|
|
454
454
|
}
|
|
455
455
|
|
|
456
456
|
.weda-menu-horizontal
|
|
@@ -515,8 +515,8 @@
|
|
|
515
515
|
margin-bottom: 4px;
|
|
516
516
|
color: rgba(0, 0, 0, 0.9);
|
|
517
517
|
font-weight: 400;
|
|
518
|
-
font-size:
|
|
519
|
-
line-height:
|
|
518
|
+
font-size: 1em;
|
|
519
|
+
line-height: 1.5714em;
|
|
520
520
|
}
|
|
521
521
|
|
|
522
522
|
.weda-menu__dropdown-menu-list .weda-menu__dropdown-list-item:last-child {
|
|
@@ -543,7 +543,7 @@
|
|
|
543
543
|
align-items: center;
|
|
544
544
|
justify-content: space-between;
|
|
545
545
|
padding: 0 20px 0 16px;
|
|
546
|
-
height:
|
|
546
|
+
height: 4.5714em;
|
|
547
547
|
background-color: #fff;
|
|
548
548
|
position: relative;
|
|
549
549
|
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.05);
|
|
@@ -557,8 +557,8 @@
|
|
|
557
557
|
|
|
558
558
|
.weda-menu-mobile .weda-menu__bar-main .weda-menu__main-logo {
|
|
559
559
|
font-weight: normal;
|
|
560
|
-
font-size:
|
|
561
|
-
line-height:
|
|
560
|
+
font-size: 1.28571em;
|
|
561
|
+
line-height: 1.28571em;
|
|
562
562
|
color: #000000;
|
|
563
563
|
text-decoration: none;
|
|
564
564
|
display: flex;
|
|
@@ -566,8 +566,8 @@
|
|
|
566
566
|
}
|
|
567
567
|
|
|
568
568
|
.weda-menu-mobile .weda-menu__bar-main .weda-menu__main-icon {
|
|
569
|
-
width:
|
|
570
|
-
height:
|
|
569
|
+
width: 2.2857em;
|
|
570
|
+
height: 2.2857em;
|
|
571
571
|
margin-right: 12px;
|
|
572
572
|
}
|
|
573
573
|
|
|
@@ -579,8 +579,8 @@
|
|
|
579
579
|
|
|
580
580
|
.weda-menu-mobile .weda-menu__bar-extra .weda-menu__bar-btn,
|
|
581
581
|
.weda-menu-mobile .weda-menu__bar-extra .weda-menu__bar-btn--close {
|
|
582
|
-
width:
|
|
583
|
-
height:
|
|
582
|
+
width: 1.71428em;
|
|
583
|
+
height: 1.71428em;
|
|
584
584
|
}
|
|
585
585
|
|
|
586
586
|
.weda-menu__drawer {
|
|
@@ -676,8 +676,8 @@
|
|
|
676
676
|
.wedatea2td-menu__submenu
|
|
677
677
|
.wedatea2td-menu__list
|
|
678
678
|
.wedatea2td-menu__text {
|
|
679
|
-
font-size:
|
|
680
|
-
line-height:
|
|
679
|
+
font-size: 1.14285em;
|
|
680
|
+
line-height: 1.142857em;
|
|
681
681
|
color: rgba(0, 0, 0, 0.9);
|
|
682
682
|
padding: 0;
|
|
683
683
|
max-width: 100%;
|
|
@@ -719,7 +719,7 @@
|
|
|
719
719
|
.weda-menu__fonticon.lcap-icon,
|
|
720
720
|
.weda-menu__fonticon.t-icon {
|
|
721
721
|
margin: 0 4px 0 0;
|
|
722
|
-
font-size:
|
|
722
|
+
font-size: 1em;
|
|
723
723
|
}
|
|
724
724
|
.weda-menu__fonticon.lcap-icon:hover {
|
|
725
725
|
background-color: unset;
|
|
@@ -34,7 +34,10 @@ export interface IMenuItem {
|
|
|
34
34
|
* 图标链接
|
|
35
35
|
*/
|
|
36
36
|
iconUrl?: string;
|
|
37
|
-
|
|
37
|
+
/**
|
|
38
|
+
* 图标path
|
|
39
|
+
*/
|
|
40
|
+
iconPath?: string;
|
|
38
41
|
/**
|
|
39
42
|
* 子菜单
|
|
40
43
|
*/
|
|
@@ -92,6 +95,10 @@ export interface INavigationStyle {
|
|
|
92
95
|
* 图标地址
|
|
93
96
|
*/
|
|
94
97
|
logoUrl: string;
|
|
98
|
+
/**
|
|
99
|
+
* 图标path
|
|
100
|
+
*/
|
|
101
|
+
logoPath: string;
|
|
95
102
|
/**
|
|
96
103
|
* 标题字号
|
|
97
104
|
*/
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
.weda-RichTextView {
|
|
2
|
+
font-size: 14px;
|
|
3
|
+
}
|
|
1
4
|
.weda-RichTextView blockquote {
|
|
2
5
|
margin: 0 0 10px;
|
|
3
6
|
padding: 15px 20px;
|
|
@@ -17,9 +20,10 @@
|
|
|
17
20
|
border-radius: 3px;
|
|
18
21
|
color: #666;
|
|
19
22
|
font-family: monospace;
|
|
20
|
-
font-size:
|
|
21
|
-
font-weight: 400;
|
|
22
|
-
|
|
23
|
+
font-size: 1em;
|
|
24
|
+
/* font-weight: 400; */
|
|
25
|
+
font-weight: inherit;
|
|
26
|
+
line-height: 1.14285px;
|
|
23
27
|
word-wrap: break-word;
|
|
24
28
|
white-space: pre-wrap;
|
|
25
29
|
}
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
align-items: center;
|
|
12
12
|
background-color: #fff;
|
|
13
13
|
position: relative;
|
|
14
|
-
font-size: 0;
|
|
15
14
|
white-space: nowrap;
|
|
16
15
|
border-bottom: 1px solid #eee;
|
|
17
16
|
overflow-x: auto;
|
|
@@ -30,7 +29,7 @@
|
|
|
30
29
|
flex-basis: 0;
|
|
31
30
|
flex-grow: 1;
|
|
32
31
|
height: 100%;
|
|
33
|
-
font-size:
|
|
32
|
+
font-size: 1em;
|
|
34
33
|
color: #000;
|
|
35
34
|
box-sizing: border-box;
|
|
36
35
|
padding: 0 16px;
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import videojs from 'video.js';
|
|
3
3
|
import 'video.js/dist/video-js.css';
|
|
4
4
|
import './index.css';
|
|
5
|
-
import { usePlatform, isCloudFileID } from '../../utils/platform';
|
|
5
|
+
import { usePlatform, isCloudFileID, isInIde } from '../../utils/platform';
|
|
6
6
|
import { getTempFileURL } from '../../utils/tcb';
|
|
7
7
|
import classNames from '../../utils/classnames';
|
|
8
8
|
import type { CommonPropsType } from '../../types';
|
|
@@ -154,9 +154,19 @@ const WedaVideo: React.FC<WedaVideoProps> = ({
|
|
|
154
154
|
setVideoErrMsg('');
|
|
155
155
|
});
|
|
156
156
|
players.on('error', function () {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
157
|
+
let errorMsg = `视频资源加载出错,错误信息:${
|
|
158
|
+
players?.error().message
|
|
159
|
+
}`;
|
|
160
|
+
let pattern = new RegExp('^(((https?)://)|/resources/)[^\\s]+$');
|
|
161
|
+
if (
|
|
162
|
+
isInIde() &&
|
|
163
|
+
!pattern.test(videoDataSource) &&
|
|
164
|
+
!isCloudFileID(videoDataSource)
|
|
165
|
+
) {
|
|
166
|
+
errorMsg = '请在预览区查看视频效果';
|
|
167
|
+
}
|
|
168
|
+
console.log('player error', errorMsg);
|
|
169
|
+
setVideoErrMsg(errorMsg);
|
|
160
170
|
setVideoModalStatus(true);
|
|
161
171
|
});
|
|
162
172
|
}
|
|
@@ -122,6 +122,20 @@ export const cutFileTitle = (str = '', count = 10) => {
|
|
|
122
122
|
*/
|
|
123
123
|
export const isInIde = () => !!window?.app?.cloud?.IS_WEDA_IDE;
|
|
124
124
|
|
|
125
|
+
/**
|
|
126
|
+
* 解析素材资源
|
|
127
|
+
*/
|
|
128
|
+
export const resolveStaticResourceUrl = (path) => {
|
|
129
|
+
try {
|
|
130
|
+
// eslint-disable-next-line no-unsafe-optional-chaining
|
|
131
|
+
const resourceUrl =
|
|
132
|
+
window?.app?.__internal__?.resolveStaticResourceUrl(path);
|
|
133
|
+
return resourceUrl;
|
|
134
|
+
} catch (error) {
|
|
135
|
+
return '';
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
|
|
125
139
|
/**
|
|
126
140
|
* cloudid和文件名转换
|
|
127
141
|
*/
|
|
@@ -141,3 +155,16 @@ const reg =
|
|
|
141
155
|
/(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/;
|
|
142
156
|
|
|
143
157
|
export const isUrl = (path) => reg.test(path);
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* 生成随机数
|
|
161
|
+
*/
|
|
162
|
+
export const randomUuid = () => {
|
|
163
|
+
var s = [];
|
|
164
|
+
var hexDigits = '0123456789abcdef';
|
|
165
|
+
for (var i = 0; i < 32; i++) {
|
|
166
|
+
s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
|
|
167
|
+
}
|
|
168
|
+
var uuid = s.join('');
|
|
169
|
+
return uuid;
|
|
170
|
+
};
|
package/src/web/weda-ui.css
CHANGED
|
@@ -40,19 +40,13 @@ body .weda-ui {
|
|
|
40
40
|
background-color: var(--weui-TAG-TEXT-BLUE);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
.weda-ui .wedatea2td-form__controls {
|
|
44
|
-
font-size: 1rem;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
43
|
@media (min-width: 1024px) {
|
|
48
44
|
.weda-ui .weui-cells {
|
|
49
45
|
/* prettier-ignore */
|
|
50
|
-
font-size:
|
|
46
|
+
font-size: 1em;
|
|
51
47
|
}
|
|
52
48
|
}
|
|
53
49
|
@media (min-width: 1024px) {
|
|
54
|
-
.weda-ui .weui-cell {
|
|
55
|
-
}
|
|
56
50
|
.weui .weui-cell_active:active {
|
|
57
51
|
background-color: unset !important;
|
|
58
52
|
}
|
|
@@ -67,14 +61,18 @@ body .weda-ui {
|
|
|
67
61
|
}
|
|
68
62
|
|
|
69
63
|
.weda-ui .weui-cell {
|
|
70
|
-
font-size:
|
|
64
|
+
font-size: inherit; /* 要让内联样式生效 */
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.weda-ui .weui-cells {
|
|
68
|
+
font-size: 1em;
|
|
71
69
|
}
|
|
72
70
|
|
|
73
71
|
.weui-picker a:link:hover {
|
|
74
72
|
text-decoration: none;
|
|
75
73
|
}
|
|
76
74
|
|
|
77
|
-
.
|
|
75
|
+
.weda-formcells__pc.vertical .wedatea2td-form__label label {
|
|
78
76
|
width: auto; /* vertcal 情况下label不固定宽度 */
|
|
79
77
|
}
|
|
80
78
|
|
|
@@ -86,3 +84,7 @@ body .weda-ui {
|
|
|
86
84
|
visibility: visible;
|
|
87
85
|
display: inline;
|
|
88
86
|
}
|
|
87
|
+
|
|
88
|
+
.weda-ui .wedatea2td-form__controls {
|
|
89
|
+
font-size: 1em;
|
|
90
|
+
}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
export interface ICompsConfig {
|
|
2
|
-
type: String;
|
|
3
|
-
name: string;
|
|
4
|
-
title: string;
|
|
5
|
-
description: string;
|
|
6
|
-
'x-platforms': string[];
|
|
7
|
-
default: string;
|
|
8
|
-
platforms: string;
|
|
9
|
-
'x-index': number;
|
|
10
|
-
}
|
|
11
|
-
export type TCompsConfig = ICompsConfig;
|
|
12
|
-
|
|
13
|
-
export const sortBy = (props) => {
|
|
14
|
-
return function (a, b) {
|
|
15
|
-
return a[props] - b[props];
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export const objFormat = (args: any, type, origin) => {
|
|
20
|
-
//判断属性title值是否为拓展写法
|
|
21
|
-
const uuidReg = /(?<=text)\('(.*)(?=',)/;
|
|
22
|
-
let transformData: any = [];
|
|
23
|
-
for (let i in args) {
|
|
24
|
-
if (type && type == 'event') {
|
|
25
|
-
transformData.push({
|
|
26
|
-
name: origin == 'lowCode' ? args[i]?.name : args[i]?.title,
|
|
27
|
-
title: origin == 'lowCode' ? args[i]?.eventName : args[i]?.name,
|
|
28
|
-
description: args[i]?.remarks || '-',
|
|
29
|
-
platforms: args[i]['x-platforms']
|
|
30
|
-
? args[i]['x-platforms'].indexOf('MP') > -1
|
|
31
|
-
? '小程序端'
|
|
32
|
-
: args[i]['x-platforms'].indexOf('WEB') > -1
|
|
33
|
-
? 'web端'
|
|
34
|
-
: '兼容三端'
|
|
35
|
-
: '兼容三端',
|
|
36
|
-
});
|
|
37
|
-
} else if (type && type == 'attribute' && args[i].type != 'slot') {
|
|
38
|
-
if (
|
|
39
|
-
args[i]?.display == false ||
|
|
40
|
-
args[i]?.isReactNode == true ||
|
|
41
|
-
args[i]['x-component'] == 'sub-category-title' ||
|
|
42
|
-
args[i]['x-component'] == 'Divider'
|
|
43
|
-
) {
|
|
44
|
-
continue;
|
|
45
|
-
}
|
|
46
|
-
transformData.push({
|
|
47
|
-
code: i,
|
|
48
|
-
title:
|
|
49
|
-
args[i].title.indexOf('{{') != -1
|
|
50
|
-
? args[i]?.title.match(uuidReg)[1]
|
|
51
|
-
: args[i]?.title,
|
|
52
|
-
description: args[i]?.remarks || '-',
|
|
53
|
-
type: args[i]?.type || '-',
|
|
54
|
-
default: JSON.stringify(args[i]?.default) || '-',
|
|
55
|
-
'x-index': args[i]['x-index'] ? args[i]['x-index'] : 999999,
|
|
56
|
-
'x-category': args[i]['x-category']
|
|
57
|
-
? args[i]['x-category']
|
|
58
|
-
: '基础属性',
|
|
59
|
-
});
|
|
60
|
-
} else if (type && type == 'slot' && args[i].type == 'slot') {
|
|
61
|
-
transformData.push({
|
|
62
|
-
code: i,
|
|
63
|
-
title: args[i]?.title,
|
|
64
|
-
description: args[i]?.description || '-',
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
if (type && type == 'attribute') transformData.sort(sortBy('x-index'));
|
|
70
|
-
|
|
71
|
-
if (type && type == 'attribute') {
|
|
72
|
-
transformData = groupByType(transformData, 'x-category');
|
|
73
|
-
}
|
|
74
|
-
return transformData;
|
|
75
|
-
};
|
|
76
|
-
function groupByType(arr, param) {
|
|
77
|
-
var map = {};
|
|
78
|
-
var dest = [];
|
|
79
|
-
var structureMap = [];
|
|
80
|
-
var storgeType = [];
|
|
81
|
-
for (var i = 0; i < arr.length; i++) {
|
|
82
|
-
var ai = arr[i];
|
|
83
|
-
if (ai[param] && !map[ai[param]]) {
|
|
84
|
-
dest.push({
|
|
85
|
-
name: ai[param],
|
|
86
|
-
data: [ai],
|
|
87
|
-
});
|
|
88
|
-
map[ai[param]] = ai;
|
|
89
|
-
} else if (!ai[param]) {
|
|
90
|
-
dest.push({
|
|
91
|
-
name: '基础属性',
|
|
92
|
-
data: [ai],
|
|
93
|
-
});
|
|
94
|
-
map[ai[param]] = ai;
|
|
95
|
-
} else {
|
|
96
|
-
for (var j = 0; j < dest.length; j++) {
|
|
97
|
-
var dj = dest[j];
|
|
98
|
-
if (dj.name == ai[param]) {
|
|
99
|
-
dj.data.push(ai);
|
|
100
|
-
break;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
for (var k = 0; k < dest.length; k++) {
|
|
106
|
-
if (k == 0 && dest[k]?.name != '基础属性') {
|
|
107
|
-
storgeType = storgeType.concat(dest[k]?.data);
|
|
108
|
-
continue;
|
|
109
|
-
}
|
|
110
|
-
structureMap = structureMap.concat(dest[k]?.data);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
storgeType.length != 0 ? structureMap.push(...storgeType) : null;
|
|
114
|
-
return structureMap;
|
|
115
|
-
}
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
.tableview {
|
|
2
|
-
width: 700px;
|
|
3
|
-
table-layout: fixed;
|
|
4
|
-
}
|
|
5
|
-
.tr-width-1 {
|
|
6
|
-
width: 100px;
|
|
7
|
-
}
|
|
8
|
-
.tr-width-2 {
|
|
9
|
-
width: 200px;
|
|
10
|
-
}
|
|
11
|
-
.tr-width-3 {
|
|
12
|
-
width: 300px;
|
|
13
|
-
}
|
|
14
|
-
.tr-width-4 {
|
|
15
|
-
width: 400px;
|
|
16
|
-
}
|
|
17
|
-
.tr-width-6 {
|
|
18
|
-
width: 600px;
|
|
19
|
-
}
|
|
20
|
-
.tr-width-7 {
|
|
21
|
-
width: 700px;
|
|
22
|
-
}
|
|
23
|
-
.custom-table--body-wrapper.is-fixed {
|
|
24
|
-
overflow-y: hidden;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.custom-table--fixed-wrapper {
|
|
28
|
-
box-shadow: 4px 0px 4px rgba(0, 0, 0, 0.1);
|
|
29
|
-
|
|
30
|
-
left: 0;
|
|
31
|
-
top: 0;
|
|
32
|
-
bottom: 0;
|
|
33
|
-
width: 800px;
|
|
34
|
-
background-color: #fff;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.custom-table td,
|
|
38
|
-
.custom-table th {
|
|
39
|
-
white-space: nowrap;
|
|
40
|
-
overflow: hidden;
|
|
41
|
-
height: 42px;
|
|
42
|
-
padding: 2px !important;
|
|
43
|
-
}
|
|
44
|
-
.custom-table .table {
|
|
45
|
-
table-layout: fixed;
|
|
46
|
-
margin-bottom: 0;
|
|
47
|
-
}
|
|
48
|
-
/** 底部边框 */
|
|
49
|
-
.custom-table::after {
|
|
50
|
-
content: '';
|
|
51
|
-
display: block;
|
|
52
|
-
height: 0px;
|
|
53
|
-
position: relative;
|
|
54
|
-
top: -1px;
|
|
55
|
-
border-bottom: 1px solid #ddd;
|
|
56
|
-
}
|
|
57
|
-
/** 右侧边框 */
|
|
58
|
-
.custom-table::before {
|
|
59
|
-
content: '';
|
|
60
|
-
display: block;
|
|
61
|
-
position: absolute;
|
|
62
|
-
top: 0;
|
|
63
|
-
bottom: 0;
|
|
64
|
-
right: 0;
|
|
65
|
-
border-right: 1px solid #ddd;
|
|
66
|
-
}
|
|
67
|
-
.custom-table th.gutter {
|
|
68
|
-
width: 15px;
|
|
69
|
-
padding: 0;
|
|
70
|
-
}
|
|
71
|
-
.tea-table__header {
|
|
72
|
-
overflow: hidden;
|
|
73
|
-
margin-bottom: -18px;
|
|
74
|
-
}
|
|
75
|
-
.tea-table__box {
|
|
76
|
-
border-collapse: collapse;
|
|
77
|
-
table-layout: fixed;
|
|
78
|
-
width: 100%;
|
|
79
|
-
position: relative;
|
|
80
|
-
border-spacing: 0px;
|
|
81
|
-
}
|
|
82
|
-
.tea-text-overflow,
|
|
83
|
-
.tea-text-truncate {
|
|
84
|
-
display: flex;
|
|
85
|
-
vertical-align: middle;
|
|
86
|
-
white-space: nowrap;
|
|
87
|
-
text-overflow: ellipsis;
|
|
88
|
-
max-width: 100%;
|
|
89
|
-
overflow: hidden;
|
|
90
|
-
}
|
|
91
|
-
.tea-table__header thead {
|
|
92
|
-
background-color: transparent;
|
|
93
|
-
border-width: 0px;
|
|
94
|
-
border-style: initial;
|
|
95
|
-
border-color: initial;
|
|
96
|
-
border-image: initial;
|
|
97
|
-
}
|
|
98
|
-
colgroup {
|
|
99
|
-
display: table-column-group;
|
|
100
|
-
}
|
|
101
|
-
.tea-table__box tr {
|
|
102
|
-
outline: none 0px;
|
|
103
|
-
transition: background-color 0.1s linear 0s;
|
|
104
|
-
}
|
|
105
|
-
.tea-table__box th {
|
|
106
|
-
position: relative;
|
|
107
|
-
padding: 10px;
|
|
108
|
-
border-bottom: 1px solid rgb(231, 234, 239);
|
|
109
|
-
}
|
|
110
|
-
.tea-table__box th > div {
|
|
111
|
-
position: relative;
|
|
112
|
-
color: rgb(0 0 0 / 77%);
|
|
113
|
-
padding: 0px;
|
|
114
|
-
display: inline-block;
|
|
115
|
-
vertical-align: middle;
|
|
116
|
-
font-size: 16px;
|
|
117
|
-
width: 100%;
|
|
118
|
-
overflow-wrap: break-word;
|
|
119
|
-
word-break: break-word;
|
|
120
|
-
}
|
|
121
|
-
.tea-table__box tr > td {
|
|
122
|
-
color: rgb(0 0 0);
|
|
123
|
-
padding: 10px;
|
|
124
|
-
vertical-align: middle;
|
|
125
|
-
font-size: 16px;
|
|
126
|
-
vertical-align: top;
|
|
127
|
-
}
|
|
128
|
-
.tea-table__box tr > td > code {
|
|
129
|
-
color: #c7254e;
|
|
130
|
-
font-size: 85%;
|
|
131
|
-
border: none;
|
|
132
|
-
}
|
|
133
|
-
.tea-text-overflow,
|
|
134
|
-
.tea-text-truncate {
|
|
135
|
-
display: flex;
|
|
136
|
-
vertical-align: middle;
|
|
137
|
-
white-space: nowrap;
|
|
138
|
-
text-overflow: ellipsis;
|
|
139
|
-
max-width: 100%;
|
|
140
|
-
overflow: hidden;
|
|
141
|
-
}
|
|
142
|
-
table {
|
|
143
|
-
display: table;
|
|
144
|
-
border-collapse: separate;
|
|
145
|
-
box-sizing: border-box;
|
|
146
|
-
text-indent: initial;
|
|
147
|
-
border-spacing: 2px;
|
|
148
|
-
border-color: grey;
|
|
149
|
-
}
|
|
150
|
-
.tea-table__body {
|
|
151
|
-
border-bottom: 1px solid rgb(207, 213, 222);
|
|
152
|
-
overflow: auto;
|
|
153
|
-
}
|
|
154
|
-
colgroup {
|
|
155
|
-
display: table-column-group;
|
|
156
|
-
}
|
|
157
|
-
col {
|
|
158
|
-
display: table-column;
|
|
159
|
-
}
|
|
160
|
-
.hash-link {
|
|
161
|
-
opacity: 0;
|
|
162
|
-
padding-left: 0.5rem;
|
|
163
|
-
transition: opacity var(--ifm-transition-fast);
|
|
164
|
-
}
|