vxe-pc-ui 4.4.1 → 4.4.3
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/es/color-picker/src/color-picker.js +2 -2
- package/es/date-picker/src/date-picker.js +1 -1
- package/es/form/src/form.js +1 -1
- package/es/icon/style.css +1 -1
- package/es/icon-picker/src/icon-picker.js +1 -1
- package/es/input/src/input.js +4 -4
- package/es/number-input/src/number-input.js +3 -3
- package/es/pulldown/src/pulldown.js +1 -1
- package/es/select/src/select.js +67 -19
- package/es/select/style.css +17 -0
- package/es/select/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table-select/src/table-select.js +1 -1
- package/es/tree-select/src/tree-select.js +1 -1
- package/es/ui/index.js +2 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-select/style.css +17 -0
- package/es/vxe-select/style.min.css +1 -1
- package/lib/color-picker/src/color-picker.js +2 -2
- package/lib/color-picker/src/color-picker.min.js +1 -1
- package/lib/date-picker/src/date-picker.js +1 -1
- package/lib/date-picker/src/date-picker.min.js +1 -1
- package/lib/form/src/form.js +1 -1
- package/lib/form/src/form.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/icon-picker/src/icon-picker.js +1 -1
- package/lib/icon-picker/src/icon-picker.min.js +1 -1
- package/lib/index.umd.js +88 -31
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +4 -4
- package/lib/input/src/input.min.js +1 -1
- package/lib/number-input/src/number-input.js +3 -3
- package/lib/number-input/src/number-input.min.js +1 -1
- package/lib/pulldown/src/pulldown.js +1 -1
- package/lib/pulldown/src/pulldown.min.js +1 -1
- package/lib/select/src/select.js +70 -14
- package/lib/select/src/select.min.js +1 -1
- package/lib/select/style/style.css +17 -0
- package/lib/select/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table-select/src/table-select.js +1 -1
- package/lib/table-select/src/table-select.min.js +1 -1
- package/lib/tree-select/src/tree-select.js +1 -1
- package/lib/tree-select/src/tree-select.min.js +1 -1
- package/lib/ui/index.js +2 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-select/style/style.css +17 -0
- package/lib/vxe-select/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/color-picker/src/color-picker.ts +3 -3
- package/packages/date-picker/src/date-picker.ts +1 -1
- package/packages/form/src/form.ts +1 -1
- package/packages/icon-picker/src/icon-picker.ts +1 -1
- package/packages/input/src/input.ts +4 -4
- package/packages/number-input/src/number-input.ts +3 -3
- package/packages/pulldown/src/pulldown.ts +1 -1
- package/packages/select/src/select.ts +68 -19
- package/packages/table-select/src/table-select.ts +1 -1
- package/packages/tree-select/src/tree-select.ts +1 -1
- package/packages/ui/index.ts +1 -0
- package/styles/components/select.scss +19 -0
- package/types/components/select.d.ts +15 -2
- package/types/ui/global-icon.d.ts +1 -0
- /package/es/icon/{iconfont.1741079794679.ttf → iconfont.1741230076540.ttf} +0 -0
- /package/es/icon/{iconfont.1741079794679.woff → iconfont.1741230076540.woff} +0 -0
- /package/es/icon/{iconfont.1741079794679.woff2 → iconfont.1741230076540.woff2} +0 -0
- /package/es/{iconfont.1741079794679.ttf → iconfont.1741230076540.ttf} +0 -0
- /package/es/{iconfont.1741079794679.woff → iconfont.1741230076540.woff} +0 -0
- /package/es/{iconfont.1741079794679.woff2 → iconfont.1741230076540.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1741079794679.ttf → iconfont.1741230076540.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1741079794679.woff → iconfont.1741230076540.woff} +0 -0
- /package/lib/icon/style/{iconfont.1741079794679.woff2 → iconfont.1741230076540.woff2} +0 -0
- /package/lib/{iconfont.1741079794679.ttf → iconfont.1741230076540.ttf} +0 -0
- /package/lib/{iconfont.1741079794679.woff → iconfont.1741230076540.woff} +0 -0
- /package/lib/{iconfont.1741079794679.woff2 → iconfont.1741230076540.woff2} +0 -0
|
@@ -386,7 +386,7 @@ export default defineComponent({
|
|
|
386
386
|
|
|
387
387
|
const hideOptionPanel = () => {
|
|
388
388
|
reactData.visiblePanel = false
|
|
389
|
-
internalData.hpTimeout =
|
|
389
|
+
internalData.hpTimeout = setTimeout(() => {
|
|
390
390
|
reactData.isAniVisible = false
|
|
391
391
|
}, 350)
|
|
392
392
|
}
|
package/packages/ui/index.ts
CHANGED
|
@@ -374,6 +374,7 @@ setIcon({
|
|
|
374
374
|
SELECT_LOADED: iconPrefix + 'spinner roll',
|
|
375
375
|
SELECT_OPEN: iconPrefix + 'caret-down rotate180',
|
|
376
376
|
SELECT_CLOSE: iconPrefix + 'caret-down',
|
|
377
|
+
ADD_OPTION: iconPrefix + 'add',
|
|
377
378
|
|
|
378
379
|
// icon-picker
|
|
379
380
|
ICON_PICKER_OPEN: iconPrefix + 'caret-down rotate180',
|
|
@@ -129,6 +129,7 @@
|
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
.vxe-select-option {
|
|
132
|
+
position: relative;
|
|
132
133
|
padding: 0 0.6em;
|
|
133
134
|
max-width: 600px;
|
|
134
135
|
white-space: nowrap;
|
|
@@ -137,6 +138,17 @@
|
|
|
137
138
|
white-space: nowrap;
|
|
138
139
|
user-select: none;
|
|
139
140
|
cursor: pointer;
|
|
141
|
+
&.is--add {
|
|
142
|
+
padding-right: 2em;
|
|
143
|
+
&:hover {
|
|
144
|
+
.vxe-select-option--add-icon {
|
|
145
|
+
color: var(--vxe-ui-font-primary-color);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
.vxe-select-option--add-icon {
|
|
149
|
+
display: block;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
140
152
|
&.is--selected {
|
|
141
153
|
color: var(--vxe-ui-font-primary-color);
|
|
142
154
|
}
|
|
@@ -156,6 +168,13 @@
|
|
|
156
168
|
cursor: default;
|
|
157
169
|
}
|
|
158
170
|
|
|
171
|
+
.vxe-select-option--add-icon {
|
|
172
|
+
display: none;
|
|
173
|
+
position: absolute;
|
|
174
|
+
top: 0;
|
|
175
|
+
right: 0.6em;
|
|
176
|
+
}
|
|
177
|
+
|
|
159
178
|
.vxe-select--search-icon {
|
|
160
179
|
margin-right: 0.5em;
|
|
161
180
|
}
|
|
@@ -43,6 +43,7 @@ export namespace VxeSelectPropTypes {
|
|
|
43
43
|
export type Multiple = boolean
|
|
44
44
|
export type MultiCharOverflow = number | string
|
|
45
45
|
export type PrefixIcon = string
|
|
46
|
+
export type AllowCreate = boolean
|
|
46
47
|
export type Placement = 'top' | 'bottom' | ''
|
|
47
48
|
export type Options = VxeSelectDefines.SelectOptions[]
|
|
48
49
|
export type OptionProps = {
|
|
@@ -107,6 +108,7 @@ export interface VxeSelectProps {
|
|
|
107
108
|
multiple?: VxeSelectPropTypes.Multiple
|
|
108
109
|
multiCharOverflow?: VxeSelectPropTypes.MultiCharOverflow
|
|
109
110
|
prefixIcon?: VxeSelectPropTypes.PrefixIcon
|
|
111
|
+
allowCreate?: VxeSelectPropTypes.AllowCreate
|
|
110
112
|
placement?: VxeSelectPropTypes.Placement
|
|
111
113
|
options?: VxeSelectPropTypes.Options
|
|
112
114
|
optionProps?: VxeSelectPropTypes.OptionProps
|
|
@@ -164,6 +166,7 @@ export interface SelectInternalData {
|
|
|
164
166
|
isLoaded?: boolean
|
|
165
167
|
synchData: any[]
|
|
166
168
|
fullData: any[]
|
|
169
|
+
optAddMaps: Record<string, any>
|
|
167
170
|
optGroupKeyMaps: Record<string, any>
|
|
168
171
|
optFullValMaps: Record<string, VxeSelectDefines.OptCacheItem>
|
|
169
172
|
remoteValMaps: Record<string, VxeSelectDefines.OptCacheItem>
|
|
@@ -241,7 +244,8 @@ export type VxeSelectEmits = [
|
|
|
241
244
|
'blur',
|
|
242
245
|
'focus',
|
|
243
246
|
'click',
|
|
244
|
-
'scroll'
|
|
247
|
+
'scroll',
|
|
248
|
+
'visible-change'
|
|
245
249
|
]
|
|
246
250
|
|
|
247
251
|
export namespace VxeSelectDefines {
|
|
@@ -290,8 +294,14 @@ export namespace VxeSelectDefines {
|
|
|
290
294
|
|
|
291
295
|
export interface FocusEventParams extends SelectEventParams { }
|
|
292
296
|
export interface BlurEventParams extends SelectEventParams { }
|
|
293
|
-
export interface ClickEventParams extends SelectEventParams {
|
|
297
|
+
export interface ClickEventParams extends SelectEventParams {
|
|
298
|
+
triggerButton: boolean
|
|
299
|
+
visible: boolean
|
|
300
|
+
}
|
|
294
301
|
export interface ScrollEventParams extends SelectEventParams { }
|
|
302
|
+
export interface VisibleChangeEventParams extends SelectEventParams {
|
|
303
|
+
visible: boolean
|
|
304
|
+
}
|
|
295
305
|
}
|
|
296
306
|
|
|
297
307
|
export type VxeSelectEventProps = {
|
|
@@ -301,6 +311,7 @@ export type VxeSelectEventProps = {
|
|
|
301
311
|
onBlur?: VxeSelectEvents.Blur
|
|
302
312
|
onClick?: VxeSelectEvents.Click
|
|
303
313
|
onScroll?: VxeSelectEvents.Scroll
|
|
314
|
+
onVisibleChange?: VxeSelectEvents.VisibleChange
|
|
304
315
|
}
|
|
305
316
|
|
|
306
317
|
export interface VxeSelectListeners {
|
|
@@ -310,6 +321,7 @@ export interface VxeSelectListeners {
|
|
|
310
321
|
blur?: VxeSelectEvents.Blur
|
|
311
322
|
click?: VxeSelectEvents.Click
|
|
312
323
|
scroll?: VxeSelectEvents.Scroll
|
|
324
|
+
visibleChange?: VxeSelectEvents.VisibleChange
|
|
313
325
|
}
|
|
314
326
|
|
|
315
327
|
export namespace VxeSelectEvents {
|
|
@@ -319,6 +331,7 @@ export namespace VxeSelectEvents {
|
|
|
319
331
|
export type Blur = (params: VxeSelectDefines.BlurEventParams) => void
|
|
320
332
|
export type Click = (params: VxeSelectDefines.ClickEventParams) => void
|
|
321
333
|
export type Scroll = (params: VxeSelectDefines.ScrollEventParams) => void
|
|
334
|
+
export type VisibleChange = (params: VxeSelectDefines.VisibleChangeEventParams) => void
|
|
322
335
|
}
|
|
323
336
|
|
|
324
337
|
export namespace VxeSelectSlotTypes {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|