@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.
@@ -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 | import('@arco-design/web-vue').PaginationProps;
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 B = Object.getOwnPropertySymbols;
4
- var j = Object.prototype.hasOwnProperty, H = Object.prototype.propertyIsEnumerable;
5
- var v = (a, e, o) => e in a ? A(a, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : a[e] = o, x = (a, e) => {
6
- for (var o in e || (e = {}))
7
- j.call(e, o) && v(a, o, e[o]);
8
- if (B)
9
- for (var o of B(e))
10
- H.call(e, o) && v(a, o, e[o]);
11
- return a;
12
- }, _ = (a, e) => I(a, L(e));
13
- var k = (a, e, o) => new Promise((u, p) => {
14
- var f = (s) => {
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(o.next(s));
17
- } catch (t) {
18
- p(t);
16
+ d(t.next(s));
17
+ } catch (a) {
18
+ p(a);
19
19
  }
20
- }, y = (s) => {
20
+ }, m = (s) => {
21
21
  try {
22
- d(o.throw(s));
23
- } catch (t) {
24
- p(t);
22
+ d(t.throw(s));
23
+ } catch (a) {
24
+ p(a);
25
25
  }
26
- }, d = (s) => s.done ? u(s.value) : Promise.resolve(s.value).then(f, y);
27
- d((o = o.apply(a, e)).next());
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 P, useSlots as D, useAttrs as F, computed as m, resolveComponent as C, createElementBlock as S, openBlock as b, normalizeClass as g, createCommentVNode as w, createVNode as E, renderSlot as z, mergeProps as $, unref as K, createSlots as V, withCtx as h, normalizeStyle as T, createElementVNode as M, withModifiers as U, createBlock as q, toDisplayString as G, renderList as J, normalizeProps as Q, guardReactiveProps as W } from "vue";
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 oe = ["onClick"], r = "keyblade-pro-table", de = /* @__PURE__ */ P({
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(a) {
99
- const e = a, o = D(), { copy: u } = Z(), p = F(), f = m(() => X([e, Y.table || {}]) || {}), y = m(() => {
100
- var t, n;
101
- return typeof e.pagination != "boolean" && !((t = e.pagination) != null && t.total) && !((n = e.data) != null && n.length) && o["pagination-left"];
102
- }), d = m(() => {
103
- var t;
104
- return (t = e.columns) == null ? void 0 : t.map((n) => n.clipboard ? _(x({}, n), {
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 = (t) => k(null, null, function* () {
107
+ }), s = (a) => S(null, null, function* () {
109
108
  try {
110
- yield u(t), ee.success("拷贝成功!");
109
+ yield f(a), ee.success("拷贝成功!");
111
110
  } catch (n) {
112
111
  console.info(n);
113
112
  }
114
113
  });
115
- return (t, n) => {
116
- const N = C("icon-copy"), R = C("a-tooltip"), O = C("a-table");
117
- return b(), S("div", {
118
- class: g(r)
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
- y.value ? (b(), S("div", {
119
+ m.value ? (g(), w("div", {
121
120
  key: 0,
122
- class: g(`${r}-header`)
121
+ class: h(`${r}-header`)
123
122
  }, [
124
- z(t.$slots, "pagination-left")
125
- ], 2)) : w("", !0),
126
- E(O, $($(f.value, K(p)), { columns: d.value }), V({
127
- [`${r}-clipboard`]: h(({ record: i, column: l }) => [
128
- E(R, {
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: i[l.dataIndex]
129
+ content: c[l.dataIndex]
131
130
  }, {
132
- default: h(() => [
133
- M("div", {
134
- class: g([`${r}-clipboard`, l.ellipsis ? `${r}-ellipsis` : ""]),
135
- onClick: U((c) => s(i[l.dataIndex]), ["stop"])
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
- M("span", null, G(i[l.dataIndex]), 1),
138
- l.copyIcon ? (b(), q(N, { key: 0 })) : w("", !0)
139
- ], 10, oe)
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(K(o), (i, l) => ({
145
+ J(M(t), (c, l) => ({
147
146
  name: l,
148
- fn: h((c) => [
149
- z(t.$slots, l, Q(W(c != null ? c : {})))
147
+ fn: B((u) => [
148
+ $(a.$slots, l, Q(W(u != null ? u : {})))
150
149
  ])
151
150
  }))
152
151
  ]), 1040, ["columns"])
@@ -37,8 +37,6 @@ export type IProTable = {
37
37
  indentSize?: number;
38
38
  /** 行键字段 */
39
39
  rowKey?: string;
40
- /** 是否显示表头 */
41
- showHeader?: boolean;
42
40
  /** 是否跨行跨列 */
43
41
  spanAll?: boolean;
44
42
  /** 筛选图标是否左对齐 */
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@keyblade/pro-components",
3
3
  "description": "KeyBlade Pro Components",
4
4
  "author": "yangshuai <704807396@qq.com>",
5
- "version": "1.13.8-alpha.33",
5
+ "version": "1.13.8-alpha.34",
6
6
  "private": false,
7
7
  "type": "module",
8
8
  "main": "es/index.js",