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.
- package/es/date-picker/src/date-picker.js +35 -40
- package/es/form/render/index.js +3 -0
- package/es/icon/style.css +1 -544
- package/es/icon/style.min.css +1 -1
- package/es/input/src/input.js +4 -4
- package/es/language/en-US.js +5 -2
- package/es/language/es-ES.js +5 -2
- package/es/language/ja-JP.js +5 -2
- package/es/language/pt-BR.js +5 -2
- package/es/language/zh-CN.js +5 -2
- package/es/language/zh-TC.js +5 -2
- package/es/number-input/src/number-input.js +2 -2
- package/es/password-input/src/password-input.js +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +9 -6
- package/es/ui/src/log.js +1 -1
- package/es/vxe-icon/style.css +0 -543
- package/es/vxe-icon/style.min.css +1 -1
- package/lib/date-picker/src/date-picker.js +9 -12
- package/lib/date-picker/src/date-picker.min.js +1 -1
- package/lib/form/render/index.js +3 -0
- package/lib/form/render/index.min.js +1 -1
- package/lib/icon/style/style.css +1 -544
- package/lib/icon/style/style.min.css +1 -544
- package/lib/index.umd.js +34 -28
- 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/language/en-US.js +5 -2
- package/lib/language/en-US.min.js +1 -1
- package/lib/language/en-US.umd.js +5 -2
- package/lib/language/es-ES.js +5 -2
- package/lib/language/es-ES.min.js +1 -1
- package/lib/language/es-ES.umd.js +5 -2
- package/lib/language/ja-JP.js +5 -2
- package/lib/language/ja-JP.min.js +1 -1
- package/lib/language/ja-JP.umd.js +5 -2
- package/lib/language/pt-BR.js +5 -2
- package/lib/language/pt-BR.min.js +1 -1
- package/lib/language/pt-BR.umd.js +5 -2
- package/lib/language/zh-CN.js +5 -2
- package/lib/language/zh-CN.min.js +1 -1
- package/lib/language/zh-CN.umd.js +5 -2
- package/lib/language/zh-HK.min.js +1 -1
- package/lib/language/zh-HK.umd.js +5 -2
- package/lib/language/zh-MO.min.js +1 -1
- package/lib/language/zh-MO.umd.js +5 -2
- package/lib/language/zh-TC.js +5 -2
- package/lib/language/zh-TC.min.js +1 -1
- package/lib/language/zh-TC.umd.js +5 -2
- package/lib/language/zh-TW.min.js +1 -1
- package/lib/language/zh-TW.umd.js +5 -2
- package/lib/number-input/src/number-input.js +2 -2
- package/lib/number-input/src/number-input.min.js +1 -1
- package/lib/password-input/src/password-input.js +1 -1
- package/lib/password-input/src/password-input.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +9 -6
- 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-icon/style/style.css +0 -543
- package/lib/vxe-icon/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/date-picker/src/date-picker.ts +38 -44
- package/packages/form/render/index.ts +3 -0
- package/packages/input/src/input.ts +4 -4
- package/packages/language/en-US.ts +5 -2
- package/packages/language/es-ES.ts +5 -2
- package/packages/language/ja-JP.ts +5 -2
- package/packages/language/pt-BR.ts +5 -2
- package/packages/language/zh-CN.ts +5 -2
- package/packages/language/zh-TC.ts +5 -2
- package/packages/number-input/src/number-input.ts +2 -2
- package/packages/password-input/src/password-input.ts +1 -1
- package/packages/ui/index.ts +11 -5
- package/styles/components/icon.scss +0 -2
- package/types/components/table.d.ts +20 -10
- package/types/ui/global-icon.d.ts +11 -5
- package/styles/components/old-icon.scss +0 -717
- /package/es/icon/style/{iconfont.1719414662943.ttf → iconfont.1719495777143.ttf} +0 -0
- /package/es/icon/style/{iconfont.1719414662943.woff → iconfont.1719495777143.woff} +0 -0
- /package/es/icon/style/{iconfont.1719414662943.woff2 → iconfont.1719495777143.woff2} +0 -0
- /package/es/{iconfont.1719414662943.ttf → iconfont.1719495777143.ttf} +0 -0
- /package/es/{iconfont.1719414662943.woff → iconfont.1719495777143.woff} +0 -0
- /package/es/{iconfont.1719414662943.woff2 → iconfont.1719495777143.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1719414662943.ttf → iconfont.1719495777143.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1719414662943.woff → iconfont.1719495777143.woff} +0 -0
- /package/lib/icon/style/{iconfont.1719414662943.woff2 → iconfont.1719495777143.woff2} +0 -0
- /package/lib/{iconfont.1719414662943.ttf → iconfont.1719495777143.ttf} +0 -0
- /package/lib/{iconfont.1719414662943.woff → iconfont.1719495777143.woff} +0 -0
- /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: '
|
|
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
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
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:
|
|
1871
|
+
class: suffixIcon
|
|
1870
1872
|
})
|
|
1871
1873
|
])
|
|
1872
|
-
|
|
1873
|
-
|
|
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
|
|
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) {
|
package/es/form/render/index.js
CHANGED