@element-plus/nightly 0.0.20230712 → 0.0.20230713
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/dist/index.css +1 -1
- package/dist/index.full.js +61 -26
- package/dist/index.full.min.js +13 -13
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +13 -13
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +61 -27
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/autocomplete/index.d.ts +12 -9
- package/es/components/autocomplete/src/autocomplete.vue.d.ts +12 -9
- package/es/components/cascader/index.d.ts +24 -18
- package/es/components/cascader/src/cascader.vue.d.ts +12 -9
- package/es/components/color-picker/index.d.ts +4 -3
- package/es/components/color-picker/src/color-picker.vue.d.ts +4 -3
- package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +4 -3
- package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +4 -3
- package/es/components/date-picker/src/panel-utils.d.ts +8 -6
- package/es/components/index.mjs +1 -1
- package/es/components/input/index.d.ts +4 -3
- package/es/components/input/src/input.vue.d.ts +4 -3
- package/es/components/input/src/input2.mjs +21 -25
- package/es/components/input/src/input2.mjs.map +1 -1
- package/es/components/input-number/index.d.ts +12 -9
- package/es/components/input-number/src/input-number.vue.d.ts +12 -9
- package/es/components/pagination/src/components/jumper.vue.d.ts +4 -3
- package/es/components/scrollbar/index.mjs +2 -2
- package/es/components/scrollbar/src/scrollbar.mjs +46 -174
- package/es/components/scrollbar/src/scrollbar.mjs.map +1 -1
- package/es/components/scrollbar/src/scrollbar2.mjs +174 -46
- package/es/components/scrollbar/src/scrollbar2.mjs.map +1 -1
- package/es/components/slider/index.d.ts +12 -9
- package/es/components/slider/src/slider.vue.d.ts +12 -9
- package/es/components/table/style/css.d.ts +0 -1
- package/es/components/table/style/css.mjs +0 -1
- package/es/components/table/style/css.mjs.map +1 -1
- package/es/components/table/style/index.d.ts +0 -1
- package/es/components/table/style/index.mjs +0 -1
- package/es/components/table/style/index.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker.vue.d.ts +4 -3
- package/es/components/transfer/index.d.ts +20 -15
- package/es/components/transfer/src/transfer-panel.vue.d.ts +4 -3
- package/es/components/transfer/src/transfer.vue.d.ts +20 -15
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/index.mjs +1 -0
- package/es/hooks/index.mjs.map +1 -1
- package/es/hooks/use-focus-controller/index.d.ts +12 -0
- package/es/hooks/use-focus-controller/index.mjs +44 -0
- package/es/hooks/use-focus-controller/index.mjs.map +1 -0
- package/es/index.mjs +2 -1
- package/es/index.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/autocomplete/index.d.ts +12 -9
- package/lib/components/autocomplete/src/autocomplete.vue.d.ts +12 -9
- package/lib/components/cascader/index.d.ts +24 -18
- package/lib/components/cascader/src/cascader.vue.d.ts +12 -9
- package/lib/components/color-picker/index.d.ts +4 -3
- package/lib/components/color-picker/src/color-picker.vue.d.ts +4 -3
- package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +4 -3
- package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +4 -3
- package/lib/components/date-picker/src/panel-utils.d.ts +8 -6
- package/lib/components/index.js +1 -1
- package/lib/components/input/index.d.ts +4 -3
- package/lib/components/input/src/input.vue.d.ts +4 -3
- package/lib/components/input/src/input2.js +29 -33
- package/lib/components/input/src/input2.js.map +1 -1
- package/lib/components/input-number/index.d.ts +12 -9
- package/lib/components/input-number/src/input-number.vue.d.ts +12 -9
- package/lib/components/pagination/src/components/jumper.vue.d.ts +4 -3
- package/lib/components/scrollbar/index.js +2 -2
- package/lib/components/scrollbar/src/scrollbar.js +47 -174
- package/lib/components/scrollbar/src/scrollbar.js.map +1 -1
- package/lib/components/scrollbar/src/scrollbar2.js +174 -47
- package/lib/components/scrollbar/src/scrollbar2.js.map +1 -1
- package/lib/components/slider/index.d.ts +12 -9
- package/lib/components/slider/src/slider.vue.d.ts +12 -9
- package/lib/components/table/style/css.d.ts +0 -1
- package/lib/components/table/style/css.js +0 -1
- package/lib/components/table/style/css.js.map +1 -1
- package/lib/components/table/style/index.d.ts +0 -1
- package/lib/components/table/style/index.js +0 -1
- package/lib/components/table/style/index.js.map +1 -1
- package/lib/components/time-picker/src/common/picker.vue.d.ts +4 -3
- package/lib/components/transfer/index.d.ts +20 -15
- package/lib/components/transfer/src/transfer-panel.vue.d.ts +4 -3
- package/lib/components/transfer/src/transfer.vue.d.ts +20 -15
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/index.js +2 -0
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/use-focus-controller/index.d.ts +12 -0
- package/lib/hooks/use-focus-controller/index.js +48 -0
- package/lib/hooks/use-focus-controller/index.js.map +1 -0
- package/lib/index.js +3 -1
- package/lib/index.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/theme-chalk/el-input.css +1 -1
- package/theme-chalk/el-table.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/input.scss +1 -0
- package/theme-chalk/src/table.scss +4 -1
- package/web-types.json +1 -1
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var core = require('@vueuse/core');
|
|
7
7
|
var lodashUnified = require('lodash-unified');
|
|
8
|
-
var index$
|
|
8
|
+
var index$4 = require('../../icon/index.js');
|
|
9
9
|
var iconsVue = require('@element-plus/icons-vue');
|
|
10
10
|
require('../../form/index.js');
|
|
11
11
|
require('../../../utils/index.js');
|
|
@@ -18,12 +18,13 @@ var index = require('../../../hooks/use-attrs/index.js');
|
|
|
18
18
|
var useFormItem = require('../../form/src/hooks/use-form-item.js');
|
|
19
19
|
var useFormCommonProps = require('../../form/src/hooks/use-form-common-props.js');
|
|
20
20
|
var index$1 = require('../../../hooks/use-namespace/index.js');
|
|
21
|
+
var index$2 = require('../../../hooks/use-focus-controller/index.js');
|
|
22
|
+
var error = require('../../../utils/error.js');
|
|
21
23
|
var icon = require('../../../utils/vue/icon.js');
|
|
22
|
-
var index$
|
|
24
|
+
var index$3 = require('../../../hooks/use-cursor/index.js');
|
|
23
25
|
var shared = require('@vue/shared');
|
|
24
26
|
var event = require('../../../constants/event.js');
|
|
25
27
|
var i18n = require('../../../utils/i18n.js');
|
|
26
|
-
var error = require('../../../utils/error.js');
|
|
27
28
|
|
|
28
29
|
const _hoisted_1 = ["role"];
|
|
29
30
|
const _hoisted_2 = ["id", "type", "disabled", "formatter", "parser", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form"];
|
|
@@ -66,7 +67,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
66
67
|
]);
|
|
67
68
|
const wrapperKls = vue.computed(() => [
|
|
68
69
|
nsInput.e("wrapper"),
|
|
69
|
-
nsInput.is("focus",
|
|
70
|
+
nsInput.is("focus", isFocused.value)
|
|
70
71
|
]);
|
|
71
72
|
const attrs = index.useAttrs({
|
|
72
73
|
excludeKeys: vue.computed(() => {
|
|
@@ -83,13 +84,20 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
83
84
|
const nsTextarea = index$1.useNamespace("textarea");
|
|
84
85
|
const input = vue.shallowRef();
|
|
85
86
|
const textarea = vue.shallowRef();
|
|
86
|
-
const focused = vue.ref(false);
|
|
87
87
|
const hovering = vue.ref(false);
|
|
88
88
|
const isComposing = vue.ref(false);
|
|
89
89
|
const passwordVisible = vue.ref(false);
|
|
90
90
|
const countStyle = vue.ref();
|
|
91
91
|
const textareaCalcStyle = vue.shallowRef(props.inputStyle);
|
|
92
92
|
const _ref = vue.computed(() => input.value || textarea.value);
|
|
93
|
+
const { wrapperRef, isFocused, handleFocus, handleBlur } = index$2.useFocusController(_ref, {
|
|
94
|
+
afterBlur() {
|
|
95
|
+
var _a;
|
|
96
|
+
if (props.validateEvent) {
|
|
97
|
+
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => error.debugWarn(err));
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
});
|
|
93
101
|
const needStatusIcon = vue.computed(() => {
|
|
94
102
|
var _a;
|
|
95
103
|
return (_a = form == null ? void 0 : form.statusIcon) != null ? _a : false;
|
|
@@ -107,13 +115,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
107
115
|
{ resize: props.resize }
|
|
108
116
|
]);
|
|
109
117
|
const nativeInputValue = vue.computed(() => lodashUnified.isNil(props.modelValue) ? "" : String(props.modelValue));
|
|
110
|
-
const showClear = vue.computed(() => props.clearable && !inputDisabled.value && !props.readonly && !!nativeInputValue.value && (
|
|
111
|
-
const showPwdVisible = vue.computed(() => props.showPassword && !inputDisabled.value && !props.readonly && !!nativeInputValue.value && (!!nativeInputValue.value ||
|
|
118
|
+
const showClear = vue.computed(() => props.clearable && !inputDisabled.value && !props.readonly && !!nativeInputValue.value && (isFocused.value || hovering.value));
|
|
119
|
+
const showPwdVisible = vue.computed(() => props.showPassword && !inputDisabled.value && !props.readonly && !!nativeInputValue.value && (!!nativeInputValue.value || isFocused.value));
|
|
112
120
|
const isWordLimitVisible = vue.computed(() => props.showWordLimit && !!attrs.value.maxlength && (props.type === "text" || props.type === "textarea") && !inputDisabled.value && !props.readonly && !props.showPassword);
|
|
113
121
|
const textLength = vue.computed(() => nativeInputValue.value.length);
|
|
114
122
|
const inputExceed = vue.computed(() => !!isWordLimitVisible.value && textLength.value > Number(attrs.value.maxlength));
|
|
115
123
|
const suffixVisible = vue.computed(() => !!slots.suffix || !!props.suffixIcon || showClear.value || props.showPassword || isWordLimitVisible.value || !!validateState.value && needStatusIcon.value);
|
|
116
|
-
const [recordCursor, setCursor] = index$
|
|
124
|
+
const [recordCursor, setCursor] = index$3.useCursor(input);
|
|
117
125
|
core.useResizeObserver(textarea, (entries) => {
|
|
118
126
|
onceInitSizeTextarea();
|
|
119
127
|
if (!isWordLimitVisible.value || props.resize !== "both")
|
|
@@ -219,18 +227,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
219
227
|
var _a;
|
|
220
228
|
return (_a = _ref.value) == null ? void 0 : _a.blur();
|
|
221
229
|
};
|
|
222
|
-
const handleFocus = (event) => {
|
|
223
|
-
focused.value = true;
|
|
224
|
-
emit("focus", event);
|
|
225
|
-
};
|
|
226
|
-
const handleBlur = (event) => {
|
|
227
|
-
var _a;
|
|
228
|
-
focused.value = false;
|
|
229
|
-
emit("blur", event);
|
|
230
|
-
if (props.validateEvent) {
|
|
231
|
-
(_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "blur").catch((err) => error.debugWarn(err));
|
|
232
|
-
}
|
|
233
|
-
};
|
|
234
230
|
const handleMouseLeave = (evt) => {
|
|
235
231
|
hovering.value = false;
|
|
236
232
|
emit("mouseleave", evt);
|
|
@@ -302,6 +298,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
302
298
|
vue.renderSlot(_ctx.$slots, "prepend")
|
|
303
299
|
], 2)) : vue.createCommentVNode("v-if", true),
|
|
304
300
|
vue.createElementVNode("div", {
|
|
301
|
+
ref_key: "wrapperRef",
|
|
302
|
+
ref: wrapperRef,
|
|
305
303
|
class: vue.normalizeClass(vue.unref(wrapperKls))
|
|
306
304
|
}, [
|
|
307
305
|
vue.createCommentVNode(" prefix slot "),
|
|
@@ -310,11 +308,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
310
308
|
class: vue.normalizeClass(vue.unref(nsInput).e("prefix"))
|
|
311
309
|
}, [
|
|
312
310
|
vue.createElementVNode("span", {
|
|
313
|
-
class: vue.normalizeClass(vue.unref(nsInput).e("prefix-inner"))
|
|
314
|
-
onClick: focus
|
|
311
|
+
class: vue.normalizeClass(vue.unref(nsInput).e("prefix-inner"))
|
|
315
312
|
}, [
|
|
316
313
|
vue.renderSlot(_ctx.$slots, "prefix"),
|
|
317
|
-
_ctx.prefixIcon ? (vue.openBlock(), vue.createBlock(vue.unref(index$
|
|
314
|
+
_ctx.prefixIcon ? (vue.openBlock(), vue.createBlock(vue.unref(index$4.ElIcon), {
|
|
318
315
|
key: 0,
|
|
319
316
|
class: vue.normalizeClass(vue.unref(nsInput).e("icon"))
|
|
320
317
|
}, {
|
|
@@ -346,8 +343,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
346
343
|
onCompositionupdate: handleCompositionUpdate,
|
|
347
344
|
onCompositionend: handleCompositionEnd,
|
|
348
345
|
onInput: handleInput,
|
|
349
|
-
onFocus: handleFocus,
|
|
350
|
-
onBlur: handleBlur,
|
|
346
|
+
onFocus: _cache[0] || (_cache[0] = (...args) => vue.unref(handleFocus) && vue.unref(handleFocus)(...args)),
|
|
347
|
+
onBlur: _cache[1] || (_cache[1] = (...args) => vue.unref(handleBlur) && vue.unref(handleBlur)(...args)),
|
|
351
348
|
onChange: handleChange,
|
|
352
349
|
onKeydown: handleKeydown
|
|
353
350
|
}), null, 16, _hoisted_2),
|
|
@@ -357,12 +354,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
357
354
|
class: vue.normalizeClass(vue.unref(nsInput).e("suffix"))
|
|
358
355
|
}, [
|
|
359
356
|
vue.createElementVNode("span", {
|
|
360
|
-
class: vue.normalizeClass(vue.unref(nsInput).e("suffix-inner"))
|
|
361
|
-
onClick: focus
|
|
357
|
+
class: vue.normalizeClass(vue.unref(nsInput).e("suffix-inner"))
|
|
362
358
|
}, [
|
|
363
359
|
!vue.unref(showClear) || !vue.unref(showPwdVisible) || !vue.unref(isWordLimitVisible) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
364
360
|
vue.renderSlot(_ctx.$slots, "suffix"),
|
|
365
|
-
_ctx.suffixIcon ? (vue.openBlock(), vue.createBlock(vue.unref(index$
|
|
361
|
+
_ctx.suffixIcon ? (vue.openBlock(), vue.createBlock(vue.unref(index$4.ElIcon), {
|
|
366
362
|
key: 0,
|
|
367
363
|
class: vue.normalizeClass(vue.unref(nsInput).e("icon"))
|
|
368
364
|
}, {
|
|
@@ -372,7 +368,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
372
368
|
_: 1
|
|
373
369
|
}, 8, ["class"])) : vue.createCommentVNode("v-if", true)
|
|
374
370
|
], 64)) : vue.createCommentVNode("v-if", true),
|
|
375
|
-
vue.unref(showClear) ? (vue.openBlock(), vue.createBlock(vue.unref(index$
|
|
371
|
+
vue.unref(showClear) ? (vue.openBlock(), vue.createBlock(vue.unref(index$4.ElIcon), {
|
|
376
372
|
key: 1,
|
|
377
373
|
class: vue.normalizeClass([vue.unref(nsInput).e("icon"), vue.unref(nsInput).e("clear")]),
|
|
378
374
|
onMousedown: vue.withModifiers(vue.unref(shared.NOOP), ["prevent"]),
|
|
@@ -383,7 +379,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
383
379
|
]),
|
|
384
380
|
_: 1
|
|
385
381
|
}, 8, ["class", "onMousedown"])) : vue.createCommentVNode("v-if", true),
|
|
386
|
-
vue.unref(showPwdVisible) ? (vue.openBlock(), vue.createBlock(vue.unref(index$
|
|
382
|
+
vue.unref(showPwdVisible) ? (vue.openBlock(), vue.createBlock(vue.unref(index$4.ElIcon), {
|
|
387
383
|
key: 2,
|
|
388
384
|
class: vue.normalizeClass([vue.unref(nsInput).e("icon"), vue.unref(nsInput).e("password")]),
|
|
389
385
|
onClick: handlePasswordVisible
|
|
@@ -401,7 +397,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
401
397
|
class: vue.normalizeClass(vue.unref(nsInput).e("count-inner"))
|
|
402
398
|
}, vue.toDisplayString(vue.unref(textLength)) + " / " + vue.toDisplayString(vue.unref(attrs).maxlength), 3)
|
|
403
399
|
], 2)) : vue.createCommentVNode("v-if", true),
|
|
404
|
-
vue.unref(validateState) && vue.unref(validateIcon) && vue.unref(needStatusIcon) ? (vue.openBlock(), vue.createBlock(vue.unref(index$
|
|
400
|
+
vue.unref(validateState) && vue.unref(validateIcon) && vue.unref(needStatusIcon) ? (vue.openBlock(), vue.createBlock(vue.unref(index$4.ElIcon), {
|
|
405
401
|
key: 4,
|
|
406
402
|
class: vue.normalizeClass([
|
|
407
403
|
vue.unref(nsInput).e("icon"),
|
|
@@ -444,8 +440,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
444
440
|
onCompositionupdate: handleCompositionUpdate,
|
|
445
441
|
onCompositionend: handleCompositionEnd,
|
|
446
442
|
onInput: handleInput,
|
|
447
|
-
onFocus: handleFocus,
|
|
448
|
-
onBlur: handleBlur,
|
|
443
|
+
onFocus: _cache[2] || (_cache[2] = (...args) => vue.unref(handleFocus) && vue.unref(handleFocus)(...args)),
|
|
444
|
+
onBlur: _cache[3] || (_cache[3] = (...args) => vue.unref(handleBlur) && vue.unref(handleBlur)(...args)),
|
|
449
445
|
onChange: handleChange,
|
|
450
446
|
onKeydown: handleKeydown
|
|
451
447
|
}), null, 16, _hoisted_3),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input2.js","sources":["../../../../../../packages/components/input/src/input.vue"],"sourcesContent":["<template>\n <div\n v-show=\"type !== 'hidden'\"\n v-bind=\"containerAttrs\"\n :class=\"containerKls\"\n :style=\"containerStyle\"\n :role=\"containerRole\"\n @mouseenter=\"handleMouseEnter\"\n @mouseleave=\"handleMouseLeave\"\n >\n <!-- input -->\n <template v-if=\"type !== 'textarea'\">\n <!-- prepend slot -->\n <div v-if=\"$slots.prepend\" :class=\"nsInput.be('group', 'prepend')\">\n <slot name=\"prepend\" />\n </div>\n\n <div :class=\"wrapperKls\">\n <!-- prefix slot -->\n <span v-if=\"$slots.prefix || prefixIcon\" :class=\"nsInput.e('prefix')\">\n <span :class=\"nsInput.e('prefix-inner')\" @click=\"focus\">\n <slot name=\"prefix\" />\n <el-icon v-if=\"prefixIcon\" :class=\"nsInput.e('icon')\">\n <component :is=\"prefixIcon\" />\n </el-icon>\n </span>\n </span>\n\n <input\n :id=\"inputId\"\n ref=\"input\"\n :class=\"nsInput.e('inner')\"\n v-bind=\"attrs\"\n :type=\"showPassword ? (passwordVisible ? 'text' : 'password') : type\"\n :disabled=\"inputDisabled\"\n :formatter=\"formatter\"\n :parser=\"parser\"\n :readonly=\"readonly\"\n :autocomplete=\"autocomplete\"\n :tabindex=\"tabindex\"\n :aria-label=\"label\"\n :placeholder=\"placeholder\"\n :style=\"inputStyle\"\n :form=\"props.form\"\n @compositionstart=\"handleCompositionStart\"\n @compositionupdate=\"handleCompositionUpdate\"\n @compositionend=\"handleCompositionEnd\"\n @input=\"handleInput\"\n @focus=\"handleFocus\"\n @blur=\"handleBlur\"\n @change=\"handleChange\"\n @keydown=\"handleKeydown\"\n />\n\n <!-- suffix slot -->\n <span v-if=\"suffixVisible\" :class=\"nsInput.e('suffix')\">\n <span :class=\"nsInput.e('suffix-inner')\" @click=\"focus\">\n <template\n v-if=\"!showClear || !showPwdVisible || !isWordLimitVisible\"\n >\n <slot name=\"suffix\" />\n <el-icon v-if=\"suffixIcon\" :class=\"nsInput.e('icon')\">\n <component :is=\"suffixIcon\" />\n </el-icon>\n </template>\n <el-icon\n v-if=\"showClear\"\n :class=\"[nsInput.e('icon'), nsInput.e('clear')]\"\n @mousedown.prevent=\"NOOP\"\n @click=\"clear\"\n >\n <circle-close />\n </el-icon>\n <el-icon\n v-if=\"showPwdVisible\"\n :class=\"[nsInput.e('icon'), nsInput.e('password')]\"\n @click=\"handlePasswordVisible\"\n >\n <component :is=\"passwordIcon\" />\n </el-icon>\n <span v-if=\"isWordLimitVisible\" :class=\"nsInput.e('count')\">\n <span :class=\"nsInput.e('count-inner')\">\n {{ textLength }} / {{ attrs.maxlength }}\n </span>\n </span>\n <el-icon\n v-if=\"validateState && validateIcon && needStatusIcon\"\n :class=\"[\n nsInput.e('icon'),\n nsInput.e('validateIcon'),\n nsInput.is('loading', validateState === 'validating'),\n ]\"\n >\n <component :is=\"validateIcon\" />\n </el-icon>\n </span>\n </span>\n </div>\n\n <!-- append slot -->\n <div v-if=\"$slots.append\" :class=\"nsInput.be('group', 'append')\">\n <slot name=\"append\" />\n </div>\n </template>\n\n <!-- textarea -->\n <template v-else>\n <textarea\n :id=\"inputId\"\n ref=\"textarea\"\n :class=\"nsTextarea.e('inner')\"\n v-bind=\"attrs\"\n :tabindex=\"tabindex\"\n :disabled=\"inputDisabled\"\n :readonly=\"readonly\"\n :autocomplete=\"autocomplete\"\n :style=\"textareaStyle\"\n :aria-label=\"label\"\n :placeholder=\"placeholder\"\n :form=\"props.form\"\n @compositionstart=\"handleCompositionStart\"\n @compositionupdate=\"handleCompositionUpdate\"\n @compositionend=\"handleCompositionEnd\"\n @input=\"handleInput\"\n @focus=\"handleFocus\"\n @blur=\"handleBlur\"\n @change=\"handleChange\"\n @keydown=\"handleKeydown\"\n />\n <span\n v-if=\"isWordLimitVisible\"\n :style=\"countStyle\"\n :class=\"nsInput.e('count')\"\n >\n {{ textLength }} / {{ attrs.maxlength }}\n </span>\n </template>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n computed,\n nextTick,\n onMounted,\n ref,\n shallowRef,\n toRef,\n useAttrs as useRawAttrs,\n useSlots,\n watch,\n} from 'vue'\nimport { useResizeObserver } from '@vueuse/core'\nimport { isNil } from 'lodash-unified'\nimport { ElIcon } from '@element-plus/components/icon'\nimport {\n CircleClose,\n Hide as IconHide,\n View as IconView,\n} from '@element-plus/icons-vue'\nimport {\n useFormDisabled,\n useFormItem,\n useFormItemInputId,\n useFormSize,\n} from '@element-plus/components/form'\nimport {\n NOOP,\n ValidateComponentsMap,\n debugWarn,\n isClient,\n isKorean,\n isObject,\n} from '@element-plus/utils'\nimport { useAttrs, useCursor, useNamespace } from '@element-plus/hooks'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { calcTextareaHeight } from './utils'\nimport { inputEmits, inputProps } from './input'\nimport type { StyleValue } from 'vue'\n\ntype TargetElement = HTMLInputElement | HTMLTextAreaElement\n\ndefineOptions({\n name: 'ElInput',\n inheritAttrs: false,\n})\nconst props = defineProps(inputProps)\nconst emit = defineEmits(inputEmits)\n\nconst rawAttrs = useRawAttrs()\nconst slots = useSlots()\n\nconst containerAttrs = computed(() => {\n const comboBoxAttrs: Record<string, unknown> = {}\n if (props.containerRole === 'combobox') {\n comboBoxAttrs['aria-haspopup'] = rawAttrs['aria-haspopup']\n comboBoxAttrs['aria-owns'] = rawAttrs['aria-owns']\n comboBoxAttrs['aria-expanded'] = rawAttrs['aria-expanded']\n }\n return comboBoxAttrs\n})\n\nconst containerKls = computed(() => [\n props.type === 'textarea' ? nsTextarea.b() : nsInput.b(),\n nsInput.m(inputSize.value),\n nsInput.is('disabled', inputDisabled.value),\n nsInput.is('exceed', inputExceed.value),\n {\n [nsInput.b('group')]: slots.prepend || slots.append,\n [nsInput.bm('group', 'append')]: slots.append,\n [nsInput.bm('group', 'prepend')]: slots.prepend,\n [nsInput.m('prefix')]: slots.prefix || props.prefixIcon,\n [nsInput.m('suffix')]:\n slots.suffix || props.suffixIcon || props.clearable || props.showPassword,\n [nsInput.bm('suffix', 'password-clear')]:\n showClear.value && showPwdVisible.value,\n },\n rawAttrs.class,\n])\n\nconst wrapperKls = computed(() => [\n nsInput.e('wrapper'),\n nsInput.is('focus', focused.value),\n])\n\nconst attrs = useAttrs({\n excludeKeys: computed<string[]>(() => {\n return Object.keys(containerAttrs.value)\n }),\n})\nconst { form, formItem } = useFormItem()\nconst { inputId } = useFormItemInputId(props, {\n formItemContext: formItem,\n})\nconst inputSize = useFormSize()\nconst inputDisabled = useFormDisabled()\nconst nsInput = useNamespace('input')\nconst nsTextarea = useNamespace('textarea')\n\nconst input = shallowRef<HTMLInputElement>()\nconst textarea = shallowRef<HTMLTextAreaElement>()\n\nconst focused = ref(false)\nconst hovering = ref(false)\nconst isComposing = ref(false)\nconst passwordVisible = ref(false)\nconst countStyle = ref<StyleValue>()\nconst textareaCalcStyle = shallowRef(props.inputStyle)\n\nconst _ref = computed(() => input.value || textarea.value)\n\nconst needStatusIcon = computed(() => form?.statusIcon ?? false)\nconst validateState = computed(() => formItem?.validateState || '')\nconst validateIcon = computed(\n () => validateState.value && ValidateComponentsMap[validateState.value]\n)\nconst passwordIcon = computed(() =>\n passwordVisible.value ? IconView : IconHide\n)\nconst containerStyle = computed<StyleValue>(() => [\n rawAttrs.style as StyleValue,\n props.inputStyle,\n])\nconst textareaStyle = computed<StyleValue>(() => [\n props.inputStyle,\n textareaCalcStyle.value,\n { resize: props.resize },\n])\nconst nativeInputValue = computed(() =>\n isNil(props.modelValue) ? '' : String(props.modelValue)\n)\nconst showClear = computed(\n () =>\n props.clearable &&\n !inputDisabled.value &&\n !props.readonly &&\n !!nativeInputValue.value &&\n (focused.value || hovering.value)\n)\nconst showPwdVisible = computed(\n () =>\n props.showPassword &&\n !inputDisabled.value &&\n !props.readonly &&\n !!nativeInputValue.value &&\n (!!nativeInputValue.value || focused.value)\n)\nconst isWordLimitVisible = computed(\n () =>\n props.showWordLimit &&\n !!attrs.value.maxlength &&\n (props.type === 'text' || props.type === 'textarea') &&\n !inputDisabled.value &&\n !props.readonly &&\n !props.showPassword\n)\nconst textLength = computed(() => nativeInputValue.value.length)\nconst inputExceed = computed(\n () =>\n // show exceed style if length of initial value greater then maxlength\n !!isWordLimitVisible.value &&\n textLength.value > Number(attrs.value.maxlength)\n)\nconst suffixVisible = computed(\n () =>\n !!slots.suffix ||\n !!props.suffixIcon ||\n showClear.value ||\n props.showPassword ||\n isWordLimitVisible.value ||\n (!!validateState.value && needStatusIcon.value)\n)\n\nconst [recordCursor, setCursor] = useCursor(input)\n\nuseResizeObserver(textarea, (entries) => {\n onceInitSizeTextarea()\n if (!isWordLimitVisible.value || props.resize !== 'both') return\n const entry = entries[0]\n const { width } = entry.contentRect\n countStyle.value = {\n /** right: 100% - width + padding(15) + right(6) */\n right: `calc(100% - ${width + 15 + 6}px)`,\n }\n})\n\nconst resizeTextarea = () => {\n const { type, autosize } = props\n\n if (!isClient || type !== 'textarea' || !textarea.value) return\n\n if (autosize) {\n const minRows = isObject(autosize) ? autosize.minRows : undefined\n const maxRows = isObject(autosize) ? autosize.maxRows : undefined\n const textareaStyle = calcTextareaHeight(textarea.value, minRows, maxRows)\n\n // If the scrollbar is displayed, the height of the textarea needs more space than the calculated height.\n // If set textarea height in this case, the scrollbar will not hide.\n // So we need to hide scrollbar first, and reset it in next tick.\n // see https://github.com/element-plus/element-plus/issues/8825\n textareaCalcStyle.value = {\n overflowY: 'hidden',\n ...textareaStyle,\n }\n\n nextTick(() => {\n // NOTE: Force repaint to make sure the style set above is applied.\n textarea.value!.offsetHeight\n textareaCalcStyle.value = textareaStyle\n })\n } else {\n textareaCalcStyle.value = {\n minHeight: calcTextareaHeight(textarea.value).minHeight,\n }\n }\n}\n\nconst createOnceInitResize = (resizeTextarea: () => void) => {\n let isInit = false\n return () => {\n if (isInit || !props.autosize) return\n const isElHidden = textarea.value?.offsetParent === null\n if (!isElHidden) {\n resizeTextarea()\n isInit = true\n }\n }\n}\n// fix: https://github.com/element-plus/element-plus/issues/12074\nconst onceInitSizeTextarea = createOnceInitResize(resizeTextarea)\n\nconst setNativeInputValue = () => {\n const input = _ref.value\n const formatterValue = props.formatter\n ? props.formatter(nativeInputValue.value)\n : nativeInputValue.value\n if (!input || input.value === formatterValue) return\n input.value = formatterValue\n}\n\nconst handleInput = async (event: Event) => {\n recordCursor()\n\n let { value } = event.target as TargetElement\n\n if (props.formatter) {\n value = props.parser ? props.parser(value) : value\n }\n\n // should not emit input during composition\n // see: https://github.com/ElemeFE/element/issues/10516\n if (isComposing.value) return\n\n // hack for https://github.com/ElemeFE/element/issues/8548\n // should remove the following line when we don't support IE\n if (value === nativeInputValue.value) {\n setNativeInputValue()\n return\n }\n\n emit(UPDATE_MODEL_EVENT, value)\n emit('input', value)\n\n // ensure native input value is controlled\n // see: https://github.com/ElemeFE/element/issues/12850\n await nextTick()\n setNativeInputValue()\n setCursor()\n}\n\nconst handleChange = (event: Event) => {\n emit('change', (event.target as TargetElement).value)\n}\n\nconst handleCompositionStart = (event: CompositionEvent) => {\n emit('compositionstart', event)\n isComposing.value = true\n}\n\nconst handleCompositionUpdate = (event: CompositionEvent) => {\n emit('compositionupdate', event)\n const text = (event.target as HTMLInputElement)?.value\n const lastCharacter = text[text.length - 1] || ''\n isComposing.value = !isKorean(lastCharacter)\n}\n\nconst handleCompositionEnd = (event: CompositionEvent) => {\n emit('compositionend', event)\n if (isComposing.value) {\n isComposing.value = false\n handleInput(event)\n }\n}\n\nconst handlePasswordVisible = () => {\n passwordVisible.value = !passwordVisible.value\n focus()\n}\n\nconst focus = async () => {\n // see: https://github.com/ElemeFE/element/issues/18573\n await nextTick()\n _ref.value?.focus()\n}\n\nconst blur = () => _ref.value?.blur()\n\nconst handleFocus = (event: FocusEvent) => {\n focused.value = true\n emit('focus', event)\n}\n\nconst handleBlur = (event: FocusEvent) => {\n focused.value = false\n emit('blur', event)\n if (props.validateEvent) {\n formItem?.validate?.('blur').catch((err) => debugWarn(err))\n }\n}\n\nconst handleMouseLeave = (evt: MouseEvent) => {\n hovering.value = false\n emit('mouseleave', evt)\n}\n\nconst handleMouseEnter = (evt: MouseEvent) => {\n hovering.value = true\n emit('mouseenter', evt)\n}\n\nconst handleKeydown = (evt: KeyboardEvent) => {\n emit('keydown', evt)\n}\n\nconst select = () => {\n _ref.value?.select()\n}\n\nconst clear = () => {\n emit(UPDATE_MODEL_EVENT, '')\n emit('change', '')\n emit('clear')\n emit('input', '')\n}\n\nwatch(\n () => props.modelValue,\n () => {\n nextTick(() => resizeTextarea())\n if (props.validateEvent) {\n formItem?.validate?.('change').catch((err) => debugWarn(err))\n }\n }\n)\n\n// native input value is set explicitly\n// do not use v-model / :value in template\n// see: https://github.com/ElemeFE/element/issues/14521\nwatch(nativeInputValue, () => setNativeInputValue())\n\n// when change between <input> and <textarea>,\n// update DOM dependent value and styles\n// https://github.com/ElemeFE/element/issues/14857\nwatch(\n () => props.type,\n async () => {\n await nextTick()\n setNativeInputValue()\n resizeTextarea()\n }\n)\n\nonMounted(() => {\n if (!props.formatter && props.parser) {\n debugWarn(\n 'ElInput',\n 'If you set the parser, you also need to set the formatter.'\n )\n }\n setNativeInputValue()\n nextTick(resizeTextarea)\n})\n\ndefineExpose({\n /** @description HTML input element */\n input,\n /** @description HTML textarea element */\n textarea,\n /** @description HTML element, input or textarea */\n ref: _ref,\n /** @description style of textarea. */\n textareaStyle,\n\n /** @description from props (used on unit test) */\n autosize: toRef(props, 'autosize'),\n\n /** @description HTML input element native method */\n focus,\n /** @description HTML input element native method */\n blur,\n /** @description HTML input element native method */\n select,\n /** @description clear input value */\n clear,\n /** @description resize textarea. */\n resizeTextarea,\n})\n</script>\n"],"names":["useRawAttrs","useSlots","computed","useAttrs","useFormItem","useFormItemInputId","useFormSize","useFormDisabled","useNamespace","shallowRef","ref","ValidateComponentsMap","IconView","IconHide","isNil","useCursor","useResizeObserver","isClient","isObject","calcTextareaHeight","nextTick","event","UPDATE_MODEL_EVENT","isKorean","debugWarn","watch","onMounted"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCAsLc,CAAA;AAAA,EACZ,IAAM,EAAA,SAAA;AAAA,EACN,YAAc,EAAA,KAAA;AAChB,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAA,MAAM,WAAWA,YAAY,EAAA,CAAA;AAC7B,IAAA,MAAM,QAAQC,YAAS,EAAA,CAAA;AAEvB,IAAM,MAAA,cAAA,GAAiBC,aAAS,MAAM;AACpC,MAAA,MAAM,gBAAyC,EAAC,CAAA;AAChD,MAAI,IAAA,KAAA,CAAM,kBAAkB,UAAY,EAAA;AACtC,QAAA,aAAA,CAAc,mBAAmB,QAAS,CAAA,eAAA,CAAA,CAAA;AAC1C,QAAA,aAAA,CAAc,eAAe,QAAS,CAAA,WAAA,CAAA,CAAA;AACtC,QAAA,aAAA,CAAc,mBAAmB,QAAS,CAAA,eAAA,CAAA,CAAA;AAAA,OAC5C;AACA,MAAO,OAAA,aAAA,CAAA;AAAA,KACR,CAAA,CAAA;AAED,IAAM,MAAA,YAAA,GAAeA,aAAS,MAAM;AAAA,MAClC,MAAM,IAAS,KAAA,UAAA,GAAa,WAAW,CAAE,EAAA,GAAI,QAAQ,CAAE,EAAA;AAAA,MACvD,OAAA,CAAQ,CAAE,CAAA,SAAA,CAAU,KAAK,CAAA;AAAA,M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,IAAaA,SAAA,CAAA,MAAA,KAAA,CAAA,IAAA,EAAA,YAAA;AAAA,MAEX,MAAAL,YAAA,EAAA,CAAA;AAAA,MAEA,mBAAA,EAAA,CAAA;AAAA,MAEA,cAAK,EAAA,CAAA;AAAA,KAEL,CAAA,CAAA;AAAA,IAGAM,aAAA,CAAA,MAAgB;AAAiB,MAGjC,IAAA,CAAA,KAAA,CAAA,SAAA,IAAA,KAAA,CAAA,MAAA,EAAA;AAAA,QAEAF,eAAA,CAAA,SAAA,EAAA,4DAAA,CAAA,CAAA;AAAA,OAEA;AAAA,MAEA,mBAAA,EAAA,CAAA;AAAA,MAEAJ,YAAA,CAAA,cAAA,CAAA,CAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"input2.js","sources":["../../../../../../packages/components/input/src/input.vue"],"sourcesContent":["<template>\n <div\n v-show=\"type !== 'hidden'\"\n v-bind=\"containerAttrs\"\n :class=\"containerKls\"\n :style=\"containerStyle\"\n :role=\"containerRole\"\n @mouseenter=\"handleMouseEnter\"\n @mouseleave=\"handleMouseLeave\"\n >\n <!-- input -->\n <template v-if=\"type !== 'textarea'\">\n <!-- prepend slot -->\n <div v-if=\"$slots.prepend\" :class=\"nsInput.be('group', 'prepend')\">\n <slot name=\"prepend\" />\n </div>\n\n <div ref=\"wrapperRef\" :class=\"wrapperKls\">\n <!-- prefix slot -->\n <span v-if=\"$slots.prefix || prefixIcon\" :class=\"nsInput.e('prefix')\">\n <span :class=\"nsInput.e('prefix-inner')\">\n <slot name=\"prefix\" />\n <el-icon v-if=\"prefixIcon\" :class=\"nsInput.e('icon')\">\n <component :is=\"prefixIcon\" />\n </el-icon>\n </span>\n </span>\n\n <input\n :id=\"inputId\"\n ref=\"input\"\n :class=\"nsInput.e('inner')\"\n v-bind=\"attrs\"\n :type=\"showPassword ? (passwordVisible ? 'text' : 'password') : type\"\n :disabled=\"inputDisabled\"\n :formatter=\"formatter\"\n :parser=\"parser\"\n :readonly=\"readonly\"\n :autocomplete=\"autocomplete\"\n :tabindex=\"tabindex\"\n :aria-label=\"label\"\n :placeholder=\"placeholder\"\n :style=\"inputStyle\"\n :form=\"props.form\"\n @compositionstart=\"handleCompositionStart\"\n @compositionupdate=\"handleCompositionUpdate\"\n @compositionend=\"handleCompositionEnd\"\n @input=\"handleInput\"\n @focus=\"handleFocus\"\n @blur=\"handleBlur\"\n @change=\"handleChange\"\n @keydown=\"handleKeydown\"\n />\n\n <!-- suffix slot -->\n <span v-if=\"suffixVisible\" :class=\"nsInput.e('suffix')\">\n <span :class=\"nsInput.e('suffix-inner')\">\n <template\n v-if=\"!showClear || !showPwdVisible || !isWordLimitVisible\"\n >\n <slot name=\"suffix\" />\n <el-icon v-if=\"suffixIcon\" :class=\"nsInput.e('icon')\">\n <component :is=\"suffixIcon\" />\n </el-icon>\n </template>\n <el-icon\n v-if=\"showClear\"\n :class=\"[nsInput.e('icon'), nsInput.e('clear')]\"\n @mousedown.prevent=\"NOOP\"\n @click=\"clear\"\n >\n <circle-close />\n </el-icon>\n <el-icon\n v-if=\"showPwdVisible\"\n :class=\"[nsInput.e('icon'), nsInput.e('password')]\"\n @click=\"handlePasswordVisible\"\n >\n <component :is=\"passwordIcon\" />\n </el-icon>\n <span v-if=\"isWordLimitVisible\" :class=\"nsInput.e('count')\">\n <span :class=\"nsInput.e('count-inner')\">\n {{ textLength }} / {{ attrs.maxlength }}\n </span>\n </span>\n <el-icon\n v-if=\"validateState && validateIcon && needStatusIcon\"\n :class=\"[\n nsInput.e('icon'),\n nsInput.e('validateIcon'),\n nsInput.is('loading', validateState === 'validating'),\n ]\"\n >\n <component :is=\"validateIcon\" />\n </el-icon>\n </span>\n </span>\n </div>\n\n <!-- append slot -->\n <div v-if=\"$slots.append\" :class=\"nsInput.be('group', 'append')\">\n <slot name=\"append\" />\n </div>\n </template>\n\n <!-- textarea -->\n <template v-else>\n <textarea\n :id=\"inputId\"\n ref=\"textarea\"\n :class=\"nsTextarea.e('inner')\"\n v-bind=\"attrs\"\n :tabindex=\"tabindex\"\n :disabled=\"inputDisabled\"\n :readonly=\"readonly\"\n :autocomplete=\"autocomplete\"\n :style=\"textareaStyle\"\n :aria-label=\"label\"\n :placeholder=\"placeholder\"\n :form=\"props.form\"\n @compositionstart=\"handleCompositionStart\"\n @compositionupdate=\"handleCompositionUpdate\"\n @compositionend=\"handleCompositionEnd\"\n @input=\"handleInput\"\n @focus=\"handleFocus\"\n @blur=\"handleBlur\"\n @change=\"handleChange\"\n @keydown=\"handleKeydown\"\n />\n <span\n v-if=\"isWordLimitVisible\"\n :style=\"countStyle\"\n :class=\"nsInput.e('count')\"\n >\n {{ textLength }} / {{ attrs.maxlength }}\n </span>\n </template>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n computed,\n nextTick,\n onMounted,\n ref,\n shallowRef,\n toRef,\n useAttrs as useRawAttrs,\n useSlots,\n watch,\n} from 'vue'\nimport { useResizeObserver } from '@vueuse/core'\nimport { isNil } from 'lodash-unified'\nimport { ElIcon } from '@element-plus/components/icon'\nimport {\n CircleClose,\n Hide as IconHide,\n View as IconView,\n} from '@element-plus/icons-vue'\nimport {\n useFormDisabled,\n useFormItem,\n useFormItemInputId,\n useFormSize,\n} from '@element-plus/components/form'\nimport {\n NOOP,\n ValidateComponentsMap,\n debugWarn,\n isClient,\n isKorean,\n isObject,\n} from '@element-plus/utils'\nimport {\n useAttrs,\n useCursor,\n useFocusController,\n useNamespace,\n} from '@element-plus/hooks'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { calcTextareaHeight } from './utils'\nimport { inputEmits, inputProps } from './input'\nimport type { StyleValue } from 'vue'\n\ntype TargetElement = HTMLInputElement | HTMLTextAreaElement\n\ndefineOptions({\n name: 'ElInput',\n inheritAttrs: false,\n})\nconst props = defineProps(inputProps)\nconst emit = defineEmits(inputEmits)\n\nconst rawAttrs = useRawAttrs()\nconst slots = useSlots()\n\nconst containerAttrs = computed(() => {\n const comboBoxAttrs: Record<string, unknown> = {}\n if (props.containerRole === 'combobox') {\n comboBoxAttrs['aria-haspopup'] = rawAttrs['aria-haspopup']\n comboBoxAttrs['aria-owns'] = rawAttrs['aria-owns']\n comboBoxAttrs['aria-expanded'] = rawAttrs['aria-expanded']\n }\n return comboBoxAttrs\n})\n\nconst containerKls = computed(() => [\n props.type === 'textarea' ? nsTextarea.b() : nsInput.b(),\n nsInput.m(inputSize.value),\n nsInput.is('disabled', inputDisabled.value),\n nsInput.is('exceed', inputExceed.value),\n {\n [nsInput.b('group')]: slots.prepend || slots.append,\n [nsInput.bm('group', 'append')]: slots.append,\n [nsInput.bm('group', 'prepend')]: slots.prepend,\n [nsInput.m('prefix')]: slots.prefix || props.prefixIcon,\n [nsInput.m('suffix')]:\n slots.suffix || props.suffixIcon || props.clearable || props.showPassword,\n [nsInput.bm('suffix', 'password-clear')]:\n showClear.value && showPwdVisible.value,\n },\n rawAttrs.class,\n])\n\nconst wrapperKls = computed(() => [\n nsInput.e('wrapper'),\n nsInput.is('focus', isFocused.value),\n])\n\nconst attrs = useAttrs({\n excludeKeys: computed<string[]>(() => {\n return Object.keys(containerAttrs.value)\n }),\n})\nconst { form, formItem } = useFormItem()\nconst { inputId } = useFormItemInputId(props, {\n formItemContext: formItem,\n})\nconst inputSize = useFormSize()\nconst inputDisabled = useFormDisabled()\nconst nsInput = useNamespace('input')\nconst nsTextarea = useNamespace('textarea')\n\nconst input = shallowRef<HTMLInputElement>()\nconst textarea = shallowRef<HTMLTextAreaElement>()\n\nconst hovering = ref(false)\nconst isComposing = ref(false)\nconst passwordVisible = ref(false)\nconst countStyle = ref<StyleValue>()\nconst textareaCalcStyle = shallowRef(props.inputStyle)\n\nconst _ref = computed(() => input.value || textarea.value)\n\nconst { wrapperRef, isFocused, handleFocus, handleBlur } = useFocusController(\n _ref,\n {\n afterBlur() {\n if (props.validateEvent) {\n formItem?.validate?.('blur').catch((err) => debugWarn(err))\n }\n },\n }\n)\n\nconst needStatusIcon = computed(() => form?.statusIcon ?? false)\nconst validateState = computed(() => formItem?.validateState || '')\nconst validateIcon = computed(\n () => validateState.value && ValidateComponentsMap[validateState.value]\n)\nconst passwordIcon = computed(() =>\n passwordVisible.value ? IconView : IconHide\n)\nconst containerStyle = computed<StyleValue>(() => [\n rawAttrs.style as StyleValue,\n props.inputStyle,\n])\nconst textareaStyle = computed<StyleValue>(() => [\n props.inputStyle,\n textareaCalcStyle.value,\n { resize: props.resize },\n])\nconst nativeInputValue = computed(() =>\n isNil(props.modelValue) ? '' : String(props.modelValue)\n)\nconst showClear = computed(\n () =>\n props.clearable &&\n !inputDisabled.value &&\n !props.readonly &&\n !!nativeInputValue.value &&\n (isFocused.value || hovering.value)\n)\nconst showPwdVisible = computed(\n () =>\n props.showPassword &&\n !inputDisabled.value &&\n !props.readonly &&\n !!nativeInputValue.value &&\n (!!nativeInputValue.value || isFocused.value)\n)\nconst isWordLimitVisible = computed(\n () =>\n props.showWordLimit &&\n !!attrs.value.maxlength &&\n (props.type === 'text' || props.type === 'textarea') &&\n !inputDisabled.value &&\n !props.readonly &&\n !props.showPassword\n)\nconst textLength = computed(() => nativeInputValue.value.length)\nconst inputExceed = computed(\n () =>\n // show exceed style if length of initial value greater then maxlength\n !!isWordLimitVisible.value &&\n textLength.value > Number(attrs.value.maxlength)\n)\nconst suffixVisible = computed(\n () =>\n !!slots.suffix ||\n !!props.suffixIcon ||\n showClear.value ||\n props.showPassword ||\n isWordLimitVisible.value ||\n (!!validateState.value && needStatusIcon.value)\n)\n\nconst [recordCursor, setCursor] = useCursor(input)\n\nuseResizeObserver(textarea, (entries) => {\n onceInitSizeTextarea()\n if (!isWordLimitVisible.value || props.resize !== 'both') return\n const entry = entries[0]\n const { width } = entry.contentRect\n countStyle.value = {\n /** right: 100% - width + padding(15) + right(6) */\n right: `calc(100% - ${width + 15 + 6}px)`,\n }\n})\n\nconst resizeTextarea = () => {\n const { type, autosize } = props\n\n if (!isClient || type !== 'textarea' || !textarea.value) return\n\n if (autosize) {\n const minRows = isObject(autosize) ? autosize.minRows : undefined\n const maxRows = isObject(autosize) ? autosize.maxRows : undefined\n const textareaStyle = calcTextareaHeight(textarea.value, minRows, maxRows)\n\n // If the scrollbar is displayed, the height of the textarea needs more space than the calculated height.\n // If set textarea height in this case, the scrollbar will not hide.\n // So we need to hide scrollbar first, and reset it in next tick.\n // see https://github.com/element-plus/element-plus/issues/8825\n textareaCalcStyle.value = {\n overflowY: 'hidden',\n ...textareaStyle,\n }\n\n nextTick(() => {\n // NOTE: Force repaint to make sure the style set above is applied.\n textarea.value!.offsetHeight\n textareaCalcStyle.value = textareaStyle\n })\n } else {\n textareaCalcStyle.value = {\n minHeight: calcTextareaHeight(textarea.value).minHeight,\n }\n }\n}\n\nconst createOnceInitResize = (resizeTextarea: () => void) => {\n let isInit = false\n return () => {\n if (isInit || !props.autosize) return\n const isElHidden = textarea.value?.offsetParent === null\n if (!isElHidden) {\n resizeTextarea()\n isInit = true\n }\n }\n}\n// fix: https://github.com/element-plus/element-plus/issues/12074\nconst onceInitSizeTextarea = createOnceInitResize(resizeTextarea)\n\nconst setNativeInputValue = () => {\n const input = _ref.value\n const formatterValue = props.formatter\n ? props.formatter(nativeInputValue.value)\n : nativeInputValue.value\n if (!input || input.value === formatterValue) return\n input.value = formatterValue\n}\n\nconst handleInput = async (event: Event) => {\n recordCursor()\n\n let { value } = event.target as TargetElement\n\n if (props.formatter) {\n value = props.parser ? props.parser(value) : value\n }\n\n // should not emit input during composition\n // see: https://github.com/ElemeFE/element/issues/10516\n if (isComposing.value) return\n\n // hack for https://github.com/ElemeFE/element/issues/8548\n // should remove the following line when we don't support IE\n if (value === nativeInputValue.value) {\n setNativeInputValue()\n return\n }\n\n emit(UPDATE_MODEL_EVENT, value)\n emit('input', value)\n\n // ensure native input value is controlled\n // see: https://github.com/ElemeFE/element/issues/12850\n await nextTick()\n setNativeInputValue()\n setCursor()\n}\n\nconst handleChange = (event: Event) => {\n emit('change', (event.target as TargetElement).value)\n}\n\nconst handleCompositionStart = (event: CompositionEvent) => {\n emit('compositionstart', event)\n isComposing.value = true\n}\n\nconst handleCompositionUpdate = (event: CompositionEvent) => {\n emit('compositionupdate', event)\n const text = (event.target as HTMLInputElement)?.value\n const lastCharacter = text[text.length - 1] || ''\n isComposing.value = !isKorean(lastCharacter)\n}\n\nconst handleCompositionEnd = (event: CompositionEvent) => {\n emit('compositionend', event)\n if (isComposing.value) {\n isComposing.value = false\n handleInput(event)\n }\n}\n\nconst handlePasswordVisible = () => {\n passwordVisible.value = !passwordVisible.value\n focus()\n}\n\nconst focus = async () => {\n // see: https://github.com/ElemeFE/element/issues/18573\n await nextTick()\n _ref.value?.focus()\n}\n\nconst blur = () => _ref.value?.blur()\n\nconst handleMouseLeave = (evt: MouseEvent) => {\n hovering.value = false\n emit('mouseleave', evt)\n}\n\nconst handleMouseEnter = (evt: MouseEvent) => {\n hovering.value = true\n emit('mouseenter', evt)\n}\n\nconst handleKeydown = (evt: KeyboardEvent) => {\n emit('keydown', evt)\n}\n\nconst select = () => {\n _ref.value?.select()\n}\n\nconst clear = () => {\n emit(UPDATE_MODEL_EVENT, '')\n emit('change', '')\n emit('clear')\n emit('input', '')\n}\n\nwatch(\n () => props.modelValue,\n () => {\n nextTick(() => resizeTextarea())\n if (props.validateEvent) {\n formItem?.validate?.('change').catch((err) => debugWarn(err))\n }\n }\n)\n\n// native input value is set explicitly\n// do not use v-model / :value in template\n// see: https://github.com/ElemeFE/element/issues/14521\nwatch(nativeInputValue, () => setNativeInputValue())\n\n// when change between <input> and <textarea>,\n// update DOM dependent value and styles\n// https://github.com/ElemeFE/element/issues/14857\nwatch(\n () => props.type,\n async () => {\n await nextTick()\n setNativeInputValue()\n resizeTextarea()\n }\n)\n\nonMounted(() => {\n if (!props.formatter && props.parser) {\n debugWarn(\n 'ElInput',\n 'If you set the parser, you also need to set the formatter.'\n )\n }\n setNativeInputValue()\n nextTick(resizeTextarea)\n})\n\ndefineExpose({\n /** @description HTML input element */\n input,\n /** @description HTML textarea element */\n textarea,\n /** @description HTML element, input or textarea */\n ref: _ref,\n /** @description style of textarea. */\n textareaStyle,\n\n /** @description from props (used on unit test) */\n autosize: toRef(props, 'autosize'),\n\n /** @description HTML input element native method */\n focus,\n /** @description HTML input element native method */\n blur,\n /** @description HTML input element native method */\n select,\n /** @description clear input value */\n clear,\n /** @description resize textarea. */\n resizeTextarea,\n})\n</script>\n"],"names":["useRawAttrs","useSlots","computed","useAttrs","useFormItem","useFormItemInputId","useFormSize","useFormDisabled","useNamespace","shallowRef","ref","useFocusController","debugWarn","ValidateComponentsMap","IconView","IconHide","isNil","useCursor","useResizeObserver","isClient","isObject","calcTextareaHeight","nextTick","event","UPDATE_MODEL_EVENT","isKorean","watch","onMounted"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCA2Lc,CAAA;AAAA,EACZ,IAAM,EAAA,SAAA;AAAA,EACN,YAAc,EAAA,KAAA;AAChB,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAA,MAAM,WAAWA,YAAY,EAAA,CAAA;AAC7B,IAAA,MAAM,QAAQC,YAAS,EAAA,CAAA;AAEvB,IAAM,MAAA,cAAA,GAAiBC,aAAS,MAAM;AACpC,MAAA,MAAM,gBAAyC,EAAC,CAAA;AAChD,MAAI,IAAA,KAAA,CAAM,kBAAkB,UAAY,EAAA;AACtC,QAAA,aAAA,CAAc,mBAAmB,QAAS,CAAA,eAAA,CAAA,CAAA;AAC1C,QAAA,aAAA,CAAc,eAAe,QAAS,CAAA,WAAA,CAAA,CAAA;AACtC,QAAA,aAAA,CAAc,mBAAmB,QAAS,CAAA,eAAA,CA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;AAAuB,IACzBc,SAAC,CAAA,gBAAA,EAAA,MAAA,mBAAA,EAAA,CAAA,CAAA;AAED,IAAaA,SAAA,CAAA,MAAA,KAAA,CAAA,IAAA,EAAA,YAAA;AAAA,MAEX,MAAAJ,YAAA,EAAA,CAAA;AAAA,MAEA,mBAAA,EAAA,CAAA;AAAA,MAEA,cAAK,EAAA,CAAA;AAAA,KAEL,CAAA,CAAA;AAAA,IAGAK,aAAA,CAAA,MAAgB;AAAiB,MAGjC,IAAA,CAAA,KAAA,CAAA,SAAA,IAAA,KAAA,CAAA,MAAA,EAAA;AAAA,QAEAf,eAAA,CAAA,SAAA,EAAA,4DAAA,CAAA,CAAA;AAAA,OAEA;AAAA,MAEA,mBAAA,EAAA,CAAA;AAAA,MAEAU,YAAA,CAAA,cAAA,CAAA,CAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -402,13 +402,16 @@ export declare const ElInputNumber: import("element-plus/es/utils").SFCWithInsta
|
|
|
402
402
|
};
|
|
403
403
|
input: import("vue").ShallowRef<HTMLInputElement | undefined>;
|
|
404
404
|
textarea: import("vue").ShallowRef<HTMLTextAreaElement | undefined>;
|
|
405
|
-
focused: import("vue").Ref<boolean>;
|
|
406
405
|
hovering: import("vue").Ref<boolean>;
|
|
407
406
|
isComposing: import("vue").Ref<boolean>;
|
|
408
407
|
passwordVisible: import("vue").Ref<boolean>;
|
|
409
408
|
countStyle: import("vue").Ref<import("vue").StyleValue | undefined>;
|
|
410
409
|
textareaCalcStyle: import("vue").ShallowRef<import("vue").StyleValue>;
|
|
411
410
|
_ref: import("vue").ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
411
|
+
wrapperRef: import("vue").ShallowRef<HTMLElement | undefined>;
|
|
412
|
+
isFocused: import("vue").Ref<boolean>;
|
|
413
|
+
handleFocus: (event: FocusEvent) => void;
|
|
414
|
+
handleBlur: (event: FocusEvent) => void;
|
|
412
415
|
needStatusIcon: import("vue").ComputedRef<boolean>;
|
|
413
416
|
validateState: import("vue").ComputedRef<"" | "success" | "error" | "validating">;
|
|
414
417
|
validateIcon: import("vue").ComputedRef<"" | import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
@@ -436,8 +439,6 @@ export declare const ElInputNumber: import("element-plus/es/utils").SFCWithInsta
|
|
|
436
439
|
handlePasswordVisible: () => void;
|
|
437
440
|
focus: () => Promise<void>;
|
|
438
441
|
blur: () => void | undefined;
|
|
439
|
-
handleFocus: (event: FocusEvent) => void;
|
|
440
|
-
handleBlur: (event: FocusEvent) => void;
|
|
441
442
|
handleMouseLeave: (evt: MouseEvent) => void;
|
|
442
443
|
handleMouseEnter: (evt: MouseEvent) => void;
|
|
443
444
|
handleKeydown: (evt: KeyboardEvent) => void;
|
|
@@ -767,13 +768,16 @@ export declare const ElInputNumber: import("element-plus/es/utils").SFCWithInsta
|
|
|
767
768
|
};
|
|
768
769
|
input: import("vue").ShallowRef<HTMLInputElement | undefined>;
|
|
769
770
|
textarea: import("vue").ShallowRef<HTMLTextAreaElement | undefined>;
|
|
770
|
-
focused: import("vue").Ref<boolean>;
|
|
771
771
|
hovering: import("vue").Ref<boolean>;
|
|
772
772
|
isComposing: import("vue").Ref<boolean>;
|
|
773
773
|
passwordVisible: import("vue").Ref<boolean>;
|
|
774
774
|
countStyle: import("vue").Ref<import("vue").StyleValue | undefined>;
|
|
775
775
|
textareaCalcStyle: import("vue").ShallowRef<import("vue").StyleValue>;
|
|
776
776
|
_ref: import("vue").ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
777
|
+
wrapperRef: import("vue").ShallowRef<HTMLElement | undefined>;
|
|
778
|
+
isFocused: import("vue").Ref<boolean>;
|
|
779
|
+
handleFocus: (event: FocusEvent) => void;
|
|
780
|
+
handleBlur: (event: FocusEvent) => void;
|
|
777
781
|
needStatusIcon: import("vue").ComputedRef<boolean>;
|
|
778
782
|
validateState: import("vue").ComputedRef<"" | "success" | "error" | "validating">;
|
|
779
783
|
validateIcon: import("vue").ComputedRef<"" | import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
@@ -801,8 +805,6 @@ export declare const ElInputNumber: import("element-plus/es/utils").SFCWithInsta
|
|
|
801
805
|
handlePasswordVisible: () => void;
|
|
802
806
|
focus: () => Promise<void>;
|
|
803
807
|
blur: () => void | undefined;
|
|
804
|
-
handleFocus: (event: FocusEvent) => void;
|
|
805
|
-
handleBlur: (event: FocusEvent) => void;
|
|
806
808
|
handleMouseLeave: (evt: MouseEvent) => void;
|
|
807
809
|
handleMouseEnter: (evt: MouseEvent) => void;
|
|
808
810
|
handleKeydown: (evt: KeyboardEvent) => void;
|
|
@@ -1096,13 +1098,16 @@ export declare const ElInputNumber: import("element-plus/es/utils").SFCWithInsta
|
|
|
1096
1098
|
};
|
|
1097
1099
|
input: import("vue").ShallowRef<HTMLInputElement | undefined>;
|
|
1098
1100
|
textarea: import("vue").ShallowRef<HTMLTextAreaElement | undefined>;
|
|
1099
|
-
focused: import("vue").Ref<boolean>;
|
|
1100
1101
|
hovering: import("vue").Ref<boolean>;
|
|
1101
1102
|
isComposing: import("vue").Ref<boolean>;
|
|
1102
1103
|
passwordVisible: import("vue").Ref<boolean>;
|
|
1103
1104
|
countStyle: import("vue").Ref<import("vue").StyleValue | undefined>;
|
|
1104
1105
|
textareaCalcStyle: import("vue").ShallowRef<import("vue").StyleValue>;
|
|
1105
1106
|
_ref: import("vue").ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
1107
|
+
wrapperRef: import("vue").ShallowRef<HTMLElement | undefined>;
|
|
1108
|
+
isFocused: import("vue").Ref<boolean>;
|
|
1109
|
+
handleFocus: (event: FocusEvent) => void;
|
|
1110
|
+
handleBlur: (event: FocusEvent) => void;
|
|
1106
1111
|
needStatusIcon: import("vue").ComputedRef<boolean>;
|
|
1107
1112
|
validateState: import("vue").ComputedRef<"" | "success" | "error" | "validating">;
|
|
1108
1113
|
validateIcon: import("vue").ComputedRef<"" | import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
@@ -1130,8 +1135,6 @@ export declare const ElInputNumber: import("element-plus/es/utils").SFCWithInsta
|
|
|
1130
1135
|
handlePasswordVisible: () => void;
|
|
1131
1136
|
focus: () => Promise<void>;
|
|
1132
1137
|
blur: () => void | undefined;
|
|
1133
|
-
handleFocus: (event: FocusEvent) => void;
|
|
1134
|
-
handleBlur: (event: FocusEvent) => void;
|
|
1135
1138
|
handleMouseLeave: (evt: MouseEvent) => void;
|
|
1136
1139
|
handleMouseEnter: (evt: MouseEvent) => void;
|
|
1137
1140
|
handleKeydown: (evt: KeyboardEvent) => void;
|
|
@@ -402,13 +402,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
402
402
|
};
|
|
403
403
|
input: import("vue").ShallowRef<HTMLInputElement | undefined>;
|
|
404
404
|
textarea: import("vue").ShallowRef<HTMLTextAreaElement | undefined>;
|
|
405
|
-
focused: import("vue").Ref<boolean>;
|
|
406
405
|
hovering: import("vue").Ref<boolean>;
|
|
407
406
|
isComposing: import("vue").Ref<boolean>;
|
|
408
407
|
passwordVisible: import("vue").Ref<boolean>;
|
|
409
408
|
countStyle: import("vue").Ref<import("vue").StyleValue | undefined>;
|
|
410
409
|
textareaCalcStyle: import("vue").ShallowRef<import("vue").StyleValue>;
|
|
411
410
|
_ref: import("vue").ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
411
|
+
wrapperRef: import("vue").ShallowRef<HTMLElement | undefined>;
|
|
412
|
+
isFocused: import("vue").Ref<boolean>;
|
|
413
|
+
handleFocus: (event: FocusEvent) => void;
|
|
414
|
+
handleBlur: (event: FocusEvent) => void;
|
|
412
415
|
needStatusIcon: import("vue").ComputedRef<boolean>;
|
|
413
416
|
validateState: import("vue").ComputedRef<"" | "success" | "error" | "validating">;
|
|
414
417
|
validateIcon: import("vue").ComputedRef<"" | import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
@@ -436,8 +439,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
436
439
|
handlePasswordVisible: () => void;
|
|
437
440
|
focus: () => Promise<void>;
|
|
438
441
|
blur: () => void | undefined;
|
|
439
|
-
handleFocus: (event: FocusEvent) => void;
|
|
440
|
-
handleBlur: (event: FocusEvent) => void;
|
|
441
442
|
handleMouseLeave: (evt: MouseEvent) => void;
|
|
442
443
|
handleMouseEnter: (evt: MouseEvent) => void;
|
|
443
444
|
handleKeydown: (evt: KeyboardEvent) => void;
|
|
@@ -767,13 +768,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
767
768
|
};
|
|
768
769
|
input: import("vue").ShallowRef<HTMLInputElement | undefined>;
|
|
769
770
|
textarea: import("vue").ShallowRef<HTMLTextAreaElement | undefined>;
|
|
770
|
-
focused: import("vue").Ref<boolean>;
|
|
771
771
|
hovering: import("vue").Ref<boolean>;
|
|
772
772
|
isComposing: import("vue").Ref<boolean>;
|
|
773
773
|
passwordVisible: import("vue").Ref<boolean>;
|
|
774
774
|
countStyle: import("vue").Ref<import("vue").StyleValue | undefined>;
|
|
775
775
|
textareaCalcStyle: import("vue").ShallowRef<import("vue").StyleValue>;
|
|
776
776
|
_ref: import("vue").ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
777
|
+
wrapperRef: import("vue").ShallowRef<HTMLElement | undefined>;
|
|
778
|
+
isFocused: import("vue").Ref<boolean>;
|
|
779
|
+
handleFocus: (event: FocusEvent) => void;
|
|
780
|
+
handleBlur: (event: FocusEvent) => void;
|
|
777
781
|
needStatusIcon: import("vue").ComputedRef<boolean>;
|
|
778
782
|
validateState: import("vue").ComputedRef<"" | "success" | "error" | "validating">;
|
|
779
783
|
validateIcon: import("vue").ComputedRef<"" | import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
@@ -801,8 +805,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
801
805
|
handlePasswordVisible: () => void;
|
|
802
806
|
focus: () => Promise<void>;
|
|
803
807
|
blur: () => void | undefined;
|
|
804
|
-
handleFocus: (event: FocusEvent) => void;
|
|
805
|
-
handleBlur: (event: FocusEvent) => void;
|
|
806
808
|
handleMouseLeave: (evt: MouseEvent) => void;
|
|
807
809
|
handleMouseEnter: (evt: MouseEvent) => void;
|
|
808
810
|
handleKeydown: (evt: KeyboardEvent) => void;
|
|
@@ -1096,13 +1098,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1096
1098
|
};
|
|
1097
1099
|
input: import("vue").ShallowRef<HTMLInputElement | undefined>;
|
|
1098
1100
|
textarea: import("vue").ShallowRef<HTMLTextAreaElement | undefined>;
|
|
1099
|
-
focused: import("vue").Ref<boolean>;
|
|
1100
1101
|
hovering: import("vue").Ref<boolean>;
|
|
1101
1102
|
isComposing: import("vue").Ref<boolean>;
|
|
1102
1103
|
passwordVisible: import("vue").Ref<boolean>;
|
|
1103
1104
|
countStyle: import("vue").Ref<import("vue").StyleValue | undefined>;
|
|
1104
1105
|
textareaCalcStyle: import("vue").ShallowRef<import("vue").StyleValue>;
|
|
1105
1106
|
_ref: import("vue").ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
1107
|
+
wrapperRef: import("vue").ShallowRef<HTMLElement | undefined>;
|
|
1108
|
+
isFocused: import("vue").Ref<boolean>;
|
|
1109
|
+
handleFocus: (event: FocusEvent) => void;
|
|
1110
|
+
handleBlur: (event: FocusEvent) => void;
|
|
1106
1111
|
needStatusIcon: import("vue").ComputedRef<boolean>;
|
|
1107
1112
|
validateState: import("vue").ComputedRef<"" | "success" | "error" | "validating">;
|
|
1108
1113
|
validateIcon: import("vue").ComputedRef<"" | import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
@@ -1130,8 +1135,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1130
1135
|
handlePasswordVisible: () => void;
|
|
1131
1136
|
focus: () => Promise<void>;
|
|
1132
1137
|
blur: () => void | undefined;
|
|
1133
|
-
handleFocus: (event: FocusEvent) => void;
|
|
1134
|
-
handleBlur: (event: FocusEvent) => void;
|
|
1135
1138
|
handleMouseLeave: (evt: MouseEvent) => void;
|
|
1136
1139
|
handleMouseEnter: (evt: MouseEvent) => void;
|
|
1137
1140
|
handleKeydown: (evt: KeyboardEvent) => void;
|
|
@@ -230,13 +230,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
230
230
|
};
|
|
231
231
|
input: import("vue").ShallowRef<HTMLInputElement | undefined>;
|
|
232
232
|
textarea: import("vue").ShallowRef<HTMLTextAreaElement | undefined>;
|
|
233
|
-
focused: import("vue").Ref<boolean>;
|
|
234
233
|
hovering: import("vue").Ref<boolean>;
|
|
235
234
|
isComposing: import("vue").Ref<boolean>;
|
|
236
235
|
passwordVisible: import("vue").Ref<boolean>;
|
|
237
236
|
countStyle: import("vue").Ref<import("vue").StyleValue | undefined>;
|
|
238
237
|
textareaCalcStyle: import("vue").ShallowRef<import("vue").StyleValue>;
|
|
239
238
|
_ref: import("vue").ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
239
|
+
wrapperRef: import("vue").ShallowRef<HTMLElement | undefined>;
|
|
240
|
+
isFocused: import("vue").Ref<boolean>;
|
|
241
|
+
handleFocus: (event: FocusEvent) => void;
|
|
242
|
+
handleBlur: (event: FocusEvent) => void;
|
|
240
243
|
needStatusIcon: import("vue").ComputedRef<boolean>;
|
|
241
244
|
validateState: import("vue").ComputedRef<"" | "success" | "error" | "validating">;
|
|
242
245
|
validateIcon: import("vue").ComputedRef<"" | import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
@@ -264,8 +267,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
264
267
|
handlePasswordVisible: () => void;
|
|
265
268
|
focus: () => Promise<void>;
|
|
266
269
|
blur: () => void | undefined;
|
|
267
|
-
handleFocus: (event: FocusEvent) => void;
|
|
268
|
-
handleBlur: (event: FocusEvent) => void;
|
|
269
270
|
handleMouseLeave: (evt: MouseEvent) => void;
|
|
270
271
|
handleMouseEnter: (evt: MouseEvent) => void;
|
|
271
272
|
handleKeydown: (evt: KeyboardEvent) => void;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
require('../../utils/index.js');
|
|
6
|
-
var scrollbar$1 = require('./src/
|
|
6
|
+
var scrollbar$1 = require('./src/scrollbar2.js');
|
|
7
7
|
var util = require('./src/util.js');
|
|
8
|
-
var scrollbar = require('./src/
|
|
8
|
+
var scrollbar = require('./src/scrollbar.js');
|
|
9
9
|
var thumb = require('./src/thumb.js');
|
|
10
10
|
var constants = require('./src/constants.js');
|
|
11
11
|
var install = require('../../utils/vue/install.js');
|