vxe-pc-ui 3.17.21 → 3.17.23
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/icon/style.css +1 -1
- package/es/input/src/input.js +13 -2
- package/es/input/style.css +10 -1
- package/es/input/style.min.css +1 -1
- package/es/number-input/src/number-input.js +27 -6
- package/es/number-input/style.css +17 -2
- package/es/number-input/style.min.css +1 -1
- package/es/password-input/src/password-input.js +13 -2
- package/es/password-input/style.css +10 -0
- package/es/password-input/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-input/style.css +10 -1
- package/es/vxe-input/style.min.css +1 -1
- package/es/vxe-number-input/style.css +17 -2
- package/es/vxe-number-input/style.min.css +1 -1
- package/es/vxe-password-input/style.css +10 -0
- package/es/vxe-password-input/style.min.css +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +47 -6
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +12 -1
- package/lib/input/src/input.min.js +1 -1
- package/lib/input/style/style.css +10 -1
- package/lib/input/style/style.min.css +1 -1
- package/lib/number-input/src/number-input.js +21 -2
- package/lib/number-input/src/number-input.min.js +1 -1
- package/lib/number-input/style/style.css +17 -2
- package/lib/number-input/style/style.min.css +1 -1
- package/lib/password-input/src/password-input.js +12 -1
- package/lib/password-input/src/password-input.min.js +1 -1
- package/lib/password-input/style/style.css +10 -0
- package/lib/password-input/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +1 -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-input/style/style.css +10 -1
- package/lib/vxe-input/style/style.min.css +1 -1
- package/lib/vxe-number-input/style/style.css +17 -2
- package/lib/vxe-number-input/style/style.min.css +1 -1
- package/lib/vxe-password-input/style/style.css +10 -0
- package/lib/vxe-password-input/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/input/src/input.ts +13 -2
- package/packages/number-input/src/number-input.ts +28 -6
- package/packages/password-input/src/password-input.ts +13 -2
- package/styles/components/input.scss +10 -1
- package/styles/components/number-input.scss +25 -2
- package/styles/components/password-input.scss +10 -0
- package/styles/theme/base.scss +6 -6
- package/types/components/input.d.ts +3 -0
- package/types/components/number-input.d.ts +3 -0
- package/types/components/password-input.d.ts +3 -0
- package/types/components/table-module/filter.d.ts +4 -0
- package/types/components/table-module/menu.d.ts +24 -4
- package/types/components/table.d.ts +16 -0
- /package/es/icon/{iconfont.1787994741699.ttf → iconfont.1788176060767.ttf} +0 -0
- /package/es/icon/{iconfont.1787994741699.woff → iconfont.1788176060767.woff} +0 -0
- /package/es/icon/{iconfont.1787994741699.woff2 → iconfont.1788176060767.woff2} +0 -0
- /package/es/{iconfont.1787994741699.ttf → iconfont.1788176060767.ttf} +0 -0
- /package/es/{iconfont.1787994741699.woff → iconfont.1788176060767.woff} +0 -0
- /package/es/{iconfont.1787994741699.woff2 → iconfont.1788176060767.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1787994741699.ttf → iconfont.1788176060767.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1787994741699.woff → iconfont.1788176060767.woff} +0 -0
- /package/lib/icon/style/{iconfont.1787994741699.woff2 → iconfont.1788176060767.woff2} +0 -0
- /package/lib/{iconfont.1787994741699.ttf → iconfont.1788176060767.ttf} +0 -0
- /package/lib/{iconfont.1787994741699.woff → iconfont.1788176060767.woff} +0 -0
- /package/lib/{iconfont.1787994741699.woff2 → iconfont.1788176060767.woff2} +0 -0
|
@@ -31,6 +31,10 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
31
31
|
disabled: Boolean as PropType<VxePasswordInputPropTypes.Disabled>,
|
|
32
32
|
maxLength: [String, Number] as PropType<VxePasswordInputPropTypes.MaxLength>,
|
|
33
33
|
placeholder: String as PropType<VxePasswordInputPropTypes.Placeholder>,
|
|
34
|
+
floatContent: {
|
|
35
|
+
type: String as PropType<VxePasswordInputPropTypes.FloatContent>,
|
|
36
|
+
default: () => getConfig().passwordInput.floatContent
|
|
37
|
+
},
|
|
34
38
|
autoComplete: {
|
|
35
39
|
type: String as PropType<VxePasswordInputPropTypes.AutoComplete>,
|
|
36
40
|
default: 'off'
|
|
@@ -431,8 +435,9 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
431
435
|
const $xePasswordInput = this
|
|
432
436
|
const props = $xePasswordInput
|
|
433
437
|
const reactData = $xePasswordInput.reactData
|
|
438
|
+
const slots = $xePasswordInput.$scopedSlots
|
|
434
439
|
|
|
435
|
-
const { className, inputClassName, name, autocomplete, autoComplete, maxLength } = props
|
|
440
|
+
const { className, inputClassName, name, floatContent, autocomplete, autoComplete, maxLength } = props
|
|
436
441
|
const { inputValue, isActivated } = reactData
|
|
437
442
|
const isDisabled = $xePasswordInput.computeIsDisabled
|
|
438
443
|
const formReadonly = $xePasswordInput.computeFormReadonly
|
|
@@ -449,6 +454,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
449
454
|
const inputReadonly = $xePasswordInput.computeInputReadonly
|
|
450
455
|
const prefix = $xePasswordInput.renderPrefixIcon(h)
|
|
451
456
|
const suffix = $xePasswordInput.renderSuffixIcon(h)
|
|
457
|
+
const floatSlot = slots.float
|
|
452
458
|
return h('div', {
|
|
453
459
|
ref: 'refElem',
|
|
454
460
|
class: ['vxe-password-input', className, {
|
|
@@ -492,7 +498,12 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
492
498
|
}
|
|
493
499
|
})
|
|
494
500
|
]),
|
|
495
|
-
suffix || renderEmptyElement($xePasswordInput)
|
|
501
|
+
suffix || renderEmptyElement($xePasswordInput),
|
|
502
|
+
floatContent || floatSlot
|
|
503
|
+
? h('span', {
|
|
504
|
+
class: 'vxe-password-input--float-wrapper'
|
|
505
|
+
}, floatSlot ? floatSlot({}) : getText(floatContent))
|
|
506
|
+
: renderEmptyElement($xePasswordInput)
|
|
496
507
|
])
|
|
497
508
|
}
|
|
498
509
|
},
|
|
@@ -103,7 +103,6 @@
|
|
|
103
103
|
border-radius: var(--vxe-ui-base-border-radius);
|
|
104
104
|
width: 180px;
|
|
105
105
|
border: 1px solid var(--vxe-ui-input-border-color);
|
|
106
|
-
overflow: hidden;
|
|
107
106
|
&.is--active {
|
|
108
107
|
border: 1px solid var(--vxe-ui-font-primary-color);
|
|
109
108
|
}
|
|
@@ -167,6 +166,16 @@
|
|
|
167
166
|
}
|
|
168
167
|
}
|
|
169
168
|
|
|
169
|
+
.vxe-input--float-wrapper {
|
|
170
|
+
position: absolute;
|
|
171
|
+
left: 1em;
|
|
172
|
+
top: -0.5em;
|
|
173
|
+
line-height: 1;
|
|
174
|
+
padding: 0 0.2em;
|
|
175
|
+
color: var(--vxe-ui-input-placeholder-color);
|
|
176
|
+
background-color: var(--vxe-ui-layout-background-color);
|
|
177
|
+
}
|
|
178
|
+
|
|
170
179
|
.vxe-input--number-btn {
|
|
171
180
|
height: 50%;
|
|
172
181
|
display: flex;
|
|
@@ -100,7 +100,6 @@
|
|
|
100
100
|
border-radius: var(--vxe-ui-base-border-radius);
|
|
101
101
|
width: 180px;
|
|
102
102
|
border: 1px solid var(--vxe-ui-input-border-color);
|
|
103
|
-
overflow: hidden;
|
|
104
103
|
&.is--active {
|
|
105
104
|
border: 1px solid var(--vxe-ui-font-primary-color);
|
|
106
105
|
}
|
|
@@ -157,6 +156,16 @@
|
|
|
157
156
|
}
|
|
158
157
|
}
|
|
159
158
|
|
|
159
|
+
.vxe-number-input--float-wrapper {
|
|
160
|
+
position: absolute;
|
|
161
|
+
left: 1em;
|
|
162
|
+
top: -0.5em;
|
|
163
|
+
line-height: 1;
|
|
164
|
+
padding: 0 0.2em;
|
|
165
|
+
color: var(--vxe-ui-input-placeholder-color);
|
|
166
|
+
background-color: var(--vxe-ui-layout-background-color);
|
|
167
|
+
}
|
|
168
|
+
|
|
160
169
|
// 统计字数
|
|
161
170
|
.vxe-number-input--count {
|
|
162
171
|
flex-shrink: 0;
|
|
@@ -234,13 +243,27 @@
|
|
|
234
243
|
}
|
|
235
244
|
}
|
|
236
245
|
.vxe-number-input {
|
|
237
|
-
&.
|
|
246
|
+
&.ctl--default {
|
|
238
247
|
& > .vxe-number-input--input-wrapper {
|
|
239
248
|
.vxe-number-input--input {
|
|
240
249
|
border-radius: 0;
|
|
241
250
|
}
|
|
242
251
|
}
|
|
243
252
|
}
|
|
253
|
+
&.ctl--left {
|
|
254
|
+
& > .vxe-number-input--input-wrapper {
|
|
255
|
+
.vxe-number-input--input {
|
|
256
|
+
border-radius: 0 var(--vxe-ui-base-border-radius) var(--vxe-ui-base-border-radius) 0;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
&.ctl--right {
|
|
261
|
+
& > .vxe-number-input--input-wrapper {
|
|
262
|
+
.vxe-number-input--input {
|
|
263
|
+
border-radius: var(--vxe-ui-base-border-radius) 0 0 var(--vxe-ui-base-border-radius);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
244
267
|
&.ctl--default {
|
|
245
268
|
& > .vxe-number-input--minus-btn {
|
|
246
269
|
border-right: 1px solid var(--vxe-ui-input-border-color);
|
|
@@ -142,6 +142,16 @@
|
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
+
.vxe-password-input--float-wrapper {
|
|
146
|
+
position: absolute;
|
|
147
|
+
left: 1em;
|
|
148
|
+
top: -0.5em;
|
|
149
|
+
line-height: 1;
|
|
150
|
+
padding: 0 0.2em;
|
|
151
|
+
color: var(--vxe-ui-input-placeholder-color);
|
|
152
|
+
background-color: var(--vxe-ui-layout-background-color);
|
|
153
|
+
}
|
|
154
|
+
|
|
145
155
|
.vxe-password-input--number-btn {
|
|
146
156
|
height: 50%;
|
|
147
157
|
display: flex;
|
package/styles/theme/base.scss
CHANGED
|
@@ -125,12 +125,12 @@
|
|
|
125
125
|
--vxe-ui-tooltip-dark-background-color: #303133;
|
|
126
126
|
|
|
127
127
|
/*form*/
|
|
128
|
-
--vxe-ui-
|
|
129
|
-
--vxe-ui-
|
|
130
|
-
--vxe-ui-
|
|
131
|
-
--vxe-ui-
|
|
132
|
-
--vxe-ui-
|
|
133
|
-
--vxe-ui-
|
|
128
|
+
--vxe-ui-form-item-min-height-xlarge: 64px;
|
|
129
|
+
--vxe-ui-form-item-min-height-large: 60px;
|
|
130
|
+
--vxe-ui-form-item-min-height-default: 56px;
|
|
131
|
+
--vxe-ui-form-item-min-height-medium: 52px;
|
|
132
|
+
--vxe-ui-form-item-min-height-small: 48px;
|
|
133
|
+
--vxe-ui-form-item-min-height-mini: 44px;
|
|
134
134
|
--vxe-ui-form-validate-error-color: var(--vxe-ui-status-error-color);
|
|
135
135
|
--vxe-ui-form-item-padding-xlarge: 10px;
|
|
136
136
|
--vxe-ui-form-item-padding-large: 9px;
|
|
@@ -30,6 +30,7 @@ export namespace VxeInputPropTypes {
|
|
|
30
30
|
export type Readonly = boolean
|
|
31
31
|
export type Disabled = boolean
|
|
32
32
|
export type Placeholder = string
|
|
33
|
+
export type FloatContent = string
|
|
33
34
|
export type MaxLength = string | number | null
|
|
34
35
|
export type Multiple = boolean
|
|
35
36
|
export type ShowWordCount = boolean
|
|
@@ -102,6 +103,7 @@ export interface VxeInputProps {
|
|
|
102
103
|
readonly?: VxeInputPropTypes.Readonly
|
|
103
104
|
disabled?: VxeInputPropTypes.Disabled
|
|
104
105
|
placeholder?: VxeInputPropTypes.Placeholder
|
|
106
|
+
floatContent?: VxeInputPropTypes.FloatContent
|
|
105
107
|
maxLength?: VxeInputPropTypes.MaxLength
|
|
106
108
|
multiple?: VxeInputPropTypes.Multiple
|
|
107
109
|
/**
|
|
@@ -427,6 +429,7 @@ export interface VxeInputSlots {
|
|
|
427
429
|
default: (params: VxeInputSlotTypes.DefaultSlotParams) => any
|
|
428
430
|
prefix: (params: VxeInputSlotTypes.DefaultSlotParams) => any
|
|
429
431
|
suffix: (params: VxeInputSlotTypes.DefaultSlotParams) => any
|
|
432
|
+
float: (params: VxeInputSlotTypes.DefaultSlotParams) => any
|
|
430
433
|
}
|
|
431
434
|
|
|
432
435
|
export const Input: typeof VxeInput
|
|
@@ -27,6 +27,7 @@ export namespace VxeNumberInputPropTypes {
|
|
|
27
27
|
export type Readonly = boolean
|
|
28
28
|
export type Disabled = boolean
|
|
29
29
|
export type Placeholder = string
|
|
30
|
+
export type FloatContent = string
|
|
30
31
|
export type MaxLength = string | number | null
|
|
31
32
|
export type Multiple = boolean
|
|
32
33
|
export type AutoComplete = string
|
|
@@ -115,6 +116,7 @@ export interface VxeNumberInputProps {
|
|
|
115
116
|
readonly?: VxeNumberInputPropTypes.Readonly
|
|
116
117
|
disabled?: VxeNumberInputPropTypes.Disabled
|
|
117
118
|
placeholder?: VxeNumberInputPropTypes.Placeholder
|
|
119
|
+
floatContent?: VxeNumberInputPropTypes.FloatContent
|
|
118
120
|
maxLength?: VxeNumberInputPropTypes.MaxLength
|
|
119
121
|
multiple?: VxeNumberInputPropTypes.Multiple
|
|
120
122
|
autoComplete?: VxeNumberInputPropTypes.AutoComplete
|
|
@@ -312,6 +314,7 @@ export interface VxeNumberInputSlots {
|
|
|
312
314
|
default?: (params: VxeNumberInputSlotTypes.DefaultSlotParams) => any
|
|
313
315
|
prefix: (params: VxeNumberInputSlotTypes.DefaultSlotParams) => any
|
|
314
316
|
suffix: (params: VxeNumberInputSlotTypes.DefaultSlotParams) => any
|
|
317
|
+
float: (params: VxeNumberInputSlotTypes.DefaultSlotParams) => any
|
|
315
318
|
}
|
|
316
319
|
|
|
317
320
|
export const NumberInput: typeof VxeNumberInput
|
|
@@ -27,6 +27,7 @@ export namespace VxePasswordInputPropTypes {
|
|
|
27
27
|
export type Disabled = boolean
|
|
28
28
|
export type MaxLength = string | number
|
|
29
29
|
export type Placeholder = string
|
|
30
|
+
export type FloatContent = string
|
|
30
31
|
export type AutoComplete = string
|
|
31
32
|
export type PrefixIcon = string
|
|
32
33
|
export type SuffixIcon = string
|
|
@@ -52,6 +53,7 @@ export interface VxePasswordInputProps {
|
|
|
52
53
|
maxLength?: VxePasswordInputPropTypes.MaxLength
|
|
53
54
|
autoComplete?: VxePasswordInputPropTypes.AutoComplete
|
|
54
55
|
placeholder?: VxePasswordInputPropTypes.Placeholder
|
|
56
|
+
floatContent?: VxePasswordInputPropTypes.FloatContent
|
|
55
57
|
prefixIcon?: VxePasswordInputPropTypes.PrefixIcon
|
|
56
58
|
suffixIcon?: VxePasswordInputPropTypes.SuffixIcon
|
|
57
59
|
controls?: VxePasswordInputPropTypes.Controls
|
|
@@ -127,6 +129,7 @@ export interface VxePasswordInputSlots {
|
|
|
127
129
|
default?: (params: VxePasswordInputSlotTypes.DefaultSlotParams) => any
|
|
128
130
|
prefix: (params: VxePasswordInputSlotTypes.DefaultSlotParams) => any
|
|
129
131
|
suffix: (params: VxePasswordInputSlotTypes.DefaultSlotParams) => any
|
|
132
|
+
float: (params: VxePasswordInputSlotTypes.DefaultSlotParams) => any
|
|
130
133
|
}
|
|
131
134
|
|
|
132
135
|
export const PasswordInput: typeof VxePasswordInput
|
|
@@ -128,6 +128,10 @@ export interface TableFilterPrivateMethods<D = any> {
|
|
|
128
128
|
* @private
|
|
129
129
|
*/
|
|
130
130
|
handleFilterResetFilter (evnt: Event | null, column: VxeTableDefines.ColumnInfo | null): void
|
|
131
|
+
/**
|
|
132
|
+
* @private
|
|
133
|
+
*/
|
|
134
|
+
handleFilterStyle(): Promise<any>
|
|
131
135
|
}
|
|
132
136
|
|
|
133
137
|
declare module '../grid' {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { VxeTableDefines } from '../table'
|
|
2
|
+
|
|
1
3
|
/* eslint-disable @typescript-eslint/no-unused-vars,no-use-before-define */
|
|
2
4
|
|
|
3
5
|
export interface TableMenuMethods<D = any> {
|
|
@@ -8,12 +10,30 @@ export interface TableMenuMethods<D = any> {
|
|
|
8
10
|
}
|
|
9
11
|
|
|
10
12
|
export interface TableMenuPrivateMethods<D = any> {
|
|
13
|
+
/**
|
|
14
|
+
* @private
|
|
15
|
+
*/
|
|
11
16
|
moveCtxMenu(evnt: KeyboardEvent, ctxMenuStore: any, property: 'selectChild' | 'selected', hasOper: boolean, operRest: any, menuList: any[]): void
|
|
17
|
+
/**
|
|
18
|
+
* @private
|
|
19
|
+
*/
|
|
12
20
|
handleOpenMenuEvent(evnt: Event, type: 'header' | 'body' | 'footer', params: any): void
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
21
|
+
/**
|
|
22
|
+
* @private
|
|
23
|
+
*/
|
|
24
|
+
handleGlobalContextmenuEvent(evnt: Event): void
|
|
25
|
+
/**
|
|
26
|
+
* @private
|
|
27
|
+
*/
|
|
28
|
+
ctxMenuMouseoverEvent(evnt: Event, item: VxeTableDefines.MenuFirstOption | VxeTableDefines.MenuChildOption, child?: any): void
|
|
29
|
+
/**
|
|
30
|
+
* @private
|
|
31
|
+
*/
|
|
32
|
+
ctxMenuMouseoutEvent(evnt: Event, item: VxeTableDefines.MenuFirstOption | VxeTableDefines.MenuChildOption): void
|
|
33
|
+
/**
|
|
34
|
+
* @private
|
|
35
|
+
*/
|
|
36
|
+
ctxMenuLinkEvent(evnt: Event, menu: VxeTableDefines.MenuFirstOption | VxeTableDefines.MenuChildOption): void
|
|
17
37
|
}
|
|
18
38
|
|
|
19
39
|
declare module '../grid' {
|
|
@@ -376,6 +376,10 @@ export namespace VxeTablePropTypes {
|
|
|
376
376
|
* 当鼠标点击行时,是否要高亮当前行
|
|
377
377
|
*/
|
|
378
378
|
isCurrent?: boolean
|
|
379
|
+
/**
|
|
380
|
+
* 当鼠标点击的行存在合并时,是否合并高亮显示
|
|
381
|
+
*/
|
|
382
|
+
// isMergeCurrent?: boolean
|
|
379
383
|
/**
|
|
380
384
|
* 已废弃,请使用 current-row-config.beforeSelectMethod
|
|
381
385
|
* @deprecated
|
|
@@ -387,6 +391,10 @@ export namespace VxeTablePropTypes {
|
|
|
387
391
|
* 当鼠标移到行时,是否要高亮当前行
|
|
388
392
|
*/
|
|
389
393
|
isHover?: boolean
|
|
394
|
+
/**
|
|
395
|
+
* 当鼠标移到行存在合并时,是否合并高亮显示
|
|
396
|
+
*/
|
|
397
|
+
// isMergeHover?: boolean
|
|
390
398
|
/**
|
|
391
399
|
* 每一行开启调整行高度
|
|
392
400
|
*/
|
|
@@ -3168,6 +3176,13 @@ export namespace VxeTablePropTypes {
|
|
|
3168
3176
|
* 排除列
|
|
3169
3177
|
*/
|
|
3170
3178
|
excludeFields?: string[]
|
|
3179
|
+
/**
|
|
3180
|
+
* 是否允许列选中的方法,该方法的返回值用来决定这一列的 checkbox 是否可以选中
|
|
3181
|
+
*/
|
|
3182
|
+
checkMethod?(params: {
|
|
3183
|
+
$table: VxeTableConstructor<D>
|
|
3184
|
+
column: VxeTableDefines.ColumnInfo<D>
|
|
3185
|
+
}): boolean
|
|
3171
3186
|
/**
|
|
3172
3187
|
* 列过滤方法
|
|
3173
3188
|
*/
|
|
@@ -6216,6 +6231,7 @@ export namespace VxeTableDefines {
|
|
|
6216
6231
|
}
|
|
6217
6232
|
|
|
6218
6233
|
export interface FilterStoreObj {
|
|
6234
|
+
targetEl: HTMLDivElement | null
|
|
6219
6235
|
isAllSelected: boolean
|
|
6220
6236
|
isIndeterminate: boolean
|
|
6221
6237
|
style: any
|
|
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
|