@trionesdev/antd-mobile-react 0.0.2-beta.21 → 0.0.2-beta.23
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/LICENSE +21 -21
- package/dist/ActionSheet/style.scss +52 -52
- package/dist/Avatar/demo/base.js +2 -2
- package/dist/Avatar/demo/style.scss +6 -6
- package/dist/Badge/demo/base.js +2 -2
- package/dist/Badge/demo/base.scss +6 -6
- package/dist/Button/demo/base.js +2 -2
- package/dist/Button/style.scss +234 -234
- package/dist/Calendar/style.scss +85 -85
- package/dist/Calendar/touchable-calendar-grid.js +9 -9
- package/dist/CalendarDatetimePicker/style.scss +54 -54
- package/dist/CalendarDatetimePickerCell/style.scss +10 -10
- package/dist/CalendarPicker/style.scss +31 -31
- package/dist/Card/demo/base.js +2 -2
- package/dist/Card/demo/base.scss +18 -18
- package/dist/CascaderPicker/style.scss +45 -45
- package/dist/CascaderPickerCell/style.scss +24 -24
- package/dist/Checkbox/demo/base.js +2 -2
- package/dist/ConfigProvider/demo/base.js +2 -2
- package/dist/DemoBlock/index.scss +20 -20
- package/dist/DemoDescription/index.scss +3 -3
- package/dist/Divider/demo/base.js +2 -2
- package/dist/Ellipsis/demo/base.js +2 -2
- package/dist/Empty/demo/base.js +2 -2
- package/dist/ErrorBlock/demo/base.js +2 -2
- package/dist/FetchPicker/styles.scss +118 -118
- package/dist/FloatButton/style.scss +123 -123
- package/dist/Footer/demo/base.js +2 -2
- package/dist/Form/style.scss +106 -106
- package/dist/Grid/demo/base.js +2 -2
- package/dist/Grid/demo/base.scss +7 -7
- package/dist/Icon/demo/base.js +2 -2
- package/dist/Image/demo/base.js +2 -2
- package/dist/Image/demo/base.scss +4 -4
- package/dist/Image/style.scss +30 -30
- package/dist/ImagesPreview/style.scss +34 -34
- package/dist/ImagesWall/style.scss +70 -70
- package/dist/Input/demo/base.js +2 -2
- package/dist/Input/index.scss +240 -240
- package/dist/NavBar/demo/base.scss +5 -5
- package/dist/NoticeBar/demo/base.js +2 -2
- package/dist/Overlay/style.scss +20 -20
- package/dist/PageIndicator/demo/base.js +2 -2
- package/dist/Picker/style.scss +44 -44
- package/dist/PickerView/style.scss +72 -72
- package/dist/Popup/demo/base.js +2 -2
- package/dist/Popup/style.scss +129 -129
- package/dist/Radio/demo/base.scss +4 -4
- package/dist/Result/demo/base.js +2 -2
- package/dist/SafeArea/demo/base.scss +18 -18
- package/dist/ScrollView/style.scss +19 -19
- package/dist/SideBar/side-bar.js +6 -6
- package/dist/SideBar/style.scss +85 -85
- package/dist/Space/demo/base.js +2 -2
- package/dist/Swiper/style.scss +54 -54
- package/dist/Switch/demo/base.js +2 -2
- package/dist/TabBar/demo/base.js +2 -2
- package/dist/Tag/demo/base.js +2 -2
- package/dist/Tag/demo/style.scss +8 -8
- package/dist/Toast/style.scss +63 -63
- package/dist/VerificationCodeInput/style.scss +20 -20
- package/dist/WaterMark/demo/demo1.js +2 -2
- package/dist/WaterMark/demo/demo1.scss +6 -6
- package/dist/WaterMark/demo/demo2.js +2 -2
- package/dist/style/variable.scss +1 -1
- package/dist/utils/type.js +36 -36
- package/dist/utils/with-default-props.js +4 -4
- package/package.json +5 -4
- package/readme.md +43 -43
package/dist/SideBar/style.scss
CHANGED
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
@use "../style/variable" as variable;
|
|
2
|
-
|
|
3
|
-
$trionesSideBarCls: 'triones-antm-sidebar';
|
|
4
|
-
|
|
5
|
-
.#{$trionesSideBarCls} {
|
|
6
|
-
display: flex;
|
|
7
|
-
height: 100%;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
&-tabs {
|
|
11
|
-
min-width: 0;
|
|
12
|
-
background-color: variable.$trionesColorFill;
|
|
13
|
-
overflow: auto;
|
|
14
|
-
scrollbar-width: thin;
|
|
15
|
-
flex-shrink: 0;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&-tab {
|
|
19
|
-
cursor: pointer;
|
|
20
|
-
padding: variable.$trionesPadding variable.$trionesPadding;
|
|
21
|
-
color: variable.$trionesColorTextSecondary;
|
|
22
|
-
|
|
23
|
-
&-active {
|
|
24
|
-
color: variable.$trionesColorPrimaryText;
|
|
25
|
-
background-color: variable.$trionesColorBgBase;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&-content {
|
|
31
|
-
flex: 1 auto;
|
|
32
|
-
min-width: 0;
|
|
33
|
-
overflow: hidden;
|
|
34
|
-
//overflow-y: auto;
|
|
35
|
-
//scrollbar-width: none;
|
|
36
|
-
position: relative;
|
|
37
|
-
user-select: none;
|
|
38
|
-
touch-action: none;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
&-wheel {
|
|
42
|
-
width: 100%;
|
|
43
|
-
cursor: grab;
|
|
44
|
-
position: absolute;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&-item {
|
|
48
|
-
|
|
49
|
-
&-active {
|
|
50
|
-
display: block;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&-switch-mode {
|
|
56
|
-
.#{$trionesSideBarCls} {
|
|
57
|
-
&-content {
|
|
58
|
-
|
|
59
|
-
&-item {
|
|
60
|
-
height: 100%;
|
|
61
|
-
display: none;
|
|
62
|
-
&-active {
|
|
63
|
-
display: block;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&-scroll-mode {
|
|
71
|
-
.#{$trionesSideBarCls} {
|
|
72
|
-
&-content {
|
|
73
|
-
|
|
74
|
-
&-item {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
&-active {
|
|
78
|
-
display: block;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
}
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
|
+
|
|
3
|
+
$trionesSideBarCls: 'triones-antm-sidebar';
|
|
4
|
+
|
|
5
|
+
.#{$trionesSideBarCls} {
|
|
6
|
+
display: flex;
|
|
7
|
+
height: 100%;
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
&-tabs {
|
|
11
|
+
min-width: 0;
|
|
12
|
+
background-color: variable.$trionesColorFill;
|
|
13
|
+
overflow: auto;
|
|
14
|
+
scrollbar-width: thin;
|
|
15
|
+
flex-shrink: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&-tab {
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
padding: variable.$trionesPadding variable.$trionesPadding;
|
|
21
|
+
color: variable.$trionesColorTextSecondary;
|
|
22
|
+
|
|
23
|
+
&-active {
|
|
24
|
+
color: variable.$trionesColorPrimaryText;
|
|
25
|
+
background-color: variable.$trionesColorBgBase;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&-content {
|
|
31
|
+
flex: 1 auto;
|
|
32
|
+
min-width: 0;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
//overflow-y: auto;
|
|
35
|
+
//scrollbar-width: none;
|
|
36
|
+
position: relative;
|
|
37
|
+
user-select: none;
|
|
38
|
+
touch-action: none;
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
&-wheel {
|
|
42
|
+
width: 100%;
|
|
43
|
+
cursor: grab;
|
|
44
|
+
position: absolute;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&-item {
|
|
48
|
+
|
|
49
|
+
&-active {
|
|
50
|
+
display: block;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&-switch-mode {
|
|
56
|
+
.#{$trionesSideBarCls} {
|
|
57
|
+
&-content {
|
|
58
|
+
|
|
59
|
+
&-item {
|
|
60
|
+
height: 100%;
|
|
61
|
+
display: none;
|
|
62
|
+
&-active {
|
|
63
|
+
display: block;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&-scroll-mode {
|
|
71
|
+
.#{$trionesSideBarCls} {
|
|
72
|
+
&-content {
|
|
73
|
+
|
|
74
|
+
&-item {
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
&-active {
|
|
78
|
+
display: block;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
}
|
package/dist/Space/demo/base.js
CHANGED
package/dist/Swiper/style.scss
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
@use "../style/variable" as variable;
|
|
2
|
-
$swiperCls: 'triones-antm-swiper';
|
|
3
|
-
|
|
4
|
-
.#{$swiperCls} {
|
|
5
|
-
max-height: 100%;
|
|
6
|
-
display: flex;
|
|
7
|
-
justify-items: center;
|
|
8
|
-
align-items: center;
|
|
9
|
-
}
|
|
10
|
-
.#{$swiperCls}-core {
|
|
11
|
-
position: relative;
|
|
12
|
-
width: 100%;
|
|
13
|
-
height: 100%;
|
|
14
|
-
overflow: hidden;
|
|
15
|
-
box-sizing: border-box;
|
|
16
|
-
&-box{
|
|
17
|
-
position: relative;
|
|
18
|
-
width: 100%;
|
|
19
|
-
height: 100%;
|
|
20
|
-
}
|
|
21
|
-
&-wrapper{
|
|
22
|
-
position: relative;
|
|
23
|
-
width: 100%;
|
|
24
|
-
height: 100%;
|
|
25
|
-
display: flex;
|
|
26
|
-
transition-property: transform;
|
|
27
|
-
justify-content: center;
|
|
28
|
-
align-items: center;
|
|
29
|
-
&-horizontal{
|
|
30
|
-
flex-direction: row;
|
|
31
|
-
touch-action: pan-x;
|
|
32
|
-
}
|
|
33
|
-
&-vertical{
|
|
34
|
-
flex-direction: column;
|
|
35
|
-
touch-action: pan-y;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
&-item {
|
|
39
|
-
position: relative;
|
|
40
|
-
flex-shrink: 0;
|
|
41
|
-
display: flex;
|
|
42
|
-
justify-content: center;
|
|
43
|
-
align-items: center;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.#{$swiperCls}-taro {
|
|
48
|
-
width: 100%;
|
|
49
|
-
height: 100%;
|
|
50
|
-
&-item{
|
|
51
|
-
display: flex;
|
|
52
|
-
align-items: center;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
|
+
$swiperCls: 'triones-antm-swiper';
|
|
3
|
+
|
|
4
|
+
.#{$swiperCls} {
|
|
5
|
+
max-height: 100%;
|
|
6
|
+
display: flex;
|
|
7
|
+
justify-items: center;
|
|
8
|
+
align-items: center;
|
|
9
|
+
}
|
|
10
|
+
.#{$swiperCls}-core {
|
|
11
|
+
position: relative;
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 100%;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
&-box{
|
|
17
|
+
position: relative;
|
|
18
|
+
width: 100%;
|
|
19
|
+
height: 100%;
|
|
20
|
+
}
|
|
21
|
+
&-wrapper{
|
|
22
|
+
position: relative;
|
|
23
|
+
width: 100%;
|
|
24
|
+
height: 100%;
|
|
25
|
+
display: flex;
|
|
26
|
+
transition-property: transform;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
align-items: center;
|
|
29
|
+
&-horizontal{
|
|
30
|
+
flex-direction: row;
|
|
31
|
+
touch-action: pan-x;
|
|
32
|
+
}
|
|
33
|
+
&-vertical{
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
touch-action: pan-y;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
&-item {
|
|
39
|
+
position: relative;
|
|
40
|
+
flex-shrink: 0;
|
|
41
|
+
display: flex;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
align-items: center;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.#{$swiperCls}-taro {
|
|
48
|
+
width: 100%;
|
|
49
|
+
height: 100%;
|
|
50
|
+
&-item{
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
}
|
|
54
|
+
}
|
package/dist/Switch/demo/base.js
CHANGED
|
@@ -8,8 +8,8 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
8
8
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
9
9
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
10
10
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
|
-
/**
|
|
12
|
-
* compact: true
|
|
11
|
+
/**
|
|
12
|
+
* compact: true
|
|
13
13
|
*/
|
|
14
14
|
import { CheckOutline, CloseOutline } from '@trionesdev/antd-mobile-icons-react';
|
|
15
15
|
import { DemoBlock } from "../../DemoBlock";
|
package/dist/TabBar/demo/base.js
CHANGED
package/dist/Tag/demo/base.js
CHANGED
package/dist/Tag/demo/style.scss
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
.tag-demo-style {
|
|
2
|
-
&-content {
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-wrap: wrap;
|
|
5
|
-
gap: 8px;
|
|
6
|
-
row-gap: 8px;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
1
|
+
.tag-demo-style {
|
|
2
|
+
&-content {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-wrap: wrap;
|
|
5
|
+
gap: 8px;
|
|
6
|
+
row-gap: 8px;
|
|
7
|
+
}
|
|
8
|
+
}
|
package/dist/Toast/style.scss
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
$toastCls: 'triones-antm-toast';
|
|
2
|
-
|
|
3
|
-
.#{$toastCls} {
|
|
4
|
-
position: fixed;
|
|
5
|
-
top: 0;
|
|
6
|
-
left: 0;
|
|
7
|
-
width: 100%;
|
|
8
|
-
height: 100%;
|
|
9
|
-
text-align: center;
|
|
10
|
-
pointer-events: none;
|
|
11
|
-
|
|
12
|
-
&-main {
|
|
13
|
-
|
|
14
|
-
padding: 12Px;
|
|
15
|
-
display: inline-block;
|
|
16
|
-
position: relative;
|
|
17
|
-
top: 50%;
|
|
18
|
-
transform: translateY(-50%);
|
|
19
|
-
width: auto;
|
|
20
|
-
max-width: 204px;
|
|
21
|
-
max-height: 70%;
|
|
22
|
-
overflow: auto;
|
|
23
|
-
color: #fff;
|
|
24
|
-
word-break: break-all;
|
|
25
|
-
background-color: rgba(0, 0, 0, .7);
|
|
26
|
-
border-radius: 8px;
|
|
27
|
-
pointer-events: all;
|
|
28
|
-
font-size: var(--adm-font-size-7);
|
|
29
|
-
line-height: 1.5;
|
|
30
|
-
box-sizing: border-box;
|
|
31
|
-
&-icon{
|
|
32
|
-
padding: 35Px 12Px;
|
|
33
|
-
min-width: 150Px;
|
|
34
|
-
.#{$toastCls}{
|
|
35
|
-
&-center{
|
|
36
|
-
&-center{
|
|
37
|
-
text-align: initial;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&-center{
|
|
45
|
-
display: flex;
|
|
46
|
-
flex-direction: column;
|
|
47
|
-
justify-content: center;
|
|
48
|
-
align-items: center;
|
|
49
|
-
gap: 8Px;
|
|
50
|
-
&-icon{
|
|
51
|
-
.triones-antm-icon{
|
|
52
|
-
font-size: 36Px;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
&-content{
|
|
56
|
-
display: inline-block;
|
|
57
|
-
color: #fff;
|
|
58
|
-
word-break: break-all;
|
|
59
|
-
pointer-events: all;
|
|
60
|
-
text-align: initial;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
1
|
+
$toastCls: 'triones-antm-toast';
|
|
2
|
+
|
|
3
|
+
.#{$toastCls} {
|
|
4
|
+
position: fixed;
|
|
5
|
+
top: 0;
|
|
6
|
+
left: 0;
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
text-align: center;
|
|
10
|
+
pointer-events: none;
|
|
11
|
+
|
|
12
|
+
&-main {
|
|
13
|
+
|
|
14
|
+
padding: 12Px;
|
|
15
|
+
display: inline-block;
|
|
16
|
+
position: relative;
|
|
17
|
+
top: 50%;
|
|
18
|
+
transform: translateY(-50%);
|
|
19
|
+
width: auto;
|
|
20
|
+
max-width: 204px;
|
|
21
|
+
max-height: 70%;
|
|
22
|
+
overflow: auto;
|
|
23
|
+
color: #fff;
|
|
24
|
+
word-break: break-all;
|
|
25
|
+
background-color: rgba(0, 0, 0, .7);
|
|
26
|
+
border-radius: 8px;
|
|
27
|
+
pointer-events: all;
|
|
28
|
+
font-size: var(--adm-font-size-7);
|
|
29
|
+
line-height: 1.5;
|
|
30
|
+
box-sizing: border-box;
|
|
31
|
+
&-icon{
|
|
32
|
+
padding: 35Px 12Px;
|
|
33
|
+
min-width: 150Px;
|
|
34
|
+
.#{$toastCls}{
|
|
35
|
+
&-center{
|
|
36
|
+
&-center{
|
|
37
|
+
text-align: initial;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&-center{
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-direction: column;
|
|
47
|
+
justify-content: center;
|
|
48
|
+
align-items: center;
|
|
49
|
+
gap: 8Px;
|
|
50
|
+
&-icon{
|
|
51
|
+
.triones-antm-icon{
|
|
52
|
+
font-size: 36Px;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
&-content{
|
|
56
|
+
display: inline-block;
|
|
57
|
+
color: #fff;
|
|
58
|
+
word-break: break-all;
|
|
59
|
+
pointer-events: all;
|
|
60
|
+
text-align: initial;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
@use "../style/variable" as variable;
|
|
2
|
-
|
|
3
|
-
$verificationCodeInputCls: 'triones-antm-verification-code-input';
|
|
4
|
-
|
|
5
|
-
.#{$verificationCodeInputCls} {
|
|
6
|
-
&-send {
|
|
7
|
-
padding-inline: variable.$trionesPaddingContentHorizontal;
|
|
8
|
-
cursor: pointer;
|
|
9
|
-
|
|
10
|
-
&:hover {
|
|
11
|
-
color: variable.$trionesColorPrimary;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
&-counting {
|
|
16
|
-
padding-inline: variable.$trionesPaddingContentHorizontal;
|
|
17
|
-
cursor: not-allowed;
|
|
18
|
-
color: variable.$trionesColorTextDisabled;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
|
+
|
|
3
|
+
$verificationCodeInputCls: 'triones-antm-verification-code-input';
|
|
4
|
+
|
|
5
|
+
.#{$verificationCodeInputCls} {
|
|
6
|
+
&-send {
|
|
7
|
+
padding-inline: variable.$trionesPaddingContentHorizontal;
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
|
|
10
|
+
&:hover {
|
|
11
|
+
color: variable.$trionesColorPrimary;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&-counting {
|
|
16
|
+
padding-inline: variable.$trionesPaddingContentHorizontal;
|
|
17
|
+
cursor: not-allowed;
|
|
18
|
+
color: variable.$trionesColorTextDisabled;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -4,8 +4,8 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
4
4
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
5
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
-
/**
|
|
8
|
-
* compact: true
|
|
7
|
+
/**
|
|
8
|
+
* compact: true
|
|
9
9
|
*/
|
|
10
10
|
import React, { useState } from 'react';
|
|
11
11
|
import "./demo1.scss";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
.water-mark-overlay {
|
|
2
|
-
padding: 12px;
|
|
3
|
-
button {
|
|
4
|
-
margin-bottom: 12px;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
1
|
+
.water-mark-overlay {
|
|
2
|
+
padding: 12px;
|
|
3
|
+
button {
|
|
4
|
+
margin-bottom: 12px;
|
|
5
|
+
}
|
|
6
|
+
}
|
package/dist/style/variable.scss
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@forward "@trionesdev/antd-mobile-base-react/dist/style/variable" ;
|
|
1
|
+
@forward "@trionesdev/antd-mobile-base-react/dist/style/variable" ;
|
package/dist/utils/type.js
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
/** https://github.com/Microsoft/TypeScript/issues/29729 */
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* Get component props
|
|
5
|
-
* @example
|
|
6
|
-
* ```ts
|
|
7
|
-
* import { Checkbox } from 'antd'
|
|
8
|
-
* import type { GetProps } from 'antd';
|
|
9
|
-
*
|
|
10
|
-
* type CheckboxGroupProps = GetProps<typeof Checkbox.Group>
|
|
11
|
-
* ```
|
|
12
|
-
* @since 5.13.0
|
|
3
|
+
/**
|
|
4
|
+
* Get component props
|
|
5
|
+
* @example
|
|
6
|
+
* ```ts
|
|
7
|
+
* import { Checkbox } from 'antd'
|
|
8
|
+
* import type { GetProps } from 'antd';
|
|
9
|
+
*
|
|
10
|
+
* type CheckboxGroupProps = GetProps<typeof Checkbox.Group>
|
|
11
|
+
* ```
|
|
12
|
+
* @since 5.13.0
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
/**
|
|
16
|
-
* Get component props by component name
|
|
17
|
-
* @example
|
|
18
|
-
* ```ts
|
|
19
|
-
* import { Select } from 'antd';
|
|
20
|
-
* import type { GetProp, SelectProps } from 'antd';
|
|
21
|
-
*
|
|
22
|
-
* type SelectOption1 = GetProp<SelectProps, 'options'>[number];
|
|
23
|
-
* // or
|
|
24
|
-
* type SelectOption2 = GetProp<typeof Select, 'options'>[number];
|
|
25
|
-
*
|
|
26
|
-
* const onChange: GetProp<typeof Select, 'onChange'> = (value, option) => {
|
|
27
|
-
* // Do something
|
|
28
|
-
* };
|
|
29
|
-
* ```
|
|
30
|
-
* @since 5.13.0
|
|
15
|
+
/**
|
|
16
|
+
* Get component props by component name
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* import { Select } from 'antd';
|
|
20
|
+
* import type { GetProp, SelectProps } from 'antd';
|
|
21
|
+
*
|
|
22
|
+
* type SelectOption1 = GetProp<SelectProps, 'options'>[number];
|
|
23
|
+
* // or
|
|
24
|
+
* type SelectOption2 = GetProp<typeof Select, 'options'>[number];
|
|
25
|
+
*
|
|
26
|
+
* const onChange: GetProp<typeof Select, 'onChange'> = (value, option) => {
|
|
27
|
+
* // Do something
|
|
28
|
+
* };
|
|
29
|
+
* ```
|
|
30
|
+
* @since 5.13.0
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
|
-
/**
|
|
34
|
-
* Get component ref
|
|
35
|
-
* @example
|
|
36
|
-
* ```ts
|
|
37
|
-
* import { Input } from 'antd';
|
|
38
|
-
* import type { GetRef } from 'antd';
|
|
39
|
-
*
|
|
40
|
-
* type InputRef = GetRef<typeof Input>;
|
|
41
|
-
* ```
|
|
42
|
-
* @since 5.13.0
|
|
33
|
+
/**
|
|
34
|
+
* Get component ref
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* import { Input } from 'antd';
|
|
38
|
+
* import type { GetRef } from 'antd';
|
|
39
|
+
*
|
|
40
|
+
* type InputRef = GetRef<typeof Input>;
|
|
41
|
+
* ```
|
|
42
|
+
* @since 5.13.0
|
|
43
43
|
*/
|
|
44
44
|
|
|
45
45
|
export var ComponentDefaults = {
|
|
@@ -15,10 +15,10 @@ export function mergeProps() {
|
|
|
15
15
|
return ret;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
/**
|
|
19
|
-
* Merge props and return the first non-undefined value.
|
|
20
|
-
* The later has higher priority. e.g. (10, 1, 5) => 5 wins.
|
|
21
|
-
* This is useful with legacy props that have been deprecated.
|
|
18
|
+
/**
|
|
19
|
+
* Merge props and return the first non-undefined value.
|
|
20
|
+
* The later has higher priority. e.g. (10, 1, 5) => 5 wins.
|
|
21
|
+
* This is useful with legacy props that have been deprecated.
|
|
22
22
|
*/
|
|
23
23
|
export function mergeProp(defaultProp) {
|
|
24
24
|
for (var _len2 = arguments.length, propList = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trionesdev/antd-mobile-react",
|
|
3
|
-
"version": "0.0.2-beta.
|
|
3
|
+
"version": "0.0.2-beta.23",
|
|
4
4
|
"description": "antd mobile react ",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@commitlint/cli": "^19.6.1",
|
|
65
65
|
"@commitlint/config-conventional": "^19.6.0",
|
|
66
66
|
"@trionesdev/antd-mobile-base-react": "workspace:*",
|
|
67
|
-
"@trionesdev/antd-mobile-icons-react": "
|
|
67
|
+
"@trionesdev/antd-mobile-icons-react": "workspace:*",
|
|
68
68
|
"@types/crypto-js": "^4.2.2",
|
|
69
69
|
"@types/lodash-es": "^4.17.12",
|
|
70
70
|
"@types/react": "^18.0.0",
|
|
@@ -89,11 +89,12 @@
|
|
|
89
89
|
"stylelint": "^16.12.0"
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
|
92
|
-
"@trionesdev/antd-mobile-base-react": "0.0.2-beta.
|
|
92
|
+
"@trionesdev/antd-mobile-base-react": "0.0.2-beta.23",
|
|
93
|
+
"@trionesdev/antd-mobile-icons-react": "0.0.2-beta.23",
|
|
93
94
|
"ahooks": "^3.9.7",
|
|
94
95
|
"crypto-js": "^4.2.0",
|
|
95
96
|
"dayjs": "^1.11.20",
|
|
96
97
|
"rc-field-form": "^2.7.1"
|
|
97
98
|
},
|
|
98
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "27e59766142bccbfd2e0caff6993790e89ebb7df"
|
|
99
100
|
}
|