@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.
Files changed (131) hide show
  1. package/es/advance-select/advance-operation.mjs +51 -37
  2. package/es/advance-select/advance-option.mjs +167 -97
  3. package/es/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.mjs +7 -0
  4. package/es/advance-select/advance-select.mjs +368 -310
  5. package/es/advance-select/index.mjs +5 -5
  6. package/es/application-slot/breadcrumb-item.mjs +20 -17
  7. package/es/application-slot/header-tools-item.mjs +20 -17
  8. package/es/breadcrumb-select/breadcrumb-select.mjs +134 -112
  9. package/es/contextmenu/contextmenu-item.mjs +19 -15
  10. package/es/contextmenu/contextmenu.mjs +72 -56
  11. package/es/data-form/data-form-item.mjs +48 -30
  12. package/es/data-form/data-form.mjs +213 -166
  13. package/es/data-form/form-components/bwa-date-picker.mjs +51 -39
  14. package/es/data-form/form-components/bwa-date-time-picker.mjs +56 -44
  15. package/es/data-form/form-components/bwa-input-float.mjs +48 -37
  16. package/es/data-form/form-components/bwa-input-integer.mjs +68 -50
  17. package/es/data-form/form-components/bwa-input.mjs +43 -32
  18. package/es/data-form/form-components/bwa-multi-select.mjs +40 -29
  19. package/es/data-form/form-components/bwa-rich-text-tinymce.mjs +554 -218
  20. package/es/data-form/form-components/bwa-rich-text.mjs +404 -316
  21. package/es/data-form/form-components/bwa-select.mjs +84 -70
  22. package/es/data-form/form-components/bwa-textarea.mjs +38 -27
  23. package/es/data-form/form-components/bwa-upload.mjs +172 -148
  24. package/es/data-form/form-components/bwa-user-multi-select.mjs +35 -24
  25. package/es/data-form/form-components/bwa-user-select.mjs +86 -61
  26. package/es/data-table/data-column-view.mjs +146 -115
  27. package/es/data-table/data-table-card.mjs +48 -40
  28. package/es/data-table/data-table-column.mjs +58 -45
  29. package/es/data-table/data-table.mjs +402 -316
  30. package/es/datatable-settings/datatable-settings.mjs +329 -254
  31. package/es/date-range/date-picker.mjs +130 -116
  32. package/es/date-range/date-range.mjs +215 -161
  33. package/es/drag-list/drag-item.mjs +56 -42
  34. package/es/drag-list/drag-list.mjs +60 -47
  35. package/es/dragable/dragable-item.mjs +23 -18
  36. package/es/dragable/dragable-operation.mjs +32 -24
  37. package/es/dragable/dragable.mjs +32 -23
  38. package/es/filter-panel/conditions/date-range-condition.mjs +50 -40
  39. package/es/filter-panel/conditions/department-condition/department-condition.mjs +99 -72
  40. package/es/filter-panel/conditions/department-condition/department-node.mjs +73 -59
  41. package/es/filter-panel/conditions/input-condition.mjs +90 -76
  42. package/es/filter-panel/conditions/multi-user-condition.mjs +67 -57
  43. package/es/filter-panel/conditions/multiple-menu-condition.mjs +54 -35
  44. package/es/filter-panel/conditions/single-menu-condition.mjs +65 -60
  45. package/es/filter-panel/conditions/single-user-condition.mjs +67 -57
  46. package/es/filter-panel/filter-panel-item.mjs +54 -39
  47. package/es/filter-panel/filter-panel.mjs +153 -135
  48. package/es/layout/layout.mjs +85 -78
  49. package/es/menu/menu-item.mjs +67 -52
  50. package/es/menu/menu.mjs +70 -53
  51. package/es/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +28 -0
  52. package/es/panel/panel.mjs +53 -40
  53. package/es/pct-filter-panel/pct-compents/pct-Input-condition.mjs +74 -63
  54. package/es/pct-filter-panel/pct-compents/pct-date-range-condition.mjs +76 -67
  55. package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition.mjs +406 -178
  56. package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.mjs +153 -138
  57. package/es/pct-filter-panel/pct-filter-panel-item.mjs +55 -40
  58. package/es/pct-filter-panel/pct-filter-panel.mjs +247 -227
  59. package/es/progress/progress-item.mjs +81 -61
  60. package/es/progress/progress.mjs +78 -64
  61. package/es/where-filter-panel/where-filter-panel.mjs +15 -12
  62. package/lib/advance-select/advance-operation.js +50 -36
  63. package/lib/advance-select/advance-option.js +166 -96
  64. package/lib/advance-select/advance-option.vue_vue_type_style_index_0_scoped_bc8f5626_lang.js +12 -0
  65. package/lib/advance-select/advance-select.js +366 -308
  66. package/lib/application-slot/breadcrumb-item.js +19 -16
  67. package/lib/application-slot/header-tools-item.js +19 -16
  68. package/lib/breadcrumb-select/breadcrumb-select.js +133 -111
  69. package/lib/contextmenu/contextmenu-item.js +18 -14
  70. package/lib/contextmenu/contextmenu.js +71 -55
  71. package/lib/data-form/data-form-item.js +47 -29
  72. package/lib/data-form/data-form.js +212 -165
  73. package/lib/data-form/form-components/bwa-date-picker.js +50 -38
  74. package/lib/data-form/form-components/bwa-date-time-picker.js +55 -43
  75. package/lib/data-form/form-components/bwa-input-float.js +47 -36
  76. package/lib/data-form/form-components/bwa-input-integer.js +67 -49
  77. package/lib/data-form/form-components/bwa-input.js +42 -31
  78. package/lib/data-form/form-components/bwa-multi-select.js +39 -28
  79. package/lib/data-form/form-components/bwa-rich-text-tinymce.js +553 -217
  80. package/lib/data-form/form-components/bwa-rich-text.js +403 -315
  81. package/lib/data-form/form-components/bwa-select.js +83 -69
  82. package/lib/data-form/form-components/bwa-textarea.js +37 -26
  83. package/lib/data-form/form-components/bwa-upload.js +171 -147
  84. package/lib/data-form/form-components/bwa-user-multi-select.js +34 -23
  85. package/lib/data-form/form-components/bwa-user-select.js +85 -60
  86. package/lib/data-table/data-column-view.js +146 -115
  87. package/lib/data-table/data-table-card.js +48 -40
  88. package/lib/data-table/data-table-column.js +57 -44
  89. package/lib/data-table/data-table.js +401 -315
  90. package/lib/datatable-settings/datatable-settings.js +328 -253
  91. package/lib/date-range/date-picker.js +129 -115
  92. package/lib/date-range/date-range.js +214 -160
  93. package/lib/drag-list/drag-item.js +55 -41
  94. package/lib/drag-list/drag-list.js +59 -46
  95. package/lib/dragable/dragable-item.js +22 -17
  96. package/lib/dragable/dragable-operation.js +31 -23
  97. package/lib/dragable/dragable.js +31 -22
  98. package/lib/filter-panel/conditions/date-range-condition.js +49 -39
  99. package/lib/filter-panel/conditions/department-condition/department-condition.js +98 -71
  100. package/lib/filter-panel/conditions/department-condition/department-node.js +72 -58
  101. package/lib/filter-panel/conditions/input-condition.js +89 -75
  102. package/lib/filter-panel/conditions/multi-user-condition.js +66 -56
  103. package/lib/filter-panel/conditions/multiple-menu-condition.js +53 -34
  104. package/lib/filter-panel/conditions/single-menu-condition.js +64 -59
  105. package/lib/filter-panel/conditions/single-user-condition.js +66 -56
  106. package/lib/filter-panel/filter-panel-item.js +53 -38
  107. package/lib/filter-panel/filter-panel.js +152 -134
  108. package/lib/layout/layout.js +84 -77
  109. package/lib/menu/menu-item.js +66 -51
  110. package/lib/menu/menu.js +69 -52
  111. package/lib/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js +32 -0
  112. package/lib/panel/panel.js +52 -39
  113. package/lib/pct-filter-panel/pct-compents/pct-Input-condition.js +73 -62
  114. package/lib/pct-filter-panel/pct-compents/pct-date-range-condition.js +75 -66
  115. package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition.js +405 -177
  116. package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.js +152 -137
  117. package/lib/pct-filter-panel/pct-filter-panel-item.js +54 -39
  118. package/lib/pct-filter-panel/pct-filter-panel.js +246 -226
  119. package/lib/progress/progress-item.js +80 -60
  120. package/lib/progress/progress.js +77 -63
  121. package/lib/where-filter-panel/where-filter-panel.js +14 -11
  122. package/package.json +2 -1
  123. package/src/advance-select/advance-option.vue +64 -13
  124. package/src/data-form/form-components/bwa-rich-text-tinymce.vue +1 -1
  125. package/src/datatable-settings/datatable-settings.vue +33 -3
  126. package/src/date-range/date-picker.vue +1 -1
  127. package/src/filter-panel/filter-panel.vue +2 -2
  128. package/src/pct-filter-panel/pct-compents/pct-Input-condition.vue +64 -64
  129. package/src/pct-filter-panel/pct-compents/pct-date-range-condition.vue +61 -61
  130. package/src/pct-filter-panel/pct-compents/pct-multiple-menu-condition.vue +302 -178
  131. 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 __default__ = vue.defineComponent({
12
- name: "BwaUserSelect",
13
- inheritAttrs: false
14
- });
15
- const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
16
- props: {
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
- const props = __props;
22
- const attrs = vue.useAttrs();
23
- const userService = webBaseClientVue.useService("UserService");
24
- const loading = vue.ref(false);
25
- const modelValue = vue.computed({
26
- get: () => props.modelValue,
27
- set: (v) => {
28
- emit("update:modelValue", v);
29
- }
30
- });
31
- const options = vue.ref([]);
32
- const loadOptions = async (query, userIds = []) => {
33
- const _userService = vue.unref(userService);
34
- if (!_userService) {
35
- return;
36
- }
37
- try {
38
- loading.value = true;
39
- const userListResult = await _userService.getUserList({
40
- name: query,
41
- userIds
42
- });
43
- if (userListResult.code != 0) {
44
- ElementPlus.ElMessage.error(userListResult.msg);
45
- return;
46
- }
47
- options.value = userListResult.data;
48
- } finally {
49
- loading.value = false;
50
- }
51
- };
52
- const handleRemote = loadOptions;
53
- loadOptions(
54
- "",
55
- Array.isArray(vue.unref(modelValue)) ? vue.unref(modelValue) : vue.unref(modelValue) ? [vue.unref(modelValue)] : []
56
- );
57
- return (_ctx, _cache) => {
58
- return vue.openBlock(), vue.createBlock(bwaSelect["default"], vue.mergeProps(vue.unref(attrs), {
59
- modelValue: vue.unref(modelValue),
60
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(modelValue) ? modelValue.value = $event : null),
61
- loading: loading.value,
62
- remote: "",
63
- filterable: "",
64
- clearable: "",
65
- "remote-method": vue.unref(handleRemote),
66
- options: options.value
67
- }), null, 16, ["modelValue", "loading", "remote-method", "options"]);
68
- };
69
- }
70
- });
71
- var UserSelect = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "bwa-user-select.vue"]]);
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: "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
- rule: {
24
- type: String,
25
- default: ""
26
- },
27
- align: {
28
- type: String,
29
- default: ""
30
- },
31
- nowrap: {
32
- type: [Boolean, String],
33
- default: true
34
- },
35
- copy: {
36
- type: [Boolean, String],
37
- default: false
38
- },
39
- defaultValue: {
40
- type: String,
41
- default: "-"
42
- }
43
- },
44
- emits: ["update:modelValue"],
45
- components: { PictureFilled: icons.PictureFilled },
46
- setup(props) {
47
- const ns = webBaseClientVue.useNamespace("column-view");
48
- const viewType = vue.computed(() => props.type.toLocaleLowerCase());
49
- const viewValue = vue.computed(() => {
50
- let value = props.value === 0 ? "0" : props.value ? props.value + "" : "";
51
- let type = viewType.value;
52
- if (["number", "string"].includes(type)) {
53
- let isAppendChar = false;
54
- if (type === "string" && props.rule && value) {
55
- isAppendChar = value.length > props.rule.replace("s:", "") * 1;
56
- }
57
- value = props.rule ? webBaseClientVue.str.formatByRule(value, props.rule) : value;
58
- value = value || props.defaultValue;
59
- if (isAppendChar) {
60
- value += "...";
61
- }
62
- } else if (type === "date") {
63
- value = value ? webBaseClientVue.func.formatDate(new Date(value), props.rule || "yyyy-MM-dd") : props.defaultValue;
64
- } else if (type === "html") {
65
- value = value ? value.replace(/[\r\n|\r|\n]/g, "<br/>") : props.defaultValue;
66
- }
67
- if (props.template) {
68
- value = props.template.replace("${value}", value);
69
- }
70
- return value;
71
- });
72
- const copyHandle = (text) => {
73
- let input = document.createElement("input");
74
- input.value = text;
75
- document.body.appendChild(input);
76
- input.select();
77
- input.setSelectionRange(0, input.value.length), document.execCommand("Copy");
78
- document.body.removeChild(input);
79
- ElementPlus.ElMessage.info("\u590D\u5236\u6210\u529F!");
80
- };
81
- return { ns, viewType, viewValue, copyHandle };
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
- return vue.openBlock(), vue.createElementBlock("span", {
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 == "html" ? (vue.openBlock(), vue.createElementBlock("span", {
93
- key: 0,
94
- innerHTML: $setup.viewValue
95
- }, null, 8, _hoisted_1)) : $setup.viewType == "image" ? (vue.openBlock(), vue.createBlock(_component_el_image, {
96
- key: 1,
97
- class: "image",
98
- style: { width: "100%", minHeight: "50px" },
99
- "z-index": 999,
100
- "preview-teleported": true,
101
- "preview-src-list": [$setup.viewValue],
102
- fit: "cover",
103
- src: $setup.viewValue,
104
- "hide-on-click-modal": true
105
- }, {
106
- placeholder: vue.withCtx(() => [
107
- vue.createVNode(_component_el_icon, { size: 50 }, {
108
- default: vue.withCtx(() => [
109
- vue.createVNode(_component_PictureFilled)
110
- ]),
111
- _: 1
112
- })
113
- ]),
114
- error: vue.withCtx(() => [
115
- vue.createVNode(_component_el_icon, { size: 50 }, {
116
- default: vue.withCtx(() => [
117
- vue.createVNode(_component_PictureFilled)
118
- ]),
119
- _: 1
120
- })
121
- ]),
122
- _: 1
123
- }, 8, ["preview-src-list", "src"])) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
124
- vue.createTextVNode(vue.toDisplayString($setup.viewValue), 1)
125
- ], 64)),
126
- $props.copy ? (vue.openBlock(), vue.createElementBlock("div", {
127
- key: 3,
128
- class: "copy-btn",
129
- onClick: _cache[0] || (_cache[0] = ($event) => $setup.copyHandle($setup.viewValue))
130
- }, "\u590D\u5236")) : vue.createCommentVNode("v-if", true)
131
- ], 2);
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 = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "data-column-view.vue"]]);
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: "BwaDataTableCard",
12
- components: { DynamicComponent: dynamicComponent["default"] },
13
- setup() {
14
- const dataTable = vue.inject(webBaseClientVue.dataTableKey);
15
- const ns = webBaseClientVue.useNamespace("datatable");
16
- return { dataTable, ns };
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("card"))
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: "\u7F16\u53F7"
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, "table-col-" + item.attrName, {
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, ["column", "record"])
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, ["data", "row-key"]),
86
+ _: 3 /* FORWARDED */
87
+ }, 8 /* PROPS */, ["data", "row-key"]),
82
88
  vue.createElementVNode("div", {
83
- class: vue.normalizeClass($setup.ns.be("card", "footer"))
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(" \u5171"),
88
- vue.createElementVNode("b", null, vue.toDisplayString($setup.dataTable.totalRecCount), 1),
89
- vue.createTextVNode("\u6761\u8BB0\u5F55 | \u5F53\u524D\u7B2C"),
90
- vue.createElementVNode("b", null, vue.toDisplayString($setup.dataTable.pageNum), 1),
91
- vue.createTextVNode("\u9875 ")
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] = ($event) => $setup.dataTable.pageTo($event)),
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, ["currentPage", "page-size", "total"])
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
- name: "header",
111
- fn: vue.withCtx(() => [
112
- vue.renderSlot(_ctx.$slots, "header", { dataTable: $setup.dataTable })
113
- ]),
114
- key: "0"
115
- } : void 0
116
- ]), 1032, ["class"])), [
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 = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__file", "data-table-card.vue"]]);
128
+ var dataTableCard = /*#__PURE__*/_pluginVue_exportHelper["default"](_sfc_main, [['render',_sfc_render],['__file',"data-table-card.vue"]]);
121
129
 
122
130
  exports["default"] = dataTableCard;