vxe-pc-ui 4.0.36 → 4.0.38

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 (94) hide show
  1. package/es/date-picker/src/date-picker.js +35 -40
  2. package/es/form/render/index.js +3 -0
  3. package/es/icon/style.css +1 -544
  4. package/es/icon/style.min.css +1 -1
  5. package/es/input/src/input.js +4 -4
  6. package/es/language/en-US.js +5 -2
  7. package/es/language/es-ES.js +5 -2
  8. package/es/language/ja-JP.js +5 -2
  9. package/es/language/pt-BR.js +5 -2
  10. package/es/language/zh-CN.js +5 -2
  11. package/es/language/zh-TC.js +5 -2
  12. package/es/number-input/src/number-input.js +2 -2
  13. package/es/password-input/src/password-input.js +1 -1
  14. package/es/style.css +1 -1
  15. package/es/style.min.css +1 -1
  16. package/es/ui/index.js +9 -6
  17. package/es/ui/src/log.js +1 -1
  18. package/es/vxe-icon/style.css +0 -543
  19. package/es/vxe-icon/style.min.css +1 -1
  20. package/lib/date-picker/src/date-picker.js +9 -12
  21. package/lib/date-picker/src/date-picker.min.js +1 -1
  22. package/lib/form/render/index.js +3 -0
  23. package/lib/form/render/index.min.js +1 -1
  24. package/lib/icon/style/style.css +1 -544
  25. package/lib/icon/style/style.min.css +1 -544
  26. package/lib/index.umd.js +34 -28
  27. package/lib/index.umd.min.js +1 -1
  28. package/lib/input/src/input.js +4 -4
  29. package/lib/input/src/input.min.js +1 -1
  30. package/lib/language/en-US.js +5 -2
  31. package/lib/language/en-US.min.js +1 -1
  32. package/lib/language/en-US.umd.js +5 -2
  33. package/lib/language/es-ES.js +5 -2
  34. package/lib/language/es-ES.min.js +1 -1
  35. package/lib/language/es-ES.umd.js +5 -2
  36. package/lib/language/ja-JP.js +5 -2
  37. package/lib/language/ja-JP.min.js +1 -1
  38. package/lib/language/ja-JP.umd.js +5 -2
  39. package/lib/language/pt-BR.js +5 -2
  40. package/lib/language/pt-BR.min.js +1 -1
  41. package/lib/language/pt-BR.umd.js +5 -2
  42. package/lib/language/zh-CN.js +5 -2
  43. package/lib/language/zh-CN.min.js +1 -1
  44. package/lib/language/zh-CN.umd.js +5 -2
  45. package/lib/language/zh-HK.min.js +1 -1
  46. package/lib/language/zh-HK.umd.js +5 -2
  47. package/lib/language/zh-MO.min.js +1 -1
  48. package/lib/language/zh-MO.umd.js +5 -2
  49. package/lib/language/zh-TC.js +5 -2
  50. package/lib/language/zh-TC.min.js +1 -1
  51. package/lib/language/zh-TC.umd.js +5 -2
  52. package/lib/language/zh-TW.min.js +1 -1
  53. package/lib/language/zh-TW.umd.js +5 -2
  54. package/lib/number-input/src/number-input.js +2 -2
  55. package/lib/number-input/src/number-input.min.js +1 -1
  56. package/lib/password-input/src/password-input.js +1 -1
  57. package/lib/password-input/src/password-input.min.js +1 -1
  58. package/lib/style.css +1 -1
  59. package/lib/style.min.css +1 -1
  60. package/lib/ui/index.js +9 -6
  61. package/lib/ui/index.min.js +1 -1
  62. package/lib/ui/src/log.js +1 -1
  63. package/lib/ui/src/log.min.js +1 -1
  64. package/lib/vxe-icon/style/style.css +0 -543
  65. package/lib/vxe-icon/style/style.min.css +1 -1
  66. package/package.json +2 -2
  67. package/packages/date-picker/src/date-picker.ts +38 -44
  68. package/packages/form/render/index.ts +3 -0
  69. package/packages/input/src/input.ts +4 -4
  70. package/packages/language/en-US.ts +5 -2
  71. package/packages/language/es-ES.ts +5 -2
  72. package/packages/language/ja-JP.ts +5 -2
  73. package/packages/language/pt-BR.ts +5 -2
  74. package/packages/language/zh-CN.ts +5 -2
  75. package/packages/language/zh-TC.ts +5 -2
  76. package/packages/number-input/src/number-input.ts +2 -2
  77. package/packages/password-input/src/password-input.ts +1 -1
  78. package/packages/ui/index.ts +11 -5
  79. package/styles/components/icon.scss +0 -2
  80. package/types/components/table.d.ts +20 -10
  81. package/types/ui/global-icon.d.ts +11 -5
  82. package/styles/components/old-icon.scss +0 -717
  83. /package/es/icon/style/{iconfont.1719414662943.ttf → iconfont.1719495777143.ttf} +0 -0
  84. /package/es/icon/style/{iconfont.1719414662943.woff → iconfont.1719495777143.woff} +0 -0
  85. /package/es/icon/style/{iconfont.1719414662943.woff2 → iconfont.1719495777143.woff2} +0 -0
  86. /package/es/{iconfont.1719414662943.ttf → iconfont.1719495777143.ttf} +0 -0
  87. /package/es/{iconfont.1719414662943.woff → iconfont.1719495777143.woff} +0 -0
  88. /package/es/{iconfont.1719414662943.woff2 → iconfont.1719495777143.woff2} +0 -0
  89. /package/lib/icon/style/{iconfont.1719414662943.ttf → iconfont.1719495777143.ttf} +0 -0
  90. /package/lib/icon/style/{iconfont.1719414662943.woff → iconfont.1719495777143.woff} +0 -0
  91. /package/lib/icon/style/{iconfont.1719414662943.woff2 → iconfont.1719495777143.woff2} +0 -0
  92. /package/lib/{iconfont.1719414662943.ttf → iconfont.1719495777143.ttf} +0 -0
  93. /package/lib/{iconfont.1719414662943.woff → iconfont.1719495777143.woff} +0 -0
  94. /package/lib/{iconfont.1719414662943.woff2 → iconfont.1719495777143.woff2} +0 -0
@@ -53,7 +53,7 @@ export default defineComponent({
53
53
  modelValue: [String, Number, Date],
54
54
  immediate: { type: Boolean, default: true },
55
55
  name: String,
56
- type: { type: String, default: 'text' },
56
+ type: { type: String, default: 'date' },
57
57
  clearable: { type: Boolean, default: () => getConfig().datePicker.clearable },
58
58
  readonly: Boolean,
59
59
  disabled: Boolean,
@@ -1819,16 +1819,6 @@ export default defineComponent({
1819
1819
  }
1820
1820
  return createCommentVNode();
1821
1821
  };
1822
- const renderDatePickerIcon = () => {
1823
- return h('div', {
1824
- class: 'vxe-date-picker--control-icon',
1825
- onClick: datePickerOpenEvent
1826
- }, [
1827
- h('i', {
1828
- class: ['vxe-date-picker--date-picker-icon', getIcon().INPUT_DATE]
1829
- })
1830
- ]);
1831
- };
1832
1822
  const renderPrefixIcon = () => {
1833
1823
  const { prefixIcon } = props;
1834
1824
  const prefixSlot = slots.prefix;
@@ -1854,40 +1844,45 @@ export default defineComponent({
1854
1844
  const { inputValue } = reactData;
1855
1845
  const suffixSlot = slots.suffix;
1856
1846
  const isClearable = computeIsClearable.value;
1857
- return isClearable || suffixSlot || suffixIcon
1858
- ? h('div', {
1859
- class: ['vxe-date-picker--suffix', {
1860
- 'is--clear': isClearable && !disabled && !(inputValue === '' || XEUtils.eqNull(inputValue))
1861
- }]
1862
- }, [
1863
- isClearable
1864
- ? h('div', {
1865
- class: 'vxe-date-picker--clear-icon',
1866
- onClick: clearValueEvent
1867
- }, [
1847
+ return h('div', {
1848
+ class: ['vxe-date-picker--suffix', {
1849
+ 'is--clear': isClearable && !disabled && !(inputValue === '' || XEUtils.eqNull(inputValue))
1850
+ }]
1851
+ }, [
1852
+ isClearable
1853
+ ? h('div', {
1854
+ class: 'vxe-date-picker--clear-icon',
1855
+ onClick: clearValueEvent
1856
+ }, [
1857
+ h('i', {
1858
+ class: getIcon().INPUT_CLEAR
1859
+ })
1860
+ ])
1861
+ : createCommentVNode(),
1862
+ renderExtraSuffixIcon(),
1863
+ suffixSlot || suffixIcon
1864
+ ? h('div', {
1865
+ class: 'vxe-date-picker--suffix-icon',
1866
+ onClick: clickSuffixEvent
1867
+ }, suffixSlot
1868
+ ? getSlotVNs(suffixSlot({}))
1869
+ : [
1868
1870
  h('i', {
1869
- class: getIcon().INPUT_CLEAR
1871
+ class: suffixIcon
1870
1872
  })
1871
1873
  ])
1872
- : createCommentVNode(),
1873
- renderExtraSuffixIcon(),
1874
- suffixSlot || suffixIcon
1875
- ? h('div', {
1876
- class: 'vxe-date-picker--suffix-icon',
1877
- onClick: clickSuffixEvent
1878
- }, suffixSlot
1879
- ? getSlotVNs(suffixSlot({}))
1880
- : [
1881
- h('i', {
1882
- class: suffixIcon
1883
- })
1884
- ])
1885
- : createCommentVNode()
1886
- ])
1887
- : null;
1874
+ : createCommentVNode()
1875
+ ]);
1888
1876
  };
1889
1877
  const renderExtraSuffixIcon = () => {
1890
- return renderDatePickerIcon();
1878
+ return h('div', {
1879
+ class: 'vxe-date-picker--control-icon',
1880
+ onClick: datePickerOpenEvent
1881
+ }, [
1882
+ h('i', {
1883
+ class: ['vxe-date-picker--date-picker-icon', getIcon().DATE_PICKER_DATE]
1884
+ })
1885
+ ]);
1891
1886
  };
1892
1887
  datePickerMethods = {
1893
1888
  dispatchEvent(type, params, evnt) {
@@ -331,6 +331,9 @@ renderer.mixin({
331
331
  VxeSwitch: {
332
332
  renderItemContent: defaultItemRender
333
333
  },
334
+ VxeUpload: {
335
+ renderItemContent: defaultItemRender
336
+ },
334
337
  // 以下已废弃
335
338
  $input: {
336
339
  renderItemContent: oldItemRender