@trionesdev/antd-taro-react 0.0.2-beta.22 → 0.0.2-beta.24

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.
@@ -1,130 +1,130 @@
1
- @use "../style/variable" as variable;
2
-
3
- $cls: 'triones-antm-fetch-picker';
4
-
5
- .#{$cls} {
6
- height: 100%;
7
- display: flex;
8
- flex-direction: column;
9
- background-color: #f5f5f5;
10
-
11
- &-head {
12
- padding: variable.$trionesPaddingXxs;
13
- background-color: white;
14
- display: flex;
15
- flex-direction: row;
16
- justify-content: space-between;
17
- border-bottom: 1Px solid variable.$trionesBorderColor;
18
-
19
- &-icon {
20
- padding: 8Px;
21
- }
22
-
23
- &-title {
24
- flex: 1 auto;
25
- display: flex;
26
- justify-content: center;
27
- align-items: center;
28
- }
29
-
30
-
31
-
32
- &-button {
33
- display: inline-block;
34
- padding: 8Px;
35
- &-cancel {
36
- color: variable.$trionesColorTextSecondary;
37
- display: inline-block;
38
- padding: 8Px;
39
- }
40
-
41
- &-ok {
42
- color: variable.$trionesColorPrimaryText;
43
- display: inline-block;
44
- padding: 8Px;
45
- }
46
- }
47
-
48
- }
49
-
50
- &-search-bar {
51
- padding: variable.$trionesPaddingXxs;
52
- background-color: white;
53
-
54
- &-input {
55
- background-color: #f5f5f5;
56
- }
57
- }
58
-
59
- &-empty {
60
- height: 100%;
61
- display: flex;
62
- justify-content: center;
63
- align-items: center;
64
- min-height: 100Px;
65
- }
66
-
67
- &-loading {
68
- height: 100%;
69
- display: flex;
70
- justify-content: center;
71
- align-items: center;
72
-
73
- &-content {
74
- display: flex;
75
- flex-direction: column;
76
- justify-content: center;
77
- align-items: center;
78
- gap: 8Px;
79
- font-size: 12Px;
80
- color: #8c8c8c;
81
- }
82
- }
83
-
84
- &-loading-more {
85
- padding: variable.$trionesPaddingXxs;
86
- display: flex;
87
- justify-content: center;
88
- align-items: center;
89
- color: #8c8c8c;
90
- font-size: 12Px;
91
- }
92
-
93
- &-body {
94
- flex: 1 auto;
95
-
96
- .#{$cls} {
97
- &-item {
98
- padding-block: variable.$trionesPaddingSm;
99
- padding-inline: variable.$trionesPadding;
100
- background-color: white;
101
- border-bottom: 1Px solid #f0f0f0;
102
- &-option{
103
- display: flex;
104
- &-selected{
105
- background-color: #e6f4ff;
106
- }
107
- &-content{
108
- flex: auto;
109
- overflow: hidden;
110
- white-space: nowrap;
111
- text-overflow: ellipsis;
112
- }
113
- &-state{
114
- .triones-antm-icon{
115
- color: variable.$trionesColorPrimaryText;
116
- font-size: variable.$trionesFontSize;
117
- }
118
- }
119
- }
120
- }
121
- }
122
- }
123
-
124
- &-footer {
125
- flex-shrink: 0;
126
- border-top: 1Px solid variable.$trionesBorderColor;
127
- padding: variable.$trionesPaddingXxs;
128
- background-color: white;
129
- }
130
- }
1
+ @use "../style/variable" as variable;
2
+
3
+ $cls: 'triones-antm-fetch-picker';
4
+
5
+ .#{$cls} {
6
+ height: 100%;
7
+ display: flex;
8
+ flex-direction: column;
9
+ background-color: #f5f5f5;
10
+
11
+ &-head {
12
+ padding: variable.$trionesPaddingXxs;
13
+ background-color: white;
14
+ display: flex;
15
+ flex-direction: row;
16
+ justify-content: space-between;
17
+ border-bottom: 1Px solid variable.$trionesBorderColor;
18
+
19
+ &-icon {
20
+ padding: 8Px;
21
+ }
22
+
23
+ &-title {
24
+ flex: 1 auto;
25
+ display: flex;
26
+ justify-content: center;
27
+ align-items: center;
28
+ }
29
+
30
+
31
+
32
+ &-button {
33
+ display: inline-block;
34
+ padding: 8Px;
35
+ &-cancel {
36
+ color: variable.$trionesColorTextSecondary;
37
+ display: inline-block;
38
+ padding: 8Px;
39
+ }
40
+
41
+ &-ok {
42
+ color: variable.$trionesColorPrimaryText;
43
+ display: inline-block;
44
+ padding: 8Px;
45
+ }
46
+ }
47
+
48
+ }
49
+
50
+ &-search-bar {
51
+ padding: variable.$trionesPaddingXxs;
52
+ background-color: white;
53
+
54
+ &-input {
55
+ background-color: #f5f5f5;
56
+ }
57
+ }
58
+
59
+ &-empty {
60
+ height: 100%;
61
+ display: flex;
62
+ justify-content: center;
63
+ align-items: center;
64
+ min-height: 100Px;
65
+ }
66
+
67
+ &-loading {
68
+ height: 100%;
69
+ display: flex;
70
+ justify-content: center;
71
+ align-items: center;
72
+
73
+ &-content {
74
+ display: flex;
75
+ flex-direction: column;
76
+ justify-content: center;
77
+ align-items: center;
78
+ gap: 8Px;
79
+ font-size: 12Px;
80
+ color: #8c8c8c;
81
+ }
82
+ }
83
+
84
+ &-loading-more {
85
+ padding: variable.$trionesPaddingXxs;
86
+ display: flex;
87
+ justify-content: center;
88
+ align-items: center;
89
+ color: #8c8c8c;
90
+ font-size: 12Px;
91
+ }
92
+
93
+ &-body {
94
+ flex: 1 auto;
95
+
96
+ .#{$cls} {
97
+ &-item {
98
+ padding-block: variable.$trionesPaddingSm;
99
+ padding-inline: variable.$trionesPadding;
100
+ background-color: white;
101
+ border-bottom: 1Px solid #f0f0f0;
102
+ &-option{
103
+ display: flex;
104
+ &-selected{
105
+ background-color: #e6f4ff;
106
+ }
107
+ &-content{
108
+ flex: auto;
109
+ overflow: hidden;
110
+ white-space: nowrap;
111
+ text-overflow: ellipsis;
112
+ }
113
+ &-state{
114
+ .triones-antm-icon{
115
+ color: variable.$trionesColorPrimaryText;
116
+ font-size: variable.$trionesFontSize;
117
+ }
118
+ }
119
+ }
120
+ }
121
+ }
122
+ }
123
+
124
+ &-footer {
125
+ flex-shrink: 0;
126
+ border-top: 1Px solid variable.$trionesBorderColor;
127
+ padding: variable.$trionesPaddingXxs;
128
+ background-color: white;
129
+ }
130
+ }
@@ -1,126 +1,126 @@
1
- @use "../style/variable" as variable;
2
-
3
- $floatButtonCls: "triones-antm-float-button";
4
- $floatButtonGroupCls: "triones-antm-float-button-group";
5
-
6
- $floatButtonSize: 48Px;
7
- $floatButtonShadow: 0 6Px 16Px 0 rgba(0, 0, 0, 0.08),
8
- 0 3Px 6Px -4Px rgba(0, 0, 0, 0.12), 0 9Px 28Px 8Px rgba(0, 0, 0, 0.05);
9
-
10
- .#{$floatButtonCls} {
11
- position: fixed;
12
- display: inline-flex;
13
- flex-shrink: 0;
14
- box-sizing: border-box;
15
-
16
- &--embedded {
17
- position: relative;
18
- right: auto;
19
- bottom: auto;
20
- z-index: auto;
21
- }
22
-
23
- &-body {
24
- box-sizing: border-box;
25
- margin: 0;
26
- padding: 0;
27
- display: inline-flex;
28
- align-items: center;
29
- justify-content: center;
30
- gap: 8Px;
31
- min-width: $floatButtonSize;
32
- min-height: $floatButtonSize;
33
- border: none;
34
- border-radius: 50%;
35
- cursor: pointer;
36
- font-size: 20Px;
37
- line-height: 1;
38
- color: rgba(0, 0, 0, 0.88);
39
- background: #fff;
40
- box-shadow: $floatButtonShadow;
41
- transition: color 0.2s, background 0.2s, box-shadow 0.2s;
42
- -webkit-tap-highlight-color: transparent;
43
- text-decoration: none;
44
-
45
- &:active {
46
- filter: brightness(0.95);
47
- }
48
- }
49
-
50
- &--shape-square &-body {
51
- border-radius: variable.$trionesBorderRadius;
52
- }
53
-
54
- &--has-content &-body {
55
- min-height: $floatButtonSize;
56
- display: inline-flex;
57
- flex-direction: column;
58
- align-items: center;
59
- justify-content: center;
60
- }
61
-
62
- &--type-primary &-body {
63
- color: #fff;
64
- background: variable.$trionesColorPrimary;
65
- }
66
-
67
- &-icon {
68
- display: inline-flex;
69
- align-items: center;
70
- justify-content: center;
71
- }
72
-
73
- &-content {
74
- font-size: variable.$trionesFontSizeSm;
75
- font-weight: 500;
76
- white-space: nowrap;
77
- }
78
- }
79
-
80
- .#{$floatButtonGroupCls} {
81
- position: fixed;
82
- display: flex;
83
- gap: 12Px;
84
- align-items: flex-end;
85
- box-sizing: border-box;
86
-
87
- &--placement {
88
- &-top {
89
- flex-direction: column;
90
- }
91
- &-bottom {
92
- flex-direction: column;
93
- }
94
- &-left {
95
- flex-direction: row;
96
- }
97
- &-right {
98
- flex-direction: row;
99
- }
100
- }
101
-
102
- &--menu {
103
- align-items: center;
104
- }
105
-
106
- &-list {
107
- display: flex;
108
- flex-direction: column;
109
- gap: 12Px;
110
- align-items: flex-end;
111
-
112
- &--hidden {
113
- display: none;
114
- }
115
- }
116
-
117
- &--placement-left &-list,
118
- &--placement-right &-list {
119
- flex-direction: column;
120
- }
121
-
122
- /** 小程序点击外部关闭:全屏遮罩;极淡背景避免部分机型不响应 tap */
123
- &-weapp-outside-mask {
124
- background: rgba(0, 0, 0, 0.001);
125
- }
126
- }
1
+ @use "../style/variable" as variable;
2
+
3
+ $floatButtonCls: "triones-antm-float-button";
4
+ $floatButtonGroupCls: "triones-antm-float-button-group";
5
+
6
+ $floatButtonSize: 48Px;
7
+ $floatButtonShadow: 0 6Px 16Px 0 rgba(0, 0, 0, 0.08),
8
+ 0 3Px 6Px -4Px rgba(0, 0, 0, 0.12), 0 9Px 28Px 8Px rgba(0, 0, 0, 0.05);
9
+
10
+ .#{$floatButtonCls} {
11
+ position: fixed;
12
+ display: inline-flex;
13
+ flex-shrink: 0;
14
+ box-sizing: border-box;
15
+
16
+ &--embedded {
17
+ position: relative;
18
+ right: auto;
19
+ bottom: auto;
20
+ z-index: auto;
21
+ }
22
+
23
+ &-body {
24
+ box-sizing: border-box;
25
+ margin: 0;
26
+ padding: 0;
27
+ display: inline-flex;
28
+ align-items: center;
29
+ justify-content: center;
30
+ gap: 8Px;
31
+ min-width: $floatButtonSize;
32
+ min-height: $floatButtonSize;
33
+ border: none;
34
+ border-radius: 50%;
35
+ cursor: pointer;
36
+ font-size: 20Px;
37
+ line-height: 1;
38
+ color: rgba(0, 0, 0, 0.88);
39
+ background: #fff;
40
+ box-shadow: $floatButtonShadow;
41
+ transition: color 0.2s, background 0.2s, box-shadow 0.2s;
42
+ -webkit-tap-highlight-color: transparent;
43
+ text-decoration: none;
44
+
45
+ &:active {
46
+ filter: brightness(0.95);
47
+ }
48
+ }
49
+
50
+ &--shape-square &-body {
51
+ border-radius: variable.$trionesBorderRadius;
52
+ }
53
+
54
+ &--has-content &-body {
55
+ min-height: $floatButtonSize;
56
+ display: inline-flex;
57
+ flex-direction: column;
58
+ align-items: center;
59
+ justify-content: center;
60
+ }
61
+
62
+ &--type-primary &-body {
63
+ color: #fff;
64
+ background: variable.$trionesColorPrimary;
65
+ }
66
+
67
+ &-icon {
68
+ display: inline-flex;
69
+ align-items: center;
70
+ justify-content: center;
71
+ }
72
+
73
+ &-content {
74
+ font-size: variable.$trionesFontSizeSm;
75
+ font-weight: 500;
76
+ white-space: nowrap;
77
+ }
78
+ }
79
+
80
+ .#{$floatButtonGroupCls} {
81
+ position: fixed;
82
+ display: flex;
83
+ gap: 12Px;
84
+ align-items: flex-end;
85
+ box-sizing: border-box;
86
+
87
+ &--placement {
88
+ &-top {
89
+ flex-direction: column;
90
+ }
91
+ &-bottom {
92
+ flex-direction: column;
93
+ }
94
+ &-left {
95
+ flex-direction: row;
96
+ }
97
+ &-right {
98
+ flex-direction: row;
99
+ }
100
+ }
101
+
102
+ &--menu {
103
+ align-items: center;
104
+ }
105
+
106
+ &-list {
107
+ display: flex;
108
+ flex-direction: column;
109
+ gap: 12Px;
110
+ align-items: flex-end;
111
+
112
+ &--hidden {
113
+ display: none;
114
+ }
115
+ }
116
+
117
+ &--placement-left &-list,
118
+ &--placement-right &-list {
119
+ flex-direction: column;
120
+ }
121
+
122
+ /** 小程序点击外部关闭:全屏遮罩;极淡背景避免部分机型不响应 tap */
123
+ &-weapp-outside-mask {
124
+ background: rgba(0, 0, 0, 0.001);
125
+ }
126
+ }