@funcho/ui 1.1.5 → 1.1.6
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/cjs/business/DataTable/DataTable.vue.js +58 -37
- package/dist/cjs/components/VNodeRenderer/index.vue.js +29 -0
- package/dist/cjs/components/VNodeRenderer/index.vue2.js +9 -0
- package/dist/cjs/packages/ui/package.json.js +1 -1
- package/dist/esm/business/DataTable/DataTable.vue.mjs +59 -38
- package/dist/esm/components/VNodeRenderer/index.vue.mjs +25 -0
- package/dist/esm/components/VNodeRenderer/index.vue2.mjs +5 -0
- package/dist/esm/packages/ui/package.json.mjs +1 -1
- package/dist/types/business/DataTable/DataTable.vue.d.ts +17 -28
- package/dist/types/business/DataTable/index.d.ts +102 -30
- package/dist/types/components/VNodeRenderer/index.vue.d.ts +12 -0
- package/package.json +1 -1
|
@@ -82,6 +82,7 @@ require('../../components/RichEditor/index.js');
|
|
|
82
82
|
const ProForm_vue_vue_type_script_setup_true_lang = require('../ProForm/ProForm.vue.js');
|
|
83
83
|
;/* empty css */
|
|
84
84
|
const core = require('@vueuse/core');
|
|
85
|
+
const index_vue_vue_type_script_lang = require('../../components/VNodeRenderer/index.vue.js');
|
|
85
86
|
|
|
86
87
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
87
88
|
...{
|
|
@@ -109,6 +110,57 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
109
110
|
});
|
|
110
111
|
const isExpanded = vue.ref(false);
|
|
111
112
|
const props = __props;
|
|
113
|
+
const renderActions = (actions, row, index$1) => {
|
|
114
|
+
return vue.h(
|
|
115
|
+
"div",
|
|
116
|
+
{
|
|
117
|
+
class: ns.e("actions")
|
|
118
|
+
},
|
|
119
|
+
[
|
|
120
|
+
actions.filter((action) => {
|
|
121
|
+
return typeof action.hidden === "function" ? !action.hidden(row) : !action.hidden;
|
|
122
|
+
}).map((action) => {
|
|
123
|
+
const vnode = vue.h(
|
|
124
|
+
action.label.includes("删除") ? index.FcDangerButton : index.FcLinkButton,
|
|
125
|
+
{
|
|
126
|
+
type: action.type || "primary",
|
|
127
|
+
disabled: typeof action.disabled === "function" ? action.disabled(row) : action.disabled,
|
|
128
|
+
onClick: action.label.includes("删除") ? void 0 : () => action.onClick(row, index$1),
|
|
129
|
+
onConfirm: action.label.includes("删除") ? () => action.onClick(row, index$1) : void 0
|
|
130
|
+
},
|
|
131
|
+
{ default: () => action.label }
|
|
132
|
+
);
|
|
133
|
+
const dirs = (action.directives || []).map((dir) => {
|
|
134
|
+
const directiveInstance = vue.resolveDirective(dir.name);
|
|
135
|
+
if (!directiveInstance) return null;
|
|
136
|
+
return [directiveInstance, dir.value, dir.arg, dir.modifiers];
|
|
137
|
+
}).filter(Boolean);
|
|
138
|
+
return dirs.length > 0 ? vue.withDirectives(vnode, dirs) : vnode;
|
|
139
|
+
})
|
|
140
|
+
]
|
|
141
|
+
);
|
|
142
|
+
};
|
|
143
|
+
const renderTools = (tools) => {
|
|
144
|
+
return tools.filter((tool) => {
|
|
145
|
+
return typeof tool.hidden === "function" ? !tool.hidden() : !tool.hidden;
|
|
146
|
+
}).map((tool) => {
|
|
147
|
+
const vnode = vue.h(
|
|
148
|
+
index.FcButton,
|
|
149
|
+
{
|
|
150
|
+
type: tool.type || "primary",
|
|
151
|
+
disabled: typeof tool.disabled === "function" ? tool.disabled() : tool.disabled,
|
|
152
|
+
onClick: () => tool.onClick(null, 0)
|
|
153
|
+
},
|
|
154
|
+
{ default: () => tool.label }
|
|
155
|
+
);
|
|
156
|
+
const dirs = (tool.directives || []).map((dir) => {
|
|
157
|
+
const directiveInstance = vue.resolveDirective(dir.name);
|
|
158
|
+
if (!directiveInstance) return null;
|
|
159
|
+
return [directiveInstance, dir.value, dir.arg, dir.modifiers];
|
|
160
|
+
}).filter(Boolean);
|
|
161
|
+
return dirs.length > 0 ? vue.withDirectives(vnode, dirs) : vnode;
|
|
162
|
+
});
|
|
163
|
+
};
|
|
112
164
|
const queryBoxRef = vue.ref(null);
|
|
113
165
|
const { height: queryBoxHeight } = core.useElementSize(queryBoxRef, void 0, {
|
|
114
166
|
box: "border-box"
|
|
@@ -253,22 +305,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
253
305
|
])]),
|
|
254
306
|
_: 1
|
|
255
307
|
}, 8, ["disabled"]),
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
key: 0,
|
|
260
|
-
type: tool.type || "primary"
|
|
261
|
-
}, { ref_for: true }, tool, {
|
|
262
|
-
disabled: typeof tool.disabled === "function" ? tool.disabled() : tool.disabled,
|
|
263
|
-
onClick: tool.onClick
|
|
264
|
-
}), {
|
|
265
|
-
default: vue.withCtx(() => [
|
|
266
|
-
vue.createTextVNode(vue.toDisplayString(tool.label), 1)
|
|
267
|
-
]),
|
|
268
|
-
_: 2
|
|
269
|
-
}, 1040, ["type", "disabled", "onClick"])) : vue.createCommentVNode("", true)
|
|
270
|
-
], 64);
|
|
271
|
-
}), 128))
|
|
308
|
+
vue.createVNode(index_vue_vue_type_script_lang.default, {
|
|
309
|
+
content: () => renderTools(__props.tools)
|
|
310
|
+
}, null, 8, ["content"])
|
|
272
311
|
], 2)
|
|
273
312
|
], 6)) : vue.createCommentVNode("", true),
|
|
274
313
|
vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(index$2.FcTable), vue.mergeProps(_ctx.$attrs, {
|
|
@@ -310,27 +349,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
310
349
|
width: __props.actionsWidth || void 0
|
|
311
350
|
}, {
|
|
312
351
|
default: vue.withCtx(({ row, $index }) => [
|
|
313
|
-
vue.
|
|
314
|
-
|
|
315
|
-
}, [
|
|
316
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(props.actions, (action, i) => {
|
|
317
|
-
return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: i }, [
|
|
318
|
-
(typeof action.hidden === "function" ? !action.hidden(row) : !action.hidden) ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(action.label.includes("删除") ? vue.unref(index.FcDangerButton) : vue.unref(index.FcLinkButton)), vue.mergeProps({
|
|
319
|
-
key: 0,
|
|
320
|
-
type: action.type || "primary",
|
|
321
|
-
disabled: typeof action.disabled === "function" ? action.disabled(row) : action.disabled
|
|
322
|
-
}, { ref_for: true }, action, {
|
|
323
|
-
onClick: ($event) => action.label.includes("删除") ? void 0 : action.onClick(row, $index),
|
|
324
|
-
onConfirm: ($event) => action.label.includes("删除") ? action.onClick(row, $index) : void 0
|
|
325
|
-
}), {
|
|
326
|
-
default: vue.withCtx(() => [
|
|
327
|
-
vue.createTextVNode(vue.toDisplayString(action.label), 1)
|
|
328
|
-
]),
|
|
329
|
-
_: 2
|
|
330
|
-
}, 1040, ["type", "disabled", "onClick", "onConfirm"])) : vue.createCommentVNode("", true)
|
|
331
|
-
], 64);
|
|
332
|
-
}), 128))
|
|
333
|
-
], 2)
|
|
352
|
+
vue.createVNode(index_vue_vue_type_script_lang.default, {
|
|
353
|
+
content: () => renderActions(props.actions, row, $index)
|
|
354
|
+
}, null, 8, ["content"])
|
|
334
355
|
]),
|
|
335
356
|
_: 1
|
|
336
357
|
}, 8, ["width"])) : vue.createCommentVNode("", true)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
|
+
|
|
5
|
+
const vue = require('vue');
|
|
6
|
+
|
|
7
|
+
const _sfc_main = vue.defineComponent({
|
|
8
|
+
name: "VNodeRenderer",
|
|
9
|
+
props: {
|
|
10
|
+
content: {
|
|
11
|
+
type: [Object, Array, Function, String, Number],
|
|
12
|
+
required: true
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
setup(props) {
|
|
16
|
+
return () => {
|
|
17
|
+
const { content } = props;
|
|
18
|
+
if (typeof content === "function") {
|
|
19
|
+
return content();
|
|
20
|
+
}
|
|
21
|
+
if (content === null || content === void 0) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
return content;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
exports.default = _sfc_main;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, onMounted, resolveDirective, createElementBlock, openBlock, normalizeClass, unref, createCommentVNode, withDirectives, normalizeStyle, createVNode, createElementVNode, createBlock, withCtx, createTextVNode, toDisplayString, Fragment, renderList,
|
|
1
|
+
import { defineComponent, ref, computed, onMounted, resolveDirective, createElementBlock, openBlock, normalizeClass, unref, createCommentVNode, withDirectives, normalizeStyle, createVNode, createElementVNode, createBlock, withCtx, createTextVNode, toDisplayString, mergeProps, Fragment, renderList, createSlots, resolveDynamicComponent, h } from 'vue';
|
|
2
2
|
import { useNamespace } from '../../hooks/use-namespace.mjs';
|
|
3
3
|
import { FcButton, FcDangerButton, FcLinkButton } from '../../components/Button/index.mjs';
|
|
4
4
|
import '../../components/Dialog/index.mjs';
|
|
@@ -78,6 +78,7 @@ import '../../components/RichEditor/index.mjs';
|
|
|
78
78
|
import _sfc_main$1 from '../ProForm/ProForm.vue.mjs';
|
|
79
79
|
/* empty css */
|
|
80
80
|
import { useElementSize } from '@vueuse/core';
|
|
81
|
+
import _sfc_main$2 from '../../components/VNodeRenderer/index.vue.mjs';
|
|
81
82
|
|
|
82
83
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
83
84
|
...{
|
|
@@ -105,6 +106,57 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
105
106
|
});
|
|
106
107
|
const isExpanded = ref(false);
|
|
107
108
|
const props = __props;
|
|
109
|
+
const renderActions = (actions, row, index) => {
|
|
110
|
+
return h(
|
|
111
|
+
"div",
|
|
112
|
+
{
|
|
113
|
+
class: ns.e("actions")
|
|
114
|
+
},
|
|
115
|
+
[
|
|
116
|
+
actions.filter((action) => {
|
|
117
|
+
return typeof action.hidden === "function" ? !action.hidden(row) : !action.hidden;
|
|
118
|
+
}).map((action) => {
|
|
119
|
+
const vnode = h(
|
|
120
|
+
action.label.includes("删除") ? FcDangerButton : FcLinkButton,
|
|
121
|
+
{
|
|
122
|
+
type: action.type || "primary",
|
|
123
|
+
disabled: typeof action.disabled === "function" ? action.disabled(row) : action.disabled,
|
|
124
|
+
onClick: action.label.includes("删除") ? void 0 : () => action.onClick(row, index),
|
|
125
|
+
onConfirm: action.label.includes("删除") ? () => action.onClick(row, index) : void 0
|
|
126
|
+
},
|
|
127
|
+
{ default: () => action.label }
|
|
128
|
+
);
|
|
129
|
+
const dirs = (action.directives || []).map((dir) => {
|
|
130
|
+
const directiveInstance = resolveDirective(dir.name);
|
|
131
|
+
if (!directiveInstance) return null;
|
|
132
|
+
return [directiveInstance, dir.value, dir.arg, dir.modifiers];
|
|
133
|
+
}).filter(Boolean);
|
|
134
|
+
return dirs.length > 0 ? withDirectives(vnode, dirs) : vnode;
|
|
135
|
+
})
|
|
136
|
+
]
|
|
137
|
+
);
|
|
138
|
+
};
|
|
139
|
+
const renderTools = (tools) => {
|
|
140
|
+
return tools.filter((tool) => {
|
|
141
|
+
return typeof tool.hidden === "function" ? !tool.hidden() : !tool.hidden;
|
|
142
|
+
}).map((tool) => {
|
|
143
|
+
const vnode = h(
|
|
144
|
+
FcButton,
|
|
145
|
+
{
|
|
146
|
+
type: tool.type || "primary",
|
|
147
|
+
disabled: typeof tool.disabled === "function" ? tool.disabled() : tool.disabled,
|
|
148
|
+
onClick: () => tool.onClick(null, 0)
|
|
149
|
+
},
|
|
150
|
+
{ default: () => tool.label }
|
|
151
|
+
);
|
|
152
|
+
const dirs = (tool.directives || []).map((dir) => {
|
|
153
|
+
const directiveInstance = resolveDirective(dir.name);
|
|
154
|
+
if (!directiveInstance) return null;
|
|
155
|
+
return [directiveInstance, dir.value, dir.arg, dir.modifiers];
|
|
156
|
+
}).filter(Boolean);
|
|
157
|
+
return dirs.length > 0 ? withDirectives(vnode, dirs) : vnode;
|
|
158
|
+
});
|
|
159
|
+
};
|
|
108
160
|
const queryBoxRef = ref(null);
|
|
109
161
|
const { height: queryBoxHeight } = useElementSize(queryBoxRef, void 0, {
|
|
110
162
|
box: "border-box"
|
|
@@ -249,22 +301,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
249
301
|
])]),
|
|
250
302
|
_: 1
|
|
251
303
|
}, 8, ["disabled"]),
|
|
252
|
-
(
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
key: 0,
|
|
256
|
-
type: tool.type || "primary"
|
|
257
|
-
}, { ref_for: true }, tool, {
|
|
258
|
-
disabled: typeof tool.disabled === "function" ? tool.disabled() : tool.disabled,
|
|
259
|
-
onClick: tool.onClick
|
|
260
|
-
}), {
|
|
261
|
-
default: withCtx(() => [
|
|
262
|
-
createTextVNode(toDisplayString(tool.label), 1)
|
|
263
|
-
]),
|
|
264
|
-
_: 2
|
|
265
|
-
}, 1040, ["type", "disabled", "onClick"])) : createCommentVNode("", true)
|
|
266
|
-
], 64);
|
|
267
|
-
}), 128))
|
|
304
|
+
createVNode(_sfc_main$2, {
|
|
305
|
+
content: () => renderTools(__props.tools)
|
|
306
|
+
}, null, 8, ["content"])
|
|
268
307
|
], 2)
|
|
269
308
|
], 6)) : createCommentVNode("", true),
|
|
270
309
|
withDirectives((openBlock(), createBlock(unref(FcTable), mergeProps(_ctx.$attrs, {
|
|
@@ -306,27 +345,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
306
345
|
width: __props.actionsWidth || void 0
|
|
307
346
|
}, {
|
|
308
347
|
default: withCtx(({ row, $index }) => [
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
}, [
|
|
312
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(props.actions, (action, i) => {
|
|
313
|
-
return openBlock(), createElementBlock(Fragment, { key: i }, [
|
|
314
|
-
(typeof action.hidden === "function" ? !action.hidden(row) : !action.hidden) ? (openBlock(), createBlock(resolveDynamicComponent(action.label.includes("删除") ? unref(FcDangerButton) : unref(FcLinkButton)), mergeProps({
|
|
315
|
-
key: 0,
|
|
316
|
-
type: action.type || "primary",
|
|
317
|
-
disabled: typeof action.disabled === "function" ? action.disabled(row) : action.disabled
|
|
318
|
-
}, { ref_for: true }, action, {
|
|
319
|
-
onClick: ($event) => action.label.includes("删除") ? void 0 : action.onClick(row, $index),
|
|
320
|
-
onConfirm: ($event) => action.label.includes("删除") ? action.onClick(row, $index) : void 0
|
|
321
|
-
}), {
|
|
322
|
-
default: withCtx(() => [
|
|
323
|
-
createTextVNode(toDisplayString(action.label), 1)
|
|
324
|
-
]),
|
|
325
|
-
_: 2
|
|
326
|
-
}, 1040, ["type", "disabled", "onClick", "onConfirm"])) : createCommentVNode("", true)
|
|
327
|
-
], 64);
|
|
328
|
-
}), 128))
|
|
329
|
-
], 2)
|
|
348
|
+
createVNode(_sfc_main$2, {
|
|
349
|
+
content: () => renderActions(props.actions, row, $index)
|
|
350
|
+
}, null, 8, ["content"])
|
|
330
351
|
]),
|
|
331
352
|
_: 1
|
|
332
353
|
}, 8, ["width"])) : createCommentVNode("", true)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { defineComponent } from 'vue';
|
|
2
|
+
|
|
3
|
+
const _sfc_main = defineComponent({
|
|
4
|
+
name: "VNodeRenderer",
|
|
5
|
+
props: {
|
|
6
|
+
content: {
|
|
7
|
+
type: [Object, Array, Function, String, Number],
|
|
8
|
+
required: true
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
setup(props) {
|
|
12
|
+
return () => {
|
|
13
|
+
const { content } = props;
|
|
14
|
+
if (typeof content === "function") {
|
|
15
|
+
return content();
|
|
16
|
+
}
|
|
17
|
+
if (content === null || content === void 0) {
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
return content;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export { _sfc_main as default };
|
|
@@ -2,6 +2,19 @@ import { VNode } from 'vue';
|
|
|
2
2
|
import { RequestResult } from './DataTable.types';
|
|
3
3
|
import { TProFormField } from '../ProForm/ProForm.types';
|
|
4
4
|
type ButtonType = 'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info' | '';
|
|
5
|
+
type ButtonProps = {
|
|
6
|
+
label: string;
|
|
7
|
+
type?: ButtonType;
|
|
8
|
+
disabled?: boolean | ((row?: any) => boolean);
|
|
9
|
+
hidden?: boolean | ((row?: any) => boolean);
|
|
10
|
+
onClick: (row: any, index: number) => void;
|
|
11
|
+
directives?: Array<{
|
|
12
|
+
name: string;
|
|
13
|
+
value?: any;
|
|
14
|
+
arg?: any;
|
|
15
|
+
modifiers?: any;
|
|
16
|
+
}>;
|
|
17
|
+
};
|
|
5
18
|
type __VLS_Props = {
|
|
6
19
|
hasIndex?: boolean;
|
|
7
20
|
height?: number;
|
|
@@ -14,21 +27,9 @@ type __VLS_Props = {
|
|
|
14
27
|
isPagination?: boolean;
|
|
15
28
|
fields?: Array<TProFormField>;
|
|
16
29
|
request?: (params: any) => Promise<RequestResult<any>>;
|
|
17
|
-
actions?: Array<
|
|
18
|
-
label: string;
|
|
19
|
-
type?: ButtonType;
|
|
20
|
-
disabled?: boolean | ((row: any) => boolean);
|
|
21
|
-
hidden?: boolean | ((row: any) => boolean);
|
|
22
|
-
onClick: (row: any, index: number) => void;
|
|
23
|
-
}>;
|
|
30
|
+
actions?: Array<ButtonProps>;
|
|
24
31
|
actionsWidth?: number;
|
|
25
|
-
tools?: Array<
|
|
26
|
-
label: string;
|
|
27
|
-
type?: ButtonType;
|
|
28
|
-
onClick: () => void;
|
|
29
|
-
disabled?: boolean | (() => boolean);
|
|
30
|
-
hidden?: boolean | (() => boolean);
|
|
31
|
-
}>;
|
|
32
|
+
tools?: Array<ButtonProps>;
|
|
32
33
|
};
|
|
33
34
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
34
35
|
loadData: () => Promise<void>;
|
|
@@ -36,13 +37,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
36
37
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
37
38
|
height: number;
|
|
38
39
|
fields: Array<TProFormField>;
|
|
39
|
-
tools: Array<
|
|
40
|
-
label: string;
|
|
41
|
-
type?: ButtonType;
|
|
42
|
-
onClick: () => void;
|
|
43
|
-
disabled?: boolean | (() => boolean);
|
|
44
|
-
hidden?: boolean | (() => boolean);
|
|
45
|
-
}>;
|
|
40
|
+
tools: Array<ButtonProps>;
|
|
46
41
|
columns: Array<{
|
|
47
42
|
prop: string;
|
|
48
43
|
label: string;
|
|
@@ -52,13 +47,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
52
47
|
hasIndex: boolean;
|
|
53
48
|
isPagination: boolean;
|
|
54
49
|
request: (params: any) => Promise<RequestResult<any>>;
|
|
55
|
-
actions: Array<
|
|
56
|
-
label: string;
|
|
57
|
-
type?: ButtonType;
|
|
58
|
-
disabled?: boolean | ((row: any) => boolean);
|
|
59
|
-
hidden?: boolean | ((row: any) => boolean);
|
|
60
|
-
onClick: (row: any, index: number) => void;
|
|
61
|
-
}>;
|
|
50
|
+
actions: Array<ButtonProps>;
|
|
62
51
|
actionsWidth: number;
|
|
63
52
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
64
53
|
containerRef: HTMLDivElement;
|
|
@@ -14,17 +14,29 @@ export declare const FcProDataTable: {
|
|
|
14
14
|
actions?: Array<{
|
|
15
15
|
label: string;
|
|
16
16
|
type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger";
|
|
17
|
-
disabled?: boolean | ((row
|
|
18
|
-
hidden?: boolean | ((row
|
|
17
|
+
disabled?: boolean | ((row?: any) => boolean);
|
|
18
|
+
hidden?: boolean | ((row?: any) => boolean);
|
|
19
19
|
onClick: (row: any, index: number) => void;
|
|
20
|
+
directives?: Array<{
|
|
21
|
+
name: string;
|
|
22
|
+
value?: any;
|
|
23
|
+
arg?: any;
|
|
24
|
+
modifiers?: any;
|
|
25
|
+
}>;
|
|
20
26
|
}>;
|
|
21
27
|
actionsWidth?: number;
|
|
22
28
|
tools?: Array<{
|
|
23
29
|
label: string;
|
|
24
30
|
type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger";
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
31
|
+
disabled?: boolean | ((row?: any) => boolean);
|
|
32
|
+
hidden?: boolean | ((row?: any) => boolean);
|
|
33
|
+
onClick: (row: any, index: number) => void;
|
|
34
|
+
directives?: Array<{
|
|
35
|
+
name: string;
|
|
36
|
+
value?: any;
|
|
37
|
+
arg?: any;
|
|
38
|
+
modifiers?: any;
|
|
39
|
+
}>;
|
|
28
40
|
}>;
|
|
29
41
|
}> & Readonly<{}>, {
|
|
30
42
|
loadData: () => Promise<void>;
|
|
@@ -35,9 +47,15 @@ export declare const FcProDataTable: {
|
|
|
35
47
|
tools: Array<{
|
|
36
48
|
label: string;
|
|
37
49
|
type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger";
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
50
|
+
disabled?: boolean | ((row?: any) => boolean);
|
|
51
|
+
hidden?: boolean | ((row?: any) => boolean);
|
|
52
|
+
onClick: (row: any, index: number) => void;
|
|
53
|
+
directives?: Array<{
|
|
54
|
+
name: string;
|
|
55
|
+
value?: any;
|
|
56
|
+
arg?: any;
|
|
57
|
+
modifiers?: any;
|
|
58
|
+
}>;
|
|
41
59
|
}>;
|
|
42
60
|
columns: Array<{
|
|
43
61
|
prop: string;
|
|
@@ -51,9 +69,15 @@ export declare const FcProDataTable: {
|
|
|
51
69
|
actions: Array<{
|
|
52
70
|
label: string;
|
|
53
71
|
type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger";
|
|
54
|
-
disabled?: boolean | ((row
|
|
55
|
-
hidden?: boolean | ((row
|
|
72
|
+
disabled?: boolean | ((row?: any) => boolean);
|
|
73
|
+
hidden?: boolean | ((row?: any) => boolean);
|
|
56
74
|
onClick: (row: any, index: number) => void;
|
|
75
|
+
directives?: Array<{
|
|
76
|
+
name: string;
|
|
77
|
+
value?: any;
|
|
78
|
+
arg?: any;
|
|
79
|
+
modifiers?: any;
|
|
80
|
+
}>;
|
|
57
81
|
}>;
|
|
58
82
|
actionsWidth: number;
|
|
59
83
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
@@ -1820,17 +1844,29 @@ export declare const FcProDataTable: {
|
|
|
1820
1844
|
actions?: Array<{
|
|
1821
1845
|
label: string;
|
|
1822
1846
|
type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger";
|
|
1823
|
-
disabled?: boolean | ((row
|
|
1824
|
-
hidden?: boolean | ((row
|
|
1847
|
+
disabled?: boolean | ((row?: any) => boolean);
|
|
1848
|
+
hidden?: boolean | ((row?: any) => boolean);
|
|
1825
1849
|
onClick: (row: any, index: number) => void;
|
|
1850
|
+
directives?: Array<{
|
|
1851
|
+
name: string;
|
|
1852
|
+
value?: any;
|
|
1853
|
+
arg?: any;
|
|
1854
|
+
modifiers?: any;
|
|
1855
|
+
}>;
|
|
1826
1856
|
}>;
|
|
1827
1857
|
actionsWidth?: number;
|
|
1828
1858
|
tools?: Array<{
|
|
1829
1859
|
label: string;
|
|
1830
1860
|
type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger";
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1861
|
+
disabled?: boolean | ((row?: any) => boolean);
|
|
1862
|
+
hidden?: boolean | ((row?: any) => boolean);
|
|
1863
|
+
onClick: (row: any, index: number) => void;
|
|
1864
|
+
directives?: Array<{
|
|
1865
|
+
name: string;
|
|
1866
|
+
value?: any;
|
|
1867
|
+
arg?: any;
|
|
1868
|
+
modifiers?: any;
|
|
1869
|
+
}>;
|
|
1834
1870
|
}>;
|
|
1835
1871
|
}> & Readonly<{}>, {
|
|
1836
1872
|
loadData: () => Promise<void>;
|
|
@@ -1841,9 +1877,15 @@ export declare const FcProDataTable: {
|
|
|
1841
1877
|
tools: Array<{
|
|
1842
1878
|
label: string;
|
|
1843
1879
|
type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger";
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1880
|
+
disabled?: boolean | ((row?: any) => boolean);
|
|
1881
|
+
hidden?: boolean | ((row?: any) => boolean);
|
|
1882
|
+
onClick: (row: any, index: number) => void;
|
|
1883
|
+
directives?: Array<{
|
|
1884
|
+
name: string;
|
|
1885
|
+
value?: any;
|
|
1886
|
+
arg?: any;
|
|
1887
|
+
modifiers?: any;
|
|
1888
|
+
}>;
|
|
1847
1889
|
}>;
|
|
1848
1890
|
columns: Array<{
|
|
1849
1891
|
prop: string;
|
|
@@ -1857,9 +1899,15 @@ export declare const FcProDataTable: {
|
|
|
1857
1899
|
actions: Array<{
|
|
1858
1900
|
label: string;
|
|
1859
1901
|
type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger";
|
|
1860
|
-
disabled?: boolean | ((row
|
|
1861
|
-
hidden?: boolean | ((row
|
|
1902
|
+
disabled?: boolean | ((row?: any) => boolean);
|
|
1903
|
+
hidden?: boolean | ((row?: any) => boolean);
|
|
1862
1904
|
onClick: (row: any, index: number) => void;
|
|
1905
|
+
directives?: Array<{
|
|
1906
|
+
name: string;
|
|
1907
|
+
value?: any;
|
|
1908
|
+
arg?: any;
|
|
1909
|
+
modifiers?: any;
|
|
1910
|
+
}>;
|
|
1863
1911
|
}>;
|
|
1864
1912
|
actionsWidth: number;
|
|
1865
1913
|
}>;
|
|
@@ -1881,17 +1929,29 @@ export declare const FcProDataTable: {
|
|
|
1881
1929
|
actions?: Array<{
|
|
1882
1930
|
label: string;
|
|
1883
1931
|
type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger";
|
|
1884
|
-
disabled?: boolean | ((row
|
|
1885
|
-
hidden?: boolean | ((row
|
|
1932
|
+
disabled?: boolean | ((row?: any) => boolean);
|
|
1933
|
+
hidden?: boolean | ((row?: any) => boolean);
|
|
1886
1934
|
onClick: (row: any, index: number) => void;
|
|
1935
|
+
directives?: Array<{
|
|
1936
|
+
name: string;
|
|
1937
|
+
value?: any;
|
|
1938
|
+
arg?: any;
|
|
1939
|
+
modifiers?: any;
|
|
1940
|
+
}>;
|
|
1887
1941
|
}>;
|
|
1888
1942
|
actionsWidth?: number;
|
|
1889
1943
|
tools?: Array<{
|
|
1890
1944
|
label: string;
|
|
1891
1945
|
type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger";
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1946
|
+
disabled?: boolean | ((row?: any) => boolean);
|
|
1947
|
+
hidden?: boolean | ((row?: any) => boolean);
|
|
1948
|
+
onClick: (row: any, index: number) => void;
|
|
1949
|
+
directives?: Array<{
|
|
1950
|
+
name: string;
|
|
1951
|
+
value?: any;
|
|
1952
|
+
arg?: any;
|
|
1953
|
+
modifiers?: any;
|
|
1954
|
+
}>;
|
|
1895
1955
|
}>;
|
|
1896
1956
|
}> & Readonly<{}>, {
|
|
1897
1957
|
loadData: () => Promise<void>;
|
|
@@ -1902,9 +1962,15 @@ export declare const FcProDataTable: {
|
|
|
1902
1962
|
tools: Array<{
|
|
1903
1963
|
label: string;
|
|
1904
1964
|
type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger";
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1965
|
+
disabled?: boolean | ((row?: any) => boolean);
|
|
1966
|
+
hidden?: boolean | ((row?: any) => boolean);
|
|
1967
|
+
onClick: (row: any, index: number) => void;
|
|
1968
|
+
directives?: Array<{
|
|
1969
|
+
name: string;
|
|
1970
|
+
value?: any;
|
|
1971
|
+
arg?: any;
|
|
1972
|
+
modifiers?: any;
|
|
1973
|
+
}>;
|
|
1908
1974
|
}>;
|
|
1909
1975
|
columns: Array<{
|
|
1910
1976
|
prop: string;
|
|
@@ -1918,9 +1984,15 @@ export declare const FcProDataTable: {
|
|
|
1918
1984
|
actions: Array<{
|
|
1919
1985
|
label: string;
|
|
1920
1986
|
type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger";
|
|
1921
|
-
disabled?: boolean | ((row
|
|
1922
|
-
hidden?: boolean | ((row
|
|
1987
|
+
disabled?: boolean | ((row?: any) => boolean);
|
|
1988
|
+
hidden?: boolean | ((row?: any) => boolean);
|
|
1923
1989
|
onClick: (row: any, index: number) => void;
|
|
1990
|
+
directives?: Array<{
|
|
1991
|
+
name: string;
|
|
1992
|
+
value?: any;
|
|
1993
|
+
arg?: any;
|
|
1994
|
+
modifiers?: any;
|
|
1995
|
+
}>;
|
|
1924
1996
|
}>;
|
|
1925
1997
|
actionsWidth: number;
|
|
1926
1998
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
content: {
|
|
3
|
+
type: (ObjectConstructor | StringConstructor | NumberConstructor | ArrayConstructor | FunctionConstructor)[];
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
7
|
+
content: {
|
|
8
|
+
type: (ObjectConstructor | StringConstructor | NumberConstructor | ArrayConstructor | FunctionConstructor)[];
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
export default _default;
|