@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
|
@@ -95,13 +95,13 @@ module.exports = require("@vue/babel-helper-vue-jsx-merge-props");
|
|
|
95
95
|
/* 1 */
|
|
96
96
|
/***/ (function(module, exports) {
|
|
97
97
|
|
|
98
|
-
module.exports = require("
|
|
98
|
+
module.exports = require("@panpanzhao/component-ui/lib/utils/formula");
|
|
99
99
|
|
|
100
100
|
/***/ }),
|
|
101
101
|
/* 2 */
|
|
102
102
|
/***/ (function(module, exports) {
|
|
103
103
|
|
|
104
|
-
module.exports = require("
|
|
104
|
+
module.exports = require("lodash");
|
|
105
105
|
|
|
106
106
|
/***/ }),
|
|
107
107
|
/* 3 */
|
|
@@ -227,103 +227,103 @@ module.exports = require("element-ui/lib/radio");
|
|
|
227
227
|
/* 23 */
|
|
228
228
|
/***/ (function(module, exports) {
|
|
229
229
|
|
|
230
|
-
module.exports = require("element-ui/lib/
|
|
230
|
+
module.exports = require("element-ui/lib/cascader");
|
|
231
231
|
|
|
232
232
|
/***/ }),
|
|
233
233
|
/* 24 */
|
|
234
234
|
/***/ (function(module, exports) {
|
|
235
235
|
|
|
236
|
-
module.exports = require("element-ui/lib/
|
|
236
|
+
module.exports = require("element-ui/lib/table");
|
|
237
237
|
|
|
238
238
|
/***/ }),
|
|
239
239
|
/* 25 */
|
|
240
240
|
/***/ (function(module, exports) {
|
|
241
241
|
|
|
242
|
-
module.exports = require("element-ui/lib/
|
|
242
|
+
module.exports = require("element-ui/lib/utils/popup");
|
|
243
243
|
|
|
244
244
|
/***/ }),
|
|
245
245
|
/* 26 */
|
|
246
246
|
/***/ (function(module, exports) {
|
|
247
247
|
|
|
248
|
-
module.exports = require("
|
|
248
|
+
module.exports = require("element-ui/lib/mixins/emitter");
|
|
249
249
|
|
|
250
250
|
/***/ }),
|
|
251
251
|
/* 27 */
|
|
252
252
|
/***/ (function(module, exports) {
|
|
253
253
|
|
|
254
|
-
module.exports = require("
|
|
254
|
+
module.exports = require("codemirror");
|
|
255
255
|
|
|
256
256
|
/***/ }),
|
|
257
257
|
/* 28 */
|
|
258
258
|
/***/ (function(module, exports) {
|
|
259
259
|
|
|
260
|
-
module.exports = require("
|
|
260
|
+
module.exports = require("@panpanzhao/component-ui/lib/components/drawer");
|
|
261
261
|
|
|
262
262
|
/***/ }),
|
|
263
263
|
/* 29 */
|
|
264
264
|
/***/ (function(module, exports) {
|
|
265
265
|
|
|
266
|
-
module.exports = require("element-ui/lib/
|
|
266
|
+
module.exports = require("element-ui/lib/link");
|
|
267
267
|
|
|
268
268
|
/***/ }),
|
|
269
269
|
/* 30 */
|
|
270
270
|
/***/ (function(module, exports) {
|
|
271
271
|
|
|
272
|
-
module.exports = require("element-ui/lib/
|
|
272
|
+
module.exports = require("element-ui/lib/input-number");
|
|
273
273
|
|
|
274
274
|
/***/ }),
|
|
275
275
|
/* 31 */
|
|
276
276
|
/***/ (function(module, exports) {
|
|
277
277
|
|
|
278
|
-
module.exports = require("element-ui/lib/
|
|
278
|
+
module.exports = require("element-ui/lib/select");
|
|
279
279
|
|
|
280
280
|
/***/ }),
|
|
281
281
|
/* 32 */
|
|
282
282
|
/***/ (function(module, exports) {
|
|
283
283
|
|
|
284
|
-
module.exports = require("element-ui/lib/option
|
|
284
|
+
module.exports = require("element-ui/lib/option");
|
|
285
285
|
|
|
286
286
|
/***/ }),
|
|
287
287
|
/* 33 */
|
|
288
288
|
/***/ (function(module, exports) {
|
|
289
289
|
|
|
290
|
-
module.exports = require("
|
|
290
|
+
module.exports = require("element-ui/lib/option-group");
|
|
291
291
|
|
|
292
292
|
/***/ }),
|
|
293
293
|
/* 34 */
|
|
294
294
|
/***/ (function(module, exports) {
|
|
295
295
|
|
|
296
|
-
module.exports = require("
|
|
296
|
+
module.exports = require("@panpanzhao/component-ui/lib/components/tree-line");
|
|
297
297
|
|
|
298
298
|
/***/ }),
|
|
299
299
|
/* 35 */
|
|
300
300
|
/***/ (function(module, exports) {
|
|
301
301
|
|
|
302
|
-
module.exports = require("element-ui/lib/radio-
|
|
302
|
+
module.exports = require("element-ui/lib/radio-group");
|
|
303
303
|
|
|
304
304
|
/***/ }),
|
|
305
305
|
/* 36 */
|
|
306
306
|
/***/ (function(module, exports) {
|
|
307
307
|
|
|
308
|
-
module.exports = require("element-ui/lib/
|
|
308
|
+
module.exports = require("element-ui/lib/radio-button");
|
|
309
309
|
|
|
310
310
|
/***/ }),
|
|
311
311
|
/* 37 */
|
|
312
312
|
/***/ (function(module, exports) {
|
|
313
313
|
|
|
314
|
-
module.exports = require("element-ui/lib/checkbox");
|
|
314
|
+
module.exports = require("element-ui/lib/checkbox-group");
|
|
315
315
|
|
|
316
316
|
/***/ }),
|
|
317
317
|
/* 38 */
|
|
318
318
|
/***/ (function(module, exports) {
|
|
319
319
|
|
|
320
|
-
module.exports = require("element-ui/lib/checkbox
|
|
320
|
+
module.exports = require("element-ui/lib/checkbox");
|
|
321
321
|
|
|
322
322
|
/***/ }),
|
|
323
323
|
/* 39 */
|
|
324
324
|
/***/ (function(module, exports) {
|
|
325
325
|
|
|
326
|
-
module.exports = require("element-ui/lib/
|
|
326
|
+
module.exports = require("element-ui/lib/checkbox-button");
|
|
327
327
|
|
|
328
328
|
/***/ }),
|
|
329
329
|
/* 40 */
|
|
@@ -577,10 +577,10 @@ var form_item_ = __webpack_require__(21);
|
|
|
577
577
|
var form_item_default = /*#__PURE__*/__webpack_require__.n(form_item_);
|
|
578
578
|
|
|
579
579
|
// EXTERNAL MODULE: external "@panpanzhao/component-ui/lib/utils/formula"
|
|
580
|
-
var formula_ = __webpack_require__(
|
|
580
|
+
var formula_ = __webpack_require__(1);
|
|
581
581
|
|
|
582
582
|
// EXTERNAL MODULE: external "lodash"
|
|
583
|
-
var external_lodash_ = __webpack_require__(
|
|
583
|
+
var external_lodash_ = __webpack_require__(2);
|
|
584
584
|
|
|
585
585
|
// 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/form/src/form.vue?vue&type=script&lang=js
|
|
586
586
|
|
|
@@ -1068,7 +1068,7 @@ InputNumbervue_type_template_id_6c463d52_render._withStripped = true
|
|
|
1068
1068
|
// CONCATENATED MODULE: ./src/components/form/src/item/InputNumber.vue?vue&type=template&id=6c463d52
|
|
1069
1069
|
|
|
1070
1070
|
// EXTERNAL MODULE: external "element-ui/lib/input-number"
|
|
1071
|
-
var input_number_ = __webpack_require__(
|
|
1071
|
+
var input_number_ = __webpack_require__(30);
|
|
1072
1072
|
var input_number_default = /*#__PURE__*/__webpack_require__.n(input_number_);
|
|
1073
1073
|
|
|
1074
1074
|
// 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/form/src/item/InputNumber.vue?vue&type=script&lang=js
|
|
@@ -1111,15 +1111,15 @@ var InputNumber_component = normalizeComponent(
|
|
|
1111
1111
|
|
|
1112
1112
|
/* harmony default export */ var InputNumber = (InputNumber_component.exports);
|
|
1113
1113
|
// EXTERNAL MODULE: external "element-ui/lib/select"
|
|
1114
|
-
var select_ = __webpack_require__(
|
|
1114
|
+
var select_ = __webpack_require__(31);
|
|
1115
1115
|
var select_default = /*#__PURE__*/__webpack_require__.n(select_);
|
|
1116
1116
|
|
|
1117
1117
|
// EXTERNAL MODULE: external "element-ui/lib/option"
|
|
1118
|
-
var option_ = __webpack_require__(
|
|
1118
|
+
var option_ = __webpack_require__(32);
|
|
1119
1119
|
var option_default = /*#__PURE__*/__webpack_require__.n(option_);
|
|
1120
1120
|
|
|
1121
1121
|
// EXTERNAL MODULE: external "element-ui/lib/option-group"
|
|
1122
|
-
var option_group_ = __webpack_require__(
|
|
1122
|
+
var option_group_ = __webpack_require__(33);
|
|
1123
1123
|
var option_group_default = /*#__PURE__*/__webpack_require__.n(option_group_);
|
|
1124
1124
|
|
|
1125
1125
|
// 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/form/src/item/SelectTree.vue?vue&type=template&id=0f44d547
|
|
@@ -1215,7 +1215,7 @@ SelectTreevue_type_template_id_0f44d547_render._withStripped = true
|
|
|
1215
1215
|
// CONCATENATED MODULE: ./src/components/form/src/item/SelectTree.vue?vue&type=template&id=0f44d547
|
|
1216
1216
|
|
|
1217
1217
|
// EXTERNAL MODULE: external "@panpanzhao/component-ui/lib/components/tree-line"
|
|
1218
|
-
var tree_line_ = __webpack_require__(
|
|
1218
|
+
var tree_line_ = __webpack_require__(34);
|
|
1219
1219
|
var tree_line_default = /*#__PURE__*/__webpack_require__.n(tree_line_);
|
|
1220
1220
|
|
|
1221
1221
|
// 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/form/src/item/SelectTree.vue?vue&type=script&lang=js
|
|
@@ -1610,7 +1610,8 @@ var SelectTree_component = normalizeComponent(
|
|
|
1610
1610
|
if (!(this.api && this.api.url && this.request)) {
|
|
1611
1611
|
return false;
|
|
1612
1612
|
}
|
|
1613
|
-
var reqData = Object(
|
|
1613
|
+
var reqData = Object.assign({}, this.api.body, this.api.data);
|
|
1614
|
+
// let reqData=merge({},this.api.data)
|
|
1614
1615
|
if (typeof this.api.before === "function") {
|
|
1615
1616
|
reqData = this.api.before.call(this, reqData, {
|
|
1616
1617
|
form: this._form,
|
|
@@ -1749,7 +1750,7 @@ var Select_component = normalizeComponent(
|
|
|
1749
1750
|
|
|
1750
1751
|
/* harmony default export */ var Select = (Select_component.exports);
|
|
1751
1752
|
// EXTERNAL MODULE: external "element-ui/lib/radio-group"
|
|
1752
|
-
var radio_group_ = __webpack_require__(
|
|
1753
|
+
var radio_group_ = __webpack_require__(35);
|
|
1753
1754
|
var radio_group_default = /*#__PURE__*/__webpack_require__.n(radio_group_);
|
|
1754
1755
|
|
|
1755
1756
|
// EXTERNAL MODULE: external "element-ui/lib/radio"
|
|
@@ -1757,7 +1758,7 @@ var radio_ = __webpack_require__(22);
|
|
|
1757
1758
|
var radio_default = /*#__PURE__*/__webpack_require__.n(radio_);
|
|
1758
1759
|
|
|
1759
1760
|
// EXTERNAL MODULE: external "element-ui/lib/radio-button"
|
|
1760
|
-
var radio_button_ = __webpack_require__(
|
|
1761
|
+
var radio_button_ = __webpack_require__(36);
|
|
1761
1762
|
var radio_button_default = /*#__PURE__*/__webpack_require__.n(radio_button_);
|
|
1762
1763
|
|
|
1763
1764
|
// 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/form/src/item/Radio.vue?vue&type=script&lang=js
|
|
@@ -1868,10 +1869,11 @@ var radio_button_default = /*#__PURE__*/__webpack_require__.n(radio_button_);
|
|
|
1868
1869
|
if (!(this.api && this.api.url && this.request)) {
|
|
1869
1870
|
return false;
|
|
1870
1871
|
}
|
|
1872
|
+
var reqData = Object.assign({}, this.api.body, this.api.data);
|
|
1871
1873
|
this.request({
|
|
1872
|
-
url: Object(formula_["evaluate"])(this.api.url,
|
|
1874
|
+
url: Object(formula_["evaluate"])(this.api.url, reqData),
|
|
1873
1875
|
method: this.api.method || "GET",
|
|
1874
|
-
data:
|
|
1876
|
+
data: reqData
|
|
1875
1877
|
}).then(function (res) {
|
|
1876
1878
|
if (typeof _this.api.transform === "function") {
|
|
1877
1879
|
_this.apiOptions = _this.api.transform.call(_this, resData);
|
|
@@ -1951,15 +1953,15 @@ var Radio_component = normalizeComponent(
|
|
|
1951
1953
|
|
|
1952
1954
|
/* harmony default export */ var Radio = (Radio_component.exports);
|
|
1953
1955
|
// EXTERNAL MODULE: external "element-ui/lib/checkbox-group"
|
|
1954
|
-
var checkbox_group_ = __webpack_require__(
|
|
1956
|
+
var checkbox_group_ = __webpack_require__(37);
|
|
1955
1957
|
var checkbox_group_default = /*#__PURE__*/__webpack_require__.n(checkbox_group_);
|
|
1956
1958
|
|
|
1957
1959
|
// EXTERNAL MODULE: external "element-ui/lib/checkbox"
|
|
1958
|
-
var checkbox_ = __webpack_require__(
|
|
1960
|
+
var checkbox_ = __webpack_require__(38);
|
|
1959
1961
|
var checkbox_default = /*#__PURE__*/__webpack_require__.n(checkbox_);
|
|
1960
1962
|
|
|
1961
1963
|
// EXTERNAL MODULE: external "element-ui/lib/checkbox-button"
|
|
1962
|
-
var checkbox_button_ = __webpack_require__(
|
|
1964
|
+
var checkbox_button_ = __webpack_require__(39);
|
|
1963
1965
|
var checkbox_button_default = /*#__PURE__*/__webpack_require__.n(checkbox_button_);
|
|
1964
1966
|
|
|
1965
1967
|
// 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/form/src/item/Checkbox.vue?vue&type=script&lang=js
|
|
@@ -2080,10 +2082,11 @@ var checkbox_button_default = /*#__PURE__*/__webpack_require__.n(checkbox_button
|
|
|
2080
2082
|
if (!(this.api && this.api.url && this.request)) {
|
|
2081
2083
|
return false;
|
|
2082
2084
|
}
|
|
2085
|
+
var reqData = Object.assign({}, this.api.body, this.api.data);
|
|
2083
2086
|
this.request({
|
|
2084
|
-
url: Object(formula_["evaluate"])(this.api.url,
|
|
2087
|
+
url: Object(formula_["evaluate"])(this.api.url, reqData),
|
|
2085
2088
|
method: this.api.method || "GET",
|
|
2086
|
-
data:
|
|
2089
|
+
data: reqData
|
|
2087
2090
|
}).then(function (res) {
|
|
2088
2091
|
if (typeof _this.api.transform === "function") {
|
|
2089
2092
|
_this.apiOptions = _this.api.transform.call(_this, resData);
|
|
@@ -2247,7 +2250,7 @@ Cascadervue_type_template_id_1306b5bf_render._withStripped = true
|
|
|
2247
2250
|
// CONCATENATED MODULE: ./src/components/form/src/item/Cascader.vue?vue&type=template&id=1306b5bf
|
|
2248
2251
|
|
|
2249
2252
|
// EXTERNAL MODULE: external "element-ui/lib/cascader"
|
|
2250
|
-
var cascader_ = __webpack_require__(
|
|
2253
|
+
var cascader_ = __webpack_require__(23);
|
|
2251
2254
|
var cascader_default = /*#__PURE__*/__webpack_require__.n(cascader_);
|
|
2252
2255
|
|
|
2253
2256
|
// 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/form/src/item/Cascader.vue?vue&type=script&lang=js
|
|
@@ -2294,6 +2297,384 @@ var Cascader_component = normalizeComponent(
|
|
|
2294
2297
|
)
|
|
2295
2298
|
|
|
2296
2299
|
/* harmony default export */ var Cascader = (Cascader_component.exports);
|
|
2300
|
+
// 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/form/src/item/CascaderAddr.vue?vue&type=template&id=12c36b3c
|
|
2301
|
+
var CascaderAddrvue_type_template_id_12c36b3c_render = function render() {
|
|
2302
|
+
var _vm = this,
|
|
2303
|
+
_c = _vm._self._c
|
|
2304
|
+
return _c(
|
|
2305
|
+
"div",
|
|
2306
|
+
{ staticClass: "cascader-addr", class: { isAddr: _vm.showAddress } },
|
|
2307
|
+
[
|
|
2308
|
+
_c(
|
|
2309
|
+
"div",
|
|
2310
|
+
{ staticClass: "cascader-addr__cascader" },
|
|
2311
|
+
[
|
|
2312
|
+
_c(
|
|
2313
|
+
"el-cascader",
|
|
2314
|
+
_vm._b(
|
|
2315
|
+
{
|
|
2316
|
+
ref: "cascaderRef",
|
|
2317
|
+
on: { change: _vm.cascaderChange },
|
|
2318
|
+
model: {
|
|
2319
|
+
value: _vm.cascaderValue,
|
|
2320
|
+
callback: function ($$v) {
|
|
2321
|
+
_vm.cascaderValue = $$v
|
|
2322
|
+
},
|
|
2323
|
+
expression: "cascaderValue",
|
|
2324
|
+
},
|
|
2325
|
+
},
|
|
2326
|
+
"el-cascader",
|
|
2327
|
+
_vm.cascaderAttrs,
|
|
2328
|
+
false
|
|
2329
|
+
)
|
|
2330
|
+
),
|
|
2331
|
+
],
|
|
2332
|
+
1
|
|
2333
|
+
),
|
|
2334
|
+
_vm.showAddress
|
|
2335
|
+
? _c(
|
|
2336
|
+
"div",
|
|
2337
|
+
{ staticClass: "cascader-addr__input" },
|
|
2338
|
+
[
|
|
2339
|
+
_c(
|
|
2340
|
+
"el-input",
|
|
2341
|
+
_vm._b(
|
|
2342
|
+
{
|
|
2343
|
+
on: { change: _vm.inputChange, clear: _vm.inputChange },
|
|
2344
|
+
model: {
|
|
2345
|
+
value: _vm.inputValue,
|
|
2346
|
+
callback: function ($$v) {
|
|
2347
|
+
_vm.inputValue = $$v
|
|
2348
|
+
},
|
|
2349
|
+
expression: "inputValue",
|
|
2350
|
+
},
|
|
2351
|
+
},
|
|
2352
|
+
"el-input",
|
|
2353
|
+
_vm.inputAttrs,
|
|
2354
|
+
false
|
|
2355
|
+
)
|
|
2356
|
+
),
|
|
2357
|
+
],
|
|
2358
|
+
1
|
|
2359
|
+
)
|
|
2360
|
+
: _vm._e(),
|
|
2361
|
+
]
|
|
2362
|
+
)
|
|
2363
|
+
}
|
|
2364
|
+
var CascaderAddrvue_type_template_id_12c36b3c_staticRenderFns = []
|
|
2365
|
+
CascaderAddrvue_type_template_id_12c36b3c_render._withStripped = true
|
|
2366
|
+
|
|
2367
|
+
|
|
2368
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/CascaderAddr.vue?vue&type=template&id=12c36b3c
|
|
2369
|
+
|
|
2370
|
+
// 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/form/src/item/CascaderAddr.vue?vue&type=script&lang=js
|
|
2371
|
+
|
|
2372
|
+
|
|
2373
|
+
|
|
2374
|
+
/* harmony default export */ var CascaderAddrvue_type_script_lang_js = ({
|
|
2375
|
+
name: "CascaderAddr",
|
|
2376
|
+
components: {
|
|
2377
|
+
elCascader: cascader_default.a,
|
|
2378
|
+
elInput: input_default.a
|
|
2379
|
+
},
|
|
2380
|
+
props: {
|
|
2381
|
+
size: String,
|
|
2382
|
+
value: {
|
|
2383
|
+
type: Object,
|
|
2384
|
+
default: function _default() {
|
|
2385
|
+
return null;
|
|
2386
|
+
}
|
|
2387
|
+
},
|
|
2388
|
+
showAddress: {
|
|
2389
|
+
type: Boolean,
|
|
2390
|
+
default: true
|
|
2391
|
+
},
|
|
2392
|
+
cascader: {
|
|
2393
|
+
type: Object,
|
|
2394
|
+
default: function _default() {
|
|
2395
|
+
return {};
|
|
2396
|
+
}
|
|
2397
|
+
},
|
|
2398
|
+
input: {
|
|
2399
|
+
type: Object,
|
|
2400
|
+
default: function _default() {
|
|
2401
|
+
return {};
|
|
2402
|
+
}
|
|
2403
|
+
},
|
|
2404
|
+
api: {
|
|
2405
|
+
type: Object,
|
|
2406
|
+
default: function _default() {
|
|
2407
|
+
return {};
|
|
2408
|
+
}
|
|
2409
|
+
},
|
|
2410
|
+
dictCode: String,
|
|
2411
|
+
options: {
|
|
2412
|
+
type: Array,
|
|
2413
|
+
default: function _default() {
|
|
2414
|
+
return null;
|
|
2415
|
+
}
|
|
2416
|
+
},
|
|
2417
|
+
optionProps: {
|
|
2418
|
+
type: Object,
|
|
2419
|
+
default: function _default() {
|
|
2420
|
+
return {};
|
|
2421
|
+
}
|
|
2422
|
+
},
|
|
2423
|
+
fieldProps: {
|
|
2424
|
+
type: Object,
|
|
2425
|
+
default: function _default() {
|
|
2426
|
+
return {
|
|
2427
|
+
provinceCode: "provinceCode",
|
|
2428
|
+
provinceName: "provinceName",
|
|
2429
|
+
cityCode: "cityCode",
|
|
2430
|
+
cityName: "cityName",
|
|
2431
|
+
countyCode: "countyCode",
|
|
2432
|
+
countyName: "countyName",
|
|
2433
|
+
address: "address"
|
|
2434
|
+
};
|
|
2435
|
+
}
|
|
2436
|
+
}
|
|
2437
|
+
},
|
|
2438
|
+
watch: {
|
|
2439
|
+
value: {
|
|
2440
|
+
handler: function handler(val) {
|
|
2441
|
+
this.valueCached['provinceCode'] = val == null ? void 0 : val[this._fieldProps['provinceCode']];
|
|
2442
|
+
this.valueCached['cityCode'] = val == null ? void 0 : val[this._fieldProps['cityCode']];
|
|
2443
|
+
this.valueCached['countyCode'] = val == null ? void 0 : val[this._fieldProps['countyCode']];
|
|
2444
|
+
this.valueCached['provinceName'] = val == null ? void 0 : val[this._fieldProps['provinceName']];
|
|
2445
|
+
this.valueCached['cityName'] = val == null ? void 0 : val[this._fieldProps['cityName']];
|
|
2446
|
+
this.valueCached['countyName'] = val == null ? void 0 : val[this._fieldProps['countyName']];
|
|
2447
|
+
this.valueCached['address'] = val == null ? void 0 : val[this._fieldProps['address']];
|
|
2448
|
+
},
|
|
2449
|
+
deep: true
|
|
2450
|
+
},
|
|
2451
|
+
"_form.formModel.countyCode": function _formFormModelCountyCode(val) {
|
|
2452
|
+
var _this$_form$formModel, _this$_form$formModel2, _this$_form$formModel3, _this$_form$formModel4, _this$_form$formModel5, _this$_form$formModel6, _this$_form$formModel7;
|
|
2453
|
+
this.valueCached['provinceCode'] = (_this$_form$formModel = this._form.formModel) == null ? void 0 : _this$_form$formModel[this._fieldProps['provinceCode']];
|
|
2454
|
+
this.valueCached['cityCode'] = (_this$_form$formModel2 = this._form.formModel) == null ? void 0 : _this$_form$formModel2[this._fieldProps['cityCode']];
|
|
2455
|
+
this.valueCached['countyCode'] = (_this$_form$formModel3 = this._form.formModel) == null ? void 0 : _this$_form$formModel3[this._fieldProps['countyCode']];
|
|
2456
|
+
this.valueCached['provinceName'] = (_this$_form$formModel4 = this._form.formModel) == null ? void 0 : _this$_form$formModel4[this._fieldProps['provinceName']];
|
|
2457
|
+
this.valueCached['cityName'] = (_this$_form$formModel5 = this._form.formModel) == null ? void 0 : _this$_form$formModel5[this._fieldProps['cityName']];
|
|
2458
|
+
this.valueCached['countyName'] = (_this$_form$formModel6 = this._form.formModel) == null ? void 0 : _this$_form$formModel6[this._fieldProps['countyName']];
|
|
2459
|
+
this.valueCached['address'] = (_this$_form$formModel7 = this._form.formModel) == null ? void 0 : _this$_form$formModel7[this._fieldProps['address']];
|
|
2460
|
+
this.$emit("change", this.valueCached);
|
|
2461
|
+
}
|
|
2462
|
+
},
|
|
2463
|
+
data: function data() {
|
|
2464
|
+
return {
|
|
2465
|
+
apiOptions: null,
|
|
2466
|
+
valueCached: {
|
|
2467
|
+
provinceCode: null,
|
|
2468
|
+
provinceName: null,
|
|
2469
|
+
cityCode: null,
|
|
2470
|
+
cityName: null,
|
|
2471
|
+
countyCode: null,
|
|
2472
|
+
countyName: null,
|
|
2473
|
+
address: null
|
|
2474
|
+
}
|
|
2475
|
+
};
|
|
2476
|
+
},
|
|
2477
|
+
computed: {
|
|
2478
|
+
cascaderValue: {
|
|
2479
|
+
get: function get() {
|
|
2480
|
+
var valObj = this.valueCached;
|
|
2481
|
+
if (!valObj) {
|
|
2482
|
+
return [];
|
|
2483
|
+
}
|
|
2484
|
+
var provinceCode = valObj[this._fieldProps['provinceCode']];
|
|
2485
|
+
var cityCode = valObj[this._fieldProps['cityCode']];
|
|
2486
|
+
var countyCode = valObj[this._fieldProps['countyCode']];
|
|
2487
|
+
if (!(provinceCode && cityCode && countyCode)) {
|
|
2488
|
+
return [];
|
|
2489
|
+
}
|
|
2490
|
+
return [provinceCode, cityCode, countyCode];
|
|
2491
|
+
},
|
|
2492
|
+
set: function set(val) {
|
|
2493
|
+
this.cascaderChange(val);
|
|
2494
|
+
}
|
|
2495
|
+
},
|
|
2496
|
+
inputValue: {
|
|
2497
|
+
get: function get() {
|
|
2498
|
+
var valObj = this.valueCached;
|
|
2499
|
+
if (!valObj) {
|
|
2500
|
+
return null;
|
|
2501
|
+
}
|
|
2502
|
+
return valObj[this._fieldProps['address']];
|
|
2503
|
+
},
|
|
2504
|
+
set: function set(val) {
|
|
2505
|
+
this.inputChange(val);
|
|
2506
|
+
}
|
|
2507
|
+
},
|
|
2508
|
+
cascaderAttrs: function cascaderAttrs() {
|
|
2509
|
+
return Object.assign({
|
|
2510
|
+
size: this.size,
|
|
2511
|
+
clearable: true
|
|
2512
|
+
}, this.cascader, {
|
|
2513
|
+
options: this.optionData,
|
|
2514
|
+
props: this._optionProps
|
|
2515
|
+
});
|
|
2516
|
+
},
|
|
2517
|
+
inputAttrs: function inputAttrs() {
|
|
2518
|
+
return Object.assign({
|
|
2519
|
+
size: this.size,
|
|
2520
|
+
clearable: true
|
|
2521
|
+
}, this.input);
|
|
2522
|
+
},
|
|
2523
|
+
request: function request() {
|
|
2524
|
+
return this.api.request || this._form && this._form.request || (this.$COMPONENT || {}).request;
|
|
2525
|
+
},
|
|
2526
|
+
_optionProps: function _optionProps() {
|
|
2527
|
+
return Object.assign({
|
|
2528
|
+
value: "value",
|
|
2529
|
+
label: "label",
|
|
2530
|
+
children: "children"
|
|
2531
|
+
}, this.optionProps);
|
|
2532
|
+
},
|
|
2533
|
+
_fieldProps: function _fieldProps() {
|
|
2534
|
+
return Object.assign({
|
|
2535
|
+
provinceCode: "provinceCode",
|
|
2536
|
+
provinceName: "provinceName",
|
|
2537
|
+
cityCode: "cityCode",
|
|
2538
|
+
cityName: "cityName",
|
|
2539
|
+
countyCode: "countyCode",
|
|
2540
|
+
countyName: "countyName",
|
|
2541
|
+
address: "address"
|
|
2542
|
+
}, this.fieldProps);
|
|
2543
|
+
},
|
|
2544
|
+
dictOption: function dictOption() {
|
|
2545
|
+
if (this.dictCode && this.$COMPONENT.dataSource && this.$COMPONENT.dataSource.dict) {
|
|
2546
|
+
return this.$COMPONENT.dataSource.dict[this.dictCode];
|
|
2547
|
+
}
|
|
2548
|
+
return [];
|
|
2549
|
+
},
|
|
2550
|
+
optionData: function optionData() {
|
|
2551
|
+
var options = this.options || this.apiOptions;
|
|
2552
|
+
return Array.isArray(options) ? options : this.dictOption;
|
|
2553
|
+
},
|
|
2554
|
+
_form: function _form() {
|
|
2555
|
+
var parent = this.$parent;
|
|
2556
|
+
while (parent) {
|
|
2557
|
+
if (parent.$options.componentName !== 'Form') {
|
|
2558
|
+
parent = parent.$parent;
|
|
2559
|
+
} else {
|
|
2560
|
+
return parent;
|
|
2561
|
+
}
|
|
2562
|
+
}
|
|
2563
|
+
return false;
|
|
2564
|
+
}
|
|
2565
|
+
},
|
|
2566
|
+
created: function created() {
|
|
2567
|
+
var _this$_form;
|
|
2568
|
+
//设置为可响应数据
|
|
2569
|
+
this.initVal(this == null || (_this$_form = this._form) == null ? void 0 : _this$_form.formModel);
|
|
2570
|
+
this.initVal(this.value);
|
|
2571
|
+
debugger;
|
|
2572
|
+
},
|
|
2573
|
+
mounted: function mounted() {
|
|
2574
|
+
this.initApi();
|
|
2575
|
+
},
|
|
2576
|
+
methods: {
|
|
2577
|
+
initVal: function initVal(model) {
|
|
2578
|
+
var provinceCode = this._fieldProps['provinceCode'];
|
|
2579
|
+
var cityCode = this._fieldProps['cityCode'];
|
|
2580
|
+
var countyCode = this._fieldProps['countyCode'];
|
|
2581
|
+
var provinceName = this._fieldProps['provinceName'];
|
|
2582
|
+
var cityName = this._fieldProps['cityName'];
|
|
2583
|
+
var countyName = this._fieldProps['countyName'];
|
|
2584
|
+
var address = this._fieldProps['address'];
|
|
2585
|
+
if (model) {
|
|
2586
|
+
this.$set(model, provinceCode, model[provinceCode]);
|
|
2587
|
+
this.$set(model, cityCode, model[cityCode]);
|
|
2588
|
+
this.$set(model, countyCode, model[countyCode]);
|
|
2589
|
+
this.$set(model, provinceName, model[provinceName]);
|
|
2590
|
+
this.$set(model, cityName, model[cityName]);
|
|
2591
|
+
this.$set(model, countyName, model[countyName]);
|
|
2592
|
+
this.$set(model, address, model[address]);
|
|
2593
|
+
}
|
|
2594
|
+
},
|
|
2595
|
+
initApi: function initApi() {
|
|
2596
|
+
var _this = this;
|
|
2597
|
+
if (!(this.api && this.api.url && this.request)) {
|
|
2598
|
+
return false;
|
|
2599
|
+
}
|
|
2600
|
+
var reqData = Object.assign({}, this.api.body, this.api.data);
|
|
2601
|
+
if (typeof this.api.before === "function") {
|
|
2602
|
+
reqData = this.api.before.call(this, reqData, {
|
|
2603
|
+
form: this._form,
|
|
2604
|
+
formModel: this._form && this._form.formModel
|
|
2605
|
+
});
|
|
2606
|
+
}
|
|
2607
|
+
this.request({
|
|
2608
|
+
url: Object(formula_["evaluate"])(this.api.url, reqData),
|
|
2609
|
+
method: this.api.method || "GET",
|
|
2610
|
+
headers: this.api.headers,
|
|
2611
|
+
data: reqData
|
|
2612
|
+
}).then(function (res) {
|
|
2613
|
+
if (typeof _this.api.after === "function") {
|
|
2614
|
+
res = _this.api.after.call(_this, res, {
|
|
2615
|
+
form: _this._form,
|
|
2616
|
+
formModel: _this._form && _this._form.formModel
|
|
2617
|
+
});
|
|
2618
|
+
}
|
|
2619
|
+
_this.apiOptions = _this.api.dataPath ? get(res, _this.api.dataPath, []) : res;
|
|
2620
|
+
}).catch(function (error) {
|
|
2621
|
+
_this.apiOptions = null;
|
|
2622
|
+
});
|
|
2623
|
+
},
|
|
2624
|
+
cascaderChange: function cascaderChange(val) {
|
|
2625
|
+
var _nodes$, _this$_form2, _this$_form3;
|
|
2626
|
+
var nodes = this.$refs.cascaderRef.getCheckedNodes();
|
|
2627
|
+
var pathLabels = nodes == null || (_nodes$ = nodes[0]) == null ? void 0 : _nodes$.pathLabels;
|
|
2628
|
+
this.valueCached.provinceCode = val[0];
|
|
2629
|
+
this.valueCached.provinceName = pathLabels == null ? void 0 : pathLabels[0];
|
|
2630
|
+
this.valueCached.cityCode = val[1];
|
|
2631
|
+
this.valueCached.cityName = pathLabels == null ? void 0 : pathLabels[1];
|
|
2632
|
+
this.valueCached.countyCode = val[2];
|
|
2633
|
+
this.valueCached.countyName = pathLabels == null ? void 0 : pathLabels[2];
|
|
2634
|
+
this.valueCached.address = this.valueCached.address || ((_this$_form2 = this._form) == null || (_this$_form2 = _this$_form2.formModel) == null ? void 0 : _this$_form2[this._fieldProps['address']]);
|
|
2635
|
+
this.$emit("change", this.valueCached);
|
|
2636
|
+
if (this != null && (_this$_form3 = this._form) != null && _this$_form3.formModel) {
|
|
2637
|
+
Object.assign(this._form.formModel, this.valueCached);
|
|
2638
|
+
}
|
|
2639
|
+
},
|
|
2640
|
+
inputChange: function inputChange(val) {
|
|
2641
|
+
var _this$_form4, _this$_form5, _this$_form6, _this$_form7, _this$_form8, _this$_form9, _this$_form10;
|
|
2642
|
+
this.valueCached.provinceCode = this.valueCached.provinceCode || ((_this$_form4 = this._form) == null || (_this$_form4 = _this$_form4.formModel) == null ? void 0 : _this$_form4[this._fieldProps['provinceCode']]);
|
|
2643
|
+
this.valueCached.provinceName = this.valueCached.provinceName || ((_this$_form5 = this._form) == null || (_this$_form5 = _this$_form5.formModel) == null ? void 0 : _this$_form5[this._fieldProps['provinceName']]);
|
|
2644
|
+
this.valueCached.cityCode = this.valueCached.cityCode || ((_this$_form6 = this._form) == null || (_this$_form6 = _this$_form6.formModel) == null ? void 0 : _this$_form6[this._fieldProps['cityCode']]);
|
|
2645
|
+
this.valueCached.cityName = this.valueCached.cityName || ((_this$_form7 = this._form) == null || (_this$_form7 = _this$_form7.formModel) == null ? void 0 : _this$_form7[this._fieldProps['cityName']]);
|
|
2646
|
+
this.valueCached.countyCode = this.valueCached.countyCode || ((_this$_form8 = this._form) == null || (_this$_form8 = _this$_form8.formModel) == null ? void 0 : _this$_form8[this._fieldProps['countyCode']]);
|
|
2647
|
+
this.valueCached.countyName = this.valueCached.provinceCode || ((_this$_form9 = this._form) == null || (_this$_form9 = _this$_form9.formModel) == null ? void 0 : _this$_form9[this._fieldProps['countyName']]);
|
|
2648
|
+
this.valueCached.address = val;
|
|
2649
|
+
this.$emit("change", this.valueCached);
|
|
2650
|
+
if (this != null && (_this$_form10 = this._form) != null && _this$_form10.formModel) {
|
|
2651
|
+
this._form.formModel[this._fieldProps['address']] = val;
|
|
2652
|
+
}
|
|
2653
|
+
}
|
|
2654
|
+
}
|
|
2655
|
+
});
|
|
2656
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/CascaderAddr.vue?vue&type=script&lang=js
|
|
2657
|
+
/* harmony default export */ var item_CascaderAddrvue_type_script_lang_js = (CascaderAddrvue_type_script_lang_js);
|
|
2658
|
+
// CONCATENATED MODULE: ./src/components/form/src/item/CascaderAddr.vue
|
|
2659
|
+
|
|
2660
|
+
|
|
2661
|
+
|
|
2662
|
+
|
|
2663
|
+
|
|
2664
|
+
/* normalize component */
|
|
2665
|
+
|
|
2666
|
+
var CascaderAddr_component = normalizeComponent(
|
|
2667
|
+
item_CascaderAddrvue_type_script_lang_js,
|
|
2668
|
+
CascaderAddrvue_type_template_id_12c36b3c_render,
|
|
2669
|
+
CascaderAddrvue_type_template_id_12c36b3c_staticRenderFns,
|
|
2670
|
+
false,
|
|
2671
|
+
null,
|
|
2672
|
+
null,
|
|
2673
|
+
null
|
|
2674
|
+
|
|
2675
|
+
)
|
|
2676
|
+
|
|
2677
|
+
/* harmony default export */ var CascaderAddr = (CascaderAddr_component.exports);
|
|
2297
2678
|
// EXTERNAL MODULE: external "element-ui/lib/date-picker"
|
|
2298
2679
|
var date_picker_ = __webpack_require__(40);
|
|
2299
2680
|
var date_picker_default = /*#__PURE__*/__webpack_require__.n(date_picker_);
|
|
@@ -3104,11 +3485,13 @@ var upload_default = /*#__PURE__*/__webpack_require__.n(upload_);
|
|
|
3104
3485
|
|
|
3105
3486
|
|
|
3106
3487
|
|
|
3488
|
+
|
|
3107
3489
|
/* harmony default export */ var form_input = ({
|
|
3108
3490
|
name: "FormInput",
|
|
3109
3491
|
inheritAttrs: false,
|
|
3110
3492
|
components: {
|
|
3111
3493
|
Cascader: Cascader,
|
|
3494
|
+
CascaderAddr: CascaderAddr,
|
|
3112
3495
|
Slider: slider_default.a,
|
|
3113
3496
|
Transfer: transfer_default.a,
|
|
3114
3497
|
Switchs: switch_default.a,
|
|
@@ -3692,6 +4075,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
3692
4075
|
var offset = this.offset(currentSpan);
|
|
3693
4076
|
return h("el-row", {
|
|
3694
4077
|
"attrs": {
|
|
4078
|
+
"type": "flex",
|
|
3695
4079
|
"gutter": this.gutter
|
|
3696
4080
|
}
|
|
3697
4081
|
}, [doms, h("el-col", {
|
|
@@ -4585,7 +4969,7 @@ form_dialog_src.install = function (Vue) {
|
|
|
4585
4969
|
};
|
|
4586
4970
|
/* harmony default export */ var form_dialog = (form_dialog_src);
|
|
4587
4971
|
// EXTERNAL MODULE: external "@panpanzhao/component-ui/lib/components/drawer"
|
|
4588
|
-
var drawer_ = __webpack_require__(
|
|
4972
|
+
var drawer_ = __webpack_require__(28);
|
|
4589
4973
|
var drawer_default = /*#__PURE__*/__webpack_require__.n(drawer_);
|
|
4590
4974
|
|
|
4591
4975
|
// 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/form-drawer/src/index.vue?vue&type=script&lang=js
|
|
@@ -5523,8 +5907,8 @@ form_view_dialog_src.install = function (Vue) {
|
|
|
5523
5907
|
Vue.component(form_view_dialog_src.name, form_view_dialog_src);
|
|
5524
5908
|
};
|
|
5525
5909
|
/* harmony default export */ var form_view_dialog = (form_view_dialog_src);
|
|
5526
|
-
// 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/table/src/table.vue?vue&type=template&id=
|
|
5527
|
-
var
|
|
5910
|
+
// 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/table/src/table.vue?vue&type=template&id=38455fe1
|
|
5911
|
+
var tablevue_type_template_id_38455fe1_render = function render() {
|
|
5528
5912
|
var _vm = this,
|
|
5529
5913
|
_c = _vm._self._c
|
|
5530
5914
|
return _c("div", { staticClass: "table" }, [
|
|
@@ -5585,31 +5969,124 @@ var tablevue_type_template_id_1a5269fa_render = function render() {
|
|
|
5585
5969
|
1
|
|
5586
5970
|
),
|
|
5587
5971
|
_vm.pagination
|
|
5588
|
-
? _c(
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5972
|
+
? _c("div", { staticClass: "table__pagination" }, [
|
|
5973
|
+
_c(
|
|
5974
|
+
"div",
|
|
5975
|
+
[
|
|
5976
|
+
_c(
|
|
5977
|
+
"el-pagination",
|
|
5978
|
+
_vm._g(
|
|
5979
|
+
_vm._b({}, "el-pagination", _vm.paginationProps, false),
|
|
5980
|
+
_vm.paginationListeners
|
|
5981
|
+
)
|
|
5982
|
+
),
|
|
5983
|
+
],
|
|
5984
|
+
1
|
|
5985
|
+
),
|
|
5986
|
+
_vm.columnsKey
|
|
5987
|
+
? _c(
|
|
5988
|
+
"div",
|
|
5989
|
+
[
|
|
5990
|
+
_c("el-popover", { attrs: { placement: "top" } }, [
|
|
5991
|
+
_c("div", { staticClass: "table-setting" }, [
|
|
5992
|
+
_c(
|
|
5993
|
+
"div",
|
|
5994
|
+
{ staticClass: "table-setting__title" },
|
|
5995
|
+
[
|
|
5996
|
+
_c("el-input", {
|
|
5997
|
+
attrs: { size: "small", placeholder: "请输入列名" },
|
|
5998
|
+
model: {
|
|
5999
|
+
value: _vm.columnKey,
|
|
6000
|
+
callback: function ($$v) {
|
|
6001
|
+
_vm.columnKey = $$v
|
|
6002
|
+
},
|
|
6003
|
+
expression: "columnKey",
|
|
6004
|
+
},
|
|
6005
|
+
}),
|
|
6006
|
+
],
|
|
6007
|
+
1
|
|
6008
|
+
),
|
|
6009
|
+
_c(
|
|
6010
|
+
"div",
|
|
6011
|
+
{ staticClass: "table-setting__body" },
|
|
6012
|
+
_vm._l(_vm.columnsSetting, function (item) {
|
|
6013
|
+
return _c(
|
|
6014
|
+
"div",
|
|
6015
|
+
{ key: item.prop, staticClass: "item" },
|
|
6016
|
+
[
|
|
6017
|
+
_c("el-switch", {
|
|
6018
|
+
on: {
|
|
6019
|
+
change: (value) =>
|
|
6020
|
+
_vm.handleSetting(value, item),
|
|
6021
|
+
},
|
|
6022
|
+
model: {
|
|
6023
|
+
value: item.disable,
|
|
6024
|
+
callback: function ($$v) {
|
|
6025
|
+
_vm.$set(item, "disable", $$v)
|
|
6026
|
+
},
|
|
6027
|
+
expression: "item.disable",
|
|
6028
|
+
},
|
|
6029
|
+
}),
|
|
6030
|
+
_c("span", { staticClass: "item-label" }, [
|
|
6031
|
+
_vm._v(_vm._s(item.label)),
|
|
6032
|
+
]),
|
|
6033
|
+
],
|
|
6034
|
+
1
|
|
6035
|
+
)
|
|
6036
|
+
}),
|
|
6037
|
+
0
|
|
6038
|
+
),
|
|
6039
|
+
_c(
|
|
6040
|
+
"div",
|
|
6041
|
+
{
|
|
6042
|
+
staticStyle: {
|
|
6043
|
+
"text-align": "right",
|
|
6044
|
+
"margin-top": "10px",
|
|
6045
|
+
},
|
|
6046
|
+
},
|
|
6047
|
+
[
|
|
6048
|
+
_c(
|
|
6049
|
+
"el-button",
|
|
6050
|
+
{
|
|
6051
|
+
attrs: { size: "mini" },
|
|
6052
|
+
on: { click: _vm.resetColumn },
|
|
6053
|
+
},
|
|
6054
|
+
[_vm._v("重置")]
|
|
6055
|
+
),
|
|
6056
|
+
_c(
|
|
6057
|
+
"el-button",
|
|
6058
|
+
{
|
|
6059
|
+
attrs: { type: "primary", size: "mini" },
|
|
6060
|
+
on: { click: _vm.saveColumn },
|
|
6061
|
+
},
|
|
6062
|
+
[_vm._v("保存")]
|
|
6063
|
+
),
|
|
6064
|
+
],
|
|
6065
|
+
1
|
|
6066
|
+
),
|
|
6067
|
+
]),
|
|
6068
|
+
_c(
|
|
6069
|
+
"span",
|
|
6070
|
+
{ attrs: { slot: "reference" }, slot: "reference" },
|
|
6071
|
+
[_c("i", { staticClass: "el-icon-s-grid" })]
|
|
6072
|
+
),
|
|
6073
|
+
]),
|
|
6074
|
+
],
|
|
6075
|
+
1
|
|
5597
6076
|
)
|
|
5598
|
-
),
|
|
5599
|
-
|
|
5600
|
-
1
|
|
5601
|
-
)
|
|
6077
|
+
: _vm._e(),
|
|
6078
|
+
])
|
|
5602
6079
|
: _vm._e(),
|
|
5603
6080
|
])
|
|
5604
6081
|
}
|
|
5605
|
-
var
|
|
5606
|
-
|
|
6082
|
+
var tablevue_type_template_id_38455fe1_staticRenderFns = []
|
|
6083
|
+
tablevue_type_template_id_38455fe1_render._withStripped = true
|
|
5607
6084
|
|
|
5608
6085
|
|
|
5609
|
-
// CONCATENATED MODULE: ./src/components/table/src/table.vue?vue&type=template&id=
|
|
6086
|
+
// CONCATENATED MODULE: ./src/components/table/src/table.vue?vue&type=template&id=38455fe1
|
|
5610
6087
|
|
|
5611
6088
|
// EXTERNAL MODULE: external "element-ui/lib/table"
|
|
5612
|
-
var table_ = __webpack_require__(
|
|
6089
|
+
var table_ = __webpack_require__(24);
|
|
5613
6090
|
var table_default = /*#__PURE__*/__webpack_require__.n(table_);
|
|
5614
6091
|
|
|
5615
6092
|
// EXTERNAL MODULE: external "element-ui/lib/table-column"
|
|
@@ -5637,6 +6114,7 @@ var index_ = __webpack_require__(3);
|
|
|
5637
6114
|
|
|
5638
6115
|
|
|
5639
6116
|
|
|
6117
|
+
|
|
5640
6118
|
/* harmony default export */ var tablevue_type_script_lang_js = ({
|
|
5641
6119
|
name: "Table",
|
|
5642
6120
|
componentName: "Table",
|
|
@@ -5741,6 +6219,7 @@ var index_ = __webpack_require__(3);
|
|
|
5741
6219
|
}
|
|
5742
6220
|
},
|
|
5743
6221
|
dataSource: Object,
|
|
6222
|
+
columnsKey: String,
|
|
5744
6223
|
columns: {
|
|
5745
6224
|
type: Array,
|
|
5746
6225
|
default: function _default() {
|
|
@@ -5779,7 +6258,9 @@ var index_ = __webpack_require__(3);
|
|
|
5779
6258
|
remoteData: null,
|
|
5780
6259
|
currentPage: 1,
|
|
5781
6260
|
pageSize: 10,
|
|
5782
|
-
total: 0
|
|
6261
|
+
total: 0,
|
|
6262
|
+
columnKey: null,
|
|
6263
|
+
columnMap: {}
|
|
5783
6264
|
};
|
|
5784
6265
|
},
|
|
5785
6266
|
watch: {
|
|
@@ -5789,13 +6270,34 @@ var index_ = __webpack_require__(3);
|
|
|
5789
6270
|
}
|
|
5790
6271
|
},
|
|
5791
6272
|
computed: {
|
|
5792
|
-
|
|
6273
|
+
columnsSetting: function columnsSetting() {
|
|
5793
6274
|
var _this2 = this;
|
|
6275
|
+
var columns = this.columns.reduce(function (pre, cur) {
|
|
6276
|
+
if (["Sequence", "Selection", "Operate"].indexOf(cur.control) > -1) {
|
|
6277
|
+
return pre;
|
|
6278
|
+
}
|
|
6279
|
+
if (_this2.columnKey && cur.label && cur.label.indexOf(_this2.columnKey) === -1) {
|
|
6280
|
+
return pre;
|
|
6281
|
+
}
|
|
6282
|
+
pre.push({
|
|
6283
|
+
prop: cur.prop,
|
|
6284
|
+
label: cur.label,
|
|
6285
|
+
disable: _this2.columnMap[cur.prop] === false ? false : true
|
|
6286
|
+
});
|
|
6287
|
+
return pre;
|
|
6288
|
+
}, []);
|
|
6289
|
+
return columns;
|
|
6290
|
+
},
|
|
6291
|
+
filterColumns: function filterColumns() {
|
|
6292
|
+
var _this3 = this;
|
|
5794
6293
|
return this.columns.filter(function (item) {
|
|
6294
|
+
if (_this3.columnMap[item.prop] === false) {
|
|
6295
|
+
return false;
|
|
6296
|
+
}
|
|
5795
6297
|
if (item.show === false) {
|
|
5796
6298
|
return false;
|
|
5797
6299
|
}
|
|
5798
|
-
if (typeof item.show === "function" && !item.show.call(
|
|
6300
|
+
if (typeof item.show === "function" && !item.show.call(_this3, {
|
|
5799
6301
|
item: item
|
|
5800
6302
|
})) {
|
|
5801
6303
|
return false;
|
|
@@ -5821,7 +6323,7 @@ var index_ = __webpack_require__(3);
|
|
|
5821
6323
|
return Object.assign({
|
|
5822
6324
|
highlightCurrentRow: true,
|
|
5823
6325
|
stripe: true,
|
|
5824
|
-
defaultExpandAll:
|
|
6326
|
+
defaultExpandAll: false,
|
|
5825
6327
|
size: "mini",
|
|
5826
6328
|
rowKey: "id"
|
|
5827
6329
|
}, this.$attrs, {
|
|
@@ -5829,32 +6331,32 @@ var index_ = __webpack_require__(3);
|
|
|
5829
6331
|
});
|
|
5830
6332
|
},
|
|
5831
6333
|
tableListeners: function tableListeners() {
|
|
5832
|
-
var
|
|
6334
|
+
var _this4 = this;
|
|
5833
6335
|
return Object.assign({}, this.$listeners, this.on, {
|
|
5834
6336
|
"row-click": function rowClick(row) {
|
|
5835
|
-
var selectColumns =
|
|
6337
|
+
var selectColumns = _this4.columns.filter(function (item) {
|
|
5836
6338
|
return item.control === "Selection";
|
|
5837
6339
|
});
|
|
5838
6340
|
if (selectColumns && selectColumns.length > 0) {
|
|
5839
6341
|
var selectColumn = selectColumns[0];
|
|
5840
6342
|
if (selectColumn.type === "radio") {
|
|
5841
|
-
var key = selectColumn.prop ||
|
|
5842
|
-
|
|
5843
|
-
|
|
6343
|
+
var key = selectColumn.prop || _this4.tableProps.rowKey;
|
|
6344
|
+
_this4.rowId = row[key];
|
|
6345
|
+
_this4.selection = [row];
|
|
5844
6346
|
} else {
|
|
5845
|
-
|
|
6347
|
+
_this4.$refs.table.toggleRowSelection(row); // 点击选中
|
|
5846
6348
|
}
|
|
5847
6349
|
}
|
|
5848
|
-
|
|
5849
|
-
if (typeof
|
|
5850
|
-
|
|
6350
|
+
_this4.$emit("row-click", row);
|
|
6351
|
+
if (typeof _this4.on["row-click"] === "function") {
|
|
6352
|
+
_this4.on["row-click"].call(_this4, row);
|
|
5851
6353
|
}
|
|
5852
6354
|
},
|
|
5853
6355
|
"selection-change": function selectionChange(selection) {
|
|
5854
|
-
|
|
5855
|
-
|
|
5856
|
-
if (typeof
|
|
5857
|
-
|
|
6356
|
+
_this4.selection = selection;
|
|
6357
|
+
_this4.$emit("selection-change", selection);
|
|
6358
|
+
if (typeof _this4.on["selection-change"] === "function") {
|
|
6359
|
+
_this4.on["selection-change"].call(_this4, selection);
|
|
5858
6360
|
}
|
|
5859
6361
|
}
|
|
5860
6362
|
});
|
|
@@ -5873,27 +6375,37 @@ var index_ = __webpack_require__(3);
|
|
|
5873
6375
|
});
|
|
5874
6376
|
},
|
|
5875
6377
|
paginationListeners: function paginationListeners() {
|
|
5876
|
-
var
|
|
6378
|
+
var _this5 = this;
|
|
5877
6379
|
return Object.assign({}, this.pagination.on, {
|
|
5878
6380
|
"size-change": function sizeChange(pageSize) {
|
|
5879
|
-
|
|
5880
|
-
|
|
5881
|
-
|
|
5882
|
-
|
|
6381
|
+
_this5.$emit("size-change", pageSize);
|
|
6382
|
+
_this5.pageSize = pageSize;
|
|
6383
|
+
_this5.$emit("pageChange", _this5.paginationProps.currentPage, pageSize);
|
|
6384
|
+
_this5.search();
|
|
5883
6385
|
},
|
|
5884
6386
|
"current-change": function currentChange(currentPage) {
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
|
|
5888
|
-
|
|
6387
|
+
_this5.$emit("current-change", currentPage);
|
|
6388
|
+
_this5.currentPage = currentPage;
|
|
6389
|
+
_this5.$emit("pageChange", currentPage, _this5.paginationProps.pageSize);
|
|
6390
|
+
_this5.search();
|
|
5889
6391
|
}
|
|
5890
6392
|
});
|
|
5891
6393
|
}
|
|
5892
6394
|
},
|
|
5893
6395
|
created: function created() {
|
|
6396
|
+
var _this6 = this;
|
|
5894
6397
|
if (this.pagination && this.pagination.pageSize) {
|
|
5895
6398
|
this.pageSize = this.pagination.pageSize;
|
|
5896
6399
|
}
|
|
6400
|
+
if (this.columnsKey) {
|
|
6401
|
+
var columnStorage = JSON.parse(localStorage.getItem("component_columns") || "{}");
|
|
6402
|
+
var columnList = columnStorage && columnStorage[this.columnsKey];
|
|
6403
|
+
if (columnList) {
|
|
6404
|
+
columnList.forEach(function (prop) {
|
|
6405
|
+
_this6.$set(_this6.columnMap, prop, false);
|
|
6406
|
+
});
|
|
6407
|
+
}
|
|
6408
|
+
}
|
|
5897
6409
|
},
|
|
5898
6410
|
mounted: function mounted() {
|
|
5899
6411
|
if (this.hasInit) {
|
|
@@ -5909,11 +6421,11 @@ var index_ = __webpack_require__(3);
|
|
|
5909
6421
|
this.search();
|
|
5910
6422
|
},
|
|
5911
6423
|
search: function search() {
|
|
5912
|
-
var
|
|
6424
|
+
var _this7 = this;
|
|
5913
6425
|
if (!(this.requester && this.api.url)) {
|
|
5914
6426
|
return false;
|
|
5915
6427
|
}
|
|
5916
|
-
var reqData = Object.assign({}, this.api.data);
|
|
6428
|
+
var reqData = Object.assign({}, this.api.body, this.api.data);
|
|
5917
6429
|
if (this.pagination) {
|
|
5918
6430
|
Object(external_lodash_["set"])(reqData, this.remoteDataProp.currentPage, this.currentPage);
|
|
5919
6431
|
Object(external_lodash_["set"])(reqData, this.remoteDataProp.pageSize, this.pageSize);
|
|
@@ -5931,26 +6443,48 @@ var index_ = __webpack_require__(3);
|
|
|
5931
6443
|
headers: this.api.headers,
|
|
5932
6444
|
data: reqData
|
|
5933
6445
|
}).then(function (res) {
|
|
5934
|
-
if (typeof
|
|
5935
|
-
res =
|
|
6446
|
+
if (typeof _this7.api.after === "function") {
|
|
6447
|
+
res = _this7.api.after.call(_this7, res);
|
|
5936
6448
|
}
|
|
5937
|
-
|
|
5938
|
-
if (
|
|
5939
|
-
|
|
6449
|
+
_this7.remoteData = _this7.remoteDataProp.data ? Object(external_lodash_["get"])(res, _this7.remoteDataProp.data, []) : res;
|
|
6450
|
+
if (_this7.pagination) {
|
|
6451
|
+
_this7.total = Object(external_lodash_["get"])(res, _this7.remoteDataProp.total, 0);
|
|
5940
6452
|
}
|
|
5941
|
-
|
|
5942
|
-
request:
|
|
6453
|
+
_this7.$emit("success", {
|
|
6454
|
+
request: _this7.requester,
|
|
5943
6455
|
reqData: reqData,
|
|
5944
6456
|
resData: res
|
|
5945
6457
|
});
|
|
5946
6458
|
}).catch(function (error) {
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
request:
|
|
6459
|
+
_this7.remoteData = [], _this7.total = 0;
|
|
6460
|
+
_this7.$emit("error", {
|
|
6461
|
+
request: _this7.requester,
|
|
5950
6462
|
reqData: reqData,
|
|
5951
6463
|
resError: error
|
|
5952
6464
|
});
|
|
5953
6465
|
});
|
|
6466
|
+
},
|
|
6467
|
+
resetColumn: function resetColumn() {
|
|
6468
|
+
this.columnMap = {};
|
|
6469
|
+
},
|
|
6470
|
+
saveColumn: function saveColumn() {
|
|
6471
|
+
var _this8 = this;
|
|
6472
|
+
var columnStorage = JSON.parse(localStorage.getItem("component_columns") || "{}");
|
|
6473
|
+
columnStorage[this.columnsKey] = Object.keys(this.columnMap).filter(function (itemKey) {
|
|
6474
|
+
if (_this8.columnMap[itemKey] === false) {
|
|
6475
|
+
return true;
|
|
6476
|
+
}
|
|
6477
|
+
return false;
|
|
6478
|
+
});
|
|
6479
|
+
localStorage.setItem("component_columns", JSON.stringify(columnStorage));
|
|
6480
|
+
message_default()({
|
|
6481
|
+
showClose: true,
|
|
6482
|
+
message: "设置成功",
|
|
6483
|
+
type: "success"
|
|
6484
|
+
});
|
|
6485
|
+
},
|
|
6486
|
+
handleSetting: function handleSetting(value, item) {
|
|
6487
|
+
this.$set(this.columnMap, item.prop, value);
|
|
5954
6488
|
}
|
|
5955
6489
|
}
|
|
5956
6490
|
});
|
|
@@ -5966,8 +6500,8 @@ var index_ = __webpack_require__(3);
|
|
|
5966
6500
|
|
|
5967
6501
|
var table_component = normalizeComponent(
|
|
5968
6502
|
src_tablevue_type_script_lang_js,
|
|
5969
|
-
|
|
5970
|
-
|
|
6503
|
+
tablevue_type_template_id_38455fe1_render,
|
|
6504
|
+
tablevue_type_template_id_38455fe1_staticRenderFns,
|
|
5971
6505
|
false,
|
|
5972
6506
|
null,
|
|
5973
6507
|
null,
|
|
@@ -6433,7 +6967,7 @@ var dropdown_menu_ = __webpack_require__(52);
|
|
|
6433
6967
|
var dropdown_menu_default = /*#__PURE__*/__webpack_require__.n(dropdown_menu_);
|
|
6434
6968
|
|
|
6435
6969
|
// EXTERNAL MODULE: external "element-ui/lib/link"
|
|
6436
|
-
var link_ = __webpack_require__(
|
|
6970
|
+
var link_ = __webpack_require__(29);
|
|
6437
6971
|
var link_default = /*#__PURE__*/__webpack_require__.n(link_);
|
|
6438
6972
|
|
|
6439
6973
|
// 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/table/src/column/operate.vue?vue&type=script&lang=js
|
|
@@ -7234,6 +7768,14 @@ var external_async_validator_default = /*#__PURE__*/__webpack_require__.n(extern
|
|
|
7234
7768
|
triggerConfig: this.inputConfig
|
|
7235
7769
|
}].concat(arg));
|
|
7236
7770
|
}
|
|
7771
|
+
if (this.on && this.on[eventName]) {
|
|
7772
|
+
var _this$on$eventName;
|
|
7773
|
+
(_this$on$eventName = this.on[eventName]).call.apply(_this$on$eventName, [this, {
|
|
7774
|
+
trigger: this.row,
|
|
7775
|
+
triggerForm: this.rowData,
|
|
7776
|
+
triggerConfig: this.inputConfig
|
|
7777
|
+
}].concat(arg));
|
|
7778
|
+
}
|
|
7237
7779
|
//联动配置事件
|
|
7238
7780
|
var itemEvent = this.actionEventMap[eventName];
|
|
7239
7781
|
if (!itemEvent) {
|
|
@@ -8607,7 +9149,7 @@ crud_src.install = function (Vue) {
|
|
|
8607
9149
|
};
|
|
8608
9150
|
/* harmony default export */ var crud = (crud_src);
|
|
8609
9151
|
// EXTERNAL MODULE: external "codemirror"
|
|
8610
|
-
var external_codemirror_ = __webpack_require__(
|
|
9152
|
+
var external_codemirror_ = __webpack_require__(27);
|
|
8611
9153
|
var external_codemirror_default = /*#__PURE__*/__webpack_require__.n(external_codemirror_);
|
|
8612
9154
|
|
|
8613
9155
|
// EXTERNAL MODULE: external "codemirror/mode/javascript/javascript"
|
|
@@ -11226,7 +11768,7 @@ srcvue_type_template_id_cfc57478_render._withStripped = true
|
|
|
11226
11768
|
// CONCATENATED MODULE: ./src/components/dialog/src/index.vue?vue&type=template&id=cfc57478
|
|
11227
11769
|
|
|
11228
11770
|
// EXTERNAL MODULE: external "element-ui/lib/utils/popup"
|
|
11229
|
-
var popup_ = __webpack_require__(
|
|
11771
|
+
var popup_ = __webpack_require__(25);
|
|
11230
11772
|
var popup_default = /*#__PURE__*/__webpack_require__.n(popup_);
|
|
11231
11773
|
|
|
11232
11774
|
// EXTERNAL MODULE: external "element-ui/lib/mixins/migrating"
|
|
@@ -11234,7 +11776,7 @@ var migrating_ = __webpack_require__(59);
|
|
|
11234
11776
|
var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_);
|
|
11235
11777
|
|
|
11236
11778
|
// EXTERNAL MODULE: external "element-ui/lib/mixins/emitter"
|
|
11237
|
-
var emitter_ = __webpack_require__(
|
|
11779
|
+
var emitter_ = __webpack_require__(26);
|
|
11238
11780
|
var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
|
|
11239
11781
|
|
|
11240
11782
|
// 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/dialog/src/index.vue?vue&type=script&lang=js
|
|
@@ -11786,7 +12328,6 @@ function getComConfig(h) {
|
|
|
11786
12328
|
}
|
|
11787
12329
|
},
|
|
11788
12330
|
render: function render(createElement) {
|
|
11789
|
-
debugger;
|
|
11790
12331
|
var $createElement = h || createElement;
|
|
11791
12332
|
// 自定义整行节点label区域
|
|
11792
12333
|
var scopeSlotDefault = this.getScopedSlot('default');
|
|
@@ -11929,6 +12470,257 @@ tree_line_src.install = function (Vue) {
|
|
|
11929
12470
|
Vue.component(tree_line_src.name, tree_line_src);
|
|
11930
12471
|
};
|
|
11931
12472
|
/* harmony default export */ var tree_line = (tree_line_src);
|
|
12473
|
+
// 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
|
|
12474
|
+
var srcvue_type_template_id_34b55949_render = function render() {
|
|
12475
|
+
var _vm = this,
|
|
12476
|
+
_c = _vm._self._c
|
|
12477
|
+
return _c(
|
|
12478
|
+
"ul",
|
|
12479
|
+
{
|
|
12480
|
+
staticClass: "el-timeline timeline",
|
|
12481
|
+
class: { "is-reverse": _vm.reverse },
|
|
12482
|
+
style: { marginLeft: _vm.leftWidth },
|
|
12483
|
+
},
|
|
12484
|
+
_vm._l(_vm.itemDatas, function (item, index) {
|
|
12485
|
+
return _c(
|
|
12486
|
+
"TimeItem",
|
|
12487
|
+
_vm._b(
|
|
12488
|
+
{ key: index, attrs: { data: item } },
|
|
12489
|
+
"TimeItem",
|
|
12490
|
+
_vm.layout,
|
|
12491
|
+
false
|
|
12492
|
+
)
|
|
12493
|
+
)
|
|
12494
|
+
}),
|
|
12495
|
+
1
|
|
12496
|
+
)
|
|
12497
|
+
}
|
|
12498
|
+
var srcvue_type_template_id_34b55949_staticRenderFns = []
|
|
12499
|
+
srcvue_type_template_id_34b55949_render._withStripped = true
|
|
12500
|
+
|
|
12501
|
+
|
|
12502
|
+
// CONCATENATED MODULE: ./src/components/timeline/src/index.vue?vue&type=template&id=34b55949
|
|
12503
|
+
|
|
12504
|
+
// 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
|
|
12505
|
+
var time_itemvue_type_template_id_5871346c_render = function render() {
|
|
12506
|
+
var _vm = this,
|
|
12507
|
+
_c = _vm._self._c
|
|
12508
|
+
return _c("li", { staticClass: "el-timeline-item" }, [
|
|
12509
|
+
_c("div", { staticClass: "el-timeline-item__tail" }),
|
|
12510
|
+
!_vm.$slots.dot
|
|
12511
|
+
? _c(
|
|
12512
|
+
"div",
|
|
12513
|
+
{
|
|
12514
|
+
staticClass: "el-timeline-item__node",
|
|
12515
|
+
class: [
|
|
12516
|
+
`el-timeline-item__node--${_vm.size || ""}`,
|
|
12517
|
+
`el-timeline-item__node--${_vm.type || ""}`,
|
|
12518
|
+
],
|
|
12519
|
+
style: {
|
|
12520
|
+
backgroundColor: _vm.color,
|
|
12521
|
+
},
|
|
12522
|
+
},
|
|
12523
|
+
[
|
|
12524
|
+
_vm.icon
|
|
12525
|
+
? _c("i", {
|
|
12526
|
+
staticClass: "el-timeline-item__icon",
|
|
12527
|
+
class: _vm.icon,
|
|
12528
|
+
})
|
|
12529
|
+
: _vm._e(),
|
|
12530
|
+
]
|
|
12531
|
+
)
|
|
12532
|
+
: _vm._e(),
|
|
12533
|
+
_vm.$slots.dot
|
|
12534
|
+
? _c("div", { staticClass: "el-timeline-item__dot" }, [_vm._t("dot")], 2)
|
|
12535
|
+
: _vm._e(),
|
|
12536
|
+
_c("div", { staticClass: "el-timeline-item__wrapper" }, [
|
|
12537
|
+
!_vm.hideTimestamp && _vm.placement === "top"
|
|
12538
|
+
? _c("div", { staticClass: "el-timeline-item__timestamp is-top" }, [
|
|
12539
|
+
_vm._v("\n " + _vm._s(_vm.timestamp) + "\n "),
|
|
12540
|
+
])
|
|
12541
|
+
: _vm._e(),
|
|
12542
|
+
!_vm.hideTimestamp && _vm.placement === "left"
|
|
12543
|
+
? _c(
|
|
12544
|
+
"div",
|
|
12545
|
+
{
|
|
12546
|
+
staticClass: "el-timeline-item__timestamp is-left",
|
|
12547
|
+
style: { left: "28px" },
|
|
12548
|
+
},
|
|
12549
|
+
[_vm._v("\n " + _vm._s(_vm.timestamp) + "\n ")]
|
|
12550
|
+
)
|
|
12551
|
+
: _vm._e(),
|
|
12552
|
+
_c(
|
|
12553
|
+
"div",
|
|
12554
|
+
{ staticClass: "el-timeline-item__content" },
|
|
12555
|
+
[
|
|
12556
|
+
_vm._t("default", function () {
|
|
12557
|
+
return [
|
|
12558
|
+
_c("FormView", _vm._b({}, "FormView", _vm.formLayout, false)),
|
|
12559
|
+
]
|
|
12560
|
+
}),
|
|
12561
|
+
],
|
|
12562
|
+
2
|
|
12563
|
+
),
|
|
12564
|
+
!_vm.hideTimestamp && _vm.placement === "bottom"
|
|
12565
|
+
? _c("div", { staticClass: "el-timeline-item__timestamp is-bottom" }, [
|
|
12566
|
+
_vm._v("\n " + _vm._s(_vm.timestamp) + "\n "),
|
|
12567
|
+
])
|
|
12568
|
+
: _vm._e(),
|
|
12569
|
+
]),
|
|
12570
|
+
])
|
|
12571
|
+
}
|
|
12572
|
+
var time_itemvue_type_template_id_5871346c_staticRenderFns = []
|
|
12573
|
+
time_itemvue_type_template_id_5871346c_render._withStripped = true
|
|
12574
|
+
|
|
12575
|
+
|
|
12576
|
+
// CONCATENATED MODULE: ./src/components/timeline/src/time-item.vue?vue&type=template&id=5871346c
|
|
12577
|
+
|
|
12578
|
+
// 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
|
|
12579
|
+
|
|
12580
|
+
/* harmony default export */ var time_itemvue_type_script_lang_js = ({
|
|
12581
|
+
name: 'TimeItem',
|
|
12582
|
+
components: {
|
|
12583
|
+
FormView: form_view
|
|
12584
|
+
},
|
|
12585
|
+
props: {
|
|
12586
|
+
timestamp: String,
|
|
12587
|
+
leftWidth: {
|
|
12588
|
+
type: String,
|
|
12589
|
+
default: '200px'
|
|
12590
|
+
},
|
|
12591
|
+
hideTimestamp: {
|
|
12592
|
+
type: Boolean,
|
|
12593
|
+
default: false
|
|
12594
|
+
},
|
|
12595
|
+
placement: {
|
|
12596
|
+
type: String,
|
|
12597
|
+
default: 'bottom'
|
|
12598
|
+
},
|
|
12599
|
+
type: String,
|
|
12600
|
+
color: String,
|
|
12601
|
+
size: {
|
|
12602
|
+
type: String,
|
|
12603
|
+
default: 'normal'
|
|
12604
|
+
},
|
|
12605
|
+
icon: String,
|
|
12606
|
+
labelWidth: String,
|
|
12607
|
+
labelPosition: String,
|
|
12608
|
+
formItems: {
|
|
12609
|
+
type: Array,
|
|
12610
|
+
default: function _default() {
|
|
12611
|
+
return [];
|
|
12612
|
+
}
|
|
12613
|
+
},
|
|
12614
|
+
data: {
|
|
12615
|
+
type: Object,
|
|
12616
|
+
default: function _default() {
|
|
12617
|
+
return {};
|
|
12618
|
+
}
|
|
12619
|
+
}
|
|
12620
|
+
},
|
|
12621
|
+
computed: {
|
|
12622
|
+
itemDatas: function itemDatas() {
|
|
12623
|
+
return this.reverse ? this.items.data() : this.data;
|
|
12624
|
+
},
|
|
12625
|
+
formLayout: function formLayout() {
|
|
12626
|
+
return Object.assign({}, this.$attrs, {
|
|
12627
|
+
labelWidth: this.labelWidth,
|
|
12628
|
+
labelPosition: this.labelPosition,
|
|
12629
|
+
formModel: this.data,
|
|
12630
|
+
formItems: this.formItems
|
|
12631
|
+
});
|
|
12632
|
+
}
|
|
12633
|
+
}
|
|
12634
|
+
});
|
|
12635
|
+
// CONCATENATED MODULE: ./src/components/timeline/src/time-item.vue?vue&type=script&lang=js
|
|
12636
|
+
/* harmony default export */ var src_time_itemvue_type_script_lang_js = (time_itemvue_type_script_lang_js);
|
|
12637
|
+
// CONCATENATED MODULE: ./src/components/timeline/src/time-item.vue
|
|
12638
|
+
|
|
12639
|
+
|
|
12640
|
+
|
|
12641
|
+
|
|
12642
|
+
|
|
12643
|
+
/* normalize component */
|
|
12644
|
+
|
|
12645
|
+
var time_item_component = normalizeComponent(
|
|
12646
|
+
src_time_itemvue_type_script_lang_js,
|
|
12647
|
+
time_itemvue_type_template_id_5871346c_render,
|
|
12648
|
+
time_itemvue_type_template_id_5871346c_staticRenderFns,
|
|
12649
|
+
false,
|
|
12650
|
+
null,
|
|
12651
|
+
null,
|
|
12652
|
+
null
|
|
12653
|
+
|
|
12654
|
+
)
|
|
12655
|
+
|
|
12656
|
+
/* harmony default export */ var time_item = (time_item_component.exports);
|
|
12657
|
+
// 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
|
|
12658
|
+
|
|
12659
|
+
/* harmony default export */ var timeline_srcvue_type_script_lang_js = ({
|
|
12660
|
+
name: "Timeline",
|
|
12661
|
+
components: {
|
|
12662
|
+
TimeItem: time_item
|
|
12663
|
+
},
|
|
12664
|
+
props: {
|
|
12665
|
+
reverse: {
|
|
12666
|
+
type: Boolean,
|
|
12667
|
+
default: false
|
|
12668
|
+
},
|
|
12669
|
+
type: {
|
|
12670
|
+
type: String,
|
|
12671
|
+
default: "table"
|
|
12672
|
+
},
|
|
12673
|
+
leftWidth: {
|
|
12674
|
+
type: String,
|
|
12675
|
+
default: "200px"
|
|
12676
|
+
},
|
|
12677
|
+
data: {
|
|
12678
|
+
type: Array,
|
|
12679
|
+
default: function _default() {
|
|
12680
|
+
return [];
|
|
12681
|
+
}
|
|
12682
|
+
},
|
|
12683
|
+
layout: {
|
|
12684
|
+
type: Object,
|
|
12685
|
+
default: function _default() {}
|
|
12686
|
+
}
|
|
12687
|
+
},
|
|
12688
|
+
computed: {
|
|
12689
|
+
itemDatas: function itemDatas() {
|
|
12690
|
+
return this.reverse ? this.items.data() : this.data;
|
|
12691
|
+
}
|
|
12692
|
+
}
|
|
12693
|
+
});
|
|
12694
|
+
// CONCATENATED MODULE: ./src/components/timeline/src/index.vue?vue&type=script&lang=js
|
|
12695
|
+
/* harmony default export */ var components_timeline_srcvue_type_script_lang_js = (timeline_srcvue_type_script_lang_js);
|
|
12696
|
+
// CONCATENATED MODULE: ./src/components/timeline/src/index.vue
|
|
12697
|
+
|
|
12698
|
+
|
|
12699
|
+
|
|
12700
|
+
|
|
12701
|
+
|
|
12702
|
+
/* normalize component */
|
|
12703
|
+
|
|
12704
|
+
var timeline_src_component = normalizeComponent(
|
|
12705
|
+
components_timeline_srcvue_type_script_lang_js,
|
|
12706
|
+
srcvue_type_template_id_34b55949_render,
|
|
12707
|
+
srcvue_type_template_id_34b55949_staticRenderFns,
|
|
12708
|
+
false,
|
|
12709
|
+
null,
|
|
12710
|
+
null,
|
|
12711
|
+
null
|
|
12712
|
+
|
|
12713
|
+
)
|
|
12714
|
+
|
|
12715
|
+
/* harmony default export */ var timeline_src = (timeline_src_component.exports);
|
|
12716
|
+
// CONCATENATED MODULE: ./src/components/timeline/index.js
|
|
12717
|
+
|
|
12718
|
+
|
|
12719
|
+
/* istanbul ignore next */
|
|
12720
|
+
timeline_src.install = function (Vue) {
|
|
12721
|
+
Vue.component(timeline_src.name, timeline_src);
|
|
12722
|
+
};
|
|
12723
|
+
/* harmony default export */ var timeline = (timeline_src);
|
|
11932
12724
|
// CONCATENATED MODULE: ./src/index.js
|
|
11933
12725
|
|
|
11934
12726
|
|
|
@@ -11949,10 +12741,11 @@ tree_line_src.install = function (Vue) {
|
|
|
11949
12741
|
|
|
11950
12742
|
|
|
11951
12743
|
|
|
12744
|
+
|
|
11952
12745
|
|
|
11953
12746
|
|
|
11954
12747
|
var API = index_;
|
|
11955
|
-
var components = [components_form, components_form_input, components_form_item, form_query, form_group, form_dialog, form_drawer, form_view, form_view_group, form_view_dialog, components_table, components_table_column, table_search, table_editable, table_operate, crud, formula, dialog, drawer, tree_line];
|
|
12748
|
+
var components = [components_form, components_form_input, components_form_item, form_query, form_group, form_dialog, form_drawer, form_view, form_view_group, form_view_dialog, components_table, components_table_column, table_search, table_editable, table_operate, crud, formula, dialog, drawer, tree_line, timeline];
|
|
11956
12749
|
var install = function install(Vue, opts) {
|
|
11957
12750
|
if (opts === void 0) {
|
|
11958
12751
|
opts = {};
|
|
@@ -11994,7 +12787,8 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
11994
12787
|
Formula: formula,
|
|
11995
12788
|
Dialog: dialog,
|
|
11996
12789
|
Drawer: drawer,
|
|
11997
|
-
TreeLine: tree_line
|
|
12790
|
+
TreeLine: tree_line,
|
|
12791
|
+
Timeline: timeline
|
|
11998
12792
|
});
|
|
11999
12793
|
|
|
12000
12794
|
/***/ })
|