vxe-pc-ui 4.17.21 → 4.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.
Files changed (77) hide show
  1. package/dist/all.esm.js +48 -10
  2. package/dist/style.css +1 -1
  3. package/dist/style.min.css +1 -1
  4. package/es/icon/style.css +1 -1
  5. package/es/input/src/input.js +12 -2
  6. package/es/input/style.css +10 -1
  7. package/es/input/style.min.css +1 -1
  8. package/es/number-input/src/number-input.js +24 -6
  9. package/es/number-input/style.css +17 -2
  10. package/es/number-input/style.min.css +1 -1
  11. package/es/password-input/src/password-input.js +12 -2
  12. package/es/password-input/style.css +10 -0
  13. package/es/password-input/style.min.css +1 -1
  14. package/es/style.css +1 -1
  15. package/es/style.min.css +1 -1
  16. package/es/ui/index.js +1 -1
  17. package/es/ui/src/log.js +1 -1
  18. package/es/vxe-input/style.css +10 -1
  19. package/es/vxe-input/style.min.css +1 -1
  20. package/es/vxe-number-input/style.css +17 -2
  21. package/es/vxe-number-input/style.min.css +1 -1
  22. package/es/vxe-password-input/style.css +10 -0
  23. package/es/vxe-password-input/style.min.css +1 -1
  24. package/lib/icon/style/style.css +1 -1
  25. package/lib/icon/style/style.min.css +1 -1
  26. package/lib/index.umd.js +40 -8
  27. package/lib/index.umd.min.js +1 -1
  28. package/lib/input/src/input.js +9 -1
  29. package/lib/input/src/input.min.js +1 -1
  30. package/lib/input/style/style.css +10 -1
  31. package/lib/input/style/style.min.css +1 -1
  32. package/lib/number-input/src/number-input.js +18 -2
  33. package/lib/number-input/src/number-input.min.js +1 -1
  34. package/lib/number-input/style/style.css +17 -2
  35. package/lib/number-input/style/style.min.css +1 -1
  36. package/lib/password-input/src/password-input.js +9 -1
  37. package/lib/password-input/src/password-input.min.js +1 -1
  38. package/lib/password-input/style/style.css +10 -0
  39. package/lib/password-input/style/style.min.css +1 -1
  40. package/lib/style.css +1 -1
  41. package/lib/style.min.css +1 -1
  42. package/lib/ui/index.js +1 -1
  43. package/lib/ui/index.min.js +1 -1
  44. package/lib/ui/src/log.js +1 -1
  45. package/lib/ui/src/log.min.js +1 -1
  46. package/lib/vxe-input/style/style.css +10 -1
  47. package/lib/vxe-input/style/style.min.css +1 -1
  48. package/lib/vxe-number-input/style/style.css +17 -2
  49. package/lib/vxe-number-input/style/style.min.css +1 -1
  50. package/lib/vxe-password-input/style/style.css +10 -0
  51. package/lib/vxe-password-input/style/style.min.css +1 -1
  52. package/package.json +1 -1
  53. package/packages/input/src/input.ts +12 -2
  54. package/packages/number-input/src/number-input.ts +25 -6
  55. package/packages/password-input/src/password-input.ts +12 -2
  56. package/styles/components/input.scss +10 -1
  57. package/styles/components/number-input.scss +25 -2
  58. package/styles/components/password-input.scss +10 -0
  59. package/styles/theme/base.scss +6 -6
  60. package/types/components/input.d.ts +3 -0
  61. package/types/components/number-input.d.ts +3 -0
  62. package/types/components/password-input.d.ts +3 -0
  63. package/types/components/table-module/filter.d.ts +4 -0
  64. package/types/components/table-module/menu.d.ts +18 -0
  65. package/types/components/table.d.ts +16 -0
  66. /package/es/icon/{iconfont.1787994747472.ttf → iconfont.1788176078548.ttf} +0 -0
  67. /package/es/icon/{iconfont.1787994747472.woff → iconfont.1788176078548.woff} +0 -0
  68. /package/es/icon/{iconfont.1787994747472.woff2 → iconfont.1788176078548.woff2} +0 -0
  69. /package/es/{iconfont.1787994747472.ttf → iconfont.1788176078548.ttf} +0 -0
  70. /package/es/{iconfont.1787994747472.woff → iconfont.1788176078548.woff} +0 -0
  71. /package/es/{iconfont.1787994747472.woff2 → iconfont.1788176078548.woff2} +0 -0
  72. /package/lib/icon/style/{iconfont.1787994747472.ttf → iconfont.1788176078548.ttf} +0 -0
  73. /package/lib/icon/style/{iconfont.1787994747472.woff → iconfont.1788176078548.woff} +0 -0
  74. /package/lib/icon/style/{iconfont.1787994747472.woff2 → iconfont.1788176078548.woff2} +0 -0
  75. /package/lib/{iconfont.1787994747472.ttf → iconfont.1788176078548.ttf} +0 -0
  76. /package/lib/{iconfont.1787994747472.woff → iconfont.1788176078548.woff} +0 -0
  77. /package/lib/{iconfont.1787994747472.woff2 → iconfont.1788176078548.woff2} +0 -0
@@ -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
- &.is--controls {
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;
@@ -125,12 +125,12 @@
125
125
  --vxe-ui-tooltip-dark-background-color: #303133;
126
126
 
127
127
  /*form*/
128
- --vxe-ui-space-margin-xlarge: 64px;
129
- --vxe-ui-space-margin-large: 60px;
130
- --vxe-ui-space-margin-default: 56px;
131
- --vxe-ui-space-margin-medium: 52px;
132
- --vxe-ui-space-margin-small: 48px;
133
- --vxe-ui-space-margin-mini: 44px;
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;
@@ -38,6 +38,7 @@ export namespace VxeInputPropTypes {
38
38
  export type Readonly = boolean
39
39
  export type Disabled = boolean
40
40
  export type Placeholder = string
41
+ export type FloatContent = string
41
42
  export type MaxLength = string | number | null
42
43
  export type Multiple = boolean
43
44
  export type ShowWordCount = boolean
@@ -110,6 +111,7 @@ export interface VxeInputProps {
110
111
  readonly?: VxeInputPropTypes.Readonly
111
112
  disabled?: VxeInputPropTypes.Disabled
112
113
  placeholder?: VxeInputPropTypes.Placeholder
114
+ floatContent?: VxeInputPropTypes.FloatContent
113
115
  maxLength?: VxeInputPropTypes.MaxLength
114
116
  multiple?: VxeInputPropTypes.Multiple
115
117
  /**
@@ -437,6 +439,7 @@ export interface VxeInputSlots {
437
439
  default: (params: VxeInputSlotTypes.DefaultSlotParams) => any
438
440
  prefix: (params: VxeInputSlotTypes.DefaultSlotParams) => any
439
441
  suffix: (params: VxeInputSlotTypes.DefaultSlotParams) => any
442
+ float: (params: VxeInputSlotTypes.DefaultSlotParams) => any
440
443
  }
441
444
 
442
445
  export const Input: typeof VxeInput
@@ -34,6 +34,7 @@ export namespace VxeNumberInputPropTypes {
34
34
  export type Readonly = boolean
35
35
  export type Disabled = boolean
36
36
  export type Placeholder = string
37
+ export type FloatContent = string
37
38
  export type MaxLength = string | number | null
38
39
  export type Multiple = boolean
39
40
  export type AutoComplete = string
@@ -122,6 +123,7 @@ export interface VxeNumberInputProps {
122
123
  readonly?: VxeNumberInputPropTypes.Readonly
123
124
  disabled?: VxeNumberInputPropTypes.Disabled
124
125
  placeholder?: VxeNumberInputPropTypes.Placeholder
126
+ floatContent?: VxeNumberInputPropTypes.FloatContent
125
127
  maxLength?: VxeNumberInputPropTypes.MaxLength
126
128
  multiple?: VxeNumberInputPropTypes.Multiple
127
129
  autoComplete?: VxeNumberInputPropTypes.AutoComplete
@@ -321,6 +323,7 @@ export interface VxeNumberInputSlots {
321
323
  default?: (params: VxeNumberInputSlotTypes.DefaultSlotParams) => any
322
324
  prefix: (params: VxeNumberInputSlotTypes.DefaultSlotParams) => any
323
325
  suffix: (params: VxeNumberInputSlotTypes.DefaultSlotParams) => any
326
+ float: (params: VxeNumberInputSlotTypes.DefaultSlotParams) => any
324
327
  }
325
328
 
326
329
  export const NumberInput: typeof VxeNumberInput
@@ -34,6 +34,7 @@ export namespace VxePasswordInputPropTypes {
34
34
  export type Disabled = boolean
35
35
  export type MaxLength = string | number
36
36
  export type Placeholder = string
37
+ export type FloatContent = string
37
38
  export type AutoComplete = string
38
39
  export type PrefixIcon = string
39
40
  export type SuffixIcon = string
@@ -59,6 +60,7 @@ export interface VxePasswordInputProps {
59
60
  maxLength?: VxePasswordInputPropTypes.MaxLength
60
61
  autoComplete?: VxePasswordInputPropTypes.AutoComplete
61
62
  placeholder?: VxePasswordInputPropTypes.Placeholder
63
+ floatContent?: VxePasswordInputPropTypes.FloatContent
62
64
  prefixIcon?: VxePasswordInputPropTypes.PrefixIcon
63
65
  suffixIcon?: VxePasswordInputPropTypes.SuffixIcon
64
66
  controls?: VxePasswordInputPropTypes.Controls
@@ -140,6 +142,7 @@ export interface VxePasswordInputSlots {
140
142
  default?: (params: VxePasswordInputSlotTypes.DefaultSlotParams) => any
141
143
  prefix: (params: VxePasswordInputSlotTypes.DefaultSlotParams) => any
142
144
  suffix: (params: VxePasswordInputSlotTypes.DefaultSlotParams) => any
145
+ float: (params: VxePasswordInputSlotTypes.DefaultSlotParams) => any
143
146
  }
144
147
 
145
148
  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' {
@@ -10,11 +10,29 @@ export interface TableMenuMethods<D = any> {
10
10
  }
11
11
 
12
12
  export interface TableMenuPrivateMethods<D = any> {
13
+ /**
14
+ * @private
15
+ */
13
16
  moveCtxMenu(evnt: KeyboardEvent, ctxMenuStore: any, property: 'selectChild' | 'selected', hasOper: boolean, operRest: any, menuList: any[]): void
17
+ /**
18
+ * @private
19
+ */
14
20
  handleOpenMenuEvent(evnt: Event, type: 'header' | 'body' | 'footer', params: any): void
21
+ /**
22
+ * @private
23
+ */
15
24
  handleGlobalContextmenuEvent(evnt: Event): void
25
+ /**
26
+ * @private
27
+ */
16
28
  ctxMenuMouseoverEvent(evnt: Event, item: VxeTableDefines.MenuFirstOption | VxeTableDefines.MenuChildOption, child?: any): void
29
+ /**
30
+ * @private
31
+ */
17
32
  ctxMenuMouseoutEvent(evnt: Event, item: VxeTableDefines.MenuFirstOption | VxeTableDefines.MenuChildOption): void
33
+ /**
34
+ * @private
35
+ */
18
36
  ctxMenuLinkEvent(evnt: Event, menu: VxeTableDefines.MenuFirstOption | VxeTableDefines.MenuChildOption): void
19
37
  }
20
38
 
@@ -402,6 +402,10 @@ export namespace VxeTablePropTypes {
402
402
  * 当鼠标点击行时,是否要高亮当前行
403
403
  */
404
404
  isCurrent?: boolean
405
+ /**
406
+ * 当鼠标点击的行存在合并时,是否合并高亮显示
407
+ */
408
+ // isMergeCurrent?: boolean
405
409
  /**
406
410
  * 已废弃,请使用 current-row-config.beforeSelectMethod
407
411
  * @deprecated
@@ -413,6 +417,10 @@ export namespace VxeTablePropTypes {
413
417
  * 当鼠标移到行时,是否要高亮当前行
414
418
  */
415
419
  isHover?: boolean
420
+ /**
421
+ * 当鼠标移到行存在合并时,是否合并高亮显示
422
+ */
423
+ // isMergeHover?: boolean
416
424
  /**
417
425
  * 每一行开启调整行高度
418
426
  */
@@ -3200,6 +3208,13 @@ export namespace VxeTablePropTypes {
3200
3208
  * 排除列
3201
3209
  */
3202
3210
  excludeFields?: string[]
3211
+ /**
3212
+ * 是否允许列选中的方法,该方法的返回值用来决定这一列的 checkbox 是否可以选中
3213
+ */
3214
+ checkMethod?(params: {
3215
+ $table: VxeTableConstructor<D>
3216
+ column: VxeTableDefines.ColumnInfo<D>
3217
+ }): boolean
3203
3218
  /**
3204
3219
  * 列过滤方法
3205
3220
  */
@@ -6194,6 +6209,7 @@ export namespace VxeTableDefines {
6194
6209
  }
6195
6210
 
6196
6211
  export interface FilterStoreObj {
6212
+ targetEl: HTMLDivElement | null
6197
6213
  isAllSelected: boolean
6198
6214
  isIndeterminate: boolean
6199
6215
  style: any