@ctzy-web-client/plugin-component-vue 1.0.36 → 1.0.38
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-option.mjs +2 -2
- package/es/data-table/data-table.mjs +4 -3
- package/es/index.css +1 -0
- package/es/pct-filter-panel/pct-compents/index.mjs +1 -1
- package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition.mjs +2 -2
- package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.mjs +131 -77
- package/es/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.vue_vue_type_style_index_0_scoped_0a08184f_lang.mjs +13 -0
- package/lib/advance-select/advance-option.js +2 -2
- package/lib/data-table/data-table.js +4 -3
- package/lib/index.css +1 -0
- package/lib/pct-filter-panel/pct-compents/index.js +2 -2
- package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition.js +2 -2
- package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.js +130 -76
- package/lib/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.vue_vue_type_style_index_0_scoped_0a08184f_lang.js +17 -0
- package/package.json +1 -1
- package/src/advance-select/advance-option.vue +4 -4
- package/src/data-table/data-table.vue +4 -4
- package/src/pct-filter-panel/pct-compents/index.js +1 -1
- package/src/pct-filter-panel/pct-compents/pct-multiple-menu-condition.vue +4 -4
- package/src/pct-filter-panel/pct-compents/pct-multiple-menu-condition2.vue +148 -96
- package/style/index.css +1 -1
- package/style/src/var.scss +2 -0
- package/style/var.css +1 -1
- package/es/components.css +0 -1
- package/lib/components.css +0 -1
- /package/es/advance-select/{advance-option.vue_vue_type_style_index_0_scoped_1e505c71_lang.mjs → advance-option.vue_vue_type_style_index_0_scoped_9ba46efc_lang.mjs} +0 -0
- /package/lib/advance-select/{advance-option.vue_vue_type_style_index_0_scoped_1e505c71_lang.js → advance-option.vue_vue_type_style_index_0_scoped_9ba46efc_lang.js} +0 -0
|
@@ -4,7 +4,7 @@ import { useNamespace } from '@ctzy-web-client/web-base-client-vue';
|
|
|
4
4
|
import { useEvent } from './events-helpers.mjs';
|
|
5
5
|
import { useAdvanceOption } from './use-advance-option.mjs';
|
|
6
6
|
import { pinyin } from 'pinyin-pro';
|
|
7
|
-
import './advance-option.
|
|
7
|
+
import './advance-option.vue_vue_type_style_index_0_scoped_9ba46efc_lang.mjs';
|
|
8
8
|
import _export_sfc from '../_virtual/_plugin-vue_export-helper.mjs';
|
|
9
9
|
|
|
10
10
|
// Inject __name helper
|
|
@@ -159,6 +159,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
159
159
|
}, 8, ["class"])) : createCommentVNode("v-if", true)
|
|
160
160
|
], 2);
|
|
161
161
|
}
|
|
162
|
-
var BwaAdvanceOption = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
162
|
+
var BwaAdvanceOption = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-9ba46efc"], ["__file", "advance-option.vue"]]);
|
|
163
163
|
|
|
164
164
|
export { BwaAdvanceOption as default };
|
|
@@ -80,6 +80,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
80
80
|
const dataTable = props.dataTable;
|
|
81
81
|
dataTable._userService = (_a = userService.value) == null ? void 0 : _a.getUserList;
|
|
82
82
|
const dataTableEl = ref(null);
|
|
83
|
+
const realHeight = computed(() => props.height);
|
|
83
84
|
const displayColumns = computed(
|
|
84
85
|
() => unref(dataTable).getDisplayColumns() || []
|
|
85
86
|
);
|
|
@@ -266,14 +267,14 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
266
267
|
ref_key: "dataTableEl",
|
|
267
268
|
ref: dataTableEl,
|
|
268
269
|
style: normalizeStyle({
|
|
269
|
-
display:
|
|
270
|
-
flexDirection:
|
|
270
|
+
display: realHeight.value === "auto" ? "flex" : "block",
|
|
271
|
+
flexDirection: realHeight.value === "auto" ? "column" : "unset"
|
|
271
272
|
})
|
|
272
273
|
}, [
|
|
273
274
|
renderSlot(_ctx.$slots, "default", { dataTable: unref(dataTable) }, () => [
|
|
274
275
|
createVNode(unref(ElTable), mergeProps({
|
|
275
276
|
class: "content",
|
|
276
|
-
height:
|
|
277
|
+
height: realHeight.value,
|
|
277
278
|
ref_key: "elTable",
|
|
278
279
|
ref: elTable,
|
|
279
280
|
data: data.value,
|
package/es/index.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.letter-circle[data-v-9ba46efc]{font-size:14px;height:24px;margin-right:8px;width:24px}.letter-circle[data-v-0a08184f],.letter-circle[data-v-9ba46efc]{align-items:center;border-radius:50%;color:#fff;display:flex;justify-content:center}.letter-circle[data-v-0a08184f]{flex-shrink:0;font-size:12px;height:22px;width:22px}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { withInstall } from 'element-plus/es/utils/vue/install';
|
|
2
|
-
import PctMultipleMenuCondition from './pct-multiple-menu-
|
|
2
|
+
import PctMultipleMenuCondition from './pct-multiple-menu-condition2.mjs';
|
|
3
3
|
import PctInputCondition from './pct-Input-condition.mjs';
|
|
4
4
|
import PctDateRangeCondition from './pct-date-range-condition.mjs';
|
|
5
5
|
|
|
@@ -391,6 +391,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
391
391
|
};
|
|
392
392
|
}
|
|
393
393
|
});
|
|
394
|
-
var
|
|
394
|
+
var pctMultipleMenuCondition = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "pct-multiple-menu-condition.vue"]]);
|
|
395
395
|
|
|
396
|
-
export {
|
|
396
|
+
export { pctMultipleMenuCondition as default };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { defineComponent, useAttrs, computed, ref, inject, unref, openBlock, createElementBlock,
|
|
1
|
+
import { defineComponent, useAttrs, computed, ref, inject, unref, openBlock, createElementBlock, normalizeClass, toDisplayString, createCommentVNode, createVNode, withCtx, Fragment, renderList, createBlock, createElementVNode, normalizeStyle } from 'vue';
|
|
2
2
|
import { ElSelect, ElOption } from 'element-plus';
|
|
3
3
|
import { useService, HttpRequest, useNamespace, filterPanelItemKey } from '@ctzy-web-client/web-base-client-vue';
|
|
4
4
|
import { dataProps } from '../../hooks/use-data/index.mjs';
|
|
5
|
+
import { pinyin } from 'pinyin-pro';
|
|
6
|
+
import './pct-multiple-menu-condition2.vue_vue_type_style_index_0_scoped_0a08184f_lang.mjs';
|
|
5
7
|
import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
|
|
6
8
|
|
|
7
9
|
// Inject __name helper
|
|
@@ -13,53 +15,37 @@ if (typeof __name === 'undefined') {
|
|
|
13
15
|
});
|
|
14
16
|
}
|
|
15
17
|
}
|
|
18
|
+
const _hoisted_1 = { style: { "display": "flex", "align-items": "center" } };
|
|
19
|
+
const _hoisted_2 = { style: { "margin-left": "8px" } };
|
|
16
20
|
const __default__ = defineComponent({
|
|
17
21
|
name: "BwaPctMultipleMenuCondition",
|
|
18
|
-
__conditionTitle__: "\u591A\u9009\u83DC\u5355
|
|
22
|
+
__conditionTitle__: "\u591A\u9009\u83DC\u5355",
|
|
19
23
|
__conditionDefault__: () => []
|
|
20
24
|
});
|
|
21
25
|
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
22
26
|
props: {
|
|
23
27
|
...dataProps,
|
|
24
|
-
modelValue: {
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
default: false
|
|
42
|
-
},
|
|
43
|
-
filterable: {
|
|
44
|
-
type: Boolean,
|
|
45
|
-
default: true
|
|
46
|
-
},
|
|
47
|
-
placeholder: {
|
|
48
|
-
type: String,
|
|
49
|
-
default: "\u8BF7\u9009\u62E9"
|
|
50
|
-
},
|
|
51
|
-
remote: {
|
|
52
|
-
type: Boolean,
|
|
53
|
-
default: true
|
|
54
|
-
},
|
|
55
|
-
size: {
|
|
56
|
-
type: String,
|
|
57
|
-
default: "small"
|
|
58
|
-
}
|
|
28
|
+
modelValue: { type: null },
|
|
29
|
+
options: { type: Array, default: () => [] },
|
|
30
|
+
labelProp: { type: String, default: "label" },
|
|
31
|
+
valueProp: { type: String, default: "value" },
|
|
32
|
+
multiple: { type: Boolean, default: true },
|
|
33
|
+
showSearch: { type: Boolean, default: true },
|
|
34
|
+
filterable: { type: Boolean, default: true },
|
|
35
|
+
placeholder: { type: String, default: "\u8BF7\u9009\u62E9" },
|
|
36
|
+
remote: { type: Boolean, default: true },
|
|
37
|
+
showLetterAvatar: { type: Boolean, default: false },
|
|
38
|
+
size: { type: String, default: "" },
|
|
39
|
+
searchPlaceholder: { type: String, default: "" },
|
|
40
|
+
labelAttr: { type: String, default: "" },
|
|
41
|
+
valueAttr: { type: String, default: "" },
|
|
42
|
+
searchAttr: { type: String, default: "" },
|
|
43
|
+
itfInfo: { type: Object, default: null },
|
|
44
|
+
isRequiredByVisibleChange: { type: Boolean, default: false }
|
|
59
45
|
},
|
|
60
46
|
emits: ["update:modelValue", "search", "visible-change"],
|
|
61
47
|
setup(__props, { emit: __emit }) {
|
|
62
|
-
var _a
|
|
48
|
+
var _a;
|
|
63
49
|
const httpRequest = useService(HttpRequest);
|
|
64
50
|
;
|
|
65
51
|
const props = __props;
|
|
@@ -74,48 +60,103 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
74
60
|
var _a2;
|
|
75
61
|
return (_a2 = filterPanelItem == null ? void 0 : filterPanelItem.column) != null ? _a2 : null;
|
|
76
62
|
});
|
|
77
|
-
|
|
63
|
+
if (props.itfInfo && column.value) {
|
|
64
|
+
column.value.componentProps = {
|
|
65
|
+
itfInfo: props.itfInfo,
|
|
66
|
+
labelAttr: props.labelAttr,
|
|
67
|
+
valueAttr: props.valueAttr,
|
|
68
|
+
searchAttr: props.searchAttr,
|
|
69
|
+
showLetterAvatar: props.showLetterAvatar
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
const placeholderStr = computed(
|
|
73
|
+
() => {
|
|
74
|
+
var _a2;
|
|
75
|
+
return showTitle.value ? props.placeholder : (_a2 = column.value) == null ? void 0 : _a2.title;
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
const labelPropStr = computed(
|
|
79
|
+
() => {
|
|
80
|
+
var _a2, _b;
|
|
81
|
+
return ((_b = (_a2 = column.value) == null ? void 0 : _a2.componentProps) == null ? void 0 : _b.labelAttr) || props.labelProp;
|
|
82
|
+
}
|
|
83
|
+
);
|
|
84
|
+
const valuePropStr = computed(
|
|
85
|
+
() => {
|
|
86
|
+
var _a2, _b;
|
|
87
|
+
return ((_b = (_a2 = column.value) == null ? void 0 : _a2.componentProps) == null ? void 0 : _b.valueAttr) || props.valueProp;
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
const showLetterAvatarStatus = computed(
|
|
91
|
+
() => {
|
|
92
|
+
var _a2, _b;
|
|
93
|
+
return ((_b = (_a2 = column.value) == null ? void 0 : _a2.componentProps) == null ? void 0 : _b.showLetterAvatar) || props.showLetterAvatar;
|
|
94
|
+
}
|
|
95
|
+
);
|
|
96
|
+
const COLOR_POOL = ["#2DC86D", "#19BBFF", "#FFA901"];
|
|
97
|
+
function processLabel(label = "") {
|
|
98
|
+
const match = (label + "").match(/^(.*)\(/);
|
|
99
|
+
const txt = match ? match[1] : label;
|
|
100
|
+
const first = txt.charAt(0);
|
|
101
|
+
let letter = "#";
|
|
102
|
+
if (/[\u4e00-\u9fa5]/.test(first)) {
|
|
103
|
+
letter = pinyin(first, { pattern: "first" }).toUpperCase();
|
|
104
|
+
} else if (/[a-zA-Z]/.test(first)) {
|
|
105
|
+
letter = first.toUpperCase();
|
|
106
|
+
}
|
|
107
|
+
let color = COLOR_POOL[0];
|
|
108
|
+
if (/[A-Z]/.test(letter)) {
|
|
109
|
+
color = COLOR_POOL[(letter.charCodeAt(0) - 65) % 3];
|
|
110
|
+
}
|
|
111
|
+
return { firstLetter: letter, color };
|
|
112
|
+
}
|
|
78
113
|
const getData = async (query) => {
|
|
79
|
-
var _a2;
|
|
114
|
+
var _a2, _b, _c;
|
|
115
|
+
if (!((_a2 = column.value) == null ? void 0 : _a2.componentProps)) {
|
|
116
|
+
data.value = (_b = props.options) != null ? _b : [];
|
|
117
|
+
loading.value = false;
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
80
120
|
loading.value = true;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
121
|
+
try {
|
|
122
|
+
const { itfInfo, searchAttr } = column.value.componentProps;
|
|
123
|
+
const { url, method, options, params } = {
|
|
124
|
+
url: unref(itfInfo).url,
|
|
125
|
+
method: unref(itfInfo).method || "POST",
|
|
126
|
+
options: unref(itfInfo).options || {},
|
|
127
|
+
params: { ...unref(itfInfo).params, [searchAttr]: query || "" }
|
|
128
|
+
};
|
|
129
|
+
data.value = ((_c = await unref(httpRequest)[method.toLowerCase()](url, params, options)) == null ? void 0 : _c.data) || [];
|
|
130
|
+
} catch (err) {
|
|
131
|
+
data.value = [];
|
|
132
|
+
} finally {
|
|
133
|
+
loading.value = false;
|
|
134
|
+
}
|
|
90
135
|
};
|
|
91
|
-
|
|
92
|
-
} else {
|
|
93
|
-
data.value = (_b = props.options) != null ? _b : [];
|
|
94
|
-
}
|
|
136
|
+
data.value = (_a = props.options) != null ? _a : [];
|
|
95
137
|
const visibleChange = (val) => {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
138
|
+
var _a2;
|
|
139
|
+
emit("visible-change", val);
|
|
140
|
+
if (val && props.isRequiredByVisibleChange)
|
|
141
|
+
emit("search", "");
|
|
142
|
+
if (val && ((_a2 = column.value) == null ? void 0 : _a2.componentProps))
|
|
143
|
+
getData();
|
|
99
144
|
};
|
|
100
|
-
const
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
} else {
|
|
104
|
-
emit("search", query);
|
|
105
|
-
}
|
|
145
|
+
const handleFieldSearch = (query) => {
|
|
146
|
+
var _a2;
|
|
147
|
+
((_a2 = column.value) == null ? void 0 : _a2.componentProps) ? getData(query) : emit("search", query);
|
|
106
148
|
};
|
|
107
149
|
const modelValue = computed({
|
|
108
150
|
get: () => {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
} else {
|
|
112
|
-
return props.modelValue == null ? "" : props.modelValue + "";
|
|
113
|
-
}
|
|
151
|
+
var _a2;
|
|
152
|
+
return props.multiple ? Array.isArray(props.modelValue) ? props.modelValue : [] : (_a2 = props.modelValue) != null ? _a2 : "";
|
|
114
153
|
},
|
|
115
154
|
set: (v) => emit("update:modelValue", v)
|
|
116
155
|
});
|
|
117
156
|
return (_ctx, _cache) => {
|
|
118
|
-
return openBlock(), createElementBlock(
|
|
157
|
+
return openBlock(), createElementBlock("div", {
|
|
158
|
+
class: normalizeClass(unref(ns).e("conditbox"))
|
|
159
|
+
}, [
|
|
119
160
|
showTitle.value ? (openBlock(), createElementBlock("span", {
|
|
120
161
|
key: 0,
|
|
121
162
|
class: normalizeClass(unref(ns).e("title"))
|
|
@@ -130,7 +171,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
130
171
|
loading: loading.value,
|
|
131
172
|
onVisibleChange: visibleChange,
|
|
132
173
|
remote: __props.remote,
|
|
133
|
-
"remote-method":
|
|
174
|
+
"remote-method": handleFieldSearch,
|
|
134
175
|
size: __props.size,
|
|
135
176
|
class: normalizeClass(unref(ns).e("multiple")),
|
|
136
177
|
"collapse-tags": "",
|
|
@@ -138,20 +179,33 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
138
179
|
"no-data-text": "\u6682\u65E0\u6570\u636E"
|
|
139
180
|
}, {
|
|
140
181
|
default: withCtx(() => [
|
|
141
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(data.value, (item
|
|
182
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(data.value, (item) => {
|
|
142
183
|
return openBlock(), createBlock(unref(ElOption), {
|
|
143
|
-
key: item[
|
|
144
|
-
value: item[
|
|
145
|
-
label: item[
|
|
146
|
-
},
|
|
184
|
+
key: item[valuePropStr.value],
|
|
185
|
+
value: item[valuePropStr.value],
|
|
186
|
+
label: item[labelPropStr.value]
|
|
187
|
+
}, {
|
|
188
|
+
default: withCtx(() => [
|
|
189
|
+
createCommentVNode(" \u6587\u5B57\u5934\u50CF "),
|
|
190
|
+
createElementVNode("div", _hoisted_1, [
|
|
191
|
+
showLetterAvatarStatus.value ? (openBlock(), createElementBlock("div", {
|
|
192
|
+
key: 0,
|
|
193
|
+
class: "letter-circle",
|
|
194
|
+
style: normalizeStyle({ backgroundColor: processLabel(item[labelPropStr.value]).color })
|
|
195
|
+
}, toDisplayString(processLabel(item[labelPropStr.value]).firstLetter), 5)) : createCommentVNode("v-if", true),
|
|
196
|
+
createElementVNode("span", _hoisted_2, toDisplayString(item[labelPropStr.value]), 1)
|
|
197
|
+
])
|
|
198
|
+
]),
|
|
199
|
+
_: 2
|
|
200
|
+
}, 1032, ["value", "label"]);
|
|
147
201
|
}), 128))
|
|
148
202
|
]),
|
|
149
203
|
_: 1
|
|
150
204
|
}, 8, ["modelValue", "multiple", "filterable", "placeholder", "loading", "remote", "size", "class"])
|
|
151
|
-
],
|
|
205
|
+
], 2);
|
|
152
206
|
};
|
|
153
207
|
}
|
|
154
208
|
});
|
|
155
|
-
var
|
|
209
|
+
var PctMultipleMenuCondition = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0a08184f"], ["__file", "pct-multiple-menu-condition2.vue"]]);
|
|
156
210
|
|
|
157
|
-
export {
|
|
211
|
+
export { PctMultipleMenuCondition as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Inject __name helper
|
|
2
|
+
if (typeof __name === 'undefined') {
|
|
3
|
+
function __name(obj, name) {
|
|
4
|
+
Object.defineProperty(obj, "name", {
|
|
5
|
+
value: name,
|
|
6
|
+
configurable: true
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
var undefined$1 = undefined;
|
|
12
|
+
|
|
13
|
+
export { undefined$1 as default };
|
|
@@ -8,7 +8,7 @@ var webBaseClientVue = require('@ctzy-web-client/web-base-client-vue');
|
|
|
8
8
|
var eventsHelpers = require('./events-helpers.js');
|
|
9
9
|
var useAdvanceOption = require('./use-advance-option.js');
|
|
10
10
|
var pinyinPro = require('pinyin-pro');
|
|
11
|
-
require('./advance-option.
|
|
11
|
+
require('./advance-option.vue_vue_type_style_index_0_scoped_9ba46efc_lang.js');
|
|
12
12
|
var _pluginVue_exportHelper = require('../_virtual/_plugin-vue_export-helper.js');
|
|
13
13
|
|
|
14
14
|
// Inject __name helper
|
|
@@ -163,6 +163,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
163
163
|
}, 8, ["class"])) : vue.createCommentVNode("v-if", true)
|
|
164
164
|
], 2);
|
|
165
165
|
}
|
|
166
|
-
var BwaAdvanceOption = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
166
|
+
var BwaAdvanceOption = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-9ba46efc"], ["__file", "advance-option.vue"]]);
|
|
167
167
|
|
|
168
168
|
exports["default"] = BwaAdvanceOption;
|
|
@@ -84,6 +84,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
84
84
|
const dataTable = props.dataTable;
|
|
85
85
|
dataTable._userService = (_a = userService.value) == null ? void 0 : _a.getUserList;
|
|
86
86
|
const dataTableEl = vue.ref(null);
|
|
87
|
+
const realHeight = vue.computed(() => props.height);
|
|
87
88
|
const displayColumns = vue.computed(
|
|
88
89
|
() => vue.unref(dataTable).getDisplayColumns() || []
|
|
89
90
|
);
|
|
@@ -270,14 +271,14 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
270
271
|
ref_key: "dataTableEl",
|
|
271
272
|
ref: dataTableEl,
|
|
272
273
|
style: vue.normalizeStyle({
|
|
273
|
-
display:
|
|
274
|
-
flexDirection:
|
|
274
|
+
display: realHeight.value === "auto" ? "flex" : "block",
|
|
275
|
+
flexDirection: realHeight.value === "auto" ? "column" : "unset"
|
|
275
276
|
})
|
|
276
277
|
}, [
|
|
277
278
|
vue.renderSlot(_ctx.$slots, "default", { dataTable: vue.unref(dataTable) }, () => [
|
|
278
279
|
vue.createVNode(vue.unref(ElementPlus.ElTable), vue.mergeProps({
|
|
279
280
|
class: "content",
|
|
280
|
-
height:
|
|
281
|
+
height: realHeight.value,
|
|
281
282
|
ref_key: "elTable",
|
|
282
283
|
ref: elTable,
|
|
283
284
|
data: data.value,
|
package/lib/index.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.letter-circle[data-v-9ba46efc]{font-size:14px;height:24px;margin-right:8px;width:24px}.letter-circle[data-v-0a08184f],.letter-circle[data-v-9ba46efc]{align-items:center;border-radius:50%;color:#fff;display:flex;justify-content:center}.letter-circle[data-v-0a08184f]{flex-shrink:0;font-size:12px;height:22px;width:22px}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var install = require('element-plus/es/utils/vue/install');
|
|
6
|
-
var
|
|
6
|
+
var pctMultipleMenuCondition2 = require('./pct-multiple-menu-condition2.js');
|
|
7
7
|
var pctInputCondition = require('./pct-Input-condition.js');
|
|
8
8
|
var pctDateRangeCondition = require('./pct-date-range-condition.js');
|
|
9
9
|
|
|
@@ -17,7 +17,7 @@ if (typeof __name === 'undefined') {
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
const BwaPctInputCondition = install.withInstall(pctInputCondition["default"], {});
|
|
20
|
-
const BwaPctMultipleMenuCondition = install.withInstall(
|
|
20
|
+
const BwaPctMultipleMenuCondition = install.withInstall(pctMultipleMenuCondition2["default"], {});
|
|
21
21
|
const BwaPctDateRangeCondition = install.withInstall(pctDateRangeCondition["default"], {});
|
|
22
22
|
|
|
23
23
|
exports.BwaPctDateRangeCondition = BwaPctDateRangeCondition;
|
|
@@ -395,6 +395,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
395
395
|
};
|
|
396
396
|
}
|
|
397
397
|
});
|
|
398
|
-
var
|
|
398
|
+
var pctMultipleMenuCondition = /* @__PURE__ */ _pluginVue_exportHelper["default"](_sfc_main, [["__file", "pct-multiple-menu-condition.vue"]]);
|
|
399
399
|
|
|
400
|
-
exports["default"] =
|
|
400
|
+
exports["default"] = pctMultipleMenuCondition;
|