@ctzy-web-client/plugin-component-vue 1.0.23 → 1.0.25
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/es/advance-select/advance-operation.mjs +51 -37
- package/es/advance-select/advance-option.mjs +167 -97
- package/es/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.mjs +7 -0
- package/es/advance-select/advance-select.mjs +368 -310
- package/es/advance-select/index.mjs +5 -5
- package/es/application-slot/breadcrumb-item.mjs +20 -17
- package/es/application-slot/header-tools-item.mjs +20 -17
- package/es/breadcrumb-select/breadcrumb-select.mjs +134 -112
- package/es/contextmenu/contextmenu-item.mjs +19 -15
- package/es/contextmenu/contextmenu.mjs +72 -56
- package/es/data-form/data-form-item.mjs +48 -30
- package/es/data-form/data-form.mjs +213 -166
- package/es/data-form/form-components/bwa-date-picker.mjs +51 -39
- package/es/data-form/form-components/bwa-date-time-picker.mjs +56 -44
- package/es/data-form/form-components/bwa-input-float.mjs +48 -37
- package/es/data-form/form-components/bwa-input-integer.mjs +68 -50
- package/es/data-form/form-components/bwa-input.mjs +43 -32
- package/es/data-form/form-components/bwa-multi-select.mjs +40 -29
- package/es/data-form/form-components/bwa-rich-text-tinymce.mjs +554 -218
- package/es/data-form/form-components/bwa-rich-text.mjs +404 -316
- package/es/data-form/form-components/bwa-select.mjs +84 -70
- package/es/data-form/form-components/bwa-textarea.mjs +38 -27
- package/es/data-form/form-components/bwa-upload.mjs +172 -148
- package/es/data-form/form-components/bwa-user-multi-select.mjs +35 -24
- package/es/data-form/form-components/bwa-user-select.mjs +86 -61
- package/es/data-table/data-column-view.mjs +146 -115
- package/es/data-table/data-table-card.mjs +48 -40
- package/es/data-table/data-table-column.mjs +58 -45
- package/es/data-table/data-table.mjs +402 -316
- package/es/datatable-settings/datatable-settings.mjs +329 -254
- package/es/date-range/date-picker.mjs +130 -116
- package/es/date-range/date-range.mjs +215 -161
- package/es/drag-list/drag-item.mjs +56 -42
- package/es/drag-list/drag-list.mjs +60 -47
- package/es/dragable/dragable-item.mjs +23 -18
- package/es/dragable/dragable-operation.mjs +32 -24
- package/es/dragable/dragable.mjs +32 -23
- package/es/filter-panel/conditions/date-range-condition.mjs +50 -40
- package/es/filter-panel/conditions/department-condition/department-condition.mjs +99 -72
- package/es/filter-panel/conditions/department-condition/department-node.mjs +73 -59
- package/es/filter-panel/conditions/input-condition.mjs +90 -76
- package/es/filter-panel/conditions/multi-user-condition.mjs +67 -57
- package/es/filter-panel/conditions/multiple-menu-condition.mjs +54 -35
- package/es/filter-panel/conditions/single-menu-condition.mjs +65 -60
- package/es/filter-panel/conditions/single-user-condition.mjs +67 -57
- package/es/filter-panel/filter-panel-item.mjs +54 -39
- package/es/filter-panel/filter-panel.mjs +153 -135
- package/es/layout/layout.mjs +85 -78
- package/es/menu/menu-item.mjs +67 -52
- package/es/menu/menu.mjs +70 -53
- package/es/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +28 -0
- package/es/panel/panel.mjs +53 -40
- package/es/pct-filter-panel/pct-compents/pct-Input-condition.mjs +74 -63
- package/es/pct-filter-panel/pct-compents/pct-date-range-condition.mjs +76 -67
- package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition.mjs +406 -178
- package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.mjs +153 -138
- package/es/pct-filter-panel/pct-filter-panel-item.mjs +55 -40
- package/es/pct-filter-panel/pct-filter-panel.mjs +247 -227
- package/es/progress/progress-item.mjs +81 -61
- package/es/progress/progress.mjs +78 -64
- package/es/where-filter-panel/where-filter-panel.mjs +15 -12
- package/lib/advance-select/advance-operation.js +50 -36
- package/lib/advance-select/advance-option.js +166 -96
- package/lib/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.js +12 -0
- package/lib/advance-select/advance-select.js +366 -308
- package/lib/application-slot/breadcrumb-item.js +19 -16
- package/lib/application-slot/header-tools-item.js +19 -16
- package/lib/breadcrumb-select/breadcrumb-select.js +133 -111
- package/lib/contextmenu/contextmenu-item.js +18 -14
- package/lib/contextmenu/contextmenu.js +71 -55
- package/lib/data-form/data-form-item.js +47 -29
- package/lib/data-form/data-form.js +212 -165
- package/lib/data-form/form-components/bwa-date-picker.js +50 -38
- package/lib/data-form/form-components/bwa-date-time-picker.js +55 -43
- package/lib/data-form/form-components/bwa-input-float.js +47 -36
- package/lib/data-form/form-components/bwa-input-integer.js +67 -49
- package/lib/data-form/form-components/bwa-input.js +42 -31
- package/lib/data-form/form-components/bwa-multi-select.js +39 -28
- package/lib/data-form/form-components/bwa-rich-text-tinymce.js +553 -217
- package/lib/data-form/form-components/bwa-rich-text.js +403 -315
- package/lib/data-form/form-components/bwa-select.js +83 -69
- package/lib/data-form/form-components/bwa-textarea.js +37 -26
- package/lib/data-form/form-components/bwa-upload.js +171 -147
- package/lib/data-form/form-components/bwa-user-multi-select.js +34 -23
- package/lib/data-form/form-components/bwa-user-select.js +85 -60
- package/lib/data-table/data-column-view.js +146 -115
- package/lib/data-table/data-table-card.js +48 -40
- package/lib/data-table/data-table-column.js +57 -44
- package/lib/data-table/data-table.js +401 -315
- package/lib/datatable-settings/datatable-settings.js +328 -253
- package/lib/date-range/date-picker.js +129 -115
- package/lib/date-range/date-range.js +214 -160
- package/lib/drag-list/drag-item.js +55 -41
- package/lib/drag-list/drag-list.js +59 -46
- package/lib/dragable/dragable-item.js +22 -17
- package/lib/dragable/dragable-operation.js +31 -23
- package/lib/dragable/dragable.js +31 -22
- package/lib/filter-panel/conditions/date-range-condition.js +49 -39
- package/lib/filter-panel/conditions/department-condition/department-condition.js +98 -71
- package/lib/filter-panel/conditions/department-condition/department-node.js +72 -58
- package/lib/filter-panel/conditions/input-condition.js +89 -75
- package/lib/filter-panel/conditions/multi-user-condition.js +66 -56
- package/lib/filter-panel/conditions/multiple-menu-condition.js +53 -34
- package/lib/filter-panel/conditions/single-menu-condition.js +64 -59
- package/lib/filter-panel/conditions/single-user-condition.js +66 -56
- package/lib/filter-panel/filter-panel-item.js +53 -38
- package/lib/filter-panel/filter-panel.js +152 -134
- package/lib/layout/layout.js +84 -77
- package/lib/menu/menu-item.js +66 -51
- package/lib/menu/menu.js +69 -52
- package/lib/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +32 -0
- package/lib/panel/panel.js +52 -39
- package/lib/pct-filter-panel/pct-compents/pct-Input-condition.js +73 -62
- package/lib/pct-filter-panel/pct-compents/pct-date-range-condition.js +75 -66
- package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition.js +405 -177
- package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.js +152 -137
- package/lib/pct-filter-panel/pct-filter-panel-item.js +54 -39
- package/lib/pct-filter-panel/pct-filter-panel.js +246 -226
- package/lib/progress/progress-item.js +80 -60
- package/lib/progress/progress.js +77 -63
- package/lib/where-filter-panel/where-filter-panel.js +14 -11
- package/package.json +2 -1
- package/src/advance-select/advance-option.vue +64 -13
- package/src/data-form/form-components/bwa-rich-text-tinymce.vue +1 -1
- package/src/datatable-settings/datatable-settings.vue +33 -3
- package/src/date-range/date-picker.vue +1 -1
- package/src/filter-panel/filter-panel.vue +2 -2
- package/src/pct-filter-panel/pct-compents/pct-Input-condition.vue +64 -64
- package/src/pct-filter-panel/pct-compents/pct-date-range-condition.vue +61 -61
- package/src/pct-filter-panel/pct-compents/pct-multiple-menu-condition.vue +302 -178
- package/src/pct-filter-panel/pct-filter-panel.vue +4 -4
|
@@ -8,66 +8,91 @@ var bwaSelect = require('./bwa-select.js');
|
|
|
8
8
|
var ElementPlus = require('element-plus');
|
|
9
9
|
var _pluginVue_exportHelper = require('../../_virtual/_plugin-vue_export-helper.js');
|
|
10
10
|
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
modelValue: null
|
|
18
|
-
},
|
|
19
|
-
emits: ["update:modelValue"],
|
|
11
|
+
const _sfc_main = {
|
|
12
|
+
__name: 'bwa-user-select',
|
|
13
|
+
props: {
|
|
14
|
+
modelValue: null,
|
|
15
|
+
},
|
|
16
|
+
emits: ['update:modelValue'],
|
|
20
17
|
setup(__props, { emit }) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
|
|
18
|
+
|
|
19
|
+
const props = __props;
|
|
20
|
+
|
|
21
|
+
defineOptions({
|
|
22
|
+
name: 'BwaUserSelect',
|
|
23
|
+
inheritAttrs: false,
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
const attrs = vue.useAttrs();
|
|
31
|
+
|
|
32
|
+
const userService = webBaseClientVue.useService('UserService');
|
|
33
|
+
|
|
34
|
+
const loading = vue.ref(false);
|
|
35
|
+
|
|
36
|
+
const modelValue = vue.computed({
|
|
37
|
+
get: () => props.modelValue,
|
|
38
|
+
set: (v) => {
|
|
39
|
+
emit('update:modelValue', v);
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
const options = vue.ref([]);
|
|
44
|
+
|
|
45
|
+
const loadOptions = async (query, userIds = []) => {
|
|
46
|
+
const _userService = vue.unref(userService);
|
|
47
|
+
|
|
48
|
+
if (!_userService) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
try {
|
|
53
|
+
loading.value = true;
|
|
54
|
+
const userListResult = await _userService.getUserList({
|
|
55
|
+
name: query,
|
|
56
|
+
userIds,
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
if (userListResult.code != 0) {
|
|
60
|
+
ElementPlus.ElMessage.error(userListResult.msg);
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
options.value = userListResult.data;
|
|
65
|
+
} finally {
|
|
66
|
+
loading.value = false;
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
const handleRemote = loadOptions;
|
|
71
|
+
|
|
72
|
+
loadOptions(
|
|
73
|
+
'',
|
|
74
|
+
Array.isArray(vue.unref(modelValue))
|
|
75
|
+
? vue.unref(modelValue)
|
|
76
|
+
: vue.unref(modelValue)
|
|
77
|
+
? [vue.unref(modelValue)]
|
|
78
|
+
: []
|
|
79
|
+
);
|
|
80
|
+
|
|
81
|
+
return (_ctx, _cache) => {
|
|
82
|
+
return (vue.openBlock(), vue.createBlock(bwaSelect["default"], vue.mergeProps(vue.unref(attrs), {
|
|
83
|
+
modelValue: vue.unref(modelValue),
|
|
84
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (vue.isRef(modelValue) ? (modelValue).value = $event : null)),
|
|
85
|
+
loading: loading.value,
|
|
86
|
+
remote: "",
|
|
87
|
+
filterable: "",
|
|
88
|
+
clearable: "",
|
|
89
|
+
"remote-method": vue.unref(handleRemote),
|
|
90
|
+
options: options.value
|
|
91
|
+
}), null, 16 /* FULL_PROPS */, ["modelValue", "loading", "remote-method", "options"]))
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
};
|
|
96
|
+
var UserSelect = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['__file',"bwa-user-select.vue"]]);
|
|
72
97
|
|
|
73
98
|
exports["default"] = UserSelect;
|
|
@@ -8,128 +8,159 @@ var icons = require('@element-plus/icons');
|
|
|
8
8
|
var ElementPlus = require('element-plus');
|
|
9
9
|
var _pluginVue_exportHelper = require('../_virtual/_plugin-vue_export-helper.js');
|
|
10
10
|
|
|
11
|
-
const _sfc_main = {
|
|
12
|
-
name:
|
|
13
|
-
props: {
|
|
14
|
-
value: [String, Boolean, Number, Object, Array],
|
|
15
|
-
type: {
|
|
16
|
-
type: String,
|
|
17
|
-
default:
|
|
18
|
-
},
|
|
19
|
-
template: {
|
|
20
|
-
type: String,
|
|
21
|
-
default:
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
value = props.
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
11
|
+
const _sfc_main = {
|
|
12
|
+
name: 'BwaDataColumnView',
|
|
13
|
+
props: {
|
|
14
|
+
value: [String, Boolean, Number, Object, Array],
|
|
15
|
+
type: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: 'string',
|
|
18
|
+
},
|
|
19
|
+
template: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: '',
|
|
22
|
+
},
|
|
23
|
+
//格式化规则
|
|
24
|
+
rule: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: '',
|
|
27
|
+
},
|
|
28
|
+
align: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: '',
|
|
31
|
+
},
|
|
32
|
+
nowrap: {
|
|
33
|
+
type: [Boolean, String],
|
|
34
|
+
default: true,
|
|
35
|
+
},
|
|
36
|
+
copy: {
|
|
37
|
+
type: [Boolean, String],
|
|
38
|
+
default: false,
|
|
39
|
+
},
|
|
40
|
+
defaultValue: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: '-',
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
emits: ['update:modelValue'],
|
|
46
|
+
components: { PictureFilled: icons.PictureFilled },
|
|
47
|
+
setup(props) {
|
|
48
|
+
const ns = webBaseClientVue.useNamespace('column-view');
|
|
49
|
+
|
|
50
|
+
//显示类型
|
|
51
|
+
const viewType = vue.computed(() => props.type.toLocaleLowerCase());
|
|
52
|
+
|
|
53
|
+
//显示的值
|
|
54
|
+
const viewValue = vue.computed(() => {
|
|
55
|
+
//值 主要是要先转成字符串处理
|
|
56
|
+
let value = props.value === 0 ? '0' : props.value ? props.value + '' : '';
|
|
57
|
+
let type = viewType.value;
|
|
58
|
+
|
|
59
|
+
if (['number', 'string'].includes(type)) {
|
|
60
|
+
//是否追加...
|
|
61
|
+
let isAppendChar = false;
|
|
62
|
+
|
|
63
|
+
if (type === 'string' && props.rule && value) {
|
|
64
|
+
isAppendChar = value.length > props.rule.replace('s:', '') * 1;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
value = props.rule ? webBaseClientVue.str.formatByRule(value, props.rule) : value;
|
|
68
|
+
value = value || props.defaultValue;
|
|
69
|
+
|
|
70
|
+
if (isAppendChar) {
|
|
71
|
+
value += '...';
|
|
72
|
+
}
|
|
73
|
+
} else if (type === 'date') {
|
|
74
|
+
value = value
|
|
75
|
+
? webBaseClientVue.func.formatDate(new Date(value), props.rule || 'yyyy-MM-dd')
|
|
76
|
+
: props.defaultValue;
|
|
77
|
+
} else if (type === 'html') {
|
|
78
|
+
value = value
|
|
79
|
+
? value.replace(/[\r\n|\r|\n]/g, '<br/>')
|
|
80
|
+
: props.defaultValue;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
//存在字符串模板的时候
|
|
84
|
+
if (props.template) {
|
|
85
|
+
value = props.template.replace('${value}', value);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return value;
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
//拷贝
|
|
92
|
+
const copyHandle = (text) => {
|
|
93
|
+
let input = document.createElement('input');
|
|
94
|
+
input.value = text;
|
|
95
|
+
document.body.appendChild(input);
|
|
96
|
+
input.select();
|
|
97
|
+
input.setSelectionRange(0, input.value.length),
|
|
98
|
+
document.execCommand('Copy');
|
|
99
|
+
document.body.removeChild(input);
|
|
100
|
+
ElementPlus.ElMessage.info('复制成功!');
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
return { ns, viewType, viewValue, copyHandle };
|
|
104
|
+
},
|
|
105
|
+
};
|
|
106
|
+
|
|
84
107
|
const _hoisted_1 = ["innerHTML"];
|
|
108
|
+
|
|
85
109
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
86
110
|
const _component_PictureFilled = vue.resolveComponent("PictureFilled");
|
|
87
111
|
const _component_el_icon = vue.resolveComponent("el-icon");
|
|
88
112
|
const _component_el_image = vue.resolveComponent("el-image");
|
|
89
|
-
|
|
113
|
+
|
|
114
|
+
return (vue.openBlock(), vue.createElementBlock("span", {
|
|
90
115
|
class: vue.normalizeClass([$setup.ns.b(), { nowrap: $props.nowrap }, $props.align])
|
|
91
116
|
}, [
|
|
92
|
-
$setup.viewType ==
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
vue.
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
vue.
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
117
|
+
($setup.viewType == 'html')
|
|
118
|
+
? (vue.openBlock(), vue.createElementBlock("span", {
|
|
119
|
+
key: 0,
|
|
120
|
+
innerHTML: $setup.viewValue
|
|
121
|
+
}, null, 8 /* PROPS */, _hoisted_1))
|
|
122
|
+
: ($setup.viewType == 'image')
|
|
123
|
+
? (vue.openBlock(), vue.createBlock(_component_el_image, {
|
|
124
|
+
key: 1,
|
|
125
|
+
class: "image",
|
|
126
|
+
style: { width: '100%', minHeight: '50px' },
|
|
127
|
+
"z-index": 999,
|
|
128
|
+
"preview-teleported": true,
|
|
129
|
+
"preview-src-list": [$setup.viewValue],
|
|
130
|
+
fit: "cover",
|
|
131
|
+
src: $setup.viewValue,
|
|
132
|
+
"hide-on-click-modal": true
|
|
133
|
+
}, {
|
|
134
|
+
placeholder: vue.withCtx(() => [
|
|
135
|
+
vue.createVNode(_component_el_icon, { size: 50 }, {
|
|
136
|
+
default: vue.withCtx(() => [
|
|
137
|
+
vue.createVNode(_component_PictureFilled)
|
|
138
|
+
]),
|
|
139
|
+
_: 1 /* STABLE */
|
|
140
|
+
})
|
|
141
|
+
]),
|
|
142
|
+
error: vue.withCtx(() => [
|
|
143
|
+
vue.createVNode(_component_el_icon, { size: 50 }, {
|
|
144
|
+
default: vue.withCtx(() => [
|
|
145
|
+
vue.createVNode(_component_PictureFilled)
|
|
146
|
+
]),
|
|
147
|
+
_: 1 /* STABLE */
|
|
148
|
+
})
|
|
149
|
+
]),
|
|
150
|
+
_: 1 /* STABLE */
|
|
151
|
+
}, 8 /* PROPS */, ["preview-src-list", "src"]))
|
|
152
|
+
: (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
|
|
153
|
+
vue.createTextVNode(vue.toDisplayString($setup.viewValue), 1 /* TEXT */)
|
|
154
|
+
], 64 /* STABLE_FRAGMENT */)),
|
|
155
|
+
($props.copy)
|
|
156
|
+
? (vue.openBlock(), vue.createElementBlock("div", {
|
|
157
|
+
key: 3,
|
|
158
|
+
class: "copy-btn",
|
|
159
|
+
onClick: _cache[0] || (_cache[0] = $event => ($setup.copyHandle($setup.viewValue)))
|
|
160
|
+
}, "复制"))
|
|
161
|
+
: vue.createCommentVNode("v-if", true)
|
|
162
|
+
], 2 /* CLASS */))
|
|
132
163
|
}
|
|
133
|
-
var DataColumnView =
|
|
164
|
+
var DataColumnView = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['render',_sfc_render],['__file',"data-column-view.vue"]]);
|
|
134
165
|
|
|
135
166
|
exports["default"] = DataColumnView;
|
|
@@ -7,18 +7,23 @@ var webBaseClientVue = require('@ctzy-web-client/web-base-client-vue');
|
|
|
7
7
|
var dynamicComponent = require('./dynamic-component.js');
|
|
8
8
|
var _pluginVue_exportHelper = require('../_virtual/_plugin-vue_export-helper.js');
|
|
9
9
|
|
|
10
|
-
const _sfc_main = {
|
|
11
|
-
name:
|
|
12
|
-
components: { DynamicComponent: dynamicComponent["default"] },
|
|
13
|
-
setup() {
|
|
14
|
-
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
const _sfc_main = {
|
|
11
|
+
name: 'BwaDataTableCard',
|
|
12
|
+
components: { DynamicComponent: dynamicComponent["default"] },
|
|
13
|
+
setup() {
|
|
14
|
+
//创建dataTable
|
|
15
|
+
const dataTable = vue.inject(webBaseClientVue.dataTableKey);
|
|
16
|
+
|
|
17
|
+
const ns = webBaseClientVue.useNamespace('datatable');
|
|
18
|
+
|
|
19
|
+
return { dataTable, ns };
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
|
|
19
23
|
const _hoisted_1 = { class: "left" };
|
|
20
24
|
const _hoisted_2 = { class: "pagination-info" };
|
|
21
25
|
const _hoisted_3 = { class: "right" };
|
|
26
|
+
|
|
22
27
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
23
28
|
const _component_el_table_column = vue.resolveComponent("el-table-column");
|
|
24
29
|
const _component_DynamicComponent = vue.resolveComponent("DynamicComponent");
|
|
@@ -26,8 +31,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
26
31
|
const _component_el_pagination = vue.resolveComponent("el-pagination");
|
|
27
32
|
const _component_el_card = vue.resolveComponent("el-card");
|
|
28
33
|
const _directive_loading = vue.resolveDirective("loading");
|
|
34
|
+
|
|
29
35
|
return vue.withDirectives((vue.openBlock(), vue.createBlock(_component_el_card, {
|
|
30
|
-
class: vue.normalizeClass($setup.ns.b(
|
|
36
|
+
class: vue.normalizeClass($setup.ns.b('card'))
|
|
31
37
|
}, vue.createSlots({
|
|
32
38
|
default: vue.withCtx(() => [
|
|
33
39
|
vue.createVNode(_component_el_table, {
|
|
@@ -47,11 +53,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
47
53
|
type: "index",
|
|
48
54
|
width: "60",
|
|
49
55
|
align: "center",
|
|
50
|
-
label: "
|
|
56
|
+
label: "编号"
|
|
51
57
|
}),
|
|
52
58
|
vue.renderSlot(_ctx.$slots, "table-columns", { dataTable: $setup.dataTable }, () => [
|
|
53
59
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($setup.dataTable.getDisplayColumns(), (item) => {
|
|
54
|
-
return vue.openBlock(), vue.createBlock(_component_el_table_column, {
|
|
60
|
+
return (vue.openBlock(), vue.createBlock(_component_el_table_column, {
|
|
55
61
|
"column-key": item.attrName,
|
|
56
62
|
key: item.attrName,
|
|
57
63
|
label: item.title,
|
|
@@ -60,8 +66,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
60
66
|
align: item.align
|
|
61
67
|
}, {
|
|
62
68
|
default: vue.withCtx(({ row, $index }) => [
|
|
63
|
-
vue.renderSlot(_ctx.$slots,
|
|
64
|
-
row,
|
|
69
|
+
vue.renderSlot(_ctx.$slots, 'table-col-' + item.attrName, {
|
|
70
|
+
row: row,
|
|
65
71
|
index: $index,
|
|
66
72
|
column: item,
|
|
67
73
|
dataTable: $setup.dataTable
|
|
@@ -69,54 +75,56 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
69
75
|
vue.createVNode(_component_DynamicComponent, {
|
|
70
76
|
column: item,
|
|
71
77
|
record: row
|
|
72
|
-
}, null, 8
|
|
78
|
+
}, null, 8 /* PROPS */, ["column", "record"])
|
|
73
79
|
])
|
|
74
80
|
]),
|
|
75
|
-
_: 2
|
|
76
|
-
}, 1032, ["column-key", "label", "prop", "min-width", "align"])
|
|
77
|
-
}), 128))
|
|
81
|
+
_: 2 /* DYNAMIC */
|
|
82
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["column-key", "label", "prop", "min-width", "align"]))
|
|
83
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
78
84
|
])
|
|
79
85
|
]),
|
|
80
|
-
_: 3
|
|
81
|
-
}, 8
|
|
86
|
+
_: 3 /* FORWARDED */
|
|
87
|
+
}, 8 /* PROPS */, ["data", "row-key"]),
|
|
82
88
|
vue.createElementVNode("div", {
|
|
83
|
-
class: vue.normalizeClass($setup.ns.be(
|
|
89
|
+
class: vue.normalizeClass($setup.ns.be('card', 'footer'))
|
|
84
90
|
}, [
|
|
85
91
|
vue.createElementVNode("div", _hoisted_1, [
|
|
86
92
|
vue.createElementVNode("div", _hoisted_2, [
|
|
87
|
-
vue.createTextVNode("
|
|
88
|
-
vue.createElementVNode("b", null, vue.toDisplayString($setup.dataTable.totalRecCount), 1),
|
|
89
|
-
vue.createTextVNode("
|
|
90
|
-
vue.createElementVNode("b", null, vue.toDisplayString($setup.dataTable.pageNum), 1),
|
|
91
|
-
vue.createTextVNode("
|
|
93
|
+
vue.createTextVNode(" 共"),
|
|
94
|
+
vue.createElementVNode("b", null, vue.toDisplayString($setup.dataTable.totalRecCount), 1 /* TEXT */),
|
|
95
|
+
vue.createTextVNode("条记录 | 当前第"),
|
|
96
|
+
vue.createElementVNode("b", null, vue.toDisplayString($setup.dataTable.pageNum), 1 /* TEXT */),
|
|
97
|
+
vue.createTextVNode("页 ")
|
|
92
98
|
])
|
|
93
99
|
]),
|
|
94
100
|
vue.createElementVNode("div", _hoisted_3, [
|
|
95
101
|
vue.createVNode(_component_el_pagination, {
|
|
96
102
|
"hide-on-single-page": true,
|
|
97
103
|
currentPage: $setup.dataTable.pageNum,
|
|
98
|
-
onCurrentChange: _cache[0] || (_cache[0] =
|
|
104
|
+
onCurrentChange: _cache[0] || (_cache[0] = $event => ($setup.dataTable.pageTo($event))),
|
|
99
105
|
"page-size": $setup.dataTable.pageSize,
|
|
100
106
|
background: "",
|
|
101
107
|
layout: "prev, pager, next, jumper",
|
|
102
108
|
total: $setup.dataTable.totalRecCount
|
|
103
|
-
}, null, 8
|
|
109
|
+
}, null, 8 /* PROPS */, ["currentPage", "page-size", "total"])
|
|
104
110
|
])
|
|
105
|
-
], 2)
|
|
111
|
+
], 2 /* CLASS */)
|
|
106
112
|
]),
|
|
107
|
-
_: 2
|
|
113
|
+
_: 2 /* DYNAMIC */
|
|
108
114
|
}, [
|
|
109
|
-
_ctx.$slots.header
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
(_ctx.$slots.header)
|
|
116
|
+
? {
|
|
117
|
+
name: "header",
|
|
118
|
+
fn: vue.withCtx(() => [
|
|
119
|
+
vue.renderSlot(_ctx.$slots, "header", { dataTable: $setup.dataTable })
|
|
120
|
+
]),
|
|
121
|
+
key: "0"
|
|
122
|
+
}
|
|
123
|
+
: undefined
|
|
124
|
+
]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["class"])), [
|
|
117
125
|
[_directive_loading, !$setup.dataTable.ready]
|
|
118
|
-
])
|
|
126
|
+
])
|
|
119
127
|
}
|
|
120
|
-
var dataTableCard =
|
|
128
|
+
var dataTableCard = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['render',_sfc_render],['__file',"data-table-card.vue"]]);
|
|
121
129
|
|
|
122
130
|
exports["default"] = dataTableCard;
|