@ditari/bsui 1.0.67 → 1.0.69

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("../../store/modules/Settings.cjs.js"),y=require("pinia"),w=require("vue-router"),N={class:"ditari-list-layout"},V={ref:"contentRef",class:"wrapper"},C={style:{height:"100%"}},b={class:"ditari-content-extra"},x={name:"DListLayout"},E=e.defineComponent({...x,emits:["refresh"],setup(R,{emit:u}){const l=e.useSlots(),v=g.useSettingsStore(),h=w.useRoute(),n=e.inject("configProvider"),{refresh:a}=y.storeToRefs(v),_=e.ref(),o=e.ref(),f=16,s=e.ref(!1),i=e.ref(0);let r;e.nextTick(()=>{setTimeout(()=>{var t;i.value=(t=o==null?void 0:o.value)==null?void 0:t.offsetHeight,s.value=!0},1)}),e.watch(()=>n==null?void 0:n.componentSize,t=>{s.value=!1,setTimeout(()=>{var c;i.value=(c=o==null?void 0:o.value)==null?void 0:c.offsetHeight,s.value=!0},100)}),p();function p(){h.name?(e.onActivated(()=>{a.value&&(a.value=!1,u("refresh")),r=d()}),e.onDeactivated(()=>{r()})):(r=d(),e.onUnmounted(()=>{r()}))}function d(){return e.watch(()=>a.value,t=>{t&&u("refresh")})}return(t,c)=>{const m=e.resolveComponent("a-card"),S=e.resolveComponent("a-space");return e.openBlock(),e.createElementBlock("div",N,[e.createElementVNode("div",V,[e.createVNode(m,{ref:"formRef",bordered:!1,class:e.normalizeClass({"ditari-list-form":e.unref(l).form}),style:e.normalizeStyle({"margin-bottom":e.unref(l).form?f+"px":0})},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"form")]),_:3},8,["class","style"]),e.createVNode(m,{class:"ditari-list-table",bordered:!1},{default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"toolsRef",ref:_,class:"xi-tools",style:e.normalizeStyle({"margin-bottom":e.unref(l).tools?f+"px":0})},[e.createVNode(S,null,{default:e.withCtx(()=>[e.renderSlot(t.$slots,"tools")]),_:3})],4),e.createElementVNode("div",{ref_key:"tableRef",ref:o,style:{flex:"1"}},[e.withDirectives(e.createElementVNode("div",C,[e.renderSlot(t.$slots,"table",{height:i.value})],512),[[e.vShow,s.value]])],512)]),_:3})],512),e.createElementVNode("div",b,[e.renderSlot(t.$slots,"default")])])}}});exports.default=E;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),w=require("@vueuse/core"),N=require("../../store/modules/Settings.cjs.js"),V=require("pinia"),C=require("vue-router"),E={class:"ditari-list-layout"},R={ref:"contentRef",class:"wrapper"},b={style:{height:"100%"}},k={class:"ditari-content-extra"},q={name:"DListLayout"},x=e.defineComponent({...q,emits:["refresh"],setup(z,{emit:u}){const n=e.useSlots(),h=N.useSettingsStore(),_=C.useRoute(),a=e.inject("configProvider"),{refresh:i}=V.storeToRefs(h),p=e.ref(),o=e.ref(),f=16,r=e.ref(!1),c=e.ref(0);let l;e.watch(()=>a==null?void 0:a.componentSize,t=>{r.value=!1,setTimeout(()=>{var s;c.value=(s=o==null?void 0:o.value)==null?void 0:s.offsetHeight,r.value=!0},100)}),S();function S(){_.name?(e.onActivated(()=>{i.value&&(i.value=!1,u("refresh")),l=d()}),e.onDeactivated(()=>{l()})):(l=d(),e.onUnmounted(()=>{l()}))}function d(){return e.watch(()=>i.value,t=>{t&&u("refresh")})}const m=e.ref(null),{height:g}=w.useElementSize(m);return e.watch(()=>g.value,t=>{r.value=!1,setTimeout(()=>{var s;c.value=(s=o==null?void 0:o.value)==null?void 0:s.offsetHeight,r.value=!0},10)}),(t,s)=>{const v=e.resolveComponent("a-card"),y=e.resolveComponent("a-space");return e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("div",R,[e.createVNode(v,{ref_key:"formRef",ref:m,bordered:!1,class:e.normalizeClass({"ditari-list-form":e.unref(n).form}),style:e.normalizeStyle({"margin-bottom":e.unref(n).form?f+"px":0})},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"form")]),_:3},8,["class","style"]),e.createVNode(v,{class:"ditari-list-table",bordered:!1},{default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"toolsRef",ref:p,class:"xi-tools",style:e.normalizeStyle({"margin-bottom":e.unref(n).tools?f+"px":0})},[e.createVNode(y,null,{default:e.withCtx(()=>[e.renderSlot(t.$slots,"tools")]),_:3})],4),e.createElementVNode("div",{ref_key:"tableRef",ref:o,style:{flex:"1"}},[e.withDirectives(e.createElementVNode("div",b,[e.renderSlot(t.$slots,"table",{height:c.value})],512),[[e.vShow,r.value]])],512)]),_:3})],512),e.createElementVNode("div",k,[e.renderSlot(t.$slots,"default")])])}}});exports.default=x;
@@ -1,5 +1,5 @@
1
1
  import { PropType } from "vue";
2
- import type { Key, Config } from "./interface/table";
2
+ import type { Key } from "./interface/table";
3
3
  /**
4
4
  * 表格组件定义
5
5
  */
@@ -26,7 +26,7 @@ declare const DXTable: import("vue").DefineComponent<{
26
26
  default: () => {};
27
27
  };
28
28
  config: {
29
- type: PropType<Config>;
29
+ type: PropType<import("./interface/table").Config>;
30
30
  default: () => {};
31
31
  };
32
32
  expandedRowKeys: {
@@ -58,7 +58,7 @@ declare const DXTable: import("vue").DefineComponent<{
58
58
  default: () => {};
59
59
  };
60
60
  config: {
61
- type: PropType<Config>;
61
+ type: PropType<import("./interface/table").Config>;
62
62
  default: () => {};
63
63
  };
64
64
  expandedRowKeys: {
@@ -74,7 +74,7 @@ declare const DXTable: import("vue").DefineComponent<{
74
74
  loading: false | undefined;
75
75
  rowKey: string;
76
76
  pagination: any;
77
- config: Config;
77
+ config: import("./interface/table").Config;
78
78
  expandedRowKeys: string[] | undefined;
79
79
  }>;
80
80
  export default DXTable;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),q=require("vue-request"),f=require("../../utils/get.cjs.js"),z=(i,e={})=>{e.pagination||(e.pagination={currentKey:"page",pageSizeKey:"limit",totalKey:"data.total"}),e.manual===void 0&&(e.manual=!0);const{dataKey:o,pagination:{currentKey:r,pageSizeKey:c}}=e,a=e.params||n.ref({}),{total:s,pageSize:g,current:v,loading:d,data:m,run:u}=q.usePagination(i,{manual:!0,pagination:e.pagination,loadingDelay:400,loadingKeep:100,onSuccess:(t,l)=>{e.onSuccess&&e.onSuccess(t,l)},onError:(t,l)=>{console.log(l,t)}}),y=n.computed(()=>({total:s.value,current:v.value,pageSize:g.value})),S=n.computed(()=>f.get(m.value,o||"data",[])||[]),p=t=>{a.value[r]=t.page,a.value[c]=t.size,u(a.value||{})},K=t=>{a.value={...a.value,...t},a.value[r]=1,u(a.value||{})};return n.onMounted(()=>{e.manual&&u(a.value)}),{data:S,pagination:y,loading:d,run:u,onPageChange:p,onQuery:K}};exports.useRequestList=z;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),f=require("vue-request"),q=require("../../utils/get.cjs.js"),z=(c,e={})=>{e.pagination||(e.pagination={currentKey:"page",pageSizeKey:"limit",totalKey:"data.total"}),e.manual===void 0&&(e.manual=!0);const{dataKey:o,pagination:{currentKey:r,pageSizeKey:s}}=e,a=e.params||n.ref({}),{total:g,pageSize:v,current:d,loading:i,data:m,run:u}=f.usePagination(c,{manual:!0,pagination:e.pagination,loadingDelay:400,loadingKeep:100,onSuccess:(t,l)=>{e.onSuccess&&e.onSuccess(t,l)},onError:(t,l)=>{console.warn(l,t),i.value=!1}}),y=n.computed(()=>({total:g.value,current:d.value,pageSize:v.value})),S=n.computed(()=>q.get(m.value,o||"data",[])||[]),p=t=>{a.value[r]=t.page,a.value[s]=t.size,u(a.value||{})},K=t=>{a.value={...a.value,...t},a.value[r]=1,u(a.value||{})};return n.onMounted(()=>{e.manual&&u(a.value)}),{data:S,pagination:y,loading:i,run:u,onPageChange:p,onQuery:K}};exports.useRequestList=z;
@@ -1,104 +1,110 @@
1
- import { defineComponent as T, useSlots as $, inject as z, ref as l, nextTick as B, watch as g, onUnmounted as D, onActivated as H, onDeactivated as E, resolveComponent as S, openBlock as L, createElementBlock as N, createElementVNode as o, createVNode as d, normalizeClass as V, unref as m, normalizeStyle as w, withCtx as _, renderSlot as r, withDirectives as W, vShow as j } from "vue";
2
- import { useSettingsStore as A } from "../../store/modules/Settings.esm.js";
3
- import { storeToRefs as U } from "pinia";
4
- import { useRoute as q } from "vue-router";
5
- const F = { class: "ditari-list-layout" }, G = {
1
+ import { defineComponent as $, useSlots as B, inject as D, ref as l, watch as m, onUnmounted as E, onActivated as T, onDeactivated as L, resolveComponent as w, openBlock as N, createElementBlock as V, createElementVNode as a, createVNode as d, normalizeClass as W, unref as h, normalizeStyle as R, withCtx as v, renderSlot as n, withDirectives as j, vShow as A } from "vue";
2
+ import { useElementSize as U } from "@vueuse/core";
3
+ import { useSettingsStore as q } from "../../store/modules/Settings.esm.js";
4
+ import { storeToRefs as F } from "pinia";
5
+ import { useRoute as G } from "vue-router";
6
+ const I = { class: "ditari-list-layout" }, J = {
6
7
  ref: "contentRef",
7
8
  class: "wrapper"
8
- }, I = { style: { height: "100%" } }, J = { class: "ditari-content-extra" }, K = {
9
+ }, K = { style: { height: "100%" } }, M = { class: "ditari-content-extra" }, O = {
9
10
  name: "DListLayout"
10
- }, Y = /* @__PURE__ */ T({
11
- ...K,
11
+ }, te = /* @__PURE__ */ $({
12
+ ...O,
12
13
  emits: ["refresh"],
13
- setup(M, { emit: h }) {
14
- const n = $(), k = A(), x = q(), i = z("configProvider"), { refresh: c } = U(k), R = l(), t = l(), v = 16, s = l(!1), f = l(0);
15
- let a;
16
- B(() => {
17
- setTimeout(() => {
18
- var e;
19
- f.value = (e = t == null ? void 0 : t.value) == null ? void 0 : e.offsetHeight, s.value = !0;
20
- }, 1);
21
- }), g(
22
- () => i == null ? void 0 : i.componentSize,
14
+ setup(P, { emit: _ }) {
15
+ const i = B(), k = q(), b = G(), f = D("configProvider"), { refresh: c } = F(k), x = l(), t = l(), p = 16, s = l(!1), u = l(0);
16
+ let r;
17
+ m(
18
+ () => f == null ? void 0 : f.componentSize,
23
19
  (e) => {
24
20
  s.value = !1, setTimeout(() => {
25
- var u;
26
- f.value = (u = t == null ? void 0 : t.value) == null ? void 0 : u.offsetHeight, s.value = !0;
21
+ var o;
22
+ u.value = (o = t == null ? void 0 : t.value) == null ? void 0 : o.offsetHeight, s.value = !0;
27
23
  }, 100);
28
24
  }
29
- ), b();
30
- function b() {
31
- x.name ? (H(() => {
32
- c.value && (c.value = !1, h("refresh")), a = p();
33
- }), E(() => {
34
- a();
35
- })) : (a = p(), D(() => {
36
- a();
25
+ ), z();
26
+ function z() {
27
+ b.name ? (T(() => {
28
+ c.value && (c.value = !1, _("refresh")), r = g();
29
+ }), L(() => {
30
+ r();
31
+ })) : (r = g(), E(() => {
32
+ r();
37
33
  }));
38
34
  }
39
- function p() {
40
- return g(
35
+ function g() {
36
+ return m(
41
37
  () => c.value,
42
38
  (e) => {
43
- e && h("refresh");
39
+ e && _("refresh");
44
40
  }
45
41
  );
46
42
  }
47
- return (e, u) => {
48
- const y = S("a-card"), C = S("a-space");
49
- return L(), N("div", F, [
50
- o("div", G, [
51
- d(y, {
52
- ref: "formRef",
43
+ const y = l(null), { height: C } = U(y);
44
+ return m(
45
+ () => C.value,
46
+ (e) => {
47
+ s.value = !1, setTimeout(() => {
48
+ var o;
49
+ u.value = (o = t == null ? void 0 : t.value) == null ? void 0 : o.offsetHeight, s.value = !0;
50
+ }, 10);
51
+ }
52
+ ), (e, o) => {
53
+ const S = w("a-card"), H = w("a-space");
54
+ return N(), V("div", I, [
55
+ a("div", J, [
56
+ d(S, {
57
+ ref_key: "formRef",
58
+ ref: y,
53
59
  bordered: !1,
54
- class: V({ "ditari-list-form": m(n).form }),
55
- style: w({ "margin-bottom": m(n).form ? v + "px" : 0 })
60
+ class: W({ "ditari-list-form": h(i).form }),
61
+ style: R({ "margin-bottom": h(i).form ? p + "px" : 0 })
56
62
  }, {
57
- default: _(() => [
58
- r(e.$slots, "form")
63
+ default: v(() => [
64
+ n(e.$slots, "form")
59
65
  ]),
60
66
  _: 3
61
67
  }, 8, ["class", "style"]),
62
- d(y, {
68
+ d(S, {
63
69
  class: "ditari-list-table",
64
70
  bordered: !1
65
71
  }, {
66
- default: _(() => [
67
- o("div", {
72
+ default: v(() => [
73
+ a("div", {
68
74
  ref_key: "toolsRef",
69
- ref: R,
75
+ ref: x,
70
76
  class: "xi-tools",
71
- style: w({ "margin-bottom": m(n).tools ? v + "px" : 0 })
77
+ style: R({ "margin-bottom": h(i).tools ? p + "px" : 0 })
72
78
  }, [
73
- d(C, null, {
74
- default: _(() => [
75
- r(e.$slots, "tools")
79
+ d(H, null, {
80
+ default: v(() => [
81
+ n(e.$slots, "tools")
76
82
  ]),
77
83
  _: 3
78
84
  })
79
85
  ], 4),
80
- o("div", {
86
+ a("div", {
81
87
  ref_key: "tableRef",
82
88
  ref: t,
83
89
  style: { flex: "1" }
84
90
  }, [
85
- W(o("div", I, [
86
- r(e.$slots, "table", { height: f.value })
91
+ j(a("div", K, [
92
+ n(e.$slots, "table", { height: u.value })
87
93
  ], 512), [
88
- [j, s.value]
94
+ [A, s.value]
89
95
  ])
90
96
  ], 512)
91
97
  ]),
92
98
  _: 3
93
99
  })
94
100
  ], 512),
95
- o("div", J, [
96
- r(e.$slots, "default")
101
+ a("div", M, [
102
+ n(e.$slots, "default")
97
103
  ])
98
104
  ]);
99
105
  };
100
106
  }
101
107
  });
102
108
  export {
103
- Y as default
109
+ te as default
104
110
  };
@@ -1,5 +1,5 @@
1
1
  import { PropType } from "vue";
2
- import type { Key, Config } from "./interface/table";
2
+ import type { Key } from "./interface/table";
3
3
  /**
4
4
  * 表格组件定义
5
5
  */
@@ -26,7 +26,7 @@ declare const DXTable: import("vue").DefineComponent<{
26
26
  default: () => {};
27
27
  };
28
28
  config: {
29
- type: PropType<Config>;
29
+ type: PropType<import("./interface/table").Config>;
30
30
  default: () => {};
31
31
  };
32
32
  expandedRowKeys: {
@@ -58,7 +58,7 @@ declare const DXTable: import("vue").DefineComponent<{
58
58
  default: () => {};
59
59
  };
60
60
  config: {
61
- type: PropType<Config>;
61
+ type: PropType<import("./interface/table").Config>;
62
62
  default: () => {};
63
63
  };
64
64
  expandedRowKeys: {
@@ -74,7 +74,7 @@ declare const DXTable: import("vue").DefineComponent<{
74
74
  loading: false | undefined;
75
75
  rowKey: string;
76
76
  pagination: any;
77
- config: Config;
77
+ config: import("./interface/table").Config;
78
78
  expandedRowKeys: string[] | undefined;
79
79
  }>;
80
80
  export default DXTable;
@@ -1,23 +1,23 @@
1
- import { ref as S, computed as r, onMounted as z } from "vue";
1
+ import { ref as S, computed as o, onMounted as z } from "vue";
2
2
  import { usePagination as D } from "vue-request";
3
3
  import { get as P } from "../../utils/get.esm.js";
4
- const C = (o, a = {}) => {
4
+ const x = (i, a = {}) => {
5
5
  a.pagination || (a.pagination = {
6
6
  currentKey: "page",
7
7
  pageSizeKey: "limit",
8
8
  totalKey: "data.total"
9
9
  }), a.manual === void 0 && (a.manual = !0);
10
10
  const {
11
- dataKey: i,
12
- pagination: { currentKey: l, pageSizeKey: c }
11
+ dataKey: c,
12
+ pagination: { currentKey: l, pageSizeKey: g }
13
13
  } = a, e = a.params || S({}), {
14
- total: g,
15
- pageSize: m,
16
- current: s,
17
- loading: v,
14
+ total: s,
15
+ pageSize: v,
16
+ current: m,
17
+ loading: r,
18
18
  data: d,
19
19
  run: n
20
- } = D(o, {
20
+ } = D(i, {
21
21
  manual: !0,
22
22
  pagination: a.pagination,
23
23
  loadingDelay: 400,
@@ -26,30 +26,30 @@ const C = (o, a = {}) => {
26
26
  a.onSuccess && a.onSuccess(t, u);
27
27
  },
28
28
  onError: (t, u) => {
29
- console.log(u, t);
29
+ console.warn(u, t), r.value = !1;
30
30
  }
31
- }), p = r(() => ({
32
- total: g.value,
33
- current: s.value,
34
- pageSize: m.value
35
- })), y = r(
36
- () => P(d.value, i || "data", []) || []
37
- ), f = (t) => {
38
- e.value[l] = t.page, e.value[c] = t.size, n(e.value || {});
31
+ }), p = o(() => ({
32
+ total: s.value,
33
+ current: m.value,
34
+ pageSize: v.value
35
+ })), f = o(
36
+ () => P(d.value, c || "data", []) || []
37
+ ), y = (t) => {
38
+ e.value[l] = t.page, e.value[g] = t.size, n(e.value || {});
39
39
  }, K = (t) => {
40
40
  e.value = { ...e.value, ...t }, e.value[l] = 1, n(e.value || {});
41
41
  };
42
42
  return z(() => {
43
43
  a.manual && n(e.value);
44
44
  }), {
45
- data: y,
45
+ data: f,
46
46
  pagination: p,
47
- loading: v,
47
+ loading: r,
48
48
  run: n,
49
- onPageChange: f,
49
+ onPageChange: y,
50
50
  onQuery: K
51
51
  };
52
52
  };
53
53
  export {
54
- C as useRequestList
54
+ x as useRequestList
55
55
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ditari/bsui",
3
- "version": "1.0.67",
3
+ "version": "1.0.69",
4
4
  "files": [
5
5
  "dist/**",
6
6
  "src"
@@ -11,22 +11,22 @@
11
11
  },
12
12
  "main": "dist/cjs/components/index.cjs.js",
13
13
  "module": "dist/esm/components/index.esm.js",
14
- "types": "dist/**/*.d.ts",
14
+ "typings": "dist/**/*.d.ts",
15
15
  "exports": {
16
16
  ".": {
17
17
  "require": "./dist/cjs/components/index.cjs.js",
18
18
  "import": "./dist/esm/components/index.esm.js",
19
- "types": "./dist/esm/components/index.d.ts"
19
+ "typings": "./dist/esm/components/index.d.ts"
20
20
  },
21
21
  "./store": {
22
22
  "require": "./dist/cjs/store/index.cjs.js",
23
23
  "import": "./dist/esm/store/index.esm.js",
24
- "types": "./dist/esm/store/index.d.ts"
24
+ "typings": "./dist/esm/store/index.d.ts"
25
25
  },
26
26
  "./hooks": {
27
27
  "require": "./dist/cjs/hooks/index.cjs.js",
28
28
  "import": "./dist/esm/hooks/index.esm.js",
29
- "types": "./dist/esm/hooks/index.d.ts"
29
+ "typings": "./dist/esm/hooks/index.d.ts"
30
30
  },
31
31
  "./css/*": "./dist/css/*",
32
32
  "./theme/*": "./dist/style/*"
@@ -8,8 +8,6 @@ import { useKeepAliveStore, useSettingsStore } from "../../store";
8
8
 
9
9
  //标签页组件
10
10
  import DNavTabs from "./NavTabs.vue";
11
- //面包屑组件
12
- import DBreadcrumb from "./Breadcrumb.vue";
13
11
  // 菜单组件
14
12
  import Menu from "../menu/Menu";
15
13
 
@@ -1,4 +1,6 @@
1
1
  <script setup lang="ts">
2
+ import { useElementSize } from "@vueuse/core";
3
+
2
4
  import {
3
5
  useSlots,
4
6
  ref,
@@ -35,12 +37,12 @@ const height = ref(0);
35
37
 
36
38
  let stopHandleWatch: WatchStopHandle;
37
39
 
38
- nextTick(() => {
39
- setTimeout(() => {
40
- height.value = tableRef?.value?.offsetHeight;
41
- show.value = true;
42
- }, 1);
43
- });
40
+ // nextTick(() => {
41
+ // setTimeout(() => {
42
+ // height.value = tableRef?.value?.offsetHeight;
43
+ // show.value = true;
44
+ // }, 1);
45
+ // });
44
46
 
45
47
  watch(
46
48
  () => configProvider?.componentSize,
@@ -91,6 +93,21 @@ function useWatch() {
91
93
  }
92
94
  );
93
95
  }
96
+
97
+ // 监听表单高度变化
98
+ // 然后再获取表格高度
99
+ const formRef = ref(null);
100
+ const { height: formHeight } = useElementSize(formRef);
101
+ watch(
102
+ () => formHeight.value,
103
+ (val) => {
104
+ show.value = false;
105
+ setTimeout(() => {
106
+ height.value = tableRef?.value?.offsetHeight;
107
+ show.value = true;
108
+ }, 10);
109
+ }
110
+ );
94
111
  </script>
95
112
  <script lang="ts">
96
113
  export default {
@@ -119,7 +136,7 @@ export default {
119
136
  </a-space>
120
137
  </div>
121
138
  <div ref="tableRef" style="flex: 1">
122
- <div style="height: 100%" v-show="show">
139
+ <div v-show="show" style="height: 100%">
123
140
  <slot name="table" :height="height" />
124
141
  </div>
125
142
  </div>
@@ -12,7 +12,6 @@ import DNavTabs from "./NavTabs.vue";
12
12
  import DBreadcrumb from "./Breadcrumb.vue";
13
13
  // 菜单组件
14
14
  import Menu from "../menu/Menu";
15
- import CollapsedMenu from "../menu/CollapsedMenu.vue";
16
15
 
17
16
  interface Props {
18
17
  showConfig?: ShowConfig;
@@ -59,7 +58,6 @@ export default {
59
58
  </div>
60
59
  <div class="ditari-menu">
61
60
  <Menu />
62
-
63
61
  </div>
64
62
  </div>
65
63
  </a-layout-sider>
@@ -1,19 +1,17 @@
1
1
  import {
2
2
  computed,
3
- createVNode,
4
3
  defineComponent,
5
4
  nextTick,
6
5
  PropType,
7
- reactive,
8
6
  ref,
9
7
  watch,
10
8
  watchEffect
11
9
  } from "vue";
12
- import { Pagination, Space, Table, Card } from "ant-design-vue";
10
+ import { Pagination, Space, Table } from "ant-design-vue";
13
11
  import { useEleHeight } from "../../utils/html";
14
12
  import { prefixName } from "../theme";
15
13
 
16
- import type { TableProps, Key, Config } from "./interface/table";
14
+ import type { TableProps, Key } from "./interface/table";
17
15
  /**
18
16
  * 表格组件 基于TSX封装ATable
19
17
  */
@@ -80,11 +78,6 @@ const paginationConfig = {
80
78
  //分页class名称
81
79
  const basePageClassName = `${prefixName}-pagination`;
82
80
 
83
- const configDefault: Config = {
84
- selection: "N",
85
- bordered: true
86
- };
87
-
88
81
  /**
89
82
  * 表格组件定义
90
83
  */
@@ -383,6 +376,7 @@ const DXTable = defineComponent({
383
376
  const summary = () => {
384
377
  return <>{slots.summary && slots.summary()}</>;
385
378
  };
379
+
386
380
  return () => (
387
381
  <div ref={tableRootRef} style={{ height: "100%" }}>
388
382
  <Table
@@ -56,7 +56,8 @@ const useRequestList = (service: any, options: Options = {}) => {
56
56
  },
57
57
  onError: (error: Error, params: any) => {
58
58
  //错误处理
59
- console.log(params, error);
59
+ console.warn(params, error);
60
+ loading.value = false;
60
61
  }
61
62
  });
62
63