@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.
- package/dist/cjs/components/layout/List.vue.cjs.js +1 -1
- package/dist/cjs/components/table/Table.d.ts +4 -4
- package/dist/cjs/hooks/http/index.cjs.js +1 -1
- package/dist/esm/components/layout/List.vue.esm.js +62 -56
- package/dist/esm/components/table/Table.d.ts +4 -4
- package/dist/esm/hooks/http/index.esm.js +22 -22
- package/package.json +5 -5
- package/src/components/layout/FuckMain.vue +0 -2
- package/src/components/layout/List.vue +24 -7
- package/src/components/layout/Main.vue +0 -2
- package/src/components/table/Table.tsx +3 -9
- package/src/hooks/http/index.ts +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
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
|
|
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"),
|
|
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
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
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
|
-
},
|
|
9
|
+
}, K = { style: { height: "100%" } }, M = { class: "ditari-content-extra" }, O = {
|
|
9
10
|
name: "DListLayout"
|
|
10
|
-
},
|
|
11
|
-
...
|
|
11
|
+
}, te = /* @__PURE__ */ $({
|
|
12
|
+
...O,
|
|
12
13
|
emits: ["refresh"],
|
|
13
|
-
setup(
|
|
14
|
-
const
|
|
15
|
-
let
|
|
16
|
-
|
|
17
|
-
|
|
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
|
|
26
|
-
|
|
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
|
-
),
|
|
30
|
-
function
|
|
31
|
-
|
|
32
|
-
c.value && (c.value = !1,
|
|
33
|
-
}),
|
|
34
|
-
|
|
35
|
-
})) : (
|
|
36
|
-
|
|
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
|
|
40
|
-
return
|
|
35
|
+
function g() {
|
|
36
|
+
return m(
|
|
41
37
|
() => c.value,
|
|
42
38
|
(e) => {
|
|
43
|
-
e &&
|
|
39
|
+
e && _("refresh");
|
|
44
40
|
}
|
|
45
41
|
);
|
|
46
42
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
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:
|
|
55
|
-
style:
|
|
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
|
-
|
|
63
|
+
default: v(() => [
|
|
64
|
+
n(e.$slots, "form")
|
|
59
65
|
]),
|
|
60
66
|
_: 3
|
|
61
67
|
}, 8, ["class", "style"]),
|
|
62
|
-
d(
|
|
68
|
+
d(S, {
|
|
63
69
|
class: "ditari-list-table",
|
|
64
70
|
bordered: !1
|
|
65
71
|
}, {
|
|
66
|
-
default:
|
|
67
|
-
|
|
72
|
+
default: v(() => [
|
|
73
|
+
a("div", {
|
|
68
74
|
ref_key: "toolsRef",
|
|
69
|
-
ref:
|
|
75
|
+
ref: x,
|
|
70
76
|
class: "xi-tools",
|
|
71
|
-
style:
|
|
77
|
+
style: R({ "margin-bottom": h(i).tools ? p + "px" : 0 })
|
|
72
78
|
}, [
|
|
73
|
-
d(
|
|
74
|
-
default:
|
|
75
|
-
|
|
79
|
+
d(H, null, {
|
|
80
|
+
default: v(() => [
|
|
81
|
+
n(e.$slots, "tools")
|
|
76
82
|
]),
|
|
77
83
|
_: 3
|
|
78
84
|
})
|
|
79
85
|
], 4),
|
|
80
|
-
|
|
86
|
+
a("div", {
|
|
81
87
|
ref_key: "tableRef",
|
|
82
88
|
ref: t,
|
|
83
89
|
style: { flex: "1" }
|
|
84
90
|
}, [
|
|
85
|
-
|
|
86
|
-
|
|
91
|
+
j(a("div", K, [
|
|
92
|
+
n(e.$slots, "table", { height: u.value })
|
|
87
93
|
], 512), [
|
|
88
|
-
[
|
|
94
|
+
[A, s.value]
|
|
89
95
|
])
|
|
90
96
|
], 512)
|
|
91
97
|
]),
|
|
92
98
|
_: 3
|
|
93
99
|
})
|
|
94
100
|
], 512),
|
|
95
|
-
|
|
96
|
-
|
|
101
|
+
a("div", M, [
|
|
102
|
+
n(e.$slots, "default")
|
|
97
103
|
])
|
|
98
104
|
]);
|
|
99
105
|
};
|
|
100
106
|
}
|
|
101
107
|
});
|
|
102
108
|
export {
|
|
103
|
-
|
|
109
|
+
te as default
|
|
104
110
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from "vue";
|
|
2
|
-
import type { Key
|
|
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
|
|
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
|
|
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:
|
|
12
|
-
pagination: { currentKey: l, pageSizeKey:
|
|
11
|
+
dataKey: c,
|
|
12
|
+
pagination: { currentKey: l, pageSizeKey: g }
|
|
13
13
|
} = a, e = a.params || S({}), {
|
|
14
|
-
total:
|
|
15
|
-
pageSize:
|
|
16
|
-
current:
|
|
17
|
-
loading:
|
|
14
|
+
total: s,
|
|
15
|
+
pageSize: v,
|
|
16
|
+
current: m,
|
|
17
|
+
loading: r,
|
|
18
18
|
data: d,
|
|
19
19
|
run: n
|
|
20
|
-
} = D(
|
|
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.
|
|
29
|
+
console.warn(u, t), r.value = !1;
|
|
30
30
|
}
|
|
31
|
-
}), p =
|
|
32
|
-
total:
|
|
33
|
-
current:
|
|
34
|
-
pageSize:
|
|
35
|
-
})),
|
|
36
|
-
() => P(d.value,
|
|
37
|
-
),
|
|
38
|
-
e.value[l] = t.page, 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:
|
|
45
|
+
data: f,
|
|
46
46
|
pagination: p,
|
|
47
|
-
loading:
|
|
47
|
+
loading: r,
|
|
48
48
|
run: n,
|
|
49
|
-
onPageChange:
|
|
49
|
+
onPageChange: y,
|
|
50
50
|
onQuery: K
|
|
51
51
|
};
|
|
52
52
|
};
|
|
53
53
|
export {
|
|
54
|
-
|
|
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.
|
|
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
|
-
"
|
|
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
|
-
"
|
|
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
|
-
"
|
|
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
|
-
"
|
|
29
|
+
"typings": "./dist/esm/hooks/index.d.ts"
|
|
30
30
|
},
|
|
31
31
|
"./css/*": "./dist/css/*",
|
|
32
32
|
"./theme/*": "./dist/style/*"
|
|
@@ -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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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%"
|
|
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
|
|
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
|
|
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
|
package/src/hooks/http/index.ts
CHANGED