@pisell/private-materials 6.8.86 → 6.8.87
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +9 -9
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/components/booking/components/customiseItemModal/index.js +4 -7
- package/es/components/booking/components/footer/index.d.ts +0 -1
- package/es/components/booking/deposit/index.d.ts +0 -1
- package/es/components/booking/info/index.d.ts +0 -1
- package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/app.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +4 -4
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
- package/es/components/ticketBooking/index.d.ts +0 -1
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
- package/es/plus/saasLogin/utils.d.ts +5 -5
- package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +0 -1
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.js +5 -0
- package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +1 -0
- package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/es/pro/NumericStepper/index.d.ts +21 -1
- package/es/pro/NumericStepper/index.js +74 -66
- package/es/pro/NumericStepper/index.less +289 -136
- package/es/pro/Selector/demo.d.ts +0 -1
- package/es/pro/Selector/hooks/usePresetProps.js +2 -1
- package/es/pro/keyboards/index.d.ts +2 -0
- package/es/pro/keyboards/index.js +1 -0
- package/es/pro/keyboards/locales.d.ts +24 -0
- package/es/pro/keyboards/locales.js +35 -0
- package/es/pro/keyboards/numberKeyboard/index.d.ts +16 -0
- package/es/pro/keyboards/numberKeyboard/index.js +524 -0
- package/es/pro/keyboards/numberKeyboard/index.less +59 -0
- package/es/pro/keyboards/numberKeyboard/types.d.ts +63 -0
- package/es/pro/keyboards/numberKeyboard/types.js +1 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +2 -1
- package/es/pro/priceKeyboard/components/discountKeyboard/index.js +2 -1
- package/es/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +0 -1
- package/es/pro/priceKeyboard/components/paymentKeyboard/index.js +6 -3
- package/es/pro/skuDetailModal/index.js +6 -8
- package/es/pro/skuDetailModal/index.less +4 -4
- package/lib/components/booking/components/customiseItemModal/index.js +4 -5
- package/lib/components/booking/components/footer/index.d.ts +0 -1
- package/lib/components/booking/deposit/index.d.ts +0 -1
- package/lib/components/booking/info/index.d.ts +0 -1
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/app.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +4 -4
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
- package/lib/components/ticketBooking/index.d.ts +0 -1
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
- package/lib/plus/saasLogin/utils.d.ts +5 -5
- package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +0 -1
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.js +5 -0
- package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.js +1 -0
- package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/lib/pro/NumericStepper/index.d.ts +21 -1
- package/lib/pro/NumericStepper/index.js +67 -69
- package/lib/pro/NumericStepper/index.less +289 -136
- package/lib/pro/Selector/demo.d.ts +0 -1
- package/lib/pro/Selector/hooks/usePresetProps.js +2 -1
- package/lib/pro/keyboards/index.d.ts +2 -0
- package/lib/pro/keyboards/index.js +39 -0
- package/lib/pro/keyboards/locales.d.ts +24 -0
- package/lib/pro/keyboards/locales.js +47 -0
- package/lib/pro/keyboards/numberKeyboard/index.d.ts +16 -0
- package/lib/pro/keyboards/numberKeyboard/index.js +400 -0
- package/lib/pro/keyboards/numberKeyboard/index.less +59 -0
- package/lib/pro/keyboards/numberKeyboard/types.d.ts +63 -0
- package/lib/pro/keyboards/numberKeyboard/types.js +17 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +2 -1
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +2 -1
- package/lib/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +0 -1
- package/lib/pro/priceKeyboard/components/paymentKeyboard/index.js +6 -3
- package/lib/pro/skuDetailModal/index.js +94 -41
- package/lib/pro/skuDetailModal/index.less +4 -4
- package/package.json +1 -1
- package/es/pro/pisellNumberSelector/example.d.ts +0 -3
- package/es/pro/pisellNumberSelector/example.js +0 -68
- package/lib/pro/pisellNumberSelector/example.d.ts +0 -3
- package/lib/pro/pisellNumberSelector/example.js +0 -93
|
@@ -1,52 +1,94 @@
|
|
|
1
|
+
// ========== 变量定义 ==========
|
|
2
|
+
@primary-color: #7f56d9;
|
|
3
|
+
@primary-hover: #6b46c1;
|
|
4
|
+
@primary-active: #553c9a;
|
|
5
|
+
|
|
6
|
+
@text-color: #101828;
|
|
7
|
+
@text-secondary: #344054;
|
|
8
|
+
@text-disabled: #d0d5dd;
|
|
9
|
+
|
|
10
|
+
@border-color: #d0d5dd;
|
|
11
|
+
@border-color-light: #e4e7ec;
|
|
12
|
+
|
|
13
|
+
@bg-disabled: #d0d5dd;
|
|
14
|
+
@bg-hover-light: #f2f4f7;
|
|
15
|
+
@bg-active-light: #e4e7ec;
|
|
16
|
+
@bg-disabled-light: #f9fafb;
|
|
17
|
+
|
|
18
|
+
// 尺寸变量 - 分离模式
|
|
19
|
+
@size-small: 24px;
|
|
20
|
+
@size-middle: 32px;
|
|
21
|
+
@size-large: 40px;
|
|
22
|
+
|
|
23
|
+
// 尺寸变量 - 胶囊模式
|
|
24
|
+
@capsule-size-small: 28px;
|
|
25
|
+
@capsule-size-middle: 40px;
|
|
26
|
+
@capsule-size-large: 52px;
|
|
27
|
+
|
|
28
|
+
// 图标尺寸 - 分离模式
|
|
29
|
+
@icon-size-small: 12px;
|
|
30
|
+
@icon-size-middle: 16px;
|
|
31
|
+
@icon-size-large: 20px;
|
|
32
|
+
|
|
33
|
+
// 图标尺寸 - 胶囊模式
|
|
34
|
+
@capsule-icon-size-small: 14px;
|
|
35
|
+
@capsule-icon-size-middle: 20px;
|
|
36
|
+
@capsule-icon-size-large: 26px;
|
|
37
|
+
|
|
38
|
+
@font-size-small: 14px;
|
|
39
|
+
@font-size-middle: 16px;
|
|
40
|
+
@font-size-large: 18px;
|
|
41
|
+
|
|
42
|
+
// ========== 混入定义 ==========
|
|
43
|
+
.button-size(@size, @icon-size) {
|
|
44
|
+
width: @size;
|
|
45
|
+
height: @size;
|
|
46
|
+
|
|
47
|
+
svg {
|
|
48
|
+
width: @icon-size;
|
|
49
|
+
height: @icon-size;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.display-size(@width, @height, @font-size, @max-width: 56px, @padding: 0 4px) {
|
|
54
|
+
width: @width;
|
|
55
|
+
height: @height;
|
|
56
|
+
max-width: @max-width;
|
|
57
|
+
font-size: @font-size;
|
|
58
|
+
font-weight: 600;
|
|
59
|
+
color: @text-color;
|
|
60
|
+
padding: @padding;
|
|
61
|
+
text-align: center;
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// ========== 基础样式 ==========
|
|
1
66
|
.numeric-stepper {
|
|
2
67
|
align-items: center;
|
|
3
68
|
display: grid;
|
|
4
69
|
grid-template-columns: 1fr auto 1fr;
|
|
5
70
|
gap: 8px;
|
|
6
71
|
height: 100%;
|
|
7
|
-
transition: all 0.2s ease-in-out;
|
|
8
72
|
width: 100%;
|
|
9
73
|
|
|
10
|
-
|
|
11
|
-
grid-template-columns: 1fr;
|
|
12
|
-
|
|
13
|
-
.numeric-stepper-plus-button-wrapper {
|
|
14
|
-
justify-content: center;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&-disabled {
|
|
19
|
-
cursor: not-allowed;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// 简单模式样式(只显示加号按钮)
|
|
23
|
-
&-simple {
|
|
24
|
-
gap: 0;
|
|
25
|
-
}
|
|
26
|
-
|
|
74
|
+
// ========== 按钮容器 ==========
|
|
27
75
|
&-button-wrapper {
|
|
28
76
|
align-items: center;
|
|
29
77
|
display: flex;
|
|
30
78
|
height: 100%;
|
|
31
79
|
|
|
32
|
-
&:hover {
|
|
33
|
-
|
|
34
|
-
background-color: #6b46c1;
|
|
35
|
-
}
|
|
80
|
+
&:hover .numeric-stepper-button:not(.numeric-stepper-button-disabled) {
|
|
81
|
+
background-color: @primary-hover;
|
|
36
82
|
}
|
|
37
83
|
|
|
38
|
-
&:active {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
transform: scale(0.95);
|
|
42
|
-
}
|
|
84
|
+
&:active .numeric-stepper-button:not(.numeric-stepper-button-disabled) {
|
|
85
|
+
background-color: @primary-active;
|
|
86
|
+
transform: scale(0.95);
|
|
43
87
|
}
|
|
44
88
|
|
|
45
|
-
&:focus {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
box-shadow: 0 0 0 2px rgba(127, 86, 217, 0.3);
|
|
49
|
-
}
|
|
89
|
+
&:focus .numeric-stepper-button {
|
|
90
|
+
outline: none;
|
|
91
|
+
box-shadow: 0 0 0 2px rgba(127, 86, 217, 0.3);
|
|
50
92
|
}
|
|
51
93
|
}
|
|
52
94
|
|
|
@@ -54,113 +96,61 @@
|
|
|
54
96
|
justify-content: flex-end;
|
|
55
97
|
}
|
|
56
98
|
|
|
57
|
-
// 按钮样式
|
|
99
|
+
// ========== 按钮样式 ==========
|
|
58
100
|
&-button {
|
|
59
101
|
display: flex;
|
|
60
102
|
align-items: center;
|
|
61
103
|
justify-content: center;
|
|
62
|
-
|
|
63
|
-
height: 32px;
|
|
104
|
+
.button-size(@size-middle, @icon-size-middle);
|
|
64
105
|
border: none;
|
|
65
|
-
background-color:
|
|
106
|
+
background-color: @primary-color;
|
|
66
107
|
cursor: pointer;
|
|
67
108
|
color: #ffffff;
|
|
68
|
-
transition: all 0.2s ease-in-out;
|
|
69
|
-
|
|
70
|
-
// &:hover {
|
|
71
|
-
// background-color: #6b46c1;
|
|
72
|
-
// }
|
|
73
109
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
// }
|
|
78
|
-
|
|
79
|
-
// &:focus {
|
|
80
|
-
// outline: none;
|
|
81
|
-
// box-shadow: 0 0 0 2px rgba(127, 86, 217, 0.3);
|
|
82
|
-
// }
|
|
110
|
+
svg {
|
|
111
|
+
stroke: currentColor;
|
|
112
|
+
}
|
|
83
113
|
|
|
84
114
|
&-disabled {
|
|
85
115
|
cursor: not-allowed;
|
|
86
|
-
background-color:
|
|
116
|
+
background-color: @bg-disabled !important;
|
|
87
117
|
|
|
88
118
|
&:hover {
|
|
89
|
-
background-color:
|
|
119
|
+
background-color: @bg-disabled !important;
|
|
90
120
|
transform: none;
|
|
91
121
|
}
|
|
92
122
|
}
|
|
93
|
-
|
|
94
|
-
svg {
|
|
95
|
-
width: 16px;
|
|
96
|
-
height: 16px;
|
|
97
|
-
stroke: currentColor;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// 按钮形状样式
|
|
102
|
-
&-round {
|
|
103
|
-
.numeric-stepper-button {
|
|
104
|
-
border-radius: 50%;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
&-square {
|
|
109
|
-
.numeric-stepper-button {
|
|
110
|
-
border-radius: 12px;
|
|
111
|
-
}
|
|
112
123
|
}
|
|
113
124
|
|
|
125
|
+
// ========== 显示区域 ==========
|
|
114
126
|
&-display-wrapper {
|
|
115
127
|
display: flex;
|
|
116
128
|
align-items: center;
|
|
117
129
|
justify-content: center;
|
|
118
130
|
height: 100%;
|
|
131
|
+
cursor: pointer;
|
|
119
132
|
}
|
|
120
133
|
|
|
121
|
-
// 显示区域样式(当不显示输入框时)
|
|
122
134
|
&-display {
|
|
123
|
-
border: 2px solid
|
|
135
|
+
border: 2px solid @border-color;
|
|
124
136
|
border-radius: 6px;
|
|
125
137
|
display: flex;
|
|
126
138
|
align-items: center;
|
|
127
139
|
justify-content: center;
|
|
128
|
-
|
|
129
|
-
height: 30px;
|
|
130
|
-
max-width: 56px;
|
|
131
|
-
padding: 0 4px;
|
|
132
|
-
font-size: 16px;
|
|
133
|
-
font-weight: 600;
|
|
140
|
+
.display-size(30px, 30px, @font-size-middle);
|
|
134
141
|
line-height: 1.5;
|
|
135
|
-
color: #101828;
|
|
136
|
-
text-align: center;
|
|
137
|
-
overflow: hidden;
|
|
138
142
|
}
|
|
139
143
|
|
|
140
|
-
// 尺寸变体
|
|
144
|
+
// ========== 尺寸变体 ==========
|
|
141
145
|
&-small {
|
|
142
146
|
gap: 8px;
|
|
143
147
|
|
|
144
148
|
.numeric-stepper-button {
|
|
145
|
-
|
|
146
|
-
height: 24px;
|
|
147
|
-
|
|
148
|
-
svg {
|
|
149
|
-
width: 12px;
|
|
150
|
-
height: 12px;
|
|
151
|
-
}
|
|
149
|
+
.button-size(@size-small, @icon-size-small);
|
|
152
150
|
}
|
|
153
151
|
|
|
154
152
|
.numeric-stepper-display {
|
|
155
|
-
|
|
156
|
-
height: 24px;
|
|
157
|
-
max-width: 40px;
|
|
158
|
-
font-size: 14px;
|
|
159
|
-
font-weight: 600;
|
|
160
|
-
color: #101828;
|
|
161
|
-
padding: 0 2px;
|
|
162
|
-
text-align: center;
|
|
163
|
-
overflow: hidden;
|
|
153
|
+
.display-size(@size-small, @size-small, @font-size-small, 40px, 0 2px);
|
|
164
154
|
}
|
|
165
155
|
}
|
|
166
156
|
|
|
@@ -168,25 +158,11 @@
|
|
|
168
158
|
gap: 8px;
|
|
169
159
|
|
|
170
160
|
.numeric-stepper-button {
|
|
171
|
-
|
|
172
|
-
height: 32px;
|
|
173
|
-
|
|
174
|
-
svg {
|
|
175
|
-
width: 16px;
|
|
176
|
-
height: 16px;
|
|
177
|
-
}
|
|
161
|
+
.button-size(@size-middle, @icon-size-middle);
|
|
178
162
|
}
|
|
179
163
|
|
|
180
164
|
.numeric-stepper-display {
|
|
181
|
-
|
|
182
|
-
height: 30px;
|
|
183
|
-
max-width: 56px;
|
|
184
|
-
font-size: 16px;
|
|
185
|
-
font-weight: 600;
|
|
186
|
-
color: #101828;
|
|
187
|
-
padding: 0 4px;
|
|
188
|
-
text-align: center;
|
|
189
|
-
overflow: hidden;
|
|
165
|
+
.display-size(30px, 30px, @font-size-middle);
|
|
190
166
|
}
|
|
191
167
|
}
|
|
192
168
|
|
|
@@ -194,44 +170,221 @@
|
|
|
194
170
|
gap: 10px;
|
|
195
171
|
|
|
196
172
|
.numeric-stepper-button {
|
|
197
|
-
|
|
198
|
-
height: 40px;
|
|
199
|
-
|
|
200
|
-
svg {
|
|
201
|
-
width: 20px;
|
|
202
|
-
height: 20px;
|
|
203
|
-
}
|
|
173
|
+
.button-size(@size-large, @icon-size-large);
|
|
204
174
|
}
|
|
205
175
|
|
|
206
176
|
.numeric-stepper-display {
|
|
207
|
-
|
|
208
|
-
height: 36px;
|
|
209
|
-
max-width: 64px;
|
|
210
|
-
font-size: 18px;
|
|
211
|
-
font-weight: 600;
|
|
212
|
-
color: #101828;
|
|
213
|
-
padding: 0 6px;
|
|
214
|
-
text-align: center;
|
|
215
|
-
overflow: hidden;
|
|
177
|
+
.display-size(36px, 36px, @font-size-large, 64px, 0 6px);
|
|
216
178
|
text-overflow: ellipsis;
|
|
217
179
|
white-space: nowrap;
|
|
218
180
|
}
|
|
219
181
|
}
|
|
220
182
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
183
|
+
// ========== 形状变体(分离式下生效)==========
|
|
184
|
+
&-round .numeric-stepper-button {
|
|
185
|
+
border-radius: 50%;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
&-square .numeric-stepper-button {
|
|
189
|
+
border-radius: 12px;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
// ========== 状态样式 ==========
|
|
193
|
+
&-plus-only {
|
|
194
|
+
grid-template-columns: 1fr;
|
|
195
|
+
|
|
196
|
+
.numeric-stepper-plus-button-wrapper {
|
|
197
|
+
justify-content: center;
|
|
224
198
|
}
|
|
225
199
|
}
|
|
226
200
|
|
|
227
|
-
|
|
201
|
+
&-simple {
|
|
202
|
+
gap: 0;
|
|
203
|
+
}
|
|
204
|
+
|
|
228
205
|
&-disabled {
|
|
206
|
+
cursor: not-allowed;
|
|
207
|
+
|
|
229
208
|
.numeric-stepper-display {
|
|
230
209
|
color: #9ca3af;
|
|
231
210
|
}
|
|
232
211
|
}
|
|
212
|
+
|
|
213
|
+
&-out-of-range .numeric-stepper-display {
|
|
214
|
+
color: #ff4d4f;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
&-input-disabled {
|
|
218
|
+
.numeric-stepper-display-wrapper {
|
|
219
|
+
cursor: default;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.numeric-stepper-display {
|
|
223
|
+
border: none;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
// ========== 胶囊式变体 ==========
|
|
228
|
+
&-capsule {
|
|
229
|
+
display: inline-flex;
|
|
230
|
+
width: auto;
|
|
231
|
+
background-color: #fff;
|
|
232
|
+
border: 1px solid @border-color;
|
|
233
|
+
border-radius: 999px;
|
|
234
|
+
padding: 0;
|
|
235
|
+
gap: 2px;
|
|
236
|
+
|
|
237
|
+
// 胶囊式按钮容器交互
|
|
238
|
+
.numeric-stepper-button-wrapper {
|
|
239
|
+
&:hover .numeric-stepper-button:not(.numeric-stepper-button-disabled) {
|
|
240
|
+
background-color: @bg-hover-light;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
&:active .numeric-stepper-button:not(.numeric-stepper-button-disabled) {
|
|
244
|
+
background-color: @bg-active-light;
|
|
245
|
+
transform: none;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
// 胶囊式按钮样式
|
|
250
|
+
.numeric-stepper-button {
|
|
251
|
+
background-color: transparent;
|
|
252
|
+
color: @text-secondary;
|
|
253
|
+
border-radius: 50%;
|
|
254
|
+
transition: all 0.15s ease-in-out;
|
|
255
|
+
|
|
256
|
+
&-disabled {
|
|
257
|
+
background-color: transparent !important;
|
|
258
|
+
color: @text-disabled !important;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
// 胶囊式按钮默认尺寸(middle)
|
|
263
|
+
.numeric-stepper-button {
|
|
264
|
+
.button-size(@capsule-size-middle, @capsule-icon-size-middle);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
// 胶囊式显示区域
|
|
268
|
+
.numeric-stepper-display-wrapper {
|
|
269
|
+
max-width: @capsule-size-middle;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.numeric-stepper-display {
|
|
273
|
+
border: 2px solid @border-color;
|
|
274
|
+
border-radius: 6px;
|
|
275
|
+
background-color: transparent;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
// 胶囊式关闭输入
|
|
279
|
+
&.numeric-stepper-input-disabled .numeric-stepper-display {
|
|
280
|
+
border: none;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
// 胶囊式整体禁用
|
|
284
|
+
&.numeric-stepper-disabled {
|
|
285
|
+
background-color: @bg-disabled-light;
|
|
286
|
+
border-color: @border-color-light;
|
|
287
|
+
|
|
288
|
+
.numeric-stepper-button {
|
|
289
|
+
color: @text-disabled !important;
|
|
290
|
+
cursor: not-allowed;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.numeric-stepper-button-wrapper {
|
|
294
|
+
&:hover,
|
|
295
|
+
&:active {
|
|
296
|
+
.numeric-stepper-button {
|
|
297
|
+
background-color: transparent !important;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.numeric-stepper-display {
|
|
303
|
+
color: @text-disabled;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
// 胶囊式 plus-only 模式
|
|
308
|
+
&.numeric-stepper-plus-only {
|
|
309
|
+
border-radius: 50%;
|
|
310
|
+
padding: 0;
|
|
311
|
+
border: none;
|
|
312
|
+
|
|
313
|
+
.numeric-stepper-button {
|
|
314
|
+
background-color: @primary-color;
|
|
315
|
+
color: #fff;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.numeric-stepper-button-wrapper {
|
|
319
|
+
padding: 0 !important;
|
|
320
|
+
|
|
321
|
+
&:hover .numeric-stepper-button:not(.numeric-stepper-button-disabled) {
|
|
322
|
+
background-color: @primary-hover;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
&:active .numeric-stepper-button:not(.numeric-stepper-button-disabled) {
|
|
326
|
+
background-color: @primary-active;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
&.numeric-stepper-disabled .numeric-stepper-button {
|
|
331
|
+
background-color: @bg-disabled !important;
|
|
332
|
+
color: #fff !important;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
// 胶囊式尺寸调整
|
|
337
|
+
&.numeric-stepper-small {
|
|
338
|
+
.numeric-stepper-button {
|
|
339
|
+
.button-size(@capsule-size-small, @capsule-icon-size-small);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.numeric-stepper-display-wrapper {
|
|
343
|
+
max-width: @capsule-size-small;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.numeric-stepper-display {
|
|
347
|
+
width: auto;
|
|
348
|
+
min-width: 20px;
|
|
349
|
+
font-size: @font-size-small;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
&.numeric-stepper-middle {
|
|
354
|
+
.numeric-stepper-button {
|
|
355
|
+
.button-size(@capsule-size-middle, @capsule-icon-size-middle);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.numeric-stepper-display-wrapper {
|
|
359
|
+
max-width: @capsule-size-middle;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.numeric-stepper-display {
|
|
363
|
+
width: auto;
|
|
364
|
+
min-width: 24px;
|
|
365
|
+
font-size: @font-size-middle;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
&.numeric-stepper-large {
|
|
370
|
+
.numeric-stepper-button {
|
|
371
|
+
.button-size(@capsule-size-large, @capsule-icon-size-large);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.numeric-stepper-display-wrapper {
|
|
375
|
+
max-width: @capsule-size-large;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.numeric-stepper-display {
|
|
379
|
+
width: auto;
|
|
380
|
+
min-width: 32px;
|
|
381
|
+
font-size: @font-size-large;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
233
385
|
}
|
|
234
386
|
|
|
387
|
+
// ========== 键盘弹窗样式 ==========
|
|
235
388
|
.numeric-stepper-keyboard-modal {
|
|
236
389
|
.ant-modal-content,
|
|
237
390
|
.pisell-lowcode-modal-content {
|
|
@@ -244,4 +397,4 @@
|
|
|
244
397
|
.pisell-lowcode-modal-close {
|
|
245
398
|
display: none;
|
|
246
399
|
}
|
|
247
|
-
}
|
|
400
|
+
}
|
|
@@ -124,7 +124,7 @@ var usePresetProps = function usePresetProps(_ref) {
|
|
|
124
124
|
|
|
125
125
|
// select 和没有 preset.variant 时不应用布局配置
|
|
126
126
|
if (variant === 'select' || !(preset !== null && preset !== void 0 && preset.variant)) {
|
|
127
|
-
layoutConfig = null;
|
|
127
|
+
layoutConfig = layout || null;
|
|
128
128
|
} else {
|
|
129
129
|
// 1. 获取预设的基础布局配置
|
|
130
130
|
var baseLayoutConfig = null;
|
|
@@ -176,6 +176,7 @@ var usePresetProps = function usePresetProps(_ref) {
|
|
|
176
176
|
if (indicatorProps) {
|
|
177
177
|
computedIndicatorProps = _objectSpread(_objectSpread({}, computedIndicatorProps), indicatorProps);
|
|
178
178
|
}
|
|
179
|
+
console.log('layoutConfig', layoutConfig);
|
|
179
180
|
return {
|
|
180
181
|
layout: layoutConfig,
|
|
181
182
|
indicatorProps: computedIndicatorProps
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as NumberKeyboard } from "./numberKeyboard";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell2.keyboard.number-keybard.max': (max: number | string) => string;
|
|
4
|
+
'pisell2.keyboard.number-keybard.min': (min: number | string) => string;
|
|
5
|
+
'pisell2.keyboard.number-keybard.ok': string;
|
|
6
|
+
'pisell2.keyboard.number-keybard.reset': string;
|
|
7
|
+
'pisell2.keyboard.number-keybard.clear': string;
|
|
8
|
+
};
|
|
9
|
+
'zh-CN': {
|
|
10
|
+
'pisell2.keyboard.number-keybard.max': (max: number | string) => string;
|
|
11
|
+
'pisell2.keyboard.number-keybard.min': (min: number | string) => string;
|
|
12
|
+
'pisell2.keyboard.number-keybard.ok': string;
|
|
13
|
+
'pisell2.keyboard.number-keybard.reset': string;
|
|
14
|
+
'pisell2.keyboard.number-keybard.clear': string;
|
|
15
|
+
};
|
|
16
|
+
'zh-HK': {
|
|
17
|
+
'pisell2.keyboard.number-keybard.max': (max: number | string) => string;
|
|
18
|
+
'pisell2.keyboard.number-keybard.min': (min: number | string) => string;
|
|
19
|
+
'pisell2.keyboard.number-keybard.ok': string;
|
|
20
|
+
'pisell2.keyboard.number-keybard.reset': string;
|
|
21
|
+
'pisell2.keyboard.number-keybard.clear': string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell2.keyboard.number-keybard.max': function pisell2KeyboardNumberKeybardMax(max) {
|
|
4
|
+
return "Maximum value is ".concat(max);
|
|
5
|
+
},
|
|
6
|
+
'pisell2.keyboard.number-keybard.min': function pisell2KeyboardNumberKeybardMin(min) {
|
|
7
|
+
return "Minimum value is ".concat(min);
|
|
8
|
+
},
|
|
9
|
+
'pisell2.keyboard.number-keybard.ok': 'OK',
|
|
10
|
+
'pisell2.keyboard.number-keybard.reset': 'Reset',
|
|
11
|
+
'pisell2.keyboard.number-keybard.clear': 'Clear'
|
|
12
|
+
},
|
|
13
|
+
'zh-CN': {
|
|
14
|
+
'pisell2.keyboard.number-keybard.max': function pisell2KeyboardNumberKeybardMax(max) {
|
|
15
|
+
return "\u6700\u5927\u503C\u4E3A".concat(max);
|
|
16
|
+
},
|
|
17
|
+
'pisell2.keyboard.number-keybard.min': function pisell2KeyboardNumberKeybardMin(min) {
|
|
18
|
+
return "\u6700\u5C0F\u503C\u4E3A".concat(min);
|
|
19
|
+
},
|
|
20
|
+
'pisell2.keyboard.number-keybard.ok': '确认',
|
|
21
|
+
'pisell2.keyboard.number-keybard.reset': '重置',
|
|
22
|
+
'pisell2.keyboard.number-keybard.clear': '清空'
|
|
23
|
+
},
|
|
24
|
+
'zh-HK': {
|
|
25
|
+
'pisell2.keyboard.number-keybard.max': function pisell2KeyboardNumberKeybardMax(max) {
|
|
26
|
+
return "\u6700\u5927\u503C\u4E3A".concat(max);
|
|
27
|
+
},
|
|
28
|
+
'pisell2.keyboard.number-keybard.min': function pisell2KeyboardNumberKeybardMin(min) {
|
|
29
|
+
return "\u6700\u5C0F\u503C\u4E3A".concat(min);
|
|
30
|
+
},
|
|
31
|
+
'pisell2.keyboard.number-keybard.ok': '確認',
|
|
32
|
+
'pisell2.keyboard.number-keybard.reset': '重置',
|
|
33
|
+
'pisell2.keyboard.number-keybard.clear': '清空'
|
|
34
|
+
}
|
|
35
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { NumberKeyboardBaseProps, NumberKeyboardProps } from './types';
|
|
3
|
+
import './index.less';
|
|
4
|
+
/**
|
|
5
|
+
* NumberKeyboardBase - 数字输入键盘基础组件
|
|
6
|
+
* 支持整数模式和小数模式
|
|
7
|
+
*/
|
|
8
|
+
declare const NumberKeyboardBase: React.FC<NumberKeyboardBaseProps>;
|
|
9
|
+
/**
|
|
10
|
+
* NumberKeyboard - 数字输入键盘
|
|
11
|
+
* 支持基础形式展示、popover 形态或 modal 形态
|
|
12
|
+
*/
|
|
13
|
+
declare const NumberKeyboard: (props: NumberKeyboardProps) => JSX.Element | null;
|
|
14
|
+
export default NumberKeyboard;
|
|
15
|
+
export { NumberKeyboardBase };
|
|
16
|
+
export type { NumberKeyboardProps, NumberKeyboardBaseProps, NumberKeyboardMode, } from './types';
|