@trionesdev/antd-mobile-base-react 0.0.2-beta.17 → 0.0.2-beta.19
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/README.md +23 -23
- package/dist/Alert/alert.js +1 -1
- package/dist/Alert/style.scss +69 -69
- package/dist/Avatar/style.scss +17 -17
- package/dist/Badge/style.scss +100 -100
- package/dist/Card/style.scss +35 -35
- package/dist/CascaderView/cascader-column-item.js +1 -1
- package/dist/CascaderView/style.scss +22 -22
- package/dist/Cell/styles.scss +81 -81
- package/dist/Checkbox/checkbox-button.js +1 -1
- package/dist/Checkbox/checkbox-round.js +1 -1
- package/dist/Checkbox/index.scss +165 -165
- package/dist/DemoBlock/index.scss +20 -20
- package/dist/DemoDescription/index.scss +3 -3
- package/dist/Descriptions/style.scss +65 -65
- package/dist/Divider/style.scss +62 -62
- package/dist/Ellipsis/style.scss +13 -13
- package/dist/Empty/style.scss +29 -29
- package/dist/ErrorBlock/demo/base.js +2 -2
- package/dist/ErrorBlock/style.scss +62 -62
- package/dist/Footer/style.scss +55 -55
- package/dist/Form/styles.scss +11 -11
- package/dist/FormCell/styles.scss +103 -103
- package/dist/Grid/style.scss +17 -17
- package/dist/Icon/demo/base.js +2 -2
- package/dist/InputNumber/style.scss +100 -100
- package/dist/Loading/DotLoading.d.ts +0 -1
- package/dist/Loading/DotLoading.js +0 -1
- package/dist/Loading/SpinLoading.d.ts +0 -1
- package/dist/Loading/SpinLoading.js +0 -1
- package/dist/Loading/index.d.ts +1 -0
- package/dist/Loading/index.js +1 -0
- package/dist/Loading/{dot-loading.scss → style.scss} +113 -72
- package/dist/NavBar/nav-bar.js +1 -1
- package/dist/NavBar/style.scss +65 -64
- package/dist/NoticeBar/style.scss +130 -130
- package/dist/PageIndicator/style.scss +59 -59
- package/dist/Progress/style.scss +33 -33
- package/dist/Radio/radio.js +1 -1
- package/dist/Radio/style.scss +154 -154
- package/dist/Rate/rate.js +1 -1
- package/dist/Rate/style.scss +37 -37
- package/dist/Result/demo/base.js +2 -2
- package/dist/Result/style.scss +73 -73
- package/dist/Result/use-result-icon.js +1 -1
- package/dist/SafeArea/style.scss +20 -20
- package/dist/Scaffold/style.scss +17 -17
- package/dist/Segmented/style.scss +75 -75
- package/dist/Skeleton/style.scss +215 -215
- package/dist/Space/style.scss +101 -101
- package/dist/Stepper/style.scss +100 -100
- package/dist/Steps/style.scss +153 -153
- package/dist/Switch/style.scss +127 -127
- package/dist/TabBar/demo/base.js +2 -2
- package/dist/TabBar/index.scss +37 -37
- package/dist/Tabs/style.scss +108 -108
- package/dist/Tag/style.scss +110 -110
- package/dist/WaterMark/style.scss +17 -17
- package/dist/style/css-variable.scss +6 -6
- package/dist/style/style.scss +52 -52
- package/dist/style/theme-dark.scss +24 -24
- package/dist/style/theme-default.scss +54 -54
- package/dist/style/variable.scss +180 -180
- package/dist/utils/type.js +36 -36
- package/dist/utils/with-default-props.js +4 -4
- package/package.json +3 -3
- package/dist/Loading/spin-loading.scss +0 -39
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) fengxiaotx@163.com
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) fengxiaotx@163.com
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
# @trionesdev/antd-mobile-base-react
|
|
2
|
-
|
|
3
|
-
[](https://npmjs.com/package/@trionesdev/antd-mobile-base-react)
|
|
4
|
-
[](https://npmjs.com/package/@trionesdev/antd-mobile-base-react)
|
|
5
|
-
|
|
6
|
-
## Install
|
|
7
|
-
|
|
8
|
-
```bash
|
|
9
|
-
$ pnpm install
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
```bash
|
|
13
|
-
$ npm run dev
|
|
14
|
-
$ npm run build
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Options
|
|
18
|
-
|
|
19
|
-
TODO
|
|
20
|
-
|
|
21
|
-
## LICENSE
|
|
22
|
-
|
|
23
|
-
MIT
|
|
1
|
+
# @trionesdev/antd-mobile-base-react
|
|
2
|
+
|
|
3
|
+
[](https://npmjs.com/package/@trionesdev/antd-mobile-base-react)
|
|
4
|
+
[](https://npmjs.com/package/@trionesdev/antd-mobile-base-react)
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
$ pnpm install
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
$ npm run dev
|
|
14
|
+
$ npm run build
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Options
|
|
18
|
+
|
|
19
|
+
TODO
|
|
20
|
+
|
|
21
|
+
## LICENSE
|
|
22
|
+
|
|
23
|
+
MIT
|
package/dist/Alert/alert.js
CHANGED
|
@@ -7,7 +7,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
7
7
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
8
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9
9
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10
|
-
import { CheckCircleFill, CloseCircleFill, CloseOutline, ExclamationCircleFill, InformationCircleFill } from
|
|
10
|
+
import { CheckCircleFill, CloseCircleFill, CloseOutline, ExclamationCircleFill, InformationCircleFill } from '@trionesdev/antd-mobile-icons-react';
|
|
11
11
|
import classNames from 'classnames';
|
|
12
12
|
import React, { useState } from 'react';
|
|
13
13
|
import "./style.scss";
|
package/dist/Alert/style.scss
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
@use "../style/variable" as variable;
|
|
2
|
-
|
|
3
|
-
$trionesAlertCls: 'triones-antm-alert';
|
|
4
|
-
|
|
5
|
-
$trionesAlertDefaultPadding: 8Px 12Px;
|
|
6
|
-
|
|
7
|
-
.#{$trionesAlertCls} {
|
|
8
|
-
padding: $trionesAlertDefaultPadding;
|
|
9
|
-
border-radius: variable.$trionesBorderRadius;
|
|
10
|
-
display: flex;
|
|
11
|
-
flex: 1 auto;
|
|
12
|
-
border: 1Px solid;
|
|
13
|
-
align-items: center;
|
|
14
|
-
justify-content: center;
|
|
15
|
-
gap: 4Px;
|
|
16
|
-
|
|
17
|
-
&-success {
|
|
18
|
-
border-color: variable.$trionesColorSuccessBorder;
|
|
19
|
-
background-color: variable.$trionesColorSuccessBg;
|
|
20
|
-
|
|
21
|
-
.#{$trionesAlertCls}-icon {
|
|
22
|
-
color: variable.$trionesColorSuccess;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&-info {
|
|
27
|
-
border-color: variable.$trionesColorInfoBorder;
|
|
28
|
-
background-color: variable.$trionesColorInfoBg;
|
|
29
|
-
|
|
30
|
-
.#{$trionesAlertCls}-icon {
|
|
31
|
-
color: variable.$trionesColorInfo;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&-warning {
|
|
36
|
-
border-color: variable.$trionesColorWarningBorder;
|
|
37
|
-
background-color: variable.$trionesColorWarningBg;
|
|
38
|
-
|
|
39
|
-
.#{$trionesAlertCls}-icon {
|
|
40
|
-
color: variable.$trionesColorWarning;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&-error {
|
|
45
|
-
border-color: variable.$trionesColorErrorBorder;
|
|
46
|
-
background-color: variable.$trionesColorErrorBg;
|
|
47
|
-
|
|
48
|
-
.#{$trionesAlertCls}-icon {
|
|
49
|
-
color: variable.$trionesColorError;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&-icon {
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&-content {
|
|
57
|
-
flex: 1 auto;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
&-close-icon {
|
|
61
|
-
color: variable.$trionesColorIcon;
|
|
62
|
-
font-size: variable.$trionesFontSizeIcon;
|
|
63
|
-
cursor: pointer;
|
|
64
|
-
|
|
65
|
-
.triones-antm-icon {
|
|
66
|
-
font-size: variable.$trionesFontSizeIcon;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
|
+
|
|
3
|
+
$trionesAlertCls: 'triones-antm-alert';
|
|
4
|
+
|
|
5
|
+
$trionesAlertDefaultPadding: 8Px 12Px;
|
|
6
|
+
|
|
7
|
+
.#{$trionesAlertCls} {
|
|
8
|
+
padding: $trionesAlertDefaultPadding;
|
|
9
|
+
border-radius: variable.$trionesBorderRadius;
|
|
10
|
+
display: flex;
|
|
11
|
+
flex: 1 auto;
|
|
12
|
+
border: 1Px solid;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
gap: 4Px;
|
|
16
|
+
|
|
17
|
+
&-success {
|
|
18
|
+
border-color: variable.$trionesColorSuccessBorder;
|
|
19
|
+
background-color: variable.$trionesColorSuccessBg;
|
|
20
|
+
|
|
21
|
+
.#{$trionesAlertCls}-icon {
|
|
22
|
+
color: variable.$trionesColorSuccess;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&-info {
|
|
27
|
+
border-color: variable.$trionesColorInfoBorder;
|
|
28
|
+
background-color: variable.$trionesColorInfoBg;
|
|
29
|
+
|
|
30
|
+
.#{$trionesAlertCls}-icon {
|
|
31
|
+
color: variable.$trionesColorInfo;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&-warning {
|
|
36
|
+
border-color: variable.$trionesColorWarningBorder;
|
|
37
|
+
background-color: variable.$trionesColorWarningBg;
|
|
38
|
+
|
|
39
|
+
.#{$trionesAlertCls}-icon {
|
|
40
|
+
color: variable.$trionesColorWarning;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&-error {
|
|
45
|
+
border-color: variable.$trionesColorErrorBorder;
|
|
46
|
+
background-color: variable.$trionesColorErrorBg;
|
|
47
|
+
|
|
48
|
+
.#{$trionesAlertCls}-icon {
|
|
49
|
+
color: variable.$trionesColorError;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&-icon {
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&-content {
|
|
57
|
+
flex: 1 auto;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&-close-icon {
|
|
61
|
+
color: variable.$trionesColorIcon;
|
|
62
|
+
font-size: variable.$trionesFontSizeIcon;
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
|
|
65
|
+
.triones-antm-icon {
|
|
66
|
+
font-size: variable.$trionesFontSizeIcon;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
package/dist/Avatar/style.scss
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
@use "../style/variable" as variable;
|
|
2
|
-
$avatarCls: 'triones-antm-avatar';
|
|
3
|
-
|
|
4
|
-
.#{$avatarCls} {
|
|
5
|
-
display: inline-flex;
|
|
6
|
-
align-items: center;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
overflow: hidden;
|
|
9
|
-
|
|
10
|
-
&-circle {
|
|
11
|
-
border-radius: 50%;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&-square {
|
|
15
|
-
border-radius: variable.$trionesBorderRadius;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
|
+
$avatarCls: 'triones-antm-avatar';
|
|
3
|
+
|
|
4
|
+
.#{$avatarCls} {
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
|
|
10
|
+
&-circle {
|
|
11
|
+
border-radius: 50%;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&-square {
|
|
15
|
+
border-radius: variable.$trionesBorderRadius;
|
|
16
|
+
}
|
|
17
|
+
}
|
package/dist/Badge/style.scss
CHANGED
|
@@ -1,100 +1,100 @@
|
|
|
1
|
-
/* prettier-ignore */
|
|
2
|
-
$color-primary: #fa2c19;
|
|
3
|
-
$color-primary-text: #fff;
|
|
4
|
-
$badge-height: 14PX;
|
|
5
|
-
$badge-background-color: linear-gradient(135deg, #f53d4d 0%, #fa2c19 100%);
|
|
6
|
-
$badge-color: #fff;
|
|
7
|
-
$badge-font-size: 10PX;
|
|
8
|
-
$badge-border: 0PX solid #fff;
|
|
9
|
-
$badge-border-radius: $badge-height;
|
|
10
|
-
$badge-min-width: 5PX;
|
|
11
|
-
$badge-padding: 0 4PX;
|
|
12
|
-
$badge-icon-padding: 3PX;
|
|
13
|
-
$badge-icon-size: 12PX;
|
|
14
|
-
$badge-content-transform: translateY(-50%) translateX(100%);
|
|
15
|
-
$badge-z-index: 1;
|
|
16
|
-
$badge-dot-width: 7PX;
|
|
17
|
-
$badge-dot-border: 0PX solid #fff;
|
|
18
|
-
|
|
19
|
-
.triones-antm-badge {
|
|
20
|
-
position: relative;
|
|
21
|
-
display: inline-block;
|
|
22
|
-
|
|
23
|
-
&-icon {
|
|
24
|
-
position: absolute;
|
|
25
|
-
display: flex;
|
|
26
|
-
justify-content: center;
|
|
27
|
-
align-items: center;
|
|
28
|
-
background: $badge-background-color;
|
|
29
|
-
top: -10%;
|
|
30
|
-
right: -15%;
|
|
31
|
-
padding: $badge-icon-padding;
|
|
32
|
-
text-align: center;
|
|
33
|
-
border: $badge-border;
|
|
34
|
-
border-radius: $badge-border-radius;
|
|
35
|
-
z-index: $badge-z-index;
|
|
36
|
-
|
|
37
|
-
.triones-antm-icon {
|
|
38
|
-
width: $badge-icon-size;
|
|
39
|
-
height: $badge-icon-size;
|
|
40
|
-
font-size: $badge-icon-size;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&-sup {
|
|
45
|
-
height: $badge-height;
|
|
46
|
-
position: absolute;
|
|
47
|
-
display: flex;
|
|
48
|
-
justify-content: center;
|
|
49
|
-
align-items: center;
|
|
50
|
-
background: $badge-background-color;
|
|
51
|
-
color: $badge-color;
|
|
52
|
-
padding: $badge-padding;
|
|
53
|
-
font-size: $badge-font-size;
|
|
54
|
-
font-weight: normal;
|
|
55
|
-
text-align: center;
|
|
56
|
-
border: $badge-border;
|
|
57
|
-
border-radius: $badge-border-radius;
|
|
58
|
-
min-width: $badge-min-width;
|
|
59
|
-
white-space: nowrap;
|
|
60
|
-
z-index: 1;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&-one {
|
|
64
|
-
height: $badge-height;
|
|
65
|
-
width: $badge-height;
|
|
66
|
-
padding: 0;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&-content {
|
|
70
|
-
transform: $badge-content-transform;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&-dot {
|
|
74
|
-
width: $badge-dot-width;
|
|
75
|
-
height: $badge-dot-width;
|
|
76
|
-
border: $badge-dot-border;
|
|
77
|
-
border-radius: $badge-dot-width;
|
|
78
|
-
padding: 0;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
&-outline {
|
|
82
|
-
.triones-antm-badge-content {
|
|
83
|
-
background: $color-primary-text;
|
|
84
|
-
border: 1PX solid $color-primary;
|
|
85
|
-
color: $color-primary;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
[dir='rtl'] .triones-antm-badge,
|
|
91
|
-
.triones-antm-rtl .triones-antm-badge {
|
|
92
|
-
&-icon {
|
|
93
|
-
right: auto;
|
|
94
|
-
left: -15%;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
&-content {
|
|
98
|
-
transform: translateY(-50%) translateX(-100%);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
1
|
+
/* prettier-ignore */
|
|
2
|
+
$color-primary: #fa2c19;
|
|
3
|
+
$color-primary-text: #fff;
|
|
4
|
+
$badge-height: 14PX;
|
|
5
|
+
$badge-background-color: linear-gradient(135deg, #f53d4d 0%, #fa2c19 100%);
|
|
6
|
+
$badge-color: #fff;
|
|
7
|
+
$badge-font-size: 10PX;
|
|
8
|
+
$badge-border: 0PX solid #fff;
|
|
9
|
+
$badge-border-radius: $badge-height;
|
|
10
|
+
$badge-min-width: 5PX;
|
|
11
|
+
$badge-padding: 0 4PX;
|
|
12
|
+
$badge-icon-padding: 3PX;
|
|
13
|
+
$badge-icon-size: 12PX;
|
|
14
|
+
$badge-content-transform: translateY(-50%) translateX(100%);
|
|
15
|
+
$badge-z-index: 1;
|
|
16
|
+
$badge-dot-width: 7PX;
|
|
17
|
+
$badge-dot-border: 0PX solid #fff;
|
|
18
|
+
|
|
19
|
+
.triones-antm-badge {
|
|
20
|
+
position: relative;
|
|
21
|
+
display: inline-block;
|
|
22
|
+
|
|
23
|
+
&-icon {
|
|
24
|
+
position: absolute;
|
|
25
|
+
display: flex;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
align-items: center;
|
|
28
|
+
background: $badge-background-color;
|
|
29
|
+
top: -10%;
|
|
30
|
+
right: -15%;
|
|
31
|
+
padding: $badge-icon-padding;
|
|
32
|
+
text-align: center;
|
|
33
|
+
border: $badge-border;
|
|
34
|
+
border-radius: $badge-border-radius;
|
|
35
|
+
z-index: $badge-z-index;
|
|
36
|
+
|
|
37
|
+
.triones-antm-icon {
|
|
38
|
+
width: $badge-icon-size;
|
|
39
|
+
height: $badge-icon-size;
|
|
40
|
+
font-size: $badge-icon-size;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&-sup {
|
|
45
|
+
height: $badge-height;
|
|
46
|
+
position: absolute;
|
|
47
|
+
display: flex;
|
|
48
|
+
justify-content: center;
|
|
49
|
+
align-items: center;
|
|
50
|
+
background: $badge-background-color;
|
|
51
|
+
color: $badge-color;
|
|
52
|
+
padding: $badge-padding;
|
|
53
|
+
font-size: $badge-font-size;
|
|
54
|
+
font-weight: normal;
|
|
55
|
+
text-align: center;
|
|
56
|
+
border: $badge-border;
|
|
57
|
+
border-radius: $badge-border-radius;
|
|
58
|
+
min-width: $badge-min-width;
|
|
59
|
+
white-space: nowrap;
|
|
60
|
+
z-index: 1;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&-one {
|
|
64
|
+
height: $badge-height;
|
|
65
|
+
width: $badge-height;
|
|
66
|
+
padding: 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&-content {
|
|
70
|
+
transform: $badge-content-transform;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&-dot {
|
|
74
|
+
width: $badge-dot-width;
|
|
75
|
+
height: $badge-dot-width;
|
|
76
|
+
border: $badge-dot-border;
|
|
77
|
+
border-radius: $badge-dot-width;
|
|
78
|
+
padding: 0;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&-outline {
|
|
82
|
+
.triones-antm-badge-content {
|
|
83
|
+
background: $color-primary-text;
|
|
84
|
+
border: 1PX solid $color-primary;
|
|
85
|
+
color: $color-primary;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
[dir='rtl'] .triones-antm-badge,
|
|
91
|
+
.triones-antm-rtl .triones-antm-badge {
|
|
92
|
+
&-icon {
|
|
93
|
+
right: auto;
|
|
94
|
+
left: -15%;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&-content {
|
|
98
|
+
transform: translateY(-50%) translateX(-100%);
|
|
99
|
+
}
|
|
100
|
+
}
|
package/dist/Card/style.scss
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
@use "../style/variable" as variable;
|
|
2
|
-
$class-prefix-card: 'triones-antm-card';
|
|
3
|
-
|
|
4
|
-
.#{$class-prefix-card} {
|
|
5
|
-
background: variable.$trionesColorBgBase;
|
|
6
|
-
border-radius: variable.$trionesBorderRadius;
|
|
7
|
-
//padding: variable.$trionesPadding variable.$trionesPadding;
|
|
8
|
-
&-header {
|
|
9
|
-
position: relative;
|
|
10
|
-
display: flex;
|
|
11
|
-
justify-content: space-between;
|
|
12
|
-
align-items: center;
|
|
13
|
-
gap: 8Px;
|
|
14
|
-
box-sizing: border-box;
|
|
15
|
-
padding: variable.$trionesPaddingXs variable.$trionesPaddingXs;
|
|
16
|
-
&:not(:last-child) {
|
|
17
|
-
border-bottom: solid 0.5Px variable.$trionesBorderColor;
|
|
18
|
-
}
|
|
19
|
-
&-title {
|
|
20
|
-
font-size: variable.$trionesFontSize;
|
|
21
|
-
line-height: 1.4;
|
|
22
|
-
font-weight: 600;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
&-body {
|
|
26
|
-
padding: variable.$trionesPaddingXs variable.$trionesPaddingXs;
|
|
27
|
-
}
|
|
28
|
-
&-footer {
|
|
29
|
-
padding: variable.$trionesPaddingXs variable.$trionesPaddingXs;
|
|
30
|
-
}
|
|
31
|
-
&-footer {
|
|
32
|
-
border-top: solid 0.5Px variable.$trionesBorderColor;
|
|
33
|
-
padding: variable.$trionesPaddingXs variable.$trionesPaddingXs;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
|
+
$class-prefix-card: 'triones-antm-card';
|
|
3
|
+
|
|
4
|
+
.#{$class-prefix-card} {
|
|
5
|
+
background: variable.$trionesColorBgBase;
|
|
6
|
+
border-radius: variable.$trionesBorderRadius;
|
|
7
|
+
//padding: variable.$trionesPadding variable.$trionesPadding;
|
|
8
|
+
&-header {
|
|
9
|
+
position: relative;
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: space-between;
|
|
12
|
+
align-items: center;
|
|
13
|
+
gap: 8Px;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
padding: variable.$trionesPaddingXs variable.$trionesPaddingXs;
|
|
16
|
+
&:not(:last-child) {
|
|
17
|
+
border-bottom: solid 0.5Px variable.$trionesBorderColor;
|
|
18
|
+
}
|
|
19
|
+
&-title {
|
|
20
|
+
font-size: variable.$trionesFontSize;
|
|
21
|
+
line-height: 1.4;
|
|
22
|
+
font-weight: 600;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
&-body {
|
|
26
|
+
padding: variable.$trionesPaddingXs variable.$trionesPaddingXs;
|
|
27
|
+
}
|
|
28
|
+
&-footer {
|
|
29
|
+
padding: variable.$trionesPaddingXs variable.$trionesPaddingXs;
|
|
30
|
+
}
|
|
31
|
+
&-footer {
|
|
32
|
+
border-top: solid 0.5Px variable.$trionesBorderColor;
|
|
33
|
+
padding: variable.$trionesPaddingXs variable.$trionesPaddingXs;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -4,7 +4,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
4
4
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
5
5
|
import React from "react";
|
|
6
6
|
import classNames from "classnames";
|
|
7
|
-
import { CheckOutline } from "
|
|
7
|
+
import { CheckOutline } from "@trionesdev/antd-mobile-icons-react";
|
|
8
8
|
var cascaderViewCls = 'triones-antm-cascader-view';
|
|
9
9
|
export var CascaderColumnItem = function CascaderColumnItem(_ref) {
|
|
10
10
|
var option = _ref.option,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
@use "../style/variable" as variable;
|
|
2
|
-
|
|
3
|
-
$cascaderViewCls: 'triones-antm-cascader-view';
|
|
4
|
-
.#{$cascaderViewCls} {
|
|
5
|
-
&-column {
|
|
6
|
-
height: 100%;
|
|
7
|
-
overflow-y: auto;
|
|
8
|
-
scrollbar-width: thin;
|
|
9
|
-
&-item {
|
|
10
|
-
display: flex;
|
|
11
|
-
justify-content: space-between;
|
|
12
|
-
align-items: center;
|
|
13
|
-
height: 34Px;
|
|
14
|
-
cursor: default;
|
|
15
|
-
padding: 0Px 8Px;
|
|
16
|
-
|
|
17
|
-
&-selected {
|
|
18
|
-
color: variable.$trionesColorPrimary;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
1
|
+
@use "../style/variable" as variable;
|
|
2
|
+
|
|
3
|
+
$cascaderViewCls: 'triones-antm-cascader-view';
|
|
4
|
+
.#{$cascaderViewCls} {
|
|
5
|
+
&-column {
|
|
6
|
+
height: 100%;
|
|
7
|
+
overflow-y: auto;
|
|
8
|
+
scrollbar-width: thin;
|
|
9
|
+
&-item {
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: space-between;
|
|
12
|
+
align-items: center;
|
|
13
|
+
height: 34Px;
|
|
14
|
+
cursor: default;
|
|
15
|
+
padding: 0Px 8Px;
|
|
16
|
+
|
|
17
|
+
&-selected {
|
|
18
|
+
color: variable.$trionesColorPrimary;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|