@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,1053 @@
|
|
|
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 = 58);
|
|
86
|
+
/******/ })
|
|
87
|
+
/************************************************************************/
|
|
88
|
+
/******/ ({
|
|
89
|
+
|
|
90
|
+
/***/ 0:
|
|
91
|
+
/***/ (function(module, exports) {
|
|
92
|
+
|
|
93
|
+
module.exports = require("@vue/babel-helper-vue-jsx-merge-props");
|
|
94
|
+
|
|
95
|
+
/***/ }),
|
|
96
|
+
|
|
97
|
+
/***/ 1:
|
|
98
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
99
|
+
|
|
100
|
+
"use strict";
|
|
101
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
|
102
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
|
103
|
+
|
|
104
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
105
|
+
// This module is a runtime utility for cleaner component module output and will
|
|
106
|
+
// be included in the final webpack user bundle.
|
|
107
|
+
|
|
108
|
+
function normalizeComponent(
|
|
109
|
+
scriptExports,
|
|
110
|
+
render,
|
|
111
|
+
staticRenderFns,
|
|
112
|
+
functionalTemplate,
|
|
113
|
+
injectStyles,
|
|
114
|
+
scopeId,
|
|
115
|
+
moduleIdentifier /* server only */,
|
|
116
|
+
shadowMode /* vue-cli only */
|
|
117
|
+
) {
|
|
118
|
+
// Vue.extend constructor export interop
|
|
119
|
+
var options =
|
|
120
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
121
|
+
|
|
122
|
+
// render functions
|
|
123
|
+
if (render) {
|
|
124
|
+
options.render = render
|
|
125
|
+
options.staticRenderFns = staticRenderFns
|
|
126
|
+
options._compiled = true
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// functional template
|
|
130
|
+
if (functionalTemplate) {
|
|
131
|
+
options.functional = true
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// scopedId
|
|
135
|
+
if (scopeId) {
|
|
136
|
+
options._scopeId = 'data-v-' + scopeId
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
var hook
|
|
140
|
+
if (moduleIdentifier) {
|
|
141
|
+
// server build
|
|
142
|
+
hook = function (context) {
|
|
143
|
+
// 2.3 injection
|
|
144
|
+
context =
|
|
145
|
+
context || // cached call
|
|
146
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
147
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
148
|
+
// 2.2 with runInNewContext: true
|
|
149
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
150
|
+
context = __VUE_SSR_CONTEXT__
|
|
151
|
+
}
|
|
152
|
+
// inject component styles
|
|
153
|
+
if (injectStyles) {
|
|
154
|
+
injectStyles.call(this, context)
|
|
155
|
+
}
|
|
156
|
+
// register component module identifier for async chunk inferrence
|
|
157
|
+
if (context && context._registeredComponents) {
|
|
158
|
+
context._registeredComponents.add(moduleIdentifier)
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
// used by ssr in case component is cached and beforeCreate
|
|
162
|
+
// never gets called
|
|
163
|
+
options._ssrRegister = hook
|
|
164
|
+
} else if (injectStyles) {
|
|
165
|
+
hook = shadowMode
|
|
166
|
+
? function () {
|
|
167
|
+
injectStyles.call(
|
|
168
|
+
this,
|
|
169
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
170
|
+
)
|
|
171
|
+
}
|
|
172
|
+
: injectStyles
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
if (hook) {
|
|
176
|
+
if (options.functional) {
|
|
177
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
|
178
|
+
// go through the normalizer
|
|
179
|
+
options._injectStyles = hook
|
|
180
|
+
// register for functional component in vue file
|
|
181
|
+
var originalRender = options.render
|
|
182
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
183
|
+
hook.call(context)
|
|
184
|
+
return originalRender(h, context)
|
|
185
|
+
}
|
|
186
|
+
} else {
|
|
187
|
+
// inject component registration as beforeCreate hook
|
|
188
|
+
var existing = options.beforeCreate
|
|
189
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
return {
|
|
194
|
+
exports: scriptExports,
|
|
195
|
+
options: options
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
/***/ }),
|
|
201
|
+
|
|
202
|
+
/***/ 11:
|
|
203
|
+
/***/ (function(module, exports) {
|
|
204
|
+
|
|
205
|
+
module.exports = require("element-ui/lib/table-column");
|
|
206
|
+
|
|
207
|
+
/***/ }),
|
|
208
|
+
|
|
209
|
+
/***/ 23:
|
|
210
|
+
/***/ (function(module, exports) {
|
|
211
|
+
|
|
212
|
+
module.exports = require("element-ui/lib/radio");
|
|
213
|
+
|
|
214
|
+
/***/ }),
|
|
215
|
+
|
|
216
|
+
/***/ 27:
|
|
217
|
+
/***/ (function(module, exports) {
|
|
218
|
+
|
|
219
|
+
module.exports = require("dayjs");
|
|
220
|
+
|
|
221
|
+
/***/ }),
|
|
222
|
+
|
|
223
|
+
/***/ 28:
|
|
224
|
+
/***/ (function(module, exports) {
|
|
225
|
+
|
|
226
|
+
module.exports = require("element-ui/lib/link");
|
|
227
|
+
|
|
228
|
+
/***/ }),
|
|
229
|
+
|
|
230
|
+
/***/ 4:
|
|
231
|
+
/***/ (function(module, exports) {
|
|
232
|
+
|
|
233
|
+
module.exports = require("element-ui/lib/button");
|
|
234
|
+
|
|
235
|
+
/***/ }),
|
|
236
|
+
|
|
237
|
+
/***/ 48:
|
|
238
|
+
/***/ (function(module, exports) {
|
|
239
|
+
|
|
240
|
+
module.exports = require("element-ui/lib/dropdown");
|
|
241
|
+
|
|
242
|
+
/***/ }),
|
|
243
|
+
|
|
244
|
+
/***/ 49:
|
|
245
|
+
/***/ (function(module, exports) {
|
|
246
|
+
|
|
247
|
+
module.exports = require("element-ui/lib/dropdown-item");
|
|
248
|
+
|
|
249
|
+
/***/ }),
|
|
250
|
+
|
|
251
|
+
/***/ 50:
|
|
252
|
+
/***/ (function(module, exports) {
|
|
253
|
+
|
|
254
|
+
module.exports = require("element-ui/lib/dropdown-menu");
|
|
255
|
+
|
|
256
|
+
/***/ }),
|
|
257
|
+
|
|
258
|
+
/***/ 58:
|
|
259
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
260
|
+
|
|
261
|
+
"use strict";
|
|
262
|
+
// ESM COMPAT FLAG
|
|
263
|
+
__webpack_require__.r(__webpack_exports__);
|
|
264
|
+
|
|
265
|
+
// EXTERNAL MODULE: external "@vue/babel-helper-vue-jsx-merge-props"
|
|
266
|
+
var babel_helper_vue_jsx_merge_props_ = __webpack_require__(0);
|
|
267
|
+
var babel_helper_vue_jsx_merge_props_default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props_);
|
|
268
|
+
|
|
269
|
+
// EXTERNAL MODULE: external "element-ui/lib/table-column"
|
|
270
|
+
var table_column_ = __webpack_require__(11);
|
|
271
|
+
var table_column_default = /*#__PURE__*/__webpack_require__.n(table_column_);
|
|
272
|
+
|
|
273
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/components/table/src/column/default.vue?vue&type=script&lang=js&
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
/* harmony default export */ var defaultvue_type_script_lang_js_ = ({
|
|
277
|
+
name: "Default",
|
|
278
|
+
components: {
|
|
279
|
+
elTableColumn: table_column_default.a
|
|
280
|
+
},
|
|
281
|
+
props: {
|
|
282
|
+
slots: {
|
|
283
|
+
type: Object
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
computed: {
|
|
287
|
+
attrs: function attrs() {
|
|
288
|
+
return Object.assign({
|
|
289
|
+
"show-overflow-tooltip": true
|
|
290
|
+
}, this.$attrs);
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
render: function render(h) {
|
|
294
|
+
var _this = this;
|
|
295
|
+
var param = {
|
|
296
|
+
props: this.attrs,
|
|
297
|
+
on: this.$listeners,
|
|
298
|
+
slots: this.$slots,
|
|
299
|
+
scopedSlots: this.$scopedSlots
|
|
300
|
+
};
|
|
301
|
+
if (this.slots) {
|
|
302
|
+
if (typeof this.slots.default === "function") {
|
|
303
|
+
param.scopedSlots.default = function (scoped) {
|
|
304
|
+
return _this.slots.default.call(_this, h, scoped);
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
if (typeof this.slots.header === "function") {
|
|
308
|
+
param.scopedSlots.header = function (scoped) {
|
|
309
|
+
return _this.slots.header.call(_this, h, scoped);
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
return h("el-table-column", babel_helper_vue_jsx_merge_props_default()([{}, param]));
|
|
314
|
+
}
|
|
315
|
+
});
|
|
316
|
+
// CONCATENATED MODULE: ./src/components/table/src/column/default.vue?vue&type=script&lang=js&
|
|
317
|
+
/* harmony default export */ var column_defaultvue_type_script_lang_js_ = (defaultvue_type_script_lang_js_);
|
|
318
|
+
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
319
|
+
var componentNormalizer = __webpack_require__(1);
|
|
320
|
+
|
|
321
|
+
// CONCATENATED MODULE: ./src/components/table/src/column/default.vue
|
|
322
|
+
var default_render, staticRenderFns
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
/* normalize component */
|
|
328
|
+
|
|
329
|
+
var component = Object(componentNormalizer["a" /* default */])(
|
|
330
|
+
column_defaultvue_type_script_lang_js_,
|
|
331
|
+
default_render,
|
|
332
|
+
staticRenderFns,
|
|
333
|
+
false,
|
|
334
|
+
null,
|
|
335
|
+
null,
|
|
336
|
+
null
|
|
337
|
+
|
|
338
|
+
)
|
|
339
|
+
|
|
340
|
+
/* harmony default export */ var column_default = (component.exports);
|
|
341
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/components/table/src/column/sequence.vue?vue&type=script&lang=js&
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
/* harmony default export */ var sequencevue_type_script_lang_js_ = ({
|
|
345
|
+
name: "Sequence",
|
|
346
|
+
components: {
|
|
347
|
+
elTableColumn: table_column_default.a
|
|
348
|
+
},
|
|
349
|
+
data: function data() {
|
|
350
|
+
return {};
|
|
351
|
+
},
|
|
352
|
+
computed: {
|
|
353
|
+
attrs: function attrs() {
|
|
354
|
+
return Object.assign({
|
|
355
|
+
type: "index",
|
|
356
|
+
fixed: "left",
|
|
357
|
+
label: "序号",
|
|
358
|
+
width: 50,
|
|
359
|
+
align: "center"
|
|
360
|
+
}, this.$attrs, this.$props);
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
render: function render() {
|
|
364
|
+
var h = arguments[0];
|
|
365
|
+
var param = {
|
|
366
|
+
props: this.attrs,
|
|
367
|
+
on: this.$listeners,
|
|
368
|
+
slots: this.$slots,
|
|
369
|
+
scopedSlots: this.$scopedSlots
|
|
370
|
+
};
|
|
371
|
+
return h("el-table-column", babel_helper_vue_jsx_merge_props_default()([{}, param]));
|
|
372
|
+
}
|
|
373
|
+
});
|
|
374
|
+
// CONCATENATED MODULE: ./src/components/table/src/column/sequence.vue?vue&type=script&lang=js&
|
|
375
|
+
/* harmony default export */ var column_sequencevue_type_script_lang_js_ = (sequencevue_type_script_lang_js_);
|
|
376
|
+
// CONCATENATED MODULE: ./src/components/table/src/column/sequence.vue
|
|
377
|
+
var sequence_render, sequence_staticRenderFns
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
/* normalize component */
|
|
383
|
+
|
|
384
|
+
var sequence_component = Object(componentNormalizer["a" /* default */])(
|
|
385
|
+
column_sequencevue_type_script_lang_js_,
|
|
386
|
+
sequence_render,
|
|
387
|
+
sequence_staticRenderFns,
|
|
388
|
+
false,
|
|
389
|
+
null,
|
|
390
|
+
null,
|
|
391
|
+
null
|
|
392
|
+
|
|
393
|
+
)
|
|
394
|
+
|
|
395
|
+
/* harmony default export */ var sequence = (sequence_component.exports);
|
|
396
|
+
// EXTERNAL MODULE: external "element-ui/lib/radio"
|
|
397
|
+
var radio_ = __webpack_require__(23);
|
|
398
|
+
var radio_default = /*#__PURE__*/__webpack_require__.n(radio_);
|
|
399
|
+
|
|
400
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/components/table/src/column/selection.vue?vue&type=script&lang=js&
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
/* harmony default export */ var selectionvue_type_script_lang_js_ = ({
|
|
405
|
+
name: "Selection",
|
|
406
|
+
components: {
|
|
407
|
+
elTableColumn: table_column_default.a,
|
|
408
|
+
elRadio: radio_default.a
|
|
409
|
+
},
|
|
410
|
+
inject: ["table"],
|
|
411
|
+
data: function data() {
|
|
412
|
+
return {};
|
|
413
|
+
},
|
|
414
|
+
computed: {
|
|
415
|
+
attrs: function attrs() {
|
|
416
|
+
return Object.assign({
|
|
417
|
+
type: "selection",
|
|
418
|
+
fixed: "left",
|
|
419
|
+
width: 50,
|
|
420
|
+
align: "center"
|
|
421
|
+
}, this.$attrs, this.$props);
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
render: function render(h) {
|
|
425
|
+
var _this = this;
|
|
426
|
+
var param = {
|
|
427
|
+
props: Object.assign({}, this.attrs, {
|
|
428
|
+
type: this.attrs.type === "radio" ? "" : "selection"
|
|
429
|
+
}),
|
|
430
|
+
on: this.$listeners,
|
|
431
|
+
slots: this.$slots,
|
|
432
|
+
scopedSlots: this.$scopedSlots
|
|
433
|
+
};
|
|
434
|
+
if (this.slots && typeof this.slots.default === "function") {
|
|
435
|
+
param.scopedSlots.default = function (scoped) {
|
|
436
|
+
return _this.slots.default.call(_this, h, scoped);
|
|
437
|
+
};
|
|
438
|
+
} else {
|
|
439
|
+
if (this.attrs.type === "radio") {
|
|
440
|
+
param.scopedSlots.default = function (scoped) {
|
|
441
|
+
var key = _this.attrs.prop || _this.table.tableProps.rowKey;
|
|
442
|
+
return h("el-radio", {
|
|
443
|
+
"attrs": {
|
|
444
|
+
"value": _this.table.rowId,
|
|
445
|
+
"label": scoped.row[key],
|
|
446
|
+
"size": "mini"
|
|
447
|
+
}
|
|
448
|
+
}, [h("i")]);
|
|
449
|
+
};
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
if (this.slots && typeof this.slots.header === "function") {
|
|
453
|
+
param.scopedSlots.header = function (scoped) {
|
|
454
|
+
return _this.slots.header.call(_this, h, scoped);
|
|
455
|
+
};
|
|
456
|
+
}
|
|
457
|
+
return h("el-table-column", babel_helper_vue_jsx_merge_props_default()([{}, param]));
|
|
458
|
+
}
|
|
459
|
+
});
|
|
460
|
+
// CONCATENATED MODULE: ./src/components/table/src/column/selection.vue?vue&type=script&lang=js&
|
|
461
|
+
/* harmony default export */ var column_selectionvue_type_script_lang_js_ = (selectionvue_type_script_lang_js_);
|
|
462
|
+
// CONCATENATED MODULE: ./src/components/table/src/column/selection.vue
|
|
463
|
+
var selection_render, selection_staticRenderFns
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
/* normalize component */
|
|
469
|
+
|
|
470
|
+
var selection_component = Object(componentNormalizer["a" /* default */])(
|
|
471
|
+
column_selectionvue_type_script_lang_js_,
|
|
472
|
+
selection_render,
|
|
473
|
+
selection_staticRenderFns,
|
|
474
|
+
false,
|
|
475
|
+
null,
|
|
476
|
+
null,
|
|
477
|
+
null
|
|
478
|
+
|
|
479
|
+
)
|
|
480
|
+
|
|
481
|
+
/* harmony default export */ var selection = (selection_component.exports);
|
|
482
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/table/src/column/date.vue?vue&type=template&id=3d682315&
|
|
483
|
+
var datevue_type_template_id_3d682315_render = function render() {
|
|
484
|
+
var _vm = this,
|
|
485
|
+
_c = _vm._self._c
|
|
486
|
+
return _c(
|
|
487
|
+
"el-table-column",
|
|
488
|
+
_vm._g(
|
|
489
|
+
_vm._b(
|
|
490
|
+
{
|
|
491
|
+
scopedSlots: _vm._u(
|
|
492
|
+
[
|
|
493
|
+
{
|
|
494
|
+
key: "default",
|
|
495
|
+
fn: function (scoped) {
|
|
496
|
+
return [
|
|
497
|
+
_vm._t(
|
|
498
|
+
"default",
|
|
499
|
+
function () {
|
|
500
|
+
return [_vm._v(_vm._s(_vm.formatDate(scoped)))]
|
|
501
|
+
},
|
|
502
|
+
null,
|
|
503
|
+
scoped
|
|
504
|
+
),
|
|
505
|
+
]
|
|
506
|
+
},
|
|
507
|
+
},
|
|
508
|
+
],
|
|
509
|
+
null,
|
|
510
|
+
true
|
|
511
|
+
),
|
|
512
|
+
},
|
|
513
|
+
"el-table-column",
|
|
514
|
+
_vm.attrs,
|
|
515
|
+
false
|
|
516
|
+
),
|
|
517
|
+
_vm.attrs.on
|
|
518
|
+
)
|
|
519
|
+
)
|
|
520
|
+
}
|
|
521
|
+
var datevue_type_template_id_3d682315_staticRenderFns = []
|
|
522
|
+
datevue_type_template_id_3d682315_render._withStripped = true
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
// CONCATENATED MODULE: ./src/components/table/src/column/date.vue?vue&type=template&id=3d682315&
|
|
526
|
+
|
|
527
|
+
// EXTERNAL MODULE: external "dayjs"
|
|
528
|
+
var external_dayjs_ = __webpack_require__(27);
|
|
529
|
+
var external_dayjs_default = /*#__PURE__*/__webpack_require__.n(external_dayjs_);
|
|
530
|
+
|
|
531
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/components/table/src/column/date.vue?vue&type=script&lang=js&
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
/* harmony default export */ var datevue_type_script_lang_js_ = ({
|
|
535
|
+
name: "Date",
|
|
536
|
+
components: {
|
|
537
|
+
elTableColumn: table_column_default.a
|
|
538
|
+
},
|
|
539
|
+
props: {
|
|
540
|
+
format: {
|
|
541
|
+
type: [String, Function],
|
|
542
|
+
default: "YYYY-MM-DD"
|
|
543
|
+
}
|
|
544
|
+
},
|
|
545
|
+
data: function data() {
|
|
546
|
+
return {};
|
|
547
|
+
},
|
|
548
|
+
computed: {
|
|
549
|
+
attrs: function attrs() {
|
|
550
|
+
return Object.assign({
|
|
551
|
+
"show-overflow-tooltip": true
|
|
552
|
+
}, this.$attrs, this.$props);
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
methods: {
|
|
556
|
+
formatDate: function formatDate(slotProps) {
|
|
557
|
+
if (typeof this.format === "function") {
|
|
558
|
+
return this.format.call(this, slotProps);
|
|
559
|
+
}
|
|
560
|
+
var colVal = slotProps.row && slotProps.row[this.attrs.prop];
|
|
561
|
+
if (colVal && this.format && external_dayjs_default()(colVal).isValid()) {
|
|
562
|
+
return external_dayjs_default()(colVal).format(this.format);
|
|
563
|
+
}
|
|
564
|
+
return colVal;
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
});
|
|
568
|
+
// CONCATENATED MODULE: ./src/components/table/src/column/date.vue?vue&type=script&lang=js&
|
|
569
|
+
/* harmony default export */ var column_datevue_type_script_lang_js_ = (datevue_type_script_lang_js_);
|
|
570
|
+
// CONCATENATED MODULE: ./src/components/table/src/column/date.vue
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
/* normalize component */
|
|
577
|
+
|
|
578
|
+
var date_component = Object(componentNormalizer["a" /* default */])(
|
|
579
|
+
column_datevue_type_script_lang_js_,
|
|
580
|
+
datevue_type_template_id_3d682315_render,
|
|
581
|
+
datevue_type_template_id_3d682315_staticRenderFns,
|
|
582
|
+
false,
|
|
583
|
+
null,
|
|
584
|
+
null,
|
|
585
|
+
null
|
|
586
|
+
|
|
587
|
+
)
|
|
588
|
+
|
|
589
|
+
/* harmony default export */ var date = (date_component.exports);
|
|
590
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./src/components/table/src/column/dict.vue?vue&type=template&id=1da75cb2&
|
|
591
|
+
var dictvue_type_template_id_1da75cb2_render = function render() {
|
|
592
|
+
var _vm = this,
|
|
593
|
+
_c = _vm._self._c
|
|
594
|
+
return _c(
|
|
595
|
+
"el-table-column",
|
|
596
|
+
_vm._g(
|
|
597
|
+
_vm._b(
|
|
598
|
+
{
|
|
599
|
+
scopedSlots: _vm._u(
|
|
600
|
+
[
|
|
601
|
+
{
|
|
602
|
+
key: "default",
|
|
603
|
+
fn: function (scoped) {
|
|
604
|
+
return [
|
|
605
|
+
_vm._t(
|
|
606
|
+
"default",
|
|
607
|
+
function () {
|
|
608
|
+
return [_vm._v(_vm._s(_vm.renderOption(scoped)))]
|
|
609
|
+
},
|
|
610
|
+
null,
|
|
611
|
+
scoped
|
|
612
|
+
),
|
|
613
|
+
]
|
|
614
|
+
},
|
|
615
|
+
},
|
|
616
|
+
],
|
|
617
|
+
null,
|
|
618
|
+
true
|
|
619
|
+
),
|
|
620
|
+
},
|
|
621
|
+
"el-table-column",
|
|
622
|
+
_vm.attrs,
|
|
623
|
+
false
|
|
624
|
+
),
|
|
625
|
+
_vm.attrs.on
|
|
626
|
+
)
|
|
627
|
+
)
|
|
628
|
+
}
|
|
629
|
+
var dictvue_type_template_id_1da75cb2_staticRenderFns = []
|
|
630
|
+
dictvue_type_template_id_1da75cb2_render._withStripped = true
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
// CONCATENATED MODULE: ./src/components/table/src/column/dict.vue?vue&type=template&id=1da75cb2&
|
|
634
|
+
|
|
635
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/components/table/src/column/dict.vue?vue&type=script&lang=js&
|
|
636
|
+
|
|
637
|
+
/* harmony default export */ var dictvue_type_script_lang_js_ = ({
|
|
638
|
+
name: "Dict",
|
|
639
|
+
components: {
|
|
640
|
+
elTableColumn: table_column_default.a
|
|
641
|
+
},
|
|
642
|
+
props: {
|
|
643
|
+
options: {
|
|
644
|
+
type: Array,
|
|
645
|
+
required: true
|
|
646
|
+
},
|
|
647
|
+
optionProp: {
|
|
648
|
+
type: [Object, Function],
|
|
649
|
+
default: function _default() {
|
|
650
|
+
return {
|
|
651
|
+
value: "value",
|
|
652
|
+
label: "label"
|
|
653
|
+
};
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
},
|
|
657
|
+
data: function data() {
|
|
658
|
+
return {};
|
|
659
|
+
},
|
|
660
|
+
computed: {
|
|
661
|
+
attrs: function attrs() {
|
|
662
|
+
return Object.assign({
|
|
663
|
+
"show-overflow-tooltip": true
|
|
664
|
+
}, this.$attrs);
|
|
665
|
+
},
|
|
666
|
+
optionMap: function optionMap() {
|
|
667
|
+
var _this = this;
|
|
668
|
+
if (Array.isArray(this.options)) {
|
|
669
|
+
var map = {};
|
|
670
|
+
this.options.forEach(function (item) {
|
|
671
|
+
var valueKey = item[_this.optionProp.value || "value"];
|
|
672
|
+
map[valueKey] = item;
|
|
673
|
+
});
|
|
674
|
+
return map;
|
|
675
|
+
}
|
|
676
|
+
return {};
|
|
677
|
+
}
|
|
678
|
+
},
|
|
679
|
+
methods: {
|
|
680
|
+
renderOption: function renderOption(slotProps) {
|
|
681
|
+
if (typeof this.optionProp === "function") {
|
|
682
|
+
return this.optionProp.call(this, slotProps, this.options);
|
|
683
|
+
}
|
|
684
|
+
var colVal = slotProps.row && slotProps.row[this.attrs.prop];
|
|
685
|
+
if (colVal && this.optionMap[colVal]) {
|
|
686
|
+
return this.optionMap[colVal] && this.optionMap[colVal][this.optionProp.label || "label"];
|
|
687
|
+
}
|
|
688
|
+
return colVal;
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
});
|
|
692
|
+
// CONCATENATED MODULE: ./src/components/table/src/column/dict.vue?vue&type=script&lang=js&
|
|
693
|
+
/* harmony default export */ var column_dictvue_type_script_lang_js_ = (dictvue_type_script_lang_js_);
|
|
694
|
+
// CONCATENATED MODULE: ./src/components/table/src/column/dict.vue
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
|
|
700
|
+
/* normalize component */
|
|
701
|
+
|
|
702
|
+
var dict_component = Object(componentNormalizer["a" /* default */])(
|
|
703
|
+
column_dictvue_type_script_lang_js_,
|
|
704
|
+
dictvue_type_template_id_1da75cb2_render,
|
|
705
|
+
dictvue_type_template_id_1da75cb2_staticRenderFns,
|
|
706
|
+
false,
|
|
707
|
+
null,
|
|
708
|
+
null,
|
|
709
|
+
null
|
|
710
|
+
|
|
711
|
+
)
|
|
712
|
+
|
|
713
|
+
/* harmony default export */ var dict = (dict_component.exports);
|
|
714
|
+
// EXTERNAL MODULE: external "element-ui/lib/dropdown"
|
|
715
|
+
var dropdown_ = __webpack_require__(48);
|
|
716
|
+
var dropdown_default = /*#__PURE__*/__webpack_require__.n(dropdown_);
|
|
717
|
+
|
|
718
|
+
// EXTERNAL MODULE: external "element-ui/lib/dropdown-item"
|
|
719
|
+
var dropdown_item_ = __webpack_require__(49);
|
|
720
|
+
var dropdown_item_default = /*#__PURE__*/__webpack_require__.n(dropdown_item_);
|
|
721
|
+
|
|
722
|
+
// EXTERNAL MODULE: external "element-ui/lib/dropdown-menu"
|
|
723
|
+
var dropdown_menu_ = __webpack_require__(50);
|
|
724
|
+
var dropdown_menu_default = /*#__PURE__*/__webpack_require__.n(dropdown_menu_);
|
|
725
|
+
|
|
726
|
+
// EXTERNAL MODULE: external "element-ui/lib/button"
|
|
727
|
+
var button_ = __webpack_require__(4);
|
|
728
|
+
var button_default = /*#__PURE__*/__webpack_require__.n(button_);
|
|
729
|
+
|
|
730
|
+
// EXTERNAL MODULE: external "element-ui/lib/link"
|
|
731
|
+
var link_ = __webpack_require__(28);
|
|
732
|
+
var link_default = /*#__PURE__*/__webpack_require__.n(link_);
|
|
733
|
+
|
|
734
|
+
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/components/table/src/column/operate.vue?vue&type=script&lang=js&
|
|
735
|
+
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
|
|
743
|
+
|
|
744
|
+
|
|
745
|
+
|
|
746
|
+
|
|
747
|
+
|
|
748
|
+
/* harmony default export */ var operatevue_type_script_lang_js_ = ({
|
|
749
|
+
name: "Operate",
|
|
750
|
+
props: {
|
|
751
|
+
max: Number,
|
|
752
|
+
item: {
|
|
753
|
+
type: Object,
|
|
754
|
+
default: function _default() {
|
|
755
|
+
return {};
|
|
756
|
+
}
|
|
757
|
+
},
|
|
758
|
+
items: {
|
|
759
|
+
type: Array,
|
|
760
|
+
required: true,
|
|
761
|
+
default: function _default() {
|
|
762
|
+
return [];
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
},
|
|
766
|
+
computed: {
|
|
767
|
+
attrs: function attrs() {
|
|
768
|
+
return Object.assign({
|
|
769
|
+
"show-overflow-tooltip": true
|
|
770
|
+
}, this.$attrs, this.$props);
|
|
771
|
+
},
|
|
772
|
+
defaultItem: function defaultItem() {
|
|
773
|
+
return Object.assign({
|
|
774
|
+
control: "Link",
|
|
775
|
+
label: "更多",
|
|
776
|
+
size: "mini",
|
|
777
|
+
plain: true,
|
|
778
|
+
type: "primary",
|
|
779
|
+
underline: false
|
|
780
|
+
}, this.item);
|
|
781
|
+
}
|
|
782
|
+
},
|
|
783
|
+
methods: {
|
|
784
|
+
renderItems: function renderItems(h, scoped) {
|
|
785
|
+
var _this = this;
|
|
786
|
+
var filterItems = this.items.filter(function (row) {
|
|
787
|
+
if (typeof row.show === "function") {
|
|
788
|
+
return row.show.call(_this, scoped, row);
|
|
789
|
+
}
|
|
790
|
+
return row.show !== false;
|
|
791
|
+
});
|
|
792
|
+
var template = h("div", {
|
|
793
|
+
"class": ["tool"]
|
|
794
|
+
});
|
|
795
|
+
if (this.max && filterItems.length > this.max) {
|
|
796
|
+
var itemVNodes = filterItems.slice(0, this.max);
|
|
797
|
+
template.children = itemVNodes.map(function (item) {
|
|
798
|
+
return _this.itemVNode(h, item, scoped);
|
|
799
|
+
});
|
|
800
|
+
//更多处理
|
|
801
|
+
var moreItems = filterItems.slice(this.max);
|
|
802
|
+
template.children.push(this.moreVNode(moreItems, scoped));
|
|
803
|
+
return template;
|
|
804
|
+
}
|
|
805
|
+
template.children = filterItems.map(function (row) {
|
|
806
|
+
return _this.itemVNode(h, row, scoped);
|
|
807
|
+
});
|
|
808
|
+
return template;
|
|
809
|
+
},
|
|
810
|
+
itemVNode: function itemVNode(h, itemRow, scoped) {
|
|
811
|
+
var cloneItem = Object.assign({
|
|
812
|
+
control: this.defaultItem.control
|
|
813
|
+
}, itemRow);
|
|
814
|
+
cloneItem.parentData = scoped;
|
|
815
|
+
if (typeof cloneItem.render === "function") {
|
|
816
|
+
return cloneItem.render.call(this, h, scoped, cloneItem);
|
|
817
|
+
}
|
|
818
|
+
var param = {
|
|
819
|
+
attrs: cloneItem,
|
|
820
|
+
on: cloneItem.on,
|
|
821
|
+
slots: cloneItem.slots,
|
|
822
|
+
scopedSlots: cloneItem.slots
|
|
823
|
+
};
|
|
824
|
+
return h(cloneItem.control, babel_helper_vue_jsx_merge_props_default()([{}, param]));
|
|
825
|
+
},
|
|
826
|
+
moreVNode: function moreVNode(moreItems, scoped) {
|
|
827
|
+
var _this2 = this;
|
|
828
|
+
var h = this.$createElement;
|
|
829
|
+
var dropdownParam = {
|
|
830
|
+
on: {
|
|
831
|
+
command: function command(commandData) {
|
|
832
|
+
if (commandData.on && typeof commandData.on.click === "function") {
|
|
833
|
+
commandData.on.click.call(_this2, scoped, commandData);
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
};
|
|
838
|
+
var defaultParam = {
|
|
839
|
+
attrs: Object.assign({}, this.defaultItem)
|
|
840
|
+
};
|
|
841
|
+
return h("el-dropdown", babel_helper_vue_jsx_merge_props_default()([{}, dropdownParam]), [this.defaultItem.control === "Button" ? h("el-button", babel_helper_vue_jsx_merge_props_default()([{}, defaultParam]), [this.defaultItem.label, h("i", {
|
|
842
|
+
"class": "el-icon-arrow-down el-icon--right"
|
|
843
|
+
})]) : h("el-link", babel_helper_vue_jsx_merge_props_default()([{}, defaultParam]), [this.defaultItem.label, h("i", {
|
|
844
|
+
"class": "el-icon-arrow-down el-icon--right"
|
|
845
|
+
})]), h("el-dropdown-menu", {
|
|
846
|
+
"slot": "dropdown"
|
|
847
|
+
}, [moreItems.map(function (row, index) {
|
|
848
|
+
return h("el-dropdown-item", {
|
|
849
|
+
"key": index,
|
|
850
|
+
"attrs": {
|
|
851
|
+
"command": row
|
|
852
|
+
}
|
|
853
|
+
}, [row.label]);
|
|
854
|
+
})])]);
|
|
855
|
+
}
|
|
856
|
+
},
|
|
857
|
+
render: function render(h) {
|
|
858
|
+
var _this3 = this;
|
|
859
|
+
var param = {
|
|
860
|
+
props: this.attrs,
|
|
861
|
+
scopedSlots: {
|
|
862
|
+
default: function _default(scoped) {
|
|
863
|
+
return _this3.renderItems(h, scoped);
|
|
864
|
+
}
|
|
865
|
+
},
|
|
866
|
+
on: this.$listeners
|
|
867
|
+
};
|
|
868
|
+
return h("el-table-column", babel_helper_vue_jsx_merge_props_default()([{}, param]));
|
|
869
|
+
},
|
|
870
|
+
components: {
|
|
871
|
+
elTableColumn: table_column_default.a,
|
|
872
|
+
elDropdown: dropdown_default.a,
|
|
873
|
+
elDropdownItem: dropdown_item_default.a,
|
|
874
|
+
elDropdownMenu: dropdown_menu_default.a,
|
|
875
|
+
elButton: button_default.a,
|
|
876
|
+
elLink: link_default.a,
|
|
877
|
+
Link: {
|
|
878
|
+
components: {
|
|
879
|
+
elLink: link_default.a
|
|
880
|
+
},
|
|
881
|
+
props: {
|
|
882
|
+
label: String,
|
|
883
|
+
parentData: Object,
|
|
884
|
+
show: [Boolean, Function],
|
|
885
|
+
on: Object
|
|
886
|
+
},
|
|
887
|
+
data: function data() {
|
|
888
|
+
return {
|
|
889
|
+
icon: this.$attrs.icon,
|
|
890
|
+
disabled: this.$attrs.disabled
|
|
891
|
+
};
|
|
892
|
+
},
|
|
893
|
+
render: function render() {
|
|
894
|
+
var _this4 = this;
|
|
895
|
+
var h = arguments[0];
|
|
896
|
+
var param = {
|
|
897
|
+
attrs: Object.assign({
|
|
898
|
+
type: "primary",
|
|
899
|
+
underline: false
|
|
900
|
+
}, this.$attrs),
|
|
901
|
+
on: {
|
|
902
|
+
click: function click(e) {
|
|
903
|
+
e.stopPropagation();
|
|
904
|
+
if (typeof _this4.$listeners.click === "function") {
|
|
905
|
+
_this4.$listeners.click.call(_this4, _this4.parentData, _this4);
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
};
|
|
910
|
+
return h("el-link", babel_helper_vue_jsx_merge_props_default()([{}, param, {
|
|
911
|
+
"attrs": {
|
|
912
|
+
"icon": this.icon,
|
|
913
|
+
"disabled": this.disabled
|
|
914
|
+
}
|
|
915
|
+
}]), [this.label]);
|
|
916
|
+
}
|
|
917
|
+
},
|
|
918
|
+
Button: {
|
|
919
|
+
components: {
|
|
920
|
+
elButton: button_default.a
|
|
921
|
+
},
|
|
922
|
+
props: {
|
|
923
|
+
label: String,
|
|
924
|
+
parentData: Object,
|
|
925
|
+
show: [Boolean, Function],
|
|
926
|
+
on: Object
|
|
927
|
+
},
|
|
928
|
+
computed: {
|
|
929
|
+
attrs: function attrs() {
|
|
930
|
+
return Object.assign({
|
|
931
|
+
type: "primary",
|
|
932
|
+
size: "mini",
|
|
933
|
+
plain: true
|
|
934
|
+
}, this.$attrs);
|
|
935
|
+
}
|
|
936
|
+
},
|
|
937
|
+
data: function data() {
|
|
938
|
+
return {
|
|
939
|
+
loading: this.$attrs.loading
|
|
940
|
+
};
|
|
941
|
+
},
|
|
942
|
+
render: function render() {
|
|
943
|
+
var _this5 = this;
|
|
944
|
+
var h = arguments[0];
|
|
945
|
+
var param = {
|
|
946
|
+
attrs: this.attrs,
|
|
947
|
+
on: {
|
|
948
|
+
click: function click(e) {
|
|
949
|
+
e.stopPropagation();
|
|
950
|
+
if (typeof _this5.$listeners.click === "function") {
|
|
951
|
+
_this5.$listeners.click.call(_this5, _this5.parentData, _this5);
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
};
|
|
956
|
+
return h("el-button", babel_helper_vue_jsx_merge_props_default()([{}, param, {
|
|
957
|
+
"attrs": {
|
|
958
|
+
"loading": this.loading
|
|
959
|
+
}
|
|
960
|
+
}]), [this.label]);
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
});
|
|
965
|
+
// CONCATENATED MODULE: ./src/components/table/src/column/operate.vue?vue&type=script&lang=js&
|
|
966
|
+
/* harmony default export */ var column_operatevue_type_script_lang_js_ = (operatevue_type_script_lang_js_);
|
|
967
|
+
// CONCATENATED MODULE: ./src/components/table/src/column/operate.vue
|
|
968
|
+
var operate_render, operate_staticRenderFns
|
|
969
|
+
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
|
|
973
|
+
/* normalize component */
|
|
974
|
+
|
|
975
|
+
var operate_component = Object(componentNormalizer["a" /* default */])(
|
|
976
|
+
column_operatevue_type_script_lang_js_,
|
|
977
|
+
operate_render,
|
|
978
|
+
operate_staticRenderFns,
|
|
979
|
+
false,
|
|
980
|
+
null,
|
|
981
|
+
null,
|
|
982
|
+
null
|
|
983
|
+
|
|
984
|
+
)
|
|
985
|
+
|
|
986
|
+
/* harmony default export */ var operate = (operate_component.exports);
|
|
987
|
+
// CONCATENATED MODULE: ./src/components/table/src/table-column.js
|
|
988
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
989
|
+
|
|
990
|
+
|
|
991
|
+
|
|
992
|
+
|
|
993
|
+
|
|
994
|
+
|
|
995
|
+
/* harmony default export */ var table_column = ({
|
|
996
|
+
name: "TableColumn",
|
|
997
|
+
inheritAttrs: false,
|
|
998
|
+
components: {
|
|
999
|
+
Default: column_default,
|
|
1000
|
+
Sequence: sequence,
|
|
1001
|
+
Selection: selection,
|
|
1002
|
+
Date: date,
|
|
1003
|
+
Dict: dict,
|
|
1004
|
+
Operate: operate
|
|
1005
|
+
},
|
|
1006
|
+
props: {
|
|
1007
|
+
control: {
|
|
1008
|
+
type: String,
|
|
1009
|
+
required: false,
|
|
1010
|
+
default: "Default"
|
|
1011
|
+
},
|
|
1012
|
+
slots: {
|
|
1013
|
+
type: Object
|
|
1014
|
+
}
|
|
1015
|
+
},
|
|
1016
|
+
render: function render(h) {
|
|
1017
|
+
var _this = this;
|
|
1018
|
+
var param = {
|
|
1019
|
+
attrs: Object.assign({}, this.$attrs),
|
|
1020
|
+
on: this.$listeners,
|
|
1021
|
+
slots: this.$slots,
|
|
1022
|
+
scopedSlots: this.$scopedSlots
|
|
1023
|
+
};
|
|
1024
|
+
if (this.slots) {
|
|
1025
|
+
var _loop = function _loop(key) {
|
|
1026
|
+
param.scopedSlots[key] = function (scoped) {
|
|
1027
|
+
if (typeof _this.slots[key] === "function") {
|
|
1028
|
+
return _this.slots[key].call(_this, h, scoped);
|
|
1029
|
+
}
|
|
1030
|
+
return _this.slots[key];
|
|
1031
|
+
};
|
|
1032
|
+
if (typeof _this.slots[key] !== "function") {
|
|
1033
|
+
param.slots[key] = _this.slots[key];
|
|
1034
|
+
}
|
|
1035
|
+
};
|
|
1036
|
+
for (var key in this.slots) {
|
|
1037
|
+
_loop(key);
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
return h(this.control, _extends({}, param));
|
|
1041
|
+
}
|
|
1042
|
+
});
|
|
1043
|
+
// CONCATENATED MODULE: ./src/components/table-column/index.js
|
|
1044
|
+
|
|
1045
|
+
/* istanbul ignore next */
|
|
1046
|
+
table_column.install = function (Vue) {
|
|
1047
|
+
Vue.component(table_column.name, table_column);
|
|
1048
|
+
};
|
|
1049
|
+
/* harmony default export */ var components_table_column = __webpack_exports__["default"] = (table_column);
|
|
1050
|
+
|
|
1051
|
+
/***/ })
|
|
1052
|
+
|
|
1053
|
+
/******/ });
|