@gct-paas/v-ben 0.1.4-dev.11 → 0.1.4-dev.13
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/dist/index.min.css +2 -1
- package/dist/loader.esm.min.js +693 -0
- package/es/_virtual/_plugin-vue_export-helper.mjs +7 -8
- package/es/components/index.mjs +7 -0
- package/es/components/v-ben-button/index.mjs +7 -8
- package/es/components/v-ben-button/src/BasicButton.vue.mjs +5 -40
- package/es/components/v-ben-button/src/BasicButton.vue_vue_type_script_setup_true_lang.mjs +37 -0
- package/es/components/v-ben-button/src/PopConfirmButton.vue.mjs +5 -46
- package/es/components/v-ben-button/src/PopConfirmButton.vue_vue_type_script_lang.mjs +36 -0
- package/es/components/v-ben-button/src/custom-button.vue.mjs +7 -7
- package/es/components/v-ben-button/src/custom-button.vue_vue_type_script_setup_true_name_custom-button_lang.mjs +22 -0
- package/es/components/v-ben-button/src/props.mjs +27 -27
- package/es/components/v-ben-dropdown/index.mjs +4 -4
- package/es/components/v-ben-dropdown/src/Dropdown.vue.mjs +5 -113
- package/es/components/v-ben-dropdown/src/Dropdown.vue_vue_type_script_setup_true_lang.mjs +87 -0
- package/es/components/v-ben-table/index.mjs +3 -0
- package/es/components/v-ben-table/src/BasicTable.vue.d.ts +6 -6
- package/es/components/v-ben-table/src/BasicTable.vue.mjs +33 -49
- package/es/components/v-ben-table/src/BasicTable.vue_vue_type_script_lang.mjs +41 -0
- package/es/components/v-ben-table/src/components/HeaderCell.vue.mjs +8 -8
- package/es/components/v-ben-table/src/components/HeaderCell.vue_vue_type_script_lang.mjs +15 -0
- package/es/components/v-ben-table/src/components/TableAction.vue.mjs +6 -174
- package/es/components/v-ben-table/src/components/TableAction.vue_vue_type_script_setup_true_lang.mjs +145 -0
- package/es/components/v-ben-table/src/components/TableAction.vue_vue_type_style_index_0_lang.css +37 -0
- package/es/components/v-ben-table/src/components/TableActionAuto.vue.mjs +6 -181
- package/es/components/v-ben-table/src/components/TableActionAuto.vue_vue_type_script_setup_true_lang.mjs +159 -0
- package/es/components/v-ben-table/src/components/TableActionAuto.vue_vue_type_style_index_0_lang.css +37 -0
- package/es/components/v-ben-table/src/props.d.ts +2 -2
- package/es/components/v-ben-table/src/props.mjs +155 -134
- package/es/hooks/useDesign.mjs +8 -7
- package/es/index.mjs +12 -14
- package/es/loader.d.ts +1 -0
- package/es/utils/is.mjs +29 -35
- package/package.json +6 -6
- package/dist/index.esm.min.mjs +0 -796
- package/dist/index.min.cjs +0 -1
- package/dist/index.system.min.js +0 -1
- package/es/components/v-ben-button/src/BasicButton.vue2.mjs +0 -5
- package/es/components/v-ben-button/src/PopConfirmButton.vue2.mjs +0 -5
- package/es/components/v-ben-button/src/custom-button.vue3.mjs +0 -32
- package/es/components/v-ben-dropdown/src/Dropdown.vue2.mjs +0 -5
- package/es/components/v-ben-table/src/BasicTable.vue2.mjs +0 -48
- package/es/components/v-ben-table/src/components/HeaderCell.vue2.mjs +0 -20
- package/es/components/v-ben-table/src/components/TableAction.css +0 -37
- package/es/components/v-ben-table/src/components/TableAction.vue3.mjs +0 -6
- package/es/components/v-ben-table/src/components/TableActionAuto.css +0 -37
- package/es/components/v-ben-table/src/components/TableActionAuto.vue3.mjs +0 -6
- /package/es/components/v-ben-button/src/{custom-button.css → custom-button.vue_vue_type_style_index_0_scoped_305f4090_lang.css} +0 -0
|
@@ -1,181 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import { isFunction, isString } from '../../../../utils/is.mjs';
|
|
8
|
-
import './TableActionAuto.css';import './TableAction.css';/* empty css */
|
|
9
|
-
/* empty css */
|
|
10
|
-
import { PopConfirmButton } from '../../../v-ben-button/index.mjs';
|
|
11
|
-
import { Dropdown } from '../../../v-ben-dropdown/index.mjs';
|
|
12
|
-
|
|
13
|
-
const _hoisted_1 = {
|
|
14
|
-
key: 0,
|
|
15
|
-
class: "text-14px"
|
|
16
|
-
};
|
|
17
|
-
const _hoisted_2 = {
|
|
18
|
-
key: 0,
|
|
19
|
-
class: "text-14px"
|
|
20
|
-
};
|
|
21
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
22
|
-
__name: "TableActionAuto",
|
|
23
|
-
props: {
|
|
24
|
-
actions: {
|
|
25
|
-
type: Array,
|
|
26
|
-
default: null
|
|
27
|
-
},
|
|
28
|
-
divider: {
|
|
29
|
-
type: Boolean,
|
|
30
|
-
default: true
|
|
31
|
-
},
|
|
32
|
-
outside: Boolean,
|
|
33
|
-
stopButtonPropagation: {
|
|
34
|
-
type: Boolean,
|
|
35
|
-
default: false
|
|
36
|
-
},
|
|
37
|
-
maxDispalyCount: {
|
|
38
|
-
type: Number,
|
|
39
|
-
default: 4
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
setup(__props) {
|
|
43
|
-
const props = __props;
|
|
44
|
-
const { prefixCls } = useDesign("basic-table-action");
|
|
45
|
-
const hasPermission = permission.has;
|
|
46
|
-
function isIfShow(action) {
|
|
47
|
-
const ifShow = action.ifShow ?? true;
|
|
48
|
-
if (isFunction(ifShow)) {
|
|
49
|
-
return ifShow(action);
|
|
50
|
-
}
|
|
51
|
-
return !!ifShow;
|
|
52
|
-
}
|
|
53
|
-
const validActions = computed(() => {
|
|
54
|
-
return [...toRaw(props.actions) || []].filter((action) => {
|
|
55
|
-
return hasPermission(action.auth) && isIfShow(action);
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
const getActions = computed(() => {
|
|
59
|
-
let list = [];
|
|
60
|
-
if (props.maxDispalyCount >= validActions.value.length) {
|
|
61
|
-
list = [...validActions.value];
|
|
62
|
-
} else {
|
|
63
|
-
list = validActions.value.slice(0, props.maxDispalyCount);
|
|
64
|
-
}
|
|
65
|
-
return list.map((action) => {
|
|
66
|
-
const { popConfirm } = action;
|
|
67
|
-
return {
|
|
68
|
-
getPopupContainer: () => document.body,
|
|
69
|
-
type: "link",
|
|
70
|
-
size: "small",
|
|
71
|
-
...action,
|
|
72
|
-
...popConfirm || {},
|
|
73
|
-
onConfirm: popConfirm?.confirm,
|
|
74
|
-
onCancel: popConfirm?.cancel,
|
|
75
|
-
enable: !!popConfirm
|
|
76
|
-
};
|
|
77
|
-
});
|
|
78
|
-
});
|
|
79
|
-
const getDropdownList = computed(() => {
|
|
80
|
-
let list = [];
|
|
81
|
-
if (props.maxDispalyCount >= validActions.value.length) {
|
|
82
|
-
return [];
|
|
83
|
-
} else {
|
|
84
|
-
list = validActions.value.slice(props.maxDispalyCount);
|
|
85
|
-
}
|
|
86
|
-
return list.map((action, index) => {
|
|
87
|
-
const { label, popConfirm } = action;
|
|
88
|
-
return {
|
|
89
|
-
...action,
|
|
90
|
-
...popConfirm,
|
|
91
|
-
onConfirm: popConfirm?.confirm,
|
|
92
|
-
onCancel: popConfirm?.cancel,
|
|
93
|
-
text: label,
|
|
94
|
-
divider: index < list.length - 1 ? props.divider : false
|
|
95
|
-
};
|
|
96
|
-
});
|
|
97
|
-
});
|
|
98
|
-
const getAlign = computed(() => {
|
|
99
|
-
return "left";
|
|
100
|
-
});
|
|
101
|
-
function getTooltip(data) {
|
|
102
|
-
return {
|
|
103
|
-
getPopupContainer: () => document.body,
|
|
104
|
-
placement: "bottom",
|
|
105
|
-
...isString(data) ? { title: data } : data
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
function onCellClick(e) {
|
|
109
|
-
if (!props.stopButtonPropagation) return;
|
|
110
|
-
const path = e.composedPath();
|
|
111
|
-
const isInButton = path.find((ele) => {
|
|
112
|
-
return ele.tagName?.toUpperCase() === "BUTTON";
|
|
113
|
-
});
|
|
114
|
-
isInButton && e.stopPropagation();
|
|
115
|
-
}
|
|
116
|
-
return (_ctx, _cache) => {
|
|
117
|
-
const _component_a_button = resolveComponent("a-button");
|
|
118
|
-
return openBlock(), createElementBlock("div", {
|
|
119
|
-
class: normalizeClass([unref(prefixCls), getAlign.value]),
|
|
120
|
-
onClick: withModifiers(onCellClick, ["stop"])
|
|
121
|
-
}, [
|
|
122
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(getActions.value, (action, index) => {
|
|
123
|
-
return openBlock(), createElementBlock(Fragment, {
|
|
124
|
-
key: `${index}-${action.label}`
|
|
125
|
-
}, [
|
|
126
|
-
action.tooltip ? (openBlock(), createBlock(unref(Tooltip), mergeProps({
|
|
127
|
-
key: 0,
|
|
128
|
-
ref_for: true
|
|
129
|
-
}, getTooltip(action.tooltip)), {
|
|
130
|
-
default: withCtx(() => [
|
|
131
|
-
createVNode(unref(PopConfirmButton), mergeProps({ ref_for: true }, action), {
|
|
132
|
-
default: withCtx(() => [
|
|
133
|
-
action.label ? (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(action.label), 1)) : createCommentVNode("", true)
|
|
134
|
-
]),
|
|
135
|
-
_: 2
|
|
136
|
-
}, 1040)
|
|
137
|
-
]),
|
|
138
|
-
_: 2
|
|
139
|
-
}, 1040)) : (openBlock(), createBlock(unref(PopConfirmButton), mergeProps({
|
|
140
|
-
key: 1,
|
|
141
|
-
ref_for: true
|
|
142
|
-
}, action), {
|
|
143
|
-
default: withCtx(() => [
|
|
144
|
-
action.label ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(action.label), 1)) : createCommentVNode("", true)
|
|
145
|
-
]),
|
|
146
|
-
_: 2
|
|
147
|
-
}, 1040)),
|
|
148
|
-
__props.divider && index < getActions.value.length - 1 ? (openBlock(), createBlock(unref(Divider), {
|
|
149
|
-
key: 2,
|
|
150
|
-
type: "vertical",
|
|
151
|
-
class: "action-divider"
|
|
152
|
-
})) : createCommentVNode("", true)
|
|
153
|
-
], 64);
|
|
154
|
-
}), 128)),
|
|
155
|
-
getDropdownList.value.length > 0 ? (openBlock(), createBlock(unref(Dropdown), {
|
|
156
|
-
key: 0,
|
|
157
|
-
trigger: ["hover"],
|
|
158
|
-
"drop-menu-list": getDropdownList.value,
|
|
159
|
-
popconfirm: ""
|
|
160
|
-
}, {
|
|
161
|
-
default: withCtx(() => [
|
|
162
|
-
renderSlot(_ctx.$slots, "more"),
|
|
163
|
-
!_ctx.$slots.more ? (openBlock(), createBlock(_component_a_button, {
|
|
164
|
-
key: 0,
|
|
165
|
-
type: "link",
|
|
166
|
-
size: "small"
|
|
167
|
-
}, {
|
|
168
|
-
default: withCtx(() => [
|
|
169
|
-
createVNode(unref(MoreOutlined), { class: "icon-more" })
|
|
170
|
-
]),
|
|
171
|
-
_: 1
|
|
172
|
-
})) : createCommentVNode("", true)
|
|
173
|
-
]),
|
|
174
|
-
_: 3
|
|
175
|
-
}, 8, ["drop-menu-list"])) : createCommentVNode("", true)
|
|
176
|
-
], 2);
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
|
-
|
|
181
|
-
export { _sfc_main as default };
|
|
1
|
+
import TableActionAuto_vue_vue_type_script_setup_true_lang_default from "./TableActionAuto.vue_vue_type_script_setup_true_lang.mjs";
|
|
2
|
+
import './TableActionAuto.vue_vue_type_style_index_0_lang.css';/* empty css */
|
|
3
|
+
//#region src/components/v-ben-table/src/components/TableActionAuto.vue
|
|
4
|
+
var TableActionAuto_default = TableActionAuto_vue_vue_type_script_setup_true_lang_default;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { TableActionAuto_default as default };
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { isFunction, isString } from "../../../../utils/is.mjs";
|
|
2
|
+
import { useDesign } from "../../../../hooks/useDesign.mjs";
|
|
3
|
+
import { PopConfirmButton } from "../../../v-ben-button/index.mjs";
|
|
4
|
+
import { Dropdown as Dropdown$1 } from "../../../v-ben-dropdown/index.mjs";
|
|
5
|
+
import "../../../index.mjs";
|
|
6
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, renderList, renderSlot, resolveComponent, toDisplayString, toRaw, unref, withCtx, withModifiers } from "vue";
|
|
7
|
+
import { MoreOutlined } from "@ant-design/icons-vue";
|
|
8
|
+
import { Divider, Tooltip } from "ant-design-vue";
|
|
9
|
+
import { permission } from "@gct-paas/core";
|
|
10
|
+
//#region src/components/v-ben-table/src/components/TableActionAuto.vue?vue&type=script&setup=true&lang.ts
|
|
11
|
+
var _hoisted_1 = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "text-14px"
|
|
14
|
+
};
|
|
15
|
+
var _hoisted_2 = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "text-14px"
|
|
18
|
+
};
|
|
19
|
+
var TableActionAuto_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
20
|
+
__name: "TableActionAuto",
|
|
21
|
+
props: {
|
|
22
|
+
actions: {
|
|
23
|
+
type: Array,
|
|
24
|
+
default: null
|
|
25
|
+
},
|
|
26
|
+
divider: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: true
|
|
29
|
+
},
|
|
30
|
+
outside: Boolean,
|
|
31
|
+
stopButtonPropagation: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: false
|
|
34
|
+
},
|
|
35
|
+
maxDispalyCount: {
|
|
36
|
+
type: Number,
|
|
37
|
+
default: 4
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
setup(__props) {
|
|
41
|
+
const props = __props;
|
|
42
|
+
const { prefixCls } = useDesign("basic-table-action");
|
|
43
|
+
const hasPermission = permission.has;
|
|
44
|
+
function isIfShow(action) {
|
|
45
|
+
const ifShow = action.ifShow ?? true;
|
|
46
|
+
if (isFunction(ifShow)) return ifShow(action);
|
|
47
|
+
return !!ifShow;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* 所有可用按钮
|
|
51
|
+
*/
|
|
52
|
+
const validActions = computed(() => {
|
|
53
|
+
return [...toRaw(props.actions) || []].filter((action) => {
|
|
54
|
+
return hasPermission(action.auth) && isIfShow(action);
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
/**
|
|
58
|
+
* 展示的按钮
|
|
59
|
+
*/
|
|
60
|
+
const getActions = computed(() => {
|
|
61
|
+
let list = [];
|
|
62
|
+
if (props.maxDispalyCount >= validActions.value.length) list = [...validActions.value];
|
|
63
|
+
else list = validActions.value.slice(0, props.maxDispalyCount);
|
|
64
|
+
return list.map((action) => {
|
|
65
|
+
const { popConfirm } = action;
|
|
66
|
+
return {
|
|
67
|
+
getPopupContainer: () => document.body,
|
|
68
|
+
type: "link",
|
|
69
|
+
size: "small",
|
|
70
|
+
...action,
|
|
71
|
+
...popConfirm || {},
|
|
72
|
+
onConfirm: popConfirm?.confirm,
|
|
73
|
+
onCancel: popConfirm?.cancel,
|
|
74
|
+
enable: !!popConfirm
|
|
75
|
+
};
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
/**
|
|
79
|
+
* 隐藏的按钮
|
|
80
|
+
*/
|
|
81
|
+
const getDropdownList = computed(() => {
|
|
82
|
+
let list = [];
|
|
83
|
+
if (props.maxDispalyCount >= validActions.value.length) return [];
|
|
84
|
+
else list = validActions.value.slice(props.maxDispalyCount);
|
|
85
|
+
return list.map((action, index) => {
|
|
86
|
+
const { label, popConfirm } = action;
|
|
87
|
+
return {
|
|
88
|
+
...action,
|
|
89
|
+
...popConfirm,
|
|
90
|
+
onConfirm: popConfirm?.confirm,
|
|
91
|
+
onCancel: popConfirm?.cancel,
|
|
92
|
+
text: label,
|
|
93
|
+
divider: index < list.length - 1 ? props.divider : false
|
|
94
|
+
};
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
const getAlign = computed(() => {
|
|
98
|
+
return "left";
|
|
99
|
+
});
|
|
100
|
+
function getTooltip(data) {
|
|
101
|
+
return {
|
|
102
|
+
getPopupContainer: () => document.body,
|
|
103
|
+
placement: "bottom",
|
|
104
|
+
...isString(data) ? { title: data } : data
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
function onCellClick(e) {
|
|
108
|
+
if (!props.stopButtonPropagation) return;
|
|
109
|
+
e.composedPath().find((ele) => {
|
|
110
|
+
return ele.tagName?.toUpperCase() === "BUTTON";
|
|
111
|
+
}) && e.stopPropagation();
|
|
112
|
+
}
|
|
113
|
+
return (_ctx, _cache) => {
|
|
114
|
+
const _component_a_button = resolveComponent("a-button");
|
|
115
|
+
return openBlock(), createElementBlock("div", {
|
|
116
|
+
class: normalizeClass([unref(prefixCls), getAlign.value]),
|
|
117
|
+
onClick: withModifiers(onCellClick, ["stop"])
|
|
118
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(getActions.value, (action, index) => {
|
|
119
|
+
return openBlock(), createElementBlock(Fragment, { key: `${index}-${action.label}` }, [action.tooltip ? (openBlock(), createBlock(unref(Tooltip), mergeProps({
|
|
120
|
+
key: 0,
|
|
121
|
+
ref_for: true
|
|
122
|
+
}, getTooltip(action.tooltip)), {
|
|
123
|
+
default: withCtx(() => [createVNode(unref(PopConfirmButton), mergeProps({ ref_for: true }, action), {
|
|
124
|
+
default: withCtx(() => [action.label ? (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(action.label), 1)) : createCommentVNode("", true)]),
|
|
125
|
+
_: 2
|
|
126
|
+
}, 1040)]),
|
|
127
|
+
_: 2
|
|
128
|
+
}, 1040)) : (openBlock(), createBlock(unref(PopConfirmButton), mergeProps({
|
|
129
|
+
key: 1,
|
|
130
|
+
ref_for: true
|
|
131
|
+
}, action), {
|
|
132
|
+
default: withCtx(() => [action.label ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(action.label), 1)) : createCommentVNode("", true)]),
|
|
133
|
+
_: 2
|
|
134
|
+
}, 1040)), __props.divider && index < getActions.value.length - 1 ? (openBlock(), createBlock(unref(Divider), {
|
|
135
|
+
key: 2,
|
|
136
|
+
type: "vertical",
|
|
137
|
+
class: "action-divider"
|
|
138
|
+
})) : createCommentVNode("", true)], 64);
|
|
139
|
+
}), 128)), getDropdownList.value.length > 0 ? (openBlock(), createBlock(unref(Dropdown$1), {
|
|
140
|
+
key: 0,
|
|
141
|
+
trigger: ["hover"],
|
|
142
|
+
"drop-menu-list": getDropdownList.value,
|
|
143
|
+
popconfirm: ""
|
|
144
|
+
}, {
|
|
145
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "more"), !_ctx.$slots.more ? (openBlock(), createBlock(_component_a_button, {
|
|
146
|
+
key: 0,
|
|
147
|
+
type: "link",
|
|
148
|
+
size: "small"
|
|
149
|
+
}, {
|
|
150
|
+
default: withCtx(() => [createVNode(unref(MoreOutlined), { class: "icon-more" })]),
|
|
151
|
+
_: 1
|
|
152
|
+
})) : createCommentVNode("", true)]),
|
|
153
|
+
_: 3
|
|
154
|
+
}, 8, ["drop-menu-list"])) : createCommentVNode("", true)], 2);
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
//#endregion
|
|
159
|
+
export { TableActionAuto_vue_vue_type_script_setup_true_lang_default as default };
|
package/es/components/v-ben-table/src/components/TableActionAuto.vue_vue_type_style_index_0_lang.css
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
.vben-basic-table-action {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
}
|
|
5
|
+
.vben-basic-table-action .action-divider {
|
|
6
|
+
display: table;
|
|
7
|
+
}
|
|
8
|
+
.vben-basic-table-action.left {
|
|
9
|
+
justify-content: flex-start;
|
|
10
|
+
}
|
|
11
|
+
.vben-basic-table-action.center {
|
|
12
|
+
justify-content: center;
|
|
13
|
+
}
|
|
14
|
+
.vben-basic-table-action.right {
|
|
15
|
+
justify-content: flex-end;
|
|
16
|
+
}
|
|
17
|
+
.vben-basic-table-action button {
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
}
|
|
21
|
+
.vben-basic-table-action button span {
|
|
22
|
+
margin-left: 0 !important;
|
|
23
|
+
}
|
|
24
|
+
.vben-basic-table-action button.ant-btn-circle span {
|
|
25
|
+
margin: auto !important;
|
|
26
|
+
}
|
|
27
|
+
.vben-basic-table-action .ant-divider,
|
|
28
|
+
.vben-basic-table-action .ant-divider-vertical {
|
|
29
|
+
margin: 0 10px;
|
|
30
|
+
}
|
|
31
|
+
.vben-basic-table-action .icon-more {
|
|
32
|
+
transform: rotate(90deg);
|
|
33
|
+
}
|
|
34
|
+
.vben-basic-table-action .icon-more svg {
|
|
35
|
+
font-size: 1.1em;
|
|
36
|
+
font-weight: 700;
|
|
37
|
+
}
|
|
@@ -1,136 +1,157 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
1
|
+
//#region src/components/v-ben-table/src/props.ts
|
|
2
|
+
var basicProps = {
|
|
3
|
+
clickToRowSelect: {
|
|
4
|
+
type: Boolean,
|
|
5
|
+
default: true
|
|
6
|
+
},
|
|
7
|
+
isTreeTable: Boolean,
|
|
8
|
+
tableSetting: {
|
|
9
|
+
type: Object,
|
|
10
|
+
default: {}
|
|
11
|
+
},
|
|
12
|
+
inset: Boolean,
|
|
13
|
+
showTableSetting: Boolean,
|
|
14
|
+
autoCreateKey: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: true
|
|
17
|
+
},
|
|
18
|
+
striped: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: true
|
|
21
|
+
},
|
|
22
|
+
showSummary: Boolean,
|
|
23
|
+
summaryFunc: {
|
|
24
|
+
type: [Function, Array],
|
|
25
|
+
default: null
|
|
26
|
+
},
|
|
27
|
+
summaryData: {
|
|
28
|
+
type: Array,
|
|
29
|
+
default: null
|
|
30
|
+
},
|
|
31
|
+
indentSize: {
|
|
32
|
+
type: Number,
|
|
33
|
+
default: 24
|
|
34
|
+
},
|
|
35
|
+
canColDrag: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: true
|
|
38
|
+
},
|
|
39
|
+
api: {
|
|
40
|
+
type: Function,
|
|
41
|
+
default: null
|
|
42
|
+
},
|
|
43
|
+
beforeFetch: {
|
|
44
|
+
type: Function,
|
|
45
|
+
default: null
|
|
46
|
+
},
|
|
47
|
+
afterFetch: {
|
|
48
|
+
type: Function,
|
|
49
|
+
default: null
|
|
50
|
+
},
|
|
51
|
+
handleSearchInfoFn: {
|
|
52
|
+
type: Function,
|
|
53
|
+
default: null
|
|
54
|
+
},
|
|
55
|
+
immediate: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
default: true
|
|
58
|
+
},
|
|
59
|
+
emptyDataIsShowTable: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: true
|
|
62
|
+
},
|
|
63
|
+
searchInfo: {
|
|
64
|
+
type: Object,
|
|
65
|
+
default: null
|
|
66
|
+
},
|
|
67
|
+
defSort: {
|
|
68
|
+
type: Object,
|
|
69
|
+
default: null
|
|
70
|
+
},
|
|
71
|
+
useSearchForm: Boolean,
|
|
72
|
+
columns: {
|
|
73
|
+
type: Array,
|
|
74
|
+
default: () => []
|
|
75
|
+
},
|
|
76
|
+
showIndexColumn: {
|
|
77
|
+
type: Boolean,
|
|
78
|
+
default: true
|
|
79
|
+
},
|
|
80
|
+
indexColumnProps: {
|
|
81
|
+
type: Object,
|
|
82
|
+
default: null
|
|
83
|
+
},
|
|
84
|
+
actionColumn: {
|
|
85
|
+
type: Object,
|
|
86
|
+
default: null
|
|
87
|
+
},
|
|
88
|
+
ellipsis: {
|
|
89
|
+
type: Boolean,
|
|
90
|
+
default: true
|
|
91
|
+
},
|
|
92
|
+
isCanResizeParent: {
|
|
93
|
+
type: Boolean,
|
|
94
|
+
default: false
|
|
95
|
+
},
|
|
96
|
+
canResize: {
|
|
97
|
+
type: Boolean,
|
|
98
|
+
default: true
|
|
99
|
+
},
|
|
100
|
+
clearSelectOnPageChange: Boolean,
|
|
101
|
+
resizeHeightOffset: {
|
|
102
|
+
type: Number,
|
|
103
|
+
default: 0
|
|
104
|
+
},
|
|
105
|
+
rowSelection: {
|
|
106
|
+
type: Object,
|
|
107
|
+
default: null
|
|
108
|
+
},
|
|
109
|
+
title: {
|
|
110
|
+
type: [String, Function],
|
|
111
|
+
default: null
|
|
112
|
+
},
|
|
113
|
+
titleHelpMessage: { type: [String, Array] },
|
|
114
|
+
maxHeight: Number,
|
|
115
|
+
dataSource: {
|
|
116
|
+
type: Array,
|
|
117
|
+
default: null
|
|
118
|
+
},
|
|
119
|
+
rowKey: {
|
|
120
|
+
type: [String, Function],
|
|
121
|
+
default: ""
|
|
122
|
+
},
|
|
123
|
+
bordered: Boolean,
|
|
124
|
+
pagination: {
|
|
125
|
+
type: [Object, Boolean],
|
|
126
|
+
default: null
|
|
127
|
+
},
|
|
128
|
+
loading: Boolean,
|
|
129
|
+
rowClassName: { type: Function },
|
|
130
|
+
scroll: {
|
|
131
|
+
type: Object,
|
|
132
|
+
default: null
|
|
133
|
+
},
|
|
134
|
+
beforeEditSubmit: { type: Function },
|
|
135
|
+
rowDraggable: {
|
|
136
|
+
type: Boolean,
|
|
137
|
+
default: false
|
|
138
|
+
},
|
|
139
|
+
supportSameLevel: {
|
|
140
|
+
type: Boolean,
|
|
141
|
+
default: false
|
|
142
|
+
},
|
|
143
|
+
rowDragApi: {
|
|
144
|
+
type: Function,
|
|
145
|
+
default: null
|
|
146
|
+
},
|
|
147
|
+
expandedRowKeys: {
|
|
148
|
+
type: Array,
|
|
149
|
+
default: () => []
|
|
150
|
+
},
|
|
151
|
+
emptyFull: {
|
|
152
|
+
type: Boolean,
|
|
153
|
+
default: false
|
|
154
|
+
}
|
|
134
155
|
};
|
|
135
|
-
|
|
156
|
+
//#endregion
|
|
136
157
|
export { basicProps };
|