@keyblade/pro-components 1.13.8-alpha.33 → 1.13.8-alpha.34
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/pro-table/index.d.ts
CHANGED
|
@@ -14,7 +14,6 @@ declare const ProTable: {
|
|
|
14
14
|
pagePosition: "top" | "tl" | "tr" | "bottom" | "bl" | "br";
|
|
15
15
|
indentSize: number;
|
|
16
16
|
rowKey: string;
|
|
17
|
-
showHeader: boolean;
|
|
18
17
|
spanAll: boolean;
|
|
19
18
|
filterIconAlignLeft: boolean;
|
|
20
19
|
hideExpandButtonOnEmpty: boolean;
|
|
@@ -44,7 +43,6 @@ declare const ProTable: {
|
|
|
44
43
|
pagePosition: "top" | "tl" | "tr" | "bottom" | "bl" | "br";
|
|
45
44
|
indentSize: number;
|
|
46
45
|
rowKey: string;
|
|
47
|
-
showHeader: boolean;
|
|
48
46
|
spanAll: boolean;
|
|
49
47
|
filterIconAlignLeft: boolean;
|
|
50
48
|
hideExpandButtonOnEmpty: boolean;
|
|
@@ -71,7 +69,6 @@ declare const ProTable: {
|
|
|
71
69
|
pagePosition: "top" | "tl" | "tr" | "bottom" | "bl" | "br";
|
|
72
70
|
indentSize: number;
|
|
73
71
|
rowKey: string;
|
|
74
|
-
showHeader: boolean;
|
|
75
72
|
spanAll: boolean;
|
|
76
73
|
filterIconAlignLeft: boolean;
|
|
77
74
|
hideExpandButtonOnEmpty: boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IProTable } from './interface';
|
|
2
|
+
import { PaginationProps } from '@arco-design/web-vue';
|
|
2
3
|
declare function __VLS_template(): {
|
|
3
4
|
attrs: Partial<{}>;
|
|
4
5
|
slots: Partial<Record<NonNullable<string | number>, (_: any) => any>> & {
|
|
@@ -16,13 +17,12 @@ declare const __VLS_component: import('vue').DefineComponent<IProTable, {}, {},
|
|
|
16
17
|
bordered: boolean | import('@arco-design/web-vue').TableBorder;
|
|
17
18
|
scrollbar: boolean | any;
|
|
18
19
|
columns: Partial<import('./interface').IProTableColumn>[];
|
|
19
|
-
pagination: boolean |
|
|
20
|
+
pagination: boolean | PaginationProps;
|
|
20
21
|
stripe: boolean;
|
|
21
22
|
tableLayoutFixed: boolean;
|
|
22
23
|
pagePosition: "top" | "tl" | "tr" | "bottom" | "bl" | "br";
|
|
23
24
|
indentSize: number;
|
|
24
25
|
rowKey: string;
|
|
25
|
-
showHeader: boolean;
|
|
26
26
|
spanAll: boolean;
|
|
27
27
|
filterIconAlignLeft: boolean;
|
|
28
28
|
hideExpandButtonOnEmpty: boolean;
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
var A = Object.defineProperty, I = Object.defineProperties;
|
|
2
2
|
var L = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
4
|
-
var j = Object.prototype.hasOwnProperty,
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
j.call(e,
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
3
|
+
var v = Object.getOwnPropertySymbols;
|
|
4
|
+
var j = Object.prototype.hasOwnProperty, P = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var x = (o, e, t) => e in o ? A(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, _ = (o, e) => {
|
|
6
|
+
for (var t in e || (e = {}))
|
|
7
|
+
j.call(e, t) && x(o, t, e[t]);
|
|
8
|
+
if (v)
|
|
9
|
+
for (var t of v(e))
|
|
10
|
+
P.call(e, t) && x(o, t, e[t]);
|
|
11
|
+
return o;
|
|
12
|
+
}, k = (o, e) => I(o, L(e));
|
|
13
|
+
var S = (o, e, t) => new Promise((f, p) => {
|
|
14
|
+
var y = (s) => {
|
|
15
15
|
try {
|
|
16
|
-
d(
|
|
17
|
-
} catch (
|
|
18
|
-
p(
|
|
16
|
+
d(t.next(s));
|
|
17
|
+
} catch (a) {
|
|
18
|
+
p(a);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, m = (s) => {
|
|
21
21
|
try {
|
|
22
|
-
d(
|
|
23
|
-
} catch (
|
|
24
|
-
p(
|
|
22
|
+
d(t.throw(s));
|
|
23
|
+
} catch (a) {
|
|
24
|
+
p(a);
|
|
25
25
|
}
|
|
26
|
-
}, d = (s) => s.done ?
|
|
27
|
-
d((
|
|
26
|
+
}, d = (s) => s.done ? f(s.value) : Promise.resolve(s.value).then(y, m);
|
|
27
|
+
d((t = t.apply(o, e)).next());
|
|
28
28
|
});
|
|
29
|
-
import { defineComponent as
|
|
29
|
+
import { defineComponent as D, useSlots as F, useAttrs as H, computed as C, resolveComponent as b, createElementBlock as w, openBlock as g, normalizeClass as h, createCommentVNode as E, createVNode as z, renderSlot as $, mergeProps as K, unref as M, createSlots as V, withCtx as B, normalizeStyle as T, createElementVNode as N, withModifiers as U, createBlock as q, toDisplayString as G, renderList as J, normalizeProps as Q, guardReactiveProps as W } from "vue";
|
|
30
30
|
import { conclude as X } from "vue-global-config";
|
|
31
31
|
import { globalProps as Y } from "../global-props.js";
|
|
32
32
|
import { useClipboard as Z } from "@vueuse/core";
|
|
33
33
|
import { Message as ee } from "@arco-design/web-vue";
|
|
34
|
-
const
|
|
34
|
+
const te = ["onClick"], r = "keyblade-pro-table", de = /* @__PURE__ */ D({
|
|
35
35
|
__name: "index",
|
|
36
36
|
props: {
|
|
37
37
|
size: { default: "large" },
|
|
@@ -47,7 +47,6 @@ const oe = ["onClick"], r = "keyblade-pro-table", de = /* @__PURE__ */ P({
|
|
|
47
47
|
pagePosition: { default: "tr" },
|
|
48
48
|
indentSize: { default: 16 },
|
|
49
49
|
rowKey: { default: "key" },
|
|
50
|
-
showHeader: { type: Boolean, default: !0 },
|
|
51
50
|
spanAll: { type: Boolean, default: !1 },
|
|
52
51
|
filterIconAlignLeft: { type: Boolean, default: !1 },
|
|
53
52
|
hideExpandButtonOnEmpty: { type: Boolean, default: !1 },
|
|
@@ -95,58 +94,58 @@ const oe = ["onClick"], r = "keyblade-pro-table", de = /* @__PURE__ */ P({
|
|
|
95
94
|
"onUpdate:selectedKeys": {},
|
|
96
95
|
"onUpdate:expandedKeys": {}
|
|
97
96
|
},
|
|
98
|
-
setup(
|
|
99
|
-
const e =
|
|
100
|
-
var
|
|
101
|
-
return
|
|
102
|
-
}), d =
|
|
103
|
-
var
|
|
104
|
-
return (
|
|
97
|
+
setup(o) {
|
|
98
|
+
const e = o, t = F(), { copy: f } = Z(), p = H(), y = C(() => X([e, Y.table || {}]) || {}), m = C(() => {
|
|
99
|
+
var n, i;
|
|
100
|
+
return !((n = e.pagination) == null ? void 0 : n.total) && !((i = e.data) != null && i.length) && t["pagination-left"];
|
|
101
|
+
}), d = C(() => {
|
|
102
|
+
var a;
|
|
103
|
+
return (a = e.columns) == null ? void 0 : a.map((n) => n.clipboard ? k(_({}, n), {
|
|
105
104
|
hover: n.hover === void 0 ? !0 : n.hover,
|
|
106
105
|
slotName: `${r}-clipboard`
|
|
107
106
|
}) : n);
|
|
108
|
-
}), s = (
|
|
107
|
+
}), s = (a) => S(null, null, function* () {
|
|
109
108
|
try {
|
|
110
|
-
yield
|
|
109
|
+
yield f(a), ee.success("拷贝成功!");
|
|
111
110
|
} catch (n) {
|
|
112
111
|
console.info(n);
|
|
113
112
|
}
|
|
114
113
|
});
|
|
115
|
-
return (
|
|
116
|
-
const
|
|
117
|
-
return
|
|
118
|
-
class:
|
|
114
|
+
return (a, n) => {
|
|
115
|
+
const i = b("icon-copy"), R = b("a-tooltip"), O = b("a-table");
|
|
116
|
+
return g(), w("div", {
|
|
117
|
+
class: h(r)
|
|
119
118
|
}, [
|
|
120
|
-
|
|
119
|
+
m.value ? (g(), w("div", {
|
|
121
120
|
key: 0,
|
|
122
|
-
class:
|
|
121
|
+
class: h(`${r}-header`)
|
|
123
122
|
}, [
|
|
124
|
-
|
|
125
|
-
], 2)) :
|
|
126
|
-
|
|
127
|
-
[`${r}-clipboard`]:
|
|
128
|
-
|
|
123
|
+
$(a.$slots, "pagination-left")
|
|
124
|
+
], 2)) : E("", !0),
|
|
125
|
+
z(O, K(K(y.value, M(p)), { columns: d.value }), V({
|
|
126
|
+
[`${r}-clipboard`]: B(({ record: c, column: l }) => [
|
|
127
|
+
z(R, {
|
|
129
128
|
style: T({ display: l.ellipsis && l.hover ? "" : "none" }),
|
|
130
|
-
content:
|
|
129
|
+
content: c[l.dataIndex]
|
|
131
130
|
}, {
|
|
132
|
-
default:
|
|
133
|
-
|
|
134
|
-
class:
|
|
135
|
-
onClick: U((
|
|
131
|
+
default: B(() => [
|
|
132
|
+
N("div", {
|
|
133
|
+
class: h([`${r}-clipboard`, l.ellipsis ? `${r}-ellipsis` : ""]),
|
|
134
|
+
onClick: U((u) => s(c[l.dataIndex]), ["stop"])
|
|
136
135
|
}, [
|
|
137
|
-
|
|
138
|
-
l.copyIcon ? (
|
|
139
|
-
], 10,
|
|
136
|
+
N("span", null, G(c[l.dataIndex]), 1),
|
|
137
|
+
l.copyIcon ? (g(), q(i, { key: 0 })) : E("", !0)
|
|
138
|
+
], 10, te)
|
|
140
139
|
]),
|
|
141
140
|
_: 2
|
|
142
141
|
}, 1032, ["style", "content"])
|
|
143
142
|
]),
|
|
144
143
|
_: 2
|
|
145
144
|
}, [
|
|
146
|
-
J(
|
|
145
|
+
J(M(t), (c, l) => ({
|
|
147
146
|
name: l,
|
|
148
|
-
fn:
|
|
149
|
-
|
|
147
|
+
fn: B((u) => [
|
|
148
|
+
$(a.$slots, l, Q(W(u != null ? u : {})))
|
|
150
149
|
])
|
|
151
150
|
}))
|
|
152
151
|
]), 1040, ["columns"])
|
package/package.json
CHANGED