@panpanzhao/component-ui 1.0.2 → 1.24.930
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 +898 -104
- package/lib/components/crud.js +67 -66
- package/lib/components/dialog.js +2 -2
- package/lib/components/drawer.js +2 -2
- package/lib/components/form-dialog.js +25 -25
- package/lib/components/form-drawer.js +35 -35
- package/lib/components/form-group.js +22 -20
- package/lib/components/form-input.js +421 -38
- package/lib/components/form-item.js +2 -2
- package/lib/components/form-query.js +11 -10
- package/lib/components/form-view-dialog.js +39 -39
- package/lib/components/form-view-group.js +35 -35
- package/lib/components/form-view.js +10 -12
- package/lib/components/form.js +9 -8
- package/lib/components/formula.js +20 -20
- package/lib/components/table-column.js +4 -4
- package/lib/components/table-editable.js +10 -2
- package/lib/components/table-operate.js +66 -65
- package/lib/components/table-search.js +2 -2
- package/lib/components/table.js +221 -60
- package/lib/components/timeline.js +675 -0
- package/lib/components/tree-line.js +2 -3
- package/lib/index.js +1 -1
- package/lib/styles/component-ui.css +2 -2
- package/lib/styles/form.css +1 -1
- package/lib/styles/index.css +2 -2
- package/lib/styles/table.css +1 -1
- package/lib/styles/tree-line.css +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,675 @@
|
|
|
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 = 73);
|
|
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("dayjs");
|
|
206
|
+
|
|
207
|
+
/***/ }),
|
|
208
|
+
|
|
209
|
+
/***/ 19:
|
|
210
|
+
/***/ (function(module, exports) {
|
|
211
|
+
|
|
212
|
+
module.exports = require("element-ui/lib/descriptions");
|
|
213
|
+
|
|
214
|
+
/***/ }),
|
|
215
|
+
|
|
216
|
+
/***/ 2:
|
|
217
|
+
/***/ (function(module, exports) {
|
|
218
|
+
|
|
219
|
+
module.exports = require("lodash");
|
|
220
|
+
|
|
221
|
+
/***/ }),
|
|
222
|
+
|
|
223
|
+
/***/ 20:
|
|
224
|
+
/***/ (function(module, exports) {
|
|
225
|
+
|
|
226
|
+
module.exports = require("element-ui/lib/descriptions-item");
|
|
227
|
+
|
|
228
|
+
/***/ }),
|
|
229
|
+
|
|
230
|
+
/***/ 3:
|
|
231
|
+
/***/ (function(module, exports) {
|
|
232
|
+
|
|
233
|
+
module.exports = require("@panpanzhao/component-ui/lib/utils/formula");
|
|
234
|
+
|
|
235
|
+
/***/ }),
|
|
236
|
+
|
|
237
|
+
/***/ 6:
|
|
238
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
239
|
+
|
|
240
|
+
"use strict";
|
|
241
|
+
// ESM COMPAT FLAG
|
|
242
|
+
__webpack_require__.r(__webpack_exports__);
|
|
243
|
+
|
|
244
|
+
// EXTERNAL MODULE: external "@vue/babel-helper-vue-jsx-merge-props"
|
|
245
|
+
var babel_helper_vue_jsx_merge_props_ = __webpack_require__(0);
|
|
246
|
+
var babel_helper_vue_jsx_merge_props_default = /*#__PURE__*/__webpack_require__.n(babel_helper_vue_jsx_merge_props_);
|
|
247
|
+
|
|
248
|
+
// EXTERNAL MODULE: external "element-ui/lib/descriptions"
|
|
249
|
+
var descriptions_ = __webpack_require__(19);
|
|
250
|
+
var descriptions_default = /*#__PURE__*/__webpack_require__.n(descriptions_);
|
|
251
|
+
|
|
252
|
+
// EXTERNAL MODULE: external "element-ui/lib/descriptions-item"
|
|
253
|
+
var descriptions_item_ = __webpack_require__(20);
|
|
254
|
+
var descriptions_item_default = /*#__PURE__*/__webpack_require__.n(descriptions_item_);
|
|
255
|
+
|
|
256
|
+
// EXTERNAL MODULE: external "@panpanzhao/component-ui/lib/utils/formula"
|
|
257
|
+
var formula_ = __webpack_require__(3);
|
|
258
|
+
|
|
259
|
+
// EXTERNAL MODULE: external "lodash"
|
|
260
|
+
var external_lodash_ = __webpack_require__(2);
|
|
261
|
+
|
|
262
|
+
// EXTERNAL MODULE: external "dayjs"
|
|
263
|
+
var external_dayjs_ = __webpack_require__(11);
|
|
264
|
+
var external_dayjs_default = /*#__PURE__*/__webpack_require__.n(external_dayjs_);
|
|
265
|
+
|
|
266
|
+
// CONCATENATED MODULE: ./src/components/form-view/src/index.js
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
/* harmony default export */ var src = ({
|
|
275
|
+
name: "FormView",
|
|
276
|
+
componentName: "FormView",
|
|
277
|
+
components: {
|
|
278
|
+
elDescriptions: descriptions_default.a,
|
|
279
|
+
elDescriptionsItem: descriptions_item_default.a
|
|
280
|
+
},
|
|
281
|
+
props: {
|
|
282
|
+
prop: String,
|
|
283
|
+
labelWidth: String,
|
|
284
|
+
labelPosition: String,
|
|
285
|
+
formItems: {
|
|
286
|
+
type: Array,
|
|
287
|
+
default: function _default() {
|
|
288
|
+
return [];
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
formModel: {
|
|
292
|
+
type: Object,
|
|
293
|
+
default: function _default() {
|
|
294
|
+
return {};
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
computed: {
|
|
299
|
+
filterFormItems: function filterFormItems() {
|
|
300
|
+
var _this = this;
|
|
301
|
+
return this.formItems.filter(function (item) {
|
|
302
|
+
if (item.show === false) {
|
|
303
|
+
return false;
|
|
304
|
+
}
|
|
305
|
+
if (typeof item.show === "function" && !item.show.call(_this, {
|
|
306
|
+
form: _this,
|
|
307
|
+
config: item
|
|
308
|
+
})) {
|
|
309
|
+
return false;
|
|
310
|
+
}
|
|
311
|
+
if (typeof item.show === "string" && !Object(formula_["evaluate"])(item.show, _this.formModel, {
|
|
312
|
+
evalMode: true
|
|
313
|
+
})) {
|
|
314
|
+
return false;
|
|
315
|
+
}
|
|
316
|
+
return true;
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
data: function data() {
|
|
321
|
+
return {
|
|
322
|
+
formItemLayout: {}
|
|
323
|
+
};
|
|
324
|
+
},
|
|
325
|
+
created: function created() {
|
|
326
|
+
var _this2 = this;
|
|
327
|
+
this.formItems.forEach(function (item) {
|
|
328
|
+
_this2.formItemLayout[item.prop] = item;
|
|
329
|
+
//初始化数据值
|
|
330
|
+
_this2.$set(_this2.formModel, item.prop, _this2.formModel[item.prop] || null);
|
|
331
|
+
});
|
|
332
|
+
},
|
|
333
|
+
methods: {
|
|
334
|
+
setFormModel: function setFormModel(model) {
|
|
335
|
+
Object(external_lodash_["merge"])(this.formModel, model);
|
|
336
|
+
},
|
|
337
|
+
renderContent: function renderContent(h, item) {
|
|
338
|
+
if (typeof item.formatter === "function") {
|
|
339
|
+
return item.formatter.call(this, {
|
|
340
|
+
formModel: this.formModel,
|
|
341
|
+
config: item
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
var value = this.formModel[item.prop];
|
|
345
|
+
if (value === null || value === undefined) {
|
|
346
|
+
return value;
|
|
347
|
+
}
|
|
348
|
+
if (item.control === "Dict" && item.dictCode && this.$COMPONENT.dataSource && this.$COMPONENT.dataSource.dict) {
|
|
349
|
+
var options = this.$COMPONENT.dataSource.dict[item.dictCode];
|
|
350
|
+
var map = {};
|
|
351
|
+
if (Array.isArray(options)) {
|
|
352
|
+
options.forEach(function (dictItem) {
|
|
353
|
+
map[dictItem.value] = dictItem;
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
return map[value] && map[value].label;
|
|
357
|
+
} else if (item.control === "Date" && external_dayjs_default()(value).isValid()) {
|
|
358
|
+
return external_dayjs_default()(value).format(item.format || "YYYY-MM-DD");
|
|
359
|
+
} else {
|
|
360
|
+
return value;
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
renderItem: function renderItem(h, item) {
|
|
364
|
+
var _item$slots, _item$slots2, _item$slots3, _item$slots4, _item$slots5, _item$slots6;
|
|
365
|
+
var param = {
|
|
366
|
+
attrs: Object.assign({}, item)
|
|
367
|
+
};
|
|
368
|
+
return h("el-descriptions-item", babel_helper_vue_jsx_merge_props_default()([{
|
|
369
|
+
"key": item.prop
|
|
370
|
+
}, param]), [h("div", {
|
|
371
|
+
"class": "form-view_wrap"
|
|
372
|
+
}, [typeof ((_item$slots = item.slots) == null ? void 0 : _item$slots.prependItem) === "function" ? (_item$slots2 = item.slots) == null || (_item$slots2 = _item$slots2.prependItem) == null ? void 0 : _item$slots2.call(this, h) : (_item$slots3 = item.slots) == null ? void 0 : _item$slots3.prependItem, h("div", {
|
|
373
|
+
"class": "form-view_content"
|
|
374
|
+
}, [this.renderContent(h, item)]), typeof ((_item$slots4 = item.slots) == null ? void 0 : _item$slots4.appendItem) === "function" ? (_item$slots5 = item.slots) == null || (_item$slots5 = _item$slots5.appendItem) == null ? void 0 : _item$slots5.call(this, h) : (_item$slots6 = item.slots) == null ? void 0 : _item$slots6.appendItem])]);
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
render: function render(h) {
|
|
378
|
+
var _this3 = this;
|
|
379
|
+
var param = {
|
|
380
|
+
attrs: Object.assign({
|
|
381
|
+
border: true,
|
|
382
|
+
direction: this.labelPosition === "top" ? "vertical" : "horizontal",
|
|
383
|
+
labelStyle: {
|
|
384
|
+
width: this.labelWidth,
|
|
385
|
+
textAlign: this.labelPosition
|
|
386
|
+
}
|
|
387
|
+
}, this.$attrs),
|
|
388
|
+
on: Object.assign({}, this.$listeners)
|
|
389
|
+
};
|
|
390
|
+
return h("div", {
|
|
391
|
+
"class": "form-view"
|
|
392
|
+
}, [h("el-descriptions", babel_helper_vue_jsx_merge_props_default()([{
|
|
393
|
+
"ref": "form"
|
|
394
|
+
}, param]), [this.filterFormItems.map(function (item) {
|
|
395
|
+
return _this3.renderItem(h, item);
|
|
396
|
+
})])]);
|
|
397
|
+
}
|
|
398
|
+
});
|
|
399
|
+
// CONCATENATED MODULE: ./src/components/form-view/index.js
|
|
400
|
+
|
|
401
|
+
src.install = function (Vue) {
|
|
402
|
+
Vue.component(src.name, src);
|
|
403
|
+
};
|
|
404
|
+
/* harmony default export */ var form_view = __webpack_exports__["default"] = (src);
|
|
405
|
+
|
|
406
|
+
/***/ }),
|
|
407
|
+
|
|
408
|
+
/***/ 73:
|
|
409
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
410
|
+
|
|
411
|
+
"use strict";
|
|
412
|
+
// ESM COMPAT FLAG
|
|
413
|
+
__webpack_require__.r(__webpack_exports__);
|
|
414
|
+
|
|
415
|
+
// CONCATENATED MODULE: ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/timeline/src/index.vue?vue&type=template&id=34b55949
|
|
416
|
+
var render = function render() {
|
|
417
|
+
var _vm = this,
|
|
418
|
+
_c = _vm._self._c
|
|
419
|
+
return _c(
|
|
420
|
+
"ul",
|
|
421
|
+
{
|
|
422
|
+
staticClass: "el-timeline timeline",
|
|
423
|
+
class: { "is-reverse": _vm.reverse },
|
|
424
|
+
style: { marginLeft: _vm.leftWidth },
|
|
425
|
+
},
|
|
426
|
+
_vm._l(_vm.itemDatas, function (item, index) {
|
|
427
|
+
return _c(
|
|
428
|
+
"TimeItem",
|
|
429
|
+
_vm._b(
|
|
430
|
+
{ key: index, attrs: { data: item } },
|
|
431
|
+
"TimeItem",
|
|
432
|
+
_vm.layout,
|
|
433
|
+
false
|
|
434
|
+
)
|
|
435
|
+
)
|
|
436
|
+
}),
|
|
437
|
+
1
|
|
438
|
+
)
|
|
439
|
+
}
|
|
440
|
+
var staticRenderFns = []
|
|
441
|
+
render._withStripped = true
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
// CONCATENATED MODULE: ./src/components/timeline/src/index.vue?vue&type=template&id=34b55949
|
|
445
|
+
|
|
446
|
+
// CONCATENATED MODULE: ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/timeline/src/time-item.vue?vue&type=template&id=5871346c
|
|
447
|
+
var time_itemvue_type_template_id_5871346c_render = function render() {
|
|
448
|
+
var _vm = this,
|
|
449
|
+
_c = _vm._self._c
|
|
450
|
+
return _c("li", { staticClass: "el-timeline-item" }, [
|
|
451
|
+
_c("div", { staticClass: "el-timeline-item__tail" }),
|
|
452
|
+
!_vm.$slots.dot
|
|
453
|
+
? _c(
|
|
454
|
+
"div",
|
|
455
|
+
{
|
|
456
|
+
staticClass: "el-timeline-item__node",
|
|
457
|
+
class: [
|
|
458
|
+
`el-timeline-item__node--${_vm.size || ""}`,
|
|
459
|
+
`el-timeline-item__node--${_vm.type || ""}`,
|
|
460
|
+
],
|
|
461
|
+
style: {
|
|
462
|
+
backgroundColor: _vm.color,
|
|
463
|
+
},
|
|
464
|
+
},
|
|
465
|
+
[
|
|
466
|
+
_vm.icon
|
|
467
|
+
? _c("i", {
|
|
468
|
+
staticClass: "el-timeline-item__icon",
|
|
469
|
+
class: _vm.icon,
|
|
470
|
+
})
|
|
471
|
+
: _vm._e(),
|
|
472
|
+
]
|
|
473
|
+
)
|
|
474
|
+
: _vm._e(),
|
|
475
|
+
_vm.$slots.dot
|
|
476
|
+
? _c("div", { staticClass: "el-timeline-item__dot" }, [_vm._t("dot")], 2)
|
|
477
|
+
: _vm._e(),
|
|
478
|
+
_c("div", { staticClass: "el-timeline-item__wrapper" }, [
|
|
479
|
+
!_vm.hideTimestamp && _vm.placement === "top"
|
|
480
|
+
? _c("div", { staticClass: "el-timeline-item__timestamp is-top" }, [
|
|
481
|
+
_vm._v("\n " + _vm._s(_vm.timestamp) + "\n "),
|
|
482
|
+
])
|
|
483
|
+
: _vm._e(),
|
|
484
|
+
!_vm.hideTimestamp && _vm.placement === "left"
|
|
485
|
+
? _c(
|
|
486
|
+
"div",
|
|
487
|
+
{
|
|
488
|
+
staticClass: "el-timeline-item__timestamp is-left",
|
|
489
|
+
style: { left: "28px" },
|
|
490
|
+
},
|
|
491
|
+
[_vm._v("\n " + _vm._s(_vm.timestamp) + "\n ")]
|
|
492
|
+
)
|
|
493
|
+
: _vm._e(),
|
|
494
|
+
_c(
|
|
495
|
+
"div",
|
|
496
|
+
{ staticClass: "el-timeline-item__content" },
|
|
497
|
+
[
|
|
498
|
+
_vm._t("default", function () {
|
|
499
|
+
return [
|
|
500
|
+
_c("FormView", _vm._b({}, "FormView", _vm.formLayout, false)),
|
|
501
|
+
]
|
|
502
|
+
}),
|
|
503
|
+
],
|
|
504
|
+
2
|
|
505
|
+
),
|
|
506
|
+
!_vm.hideTimestamp && _vm.placement === "bottom"
|
|
507
|
+
? _c("div", { staticClass: "el-timeline-item__timestamp is-bottom" }, [
|
|
508
|
+
_vm._v("\n " + _vm._s(_vm.timestamp) + "\n "),
|
|
509
|
+
])
|
|
510
|
+
: _vm._e(),
|
|
511
|
+
]),
|
|
512
|
+
])
|
|
513
|
+
}
|
|
514
|
+
var time_itemvue_type_template_id_5871346c_staticRenderFns = []
|
|
515
|
+
time_itemvue_type_template_id_5871346c_render._withStripped = true
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
// CONCATENATED MODULE: ./src/components/timeline/src/time-item.vue?vue&type=template&id=5871346c
|
|
519
|
+
|
|
520
|
+
// EXTERNAL MODULE: ./src/components/form-view/index.js + 1 modules
|
|
521
|
+
var form_view = __webpack_require__(6);
|
|
522
|
+
|
|
523
|
+
// CONCATENATED MODULE: ./node_modules/.pnpm/babel-loader@8.3.0_@babel+core@7.23.9_webpack@4.47.0/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/timeline/src/time-item.vue?vue&type=script&lang=js
|
|
524
|
+
|
|
525
|
+
/* harmony default export */ var time_itemvue_type_script_lang_js = ({
|
|
526
|
+
name: 'TimeItem',
|
|
527
|
+
components: {
|
|
528
|
+
FormView: form_view["default"]
|
|
529
|
+
},
|
|
530
|
+
props: {
|
|
531
|
+
timestamp: String,
|
|
532
|
+
leftWidth: {
|
|
533
|
+
type: String,
|
|
534
|
+
default: '200px'
|
|
535
|
+
},
|
|
536
|
+
hideTimestamp: {
|
|
537
|
+
type: Boolean,
|
|
538
|
+
default: false
|
|
539
|
+
},
|
|
540
|
+
placement: {
|
|
541
|
+
type: String,
|
|
542
|
+
default: 'bottom'
|
|
543
|
+
},
|
|
544
|
+
type: String,
|
|
545
|
+
color: String,
|
|
546
|
+
size: {
|
|
547
|
+
type: String,
|
|
548
|
+
default: 'normal'
|
|
549
|
+
},
|
|
550
|
+
icon: String,
|
|
551
|
+
labelWidth: String,
|
|
552
|
+
labelPosition: String,
|
|
553
|
+
formItems: {
|
|
554
|
+
type: Array,
|
|
555
|
+
default: function _default() {
|
|
556
|
+
return [];
|
|
557
|
+
}
|
|
558
|
+
},
|
|
559
|
+
data: {
|
|
560
|
+
type: Object,
|
|
561
|
+
default: function _default() {
|
|
562
|
+
return {};
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
},
|
|
566
|
+
computed: {
|
|
567
|
+
itemDatas: function itemDatas() {
|
|
568
|
+
return this.reverse ? this.items.data() : this.data;
|
|
569
|
+
},
|
|
570
|
+
formLayout: function formLayout() {
|
|
571
|
+
return Object.assign({}, this.$attrs, {
|
|
572
|
+
labelWidth: this.labelWidth,
|
|
573
|
+
labelPosition: this.labelPosition,
|
|
574
|
+
formModel: this.data,
|
|
575
|
+
formItems: this.formItems
|
|
576
|
+
});
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
});
|
|
580
|
+
// CONCATENATED MODULE: ./src/components/timeline/src/time-item.vue?vue&type=script&lang=js
|
|
581
|
+
/* harmony default export */ var src_time_itemvue_type_script_lang_js = (time_itemvue_type_script_lang_js);
|
|
582
|
+
// EXTERNAL MODULE: ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
583
|
+
var componentNormalizer = __webpack_require__(1);
|
|
584
|
+
|
|
585
|
+
// CONCATENATED MODULE: ./src/components/timeline/src/time-item.vue
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
|
|
591
|
+
/* normalize component */
|
|
592
|
+
|
|
593
|
+
var component = Object(componentNormalizer["a" /* default */])(
|
|
594
|
+
src_time_itemvue_type_script_lang_js,
|
|
595
|
+
time_itemvue_type_template_id_5871346c_render,
|
|
596
|
+
time_itemvue_type_template_id_5871346c_staticRenderFns,
|
|
597
|
+
false,
|
|
598
|
+
null,
|
|
599
|
+
null,
|
|
600
|
+
null
|
|
601
|
+
|
|
602
|
+
)
|
|
603
|
+
|
|
604
|
+
/* harmony default export */ var time_item = (component.exports);
|
|
605
|
+
// CONCATENATED MODULE: ./node_modules/.pnpm/babel-loader@8.3.0_@babel+core@7.23.9_webpack@4.47.0/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@2.1.1_lodash@4.17.21_vue-template-compiler@2.7.16_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./src/components/timeline/src/index.vue?vue&type=script&lang=js
|
|
606
|
+
|
|
607
|
+
/* harmony default export */ var srcvue_type_script_lang_js = ({
|
|
608
|
+
name: "Timeline",
|
|
609
|
+
components: {
|
|
610
|
+
TimeItem: time_item
|
|
611
|
+
},
|
|
612
|
+
props: {
|
|
613
|
+
reverse: {
|
|
614
|
+
type: Boolean,
|
|
615
|
+
default: false
|
|
616
|
+
},
|
|
617
|
+
type: {
|
|
618
|
+
type: String,
|
|
619
|
+
default: "table"
|
|
620
|
+
},
|
|
621
|
+
leftWidth: {
|
|
622
|
+
type: String,
|
|
623
|
+
default: "200px"
|
|
624
|
+
},
|
|
625
|
+
data: {
|
|
626
|
+
type: Array,
|
|
627
|
+
default: function _default() {
|
|
628
|
+
return [];
|
|
629
|
+
}
|
|
630
|
+
},
|
|
631
|
+
layout: {
|
|
632
|
+
type: Object,
|
|
633
|
+
default: function _default() {}
|
|
634
|
+
}
|
|
635
|
+
},
|
|
636
|
+
computed: {
|
|
637
|
+
itemDatas: function itemDatas() {
|
|
638
|
+
return this.reverse ? this.items.data() : this.data;
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
});
|
|
642
|
+
// CONCATENATED MODULE: ./src/components/timeline/src/index.vue?vue&type=script&lang=js
|
|
643
|
+
/* harmony default export */ var timeline_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
|
|
644
|
+
// CONCATENATED MODULE: ./src/components/timeline/src/index.vue
|
|
645
|
+
|
|
646
|
+
|
|
647
|
+
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
/* normalize component */
|
|
651
|
+
|
|
652
|
+
var src_component = Object(componentNormalizer["a" /* default */])(
|
|
653
|
+
timeline_srcvue_type_script_lang_js,
|
|
654
|
+
render,
|
|
655
|
+
staticRenderFns,
|
|
656
|
+
false,
|
|
657
|
+
null,
|
|
658
|
+
null,
|
|
659
|
+
null
|
|
660
|
+
|
|
661
|
+
)
|
|
662
|
+
|
|
663
|
+
/* harmony default export */ var src = (src_component.exports);
|
|
664
|
+
// CONCATENATED MODULE: ./src/components/timeline/index.js
|
|
665
|
+
|
|
666
|
+
|
|
667
|
+
/* istanbul ignore next */
|
|
668
|
+
src.install = function (Vue) {
|
|
669
|
+
Vue.component(src.name, src);
|
|
670
|
+
};
|
|
671
|
+
/* harmony default export */ var timeline = __webpack_exports__["default"] = (src);
|
|
672
|
+
|
|
673
|
+
/***/ })
|
|
674
|
+
|
|
675
|
+
/******/ });
|
|
@@ -82,12 +82,12 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 85);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
89
89
|
|
|
90
|
-
/***/
|
|
90
|
+
/***/ 85:
|
|
91
91
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
92
92
|
|
|
93
93
|
"use strict";
|
|
@@ -122,7 +122,6 @@ function getComConfig(h) {
|
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
124
|
render: function render(createElement) {
|
|
125
|
-
debugger;
|
|
126
125
|
var $createElement = h || createElement;
|
|
127
126
|
// 自定义整行节点label区域
|
|
128
127
|
var scopeSlotDefault = this.getScopedSlot('default');
|