@panpanzhao/component-ui 0.0.1
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/component-ui.common.js +5689 -0
- package/lib/components/crud.js +2276 -0
- package/lib/components/form-dialog.js +1198 -0
- package/lib/components/form-group.js +883 -0
- package/lib/components/form-input.js +1571 -0
- package/lib/components/form-item.js +284 -0
- package/lib/components/form-view-dialog.js +963 -0
- package/lib/components/form-view-group.js +687 -0
- package/lib/components/form-view.js +409 -0
- package/lib/components/form.js +495 -0
- package/lib/components/table-column.js +1053 -0
- package/lib/components/table-editable.js +954 -0
- package/lib/components/table-search.js +407 -0
- package/lib/components/table.js +659 -0
- package/lib/index.js +1 -0
- package/lib/styles/component-ui.css +1 -0
- package/lib/styles/fonts/element-icons.ttf +0 -0
- package/lib/styles/fonts/element-icons.woff +0 -0
- package/lib/styles/form.css +1 -0
- package/lib/styles/index.css +1 -0
- package/lib/styles/table-editable.css +1 -0
- package/lib/styles/table.css +1 -0
- package/lib/utils/formula/evalutor.js +1883 -0
- package/lib/utils/formula/filter.js +48 -0
- package/lib/utils/formula/function.js +12 -0
- package/lib/utils/formula/index.js +25 -0
- package/lib/utils/formula/lexer.js +590 -0
- package/lib/utils/formula/parser.js +734 -0
- package/package.json +67 -0
|
@@ -0,0 +1,1571 @@
|
|
|
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 = 57);
|
|
86
|
+
/******/ })
|
|
87
|
+
/************************************************************************/
|
|
88
|
+
/******/ ([
|
|
89
|
+
/* 0 */
|
|
90
|
+
/***/ (function(module, exports) {
|
|
91
|
+
|
|
92
|
+
module.exports = require("@vue/babel-helper-vue-jsx-merge-props");
|
|
93
|
+
|
|
94
|
+
/***/ }),
|
|
95
|
+
/* 1 */
|
|
96
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
97
|
+
|
|
98
|
+
"use strict";
|
|
99
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
100
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
|
101
|
+
|
|
102
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
103
|
+
// This module is a runtime utility for cleaner component module output and will
|
|
104
|
+
// be included in the final webpack user bundle.
|
|
105
|
+
|
|
106
|
+
function normalizeComponent(
|
|
107
|
+
scriptExports,
|
|
108
|
+
render,
|
|
109
|
+
staticRenderFns,
|
|
110
|
+
functionalTemplate,
|
|
111
|
+
injectStyles,
|
|
112
|
+
scopeId,
|
|
113
|
+
moduleIdentifier /* server only */,
|
|
114
|
+
shadowMode /* vue-cli only */
|
|
115
|
+
) {
|
|
116
|
+
// Vue.extend constructor export interop
|
|
117
|
+
var options =
|
|
118
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
119
|
+
|
|
120
|
+
// render functions
|
|
121
|
+
if (render) {
|
|
122
|
+
options.render = render
|
|
123
|
+
options.staticRenderFns = staticRenderFns
|
|
124
|
+
options._compiled = true
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// functional template
|
|
128
|
+
if (functionalTemplate) {
|
|
129
|
+
options.functional = true
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// scopedId
|
|
133
|
+
if (scopeId) {
|
|
134
|
+
options._scopeId = 'data-v-' + scopeId
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
var hook
|
|
138
|
+
if (moduleIdentifier) {
|
|
139
|
+
// server build
|
|
140
|
+
hook = function (context) {
|
|
141
|
+
// 2.3 injection
|
|
142
|
+
context =
|
|
143
|
+
context || // cached call
|
|
144
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
145
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
146
|
+
// 2.2 with runInNewContext: true
|
|
147
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
148
|
+
context = __VUE_SSR_CONTEXT__
|
|
149
|
+
}
|
|
150
|
+
// inject component styles
|
|
151
|
+
if (injectStyles) {
|
|
152
|
+
injectStyles.call(this, context)
|
|
153
|
+
}
|
|
154
|
+
// register component module identifier for async chunk inferrence
|
|
155
|
+
if (context && context._registeredComponents) {
|
|
156
|
+
context._registeredComponents.add(moduleIdentifier)
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
// used by ssr in case component is cached and beforeCreate
|
|
160
|
+
// never gets called
|
|
161
|
+
options._ssrRegister = hook
|
|
162
|
+
} else if (injectStyles) {
|
|
163
|
+
hook = shadowMode
|
|
164
|
+
? function () {
|
|
165
|
+
injectStyles.call(
|
|
166
|
+
this,
|
|
167
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
168
|
+
)
|
|
169
|
+
}
|
|
170
|
+
: injectStyles
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
if (hook) {
|
|
174
|
+
if (options.functional) {
|
|
175
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
|
176
|
+
// go through the normalizer
|
|
177
|
+
options._injectStyles = hook
|
|
178
|
+
// register for functional component in vue file
|
|
179
|
+
var originalRender = options.render
|
|
180
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
181
|
+
hook.call(context)
|
|
182
|
+
return originalRender(h, context)
|
|
183
|
+
}
|
|
184
|
+
} else {
|
|
185
|
+
// inject component registration as beforeCreate hook
|
|
186
|
+
var existing = options.beforeCreate
|
|
187
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
return {
|
|
192
|
+
exports: scriptExports,
|
|
193
|
+
options: options
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
/***/ }),
|
|
199
|
+
/* 2 */
|
|
200
|
+
/***/ (function(module, exports) {
|
|
201
|
+
|
|
202
|
+
module.exports = require("component-ui/lib/utils/formula");
|
|
203
|
+
|
|
204
|
+
/***/ }),
|
|
205
|
+
/* 3 */
|
|
206
|
+
/***/ (function(module, exports) {
|
|
207
|
+
|
|
208
|
+
module.exports = require("lodash");
|
|
209
|
+
|
|
210
|
+
/***/ }),
|
|
211
|
+
/* 4 */,
|
|
212
|
+
/* 5 */,
|
|
213
|
+
/* 6 */,
|
|
214
|
+
/* 7 */,
|
|
215
|
+
/* 8 */,
|
|
216
|
+
/* 9 */,
|
|
217
|
+
/* 10 */,
|
|
218
|
+
/* 11 */,
|
|
219
|
+
/* 12 */,
|
|
220
|
+
/* 13 */,
|
|
221
|
+
/* 14 */,
|
|
222
|
+
/* 15 */,
|
|
223
|
+
/* 16 */,
|
|
224
|
+
/* 17 */,
|
|
225
|
+
/* 18 */,
|
|
226
|
+
/* 19 */,
|
|
227
|
+
/* 20 */,
|
|
228
|
+
/* 21 */,
|
|
229
|
+
/* 22 */,
|
|
230
|
+
/* 23 */
|
|
231
|
+
/***/ (function(module, exports) {
|
|
232
|
+
|
|
233
|
+
module.exports = require("element-ui/lib/radio");
|
|
234
|
+
|
|
235
|
+
/***/ }),
|
|
236
|
+
/* 24 */,
|
|
237
|
+
/* 25 */,
|
|
238
|
+
/* 26 */,
|
|
239
|
+
/* 27 */,
|
|
240
|
+
/* 28 */,
|
|
241
|
+
/* 29 */
|
|
242
|
+
/***/ (function(module, exports) {
|
|
243
|
+
|
|
244
|
+
module.exports = require("element-ui/lib/input");
|
|
245
|
+
|
|
246
|
+
/***/ }),
|
|
247
|
+
/* 30 */
|
|
248
|
+
/***/ (function(module, exports) {
|
|
249
|
+
|
|
250
|
+
module.exports = require("element-ui/lib/input-number");
|
|
251
|
+
|
|
252
|
+
/***/ }),
|
|
253
|
+
/* 31 */
|
|
254
|
+
/***/ (function(module, exports) {
|
|
255
|
+
|
|
256
|
+
module.exports = require("element-ui/lib/select");
|
|
257
|
+
|
|
258
|
+
/***/ }),
|
|
259
|
+
/* 32 */
|
|
260
|
+
/***/ (function(module, exports) {
|
|
261
|
+
|
|
262
|
+
module.exports = require("element-ui/lib/option");
|
|
263
|
+
|
|
264
|
+
/***/ }),
|
|
265
|
+
/* 33 */
|
|
266
|
+
/***/ (function(module, exports) {
|
|
267
|
+
|
|
268
|
+
module.exports = require("element-ui/lib/option-group");
|
|
269
|
+
|
|
270
|
+
/***/ }),
|
|
271
|
+
/* 34 */
|
|
272
|
+
/***/ (function(module, exports) {
|
|
273
|
+
|
|
274
|
+
module.exports = require("element-ui/lib/radio-group");
|
|
275
|
+
|
|
276
|
+
/***/ }),
|
|
277
|
+
/* 35 */
|
|
278
|
+
/***/ (function(module, exports) {
|
|
279
|
+
|
|
280
|
+
module.exports = require("element-ui/lib/radio-button");
|
|
281
|
+
|
|
282
|
+
/***/ }),
|
|
283
|
+
/* 36 */
|
|
284
|
+
/***/ (function(module, exports) {
|
|
285
|
+
|
|
286
|
+
module.exports = require("element-ui/lib/checkbox-group");
|
|
287
|
+
|
|
288
|
+
/***/ }),
|
|
289
|
+
/* 37 */
|
|
290
|
+
/***/ (function(module, exports) {
|
|
291
|
+
|
|
292
|
+
module.exports = require("element-ui/lib/checkbox");
|
|
293
|
+
|
|
294
|
+
/***/ }),
|
|
295
|
+
/* 38 */
|
|
296
|
+
/***/ (function(module, exports) {
|
|
297
|
+
|
|
298
|
+
module.exports = require("element-ui/lib/checkbox-button");
|
|
299
|
+
|
|
300
|
+
/***/ }),
|
|
301
|
+
/* 39 */
|
|
302
|
+
/***/ (function(module, exports) {
|
|
303
|
+
|
|
304
|
+
module.exports = require("element-ui/lib/switch");
|
|
305
|
+
|
|
306
|
+
/***/ }),
|
|
307
|
+
/* 40 */
|
|
308
|
+
/***/ (function(module, exports) {
|
|
309
|
+
|
|
310
|
+
module.exports = require("element-ui/lib/cascader");
|
|
311
|
+
|
|
312
|
+
/***/ }),
|
|
313
|
+
/* 41 */
|
|
314
|
+
/***/ (function(module, exports) {
|
|
315
|
+
|
|
316
|
+
module.exports = require("element-ui/lib/slider");
|
|
317
|
+
|
|
318
|
+
/***/ }),
|
|
319
|
+
/* 42 */
|
|
320
|
+
/***/ (function(module, exports) {
|
|
321
|
+
|
|
322
|
+
module.exports = require("element-ui/lib/transfer");
|
|
323
|
+
|
|
324
|
+
/***/ }),
|
|
325
|
+
/* 43 */
|
|
326
|
+
/***/ (function(module, exports) {
|
|
327
|
+
|
|
328
|
+
module.exports = require("element-ui/lib/time-picker");
|
|
329
|
+
|
|
330
|
+
/***/ }),
|
|
331
|
+
/* 44 */
|
|
332
|
+
/***/ (function(module, exports) {
|
|
333
|
+
|
|
334
|
+
module.exports = require("element-ui/lib/date-picker");
|
|
335
|
+
|
|
336
|
+
/***/ }),
|
|
337
|
+
/* 45 */
|
|
338
|
+
/***/ (function(module, exports) {
|
|
339
|
+
|
|
340
|
+
module.exports = require("element-ui/lib/upload");
|
|
341
|
+
|
|
342
|
+
/***/ }),
|
|
343
|
+
/* 46 */,
|
|
344
|
+
/* 47 */,
|
|
345
|
+
/* 48 */,
|
|
346
|
+
/* 49 */,
|
|
347
|
+
/* 50 */,
|
|
348
|
+
/* 51 */,
|
|
349
|
+
/* 52 */,
|
|
350
|
+
/* 53 */,
|
|
351
|
+
/* 54 */,
|
|
352
|
+
/* 55 */,
|
|
353
|
+
/* 56 */,
|
|
354
|
+
/* 57 */
|
|
355
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
356
|
+
|
|
357
|
+
"use strict";
|
|
358
|
+
// ESM COMPAT FLAG
|
|
359
|
+
__webpack_require__.r(__webpack_exports__);
|
|
360
|
+
|
|
361
|
+
// EXTERNAL MODULE: external "@vue/babel-helper-vue-jsx-merge-props"
|
|
362
|
+
var babel_helper_vue_jsx_merge_props_ = __webpack_require__(0);
|
|
363
|
+
var babel_helper_vue_jsx_merge_props_default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props_);
|
|
364
|
+
|
|
365
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/Input.vue?vue&type=template&id=24c10975&
|
|
366
|
+
var Inputvue_type_template_id_24c10975_render = function render() {
|
|
367
|
+
var _vm = this,
|
|
368
|
+
_c = _vm._self._c
|
|
369
|
+
return _c(
|
|
370
|
+
"el-input",
|
|
371
|
+
_vm._g(
|
|
372
|
+
_vm._b(
|
|
373
|
+
{
|
|
374
|
+
scopedSlots: _vm._u(
|
|
375
|
+
[
|
|
376
|
+
{
|
|
377
|
+
key: "prefix",
|
|
378
|
+
fn: function () {
|
|
379
|
+
return [_vm._t("prefix")]
|
|
380
|
+
},
|
|
381
|
+
proxy: true,
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
key: "suffix",
|
|
385
|
+
fn: function () {
|
|
386
|
+
return [_vm._t("suffix")]
|
|
387
|
+
},
|
|
388
|
+
proxy: true,
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
key: "prepend",
|
|
392
|
+
fn: function () {
|
|
393
|
+
return [_vm._t("prepend")]
|
|
394
|
+
},
|
|
395
|
+
proxy: true,
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
key: "append",
|
|
399
|
+
fn: function () {
|
|
400
|
+
return [_vm._t("append")]
|
|
401
|
+
},
|
|
402
|
+
proxy: true,
|
|
403
|
+
},
|
|
404
|
+
],
|
|
405
|
+
null,
|
|
406
|
+
true
|
|
407
|
+
),
|
|
408
|
+
},
|
|
409
|
+
"el-input",
|
|
410
|
+
_vm.attrs,
|
|
411
|
+
false
|
|
412
|
+
),
|
|
413
|
+
_vm.$listeners
|
|
414
|
+
)
|
|
415
|
+
)
|
|
416
|
+
}
|
|
417
|
+
var staticRenderFns = []
|
|
418
|
+
Inputvue_type_template_id_24c10975_render._withStripped = true
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/Input.vue?vue&type=template&id=24c10975&
|
|
422
|
+
|
|
423
|
+
// EXTERNAL MODULE: external "element-ui/lib/input"
|
|
424
|
+
var input_ = __webpack_require__(29);
|
|
425
|
+
var input_default = /*#__PURE__*/__webpack_require__.n(input_);
|
|
426
|
+
|
|
427
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/Input.vue?vue&type=script&lang=js&
|
|
428
|
+
|
|
429
|
+
/* harmony default export */ var Inputvue_type_script_lang_js_ = ({
|
|
430
|
+
name: "Input",
|
|
431
|
+
components: {
|
|
432
|
+
elInput: input_default.a
|
|
433
|
+
},
|
|
434
|
+
props: {},
|
|
435
|
+
computed: {
|
|
436
|
+
attrs: function attrs() {
|
|
437
|
+
return Object.assign({}, this.$attrs);
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
});
|
|
441
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/Input.vue?vue&type=script&lang=js&
|
|
442
|
+
/* harmony default export */ var item_Inputvue_type_script_lang_js_ = (Inputvue_type_script_lang_js_);
|
|
443
|
+
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
444
|
+
var componentNormalizer = __webpack_require__(1);
|
|
445
|
+
|
|
446
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/Input.vue
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
/* normalize component */
|
|
453
|
+
|
|
454
|
+
var component = Object(componentNormalizer["a" /* default */])(
|
|
455
|
+
item_Inputvue_type_script_lang_js_,
|
|
456
|
+
Inputvue_type_template_id_24c10975_render,
|
|
457
|
+
staticRenderFns,
|
|
458
|
+
false,
|
|
459
|
+
null,
|
|
460
|
+
null,
|
|
461
|
+
null
|
|
462
|
+
|
|
463
|
+
)
|
|
464
|
+
|
|
465
|
+
/* harmony default export */ var Input = (component.exports);
|
|
466
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/InputNumber.vue?vue&type=template&id=7a2f5f6e&
|
|
467
|
+
var InputNumbervue_type_template_id_7a2f5f6e_render = function render() {
|
|
468
|
+
var _vm = this,
|
|
469
|
+
_c = _vm._self._c
|
|
470
|
+
return _c(
|
|
471
|
+
"el-input-number",
|
|
472
|
+
_vm._g(
|
|
473
|
+
_vm._b(
|
|
474
|
+
{
|
|
475
|
+
scopedSlots: _vm._u(
|
|
476
|
+
[
|
|
477
|
+
{
|
|
478
|
+
key: "prefix",
|
|
479
|
+
fn: function () {
|
|
480
|
+
return [_vm._t("prefix")]
|
|
481
|
+
},
|
|
482
|
+
proxy: true,
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
key: "suffix",
|
|
486
|
+
fn: function () {
|
|
487
|
+
return [_vm._t("suffix")]
|
|
488
|
+
},
|
|
489
|
+
proxy: true,
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
key: "prepend",
|
|
493
|
+
fn: function () {
|
|
494
|
+
return [_vm._t("prepend")]
|
|
495
|
+
},
|
|
496
|
+
proxy: true,
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
key: "append",
|
|
500
|
+
fn: function () {
|
|
501
|
+
return [_vm._t("append")]
|
|
502
|
+
},
|
|
503
|
+
proxy: true,
|
|
504
|
+
},
|
|
505
|
+
],
|
|
506
|
+
null,
|
|
507
|
+
true
|
|
508
|
+
),
|
|
509
|
+
},
|
|
510
|
+
"el-input-number",
|
|
511
|
+
_vm.attrs,
|
|
512
|
+
false
|
|
513
|
+
),
|
|
514
|
+
_vm.$listeners
|
|
515
|
+
)
|
|
516
|
+
)
|
|
517
|
+
}
|
|
518
|
+
var InputNumbervue_type_template_id_7a2f5f6e_staticRenderFns = []
|
|
519
|
+
InputNumbervue_type_template_id_7a2f5f6e_render._withStripped = true
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/InputNumber.vue?vue&type=template&id=7a2f5f6e&
|
|
523
|
+
|
|
524
|
+
// EXTERNAL MODULE: external "element-ui/lib/input-number"
|
|
525
|
+
var input_number_ = __webpack_require__(30);
|
|
526
|
+
var input_number_default = /*#__PURE__*/__webpack_require__.n(input_number_);
|
|
527
|
+
|
|
528
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/InputNumber.vue?vue&type=script&lang=js&
|
|
529
|
+
|
|
530
|
+
/* harmony default export */ var InputNumbervue_type_script_lang_js_ = ({
|
|
531
|
+
name: "InputNumber",
|
|
532
|
+
components: {
|
|
533
|
+
elInputNumber: input_number_default.a
|
|
534
|
+
},
|
|
535
|
+
props: {},
|
|
536
|
+
computed: {
|
|
537
|
+
attrs: function attrs() {
|
|
538
|
+
return Object.assign({}, this.$attrs);
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
});
|
|
542
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/InputNumber.vue?vue&type=script&lang=js&
|
|
543
|
+
/* harmony default export */ var item_InputNumbervue_type_script_lang_js_ = (InputNumbervue_type_script_lang_js_);
|
|
544
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/InputNumber.vue
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
/* normalize component */
|
|
551
|
+
|
|
552
|
+
var InputNumber_component = Object(componentNormalizer["a" /* default */])(
|
|
553
|
+
item_InputNumbervue_type_script_lang_js_,
|
|
554
|
+
InputNumbervue_type_template_id_7a2f5f6e_render,
|
|
555
|
+
InputNumbervue_type_template_id_7a2f5f6e_staticRenderFns,
|
|
556
|
+
false,
|
|
557
|
+
null,
|
|
558
|
+
null,
|
|
559
|
+
null
|
|
560
|
+
|
|
561
|
+
)
|
|
562
|
+
|
|
563
|
+
/* harmony default export */ var InputNumber = (InputNumber_component.exports);
|
|
564
|
+
// EXTERNAL MODULE: external "element-ui/lib/select"
|
|
565
|
+
var select_ = __webpack_require__(31);
|
|
566
|
+
var select_default = /*#__PURE__*/__webpack_require__.n(select_);
|
|
567
|
+
|
|
568
|
+
// EXTERNAL MODULE: external "element-ui/lib/option"
|
|
569
|
+
var option_ = __webpack_require__(32);
|
|
570
|
+
var option_default = /*#__PURE__*/__webpack_require__.n(option_);
|
|
571
|
+
|
|
572
|
+
// EXTERNAL MODULE: external "element-ui/lib/option-group"
|
|
573
|
+
var option_group_ = __webpack_require__(33);
|
|
574
|
+
var option_group_default = /*#__PURE__*/__webpack_require__.n(option_group_);
|
|
575
|
+
|
|
576
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/SelectTree.vue?vue&type=template&id=626a2185&
|
|
577
|
+
var SelectTreevue_type_template_id_626a2185_render = function render() {
|
|
578
|
+
var _vm = this,
|
|
579
|
+
_c = _vm._self._c
|
|
580
|
+
return _c(
|
|
581
|
+
"div",
|
|
582
|
+
{ staticClass: "select-tree" },
|
|
583
|
+
[
|
|
584
|
+
_c(
|
|
585
|
+
"el-select",
|
|
586
|
+
_vm._g(
|
|
587
|
+
_vm._b(
|
|
588
|
+
{
|
|
589
|
+
ref: "select",
|
|
590
|
+
model: {
|
|
591
|
+
value: _vm.selectedData,
|
|
592
|
+
callback: function ($$v) {
|
|
593
|
+
_vm.selectedData = $$v
|
|
594
|
+
},
|
|
595
|
+
expression: "selectedData",
|
|
596
|
+
},
|
|
597
|
+
},
|
|
598
|
+
"el-select",
|
|
599
|
+
_vm.selectAttrs,
|
|
600
|
+
false
|
|
601
|
+
),
|
|
602
|
+
_vm.selectEvent
|
|
603
|
+
),
|
|
604
|
+
[
|
|
605
|
+
_c(
|
|
606
|
+
"el-option",
|
|
607
|
+
{
|
|
608
|
+
staticClass: "select-tree-option",
|
|
609
|
+
class: {
|
|
610
|
+
"select-tree-option__empty":
|
|
611
|
+
!_vm.options || _vm.options.length === 0,
|
|
612
|
+
},
|
|
613
|
+
attrs: { value: "" },
|
|
614
|
+
},
|
|
615
|
+
[
|
|
616
|
+
_vm.options && _vm.options.length > 0
|
|
617
|
+
? _c(
|
|
618
|
+
"el-tree",
|
|
619
|
+
_vm._g(
|
|
620
|
+
_vm._b(
|
|
621
|
+
{
|
|
622
|
+
ref: "tree",
|
|
623
|
+
attrs: { "filter-node-method": _vm.filterTree },
|
|
624
|
+
on: {
|
|
625
|
+
"node-click": _vm.handleNodeClick,
|
|
626
|
+
"check-change": _vm.handleCheckChange,
|
|
627
|
+
},
|
|
628
|
+
},
|
|
629
|
+
"el-tree",
|
|
630
|
+
_vm.treeAttrs,
|
|
631
|
+
false
|
|
632
|
+
),
|
|
633
|
+
_vm.$listeners
|
|
634
|
+
)
|
|
635
|
+
)
|
|
636
|
+
: _c("p", [_vm._v("无数据")]),
|
|
637
|
+
],
|
|
638
|
+
1
|
|
639
|
+
),
|
|
640
|
+
],
|
|
641
|
+
1
|
|
642
|
+
),
|
|
643
|
+
],
|
|
644
|
+
1
|
|
645
|
+
)
|
|
646
|
+
}
|
|
647
|
+
var SelectTreevue_type_template_id_626a2185_staticRenderFns = []
|
|
648
|
+
SelectTreevue_type_template_id_626a2185_render._withStripped = true
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/SelectTree.vue?vue&type=template&id=626a2185&
|
|
652
|
+
|
|
653
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/SelectTree.vue?vue&type=script&lang=js&
|
|
654
|
+
/* harmony default export */ var SelectTreevue_type_script_lang_js_ = ({
|
|
655
|
+
name: "SelectTree",
|
|
656
|
+
props: {
|
|
657
|
+
value: {
|
|
658
|
+
type: [String, Number, Array]
|
|
659
|
+
},
|
|
660
|
+
// 树结构数据
|
|
661
|
+
options: {
|
|
662
|
+
type: Array,
|
|
663
|
+
default: function _default() {
|
|
664
|
+
return [];
|
|
665
|
+
}
|
|
666
|
+
},
|
|
667
|
+
optionProps: {
|
|
668
|
+
type: Object,
|
|
669
|
+
default: function _default() {
|
|
670
|
+
return {
|
|
671
|
+
value: "value",
|
|
672
|
+
label: "label",
|
|
673
|
+
children: "children"
|
|
674
|
+
};
|
|
675
|
+
}
|
|
676
|
+
},
|
|
677
|
+
// 配置是否可多选
|
|
678
|
+
multiple: {
|
|
679
|
+
type: Boolean,
|
|
680
|
+
default: function _default() {
|
|
681
|
+
return false;
|
|
682
|
+
}
|
|
683
|
+
},
|
|
684
|
+
filterable: {
|
|
685
|
+
type: Boolean,
|
|
686
|
+
default: function _default() {
|
|
687
|
+
return false;
|
|
688
|
+
}
|
|
689
|
+
},
|
|
690
|
+
tree: {
|
|
691
|
+
type: Object,
|
|
692
|
+
default: function _default() {
|
|
693
|
+
return {};
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
},
|
|
697
|
+
data: function data() {
|
|
698
|
+
return {
|
|
699
|
+
selectedData: this.multiple ? [] : null,
|
|
700
|
+
// 选中的name
|
|
701
|
+
checkedKeys: [],
|
|
702
|
+
//选中的id
|
|
703
|
+
checkedData: [] //选中的信息
|
|
704
|
+
};
|
|
705
|
+
},
|
|
706
|
+
|
|
707
|
+
watch: {
|
|
708
|
+
options: {
|
|
709
|
+
handler: function handler() {
|
|
710
|
+
var _this = this;
|
|
711
|
+
this.$nextTick(function () {
|
|
712
|
+
_this.initData();
|
|
713
|
+
});
|
|
714
|
+
},
|
|
715
|
+
deep: true
|
|
716
|
+
}
|
|
717
|
+
},
|
|
718
|
+
computed: {
|
|
719
|
+
selectAttrs: function selectAttrs() {
|
|
720
|
+
return Object.assign({
|
|
721
|
+
clearable: true
|
|
722
|
+
}, this.$attrs, {
|
|
723
|
+
multiple: this.multiple,
|
|
724
|
+
filterable: this.filterable,
|
|
725
|
+
filterMethod: this.filterMethod
|
|
726
|
+
});
|
|
727
|
+
},
|
|
728
|
+
selectEvent: function selectEvent() {
|
|
729
|
+
return Object.assign({}, this.$listeners, {
|
|
730
|
+
change: this.handleChange,
|
|
731
|
+
input: this.handleInput,
|
|
732
|
+
"visible-change": this.handleVisibleChange,
|
|
733
|
+
clear: this.handleClear,
|
|
734
|
+
"remove-tag": this.removeTag
|
|
735
|
+
});
|
|
736
|
+
},
|
|
737
|
+
treeAttrs: function treeAttrs() {
|
|
738
|
+
return Object.assign({
|
|
739
|
+
expandOnClickNode: false,
|
|
740
|
+
highlightCurrent: true,
|
|
741
|
+
checkOnClickNode: true,
|
|
742
|
+
checkStrictly: false //设置true,可以通过输入框的删除按钮删除主节点
|
|
743
|
+
}, this.tree, {
|
|
744
|
+
showCheckbox: this.multiple,
|
|
745
|
+
data: this.options,
|
|
746
|
+
props: this.optionProps,
|
|
747
|
+
nodeKey: this.optionProps.value,
|
|
748
|
+
defaultExpandedKeys: this.checkedKeys,
|
|
749
|
+
defaultCheckedKeys: this.checkedKeys,
|
|
750
|
+
emptyText: "无匹配数据"
|
|
751
|
+
});
|
|
752
|
+
}
|
|
753
|
+
},
|
|
754
|
+
mounted: function mounted() {
|
|
755
|
+
this.initData();
|
|
756
|
+
},
|
|
757
|
+
methods: {
|
|
758
|
+
initData: function initData() {
|
|
759
|
+
if (this.multiple && Array.isArray(this.value)) {
|
|
760
|
+
this.checkedKeys = this.value;
|
|
761
|
+
if (this.$refs.tree) {
|
|
762
|
+
this.$refs.tree.setCheckedKeys(this.value);
|
|
763
|
+
this.setMultipleData();
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
if (this.value !== null && !this.multiple) {
|
|
767
|
+
this.checkedKeys = [this.value];
|
|
768
|
+
if (this.$refs.tree) {
|
|
769
|
+
this.$refs.tree.setCurrentKey(this.value);
|
|
770
|
+
this.setSingleData();
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
},
|
|
774
|
+
filterMethod: function filterMethod(val) {
|
|
775
|
+
this.$refs.tree && this.$refs.tree.filter(val);
|
|
776
|
+
},
|
|
777
|
+
filterTree: function filterTree(value, data) {
|
|
778
|
+
if (!value) return true;
|
|
779
|
+
return data[this.optionProps.label].indexOf(value) !== -1;
|
|
780
|
+
},
|
|
781
|
+
handleChange: function handleChange(value) {
|
|
782
|
+
if (Array.isArray(value)) {
|
|
783
|
+
this.selectedData = value.filter(function (itemVal) {
|
|
784
|
+
return itemVal !== "";
|
|
785
|
+
});
|
|
786
|
+
}
|
|
787
|
+
},
|
|
788
|
+
handleInput: function handleInput(value) {
|
|
789
|
+
var _this2 = this;
|
|
790
|
+
if (!this.multiple) {
|
|
791
|
+
return false;
|
|
792
|
+
}
|
|
793
|
+
//删除处理
|
|
794
|
+
if (Array.isArray(value) && Array.isArray(this.checkedData) && this.checkedData.length > 0) {
|
|
795
|
+
var removeDatas = this.checkedData.filter(function (item) {
|
|
796
|
+
return value.indexOf(item[_this2.optionProps.label]) === -1;
|
|
797
|
+
});
|
|
798
|
+
removeDatas.forEach(function (item) {
|
|
799
|
+
_this2.$refs.tree.setChecked(item);
|
|
800
|
+
});
|
|
801
|
+
}
|
|
802
|
+
},
|
|
803
|
+
handleClear: function handleClear() {
|
|
804
|
+
this.$refs.tree.setCheckedKeys([]);
|
|
805
|
+
if (!this.multiple) {
|
|
806
|
+
this.$refs.tree.setCurrentKey(null);
|
|
807
|
+
this.checkedData = null;
|
|
808
|
+
this.emitChange();
|
|
809
|
+
}
|
|
810
|
+
this.$emit("clear");
|
|
811
|
+
},
|
|
812
|
+
handleVisibleChange: function handleVisibleChange(flag) {
|
|
813
|
+
if (this.selectAttrs.filterable && flag && this.$refs.tree) {
|
|
814
|
+
this.$refs.tree.filter();
|
|
815
|
+
}
|
|
816
|
+
this.$emit("visible-change", flag);
|
|
817
|
+
},
|
|
818
|
+
emitChange: function emitChange() {
|
|
819
|
+
if (this.multiple) {
|
|
820
|
+
this.$emit("change", this.checkedKeys, this.checkedData);
|
|
821
|
+
return false;
|
|
822
|
+
}
|
|
823
|
+
this.$emit("change", this.checkedData && this.checkedData[this.optionProps.value], this.checkedData);
|
|
824
|
+
},
|
|
825
|
+
setSingleData: function setSingleData(data) {
|
|
826
|
+
var currentData = data || this.$refs.tree.getCurrentNode();
|
|
827
|
+
this.checkedData = currentData;
|
|
828
|
+
this.selectedData = currentData && currentData[this.optionProps.label];
|
|
829
|
+
},
|
|
830
|
+
setMultipleData: function setMultipleData() {
|
|
831
|
+
var _this3 = this;
|
|
832
|
+
var checkedNodes = this.$refs.tree.getCheckedNodes();
|
|
833
|
+
this.checkedData = checkedNodes.map(function (item) {
|
|
834
|
+
var node = _this3.$refs.tree.getNode(item);
|
|
835
|
+
return node && node.data;
|
|
836
|
+
});
|
|
837
|
+
this.selectedData = this.checkedData.map(function (item) {
|
|
838
|
+
return item && item[_this3.optionProps.label];
|
|
839
|
+
});
|
|
840
|
+
},
|
|
841
|
+
// 节点被点击时的回调,返回被点击的节点数据
|
|
842
|
+
handleNodeClick: function handleNodeClick(data, node) {
|
|
843
|
+
if (this.multiple) {
|
|
844
|
+
return false;
|
|
845
|
+
}
|
|
846
|
+
this.setSingleData(data);
|
|
847
|
+
this.emitChange();
|
|
848
|
+
this.$refs.select.handleClose();
|
|
849
|
+
},
|
|
850
|
+
// 节点选中状态发生变化时的回调
|
|
851
|
+
handleCheckChange: function handleCheckChange() {
|
|
852
|
+
if (!this.multiple) {
|
|
853
|
+
return false;
|
|
854
|
+
}
|
|
855
|
+
this.checkedKeys = this.$refs.tree.getCheckedKeys().filter(function (item) {
|
|
856
|
+
return item !== null;
|
|
857
|
+
}); // 所有被选中的节点的 key 所组成的数组数据
|
|
858
|
+
this.setMultipleData();
|
|
859
|
+
this.emitChange();
|
|
860
|
+
},
|
|
861
|
+
removeTag: function removeTag(label) {
|
|
862
|
+
var _this4 = this;
|
|
863
|
+
var datas = this.checkedData.filter(function (item) {
|
|
864
|
+
return item[_this4.optionProps.label] === label;
|
|
865
|
+
});
|
|
866
|
+
datas.forEach(function (item) {
|
|
867
|
+
_this4.$refs.tree.setChecked(item);
|
|
868
|
+
if (item[_this4.optionProps.children] && !_this4.treeAttrs.checkStrictly) {
|
|
869
|
+
console.warn("设置checkStrictly为ture,才能删除");
|
|
870
|
+
}
|
|
871
|
+
});
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
});
|
|
875
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/SelectTree.vue?vue&type=script&lang=js&
|
|
876
|
+
/* harmony default export */ var item_SelectTreevue_type_script_lang_js_ = (SelectTreevue_type_script_lang_js_);
|
|
877
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/SelectTree.vue
|
|
878
|
+
|
|
879
|
+
|
|
880
|
+
|
|
881
|
+
|
|
882
|
+
|
|
883
|
+
/* normalize component */
|
|
884
|
+
|
|
885
|
+
var SelectTree_component = Object(componentNormalizer["a" /* default */])(
|
|
886
|
+
item_SelectTreevue_type_script_lang_js_,
|
|
887
|
+
SelectTreevue_type_template_id_626a2185_render,
|
|
888
|
+
SelectTreevue_type_template_id_626a2185_staticRenderFns,
|
|
889
|
+
false,
|
|
890
|
+
null,
|
|
891
|
+
null,
|
|
892
|
+
null
|
|
893
|
+
|
|
894
|
+
)
|
|
895
|
+
|
|
896
|
+
/* harmony default export */ var SelectTree = (SelectTree_component.exports);
|
|
897
|
+
// EXTERNAL MODULE: external "lodash"
|
|
898
|
+
var external_lodash_ = __webpack_require__(3);
|
|
899
|
+
|
|
900
|
+
// EXTERNAL MODULE: external "component-ui/lib/utils/formula"
|
|
901
|
+
var formula_ = __webpack_require__(2);
|
|
902
|
+
|
|
903
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/Select.vue?vue&type=script&lang=js&
|
|
904
|
+
|
|
905
|
+
|
|
906
|
+
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
|
|
910
|
+
|
|
911
|
+
|
|
912
|
+
/* harmony default export */ var Selectvue_type_script_lang_js_ = ({
|
|
913
|
+
name: "Select",
|
|
914
|
+
components: {
|
|
915
|
+
elSelect: select_default.a,
|
|
916
|
+
elOptionGroup: option_group_default.a,
|
|
917
|
+
elOption: option_default.a,
|
|
918
|
+
SelectTree: SelectTree
|
|
919
|
+
},
|
|
920
|
+
props: {
|
|
921
|
+
selectMode: String,
|
|
922
|
+
options: {
|
|
923
|
+
type: Array,
|
|
924
|
+
default: function _default() {
|
|
925
|
+
return null;
|
|
926
|
+
}
|
|
927
|
+
},
|
|
928
|
+
api: {
|
|
929
|
+
type: Object,
|
|
930
|
+
default: function _default() {
|
|
931
|
+
return null;
|
|
932
|
+
}
|
|
933
|
+
},
|
|
934
|
+
optionProps: {
|
|
935
|
+
type: Object,
|
|
936
|
+
default: function _default() {
|
|
937
|
+
return {
|
|
938
|
+
value: "value",
|
|
939
|
+
label: "label",
|
|
940
|
+
children: "children"
|
|
941
|
+
};
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
},
|
|
945
|
+
data: function data() {
|
|
946
|
+
return {
|
|
947
|
+
apiOptions: null
|
|
948
|
+
};
|
|
949
|
+
},
|
|
950
|
+
computed: {
|
|
951
|
+
attrs: function attrs() {
|
|
952
|
+
return Object.assign({}, this.$attrs);
|
|
953
|
+
},
|
|
954
|
+
optionData: function optionData() {
|
|
955
|
+
return this.options || this.apiOptions || [];
|
|
956
|
+
},
|
|
957
|
+
_form: function _form() {
|
|
958
|
+
var parent = this.$parent;
|
|
959
|
+
while (parent) {
|
|
960
|
+
if (parent.$options.componentName !== 'Form') {
|
|
961
|
+
parent = parent.$parent;
|
|
962
|
+
} else {
|
|
963
|
+
return parent;
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
return false;
|
|
967
|
+
},
|
|
968
|
+
request: function request() {
|
|
969
|
+
return this.api.request || this._form && this._form.request || (this.$COMPONENT || {}).request;
|
|
970
|
+
}
|
|
971
|
+
},
|
|
972
|
+
watch: {
|
|
973
|
+
api: {
|
|
974
|
+
handler: function handler() {
|
|
975
|
+
this.initApi();
|
|
976
|
+
},
|
|
977
|
+
deep: true
|
|
978
|
+
}
|
|
979
|
+
},
|
|
980
|
+
methods: {
|
|
981
|
+
transformOption: function transformOption(item) {
|
|
982
|
+
item.value = item[this.optionProps.value];
|
|
983
|
+
item.label = item[this.optionProps.label];
|
|
984
|
+
if (item[this.optionProps.children]) {
|
|
985
|
+
item.children = this.transformOption(item[this.optionProps.children]);
|
|
986
|
+
}
|
|
987
|
+
return item;
|
|
988
|
+
},
|
|
989
|
+
initApi: function initApi() {
|
|
990
|
+
var _this = this;
|
|
991
|
+
if (!(this.api && this.request)) {
|
|
992
|
+
return false;
|
|
993
|
+
}
|
|
994
|
+
this.request({
|
|
995
|
+
url: Object(formula_["evaluate"])(this.api.url, this.api.data),
|
|
996
|
+
method: this.api.method || "GET",
|
|
997
|
+
data: this.api.data
|
|
998
|
+
}).then(function (res) {
|
|
999
|
+
if (typeof _this.api.transform === "function") {
|
|
1000
|
+
_this.apiOptions = _this.api.transform.call(_this, resData);
|
|
1001
|
+
return false;
|
|
1002
|
+
}
|
|
1003
|
+
_this.apiOptions = _this.api.dataPath ? Object(external_lodash_["get"])(res, _this.api.dataPath, []) : res;
|
|
1004
|
+
}).catch(function (error) {
|
|
1005
|
+
_this.apiOptions = null;
|
|
1006
|
+
});
|
|
1007
|
+
},
|
|
1008
|
+
renderGroup: function renderGroup(h, scoped) {
|
|
1009
|
+
var _this2 = this;
|
|
1010
|
+
return this.optionData.map(function (item) {
|
|
1011
|
+
return h("el-option-group", {
|
|
1012
|
+
"key": item[_this2.optionProps.value],
|
|
1013
|
+
"attrs": {
|
|
1014
|
+
"label": item[_this2.optionProps.label]
|
|
1015
|
+
}
|
|
1016
|
+
}, [item[_this2.optionProps.children] && item[_this2.optionProps.children].map(function (itemOpt) {
|
|
1017
|
+
return h("el-option", {
|
|
1018
|
+
"key": itemOpt[_this2.optionProps.value],
|
|
1019
|
+
"attrs": {
|
|
1020
|
+
"value": itemOpt[_this2.optionProps.value],
|
|
1021
|
+
"label": itemOpt[_this2.optionProps.label],
|
|
1022
|
+
"disabled": itemOpt.disabled
|
|
1023
|
+
}
|
|
1024
|
+
});
|
|
1025
|
+
})]);
|
|
1026
|
+
});
|
|
1027
|
+
},
|
|
1028
|
+
renderTree: function renderTree(h) {
|
|
1029
|
+
var param = {
|
|
1030
|
+
attrs: Object.assign({}, this.$attrs, {
|
|
1031
|
+
options: this.optionData,
|
|
1032
|
+
optionProps: this.optionProps
|
|
1033
|
+
}),
|
|
1034
|
+
slots: this.$slots,
|
|
1035
|
+
scopedSlots: this.$slots,
|
|
1036
|
+
on: this.$listeners
|
|
1037
|
+
};
|
|
1038
|
+
return h(SelectTree, babel_helper_vue_jsx_merge_props_default()([{}, param]));
|
|
1039
|
+
},
|
|
1040
|
+
renderOptions: function renderOptions(h, scoped) {
|
|
1041
|
+
var _this3 = this;
|
|
1042
|
+
if (this.selectMode === "group") {
|
|
1043
|
+
return this.renderGroup(h, scoped);
|
|
1044
|
+
}
|
|
1045
|
+
return this.optionData.map(function (item) {
|
|
1046
|
+
return h("el-option", {
|
|
1047
|
+
"key": item[_this3.optionProps.value],
|
|
1048
|
+
"attrs": {
|
|
1049
|
+
"value": item[_this3.optionProps.value],
|
|
1050
|
+
"label": item[_this3.optionProps.label]
|
|
1051
|
+
}
|
|
1052
|
+
});
|
|
1053
|
+
});
|
|
1054
|
+
}
|
|
1055
|
+
},
|
|
1056
|
+
render: function render(h) {
|
|
1057
|
+
var _this4 = this;
|
|
1058
|
+
if (this.selectMode === "tree") {
|
|
1059
|
+
return this.renderTree(h);
|
|
1060
|
+
}
|
|
1061
|
+
if (this.attrs.multiple && !Array.isArray(this.attrs.value)) {
|
|
1062
|
+
this.attrs.value = [];
|
|
1063
|
+
}
|
|
1064
|
+
var param = {
|
|
1065
|
+
props: this.attrs,
|
|
1066
|
+
slots: this.$slots,
|
|
1067
|
+
scopedSlots: {
|
|
1068
|
+
default: function _default(scoped) {
|
|
1069
|
+
return _this4.renderOptions(h, scoped);
|
|
1070
|
+
}
|
|
1071
|
+
},
|
|
1072
|
+
on: this.$listeners
|
|
1073
|
+
};
|
|
1074
|
+
return h("el-select", babel_helper_vue_jsx_merge_props_default()([{}, param]));
|
|
1075
|
+
}
|
|
1076
|
+
});
|
|
1077
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/Select.vue?vue&type=script&lang=js&
|
|
1078
|
+
/* harmony default export */ var item_Selectvue_type_script_lang_js_ = (Selectvue_type_script_lang_js_);
|
|
1079
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/Select.vue
|
|
1080
|
+
var Select_render, Select_staticRenderFns
|
|
1081
|
+
|
|
1082
|
+
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
/* normalize component */
|
|
1086
|
+
|
|
1087
|
+
var Select_component = Object(componentNormalizer["a" /* default */])(
|
|
1088
|
+
item_Selectvue_type_script_lang_js_,
|
|
1089
|
+
Select_render,
|
|
1090
|
+
Select_staticRenderFns,
|
|
1091
|
+
false,
|
|
1092
|
+
null,
|
|
1093
|
+
null,
|
|
1094
|
+
null
|
|
1095
|
+
|
|
1096
|
+
)
|
|
1097
|
+
|
|
1098
|
+
/* harmony default export */ var Select = (Select_component.exports);
|
|
1099
|
+
// EXTERNAL MODULE: external "element-ui/lib/radio-group"
|
|
1100
|
+
var radio_group_ = __webpack_require__(34);
|
|
1101
|
+
var radio_group_default = /*#__PURE__*/__webpack_require__.n(radio_group_);
|
|
1102
|
+
|
|
1103
|
+
// EXTERNAL MODULE: external "element-ui/lib/radio"
|
|
1104
|
+
var radio_ = __webpack_require__(23);
|
|
1105
|
+
var radio_default = /*#__PURE__*/__webpack_require__.n(radio_);
|
|
1106
|
+
|
|
1107
|
+
// EXTERNAL MODULE: external "element-ui/lib/radio-button"
|
|
1108
|
+
var radio_button_ = __webpack_require__(35);
|
|
1109
|
+
var radio_button_default = /*#__PURE__*/__webpack_require__.n(radio_button_);
|
|
1110
|
+
|
|
1111
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/Radio.vue?vue&type=script&lang=js&
|
|
1112
|
+
|
|
1113
|
+
|
|
1114
|
+
|
|
1115
|
+
|
|
1116
|
+
|
|
1117
|
+
|
|
1118
|
+
/* harmony default export */ var Radiovue_type_script_lang_js_ = ({
|
|
1119
|
+
name: "Radio",
|
|
1120
|
+
components: {
|
|
1121
|
+
elRadioGroup: radio_group_default.a,
|
|
1122
|
+
elRadio: radio_default.a,
|
|
1123
|
+
elRadioButton: radio_button_default.a
|
|
1124
|
+
},
|
|
1125
|
+
props: {
|
|
1126
|
+
size: String,
|
|
1127
|
+
border: {
|
|
1128
|
+
type: Boolean,
|
|
1129
|
+
default: function _default() {
|
|
1130
|
+
return false;
|
|
1131
|
+
}
|
|
1132
|
+
},
|
|
1133
|
+
selectMode: String,
|
|
1134
|
+
options: {
|
|
1135
|
+
type: Array,
|
|
1136
|
+
default: function _default() {
|
|
1137
|
+
return null;
|
|
1138
|
+
}
|
|
1139
|
+
},
|
|
1140
|
+
api: {
|
|
1141
|
+
type: Object,
|
|
1142
|
+
default: function _default() {
|
|
1143
|
+
return null;
|
|
1144
|
+
}
|
|
1145
|
+
},
|
|
1146
|
+
optionProps: {
|
|
1147
|
+
type: Object,
|
|
1148
|
+
default: function _default() {
|
|
1149
|
+
return {
|
|
1150
|
+
value: "value",
|
|
1151
|
+
label: "label",
|
|
1152
|
+
name: "name"
|
|
1153
|
+
};
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
},
|
|
1157
|
+
data: function data() {
|
|
1158
|
+
return {
|
|
1159
|
+
apiOptions: null
|
|
1160
|
+
};
|
|
1161
|
+
},
|
|
1162
|
+
computed: {
|
|
1163
|
+
attrs: function attrs() {
|
|
1164
|
+
return Object.assign({}, this.$attrs, {
|
|
1165
|
+
size: this.size,
|
|
1166
|
+
border: this.border
|
|
1167
|
+
});
|
|
1168
|
+
},
|
|
1169
|
+
optionData: function optionData() {
|
|
1170
|
+
return this.options || this.apiOptions || [];
|
|
1171
|
+
},
|
|
1172
|
+
_form: function _form() {
|
|
1173
|
+
var parent = this.$parent;
|
|
1174
|
+
while (parent) {
|
|
1175
|
+
if (parent.$options.componentName !== 'Form') {
|
|
1176
|
+
parent = parent.$parent;
|
|
1177
|
+
} else {
|
|
1178
|
+
return parent;
|
|
1179
|
+
}
|
|
1180
|
+
}
|
|
1181
|
+
return false;
|
|
1182
|
+
},
|
|
1183
|
+
request: function request() {
|
|
1184
|
+
return this.api.request || this._form && this._form.request || (this.$COMPONENT || {}).request;
|
|
1185
|
+
}
|
|
1186
|
+
},
|
|
1187
|
+
watch: {
|
|
1188
|
+
api: {
|
|
1189
|
+
handler: function handler() {
|
|
1190
|
+
this.initApi();
|
|
1191
|
+
},
|
|
1192
|
+
deep: true
|
|
1193
|
+
}
|
|
1194
|
+
},
|
|
1195
|
+
methods: {
|
|
1196
|
+
initApi: function initApi() {
|
|
1197
|
+
var _this = this;
|
|
1198
|
+
if (!(this.api && this.request)) {
|
|
1199
|
+
return false;
|
|
1200
|
+
}
|
|
1201
|
+
this.request({
|
|
1202
|
+
url: Object(formula_["evaluate"])(this.api.url, this.api.data),
|
|
1203
|
+
method: this.api.method || "GET",
|
|
1204
|
+
data: this.api.data
|
|
1205
|
+
}).then(function (res) {
|
|
1206
|
+
if (typeof _this.api.transform === "function") {
|
|
1207
|
+
_this.apiOptions = _this.api.transform.call(_this, resData);
|
|
1208
|
+
return false;
|
|
1209
|
+
}
|
|
1210
|
+
_this.apiOptions = _this.api.dataPath ? Object(external_lodash_["get"])(res, _this.api.dataPath, []) : res;
|
|
1211
|
+
}).catch(function (error) {
|
|
1212
|
+
_this.apiOptions = null;
|
|
1213
|
+
});
|
|
1214
|
+
},
|
|
1215
|
+
renderButton: function renderButton(h, scoped) {
|
|
1216
|
+
var _this2 = this;
|
|
1217
|
+
return this.optionData.map(function (item) {
|
|
1218
|
+
return h("el-radio-button", {
|
|
1219
|
+
"key": item[_this2.optionProps.value],
|
|
1220
|
+
"attrs": {
|
|
1221
|
+
"label": item[_this2.optionProps.value],
|
|
1222
|
+
"disabled": item[_this2.optionProps.disabled]
|
|
1223
|
+
}
|
|
1224
|
+
}, [item[_this2.optionProps.label]]);
|
|
1225
|
+
});
|
|
1226
|
+
},
|
|
1227
|
+
renderOptions: function renderOptions(h, scoped) {
|
|
1228
|
+
var _this3 = this;
|
|
1229
|
+
if (this.selectMode === "button") {
|
|
1230
|
+
return this.renderButton(h, scoped);
|
|
1231
|
+
}
|
|
1232
|
+
return this.optionData.map(function (item) {
|
|
1233
|
+
return h("el-radio", {
|
|
1234
|
+
"key": item[_this3.optionProps.value],
|
|
1235
|
+
"attrs": {
|
|
1236
|
+
"value": item[_this3.optionProps.value],
|
|
1237
|
+
"label": item[_this3.optionProps.value],
|
|
1238
|
+
"disabled": item[_this3.optionProps.disabled],
|
|
1239
|
+
"border": _this3.border,
|
|
1240
|
+
"size": _this3.size
|
|
1241
|
+
}
|
|
1242
|
+
}, [item[_this3.optionProps.label]]);
|
|
1243
|
+
});
|
|
1244
|
+
}
|
|
1245
|
+
},
|
|
1246
|
+
render: function render(h) {
|
|
1247
|
+
var _this4 = this;
|
|
1248
|
+
var param = {
|
|
1249
|
+
props: this.attrs,
|
|
1250
|
+
slots: this.$slots,
|
|
1251
|
+
scopedSlots: {
|
|
1252
|
+
default: function _default(scoped) {
|
|
1253
|
+
return _this4.renderOptions(h, scoped);
|
|
1254
|
+
}
|
|
1255
|
+
},
|
|
1256
|
+
on: this.$listeners
|
|
1257
|
+
};
|
|
1258
|
+
return h("el-radio-group", babel_helper_vue_jsx_merge_props_default()([{}, param]));
|
|
1259
|
+
}
|
|
1260
|
+
});
|
|
1261
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/Radio.vue?vue&type=script&lang=js&
|
|
1262
|
+
/* harmony default export */ var item_Radiovue_type_script_lang_js_ = (Radiovue_type_script_lang_js_);
|
|
1263
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/Radio.vue
|
|
1264
|
+
var Radio_render, Radio_staticRenderFns
|
|
1265
|
+
|
|
1266
|
+
|
|
1267
|
+
|
|
1268
|
+
|
|
1269
|
+
/* normalize component */
|
|
1270
|
+
|
|
1271
|
+
var Radio_component = Object(componentNormalizer["a" /* default */])(
|
|
1272
|
+
item_Radiovue_type_script_lang_js_,
|
|
1273
|
+
Radio_render,
|
|
1274
|
+
Radio_staticRenderFns,
|
|
1275
|
+
false,
|
|
1276
|
+
null,
|
|
1277
|
+
null,
|
|
1278
|
+
null
|
|
1279
|
+
|
|
1280
|
+
)
|
|
1281
|
+
|
|
1282
|
+
/* harmony default export */ var Radio = (Radio_component.exports);
|
|
1283
|
+
// EXTERNAL MODULE: external "element-ui/lib/checkbox-group"
|
|
1284
|
+
var checkbox_group_ = __webpack_require__(36);
|
|
1285
|
+
var checkbox_group_default = /*#__PURE__*/__webpack_require__.n(checkbox_group_);
|
|
1286
|
+
|
|
1287
|
+
// EXTERNAL MODULE: external "element-ui/lib/checkbox"
|
|
1288
|
+
var checkbox_ = __webpack_require__(37);
|
|
1289
|
+
var checkbox_default = /*#__PURE__*/__webpack_require__.n(checkbox_);
|
|
1290
|
+
|
|
1291
|
+
// EXTERNAL MODULE: external "element-ui/lib/checkbox-button"
|
|
1292
|
+
var checkbox_button_ = __webpack_require__(38);
|
|
1293
|
+
var checkbox_button_default = /*#__PURE__*/__webpack_require__.n(checkbox_button_);
|
|
1294
|
+
|
|
1295
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/components/form/src/item/checkbox.vue?vue&type=script&lang=js&
|
|
1296
|
+
|
|
1297
|
+
|
|
1298
|
+
|
|
1299
|
+
|
|
1300
|
+
|
|
1301
|
+
|
|
1302
|
+
/* harmony default export */ var checkboxvue_type_script_lang_js_ = ({
|
|
1303
|
+
name: "Checkbox",
|
|
1304
|
+
components: {
|
|
1305
|
+
elCheckboxGroup: checkbox_group_default.a,
|
|
1306
|
+
elCheckbox: checkbox_default.a,
|
|
1307
|
+
elCheckboxButton: checkbox_button_default.a
|
|
1308
|
+
},
|
|
1309
|
+
props: {
|
|
1310
|
+
size: String,
|
|
1311
|
+
border: {
|
|
1312
|
+
type: Boolean,
|
|
1313
|
+
default: function _default() {
|
|
1314
|
+
return false;
|
|
1315
|
+
}
|
|
1316
|
+
},
|
|
1317
|
+
selectMode: String,
|
|
1318
|
+
options: {
|
|
1319
|
+
type: Array,
|
|
1320
|
+
default: function _default() {
|
|
1321
|
+
return null;
|
|
1322
|
+
}
|
|
1323
|
+
},
|
|
1324
|
+
api: {
|
|
1325
|
+
type: Object,
|
|
1326
|
+
default: function _default() {
|
|
1327
|
+
return null;
|
|
1328
|
+
}
|
|
1329
|
+
},
|
|
1330
|
+
optionProps: {
|
|
1331
|
+
type: Object,
|
|
1332
|
+
default: function _default() {
|
|
1333
|
+
return {
|
|
1334
|
+
value: "value",
|
|
1335
|
+
label: "label",
|
|
1336
|
+
name: "name"
|
|
1337
|
+
};
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
},
|
|
1341
|
+
data: function data() {
|
|
1342
|
+
return {
|
|
1343
|
+
apiOptions: null
|
|
1344
|
+
};
|
|
1345
|
+
},
|
|
1346
|
+
computed: {
|
|
1347
|
+
attrs: function attrs() {
|
|
1348
|
+
return Object.assign({}, this.$attrs, {
|
|
1349
|
+
size: this.size,
|
|
1350
|
+
border: this.border
|
|
1351
|
+
});
|
|
1352
|
+
},
|
|
1353
|
+
optionData: function optionData() {
|
|
1354
|
+
return this.options || this.apiOptions || [];
|
|
1355
|
+
},
|
|
1356
|
+
_form: function _form() {
|
|
1357
|
+
var parent = this.$parent;
|
|
1358
|
+
while (parent) {
|
|
1359
|
+
if (parent.$options.componentName !== 'Form') {
|
|
1360
|
+
parent = parent.$parent;
|
|
1361
|
+
} else {
|
|
1362
|
+
return parent;
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
return false;
|
|
1366
|
+
},
|
|
1367
|
+
request: function request() {
|
|
1368
|
+
return this.api.request || this._form && this._form.request || (this.$COMPONENT || {}).request;
|
|
1369
|
+
}
|
|
1370
|
+
},
|
|
1371
|
+
watch: {
|
|
1372
|
+
api: {
|
|
1373
|
+
handler: function handler() {
|
|
1374
|
+
this.initApi();
|
|
1375
|
+
},
|
|
1376
|
+
deep: true
|
|
1377
|
+
}
|
|
1378
|
+
},
|
|
1379
|
+
methods: {
|
|
1380
|
+
initApi: function initApi() {
|
|
1381
|
+
var _this = this;
|
|
1382
|
+
if (!(this.api && this.request)) {
|
|
1383
|
+
return false;
|
|
1384
|
+
}
|
|
1385
|
+
this.request({
|
|
1386
|
+
url: Object(formula_["evaluate"])(this.api.url, this.api.data),
|
|
1387
|
+
method: this.api.method || "GET",
|
|
1388
|
+
data: this.api.data
|
|
1389
|
+
}).then(function (res) {
|
|
1390
|
+
if (typeof _this.api.transform === "function") {
|
|
1391
|
+
_this.apiOptions = _this.api.transform.call(_this, resData);
|
|
1392
|
+
return false;
|
|
1393
|
+
}
|
|
1394
|
+
_this.apiOptions = _this.api.dataPath ? Object(external_lodash_["get"])(res, _this.api.dataPath, []) : res;
|
|
1395
|
+
}).catch(function (error) {
|
|
1396
|
+
_this.apiOptions = null;
|
|
1397
|
+
});
|
|
1398
|
+
},
|
|
1399
|
+
renderButton: function renderButton(h, scoped) {
|
|
1400
|
+
var _this2 = this;
|
|
1401
|
+
return this.optionData.map(function (item) {
|
|
1402
|
+
return h("el-checkbox-button", {
|
|
1403
|
+
"key": item[_this2.optionProps.value],
|
|
1404
|
+
"attrs": {
|
|
1405
|
+
"label": item[_this2.optionProps.value],
|
|
1406
|
+
"disabled": item[_this2.optionProps.disabled]
|
|
1407
|
+
}
|
|
1408
|
+
}, [item[_this2.optionProps.label]]);
|
|
1409
|
+
});
|
|
1410
|
+
},
|
|
1411
|
+
renderOptions: function renderOptions(h, scoped) {
|
|
1412
|
+
var _this3 = this;
|
|
1413
|
+
if (this.selectMode === "button") {
|
|
1414
|
+
return this.renderButton(h, scoped);
|
|
1415
|
+
}
|
|
1416
|
+
return this.optionData.map(function (item) {
|
|
1417
|
+
return h("el-checkbox", {
|
|
1418
|
+
"key": item[_this3.optionProps.value],
|
|
1419
|
+
"attrs": {
|
|
1420
|
+
"value": item[_this3.optionProps.value],
|
|
1421
|
+
"label": item[_this3.optionProps.value],
|
|
1422
|
+
"disabled": item[_this3.optionProps.disabled],
|
|
1423
|
+
"border": _this3.border,
|
|
1424
|
+
"size": _this3.size
|
|
1425
|
+
}
|
|
1426
|
+
}, [item[_this3.optionProps.label]]);
|
|
1427
|
+
});
|
|
1428
|
+
}
|
|
1429
|
+
},
|
|
1430
|
+
render: function render(h) {
|
|
1431
|
+
var _this4 = this;
|
|
1432
|
+
if (!Array.isArray(this.attrs.value)) {
|
|
1433
|
+
this.attrs.value = [];
|
|
1434
|
+
}
|
|
1435
|
+
var param = {
|
|
1436
|
+
props: this.attrs,
|
|
1437
|
+
slots: this.$slots,
|
|
1438
|
+
scopedSlots: {
|
|
1439
|
+
default: function _default(scoped) {
|
|
1440
|
+
return _this4.renderOptions(h, scoped);
|
|
1441
|
+
}
|
|
1442
|
+
},
|
|
1443
|
+
on: this.$listeners
|
|
1444
|
+
};
|
|
1445
|
+
return h("el-checkbox-group", babel_helper_vue_jsx_merge_props_default()([{}, param]));
|
|
1446
|
+
}
|
|
1447
|
+
});
|
|
1448
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/checkbox.vue?vue&type=script&lang=js&
|
|
1449
|
+
/* harmony default export */ var item_checkboxvue_type_script_lang_js_ = (checkboxvue_type_script_lang_js_);
|
|
1450
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/checkbox.vue
|
|
1451
|
+
var checkbox_render, checkbox_staticRenderFns
|
|
1452
|
+
|
|
1453
|
+
|
|
1454
|
+
|
|
1455
|
+
|
|
1456
|
+
/* normalize component */
|
|
1457
|
+
|
|
1458
|
+
var checkbox_component = Object(componentNormalizer["a" /* default */])(
|
|
1459
|
+
item_checkboxvue_type_script_lang_js_,
|
|
1460
|
+
checkbox_render,
|
|
1461
|
+
checkbox_staticRenderFns,
|
|
1462
|
+
false,
|
|
1463
|
+
null,
|
|
1464
|
+
null,
|
|
1465
|
+
null
|
|
1466
|
+
|
|
1467
|
+
)
|
|
1468
|
+
|
|
1469
|
+
/* harmony default export */ var item_checkbox = (checkbox_component.exports);
|
|
1470
|
+
// EXTERNAL MODULE: external "element-ui/lib/switch"
|
|
1471
|
+
var switch_ = __webpack_require__(39);
|
|
1472
|
+
var switch_default = /*#__PURE__*/__webpack_require__.n(switch_);
|
|
1473
|
+
|
|
1474
|
+
// EXTERNAL MODULE: external "element-ui/lib/cascader"
|
|
1475
|
+
var cascader_ = __webpack_require__(40);
|
|
1476
|
+
var cascader_default = /*#__PURE__*/__webpack_require__.n(cascader_);
|
|
1477
|
+
|
|
1478
|
+
// EXTERNAL MODULE: external "element-ui/lib/slider"
|
|
1479
|
+
var slider_ = __webpack_require__(41);
|
|
1480
|
+
var slider_default = /*#__PURE__*/__webpack_require__.n(slider_);
|
|
1481
|
+
|
|
1482
|
+
// EXTERNAL MODULE: external "element-ui/lib/transfer"
|
|
1483
|
+
var transfer_ = __webpack_require__(42);
|
|
1484
|
+
var transfer_default = /*#__PURE__*/__webpack_require__.n(transfer_);
|
|
1485
|
+
|
|
1486
|
+
// EXTERNAL MODULE: external "element-ui/lib/time-picker"
|
|
1487
|
+
var time_picker_ = __webpack_require__(43);
|
|
1488
|
+
var time_picker_default = /*#__PURE__*/__webpack_require__.n(time_picker_);
|
|
1489
|
+
|
|
1490
|
+
// EXTERNAL MODULE: external "element-ui/lib/date-picker"
|
|
1491
|
+
var date_picker_ = __webpack_require__(44);
|
|
1492
|
+
var date_picker_default = /*#__PURE__*/__webpack_require__.n(date_picker_);
|
|
1493
|
+
|
|
1494
|
+
// EXTERNAL MODULE: external "element-ui/lib/upload"
|
|
1495
|
+
var upload_ = __webpack_require__(45);
|
|
1496
|
+
var upload_default = /*#__PURE__*/__webpack_require__.n(upload_);
|
|
1497
|
+
|
|
1498
|
+
// CONCATENATED MODULE: ./src/components/form/src/form-input.js
|
|
1499
|
+
|
|
1500
|
+
|
|
1501
|
+
|
|
1502
|
+
|
|
1503
|
+
|
|
1504
|
+
|
|
1505
|
+
|
|
1506
|
+
|
|
1507
|
+
|
|
1508
|
+
|
|
1509
|
+
|
|
1510
|
+
|
|
1511
|
+
|
|
1512
|
+
/* harmony default export */ var form_input = ({
|
|
1513
|
+
name: "FormInput",
|
|
1514
|
+
inheritAttrs: false,
|
|
1515
|
+
components: {
|
|
1516
|
+
Cascader: cascader_default.a,
|
|
1517
|
+
Slider: slider_default.a,
|
|
1518
|
+
Transfer: transfer_default.a,
|
|
1519
|
+
Switchs: switch_default.a,
|
|
1520
|
+
Upload: upload_default.a,
|
|
1521
|
+
TimePicker: time_picker_default.a,
|
|
1522
|
+
DatePicker: date_picker_default.a,
|
|
1523
|
+
Input: Input,
|
|
1524
|
+
InputNumber: InputNumber,
|
|
1525
|
+
Select: Select,
|
|
1526
|
+
Radio: Radio,
|
|
1527
|
+
Checkbox: item_checkbox
|
|
1528
|
+
},
|
|
1529
|
+
props: {
|
|
1530
|
+
control: String,
|
|
1531
|
+
slots: {
|
|
1532
|
+
type: Object
|
|
1533
|
+
}
|
|
1534
|
+
},
|
|
1535
|
+
render: function render(h) {
|
|
1536
|
+
var _this = this;
|
|
1537
|
+
var param = {
|
|
1538
|
+
attrs: Object.assign({}, this.$attrs),
|
|
1539
|
+
on: this.$listeners,
|
|
1540
|
+
slots: this.$slots,
|
|
1541
|
+
scopedSlots: this.$scopedSlots
|
|
1542
|
+
};
|
|
1543
|
+
if (this.slots) {
|
|
1544
|
+
var _loop = function _loop(key) {
|
|
1545
|
+
param.scopedSlots[key] = function (scoped) {
|
|
1546
|
+
if (typeof _this.slots[key] === "function") {
|
|
1547
|
+
return _this.slots[key].call(_this, h, scoped);
|
|
1548
|
+
}
|
|
1549
|
+
return _this.slots[key];
|
|
1550
|
+
};
|
|
1551
|
+
if (typeof _this.slots[key] !== "function") {
|
|
1552
|
+
param.slots[key] = _this.slots[key];
|
|
1553
|
+
}
|
|
1554
|
+
};
|
|
1555
|
+
for (var key in this.slots) {
|
|
1556
|
+
_loop(key);
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1559
|
+
return h(this.control, babel_helper_vue_jsx_merge_props_default()([{}, param]));
|
|
1560
|
+
}
|
|
1561
|
+
});
|
|
1562
|
+
// CONCATENATED MODULE: ./src/components/form-input/index.js
|
|
1563
|
+
|
|
1564
|
+
/* istanbul ignore next */
|
|
1565
|
+
form_input.install = function (Vue) {
|
|
1566
|
+
Vue.component(form_input.name, form_input);
|
|
1567
|
+
};
|
|
1568
|
+
/* harmony default export */ var components_form_input = __webpack_exports__["default"] = (form_input);
|
|
1569
|
+
|
|
1570
|
+
/***/ })
|
|
1571
|
+
/******/ ]);
|