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
package/dist/all.esm.js CHANGED
@@ -81,7 +81,7 @@ function checkDynamic() {
81
81
  }
82
82
 
83
83
  const { log } = VxeUI;
84
- const uiVersion = `ui v${"4.17.21"}`;
84
+ const uiVersion = `ui v${"4.17.23"}`;
85
85
  function createComponentLog(name) {
86
86
  const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
87
87
  const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
@@ -95,7 +95,7 @@ function createComponentLog(name) {
95
95
  const warnLog$i = log.create('warn', uiVersion);
96
96
  log.create('error', uiVersion);
97
97
 
98
- const version = "4.17.21";
98
+ const version = "4.17.23";
99
99
  VxeUI.uiVersion = version;
100
100
  VxeUI.dynamicApp = dynamicApp;
101
101
  function config(options) {
@@ -9078,6 +9078,10 @@ var VxeInputComponent = defineVxeComponent({
9078
9078
  type: String,
9079
9079
  default: null
9080
9080
  },
9081
+ floatContent: {
9082
+ type: String,
9083
+ default: () => getConfig$3().input.floatContent
9084
+ },
9081
9085
  maxLength: {
9082
9086
  type: [String, Number],
9083
9087
  default: () => getConfig$3().input.maxLength
@@ -11607,7 +11611,7 @@ var VxeInputComponent = defineVxeComponent({
11607
11611
  return createCommentVNode();
11608
11612
  };
11609
11613
  const renderVN = () => {
11610
- const { className, inputClassName, controls, type, title, align, showWordCount, countMethod, name, autoComplete, autocomplete } = props;
11614
+ const { className, inputClassName, controls, type, title, floatContent, align, showWordCount, countMethod, name, autoComplete, autocomplete } = props;
11611
11615
  const { inputValue, visiblePanel, isActivated } = reactData;
11612
11616
  const vSize = computeSize.value;
11613
11617
  const isDisabled = computeIsDisabled.value;
@@ -11628,6 +11632,7 @@ var VxeInputComponent = defineVxeComponent({
11628
11632
  const isWordCount = showWordCount && ['text', 'search'].includes(type);
11629
11633
  const prefix = renderPrefixIcon();
11630
11634
  const suffix = renderSuffixIcon();
11635
+ const floatSlot = slots.float;
11631
11636
  return h('div', {
11632
11637
  ref: refElem,
11633
11638
  class: ['vxe-input', `type--${type}`, className, {
@@ -11670,6 +11675,11 @@ var VxeInputComponent = defineVxeComponent({
11670
11675
  })
11671
11676
  ]),
11672
11677
  suffix || createCommentVNode(),
11678
+ floatContent || floatSlot
11679
+ ? h('span', {
11680
+ class: 'vxe-input--float-wrapper'
11681
+ }, floatSlot ? floatSlot({}) : getText(floatContent))
11682
+ : renderEmptyElement($xeInput),
11673
11683
  // 下拉面板
11674
11684
  renderPanel(),
11675
11685
  // 字数统计
@@ -15183,6 +15193,10 @@ var VxeNumberInputComponent = defineVxeComponent({
15183
15193
  default: null
15184
15194
  },
15185
15195
  placeholder: String,
15196
+ floatContent: {
15197
+ type: String,
15198
+ default: () => getConfig$3().numberInput.floatContent
15199
+ },
15186
15200
  maxLength: {
15187
15201
  type: [String, Number],
15188
15202
  default: () => getConfig$3().numberInput.maxLength
@@ -16119,6 +16133,16 @@ var VxeNumberInputComponent = defineVxeComponent({
16119
16133
  renderMinusBtn()
16120
16134
  ]);
16121
16135
  };
16136
+ const renderFloat = () => {
16137
+ const { floatContent } = props;
16138
+ const floatSlot = slots.float;
16139
+ if (floatContent || floatSlot) {
16140
+ return h('span', {
16141
+ class: 'vxe-number-input--float-wrapper'
16142
+ }, floatSlot ? floatSlot({}) : getText(floatContent));
16143
+ }
16144
+ return renderEmptyElement($xeNumberInput);
16145
+ };
16122
16146
  const renderVN = () => {
16123
16147
  const { className, controls, type, align, prefixIcon, suffixIcon } = props;
16124
16148
  const { inputValue, isActivated } = reactData;
@@ -16141,7 +16165,7 @@ var VxeNumberInputComponent = defineVxeComponent({
16141
16165
  const isControls = isEnableConf(controlOpts) && (controls === false ? controls : showButton);
16142
16166
  return h('div', {
16143
16167
  ref: refElem,
16144
- class: ['vxe-number-input', `type--${type}`, `ctl--${layout === 'right' || layout === 'left' ? layout : 'default'}`, className, {
16168
+ class: ['vxe-number-input', `type--${type}`, isControls ? (`ctl--${layout === 'right' || layout === 'left' ? layout : 'default'}`) : '', className, {
16145
16169
  [`size--${vSize}`]: vSize,
16146
16170
  [`is--${align}`]: align,
16147
16171
  'is--controls': isControls && !inputReadonly,
@@ -16156,20 +16180,24 @@ var VxeNumberInputComponent = defineVxeComponent({
16156
16180
  ? (layout === 'right'
16157
16181
  ? [
16158
16182
  renderInput(),
16159
- renderSideControl()
16183
+ renderSideControl(),
16184
+ renderFloat()
16160
16185
  ]
16161
16186
  : (layout === 'left'
16162
16187
  ? [
16163
16188
  renderSideControl(),
16164
- renderInput()
16189
+ renderInput(),
16190
+ renderFloat()
16165
16191
  ]
16166
16192
  : [
16167
16193
  renderMinusBtn(),
16168
16194
  renderInput(),
16169
- renderPlusBtn()
16195
+ renderPlusBtn(),
16196
+ renderFloat()
16170
16197
  ]))
16171
16198
  : [
16172
- renderInput()
16199
+ renderInput(),
16200
+ renderFloat()
16173
16201
  ]);
16174
16202
  };
16175
16203
  $xeNumberInput.renderVN = renderVN;
@@ -33886,6 +33914,10 @@ var VxePasswordInputComponent = defineVxeComponent({
33886
33914
  disabled: Boolean,
33887
33915
  maxLength: [String, Number],
33888
33916
  placeholder: String,
33917
+ floatContent: {
33918
+ type: String,
33919
+ default: () => getConfig$3().passwordInput.floatContent
33920
+ },
33889
33921
  autoComplete: {
33890
33922
  type: String,
33891
33923
  default: 'off'
@@ -34196,7 +34228,7 @@ var VxePasswordInputComponent = defineVxeComponent({
34196
34228
  : null;
34197
34229
  };
34198
34230
  const renderVN = () => {
34199
- const { className, inputClassName, name, readonly, autocomplete, autoComplete, maxLength } = props;
34231
+ const { className, inputClassName, name, readonly, floatContent, autocomplete, autoComplete, maxLength } = props;
34200
34232
  const { inputValue, isActivated } = reactData;
34201
34233
  const isDisabled = computeIsDisabled.value;
34202
34234
  const formReadonly = computeFormReadonly.value;
@@ -34213,6 +34245,7 @@ var VxePasswordInputComponent = defineVxeComponent({
34213
34245
  const inputReadonly = computeInputReadonly.value;
34214
34246
  const prefix = renderPrefixIcon();
34215
34247
  const suffix = renderSuffixIcon();
34248
+ const floatSlot = slots.float;
34216
34249
  return h('div', {
34217
34250
  ref: refElem,
34218
34251
  class: ['vxe-password-input', className, {
@@ -34247,7 +34280,12 @@ var VxePasswordInputComponent = defineVxeComponent({
34247
34280
  onBlur: blurEvent
34248
34281
  })
34249
34282
  ]),
34250
- suffix || renderEmptyElement($xePasswordInput)
34283
+ suffix || renderEmptyElement($xePasswordInput),
34284
+ floatContent || floatSlot
34285
+ ? h('span', {
34286
+ class: 'vxe-password-input--float-wrapper'
34287
+ }, floatSlot ? floatSlot({}) : getText(floatContent))
34288
+ : renderEmptyElement($xePasswordInput)
34251
34289
  ]);
34252
34290
  };
34253
34291
  watch(() => props.modelValue, (val) => {