ylwl-cpscoms 1.0.0

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.
Files changed (80) hide show
  1. package/README.md +15 -0
  2. package/es/SlAlert/index.vue.js +58 -0
  3. package/es/SlAlert/index.vue2.js +37 -0
  4. package/es/SlAlert/index.vue3.js +6 -0
  5. package/es/SlDescriptions/index.vue.js +55 -0
  6. package/es/SlDescriptions/index.vue2.js +57 -0
  7. package/es/SlDescriptions/index.vue3.js +6 -0
  8. package/es/SlDescriptions/renderOptions.vue.js +25 -0
  9. package/es/SlDescriptions/renderOptions.vue2.js +31 -0
  10. package/es/SlDialog/dialogPlus.js +159 -0
  11. package/es/SlDialog/index.js +202 -0
  12. package/es/SlDrawer/index.js +54 -0
  13. package/es/SlForm/index.vue.js +26 -0
  14. package/es/SlForm/index.vue2.js +433 -0
  15. package/es/SlForm/index.vue3.js +6 -0
  16. package/es/SlForm/mixinRender.js +239 -0
  17. package/es/SlForm/otherItem/titleItem.vue.js +39 -0
  18. package/es/SlForm/otherItem/titleItem.vue2.js +20 -0
  19. package/es/SlForm/otherItem/titleItem.vue3.js +6 -0
  20. package/es/SlGuide/index.vue.js +38 -0
  21. package/es/SlGuide/index.vue2.js +133 -0
  22. package/es/SlGuide/index.vue3.js +6 -0
  23. package/es/SlGuide/index.vue4.js +6 -0
  24. package/es/SlMessageBox/index.js +46 -0
  25. package/es/SlPage/index.vue.js +147 -0
  26. package/es/SlPage/index.vue2.js +312 -0
  27. package/es/SlPage/index.vue3.js +6 -0
  28. package/es/SlTable/components/colSetting.vue.js +94 -0
  29. package/es/SlTable/components/colSetting.vue2.js +66 -0
  30. package/es/SlTable/components/colSetting.vue3.js +6 -0
  31. package/es/SlTable/index.vue.js +171 -0
  32. package/es/SlTable/index.vue2.js +390 -0
  33. package/es/SlTable/index.vue3.js +6 -0
  34. package/es/SlTitle/index.vue.js +41 -0
  35. package/es/SlTitle/index.vue2.js +26 -0
  36. package/es/SlTitle/index.vue3.js +6 -0
  37. package/es/_virtual/_rollupPluginBabelHelpers.js +247 -0
  38. package/es/index.js +41 -0
  39. package/es/node_modules/shepherd.js/dist/css/shepherd.css.js +7 -0
  40. package/es/node_modules/style-inject/dist/style-inject.es.js +28 -0
  41. package/es/node_modules/vue-runtime-helpers/dist/normalize-component.js +76 -0
  42. package/es/utils/index.js +51 -0
  43. package/package.json +106 -0
  44. package/src/SlAlert/SlAlert.stories.js +108 -0
  45. package/src/SlAlert/index.vue +54 -0
  46. package/src/SlAlert/remark.md +16 -0
  47. package/src/SlDescriptions/SlDescriptions.stories.js +119 -0
  48. package/src/SlDescriptions/index.vue +60 -0
  49. package/src/SlDescriptions/renderOptions.vue +27 -0
  50. package/src/SlDialog/README-PLUS.md +74 -0
  51. package/src/SlDialog/README.md +114 -0
  52. package/src/SlDialog/dialogPlus.js +160 -0
  53. package/src/SlDialog/index.js +170 -0
  54. package/src/SlDrawer/SlDrawer.stories.js +154 -0
  55. package/src/SlDrawer/index.js +62 -0
  56. package/src/SlForm/SlForm.stories.js +120 -0
  57. package/src/SlForm/index.css +141 -0
  58. package/src/SlForm/index.vue +365 -0
  59. package/src/SlForm/mixinRender.js +228 -0
  60. package/src/SlForm/otherItem/titleItem.vue +31 -0
  61. package/src/SlForm/remark.md +607 -0
  62. package/src/SlGuide/SlGuide.stories.js +100 -0
  63. package/src/SlGuide/index.vue +166 -0
  64. package/src/SlGuide/remark.md +90 -0
  65. package/src/SlMessageBox/index.js +35 -0
  66. package/src/SlPage/README.md +515 -0
  67. package/src/SlPage/SlPage.stories.js +125 -0
  68. package/src/SlPage/index.css +38 -0
  69. package/src/SlPage/index.vue +266 -0
  70. package/src/SlPage/remark.md +283 -0
  71. package/src/SlTable/SlTable.stories.js +118 -0
  72. package/src/SlTable/components/colSetting.vue +86 -0
  73. package/src/SlTable/index.vue +541 -0
  74. package/src/SlTitle/SlTitle.stories.js +98 -0
  75. package/src/SlTitle/index.vue +49 -0
  76. package/src/global.css +5 -0
  77. package/src/index.js +47 -0
  78. package/src/store/index.js +20 -0
  79. package/src/utils/index.js +47 -0
  80. package/src/utils/tableConfig.js +33 -0
@@ -0,0 +1,312 @@
1
+ import { asyncToGenerator as _asyncToGenerator, regenerator as _regenerator, toConsumableArray as _toConsumableArray } from '../_virtual/_rollupPluginBabelHelpers.js';
2
+ import SlForm from '../SlForm/index.vue.js';
3
+ import SlTable from '../SlTable/index.vue.js';
4
+ import { createCommandDrawer } from '../SlDrawer/index.js';
5
+ import colSetting from '../SlTable/components/colSetting.vue.js';
6
+ import { generateUniqueId, hasKey } from '../utils/index.js';
7
+ import store from '@/store';
8
+
9
+ var script = {
10
+ components: {
11
+ slForm: SlForm,
12
+ slTable: SlTable
13
+ },
14
+ props: {
15
+ tableApi: {
16
+ type: Function,
17
+ default: function _default() {
18
+ return {};
19
+ }
20
+ },
21
+ autoRequest: {
22
+ type: Boolean,
23
+ default: false
24
+ },
25
+ tableColumns: {
26
+ type: Array,
27
+ default: function _default() {
28
+ return [];
29
+ }
30
+ },
31
+ filterForm: {
32
+ type: Array,
33
+ default: function _default() {
34
+ return [];
35
+ }
36
+ },
37
+ showFormItem: {
38
+ type: Number,
39
+ default: 3
40
+ },
41
+ projectFrom: {
42
+ type: String,
43
+ default: 'oldCpsb'
44
+ },
45
+ initSeachParams: {
46
+ type: Object,
47
+ default: function _default() {
48
+ return {};
49
+ }
50
+ },
51
+ defaultSeachParams: {
52
+ type: Object,
53
+ default: function _default() {
54
+ return {};
55
+ }
56
+ },
57
+ isShowColSetting: {
58
+ type: Boolean,
59
+ default: true
60
+ },
61
+ notShowPadding: {
62
+ type: Boolean,
63
+ default: false
64
+ },
65
+ // 是否要padding效果
66
+ otherConfig: {
67
+ type: Object,
68
+ default: function _default() {
69
+ return {
70
+ rowKey: 'id',
71
+ responderCof: {},
72
+ requestBodyCof: {}
73
+ };
74
+ }
75
+ }
76
+ },
77
+ data: function data() {
78
+ return {
79
+ options: this.filterForm,
80
+ form: {},
81
+ isFold: false,
82
+ headKey: '',
83
+ uniqueId: ''
84
+ };
85
+ },
86
+ computed: {
87
+ // ...mapGetters([
88
+ // 'currentColConfig'
89
+ // ]),
90
+ currentColConfig: function currentColConfig() {
91
+ // console.log(store.getters, "store.gettersxxxxxxx")
92
+ return store.state.tableConfig.colConfig[this.uniqueId] || {};
93
+ },
94
+ allColConfig: function allColConfig() {
95
+ return store.state.tableConfig.colConfig;
96
+ },
97
+ selectedList: function selectedList() {
98
+ return this.$refs.slTable ? this.$refs.slTable.selectedList : [];
99
+ },
100
+ selectedListIds: function selectedListIds() {
101
+ return this.$refs.slTable ? this.$refs.slTable.selectedListIds : [];
102
+ }
103
+ },
104
+ created: function created() {
105
+ var _this = this;
106
+ this.uniqueId = generateUniqueId(this.tableApi.toString());
107
+ // console.log(this.uniqueId, "this.uniqueIdthis.uniqueIdthis.uniqueIdthis.uniqueId", this.tableApi.toString())
108
+ store.dispatch('getStorageCustomCol', this.uniqueId);
109
+ this.options.forEach(function (option, index) {
110
+ if (index > _this.showFormItem - 1) {
111
+ option.show = false;
112
+ }
113
+ });
114
+ this.tableColumns.forEach(function (item) {
115
+ if (!hasKey(item, 'isShow')) {
116
+ _this.$set(item, 'isShow', true);
117
+ }
118
+ if (_this.currentColConfig.hide && _this.currentColConfig.hide.includes(item.prop)) {
119
+ _this.$set(item, 'isShow', false);
120
+ }
121
+ });
122
+ // 表格排序
123
+ this.sortTalbeColumns();
124
+ if (this.initSeachParams && Object.keys(this.initSeachParams).length > 0) {
125
+ for (var key in this.initSeachParams) {
126
+ this.form[key] = this.initSeachParams[key];
127
+ }
128
+ }
129
+ },
130
+ mounted: function mounted() {
131
+ var _this2 = this;
132
+ return _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
133
+ return _regenerator().w(function (_context) {
134
+ while (1) switch (_context.n) {
135
+ case 0:
136
+ _this2.autoRequest && _this2.$refs.slTable.getTableData();
137
+ _this2.$refs.slTable.resetColumns(_this2.tableColumns.filter(function (item) {
138
+ return item.isShow && _this2.isShowTableColumn(item);
139
+ }));
140
+ case 1:
141
+ return _context.a(2);
142
+ }
143
+ }, _callee);
144
+ }))();
145
+ },
146
+ methods: {
147
+ hasKey: hasKey,
148
+ generateUniqueId: generateUniqueId,
149
+ // 永久删除的
150
+ isShowTableColumn: function isShowTableColumn(item) {
151
+ if (hasKey(item, 'isAlwaysShow') && typeof item.isAlwaysShow === 'function') {
152
+ return item.isAlwaysShow({
153
+ item: item
154
+ });
155
+ } else if (hasKey(item, 'isAlwaysShow') && typeof item.isAlwaysShow === 'string') {
156
+ return item.isAlwaysShow;
157
+ } else {
158
+ return true;
159
+ }
160
+ },
161
+ sortTalbeColumns: function sortTalbeColumns() {
162
+ var _this3 = this;
163
+ // console.log(this.currentColConfig.sort && this.currentColConfig.sort.length > 0, '是否');
164
+ // console.log(store, 'store.getters', this.allColConfig);
165
+ if (this.currentColConfig.sort && this.currentColConfig.sort.length > 0) {
166
+ this.tableColumns.sort(function (a, b) {
167
+ return _this3.currentColConfig.sort.indexOf(a.prop) - _this3.currentColConfig.sort.indexOf(b.prop);
168
+ });
169
+ }
170
+ },
171
+ searchTableData: function searchTableData() {
172
+ var _this4 = this;
173
+ console.log(this.form, this.$refs.slForm.$refs.form, this.$refs.slTable.processedParams);
174
+ this.$refs.slForm.$refs.form.validate(function (valid) {
175
+ if (valid) {
176
+ _this4.$refs.slTable.handleCurrentChange(1);
177
+ } else {
178
+ console.log('error submit!!');
179
+ return false;
180
+ }
181
+ });
182
+ },
183
+ resetTableData: function resetTableData() {
184
+ var _this5 = this;
185
+ this.$refs.slForm.$refs.form.resetFields();
186
+ for (var key in this.form) {
187
+ if (this.form.hasOwnProperty(key)) {
188
+ this.form[key] = '';
189
+ }
190
+ }
191
+ // console.log(this.form, "xxxxx");
192
+ this.$refs.slForm.$refs.form.validate(function (valid) {
193
+ if (valid) {
194
+ _this5.$refs.slTable.handleCurrentChange(1);
195
+ } else {
196
+ console.log('error submit!!');
197
+ return false;
198
+ }
199
+ });
200
+ // this.$refs.slTable.handleCurrentChange(1)
201
+ },
202
+ getTableData: function getTableData() {
203
+ var _this6 = this;
204
+ this.$refs.slForm.$refs.form.validate(function (valid) {
205
+ if (valid) {
206
+ _this6.$refs.slTable.getCurrentPageList();
207
+ } else {
208
+ console.log('error getCurrentPageList submit!!');
209
+ return false;
210
+ }
211
+ });
212
+ },
213
+ isShowMoreFilter: function isShowMoreFilter() {
214
+ var _this7 = this;
215
+ this.isFold = !this.isFold;
216
+ if (this.isFold) {
217
+ this.options.forEach(function (option) {
218
+ _this7.$set(option, 'show', true);
219
+ });
220
+ } else {
221
+ this.options.forEach(function (option, index) {
222
+ if (index > _this7.showFormItem - 1) {
223
+ _this7.$set(option, 'show', false);
224
+ }
225
+ });
226
+ }
227
+ // this.$forceUpdate()
228
+ },
229
+ saveKeeyAlive: function saveKeeyAlive() {
230
+ var hideColArray = this.tableColumns.reduce(function (acc, item) {
231
+ if (!item.isShow) {
232
+ acc.push(item.prop);
233
+ }
234
+ return acc;
235
+ }, []);
236
+ store.dispatch('saveStorageCustomCol', {
237
+ key: this.uniqueId,
238
+ type: 'hide',
239
+ value: hideColArray
240
+ });
241
+ },
242
+ editCol: function editCol() {
243
+ var _this8 = this;
244
+ console.log(this.tableColumns.filter(function (item) {
245
+ return item.prop !== 'operate' || item.type !== 'selection' || item.isShow;
246
+ }), 'this.tableColumns', this.tableColumns);
247
+ // console.log(this.tableColumns, "在这里点开");
248
+ this.sortTalbeColumns();
249
+ // console.log(this.tableColumns, "在这里点开2");
250
+ createCommandDrawer({
251
+ title: '列设置(可拖拽排序)',
252
+ size: '20%',
253
+ direction: 'rtl',
254
+ contentComponent: colSetting,
255
+ closeDrawer: function closeDrawer() {
256
+ _this8.saveKeeyAlive();
257
+ _this8.$refs.slTable.headKey = new Date().getTime() + '';
258
+ // this.$refs.slTable.resetColumns(this.tableColumns.filter(item => item.isShow))
259
+ },
260
+ contentProps: {
261
+ columns: this.tableColumns.filter(function (item) {
262
+ return item.prop !== 'operate' && item.type !== 'selection' && _this8.isShowTableColumn(item);
263
+ })
264
+ },
265
+ // 如果需要传递 props 给内容组件,可以在这里定义
266
+ contentListeners: {
267
+ 'update-columns': function updateColumns(columns) {
268
+ // 处理列更新事件
269
+ // console.log('接收到更新的列数据:', columns, this.tableColumns)
270
+ // 如果有多选框和操作,要加上
271
+ var sortColumns = _toConsumableArray(columns);
272
+ var findSelection = _this8.tableColumns.find(function (item) {
273
+ return item.type === 'selection';
274
+ });
275
+ var findOperate = _this8.tableColumns.find(function (item) {
276
+ return item.prop === 'operate';
277
+ });
278
+ if (findSelection) {
279
+ sortColumns.unshift(findSelection);
280
+ }
281
+ if (findOperate) {
282
+ sortColumns.push(findOperate);
283
+ }
284
+ // console.log(sortColumns, "sortColumns")
285
+ _this8.$refs.slTable.resetColumns(sortColumns.filter(function (item) {
286
+ return item.isShow;
287
+ }));
288
+ _this8.setStorageCustomCol(columns);
289
+ },
290
+ 'change-columns': function changeColumns() {
291
+ _this8.$refs.slTable.resetColumns(_this8.tableColumns.filter(function (item) {
292
+ return item.isShow;
293
+ }));
294
+ _this8.$refs.slTable.headKey = new Date().getTime() + '';
295
+ }
296
+ }
297
+ });
298
+ },
299
+ setStorageCustomCol: function setStorageCustomCol(columns) {
300
+ // console.log(this.uniqueId, 'a ?');
301
+ store.dispatch('saveStorageCustomCol', {
302
+ key: this.uniqueId,
303
+ type: 'sort',
304
+ value: columns.map(function (item) {
305
+ return item.prop;
306
+ })
307
+ });
308
+ }
309
+ }
310
+ };
311
+
312
+ export { script as default };
@@ -0,0 +1,6 @@
1
+ import styleInject from '../node_modules/style-inject/dist/style-inject.es.js';
2
+
3
+ var css_248z = ".content-box{display:flex;flex-direction:column;height:100%;width:100%}.sl-form{flex:1 0 1;transition:all .3s ease-in-out}.yl-form-box{display:inline}.search-btn{float:right;margin-left:20px}.fade-enter-active,.fade-leave-active{transition:opacity .3s}.fade-enter,.fade-leave-to{opacity:0}.sl-table-header{display:flex;justify-content:space-between;margin:10px 0}";
4
+ styleInject(css_248z);
5
+
6
+ export { css_248z as default };
@@ -0,0 +1,94 @@
1
+ import script from './colSetting.vue2.js';
2
+ import './colSetting.vue3.js';
3
+ import normalizeComponent from '../../node_modules/vue-runtime-helpers/dist/normalize-component.js';
4
+
5
+ /* script */
6
+ var __vue_script__ = script;
7
+ /* template */
8
+ var __vue_render__ = function __vue_render__() {
9
+ var _vm = this;
10
+ var _h = _vm.$createElement;
11
+ var _c = _vm._self._c || _h;
12
+ return _c("div", [_c("el-table", {
13
+ ref: "dragTable",
14
+ attrs: {
15
+ data: _vm.columns,
16
+ border: true,
17
+ "row-key": "prop",
18
+ "default-expand-all": ""
19
+ }
20
+ }, [_c("el-table-column", {
21
+ attrs: {
22
+ prop: "drag",
23
+ align: "center",
24
+ label: "拖拽",
25
+ width: "60"
26
+ },
27
+ scopedSlots: _vm._u([{
28
+ key: "default",
29
+ fn: function fn(scope) {
30
+ return [_c("i", {
31
+ staticClass: "el-icon-rank",
32
+ staticStyle: {
33
+ cursor: "move"
34
+ }
35
+ })];
36
+ }
37
+ }])
38
+ }), _vm._v(" "), _c("el-table-column", {
39
+ attrs: {
40
+ prop: "label",
41
+ align: "center",
42
+ label: "列名"
43
+ }
44
+ }), _vm._v(" "), _c("el-table-column", {
45
+ attrs: {
46
+ prop: "isShow",
47
+ align: "center",
48
+ label: "显示"
49
+ },
50
+ scopedSlots: _vm._u([{
51
+ key: "default",
52
+ fn: function fn(scope) {
53
+ return [_c("el-switch", {
54
+ on: {
55
+ change: _vm.changeTableColumn
56
+ },
57
+ model: {
58
+ value: scope.row.isShow,
59
+ callback: function callback($$v) {
60
+ _vm.$set(scope.row, "isShow", $$v);
61
+ },
62
+ expression: "scope.row.isShow"
63
+ }
64
+ })];
65
+ }
66
+ }])
67
+ }), _vm._v(" "), [_c("div", {
68
+ staticClass: "table-empty"
69
+ }, [_c("div", [_vm._v("暂无可配置列")])])]], 2)], 1);
70
+ };
71
+ var __vue_staticRenderFns__ = [];
72
+ __vue_render__._withStripped = true;
73
+
74
+ /* style */
75
+ var __vue_inject_styles__ = undefined;
76
+ /* scoped */
77
+ var __vue_scope_id__ = "data-v-76a1265b";
78
+ /* module identifier */
79
+ var __vue_module_identifier__ = undefined;
80
+ /* functional template */
81
+ var __vue_is_functional_template__ = false;
82
+ /* style inject */
83
+
84
+ /* style inject SSR */
85
+
86
+ /* style inject shadow dom */
87
+
88
+ var __vue_component__ = /*#__PURE__*/normalizeComponent({
89
+ render: __vue_render__,
90
+ staticRenderFns: __vue_staticRenderFns__
91
+ }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
92
+ var colSetting = __vue_component__;
93
+
94
+ export { colSetting as default };
@@ -0,0 +1,66 @@
1
+ import { toConsumableArray as _toConsumableArray } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
+ import Sortable from 'sortablejs';
3
+
4
+ var script = {
5
+ props: {
6
+ columns: {
7
+ type: Array,
8
+ default: function _default() {
9
+ return [];
10
+ }
11
+ }
12
+ },
13
+ data: function data() {
14
+ return {
15
+ localColumns: []
16
+ };
17
+ },
18
+ watch: {
19
+ columns: {
20
+ handler: function handler(newVal) {
21
+ var _this = this;
22
+ this.localColumns = _toConsumableArray(newVal);
23
+ this.$nextTick(function () {
24
+ _this.setSort();
25
+ });
26
+ },
27
+ deep: true,
28
+ immediate: true
29
+ }
30
+ },
31
+ mounted: function mounted() {
32
+ var _this2 = this;
33
+ this.$nextTick(function () {
34
+ _this2.setSort();
35
+ });
36
+ },
37
+ methods: {
38
+ setSort: function setSort() {
39
+ var _this3 = this;
40
+ var el = this.$refs.dragTable.$el.querySelectorAll('.el-table__body-wrapper > table > tbody')[0];
41
+ this.sortable = Sortable.create(el, {
42
+ ghostClass: 'sortable-ghost',
43
+ setData: function setData(dataTransfer) {
44
+ dataTransfer.setData('Text', '');
45
+ },
46
+ onEnd: function onEnd(evt) {
47
+ var oldIndex = evt.oldIndex,
48
+ newIndex = evt.newIndex;
49
+ _this3.handleDragEnd(oldIndex, newIndex);
50
+ }
51
+ });
52
+ },
53
+ handleDragEnd: function handleDragEnd(oldIndex, newIndex) {
54
+ var columns = _toConsumableArray(this.localColumns);
55
+ var targetRow = columns.splice(oldIndex, 1)[0];
56
+ columns.splice(newIndex, 0, targetRow);
57
+ this.localColumns = columns;
58
+ this.$emit('update-columns', columns);
59
+ },
60
+ changeTableColumn: function changeTableColumn() {
61
+ this.$emit('change-columns');
62
+ }
63
+ }
64
+ };
65
+
66
+ export { script as default };
@@ -0,0 +1,6 @@
1
+ import styleInject from '../../node_modules/style-inject/dist/style-inject.es.js';
2
+
3
+ var css_248z = ".sortable-ghost[data-v-76a1265b]{background:#f0f9eb;opacity:.8}";
4
+ styleInject(css_248z);
5
+
6
+ export { css_248z as default };
@@ -0,0 +1,171 @@
1
+ import script from './index.vue2.js';
2
+ import './index.vue3.js';
3
+ import normalizeComponent from '../node_modules/vue-runtime-helpers/dist/normalize-component.js';
4
+
5
+ /* script */
6
+ var __vue_script__ = script;
7
+ /* template */
8
+ var __vue_render__ = function __vue_render__() {
9
+ var _vm = this;
10
+ var _h = _vm.$createElement;
11
+ var _c = _vm._self._c || _h;
12
+ return _c("div", {
13
+ staticClass: "sl-table"
14
+ }, [_c("el-table", _vm._g(_vm._b({
15
+ directives: [{
16
+ name: "loading",
17
+ rawName: "v-loading",
18
+ value: _vm.loading,
19
+ expression: "loading"
20
+ }],
21
+ key: _vm.headKey,
22
+ ref: "elTable",
23
+ staticClass: "custom-table",
24
+ staticStyle: {
25
+ width: "100%"
26
+ },
27
+ attrs: {
28
+ data: _vm.tableData,
29
+ border: true,
30
+ stripe: true,
31
+ "default-sort": {
32
+ prop: "buserId",
33
+ order: "descending"
34
+ },
35
+ "cell-class-name": _vm.cellClassName,
36
+ "header-cell-class-name": _vm.cellClassName,
37
+ "row-key": _vm.otherConfig && _vm.otherConfig.rowKey ? _vm.otherConfig.rowKey : "id",
38
+ size: "small",
39
+ height: "100%",
40
+ "max-height": "100%"
41
+ },
42
+ on: {
43
+ "selection-change": _vm.handleSelectionChange,
44
+ "sort-change": _vm.handleSortChange
45
+ }
46
+ }, "el-table", _vm.$attrs, false), _vm.$listeners), [_vm._l(_vm.realColumns, function (item, index) {
47
+ return [item.type == "selection" || item.type == "index" ? _c("el-table-column", _vm._b({
48
+ key: item.prop,
49
+ attrs: {
50
+ fixed: _vm.isMobileDevice() ? false : item.type == "selection" ? "left" : "",
51
+ type: "selection"
52
+ }
53
+ }, "el-table-column", item, false)) : _vm._e(), _vm._v(" "), (_vm.hasKey(item, "isShow") ? item.isShow : true) && !item.type && _vm.isShowTableColumn(item) ? _c("el-table-column", {
54
+ key: item.prop + index,
55
+ attrs: {
56
+ fixed: _vm.isMobileDevice() ? false : item.fixed || false,
57
+ prop: item.prop,
58
+ label: item.label,
59
+ align: "center",
60
+ sortable: item.sortable || false,
61
+ width: item.width || "",
62
+ minWidth: item.minWidth || "",
63
+ "show-overflow-tooltip": _vm.showOverflowTooltip(item)
64
+ },
65
+ scopedSlots: _vm._u([{
66
+ key: "header",
67
+ fn: function fn(ref) {
68
+ var column = ref.column;
69
+ ref.$index;
70
+ return [item.headerTemplate ? _vm._t(item.headerTemplate) : _c("span", [_vm._v("\n " + _vm._s(column.label) + "\n ")]), _vm._v(" "), item.headerTip && item.headerTip.content && (_vm.typeOf(item.headerTip.isShow, "function") ? item.headerTip.isShow(_vm.row) : true) ? _c("el-tooltip", {
71
+ attrs: {
72
+ content: item.headerTip.content,
73
+ placement: "top"
74
+ }
75
+ }, [_c("i", {
76
+ staticClass: "el-icon-info"
77
+ })]) : _vm._e()];
78
+ }
79
+ }, {
80
+ key: "default",
81
+ fn: function fn(ref) {
82
+ var row = ref.row;
83
+ var column = ref.column;
84
+ var $index = ref.$index;
85
+ return [item.prop === "operate" ? [_vm._l(_vm.typeOf(item.list, "function") ? item.list({
86
+ row: row
87
+ }) : item.list, function (btnItem) {
88
+ return [(btnItem.isShow ? btnItem.isShow(row, column, $index) : true) ? _c("el-button", _vm._b({
89
+ key: btnItem.label,
90
+ style: {
91
+ color: btnItem.type === "danger" ? "#f56c6c" : ""
92
+ },
93
+ attrs: {
94
+ type: "text",
95
+ size: "mini"
96
+ },
97
+ on: {
98
+ click: function click($event) {
99
+ btnItem.click(row, column, $index, $event);
100
+ }
101
+ }
102
+ }, "el-button", btnItem.props, false), [_vm._v("\n " + _vm._s(btnItem.label) + "\n ")]) : _vm._e()];
103
+ })] : [_vm.hasKey(item, "render") ? _c("span", {
104
+ domProps: {
105
+ innerHTML: _vm._s(item.render({
106
+ row: row
107
+ }))
108
+ }
109
+ }) : item.template ? _vm._t(item.template, null, {
110
+ row: row
111
+ }) : _c("span", [_vm._v(_vm._s(row[item.prop]))]), _vm._v(" "), item.tip && item.tip.key && (_vm.typeOf(item.tip.isShow, "function") ? item.tip.isShow(row) : true) ? _c("el-tooltip", {
112
+ attrs: {
113
+ content: row[item.tip.key],
114
+ placement: "top"
115
+ }
116
+ }, [_c("el-button", {
117
+ staticStyle: {
118
+ color: "red",
119
+ padding: "0"
120
+ },
121
+ attrs: {
122
+ type: "text",
123
+ size: "samll",
124
+ icon: "el-icon-info"
125
+ }
126
+ })], 1) : _vm._e()]];
127
+ }
128
+ }])
129
+ }) : _vm._e()];
130
+ })], 2), _vm._v(" "), _vm.showPagination ? _c("el-pagination", {
131
+ staticStyle: {
132
+ float: "right"
133
+ },
134
+ attrs: {
135
+ "current-page": _vm.currentPage,
136
+ "page-sizes": [10, 20, 50, 100],
137
+ "page-size": _vm.pageSize,
138
+ total: _vm.total,
139
+ background: "",
140
+ layout: "total, sizes, prev, pager, next, jumper"
141
+ },
142
+ on: {
143
+ "size-change": _vm.handleSizeChange,
144
+ "current-change": _vm.handleCurrentChange
145
+ }
146
+ }) : _vm._e()], 1);
147
+ };
148
+ var __vue_staticRenderFns__ = [];
149
+ __vue_render__._withStripped = true;
150
+
151
+ /* style */
152
+ var __vue_inject_styles__ = undefined;
153
+ /* scoped */
154
+ var __vue_scope_id__ = "data-v-29020ed9";
155
+ /* module identifier */
156
+ var __vue_module_identifier__ = undefined;
157
+ /* functional template */
158
+ var __vue_is_functional_template__ = false;
159
+ /* style inject */
160
+
161
+ /* style inject SSR */
162
+
163
+ /* style inject shadow dom */
164
+
165
+ var __vue_component__ = /*#__PURE__*/normalizeComponent({
166
+ render: __vue_render__,
167
+ staticRenderFns: __vue_staticRenderFns__
168
+ }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
169
+ var SlTable = __vue_component__;
170
+
171
+ export { SlTable as default };