@pisell/materials 2.2.57 → 2.2.59
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 +6 -6
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +18 -18
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +17 -17
- package/es/components/pisellCardList/index.d.ts +29 -1
- package/es/components/pisellCardList/index.js +24 -19
- package/es/components/pisellCardList/index.less +75 -75
- package/es/components/pisellCheckboxGroup/index.d.ts +3 -1
- package/es/components/pisellCheckboxGroup/index.js +32 -8
- package/es/components/pisellCheckboxGroup/index.less +1 -0
- package/es/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +4 -0
- package/es/components/pisellInformationEntry/hooks/useNativeScanner.js +35 -0
- package/es/components/pisellInformationEntry/index.d.ts +2 -0
- package/es/components/pisellInformationEntry/index.js +16 -2
- package/es/components/pisellWalletPassCard/index.d.ts +28 -1
- package/es/components/pisellWalletPassCard/index.js +383 -47
- package/es/components/pisellWalletPassCard/index.less +154 -28
- package/es/locales/en-US.d.ts +8 -1
- package/es/locales/en-US.js +8 -1
- package/es/locales/zh-CN.d.ts +8 -1
- package/es/locales/zh-CN.js +8 -1
- package/es/locales/zh-TW.d.ts +8 -1
- package/es/locales/zh-TW.js +8 -1
- package/lib/components/pisellCardList/index.d.ts +29 -1
- package/lib/components/pisellCardList/index.js +44 -43
- package/lib/components/pisellCardList/index.less +75 -75
- package/lib/components/pisellCheckboxGroup/index.d.ts +3 -1
- package/lib/components/pisellCheckboxGroup/index.js +30 -7
- package/lib/components/pisellCheckboxGroup/index.less +1 -0
- package/lib/components/pisellInformationEntry/hooks/useNativeScanner.d.ts +4 -0
- package/lib/components/pisellInformationEntry/hooks/useNativeScanner.js +75 -0
- package/lib/components/pisellInformationEntry/index.d.ts +2 -0
- package/lib/components/pisellInformationEntry/index.js +14 -9
- package/lib/components/pisellWalletPassCard/index.d.ts +28 -1
- package/lib/components/pisellWalletPassCard/index.js +369 -23
- package/lib/components/pisellWalletPassCard/index.less +154 -28
- package/lib/locales/en-US.d.ts +8 -1
- package/lib/locales/en-US.js +8 -1
- package/lib/locales/zh-CN.d.ts +8 -1
- package/lib/locales/zh-CN.js +8 -1
- package/lib/locales/zh-TW.d.ts +8 -1
- package/lib/locales/zh-TW.js +8 -1
- package/lowcode/pisell-card-list/meta.ts +217 -136
- package/lowcode/pisell-wallet-pass-card/actionsMeta.ts +217 -0
- package/lowcode/pisell-wallet-pass-card/meta.ts +173 -129
- package/package.json +1 -1
|
@@ -1,26 +1,55 @@
|
|
|
1
1
|
.pisell-wallet-pass-card {
|
|
2
|
-
padding: 16px;
|
|
3
|
-
color: var(--Gray-900, #101828);
|
|
4
|
-
font-size: 14px;
|
|
5
|
-
font-style: normal;
|
|
6
|
-
position: relative;
|
|
7
|
-
overflow: hidden;
|
|
8
2
|
border-radius: 12px;
|
|
9
3
|
background-size: cover;
|
|
10
4
|
height: 190px;
|
|
5
|
+
width: 350px;
|
|
11
6
|
background-position: center center;
|
|
12
|
-
border
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
7
|
+
border: 1px solid #d0d5dd;
|
|
8
|
+
position: relative;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
|
|
11
|
+
.actions-dropdown-trigger {
|
|
12
|
+
position: absolute;
|
|
13
|
+
top: 16px;
|
|
14
|
+
right: 16px;
|
|
15
|
+
width: 24px;
|
|
16
|
+
height: 24px;
|
|
17
|
+
z-index: 1;
|
|
18
|
+
border-radius: 6px;
|
|
19
|
+
color: #1570ef;
|
|
20
|
+
|
|
21
|
+
&:hover {
|
|
22
|
+
background: var(--Gray-200, #eaecf0);
|
|
23
|
+
}
|
|
20
24
|
}
|
|
21
|
-
|
|
25
|
+
|
|
26
|
+
.actions-btn-wrapper {
|
|
27
|
+
position: absolute;
|
|
28
|
+
top: 16px;
|
|
29
|
+
right: 16px;
|
|
30
|
+
z-index: 2;
|
|
22
31
|
display: flex;
|
|
32
|
+
gap: 16px;
|
|
33
|
+
|
|
34
|
+
& > div {
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.pisell-wallet-pass-card-body {
|
|
40
|
+
padding: 16px;
|
|
41
|
+
color: var(--Gray-900, #101828);
|
|
42
|
+
font-size: 14px;
|
|
43
|
+
font-style: normal;
|
|
44
|
+
position: relative;
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
height: 100%;
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: column;
|
|
23
49
|
justify-content: space-between;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.pisell-card-name-wrap {
|
|
24
53
|
font-weight: 500;
|
|
25
54
|
line-height: 20px;
|
|
26
55
|
|
|
@@ -34,60 +63,62 @@
|
|
|
34
63
|
text-overflow: ellipsis;
|
|
35
64
|
}
|
|
36
65
|
}
|
|
66
|
+
|
|
37
67
|
.pisell-card-store-name {
|
|
38
68
|
height: 20px;
|
|
39
69
|
font-size: 12px;
|
|
40
70
|
font-weight: 400;
|
|
41
|
-
line-height: 18px;
|
|
42
|
-
margin-bottom: 22px;
|
|
71
|
+
line-height: 18px;
|
|
43
72
|
white-space: nowrap;
|
|
44
73
|
overflow: hidden;
|
|
45
74
|
text-overflow: ellipsis;
|
|
46
75
|
}
|
|
76
|
+
|
|
47
77
|
.pisell-card-amount-wrap {
|
|
48
78
|
display: flex;
|
|
49
79
|
margin-bottom: 4px;
|
|
80
|
+
|
|
50
81
|
.pisell-card-amount-item {
|
|
51
82
|
display: flex;
|
|
52
83
|
flex-direction: column;
|
|
53
84
|
margin-right: 16px;
|
|
85
|
+
overflow: hidden;
|
|
86
|
+
|
|
54
87
|
.pisell-card-amount-item-label {
|
|
55
88
|
color: var(--Gray-500, #667085);
|
|
56
89
|
font-weight: 400;
|
|
57
90
|
line-height: 20px;
|
|
58
91
|
height: 20px;
|
|
92
|
+
white-space: nowrap;
|
|
59
93
|
}
|
|
94
|
+
|
|
60
95
|
.pisell-card-amount-item-value {
|
|
61
96
|
font-size: 20px;
|
|
62
97
|
font-weight: 600;
|
|
63
98
|
line-height: 30px;
|
|
99
|
+
overflow: hidden;
|
|
100
|
+
text-overflow: ellipsis;
|
|
64
101
|
}
|
|
65
102
|
}
|
|
66
103
|
}
|
|
104
|
+
|
|
67
105
|
.pisell-card-code-wrap {
|
|
68
106
|
display: flex;
|
|
69
107
|
justify-content: space-between;
|
|
70
108
|
position: relative;
|
|
109
|
+
|
|
71
110
|
.pisell-card-code {
|
|
72
111
|
line-height: 20px;
|
|
73
112
|
display: flex;
|
|
74
113
|
flex-direction: column;
|
|
75
114
|
gap: 2px;
|
|
76
115
|
}
|
|
77
|
-
.pisell-card-qr-code {
|
|
78
|
-
position: absolute;
|
|
79
|
-
top: -16px;
|
|
80
|
-
right: -6px;
|
|
81
|
-
.pisell-lowcode-qrcode-wrap {
|
|
82
|
-
.pisell-lowcode-qrcode {
|
|
83
|
-
background: rgba(255, 255, 255, 0.8) !important;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
116
|
}
|
|
117
|
+
|
|
88
118
|
.pisell-lowcode-qrcode {
|
|
89
119
|
padding: 6px;
|
|
90
120
|
}
|
|
121
|
+
|
|
91
122
|
.pisell-card-warn-message {
|
|
92
123
|
position: absolute;
|
|
93
124
|
bottom: 0;
|
|
@@ -99,20 +130,37 @@
|
|
|
99
130
|
color: var(--Gray-900, #101828);
|
|
100
131
|
font-weight: 600;
|
|
101
132
|
line-height: 20px;
|
|
133
|
+
font-size: 14px;
|
|
134
|
+
|
|
102
135
|
.pisell-card-icon {
|
|
103
136
|
font-size: 20px;
|
|
104
137
|
color: #dc6803;
|
|
105
138
|
margin-right: 6px;
|
|
106
139
|
}
|
|
107
140
|
}
|
|
141
|
+
|
|
142
|
+
.pisell-card-qr-code {
|
|
143
|
+
position: absolute;
|
|
144
|
+
bottom: 10px;
|
|
145
|
+
right: 10px;
|
|
146
|
+
|
|
147
|
+
.pisell-lowcode-qrcode-wrap {
|
|
148
|
+
.pisell-lowcode-qrcode {
|
|
149
|
+
background: rgba(255, 255, 255, 0.8) !important;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
108
153
|
}
|
|
154
|
+
|
|
109
155
|
.pisell-card-disabled {
|
|
110
156
|
color: var(--Gray-500, #667085);
|
|
111
|
-
padding-bottom:
|
|
157
|
+
padding-bottom: 30px;
|
|
158
|
+
|
|
112
159
|
.pisell-card-amount-wrap {
|
|
113
160
|
.pisell-card-amount-item {
|
|
114
161
|
flex-direction: row;
|
|
115
162
|
align-items: center;
|
|
163
|
+
|
|
116
164
|
.pisell-card-amount-item-value {
|
|
117
165
|
font-size: 14px;
|
|
118
166
|
font-weight: 400;
|
|
@@ -120,7 +168,85 @@
|
|
|
120
168
|
}
|
|
121
169
|
}
|
|
122
170
|
}
|
|
171
|
+
|
|
172
|
+
.pisell-wallet-pass-card-body,
|
|
173
|
+
.pisell-card-amount-item-label,
|
|
174
|
+
.pisell-card-amount-item-value {
|
|
175
|
+
color: var(--Gray-500, #667085) !important;
|
|
176
|
+
font-weight: 400 !important;
|
|
177
|
+
}
|
|
123
178
|
}
|
|
179
|
+
|
|
124
180
|
.pisell-card-disabled-hide-disabled-reason {
|
|
125
181
|
height: 165px !important;
|
|
126
182
|
}
|
|
183
|
+
|
|
184
|
+
.pisell-wallet-pass-card.pisell-wallet-pass-card-mini {
|
|
185
|
+
width: 250px;
|
|
186
|
+
height: 150px;
|
|
187
|
+
|
|
188
|
+
.pisell-card-name-wrap {
|
|
189
|
+
font-weight: 600;
|
|
190
|
+
font-size: 16px;
|
|
191
|
+
max-width: calc(100% - 96px);
|
|
192
|
+
white-space: nowrap;
|
|
193
|
+
overflow: hidden;
|
|
194
|
+
text-overflow: ellipsis;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.pisell-card-store-name {
|
|
198
|
+
font-weight: 400;
|
|
199
|
+
font-size: 14px;
|
|
200
|
+
line-height: 20px;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.pisell-card-amount-wrap {
|
|
204
|
+
display: block;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.pisell-wallet-pass-card-redeem {
|
|
208
|
+
visibility: hidden;
|
|
209
|
+
flex-direction: row;
|
|
210
|
+
align-items: center;
|
|
211
|
+
|
|
212
|
+
.pisell-card-amount-item-label,
|
|
213
|
+
.pisell-card-amount-item-value {
|
|
214
|
+
color: var(--Primary-600, #7f56d9);
|
|
215
|
+
font-size: 20px;
|
|
216
|
+
font-style: normal;
|
|
217
|
+
font-weight: 600;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
&.active {
|
|
222
|
+
.pisell-wallet-pass-card-redeem {
|
|
223
|
+
visibility: visible;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.pisell-wallet-pass-card-balance {
|
|
228
|
+
flex-direction: row;
|
|
229
|
+
align-items: center;
|
|
230
|
+
|
|
231
|
+
.pisell-card-amount-item-label,
|
|
232
|
+
.pisell-card-amount-item-value {
|
|
233
|
+
font-size: 14px;
|
|
234
|
+
font-weight: 600;
|
|
235
|
+
color: var(--Gray-900, #101828);
|
|
236
|
+
line-height: 20px;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.pisell-card-checked-icon {
|
|
241
|
+
position: absolute;
|
|
242
|
+
bottom: 16px;
|
|
243
|
+
right: 16px;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.pisell-wallet-pass-card-detail-modal,
|
|
248
|
+
.pisell-wallet-pass-card-edit-modal {
|
|
249
|
+
.pisell-lowcode-form-item {
|
|
250
|
+
margin-bottom: 20px;
|
|
251
|
+
}
|
|
252
|
+
}
|
package/es/locales/en-US.d.ts
CHANGED
|
@@ -117,9 +117,16 @@ declare const _default: {
|
|
|
117
117
|
'pisell-information-entry-input-confirm': string;
|
|
118
118
|
'pisell-information-entry-scan-exit': string;
|
|
119
119
|
'pisell-wallet-pass-card-detail': string;
|
|
120
|
-
'pisell-wallet-pass-card-
|
|
120
|
+
'pisell-wallet-pass-card-edit': string;
|
|
121
|
+
'pisell-wallet-pass-card-name': string;
|
|
122
|
+
'pisell-wallet-pass-card-store-name': string;
|
|
121
123
|
'pisell-wallet-pass-card-balance': string;
|
|
124
|
+
'pisell-wallet-pass-card-redeem': string;
|
|
125
|
+
'pisell-wallet-pass-card-code': string;
|
|
122
126
|
'pisell-wallet-pass-card-valid-to': string;
|
|
127
|
+
'pisell-wallet-pass-card-confirm': string;
|
|
128
|
+
'pisell-wallet-pass-card-cancel': string;
|
|
129
|
+
'pisell-wallet-pass-card-required': string;
|
|
123
130
|
'pisell-wallet-pass-card-expireDate': string;
|
|
124
131
|
'pisell-adjust-price-price-override': string;
|
|
125
132
|
'pisell-adjust-price-discount': string;
|
package/es/locales/en-US.js
CHANGED
|
@@ -143,9 +143,16 @@ export default {
|
|
|
143
143
|
'pisell-information-entry-scan-exit': 'Exit',
|
|
144
144
|
// 钱包卡片组件
|
|
145
145
|
'pisell-wallet-pass-card-detail': 'Detail',
|
|
146
|
-
'pisell-wallet-pass-card-
|
|
146
|
+
'pisell-wallet-pass-card-edit': 'Edit',
|
|
147
|
+
'pisell-wallet-pass-card-name': 'Name',
|
|
148
|
+
'pisell-wallet-pass-card-store-name': 'StoreName',
|
|
147
149
|
'pisell-wallet-pass-card-balance': 'Balance',
|
|
150
|
+
'pisell-wallet-pass-card-redeem': 'Redeem',
|
|
151
|
+
'pisell-wallet-pass-card-code': 'Code',
|
|
148
152
|
'pisell-wallet-pass-card-valid-to': 'Valid to',
|
|
153
|
+
'pisell-wallet-pass-card-confirm': 'Confirm',
|
|
154
|
+
'pisell-wallet-pass-card-cancel': 'Cancel',
|
|
155
|
+
'pisell-wallet-pass-card-required': 'This field is required',
|
|
149
156
|
'pisell-wallet-pass-card-expireDate': 'Long term',
|
|
150
157
|
// 金额修改组件
|
|
151
158
|
'pisell-adjust-price-price-override': "Price override",
|
package/es/locales/zh-CN.d.ts
CHANGED
|
@@ -117,9 +117,16 @@ declare const _default: {
|
|
|
117
117
|
'pisell-information-entry-input-confirm': string;
|
|
118
118
|
'pisell-information-entry-scan-exit': string;
|
|
119
119
|
'pisell-wallet-pass-card-detail': string;
|
|
120
|
-
'pisell-wallet-pass-card-
|
|
120
|
+
'pisell-wallet-pass-card-edit': string;
|
|
121
|
+
'pisell-wallet-pass-card-name': string;
|
|
122
|
+
'pisell-wallet-pass-card-store-name': string;
|
|
121
123
|
'pisell-wallet-pass-card-balance': string;
|
|
124
|
+
'pisell-wallet-pass-card-redeem': string;
|
|
125
|
+
'pisell-wallet-pass-card-code': string;
|
|
122
126
|
'pisell-wallet-pass-card-valid-to': string;
|
|
127
|
+
'pisell-wallet-pass-card-confirm': string;
|
|
128
|
+
'pisell-wallet-pass-card-cancel': string;
|
|
129
|
+
'pisell-wallet-pass-card-required': string;
|
|
123
130
|
'pisell-wallet-pass-card-expireDate': string;
|
|
124
131
|
'pisell-adjust-price-price-override': string;
|
|
125
132
|
'pisell-adjust-price-discount': string;
|
package/es/locales/zh-CN.js
CHANGED
|
@@ -143,9 +143,16 @@ export default {
|
|
|
143
143
|
'pisell-information-entry-scan-exit': '退出',
|
|
144
144
|
// 钱包卡片组件
|
|
145
145
|
'pisell-wallet-pass-card-detail': '详情',
|
|
146
|
-
'pisell-wallet-pass-card-
|
|
146
|
+
'pisell-wallet-pass-card-edit': '编辑',
|
|
147
|
+
'pisell-wallet-pass-card-name': '商品名称',
|
|
148
|
+
'pisell-wallet-pass-card-store-name': '共享店铺名称',
|
|
147
149
|
'pisell-wallet-pass-card-balance': '余额',
|
|
150
|
+
'pisell-wallet-pass-card-redeem': '兑换',
|
|
151
|
+
'pisell-wallet-pass-card-code': '识别码编号',
|
|
148
152
|
'pisell-wallet-pass-card-valid-to': '有效期至',
|
|
153
|
+
'pisell-wallet-pass-card-confirm': '确认',
|
|
154
|
+
'pisell-wallet-pass-card-cancel': '取消',
|
|
155
|
+
'pisell-wallet-pass-card-required': '此字段必填',
|
|
149
156
|
'pisell-wallet-pass-card-expireDate': '长期',
|
|
150
157
|
// 金额修改组件
|
|
151
158
|
'pisell-adjust-price-price-override': "一口价",
|
package/es/locales/zh-TW.d.ts
CHANGED
|
@@ -117,9 +117,16 @@ declare const _default: {
|
|
|
117
117
|
'pisell-information-entry-input-confirm': string;
|
|
118
118
|
'pisell-information-entry-scan-exit': string;
|
|
119
119
|
'pisell-wallet-pass-card-detail': string;
|
|
120
|
-
'pisell-wallet-pass-card-
|
|
120
|
+
'pisell-wallet-pass-card-edit': string;
|
|
121
|
+
'pisell-wallet-pass-card-name': string;
|
|
122
|
+
'pisell-wallet-pass-card-store-name': string;
|
|
121
123
|
'pisell-wallet-pass-card-balance': string;
|
|
124
|
+
'pisell-wallet-pass-card-redeem': string;
|
|
125
|
+
'pisell-wallet-pass-card-code': string;
|
|
122
126
|
'pisell-wallet-pass-card-valid-to': string;
|
|
127
|
+
'pisell-wallet-pass-card-confirm': string;
|
|
128
|
+
'pisell-wallet-pass-card-cancel': string;
|
|
129
|
+
'pisell-wallet-pass-card-required': string;
|
|
123
130
|
'pisell-wallet-pass-card-expireDate': string;
|
|
124
131
|
'pisell-adjust-price-price-override': string;
|
|
125
132
|
'pisell-adjust-price-discount': string;
|
package/es/locales/zh-TW.js
CHANGED
|
@@ -143,9 +143,16 @@ export default {
|
|
|
143
143
|
'pisell-information-entry-scan-exit': '退出',
|
|
144
144
|
// 钱包卡片组件
|
|
145
145
|
'pisell-wallet-pass-card-detail': '詳情',
|
|
146
|
-
'pisell-wallet-pass-card-
|
|
146
|
+
'pisell-wallet-pass-card-edit': '編輯',
|
|
147
|
+
'pisell-wallet-pass-card-name': '商品名稱',
|
|
148
|
+
'pisell-wallet-pass-card-store-name': '共享店鋪名稱',
|
|
147
149
|
'pisell-wallet-pass-card-balance': '餘額',
|
|
150
|
+
'pisell-wallet-pass-card-redeem': '兌換',
|
|
151
|
+
'pisell-wallet-pass-card-code': '識別碼編號',
|
|
148
152
|
'pisell-wallet-pass-card-valid-to': '有效期至',
|
|
153
|
+
'pisell-wallet-pass-card-confirm': '確認',
|
|
154
|
+
'pisell-wallet-pass-card-cancel': '取消',
|
|
155
|
+
'pisell-wallet-pass-card-required': '此欄位為必填',
|
|
149
156
|
'pisell-wallet-pass-card-expireDate': '長期',
|
|
150
157
|
// 金额修改组件
|
|
151
158
|
'pisell-adjust-price-price-override': "一口價",
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { PisellCheckboxGroupProps } from '../pisellCheckboxGroup';
|
|
3
3
|
import { PisellContextType } from '../pisell-config-provider/context';
|
|
4
4
|
import { PisellWalletPassCardProps } from '../pisellWalletPassCard';
|
|
5
|
+
import './index.less';
|
|
5
6
|
export interface PisellCardListProps extends Omit<PisellCheckboxGroupProps, 'options'> {
|
|
6
7
|
platform?: PisellContextType['platform'];
|
|
7
8
|
/** 当用户查看完所有记录时,底部会显示此消息 */
|
|
@@ -38,6 +39,33 @@ export interface PisellCardListProps extends Omit<PisellCheckboxGroupProps, 'opt
|
|
|
38
39
|
showCover?: boolean;
|
|
39
40
|
/** 是否余额货币单位 */
|
|
40
41
|
showBalanceSymbol?: boolean;
|
|
42
|
+
/** 卡片大小 */
|
|
43
|
+
type?: 'default' | 'mini';
|
|
44
|
+
/** 展示操作按钮 */
|
|
45
|
+
showActions?: boolean;
|
|
46
|
+
/** 操作按钮配置 */
|
|
47
|
+
actions?: {
|
|
48
|
+
/** 按钮展示方式 */
|
|
49
|
+
layout: 'expanded' | 'collapsed';
|
|
50
|
+
/** detail 按钮配置 */
|
|
51
|
+
detail?: {
|
|
52
|
+
visible: boolean;
|
|
53
|
+
iconColor: string;
|
|
54
|
+
};
|
|
55
|
+
/** edit按钮配置 */
|
|
56
|
+
edit?: {
|
|
57
|
+
visible: boolean;
|
|
58
|
+
iconColor: string;
|
|
59
|
+
dialogTitle: string;
|
|
60
|
+
enableDialog: boolean;
|
|
61
|
+
fields: {
|
|
62
|
+
name: string;
|
|
63
|
+
label: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
/** 编辑弹窗点击提交 */
|
|
68
|
+
onConfirmEdit?: (value: any, index: number) => void;
|
|
41
69
|
}
|
|
42
|
-
declare const _default: React.
|
|
70
|
+
declare const _default: React.NamedExoticComponent<PisellCardListProps>;
|
|
43
71
|
export default _default;
|
|
@@ -33,14 +33,13 @@ __export(pisellCardList_exports, {
|
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(pisellCardList_exports);
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_react_infinite_scroll_component = __toESM(require("react-infinite-scroll-component"));
|
|
37
|
-
var import_antd = require("antd");
|
|
38
36
|
var import_pisellCheckboxGroup = __toESM(require("../pisellCheckboxGroup"));
|
|
39
37
|
var import_pisellWalletPassCard = __toESM(require("../pisellWalletPassCard"));
|
|
40
38
|
var import_pisellEmpty = __toESM(require("../pisellEmpty"));
|
|
39
|
+
var import_index = require("./index.less");
|
|
41
40
|
var PisellCardList = (props) => {
|
|
42
41
|
const {
|
|
43
|
-
data,
|
|
42
|
+
data = [],
|
|
44
43
|
loadMoreData = () => {
|
|
45
44
|
},
|
|
46
45
|
endMessage,
|
|
@@ -49,6 +48,9 @@ var PisellCardList = (props) => {
|
|
|
49
48
|
onChange,
|
|
50
49
|
value,
|
|
51
50
|
mode,
|
|
51
|
+
direction,
|
|
52
|
+
fullWidth,
|
|
53
|
+
type,
|
|
52
54
|
showName,
|
|
53
55
|
showCode,
|
|
54
56
|
showCover,
|
|
@@ -62,47 +64,46 @@ var PisellCardList = (props) => {
|
|
|
62
64
|
showEmpty,
|
|
63
65
|
showBalanceSymbol
|
|
64
66
|
} = props;
|
|
65
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
66
|
-
|
|
67
|
+
return data.length ? /* @__PURE__ */ import_react.default.createElement(
|
|
68
|
+
import_pisellCheckboxGroup.default,
|
|
67
69
|
{
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
{
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
70
|
+
options: data,
|
|
71
|
+
value,
|
|
72
|
+
mode,
|
|
73
|
+
direction,
|
|
74
|
+
rowKey: "id",
|
|
75
|
+
gap: 12,
|
|
76
|
+
onChange,
|
|
77
|
+
iconPosition: "hide",
|
|
78
|
+
fullWidth,
|
|
79
|
+
renderOption: (item, active, index) => {
|
|
80
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
81
|
+
import_pisellWalletPassCard.default,
|
|
82
|
+
{
|
|
83
|
+
...item,
|
|
84
|
+
active,
|
|
85
|
+
showName: showName || (item == null ? void 0 : item.showName),
|
|
86
|
+
showBalance: showBalance || (item == null ? void 0 : item.showBalance),
|
|
87
|
+
showCode: showCode || (item == null ? void 0 : item.showCode),
|
|
88
|
+
showCover: showCover || (item == null ? void 0 : item.showCover),
|
|
89
|
+
showDetail: showDetail || (item == null ? void 0 : item.showDetail),
|
|
90
|
+
showQrCode: showQrCode || (item == null ? void 0 : item.showQrCode),
|
|
91
|
+
showRedeem: showRedeem || (item == null ? void 0 : item.showRedeem),
|
|
92
|
+
showStoreName: showStoreName || (item == null ? void 0 : item.showStoreName),
|
|
93
|
+
showValidDate: showValidDate || (item == null ? void 0 : item.showValidDate),
|
|
94
|
+
showBalanceSymbol: showBalanceSymbol || (item == null ? void 0 : item.showBalanceSymbol),
|
|
95
|
+
showActions: props.showActions || (item == null ? void 0 : item.showActions),
|
|
96
|
+
actions: props.actions || (item == null ? void 0 : item.actions),
|
|
97
|
+
onConfirmEdit: (newVal) => {
|
|
98
|
+
var _a;
|
|
99
|
+
(_a = props.onConfirmEdit) == null ? void 0 : _a.call(props, newVal, index);
|
|
100
|
+
},
|
|
101
|
+
type,
|
|
102
|
+
style: direction === "vertical" || direction === "horizontal" && fullWidth ? { width: "100%" } : {}
|
|
103
|
+
}
|
|
104
|
+
);
|
|
104
105
|
}
|
|
105
|
-
|
|
106
|
-
);
|
|
106
|
+
}
|
|
107
|
+
) : showEmpty && (empty || /* @__PURE__ */ import_react.default.createElement(import_pisellEmpty.default, null));
|
|
107
108
|
};
|
|
108
109
|
var pisellCardList_default = (0, import_react.memo)(PisellCardList);
|