@pisell/private-materials 3.4.76 → 3.4.78
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 +2 -2
- package/build/lowcode/preview.js +7 -7
- 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 +10 -10
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftposPay/amount.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 +2 -2
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/hooks/useTranslationOriginal.d.ts +1 -0
- package/es/hooks/useTranslationOriginal.js +10 -0
- package/es/index.d.ts +3 -0
- package/es/index.js +3 -0
- package/es/plus/clientCard/index.d.ts +7 -0
- package/es/plus/clientCard/index.js +462 -0
- package/es/plus/clientCard/index.less +515 -0
- package/es/plus/clientCard/line/index.d.ts +9 -0
- package/es/plus/clientCard/line/index.js +157 -0
- package/es/plus/clientCard/line/index.less +142 -0
- package/es/plus/clientCard/locales.d.ts +18 -0
- package/es/plus/clientCard/locales.js +17 -0
- package/es/plus/clientCard/types.d.ts +135 -0
- package/es/plus/clientCard/types.js +1 -0
- package/es/plus/clientCard/utils.d.ts +8 -0
- package/es/plus/clientCard/utils.js +59 -0
- package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +3 -0
- package/es/plus/clinetSearch/Add/BirthdayField/index.js +277 -0
- package/es/plus/clinetSearch/Add/GenderField/index.d.ts +3 -0
- package/es/plus/clinetSearch/Add/GenderField/index.js +18 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +3 -0
- package/es/plus/clinetSearch/Add/PhoneField/index.js +52 -0
- package/es/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
- package/es/plus/clinetSearch/Add/PhoneField/serve.js +166 -0
- package/es/plus/clinetSearch/Add/index.d.ts +18 -0
- package/es/plus/clinetSearch/Add/index.js +213 -0
- package/es/plus/clinetSearch/Add/index.less +30 -0
- package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
- package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +265 -0
- package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
- package/es/plus/clinetSearch/InfiniteScroll/index.js +1 -0
- package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
- package/es/plus/clinetSearch/InfiniteScroll/types.js +1 -0
- package/es/plus/clinetSearch/index.d.ts +18 -0
- package/es/plus/clinetSearch/index.js +234 -0
- package/es/plus/clinetSearch/index.less +95 -0
- package/es/plus/clinetSearch/locales.d.ts +108 -0
- package/es/plus/clinetSearch/locales.js +107 -0
- package/es/plus/clinetSearch/serve.d.ts +1 -0
- package/es/plus/clinetSearch/serve.js +31 -0
- package/es/plus/clinetSearch/types.d.ts +70 -0
- package/es/plus/clinetSearch/types.js +1 -0
- package/es/plus/saasAttendance/locales.d.ts +63 -0
- package/es/plus/saasAttendance/locales.js +71 -2
- package/es/plus/saasAttendance/settings/PermissonTab.d.ts +5 -0
- package/es/plus/saasAttendance/settings/PermissonTab.js +79 -0
- package/es/plus/saasAttendance/settings/ShiftScheduleTab.js +9 -3
- package/es/plus/saasAttendance/settings/components/MapField.js +69 -33
- package/es/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.d.ts +7 -0
- package/es/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.js +149 -0
- package/es/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.less +119 -0
- package/es/plus/saasAttendance/settings/index.js +7 -0
- package/es/plus/saasAttendance/settings/index.less +15 -0
- package/es/plus/saasAttendance/settings/types.d.ts +6 -0
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +2 -0
- package/es/plus/walletPassGallery/components/passDetail/index.js +104 -39
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +2 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.js +19 -2
- package/es/plus/walletPassGallery/index.d.ts +4 -0
- package/es/plus/walletPassGallery/index.js +121 -42
- package/es/plus/walletPassGallery/serve.d.ts +3 -1
- package/es/plus/walletPassGallery/serve.js +13 -13
- package/es/pro/pisellPhoneKeyboard/index.d.ts +13 -0
- package/es/pro/pisellPhoneKeyboard/index.js +210 -0
- package/es/pro/pisellPhoneKeyboard/index.less +157 -0
- package/es/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
- package/es/pro/pisellPhoneKeyboard/locales.js +11 -0
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftposPay/amount.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 +2 -2
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/hooks/useTranslationOriginal.d.ts +1 -0
- package/lib/hooks/useTranslationOriginal.js +42 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +9 -0
- package/lib/plus/clientCard/index.d.ts +7 -0
- package/lib/plus/clientCard/index.js +457 -0
- package/lib/plus/clientCard/index.less +515 -0
- package/lib/plus/clientCard/line/index.d.ts +9 -0
- package/lib/plus/clientCard/line/index.js +153 -0
- package/lib/plus/clientCard/line/index.less +142 -0
- package/lib/plus/clientCard/locales.d.ts +18 -0
- package/lib/plus/clientCard/locales.js +41 -0
- package/lib/plus/clientCard/types.d.ts +135 -0
- package/lib/plus/clientCard/types.js +17 -0
- package/lib/plus/clientCard/utils.d.ts +8 -0
- package/lib/plus/clientCard/utils.js +75 -0
- package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +3 -0
- package/lib/plus/clinetSearch/Add/BirthdayField/index.js +256 -0
- package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +3 -0
- package/lib/plus/clinetSearch/Add/GenderField/index.js +52 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +3 -0
- package/lib/plus/clinetSearch/Add/PhoneField/index.js +78 -0
- package/lib/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
- package/lib/plus/clinetSearch/Add/PhoneField/serve.js +193 -0
- package/lib/plus/clinetSearch/Add/index.d.ts +18 -0
- package/lib/plus/clinetSearch/Add/index.js +244 -0
- package/lib/plus/clinetSearch/Add/index.less +30 -0
- package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
- package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +235 -0
- package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
- package/lib/plus/clinetSearch/InfiniteScroll/index.js +35 -0
- package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
- package/lib/plus/clinetSearch/InfiniteScroll/types.js +17 -0
- package/lib/plus/clinetSearch/index.d.ts +18 -0
- package/lib/plus/clinetSearch/index.js +237 -0
- package/lib/plus/clinetSearch/index.less +95 -0
- package/lib/plus/clinetSearch/locales.d.ts +108 -0
- package/lib/plus/clinetSearch/locales.js +131 -0
- package/lib/plus/clinetSearch/serve.d.ts +1 -0
- package/lib/plus/clinetSearch/serve.js +33 -0
- package/lib/plus/clinetSearch/types.d.ts +70 -0
- package/lib/plus/clinetSearch/types.js +17 -0
- package/lib/plus/saasAttendance/locales.d.ts +63 -0
- package/lib/plus/saasAttendance/locales.js +65 -2
- package/lib/plus/saasAttendance/settings/PermissonTab.d.ts +5 -0
- package/lib/plus/saasAttendance/settings/PermissonTab.js +128 -0
- package/lib/plus/saasAttendance/settings/ShiftScheduleTab.js +2 -1
- package/lib/plus/saasAttendance/settings/components/MapField.js +50 -11
- package/lib/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.d.ts +7 -0
- package/lib/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.js +150 -0
- package/lib/plus/saasAttendance/settings/components/shiftModal/ShiftPreview.less +119 -0
- package/lib/plus/saasAttendance/settings/index.js +12 -0
- package/lib/plus/saasAttendance/settings/index.less +15 -0
- package/lib/plus/saasAttendance/settings/types.d.ts +6 -0
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +2 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.js +57 -5
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +2 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.js +17 -2
- package/lib/plus/walletPassGallery/index.d.ts +4 -0
- package/lib/plus/walletPassGallery/index.js +141 -42
- package/lib/plus/walletPassGallery/serve.d.ts +3 -1
- package/lib/plus/walletPassGallery/serve.js +2 -2
- package/lib/pro/pisellPhoneKeyboard/index.d.ts +13 -0
- package/lib/pro/pisellPhoneKeyboard/index.js +219 -0
- package/lib/pro/pisellPhoneKeyboard/index.less +157 -0
- package/lib/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
- package/lib/pro/pisellPhoneKeyboard/locales.js +35 -0
- package/lowcode/client-card/fragments/cardStyle.ts +63 -0
- package/lowcode/client-card/fragments/nameStyle.ts +34 -0
- package/lowcode/client-card/fragments/pisellAvatar.ts +87 -0
- package/lowcode/client-card/fragments/tagConfig.ts +88 -0
- package/lowcode/client-card/meta.ts +343 -0
- package/lowcode/client-search/meta.ts +316 -0
- package/lowcode/eco-cup-list/meta.ts +1 -1
- package/lowcode/eco-customer-list/meta.ts +1 -1
- package/lowcode/wallet-pass-gallery/meta.ts +66 -1
- package/package.json +4 -4
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
.pisell-number-selector {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
background: #F9FAFB;
|
|
5
|
+
border-radius: 24px;
|
|
6
|
+
padding: 4px;
|
|
7
|
+
user-select: none;
|
|
8
|
+
gap: 0;
|
|
9
|
+
|
|
10
|
+
&-btn {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
background: #F9FAFB;
|
|
15
|
+
border: none;
|
|
16
|
+
border-radius: 50%;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
transition: all 0.2s ease;
|
|
19
|
+
outline: none;
|
|
20
|
+
padding: 0;
|
|
21
|
+
color: #666;
|
|
22
|
+
|
|
23
|
+
&:hover:not(:disabled) {
|
|
24
|
+
background: #E5E7EB;
|
|
25
|
+
color: #333;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:disabled {
|
|
29
|
+
opacity: 0.5;
|
|
30
|
+
cursor: not-allowed;
|
|
31
|
+
|
|
32
|
+
&:hover {
|
|
33
|
+
background: #F9FAFB !important;
|
|
34
|
+
color: #666 !important;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&-minus,
|
|
40
|
+
&-plus {
|
|
41
|
+
// 圆形按钮,通过尺寸类控制大小
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&-number {
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
justify-content: center;
|
|
48
|
+
background: transparent;
|
|
49
|
+
font-weight: 600;
|
|
50
|
+
color: #000;
|
|
51
|
+
min-width: 0;
|
|
52
|
+
flex: 1;
|
|
53
|
+
text-align: center;
|
|
54
|
+
border: none;
|
|
55
|
+
outline: none;
|
|
56
|
+
font-family: inherit;
|
|
57
|
+
|
|
58
|
+
&-clickable {
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
transition: all 0.2s ease;
|
|
61
|
+
|
|
62
|
+
&:hover {
|
|
63
|
+
color: #333;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&:disabled {
|
|
67
|
+
opacity: 0.6;
|
|
68
|
+
cursor: not-allowed;
|
|
69
|
+
|
|
70
|
+
&:hover {
|
|
71
|
+
color: #000 !important;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// 不同尺寸
|
|
78
|
+
&-small {
|
|
79
|
+
padding: 2px;
|
|
80
|
+
border-radius: 18px;
|
|
81
|
+
|
|
82
|
+
.pisell-number-selector-btn {
|
|
83
|
+
width: 24px;
|
|
84
|
+
height: 24px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.pisell-number-selector-number {
|
|
88
|
+
padding: 0 8px;
|
|
89
|
+
font-size: 12px;
|
|
90
|
+
min-width: 28px;
|
|
91
|
+
height: 24px;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&-middle {
|
|
96
|
+
padding: 4px;
|
|
97
|
+
border-radius: 24px;
|
|
98
|
+
|
|
99
|
+
.pisell-number-selector-btn {
|
|
100
|
+
width: 32px;
|
|
101
|
+
height: 32px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.pisell-number-selector-number {
|
|
105
|
+
padding: 0 16px;
|
|
106
|
+
font-size: 16px;
|
|
107
|
+
min-width: 48px;
|
|
108
|
+
height: 32px;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&-large {
|
|
113
|
+
padding: 6px;
|
|
114
|
+
border-radius: 28px;
|
|
115
|
+
|
|
116
|
+
.pisell-number-selector-btn {
|
|
117
|
+
width: 40px;
|
|
118
|
+
height: 40px;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.pisell-number-selector-number {
|
|
122
|
+
padding: 0 20px;
|
|
123
|
+
font-size: 18px;
|
|
124
|
+
min-width: 64px;
|
|
125
|
+
height: 40px;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// 禁用状态
|
|
130
|
+
&-disabled {
|
|
131
|
+
opacity: 0.6;
|
|
132
|
+
cursor: not-allowed;
|
|
133
|
+
|
|
134
|
+
.pisell-number-selector-number {
|
|
135
|
+
&-clickable {
|
|
136
|
+
cursor: not-allowed;
|
|
137
|
+
|
|
138
|
+
&:hover {
|
|
139
|
+
color: #000 !important;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// Popover 相关样式
|
|
147
|
+
.pisell-number-selector-popover {
|
|
148
|
+
.ant-popover-inner {
|
|
149
|
+
border-radius: 8px;
|
|
150
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.virtual-keyboard-input-delete-icon {
|
|
154
|
+
font-size: 16px;
|
|
155
|
+
color: #666;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/pro/pisellPhoneKeyboard/locales.ts
|
|
20
|
+
var locales_exports = {};
|
|
21
|
+
__export(locales_exports, {
|
|
22
|
+
default: () => locales_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(locales_exports);
|
|
25
|
+
var locales_default = {
|
|
26
|
+
"en": {
|
|
27
|
+
"pisell2.text.confirm": "Confirm"
|
|
28
|
+
},
|
|
29
|
+
"zh-CN": {
|
|
30
|
+
"pisell2.text.confirm": "确认"
|
|
31
|
+
},
|
|
32
|
+
"zh-HK": {
|
|
33
|
+
"pisell2.text.confirm": "確認"
|
|
34
|
+
}
|
|
35
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
title: '宽度',
|
|
4
|
+
name: 'style.width',
|
|
5
|
+
setter: ['NumberSetter', 'StringSetter'],
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
title: '显示边框',
|
|
9
|
+
name: 'style.border',
|
|
10
|
+
setter: {
|
|
11
|
+
componentName: 'RadioGroupSetter',
|
|
12
|
+
props: {
|
|
13
|
+
options: [
|
|
14
|
+
{
|
|
15
|
+
label: '显示边框',
|
|
16
|
+
value: 'solid',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
label: '无边框',
|
|
20
|
+
value: 'unset',
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
},
|
|
24
|
+
initialValue: 'solid'
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
title: '边框粗细',
|
|
29
|
+
name: 'style.borderWidth',
|
|
30
|
+
setter: ['NumberSetter', 'StringSetter'],
|
|
31
|
+
defaultValue: 1
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
title: '边框颜色',
|
|
35
|
+
name: 'style.borderColor',
|
|
36
|
+
setter: ['ColorSetter'],
|
|
37
|
+
defaultValue: '#D0D5DD'
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
title: '圆角',
|
|
41
|
+
name: 'style.borderRadius',
|
|
42
|
+
setter: ['NumberSetter', 'StringSetter'],
|
|
43
|
+
defaultValue: 8
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
title: '内边距',
|
|
47
|
+
name: 'style.padding',
|
|
48
|
+
setter: ['NumberSetter', 'StringSetter'],
|
|
49
|
+
defaultValue: 8
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
title: { label: '左右间距', tip: '头像与内容之间间距' },
|
|
53
|
+
name: 'horizontalGap',
|
|
54
|
+
setter: ['NumberSetter', 'StringSetter'],
|
|
55
|
+
defaultValue: 8
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
title: { label: '字段', tip: '字段上下间距' },
|
|
59
|
+
name: 'verticalGap',
|
|
60
|
+
setter: ['NumberSetter', 'StringSetter'],
|
|
61
|
+
defaultValue: 4
|
|
62
|
+
},
|
|
63
|
+
];
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
type: 'group',
|
|
4
|
+
display: 'plain',
|
|
5
|
+
title: '姓名样式',
|
|
6
|
+
condition: (target: any) => target.getProps().getPropValue('isShowName'),
|
|
7
|
+
items: [
|
|
8
|
+
{
|
|
9
|
+
title: '文本大小',
|
|
10
|
+
name: 'nameStyle.fontSize',
|
|
11
|
+
setter: ['NumberSetter', 'StringSetter'],
|
|
12
|
+
defaultValue: 14,
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
title: '文本粗细',
|
|
16
|
+
name: 'nameStyle.fontWeight',
|
|
17
|
+
setter: ['NumberSetter', 'StringSetter'],
|
|
18
|
+
defaultValue: 600,
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
title: '文本颜色',
|
|
22
|
+
name: 'nameStyle.color',
|
|
23
|
+
setter: ['ColorSetter'],
|
|
24
|
+
defaultValue: '#000',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
title: '文本下划线',
|
|
28
|
+
name: 'nameStyle.textDecoration',
|
|
29
|
+
setter: ['StringSetter'],
|
|
30
|
+
defaultvalu: 'unset',
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
},
|
|
34
|
+
];
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { AntdIconSetter } from '../../../../materials/lowcode/_setters';
|
|
2
|
+
export default [
|
|
3
|
+
{
|
|
4
|
+
name: 'avatar.icon',
|
|
5
|
+
title: { label: '头像图标', tip: 'icon | 设置头像的自定义图标' },
|
|
6
|
+
setter: AntdIconSetter,
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
name: 'avatar.shape',
|
|
10
|
+
title: { label: '头像形状', tip: 'shape | 指定头像的形状' },
|
|
11
|
+
setter: {
|
|
12
|
+
componentName: 'RadioGroupSetter',
|
|
13
|
+
props: {
|
|
14
|
+
options: ['circle', 'square'],
|
|
15
|
+
},
|
|
16
|
+
initialValue: 'circle',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: 'avatar.borderRadius',
|
|
21
|
+
title: { label: '圆角度数', tip: 'borderRadius | 方形头像的圆角大小' },
|
|
22
|
+
setter: ['NumberSetter', 'StringSetter'],
|
|
23
|
+
defaultValue: 4,
|
|
24
|
+
condition: (target: any) => {
|
|
25
|
+
const shape = target.getProps().getPropValue('avatar.shape');
|
|
26
|
+
return shape === 'square';
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'avatar.size',
|
|
31
|
+
title: { label: '尺寸', tip: 'size | 设置头像的大小' },
|
|
32
|
+
setter: [
|
|
33
|
+
{
|
|
34
|
+
componentName: 'SelectSetter',
|
|
35
|
+
props: {
|
|
36
|
+
options: [
|
|
37
|
+
{
|
|
38
|
+
label: 'xs',
|
|
39
|
+
value: 'xs',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
label: 'sm',
|
|
43
|
+
value: 'sm',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
label: 'md',
|
|
47
|
+
value: 'md',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
label: 'lg',
|
|
51
|
+
value: 'lg',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
label: 'xl',
|
|
55
|
+
value: 'xl',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
label: 'xxl',
|
|
59
|
+
value: 'xxl',
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
'NumberSetter',
|
|
65
|
+
'StringSetter',
|
|
66
|
+
],
|
|
67
|
+
defaultValue: 'md',
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: 'avatar.useTextAvatar',
|
|
71
|
+
title: {
|
|
72
|
+
label: '使用文本头像',
|
|
73
|
+
tip: 'useTextAvatar | 是否使用文本作为头像',
|
|
74
|
+
},
|
|
75
|
+
setter: 'BoolSetter',
|
|
76
|
+
defaultValue: false,
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: 'avatar.children',
|
|
80
|
+
title: { label: '文本内容', tip: 'children | 文本头像的内容' },
|
|
81
|
+
setter: 'StringSetter',
|
|
82
|
+
condition: {
|
|
83
|
+
type: 'JSFunction',
|
|
84
|
+
value: "target => target.getProps().getPropValue('avatar.useTextAvatar')",
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
];
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
type: 'group',
|
|
3
|
+
display: 'plain',
|
|
4
|
+
title: '标签设置',
|
|
5
|
+
condition: (target: any) => target.getProps().getPropValue('isShowTag'),
|
|
6
|
+
items: [
|
|
7
|
+
{
|
|
8
|
+
title: '',
|
|
9
|
+
name: 'tags',
|
|
10
|
+
setter: {
|
|
11
|
+
componentName: 'ArraySetter',
|
|
12
|
+
props: {
|
|
13
|
+
itemSetter: {
|
|
14
|
+
componentName: 'ObjectSetter',
|
|
15
|
+
props: {
|
|
16
|
+
config: {
|
|
17
|
+
items: [
|
|
18
|
+
{
|
|
19
|
+
title: '内容',
|
|
20
|
+
name: 'children',
|
|
21
|
+
setter: 'PisellI18nSetter',
|
|
22
|
+
important: true,
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
title: '颜色',
|
|
26
|
+
name: 'color',
|
|
27
|
+
setter: 'ColorSetter',
|
|
28
|
+
important: true,
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
column: 2,
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
initialValue: {
|
|
35
|
+
color: 'gold',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
title: '展示位置',
|
|
43
|
+
name: 'tag.placement',
|
|
44
|
+
setter: {
|
|
45
|
+
componentName: 'RadioGroupSetter',
|
|
46
|
+
props: {
|
|
47
|
+
options: [
|
|
48
|
+
{
|
|
49
|
+
label: '单独行',
|
|
50
|
+
value: 'separate',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
label: '姓名行',
|
|
54
|
+
value: 'inline',
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
initialValue: 'inline',
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
title: '展示状态',
|
|
63
|
+
name: 'tag.flexWrap',
|
|
64
|
+
setter: {
|
|
65
|
+
componentName: 'RadioGroupSetter',
|
|
66
|
+
props: {
|
|
67
|
+
options: [
|
|
68
|
+
{
|
|
69
|
+
label: '一行展示',
|
|
70
|
+
value: 'nowrap',
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
label: '多行展示',
|
|
74
|
+
value: 'wrap',
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
},
|
|
78
|
+
initialValue: 'nowrap',
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
title: '间距',
|
|
83
|
+
name: 'tag.gap',
|
|
84
|
+
setter: ['NumberSetter', 'StringSetter'],
|
|
85
|
+
defaultValue: 4,
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
};
|