@trionesdev/antd-mobile-base-react 0.0.2-beta.0 → 0.0.2-beta.2
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/ActionSheet/style.scss +51 -51
- package/dist/Alert/style.scss +69 -69
- package/dist/Avatar/style.scss +16 -16
- package/dist/Badge/style.scss +100 -100
- package/dist/Card/style.scss +35 -35
- package/dist/CascaderPicker/cascader-picker.js +1 -1
- package/dist/CascaderPicker/style.scss +42 -42
- package/dist/CascaderView/cascader-view.js +1 -1
- package/dist/CascaderView/style.scss +22 -22
- package/dist/Cell/styles.scss +52 -52
- package/dist/Checkbox/index.scss +151 -151
- 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/FormItem/form-item-input.js +1 -1
- package/dist/Form/FormItem/form-item-label.js +1 -1
- package/dist/Form/style.scss +45 -45
- package/dist/Grid/style.scss +17 -17
- package/dist/Icon/demo/base.js +3 -3
- package/dist/Input/index.scss +173 -173
- package/dist/InputNumber/style.scss +43 -43
- package/dist/Mask/style.scss +20 -20
- package/dist/NavBar/style.scss +61 -61
- package/dist/NoticeBar/style.scss +130 -130
- package/dist/PageIndicator/style.scss +59 -59
- package/dist/Picker/picker.js +1 -1
- package/dist/Picker/style.scss +41 -41
- package/dist/PickerView/picker-view-column.js +1 -1
- package/dist/PickerView/picker-view.js +1 -1
- package/dist/PickerView/style.scss +72 -72
- package/dist/Popup/style.scss +53 -53
- package/dist/Radio/style.scss +138 -138
- package/dist/Rate/style.scss +37 -37
- package/dist/Result/demo/base.js +2 -2
- package/dist/Result/style.scss +73 -73
- package/dist/SafeArea/style.scss +18 -18
- package/dist/Scaffold/style.scss +16 -16
- 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/style.scss +77 -77
- package/dist/SpinLoading/spin-loading.scss +40 -40
- package/dist/Steps/style.scss +146 -146
- package/dist/Switch/style.scss +128 -128
- package/dist/TabBar/demo/base.js +2 -2
- package/dist/TabBar/index.scss +36 -36
- package/dist/TabBar/tab-bar.d.ts +1 -1
- package/dist/TabBar/tab-bar.js +3 -2
- package/dist/Tabs/style.scss +108 -108
- package/dist/Tabs/tabs.js +1 -1
- package/dist/Tag/demo/base.js +2 -2
- package/dist/Tag/demo/style.scss +8 -8
- package/dist/Tag/style.scss +86 -86
- package/dist/Toast/style.scss +63 -63
- package/dist/VerificationCodeInput/style.scss +20 -20
- package/dist/WaterMark/style.scss +17 -17
- 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 +168 -168
- package/dist/utils/type.js +36 -36
- package/dist/utils/with-default-props.js +4 -4
- package/package.json +5 -6
package/dist/Result/style.scss
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
$class-prefix-result: 'triones-antm-result';
|
|
2
|
-
/* prettier-ignore */
|
|
3
|
-
.#{$class-prefix-result} {
|
|
4
|
-
padding: 32PX 12PX;
|
|
5
|
-
background-color: var(--triones-antm-color-background);
|
|
6
|
-
|
|
7
|
-
&-icon {
|
|
8
|
-
box-sizing: border-box;
|
|
9
|
-
width: 64PX;
|
|
10
|
-
height: 64PX;
|
|
11
|
-
margin: 0 auto 20PX auto;
|
|
12
|
-
padding: 6PX;
|
|
13
|
-
|
|
14
|
-
.antd-mobile-icon {
|
|
15
|
-
font-size: 52PX;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&-title {
|
|
20
|
-
color: var(--triones-antm-color-text);
|
|
21
|
-
font-size: var(--triones-antm-font-size-10);
|
|
22
|
-
line-height: 1.4;
|
|
23
|
-
text-align: center;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&-description {
|
|
27
|
-
margin-top: 8PX;
|
|
28
|
-
color: var(--triones-antm-color-weak);
|
|
29
|
-
font-size: var(--triones-antm-font-size-main);
|
|
30
|
-
line-height: 1.4;
|
|
31
|
-
text-align: center;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.#{$class-prefix-result}-success {
|
|
36
|
-
.#{$class-prefix-result}-icon {
|
|
37
|
-
.antd-mobile-icon {
|
|
38
|
-
color: var(--triones-antm-color-primary);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.#{$class-prefix-result}-error {
|
|
44
|
-
.#{$class-prefix-result}-icon {
|
|
45
|
-
.antd-mobile-icon {
|
|
46
|
-
color: var(--triones-antm-color-danger);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.#{$class-prefix-result}-info {
|
|
52
|
-
.#{$class-prefix-result}-icon {
|
|
53
|
-
.antd-mobile-icon {
|
|
54
|
-
color: var(--triones-antm-color-primary);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.#{$class-prefix-result}-waiting {
|
|
60
|
-
.#{$class-prefix-result}-icon {
|
|
61
|
-
.antd-mobile-icon {
|
|
62
|
-
color: var(--triones-antm-color-success);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.#{$class-prefix-result}-warning {
|
|
68
|
-
.#{$class-prefix-result}-icon {
|
|
69
|
-
.antd-mobile-icon {
|
|
70
|
-
color: var(--triones-antm-color-warning);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
1
|
+
$class-prefix-result: 'triones-antm-result';
|
|
2
|
+
/* prettier-ignore */
|
|
3
|
+
.#{$class-prefix-result} {
|
|
4
|
+
padding: 32PX 12PX;
|
|
5
|
+
background-color: var(--triones-antm-color-background);
|
|
6
|
+
|
|
7
|
+
&-icon {
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
width: 64PX;
|
|
10
|
+
height: 64PX;
|
|
11
|
+
margin: 0 auto 20PX auto;
|
|
12
|
+
padding: 6PX;
|
|
13
|
+
|
|
14
|
+
.antd-mobile-icon {
|
|
15
|
+
font-size: 52PX;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&-title {
|
|
20
|
+
color: var(--triones-antm-color-text);
|
|
21
|
+
font-size: var(--triones-antm-font-size-10);
|
|
22
|
+
line-height: 1.4;
|
|
23
|
+
text-align: center;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&-description {
|
|
27
|
+
margin-top: 8PX;
|
|
28
|
+
color: var(--triones-antm-color-weak);
|
|
29
|
+
font-size: var(--triones-antm-font-size-main);
|
|
30
|
+
line-height: 1.4;
|
|
31
|
+
text-align: center;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.#{$class-prefix-result}-success {
|
|
36
|
+
.#{$class-prefix-result}-icon {
|
|
37
|
+
.antd-mobile-icon {
|
|
38
|
+
color: var(--triones-antm-color-primary);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.#{$class-prefix-result}-error {
|
|
44
|
+
.#{$class-prefix-result}-icon {
|
|
45
|
+
.antd-mobile-icon {
|
|
46
|
+
color: var(--triones-antm-color-danger);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.#{$class-prefix-result}-info {
|
|
52
|
+
.#{$class-prefix-result}-icon {
|
|
53
|
+
.antd-mobile-icon {
|
|
54
|
+
color: var(--triones-antm-color-primary);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.#{$class-prefix-result}-waiting {
|
|
60
|
+
.#{$class-prefix-result}-icon {
|
|
61
|
+
.antd-mobile-icon {
|
|
62
|
+
color: var(--triones-antm-color-success);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.#{$class-prefix-result}-warning {
|
|
68
|
+
.#{$class-prefix-result}-icon {
|
|
69
|
+
.antd-mobile-icon {
|
|
70
|
+
color: var(--triones-antm-color-warning);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
package/dist/SafeArea/style.scss
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
3
|
-
$class-prefix-safe-area: 'triones-antm-safe-area';
|
|
4
|
-
|
|
5
|
-
.#{$class-prefix-safe-area} {
|
|
6
|
-
height: 100%;
|
|
7
|
-
display: block;
|
|
8
|
-
width: 100%;
|
|
9
|
-
box-sizing: border-box;
|
|
10
|
-
|
|
11
|
-
&-position-top {
|
|
12
|
-
padding-top: calc(env(safe-area-inset-top) * $trionesSafeAreaMultiple);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
&-position-bottom {
|
|
16
|
-
padding-bottom: calc(env(safe-area-inset-bottom) * $trionesSafeAreaMultiple);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
1
|
+
@use "../style/variable" as *;
|
|
2
|
+
|
|
3
|
+
$class-prefix-safe-area: 'triones-antm-safe-area';
|
|
4
|
+
|
|
5
|
+
.#{$class-prefix-safe-area} {
|
|
6
|
+
height: 100%;
|
|
7
|
+
display: block;
|
|
8
|
+
width: 100%;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
|
|
11
|
+
&-position-top {
|
|
12
|
+
padding-top: calc(env(safe-area-inset-top) * $trionesSafeAreaMultiple);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&-position-bottom {
|
|
16
|
+
padding-bottom: calc(env(safe-area-inset-bottom) * $trionesSafeAreaMultiple);
|
|
17
|
+
}
|
|
18
|
+
}
|
package/dist/Scaffold/style.scss
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
$trionesScaffoldCls: 'triones-antm-scaffold';
|
|
5
|
-
|
|
6
|
-
.#{$trionesScaffoldCls} {
|
|
7
|
-
height: 100%;
|
|
8
|
-
width: 100%;
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
|
|
12
|
-
&-body {
|
|
13
|
-
flex: 1 auto;
|
|
14
|
-
overflow: hidden;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
1
|
+
@use "../style/variable" as *;
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
$trionesScaffoldCls: 'triones-antm-scaffold';
|
|
5
|
+
|
|
6
|
+
.#{$trionesScaffoldCls} {
|
|
7
|
+
height: 100%;
|
|
8
|
+
width: 100%;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
|
|
12
|
+
&-body {
|
|
13
|
+
flex: 1 auto;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
$trionesScrollViewCls: 'triones-antm-scroll-view';
|
|
2
|
-
|
|
3
|
-
.#{$trionesScrollViewCls} {
|
|
4
|
-
scrollbar-width: thin;
|
|
5
|
-
|
|
6
|
-
&-scroll-x {
|
|
7
|
-
overflow-x: auto;
|
|
8
|
-
overflow-y: hidden;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
&-scroll-y {
|
|
12
|
-
overflow-x: hidden;
|
|
13
|
-
overflow-y: auto;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&-scroll-bar-hidden {
|
|
17
|
-
scrollbar-width: none;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
1
|
+
$trionesScrollViewCls: 'triones-antm-scroll-view';
|
|
2
|
+
|
|
3
|
+
.#{$trionesScrollViewCls} {
|
|
4
|
+
scrollbar-width: thin;
|
|
5
|
+
|
|
6
|
+
&-scroll-x {
|
|
7
|
+
overflow-x: auto;
|
|
8
|
+
overflow-y: hidden;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&-scroll-y {
|
|
12
|
+
overflow-x: hidden;
|
|
13
|
+
overflow-y: auto;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&-scroll-bar-hidden {
|
|
17
|
+
scrollbar-width: none;
|
|
18
|
+
}
|
|
19
|
+
}
|
package/dist/SideBar/side-bar.js
CHANGED
|
@@ -70,8 +70,8 @@ var SideBarContent = /*#__PURE__*/memo(function (_ref2) {
|
|
|
70
70
|
};
|
|
71
71
|
}();
|
|
72
72
|
|
|
73
|
-
/**
|
|
74
|
-
* 计算当前页顶部,距离可滚动区域顶部的距离
|
|
73
|
+
/**
|
|
74
|
+
* 计算当前页顶部,距离可滚动区域顶部的距离
|
|
75
75
|
*/
|
|
76
76
|
var computeReactiveOffsetTop = /*#__PURE__*/function () {
|
|
77
77
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
@@ -90,8 +90,8 @@ var SideBarContent = /*#__PURE__*/memo(function (_ref2) {
|
|
|
90
90
|
};
|
|
91
91
|
}();
|
|
92
92
|
|
|
93
|
-
/**
|
|
94
|
-
* 计算当前页底部,距离可滚动区域顶部的距离
|
|
93
|
+
/**
|
|
94
|
+
* 计算当前页底部,距离可滚动区域顶部的距离
|
|
95
95
|
*/
|
|
96
96
|
var computeReactiveOffsetBottom = /*#__PURE__*/function () {
|
|
97
97
|
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
@@ -138,8 +138,8 @@ var SideBarContent = /*#__PURE__*/memo(function (_ref2) {
|
|
|
138
138
|
}
|
|
139
139
|
}, [activeKey]);
|
|
140
140
|
|
|
141
|
-
/**
|
|
142
|
-
* 监听滚动变化,只有在人为操作的时候才监听滚动的位置是否需要切换tab,如果是切换tab 引发的滚动则不执行
|
|
141
|
+
/**
|
|
142
|
+
* 监听滚动变化,只有在人为操作的时候才监听滚动的位置是否需要切换tab,如果是切换tab 引发的滚动则不执行
|
|
143
143
|
*/
|
|
144
144
|
useEffect(function () {
|
|
145
145
|
// return;
|
package/dist/SideBar/style.scss
CHANGED
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
@
|
|
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: $trionesColorFill;
|
|
13
|
-
overflow: auto;
|
|
14
|
-
scrollbar-width: thin;
|
|
15
|
-
flex-shrink: 0;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&-tab {
|
|
19
|
-
cursor: pointer;
|
|
20
|
-
padding: $trionesPadding $trionesPadding;
|
|
21
|
-
color: $trionesColorTextSecondary;
|
|
22
|
-
|
|
23
|
-
&-active {
|
|
24
|
-
color: $trionesColorPrimaryText;
|
|
25
|
-
background-color: $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 *;
|
|
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: $trionesColorFill;
|
|
13
|
+
overflow: auto;
|
|
14
|
+
scrollbar-width: thin;
|
|
15
|
+
flex-shrink: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&-tab {
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
padding: $trionesPadding $trionesPadding;
|
|
21
|
+
color: $trionesColorTextSecondary;
|
|
22
|
+
|
|
23
|
+
&-active {
|
|
24
|
+
color: $trionesColorPrimaryText;
|
|
25
|
+
background-color: $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/style.scss
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
$class-prefix-space: 'triones-antm-space';
|
|
2
|
-
|
|
3
|
-
.#{$class-prefix-space}-item {
|
|
4
|
-
flex: none;
|
|
5
|
-
display: inline-flex;
|
|
6
|
-
}
|
|
7
|
-
/* prettier-ignore */
|
|
8
|
-
.#{$class-prefix-space} {
|
|
9
|
-
display: inline-flex;
|
|
10
|
-
&-vertical {
|
|
11
|
-
flex-direction: column;
|
|
12
|
-
> .#{$class-prefix-space}-item {
|
|
13
|
-
&:last-child {
|
|
14
|
-
margin-bottom: 0;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
&-horizontal {
|
|
19
|
-
flex-direction: row;
|
|
20
|
-
> .#{$class-prefix-space}-item {
|
|
21
|
-
&:last-child {
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
&.#{$class-prefix-space}-wrap {
|
|
26
|
-
flex-wrap: wrap;
|
|
27
|
-
> .#{$class-prefix-space}-item {
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
&.#{$class-prefix-space}-block {
|
|
33
|
-
display: flex;
|
|
34
|
-
width: 100%;
|
|
35
|
-
.#{$class-prefix-space}-item{
|
|
36
|
-
display: flex;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
&-align {
|
|
41
|
-
&-center {
|
|
42
|
-
align-items: center;
|
|
43
|
-
}
|
|
44
|
-
&-start {
|
|
45
|
-
align-items: flex-start;
|
|
46
|
-
}
|
|
47
|
-
&-end {
|
|
48
|
-
align-items: flex-end;
|
|
49
|
-
}
|
|
50
|
-
&-baseline {
|
|
51
|
-
align-items: baseline;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
&-justify {
|
|
55
|
-
&-center {
|
|
56
|
-
justify-content: center;
|
|
57
|
-
}
|
|
58
|
-
&-start {
|
|
59
|
-
justify-content: flex-start;
|
|
60
|
-
}
|
|
61
|
-
&-end {
|
|
62
|
-
justify-content: flex-end;
|
|
63
|
-
}
|
|
64
|
-
&-between {
|
|
65
|
-
justify-content: space-between;
|
|
66
|
-
}
|
|
67
|
-
&-around {
|
|
68
|
-
justify-content: space-around;
|
|
69
|
-
}
|
|
70
|
-
&-evenly {
|
|
71
|
-
justify-content: space-evenly;
|
|
72
|
-
}
|
|
73
|
-
&-stretch {
|
|
74
|
-
justify-content: stretch;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
1
|
+
$class-prefix-space: 'triones-antm-space';
|
|
2
|
+
|
|
3
|
+
.#{$class-prefix-space}-item {
|
|
4
|
+
flex: none;
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
}
|
|
7
|
+
/* prettier-ignore */
|
|
8
|
+
.#{$class-prefix-space} {
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
&-vertical {
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
> .#{$class-prefix-space}-item {
|
|
13
|
+
&:last-child {
|
|
14
|
+
margin-bottom: 0;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
&-horizontal {
|
|
19
|
+
flex-direction: row;
|
|
20
|
+
> .#{$class-prefix-space}-item {
|
|
21
|
+
&:last-child {
|
|
22
|
+
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
&.#{$class-prefix-space}-wrap {
|
|
26
|
+
flex-wrap: wrap;
|
|
27
|
+
> .#{$class-prefix-space}-item {
|
|
28
|
+
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
&.#{$class-prefix-space}-block {
|
|
33
|
+
display: flex;
|
|
34
|
+
width: 100%;
|
|
35
|
+
.#{$class-prefix-space}-item{
|
|
36
|
+
display: flex;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
}
|
|
40
|
+
&-align {
|
|
41
|
+
&-center {
|
|
42
|
+
align-items: center;
|
|
43
|
+
}
|
|
44
|
+
&-start {
|
|
45
|
+
align-items: flex-start;
|
|
46
|
+
}
|
|
47
|
+
&-end {
|
|
48
|
+
align-items: flex-end;
|
|
49
|
+
}
|
|
50
|
+
&-baseline {
|
|
51
|
+
align-items: baseline;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
&-justify {
|
|
55
|
+
&-center {
|
|
56
|
+
justify-content: center;
|
|
57
|
+
}
|
|
58
|
+
&-start {
|
|
59
|
+
justify-content: flex-start;
|
|
60
|
+
}
|
|
61
|
+
&-end {
|
|
62
|
+
justify-content: flex-end;
|
|
63
|
+
}
|
|
64
|
+
&-between {
|
|
65
|
+
justify-content: space-between;
|
|
66
|
+
}
|
|
67
|
+
&-around {
|
|
68
|
+
justify-content: space-around;
|
|
69
|
+
}
|
|
70
|
+
&-evenly {
|
|
71
|
+
justify-content: space-evenly;
|
|
72
|
+
}
|
|
73
|
+
&-stretch {
|
|
74
|
+
justify-content: stretch;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
$spinLoadingCls: triones-antm-spin-loading;
|
|
2
|
-
|
|
3
|
-
.#{$spinLoadingCls} {
|
|
4
|
-
--size: 32Px;
|
|
5
|
-
--color: #1677ff;
|
|
6
|
-
width: var(--size);
|
|
7
|
-
height: var(--size);
|
|
8
|
-
|
|
9
|
-
&-svg {
|
|
10
|
-
width: 100%;
|
|
11
|
-
height: 100%;
|
|
12
|
-
//animation: adm-spin-loading-rotate 0.8s infinite linear;
|
|
13
|
-
|
|
14
|
-
> .#{$spinLoadingCls}-circle {
|
|
15
|
-
//stroke: #1677ff;
|
|
16
|
-
stroke: var(--color);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&-loading {
|
|
21
|
-
color: var(--color);
|
|
22
|
-
display: inline-block;
|
|
23
|
-
height: 100%;
|
|
24
|
-
width: 100%;
|
|
25
|
-
background: currentColor;
|
|
26
|
-
mask-image: var(--maskImage);
|
|
27
|
-
-webkit-mask-image: var(--maskImage);
|
|
28
|
-
animation: adm-spin-loading-rotate 2s infinite linear;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@keyframes adm-spin-loading-rotate {
|
|
34
|
-
from {
|
|
35
|
-
transform: rotate(0deg);
|
|
36
|
-
}
|
|
37
|
-
to {
|
|
38
|
-
transform: rotate(360deg);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
1
|
+
$spinLoadingCls: triones-antm-spin-loading;
|
|
2
|
+
|
|
3
|
+
.#{$spinLoadingCls} {
|
|
4
|
+
--size: 32Px;
|
|
5
|
+
--color: #1677ff;
|
|
6
|
+
width: var(--size);
|
|
7
|
+
height: var(--size);
|
|
8
|
+
|
|
9
|
+
&-svg {
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 100%;
|
|
12
|
+
//animation: adm-spin-loading-rotate 0.8s infinite linear;
|
|
13
|
+
|
|
14
|
+
> .#{$spinLoadingCls}-circle {
|
|
15
|
+
//stroke: #1677ff;
|
|
16
|
+
stroke: var(--color);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&-loading {
|
|
21
|
+
color: var(--color);
|
|
22
|
+
display: inline-block;
|
|
23
|
+
height: 100%;
|
|
24
|
+
width: 100%;
|
|
25
|
+
background: currentColor;
|
|
26
|
+
mask-image: var(--maskImage);
|
|
27
|
+
-webkit-mask-image: var(--maskImage);
|
|
28
|
+
animation: adm-spin-loading-rotate 2s infinite linear;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@keyframes adm-spin-loading-rotate {
|
|
34
|
+
from {
|
|
35
|
+
transform: rotate(0deg);
|
|
36
|
+
}
|
|
37
|
+
to {
|
|
38
|
+
transform: rotate(360deg);
|
|
39
|
+
}
|
|
40
|
+
}
|