cy-element-ui 1.1.19 → 1.1.21
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/lib/index.js +1 -1
- package/package.json +1 -1
- package/src/index.js +1 -1
- package/lib/Alert.js +0 -420
- package/lib/Aside.js +0 -277
- package/lib/Autocomplete.js +0 -2051
- package/lib/Avatar.js +0 -363
- package/lib/Backtop.js +0 -404
- package/lib/Badge.js +0 -334
- package/lib/Breadcrumb.js +0 -293
- package/lib/BreadcrumbItem.js +0 -322
- package/lib/Button.js +0 -357
- package/lib/ButtonGroup.js +0 -262
- package/lib/Calendar.js +0 -1146
- package/lib/Card.js +0 -297
- package/lib/Carousel.js +0 -707
- package/lib/CarouselItem.js +0 -434
- package/lib/Cascader.js +0 -4641
- package/lib/CascaderPanel.js +0 -2602
- package/lib/Checkbox.js +0 -627
- package/lib/CheckboxButton.js +0 -583
- package/lib/CheckboxGroup.js +0 -313
- package/lib/Col.js +0 -177
- package/lib/Collapse.js +0 -329
- package/lib/CollapseItem.js +0 -497
- package/lib/ColorPicker.js +0 -2885
- package/lib/Container.js +0 -288
- package/lib/CySelectDisplayInput.js +0 -367
- package/lib/CySubTitle.js +0 -295
- package/lib/CyTabDialog.js +0 -1184
- package/lib/CyTreeSelect.js +0 -4422
- package/lib/DatePicker.js +0 -7574
- package/lib/Descriptions.js +0 -457
- package/lib/DescriptionsItem.js +0 -140
- package/lib/Dialog.js +0 -598
- package/lib/Divider.js +0 -313
- package/lib/Drawer.js +0 -592
- package/lib/Dropdown.js +0 -856
- package/lib/DropdownItem.js +0 -316
- package/lib/DropdownMenu.js +0 -351
- package/lib/Empty.js +0 -730
- package/lib/Footer.js +0 -277
- package/lib/Form.js +0 -466
- package/lib/FormItem.js +0 -826
- package/lib/Header.js +0 -277
- package/lib/Icon.js +0 -265
- package/lib/Image.js +0 -1138
- package/lib/InfiniteScroll.js +0 -301
- package/lib/Input.js +0 -999
- package/lib/InputNumber.js +0 -1552
- package/lib/Link.js +0 -332
- package/lib/Loading.js +0 -631
- package/lib/Main.js +0 -264
- package/lib/Menu.js +0 -865
- package/lib/MenuItem.js +0 -818
- package/lib/MenuItemGroup.js +0 -308
- package/lib/Message.js +0 -548
- package/lib/MessageBox.js +0 -2134
- package/lib/Notification.js +0 -615
- package/lib/Option.js +0 -474
- package/lib/OptionGroup.js +0 -344
- package/lib/PageHeader.js +0 -319
- package/lib/Pagination.js +0 -4123
- package/lib/Popconfirm.js +0 -1025
- package/lib/Popover.js +0 -617
- package/lib/Progress.js +0 -595
- package/lib/Radio.js +0 -497
- package/lib/RadioButton.js +0 -463
- package/lib/RadioGroup.js +0 -391
- package/lib/Rate.js +0 -670
- package/lib/Result.js +0 -578
- package/lib/Row.js +0 -149
- package/lib/Scrollbar.js +0 -423
- package/lib/Select.js +0 -3368
- package/lib/Skeleton.js +0 -372
- package/lib/SkeletonItem.js +0 -342
- package/lib/Slider.js +0 -2854
- package/lib/Spinner.js +0 -301
- package/lib/Statistic.js +0 -533
- package/lib/Step.js +0 -522
- package/lib/Steps.js +0 -342
- package/lib/Submenu.js +0 -700
- package/lib/Switch.js +0 -554
- package/lib/TabPane.js +0 -332
- package/lib/Table.js +0 -6125
- package/lib/TableColumn.js +0 -1481
- package/lib/Tabs.js +0 -920
- package/lib/Tag.js +0 -304
- package/lib/TimePicker.js +0 -4059
- package/lib/TimeSelect.js +0 -2871
- package/lib/Timeline.js +0 -275
- package/lib/TimelineItem.js +0 -371
- package/lib/Tooltip.js +0 -425
- package/lib/Transfer.js +0 -2557
- package/lib/Tree.js +0 -2680
- package/lib/Upload.js +0 -1782
package/lib/Input.js
DELETED
|
@@ -1,999 +0,0 @@
|
|
|
1
|
-
module.exports =
|
|
2
|
-
/******/ (function(modules) { // webpackBootstrap
|
|
3
|
-
/******/ // The module cache
|
|
4
|
-
/******/ var installedModules = {};
|
|
5
|
-
/******/
|
|
6
|
-
/******/ // The require function
|
|
7
|
-
/******/ function __webpack_require__(moduleId) {
|
|
8
|
-
/******/
|
|
9
|
-
/******/ // Check if module is in cache
|
|
10
|
-
/******/ if(installedModules[moduleId]) {
|
|
11
|
-
/******/ return installedModules[moduleId].exports;
|
|
12
|
-
/******/ }
|
|
13
|
-
/******/ // Create a new module (and put it into the cache)
|
|
14
|
-
/******/ var module = installedModules[moduleId] = {
|
|
15
|
-
/******/ i: moduleId,
|
|
16
|
-
/******/ l: false,
|
|
17
|
-
/******/ exports: {}
|
|
18
|
-
/******/ };
|
|
19
|
-
/******/
|
|
20
|
-
/******/ // Execute the module function
|
|
21
|
-
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
22
|
-
/******/
|
|
23
|
-
/******/ // Flag the module as loaded
|
|
24
|
-
/******/ module.l = true;
|
|
25
|
-
/******/
|
|
26
|
-
/******/ // Return the exports of the module
|
|
27
|
-
/******/ return module.exports;
|
|
28
|
-
/******/ }
|
|
29
|
-
/******/
|
|
30
|
-
/******/
|
|
31
|
-
/******/ // expose the modules object (__webpack_modules__)
|
|
32
|
-
/******/ __webpack_require__.m = modules;
|
|
33
|
-
/******/
|
|
34
|
-
/******/ // expose the module cache
|
|
35
|
-
/******/ __webpack_require__.c = installedModules;
|
|
36
|
-
/******/
|
|
37
|
-
/******/ // define getter function for harmony exports
|
|
38
|
-
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
39
|
-
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
40
|
-
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
41
|
-
/******/ }
|
|
42
|
-
/******/ };
|
|
43
|
-
/******/
|
|
44
|
-
/******/ // define __esModule on exports
|
|
45
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
46
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
47
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
48
|
-
/******/ }
|
|
49
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
50
|
-
/******/ };
|
|
51
|
-
/******/
|
|
52
|
-
/******/ // create a fake namespace object
|
|
53
|
-
/******/ // mode & 1: value is a module id, require it
|
|
54
|
-
/******/ // mode & 2: merge all properties of value into the ns
|
|
55
|
-
/******/ // mode & 4: return value when already ns object
|
|
56
|
-
/******/ // mode & 8|1: behave like require
|
|
57
|
-
/******/ __webpack_require__.t = function(value, mode) {
|
|
58
|
-
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
59
|
-
/******/ if(mode & 8) return value;
|
|
60
|
-
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
61
|
-
/******/ var ns = Object.create(null);
|
|
62
|
-
/******/ __webpack_require__.r(ns);
|
|
63
|
-
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
64
|
-
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
65
|
-
/******/ return ns;
|
|
66
|
-
/******/ };
|
|
67
|
-
/******/
|
|
68
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
69
|
-
/******/ __webpack_require__.n = function(module) {
|
|
70
|
-
/******/ var getter = module && module.__esModule ?
|
|
71
|
-
/******/ function getDefault() { return module['default']; } :
|
|
72
|
-
/******/ function getModuleExports() { return module; };
|
|
73
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
74
|
-
/******/ return getter;
|
|
75
|
-
/******/ };
|
|
76
|
-
/******/
|
|
77
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
|
78
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
79
|
-
/******/
|
|
80
|
-
/******/ // __webpack_public_path__
|
|
81
|
-
/******/ __webpack_require__.p = "/dist/";
|
|
82
|
-
/******/
|
|
83
|
-
/******/
|
|
84
|
-
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s = 13);
|
|
86
|
-
/******/ })
|
|
87
|
-
/************************************************************************/
|
|
88
|
-
/******/ ([
|
|
89
|
-
/* 0 */
|
|
90
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
91
|
-
|
|
92
|
-
"use strict";
|
|
93
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
94
|
-
/* globals __VUE_SSR_CONTEXT__ */
|
|
95
|
-
|
|
96
|
-
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
97
|
-
// This module is a runtime utility for cleaner component module output and will
|
|
98
|
-
// be included in the final webpack user bundle.
|
|
99
|
-
|
|
100
|
-
function normalizeComponent(
|
|
101
|
-
scriptExports,
|
|
102
|
-
render,
|
|
103
|
-
staticRenderFns,
|
|
104
|
-
functionalTemplate,
|
|
105
|
-
injectStyles,
|
|
106
|
-
scopeId,
|
|
107
|
-
moduleIdentifier /* server only */,
|
|
108
|
-
shadowMode /* vue-cli only */
|
|
109
|
-
) {
|
|
110
|
-
// Vue.extend constructor export interop
|
|
111
|
-
var options =
|
|
112
|
-
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
113
|
-
|
|
114
|
-
// render functions
|
|
115
|
-
if (render) {
|
|
116
|
-
options.render = render
|
|
117
|
-
options.staticRenderFns = staticRenderFns
|
|
118
|
-
options._compiled = true
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
// functional template
|
|
122
|
-
if (functionalTemplate) {
|
|
123
|
-
options.functional = true
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
// scopedId
|
|
127
|
-
if (scopeId) {
|
|
128
|
-
options._scopeId = 'data-v-' + scopeId
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
var hook
|
|
132
|
-
if (moduleIdentifier) {
|
|
133
|
-
// server build
|
|
134
|
-
hook = function (context) {
|
|
135
|
-
// 2.3 injection
|
|
136
|
-
context =
|
|
137
|
-
context || // cached call
|
|
138
|
-
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
139
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
140
|
-
// 2.2 with runInNewContext: true
|
|
141
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
142
|
-
context = __VUE_SSR_CONTEXT__
|
|
143
|
-
}
|
|
144
|
-
// inject component styles
|
|
145
|
-
if (injectStyles) {
|
|
146
|
-
injectStyles.call(this, context)
|
|
147
|
-
}
|
|
148
|
-
// register component module identifier for async chunk inferrence
|
|
149
|
-
if (context && context._registeredComponents) {
|
|
150
|
-
context._registeredComponents.add(moduleIdentifier)
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
// used by ssr in case component is cached and beforeCreate
|
|
154
|
-
// never gets called
|
|
155
|
-
options._ssrRegister = hook
|
|
156
|
-
} else if (injectStyles) {
|
|
157
|
-
hook = shadowMode
|
|
158
|
-
? function () {
|
|
159
|
-
injectStyles.call(
|
|
160
|
-
this,
|
|
161
|
-
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
162
|
-
)
|
|
163
|
-
}
|
|
164
|
-
: injectStyles
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
if (hook) {
|
|
168
|
-
if (options.functional) {
|
|
169
|
-
// for template-only hot-reload because in that case the render fn doesn't
|
|
170
|
-
// go through the normalizer
|
|
171
|
-
options._injectStyles = hook
|
|
172
|
-
// register for functional component in vue file
|
|
173
|
-
var originalRender = options.render
|
|
174
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
175
|
-
hook.call(context)
|
|
176
|
-
return originalRender(h, context)
|
|
177
|
-
}
|
|
178
|
-
} else {
|
|
179
|
-
// inject component registration as beforeCreate hook
|
|
180
|
-
var existing = options.beforeCreate
|
|
181
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
return {
|
|
186
|
-
exports: scriptExports,
|
|
187
|
-
options: options
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
/***/ }),
|
|
193
|
-
/* 1 */,
|
|
194
|
-
/* 2 */,
|
|
195
|
-
/* 3 */,
|
|
196
|
-
/* 4 */
|
|
197
|
-
/***/ (function(module, exports) {
|
|
198
|
-
|
|
199
|
-
module.exports = require("element-ui/lib/mixins/emitter");
|
|
200
|
-
|
|
201
|
-
/***/ }),
|
|
202
|
-
/* 5 */,
|
|
203
|
-
/* 6 */
|
|
204
|
-
/***/ (function(module, exports) {
|
|
205
|
-
|
|
206
|
-
module.exports = require("element-ui/lib/utils/merge");
|
|
207
|
-
|
|
208
|
-
/***/ }),
|
|
209
|
-
/* 7 */
|
|
210
|
-
/***/ (function(module, exports) {
|
|
211
|
-
|
|
212
|
-
module.exports = require("element-ui/lib/mixins/migrating");
|
|
213
|
-
|
|
214
|
-
/***/ }),
|
|
215
|
-
/* 8 */,
|
|
216
|
-
/* 9 */,
|
|
217
|
-
/* 10 */,
|
|
218
|
-
/* 11 */
|
|
219
|
-
/***/ (function(module, exports) {
|
|
220
|
-
|
|
221
|
-
module.exports = require("element-ui/lib/utils/shared");
|
|
222
|
-
|
|
223
|
-
/***/ }),
|
|
224
|
-
/* 12 */,
|
|
225
|
-
/* 13 */
|
|
226
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
227
|
-
|
|
228
|
-
"use strict";
|
|
229
|
-
// ESM COMPAT FLAG
|
|
230
|
-
__webpack_require__.r(__webpack_exports__);
|
|
231
|
-
|
|
232
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/input/src/input.vue?vue&type=template&id=048a9cde
|
|
233
|
-
var render = function () {
|
|
234
|
-
var _vm = this
|
|
235
|
-
var _h = _vm.$createElement
|
|
236
|
-
var _c = _vm._self._c || _h
|
|
237
|
-
return _c(
|
|
238
|
-
"div",
|
|
239
|
-
{
|
|
240
|
-
class: [
|
|
241
|
-
_vm.type === "textarea" ? "el-textarea" : "el-input",
|
|
242
|
-
_vm.inputSize ? "el-input--" + _vm.inputSize : "",
|
|
243
|
-
{
|
|
244
|
-
"is-disabled": _vm.inputDisabled,
|
|
245
|
-
"is-exceed": _vm.inputExceed,
|
|
246
|
-
"el-input-group": _vm.$slots.prepend || _vm.$slots.append,
|
|
247
|
-
"el-input-group--append": _vm.$slots.append,
|
|
248
|
-
"el-input-group--prepend": _vm.$slots.prepend,
|
|
249
|
-
"el-input--prefix": _vm.$slots.prefix || _vm.prefixIcon,
|
|
250
|
-
"el-input--suffix":
|
|
251
|
-
_vm.$slots.suffix ||
|
|
252
|
-
_vm.suffixIcon ||
|
|
253
|
-
_vm.clearable ||
|
|
254
|
-
_vm.showPassword,
|
|
255
|
-
},
|
|
256
|
-
],
|
|
257
|
-
on: {
|
|
258
|
-
mouseenter: function ($event) {
|
|
259
|
-
_vm.hovering = true
|
|
260
|
-
},
|
|
261
|
-
mouseleave: function ($event) {
|
|
262
|
-
_vm.hovering = false
|
|
263
|
-
},
|
|
264
|
-
},
|
|
265
|
-
},
|
|
266
|
-
[
|
|
267
|
-
_vm.type !== "textarea"
|
|
268
|
-
? [
|
|
269
|
-
_vm.$slots.prepend
|
|
270
|
-
? _c(
|
|
271
|
-
"div",
|
|
272
|
-
{ staticClass: "el-input-group__prepend" },
|
|
273
|
-
[_vm._t("prepend")],
|
|
274
|
-
2
|
|
275
|
-
)
|
|
276
|
-
: _vm._e(),
|
|
277
|
-
_vm.type !== "textarea"
|
|
278
|
-
? _c(
|
|
279
|
-
"input",
|
|
280
|
-
_vm._b(
|
|
281
|
-
{
|
|
282
|
-
ref: "input",
|
|
283
|
-
staticClass: "el-input__inner",
|
|
284
|
-
attrs: {
|
|
285
|
-
tabindex: _vm.tabindex,
|
|
286
|
-
type: _vm.showPassword
|
|
287
|
-
? _vm.passwordVisible
|
|
288
|
-
? "text"
|
|
289
|
-
: "password"
|
|
290
|
-
: _vm.type,
|
|
291
|
-
disabled: _vm.inputDisabled,
|
|
292
|
-
readonly: _vm.readonly,
|
|
293
|
-
autocomplete: _vm.autoComplete || _vm.autocomplete,
|
|
294
|
-
"aria-label": _vm.label,
|
|
295
|
-
},
|
|
296
|
-
on: {
|
|
297
|
-
compositionstart: _vm.handleCompositionStart,
|
|
298
|
-
compositionupdate: _vm.handleCompositionUpdate,
|
|
299
|
-
compositionend: _vm.handleCompositionEnd,
|
|
300
|
-
input: _vm.handleInput,
|
|
301
|
-
focus: _vm.handleFocus,
|
|
302
|
-
blur: _vm.handleBlur,
|
|
303
|
-
change: _vm.handleChange,
|
|
304
|
-
},
|
|
305
|
-
},
|
|
306
|
-
"input",
|
|
307
|
-
_vm.$attrs,
|
|
308
|
-
false
|
|
309
|
-
)
|
|
310
|
-
)
|
|
311
|
-
: _vm._e(),
|
|
312
|
-
_vm.$slots.prefix || _vm.prefixIcon
|
|
313
|
-
? _c(
|
|
314
|
-
"span",
|
|
315
|
-
{ staticClass: "el-input__prefix" },
|
|
316
|
-
[
|
|
317
|
-
_vm._t("prefix"),
|
|
318
|
-
_vm.prefixIcon
|
|
319
|
-
? _c("i", {
|
|
320
|
-
staticClass: "el-input__icon",
|
|
321
|
-
class: _vm.prefixIcon,
|
|
322
|
-
})
|
|
323
|
-
: _vm._e(),
|
|
324
|
-
],
|
|
325
|
-
2
|
|
326
|
-
)
|
|
327
|
-
: _vm._e(),
|
|
328
|
-
_vm.getSuffixVisible()
|
|
329
|
-
? _c("span", { staticClass: "el-input__suffix" }, [
|
|
330
|
-
_c(
|
|
331
|
-
"span",
|
|
332
|
-
{ staticClass: "el-input__suffix-inner" },
|
|
333
|
-
[
|
|
334
|
-
!_vm.showClear ||
|
|
335
|
-
!_vm.showPwdVisible ||
|
|
336
|
-
!_vm.isWordLimitVisible
|
|
337
|
-
? [
|
|
338
|
-
_vm._t("suffix"),
|
|
339
|
-
_vm.suffixIcon
|
|
340
|
-
? _c("i", {
|
|
341
|
-
staticClass: "el-input__icon",
|
|
342
|
-
class: _vm.suffixIcon,
|
|
343
|
-
})
|
|
344
|
-
: _vm._e(),
|
|
345
|
-
]
|
|
346
|
-
: _vm._e(),
|
|
347
|
-
_vm.showClear
|
|
348
|
-
? _c("i", {
|
|
349
|
-
staticClass:
|
|
350
|
-
"el-input__icon el-icon-circle-close el-input__clear",
|
|
351
|
-
on: {
|
|
352
|
-
mousedown: function ($event) {
|
|
353
|
-
$event.preventDefault()
|
|
354
|
-
},
|
|
355
|
-
click: _vm.clear,
|
|
356
|
-
},
|
|
357
|
-
})
|
|
358
|
-
: _vm._e(),
|
|
359
|
-
_vm.showPwdVisible
|
|
360
|
-
? _c("i", {
|
|
361
|
-
staticClass:
|
|
362
|
-
"el-input__icon el-icon-view el-input__clear",
|
|
363
|
-
on: { click: _vm.handlePasswordVisible },
|
|
364
|
-
})
|
|
365
|
-
: _vm._e(),
|
|
366
|
-
_vm.isWordLimitVisible
|
|
367
|
-
? _c("span", { staticClass: "el-input__count" }, [
|
|
368
|
-
_c(
|
|
369
|
-
"span",
|
|
370
|
-
{ staticClass: "el-input__count-inner" },
|
|
371
|
-
[
|
|
372
|
-
_vm._v(
|
|
373
|
-
"\n\t\t\t\t\t\t\t" +
|
|
374
|
-
_vm._s(_vm.textLength) +
|
|
375
|
-
"/" +
|
|
376
|
-
_vm._s(_vm.upperLimit) +
|
|
377
|
-
"\n\t\t\t\t\t\t"
|
|
378
|
-
),
|
|
379
|
-
]
|
|
380
|
-
),
|
|
381
|
-
])
|
|
382
|
-
: _vm._e(),
|
|
383
|
-
],
|
|
384
|
-
2
|
|
385
|
-
),
|
|
386
|
-
_vm.validateState
|
|
387
|
-
? _c("i", {
|
|
388
|
-
staticClass: "el-input__icon",
|
|
389
|
-
class: ["el-input__validateIcon", _vm.validateIcon],
|
|
390
|
-
})
|
|
391
|
-
: _vm._e(),
|
|
392
|
-
])
|
|
393
|
-
: _vm._e(),
|
|
394
|
-
_vm.$slots.append
|
|
395
|
-
? _c(
|
|
396
|
-
"div",
|
|
397
|
-
{ staticClass: "el-input-group__append" },
|
|
398
|
-
[_vm._t("append")],
|
|
399
|
-
2
|
|
400
|
-
)
|
|
401
|
-
: _vm._e(),
|
|
402
|
-
]
|
|
403
|
-
: _c(
|
|
404
|
-
"textarea",
|
|
405
|
-
_vm._b(
|
|
406
|
-
{
|
|
407
|
-
ref: "textarea",
|
|
408
|
-
staticClass: "el-textarea__inner",
|
|
409
|
-
style: _vm.textareaStyle,
|
|
410
|
-
attrs: {
|
|
411
|
-
tabindex: _vm.tabindex,
|
|
412
|
-
disabled: _vm.inputDisabled,
|
|
413
|
-
readonly: _vm.readonly,
|
|
414
|
-
autocomplete: _vm.autoComplete || _vm.autocomplete,
|
|
415
|
-
"aria-label": _vm.label,
|
|
416
|
-
},
|
|
417
|
-
on: {
|
|
418
|
-
compositionstart: _vm.handleCompositionStart,
|
|
419
|
-
compositionupdate: _vm.handleCompositionUpdate,
|
|
420
|
-
compositionend: _vm.handleCompositionEnd,
|
|
421
|
-
input: _vm.handleInput,
|
|
422
|
-
focus: _vm.handleFocus,
|
|
423
|
-
blur: _vm.handleBlur,
|
|
424
|
-
change: _vm.handleChange,
|
|
425
|
-
},
|
|
426
|
-
},
|
|
427
|
-
"textarea",
|
|
428
|
-
_vm.$attrs,
|
|
429
|
-
false
|
|
430
|
-
)
|
|
431
|
-
),
|
|
432
|
-
_vm.isWordLimitVisible && _vm.type === "textarea"
|
|
433
|
-
? _c("span", { staticClass: "el-input__count" }, [
|
|
434
|
-
_vm._v(_vm._s(_vm.textLength) + "/" + _vm._s(_vm.upperLimit)),
|
|
435
|
-
])
|
|
436
|
-
: _vm._e(),
|
|
437
|
-
],
|
|
438
|
-
2
|
|
439
|
-
)
|
|
440
|
-
}
|
|
441
|
-
var staticRenderFns = []
|
|
442
|
-
render._withStripped = true
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
// CONCATENATED MODULE: ./packages/input/src/input.vue?vue&type=template&id=048a9cde
|
|
446
|
-
|
|
447
|
-
// EXTERNAL MODULE: external "element-ui/lib/mixins/emitter"
|
|
448
|
-
var emitter_ = __webpack_require__(4);
|
|
449
|
-
var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
|
|
450
|
-
|
|
451
|
-
// EXTERNAL MODULE: external "element-ui/lib/mixins/migrating"
|
|
452
|
-
var migrating_ = __webpack_require__(7);
|
|
453
|
-
var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_);
|
|
454
|
-
|
|
455
|
-
// CONCATENATED MODULE: ./packages/input/src/calcTextareaHeight.js
|
|
456
|
-
var hiddenTextarea = void 0;
|
|
457
|
-
|
|
458
|
-
var HIDDEN_STYLE = '\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n';
|
|
459
|
-
|
|
460
|
-
var CONTEXT_STYLE = ['letter-spacing', 'line-height', 'padding-top', 'padding-bottom', 'font-family', 'font-weight', 'font-size', 'text-rendering', 'text-transform', 'width', 'text-indent', 'padding-left', 'padding-right', 'border-width', 'box-sizing'];
|
|
461
|
-
|
|
462
|
-
function calculateNodeStyling(targetElement) {
|
|
463
|
-
var style = window.getComputedStyle(targetElement);
|
|
464
|
-
|
|
465
|
-
var boxSizing = style.getPropertyValue('box-sizing');
|
|
466
|
-
|
|
467
|
-
var paddingSize = parseFloat(style.getPropertyValue('padding-bottom')) + parseFloat(style.getPropertyValue('padding-top'));
|
|
468
|
-
|
|
469
|
-
var borderSize = parseFloat(style.getPropertyValue('border-bottom-width')) + parseFloat(style.getPropertyValue('border-top-width'));
|
|
470
|
-
|
|
471
|
-
var contextStyle = CONTEXT_STYLE.map(function (name) {
|
|
472
|
-
return name + ':' + style.getPropertyValue(name);
|
|
473
|
-
}).join(';');
|
|
474
|
-
|
|
475
|
-
return { contextStyle: contextStyle, paddingSize: paddingSize, borderSize: borderSize, boxSizing: boxSizing };
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
function calcTextareaHeight(targetElement) {
|
|
479
|
-
var minRows = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
480
|
-
var maxRows = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
481
|
-
|
|
482
|
-
if (!hiddenTextarea) {
|
|
483
|
-
hiddenTextarea = document.createElement('textarea');
|
|
484
|
-
document.body.appendChild(hiddenTextarea);
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
var _calculateNodeStyling = calculateNodeStyling(targetElement),
|
|
488
|
-
paddingSize = _calculateNodeStyling.paddingSize,
|
|
489
|
-
borderSize = _calculateNodeStyling.borderSize,
|
|
490
|
-
boxSizing = _calculateNodeStyling.boxSizing,
|
|
491
|
-
contextStyle = _calculateNodeStyling.contextStyle;
|
|
492
|
-
|
|
493
|
-
hiddenTextarea.setAttribute('style', contextStyle + ';' + HIDDEN_STYLE);
|
|
494
|
-
hiddenTextarea.value = targetElement.value || targetElement.placeholder || '';
|
|
495
|
-
|
|
496
|
-
var height = hiddenTextarea.scrollHeight;
|
|
497
|
-
var result = {};
|
|
498
|
-
|
|
499
|
-
if (boxSizing === 'border-box') {
|
|
500
|
-
height = height + borderSize;
|
|
501
|
-
} else if (boxSizing === 'content-box') {
|
|
502
|
-
height = height - paddingSize;
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
hiddenTextarea.value = '';
|
|
506
|
-
var singleRowHeight = hiddenTextarea.scrollHeight - paddingSize;
|
|
507
|
-
|
|
508
|
-
if (minRows !== null) {
|
|
509
|
-
var minHeight = singleRowHeight * minRows;
|
|
510
|
-
if (boxSizing === 'border-box') {
|
|
511
|
-
minHeight = minHeight + paddingSize + borderSize;
|
|
512
|
-
}
|
|
513
|
-
height = Math.max(minHeight, height);
|
|
514
|
-
result.minHeight = minHeight + 'px';
|
|
515
|
-
}
|
|
516
|
-
if (maxRows !== null) {
|
|
517
|
-
var maxHeight = singleRowHeight * maxRows;
|
|
518
|
-
if (boxSizing === 'border-box') {
|
|
519
|
-
maxHeight = maxHeight + paddingSize + borderSize;
|
|
520
|
-
}
|
|
521
|
-
height = Math.min(maxHeight, height);
|
|
522
|
-
}
|
|
523
|
-
result.height = height + 'px';
|
|
524
|
-
hiddenTextarea.parentNode && hiddenTextarea.parentNode.removeChild(hiddenTextarea);
|
|
525
|
-
hiddenTextarea = null;
|
|
526
|
-
return result;
|
|
527
|
-
};
|
|
528
|
-
// EXTERNAL MODULE: external "element-ui/lib/utils/merge"
|
|
529
|
-
var merge_ = __webpack_require__(6);
|
|
530
|
-
var merge_default = /*#__PURE__*/__webpack_require__.n(merge_);
|
|
531
|
-
|
|
532
|
-
// EXTERNAL MODULE: external "element-ui/lib/utils/shared"
|
|
533
|
-
var shared_ = __webpack_require__(11);
|
|
534
|
-
|
|
535
|
-
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/input/src/input.vue?vue&type=script&lang=js
|
|
536
|
-
//
|
|
537
|
-
//
|
|
538
|
-
//
|
|
539
|
-
//
|
|
540
|
-
//
|
|
541
|
-
//
|
|
542
|
-
//
|
|
543
|
-
//
|
|
544
|
-
//
|
|
545
|
-
//
|
|
546
|
-
//
|
|
547
|
-
//
|
|
548
|
-
//
|
|
549
|
-
//
|
|
550
|
-
//
|
|
551
|
-
//
|
|
552
|
-
//
|
|
553
|
-
//
|
|
554
|
-
//
|
|
555
|
-
//
|
|
556
|
-
//
|
|
557
|
-
//
|
|
558
|
-
//
|
|
559
|
-
//
|
|
560
|
-
//
|
|
561
|
-
//
|
|
562
|
-
//
|
|
563
|
-
//
|
|
564
|
-
//
|
|
565
|
-
//
|
|
566
|
-
//
|
|
567
|
-
//
|
|
568
|
-
//
|
|
569
|
-
//
|
|
570
|
-
//
|
|
571
|
-
//
|
|
572
|
-
//
|
|
573
|
-
//
|
|
574
|
-
//
|
|
575
|
-
//
|
|
576
|
-
//
|
|
577
|
-
//
|
|
578
|
-
//
|
|
579
|
-
//
|
|
580
|
-
//
|
|
581
|
-
//
|
|
582
|
-
//
|
|
583
|
-
//
|
|
584
|
-
//
|
|
585
|
-
//
|
|
586
|
-
//
|
|
587
|
-
//
|
|
588
|
-
//
|
|
589
|
-
//
|
|
590
|
-
//
|
|
591
|
-
//
|
|
592
|
-
//
|
|
593
|
-
//
|
|
594
|
-
//
|
|
595
|
-
//
|
|
596
|
-
//
|
|
597
|
-
//
|
|
598
|
-
//
|
|
599
|
-
//
|
|
600
|
-
//
|
|
601
|
-
//
|
|
602
|
-
//
|
|
603
|
-
//
|
|
604
|
-
//
|
|
605
|
-
//
|
|
606
|
-
//
|
|
607
|
-
//
|
|
608
|
-
//
|
|
609
|
-
//
|
|
610
|
-
//
|
|
611
|
-
//
|
|
612
|
-
//
|
|
613
|
-
//
|
|
614
|
-
//
|
|
615
|
-
//
|
|
616
|
-
//
|
|
617
|
-
//
|
|
618
|
-
//
|
|
619
|
-
//
|
|
620
|
-
//
|
|
621
|
-
//
|
|
622
|
-
//
|
|
623
|
-
//
|
|
624
|
-
//
|
|
625
|
-
//
|
|
626
|
-
//
|
|
627
|
-
//
|
|
628
|
-
//
|
|
629
|
-
//
|
|
630
|
-
//
|
|
631
|
-
//
|
|
632
|
-
//
|
|
633
|
-
//
|
|
634
|
-
//
|
|
635
|
-
//
|
|
636
|
-
//
|
|
637
|
-
//
|
|
638
|
-
//
|
|
639
|
-
//
|
|
640
|
-
//
|
|
641
|
-
//
|
|
642
|
-
//
|
|
643
|
-
//
|
|
644
|
-
//
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
/* harmony default export */ var inputvue_type_script_lang_js = ({
|
|
653
|
-
name: 'ElInput',
|
|
654
|
-
|
|
655
|
-
componentName: 'ElInput',
|
|
656
|
-
|
|
657
|
-
mixins: [emitter_default.a, migrating_default.a],
|
|
658
|
-
|
|
659
|
-
inheritAttrs: false,
|
|
660
|
-
|
|
661
|
-
inject: {
|
|
662
|
-
elForm: {
|
|
663
|
-
default: ''
|
|
664
|
-
},
|
|
665
|
-
elFormItem: {
|
|
666
|
-
default: ''
|
|
667
|
-
}
|
|
668
|
-
},
|
|
669
|
-
|
|
670
|
-
data: function data() {
|
|
671
|
-
return {
|
|
672
|
-
textareaCalcStyle: {},
|
|
673
|
-
hovering: false,
|
|
674
|
-
focused: false,
|
|
675
|
-
isComposing: false,
|
|
676
|
-
passwordVisible: false
|
|
677
|
-
};
|
|
678
|
-
},
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
props: {
|
|
682
|
-
value: [String, Number],
|
|
683
|
-
size: String,
|
|
684
|
-
resize: String,
|
|
685
|
-
form: String,
|
|
686
|
-
disabled: Boolean,
|
|
687
|
-
readonly: Boolean,
|
|
688
|
-
type: {
|
|
689
|
-
type: String,
|
|
690
|
-
default: 'text'
|
|
691
|
-
},
|
|
692
|
-
autosize: {
|
|
693
|
-
type: [Boolean, Object],
|
|
694
|
-
default: false
|
|
695
|
-
},
|
|
696
|
-
autocomplete: {
|
|
697
|
-
type: String,
|
|
698
|
-
default: 'off'
|
|
699
|
-
},
|
|
700
|
-
/** @Deprecated in next major version */
|
|
701
|
-
autoComplete: {
|
|
702
|
-
type: String,
|
|
703
|
-
validator: function validator(val) {
|
|
704
|
-
false && false;
|
|
705
|
-
return true;
|
|
706
|
-
}
|
|
707
|
-
},
|
|
708
|
-
validateEvent: {
|
|
709
|
-
type: Boolean,
|
|
710
|
-
default: true
|
|
711
|
-
},
|
|
712
|
-
suffixIcon: String,
|
|
713
|
-
prefixIcon: String,
|
|
714
|
-
label: String,
|
|
715
|
-
clearable: {
|
|
716
|
-
type: Boolean,
|
|
717
|
-
default: false
|
|
718
|
-
},
|
|
719
|
-
showPassword: {
|
|
720
|
-
type: Boolean,
|
|
721
|
-
default: false
|
|
722
|
-
},
|
|
723
|
-
showWordLimit: {
|
|
724
|
-
type: Boolean,
|
|
725
|
-
default: false
|
|
726
|
-
},
|
|
727
|
-
tabindex: String
|
|
728
|
-
},
|
|
729
|
-
|
|
730
|
-
computed: {
|
|
731
|
-
_elFormItemSize: function _elFormItemSize() {
|
|
732
|
-
return (this.elFormItem || {}).elFormItemSize;
|
|
733
|
-
},
|
|
734
|
-
validateState: function validateState() {
|
|
735
|
-
return this.elFormItem ? this.elFormItem.validateState : '';
|
|
736
|
-
},
|
|
737
|
-
needStatusIcon: function needStatusIcon() {
|
|
738
|
-
return this.elForm ? this.elForm.statusIcon : false;
|
|
739
|
-
},
|
|
740
|
-
validateIcon: function validateIcon() {
|
|
741
|
-
return {
|
|
742
|
-
validating: 'el-icon-loading',
|
|
743
|
-
success: 'el-icon-circle-check',
|
|
744
|
-
error: 'el-icon-circle-close'
|
|
745
|
-
}[this.validateState];
|
|
746
|
-
},
|
|
747
|
-
textareaStyle: function textareaStyle() {
|
|
748
|
-
return merge_default()({}, this.textareaCalcStyle, { resize: this.resize });
|
|
749
|
-
},
|
|
750
|
-
inputSize: function inputSize() {
|
|
751
|
-
return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
|
|
752
|
-
},
|
|
753
|
-
inputDisabled: function inputDisabled() {
|
|
754
|
-
return this.disabled || (this.elForm || {}).disabled;
|
|
755
|
-
},
|
|
756
|
-
nativeInputValue: function nativeInputValue() {
|
|
757
|
-
return this.value === null || this.value === undefined ? '' : String(this.value);
|
|
758
|
-
},
|
|
759
|
-
showClear: function showClear() {
|
|
760
|
-
return this.clearable && !this.inputDisabled && !this.readonly && this.nativeInputValue && (this.focused || this.hovering);
|
|
761
|
-
},
|
|
762
|
-
showPwdVisible: function showPwdVisible() {
|
|
763
|
-
return this.showPassword && !this.inputDisabled && !this.readonly && (!!this.nativeInputValue || this.focused);
|
|
764
|
-
},
|
|
765
|
-
isWordLimitVisible: function isWordLimitVisible() {
|
|
766
|
-
return this.showWordLimit && this.$attrs.maxlength && (this.type === 'text' || this.type === 'textarea') && !this.inputDisabled && !this.readonly && !this.showPassword;
|
|
767
|
-
},
|
|
768
|
-
upperLimit: function upperLimit() {
|
|
769
|
-
return this.$attrs.maxlength;
|
|
770
|
-
},
|
|
771
|
-
textLength: function textLength() {
|
|
772
|
-
if (typeof this.value === 'number') {
|
|
773
|
-
return String(this.value).length;
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
return (this.value || '').length;
|
|
777
|
-
},
|
|
778
|
-
inputExceed: function inputExceed() {
|
|
779
|
-
// show exceed style if length of initial value greater then maxlength
|
|
780
|
-
return this.isWordLimitVisible && this.textLength > this.upperLimit;
|
|
781
|
-
}
|
|
782
|
-
},
|
|
783
|
-
|
|
784
|
-
watch: {
|
|
785
|
-
value: function value(val) {
|
|
786
|
-
this.$nextTick(this.resizeTextarea);
|
|
787
|
-
if (this.validateEvent) {
|
|
788
|
-
this.dispatch('ElFormItem', 'el.form.change', [val]);
|
|
789
|
-
}
|
|
790
|
-
},
|
|
791
|
-
|
|
792
|
-
// native input value is set explicitly
|
|
793
|
-
// do not use v-model / :value in template
|
|
794
|
-
// see: https://github.com/ElemeFE/element/issues/14521
|
|
795
|
-
nativeInputValue: function nativeInputValue() {
|
|
796
|
-
this.setNativeInputValue();
|
|
797
|
-
},
|
|
798
|
-
|
|
799
|
-
// when change between <input> and <textarea>,
|
|
800
|
-
// update DOM dependent value and styles
|
|
801
|
-
// https://github.com/ElemeFE/element/issues/14857
|
|
802
|
-
type: function type() {
|
|
803
|
-
var _this = this;
|
|
804
|
-
|
|
805
|
-
this.$nextTick(function () {
|
|
806
|
-
_this.setNativeInputValue();
|
|
807
|
-
_this.resizeTextarea();
|
|
808
|
-
_this.updateIconOffset();
|
|
809
|
-
});
|
|
810
|
-
}
|
|
811
|
-
},
|
|
812
|
-
|
|
813
|
-
methods: {
|
|
814
|
-
focus: function focus() {
|
|
815
|
-
this.getInput().focus();
|
|
816
|
-
},
|
|
817
|
-
blur: function blur() {
|
|
818
|
-
this.getInput().blur();
|
|
819
|
-
},
|
|
820
|
-
getMigratingConfig: function getMigratingConfig() {
|
|
821
|
-
return {
|
|
822
|
-
props: {
|
|
823
|
-
'icon': 'icon is removed, use suffix-icon / prefix-icon instead.',
|
|
824
|
-
'on-icon-click': 'on-icon-click is removed.'
|
|
825
|
-
},
|
|
826
|
-
events: {
|
|
827
|
-
'click': 'click is removed.'
|
|
828
|
-
}
|
|
829
|
-
};
|
|
830
|
-
},
|
|
831
|
-
handleBlur: function handleBlur(event) {
|
|
832
|
-
this.focused = false;
|
|
833
|
-
this.$emit('blur', event);
|
|
834
|
-
if (this.validateEvent) {
|
|
835
|
-
this.dispatch('ElFormItem', 'el.form.blur', [this.value]);
|
|
836
|
-
}
|
|
837
|
-
},
|
|
838
|
-
select: function select() {
|
|
839
|
-
this.getInput().select();
|
|
840
|
-
},
|
|
841
|
-
resizeTextarea: function resizeTextarea() {
|
|
842
|
-
if (this.$isServer) return;
|
|
843
|
-
var autosize = this.autosize,
|
|
844
|
-
type = this.type;
|
|
845
|
-
|
|
846
|
-
if (type !== 'textarea') return;
|
|
847
|
-
if (!autosize) {
|
|
848
|
-
this.textareaCalcStyle = {
|
|
849
|
-
minHeight: calcTextareaHeight(this.$refs.textarea).minHeight
|
|
850
|
-
};
|
|
851
|
-
return;
|
|
852
|
-
}
|
|
853
|
-
var minRows = autosize.minRows;
|
|
854
|
-
var maxRows = autosize.maxRows;
|
|
855
|
-
|
|
856
|
-
this.textareaCalcStyle = calcTextareaHeight(this.$refs.textarea, minRows, maxRows);
|
|
857
|
-
},
|
|
858
|
-
setNativeInputValue: function setNativeInputValue() {
|
|
859
|
-
var input = this.getInput();
|
|
860
|
-
if (!input) return;
|
|
861
|
-
if (input.value === this.nativeInputValue) return;
|
|
862
|
-
input.value = this.nativeInputValue;
|
|
863
|
-
},
|
|
864
|
-
handleFocus: function handleFocus(event) {
|
|
865
|
-
this.focused = true;
|
|
866
|
-
this.$emit('focus', event);
|
|
867
|
-
},
|
|
868
|
-
handleCompositionStart: function handleCompositionStart(event) {
|
|
869
|
-
this.$emit('compositionstart', event);
|
|
870
|
-
this.isComposing = true;
|
|
871
|
-
},
|
|
872
|
-
handleCompositionUpdate: function handleCompositionUpdate(event) {
|
|
873
|
-
this.$emit('compositionupdate', event);
|
|
874
|
-
var text = event.target.value;
|
|
875
|
-
var lastCharacter = text[text.length - 1] || '';
|
|
876
|
-
this.isComposing = !Object(shared_["isKorean"])(lastCharacter);
|
|
877
|
-
},
|
|
878
|
-
handleCompositionEnd: function handleCompositionEnd(event) {
|
|
879
|
-
this.$emit('compositionend', event);
|
|
880
|
-
if (this.isComposing) {
|
|
881
|
-
this.isComposing = false;
|
|
882
|
-
this.handleInput(event);
|
|
883
|
-
}
|
|
884
|
-
},
|
|
885
|
-
handleInput: function handleInput(event) {
|
|
886
|
-
// should not emit input during composition
|
|
887
|
-
// see: https://github.com/ElemeFE/element/issues/10516
|
|
888
|
-
if (this.isComposing) return;
|
|
889
|
-
|
|
890
|
-
// hack for https://github.com/ElemeFE/element/issues/8548
|
|
891
|
-
// should remove the following line when we don't support IE
|
|
892
|
-
if (event.target.value === this.nativeInputValue) return;
|
|
893
|
-
|
|
894
|
-
this.$emit('input', event.target.value);
|
|
895
|
-
|
|
896
|
-
// ensure native input value is controlled
|
|
897
|
-
// see: https://github.com/ElemeFE/element/issues/12850
|
|
898
|
-
this.$nextTick(this.setNativeInputValue);
|
|
899
|
-
},
|
|
900
|
-
handleChange: function handleChange(event) {
|
|
901
|
-
this.$emit('change', event.target.value);
|
|
902
|
-
},
|
|
903
|
-
calcIconOffset: function calcIconOffset(place) {
|
|
904
|
-
var elList = [].slice.call(this.$el.querySelectorAll('.el-input__' + place) || []);
|
|
905
|
-
if (!elList.length) return;
|
|
906
|
-
var el = null;
|
|
907
|
-
for (var i = 0; i < elList.length; i++) {
|
|
908
|
-
if (elList[i].parentNode === this.$el) {
|
|
909
|
-
el = elList[i];
|
|
910
|
-
break;
|
|
911
|
-
}
|
|
912
|
-
}
|
|
913
|
-
if (!el) return;
|
|
914
|
-
var pendantMap = {
|
|
915
|
-
suffix: 'append',
|
|
916
|
-
prefix: 'prepend'
|
|
917
|
-
};
|
|
918
|
-
|
|
919
|
-
var pendant = pendantMap[place];
|
|
920
|
-
if (this.$slots[pendant]) {
|
|
921
|
-
el.style.transform = 'translateX(' + (place === 'suffix' ? '-' : '') + this.$el.querySelector('.el-input-group__' + pendant).offsetWidth + 'px)';
|
|
922
|
-
} else {
|
|
923
|
-
el.removeAttribute('style');
|
|
924
|
-
}
|
|
925
|
-
},
|
|
926
|
-
updateIconOffset: function updateIconOffset() {
|
|
927
|
-
this.calcIconOffset('prefix');
|
|
928
|
-
this.calcIconOffset('suffix');
|
|
929
|
-
},
|
|
930
|
-
clear: function clear() {
|
|
931
|
-
this.$emit('input', '');
|
|
932
|
-
this.$emit('change', '');
|
|
933
|
-
this.$emit('clear');
|
|
934
|
-
},
|
|
935
|
-
handlePasswordVisible: function handlePasswordVisible() {
|
|
936
|
-
var _this2 = this;
|
|
937
|
-
|
|
938
|
-
this.passwordVisible = !this.passwordVisible;
|
|
939
|
-
this.$nextTick(function () {
|
|
940
|
-
_this2.focus();
|
|
941
|
-
});
|
|
942
|
-
},
|
|
943
|
-
getInput: function getInput() {
|
|
944
|
-
return this.$refs.input || this.$refs.textarea;
|
|
945
|
-
},
|
|
946
|
-
getSuffixVisible: function getSuffixVisible() {
|
|
947
|
-
return this.$slots.suffix || this.suffixIcon || this.showClear || this.showPassword || this.isWordLimitVisible || this.validateState && this.needStatusIcon;
|
|
948
|
-
}
|
|
949
|
-
},
|
|
950
|
-
|
|
951
|
-
created: function created() {
|
|
952
|
-
this.$on('inputSelect', this.select);
|
|
953
|
-
},
|
|
954
|
-
mounted: function mounted() {
|
|
955
|
-
this.setNativeInputValue();
|
|
956
|
-
this.resizeTextarea();
|
|
957
|
-
this.updateIconOffset();
|
|
958
|
-
},
|
|
959
|
-
updated: function updated() {
|
|
960
|
-
this.$nextTick(this.updateIconOffset);
|
|
961
|
-
}
|
|
962
|
-
});
|
|
963
|
-
// CONCATENATED MODULE: ./packages/input/src/input.vue?vue&type=script&lang=js
|
|
964
|
-
/* harmony default export */ var src_inputvue_type_script_lang_js = (inputvue_type_script_lang_js);
|
|
965
|
-
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
966
|
-
var componentNormalizer = __webpack_require__(0);
|
|
967
|
-
|
|
968
|
-
// CONCATENATED MODULE: ./packages/input/src/input.vue
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
/* normalize component */
|
|
975
|
-
|
|
976
|
-
var component = Object(componentNormalizer["a" /* default */])(
|
|
977
|
-
src_inputvue_type_script_lang_js,
|
|
978
|
-
render,
|
|
979
|
-
staticRenderFns,
|
|
980
|
-
false,
|
|
981
|
-
null,
|
|
982
|
-
null,
|
|
983
|
-
null
|
|
984
|
-
|
|
985
|
-
)
|
|
986
|
-
|
|
987
|
-
/* harmony default export */ var input = (component.exports);
|
|
988
|
-
// CONCATENATED MODULE: ./packages/input/index.js
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
/* istanbul ignore next */
|
|
992
|
-
input.install = function (Vue) {
|
|
993
|
-
Vue.component(input.name, input);
|
|
994
|
-
};
|
|
995
|
-
|
|
996
|
-
/* harmony default export */ var packages_input = __webpack_exports__["default"] = (input);
|
|
997
|
-
|
|
998
|
-
/***/ })
|
|
999
|
-
/******/ ]);
|