@jnrs/vue-core 1.2.1 → 1.2.3
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/components/JnDatetime.vue.d.ts +6 -0
- package/dist/components/JnDialog.vue.d.ts +35 -0
- package/dist/components/JnFileUpload.vue.d.ts +441 -0
- package/dist/components/JnPagination.vue.d.ts +29 -0
- package/dist/components/JnSelectTemplate.vue.d.ts +508 -0
- package/dist/components/index.d.ts +8 -1
- package/dist/components/index.js +1720 -140
- package/dist/composables/index.d.ts +2 -1
- package/dist/composables/index.js +3 -122
- package/dist/composables/useMouseSelection.d.ts +21 -0
- package/dist/composables/useReactivityTableHeight.d.ts +19 -0
- package/dist/index-CWC6ffog.js +3386 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -3275
- package/dist/locales/en/components.d.ts +15 -0
- package/dist/locales/en/index.d.ts +15 -0
- package/dist/locales/i18next.d.ts +2 -1
- package/dist/locales/index.js +34 -4
- package/dist/locales/zhCn/components.d.ts +15 -0
- package/dist/locales/zhCn/index.d.ts +15 -0
- package/dist/request/axios.d.ts +3 -3
- package/dist/request/index.d.ts +1 -0
- package/dist/request/index.js +4 -0
- package/dist/types/base.d.ts +63 -0
- package/dist/useMouseSelection-v7Ud0vBn.js +207 -0
- package/package.json +6 -3
- package/dist/composables/useAsyncTableHeight.d.ts +0 -15
|
@@ -31,5 +31,20 @@ declare const _default: {
|
|
|
31
31
|
viewPDF: string;
|
|
32
32
|
downloadFile: string;
|
|
33
33
|
};
|
|
34
|
+
JnImportAndExport: {
|
|
35
|
+
dialogTitle: string;
|
|
36
|
+
dialogFormItem: string;
|
|
37
|
+
downloadImportTemplate: string;
|
|
38
|
+
submit: string;
|
|
39
|
+
loading: string;
|
|
40
|
+
noImportApi: string;
|
|
41
|
+
rulesImport: string;
|
|
42
|
+
exportDynamicTitle: string;
|
|
43
|
+
confirmButtonText: string;
|
|
44
|
+
cancelButtonText: string;
|
|
45
|
+
messageBoxConfirm: string;
|
|
46
|
+
messageBoxConfirmTitle: string;
|
|
47
|
+
importSuccess: string;
|
|
48
|
+
};
|
|
34
49
|
};
|
|
35
50
|
export default _default;
|
|
@@ -33,6 +33,21 @@ declare const _default: {
|
|
|
33
33
|
viewPDF: string;
|
|
34
34
|
downloadFile: string;
|
|
35
35
|
};
|
|
36
|
+
JnImportAndExport: {
|
|
37
|
+
dialogTitle: string;
|
|
38
|
+
dialogFormItem: string;
|
|
39
|
+
downloadImportTemplate: string;
|
|
40
|
+
submit: string;
|
|
41
|
+
loading: string;
|
|
42
|
+
noImportApi: string;
|
|
43
|
+
rulesImport: string;
|
|
44
|
+
exportDynamicTitle: string;
|
|
45
|
+
confirmButtonText: string;
|
|
46
|
+
cancelButtonText: string;
|
|
47
|
+
messageBoxConfirm: string;
|
|
48
|
+
messageBoxConfirmTitle: string;
|
|
49
|
+
importSuccess: string;
|
|
50
|
+
};
|
|
36
51
|
};
|
|
37
52
|
};
|
|
38
53
|
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
declare const i18n: import('vue-i18n').I18n<{}, {}, {}, string, false>;
|
|
2
|
+
export default i18n;
|
package/dist/locales/index.js
CHANGED
|
@@ -30,8 +30,23 @@ const e = {
|
|
|
30
30
|
JnPdfView: {
|
|
31
31
|
viewPDF: "预览PDF",
|
|
32
32
|
downloadFile: "下载文件"
|
|
33
|
+
},
|
|
34
|
+
JnImportAndExport: {
|
|
35
|
+
dialogTitle: "数据导入",
|
|
36
|
+
dialogFormItem: "数据文件",
|
|
37
|
+
downloadImportTemplate: "下载数据模板",
|
|
38
|
+
submit: "提交",
|
|
39
|
+
loading: "处理中...",
|
|
40
|
+
noImportApi: "请配置导入接口函数",
|
|
41
|
+
rulesImport: "请上传",
|
|
42
|
+
exportDynamicTitle: "请填写参数后进行数据导出",
|
|
43
|
+
confirmButtonText: "确定",
|
|
44
|
+
cancelButtonText: "取消",
|
|
45
|
+
messageBoxConfirm: "确定要导出吗?",
|
|
46
|
+
messageBoxConfirmTitle: "操作确认",
|
|
47
|
+
importSuccess: "导入成功"
|
|
33
48
|
}
|
|
34
|
-
},
|
|
49
|
+
}, t = {
|
|
35
50
|
"@jnrs/vue-core": {
|
|
36
51
|
components: e
|
|
37
52
|
}
|
|
@@ -67,13 +82,28 @@ const e = {
|
|
|
67
82
|
JnPdfView: {
|
|
68
83
|
viewPDF: "Preview PDF",
|
|
69
84
|
downloadFile: "Download File"
|
|
85
|
+
},
|
|
86
|
+
JnImportAndExport: {
|
|
87
|
+
dialogTitle: "Data Import",
|
|
88
|
+
dialogFormItem: "Data File",
|
|
89
|
+
downloadImportTemplate: "Download Template",
|
|
90
|
+
submit: "Submit",
|
|
91
|
+
loading: "Processing...",
|
|
92
|
+
noImportApi: "Please configure the import API function",
|
|
93
|
+
rulesImport: "Please upload a file",
|
|
94
|
+
exportDynamicTitle: "Please fill in the parameters before exporting data",
|
|
95
|
+
confirmButtonText: "Confirm",
|
|
96
|
+
cancelButtonText: "Cancel",
|
|
97
|
+
messageBoxConfirm: "Are you sure you want to export?",
|
|
98
|
+
messageBoxConfirmTitle: "Confirmation",
|
|
99
|
+
importSuccess: "Import successful"
|
|
70
100
|
}
|
|
71
|
-
},
|
|
101
|
+
}, n = {
|
|
72
102
|
"@jnrs/vue-core": {
|
|
73
103
|
components: o
|
|
74
104
|
}
|
|
75
105
|
};
|
|
76
106
|
export {
|
|
77
|
-
|
|
78
|
-
|
|
107
|
+
n as en,
|
|
108
|
+
t as zhCn
|
|
79
109
|
};
|
|
@@ -31,5 +31,20 @@ declare const _default: {
|
|
|
31
31
|
viewPDF: string;
|
|
32
32
|
downloadFile: string;
|
|
33
33
|
};
|
|
34
|
+
JnImportAndExport: {
|
|
35
|
+
dialogTitle: string;
|
|
36
|
+
dialogFormItem: string;
|
|
37
|
+
downloadImportTemplate: string;
|
|
38
|
+
submit: string;
|
|
39
|
+
loading: string;
|
|
40
|
+
noImportApi: string;
|
|
41
|
+
rulesImport: string;
|
|
42
|
+
exportDynamicTitle: string;
|
|
43
|
+
confirmButtonText: string;
|
|
44
|
+
cancelButtonText: string;
|
|
45
|
+
messageBoxConfirm: string;
|
|
46
|
+
messageBoxConfirmTitle: string;
|
|
47
|
+
importSuccess: string;
|
|
48
|
+
};
|
|
34
49
|
};
|
|
35
50
|
export default _default;
|
|
@@ -33,6 +33,21 @@ declare const _default: {
|
|
|
33
33
|
viewPDF: string;
|
|
34
34
|
downloadFile: string;
|
|
35
35
|
};
|
|
36
|
+
JnImportAndExport: {
|
|
37
|
+
dialogTitle: string;
|
|
38
|
+
dialogFormItem: string;
|
|
39
|
+
downloadImportTemplate: string;
|
|
40
|
+
submit: string;
|
|
41
|
+
loading: string;
|
|
42
|
+
noImportApi: string;
|
|
43
|
+
rulesImport: string;
|
|
44
|
+
exportDynamicTitle: string;
|
|
45
|
+
confirmButtonText: string;
|
|
46
|
+
cancelButtonText: string;
|
|
47
|
+
messageBoxConfirm: string;
|
|
48
|
+
messageBoxConfirmTitle: string;
|
|
49
|
+
importSuccess: string;
|
|
50
|
+
};
|
|
36
51
|
};
|
|
37
52
|
};
|
|
38
53
|
};
|
package/dist/request/axios.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BusinessRequest, BusinessResponse } from '@jnrs/
|
|
1
|
+
import { BusinessRequest, BusinessResponse } from '@jnrs/shared/request';
|
|
2
2
|
/**
|
|
3
3
|
* axios 请求方法(泛型拓展)
|
|
4
4
|
*/
|
|
5
|
-
declare const
|
|
6
|
-
export {
|
|
5
|
+
declare const axiosRequest: <T = BusinessResponse>(options: BusinessRequest) => Promise<T>;
|
|
6
|
+
export { axiosRequest };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './axios';
|
package/dist/types/base.d.ts
CHANGED
|
@@ -10,3 +10,66 @@ export interface MenuItem {
|
|
|
10
10
|
redirect?: string;
|
|
11
11
|
children?: MenuItem[];
|
|
12
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* Element 尺寸
|
|
15
|
+
*/
|
|
16
|
+
export type ElSize = '' | 'large' | 'default' | 'small';
|
|
17
|
+
/**
|
|
18
|
+
* Element 按钮类型
|
|
19
|
+
*/
|
|
20
|
+
export type ElButtonType = 'default' | 'primary' | 'success' | 'info' | 'warning' | 'text' | 'danger';
|
|
21
|
+
/**
|
|
22
|
+
* 文件信息
|
|
23
|
+
*/
|
|
24
|
+
export interface Attachment {
|
|
25
|
+
/**
|
|
26
|
+
* 数据 id
|
|
27
|
+
*/
|
|
28
|
+
id: number;
|
|
29
|
+
/**
|
|
30
|
+
* 文件 id
|
|
31
|
+
*/
|
|
32
|
+
documentId: number;
|
|
33
|
+
/**
|
|
34
|
+
* 文件名
|
|
35
|
+
*/
|
|
36
|
+
fileName: string;
|
|
37
|
+
/**
|
|
38
|
+
* 文件名唯一标识(用于文件获取 API)
|
|
39
|
+
*/
|
|
40
|
+
uniqueFileName: string;
|
|
41
|
+
/**
|
|
42
|
+
* MIME 类型
|
|
43
|
+
*/
|
|
44
|
+
fileType: string;
|
|
45
|
+
/**
|
|
46
|
+
* 文件大小 单位:字节(Bytes)
|
|
47
|
+
*/
|
|
48
|
+
fileSize: number;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* 分页
|
|
52
|
+
*/
|
|
53
|
+
export interface Pagination {
|
|
54
|
+
/**
|
|
55
|
+
* 当前页码
|
|
56
|
+
*/
|
|
57
|
+
pageNo: number;
|
|
58
|
+
/**
|
|
59
|
+
* 每页大小
|
|
60
|
+
*/
|
|
61
|
+
pageSize: number;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* 分页列表数据
|
|
65
|
+
*/
|
|
66
|
+
export interface PageTableData<T> extends Pagination {
|
|
67
|
+
/**
|
|
68
|
+
* 数据列表
|
|
69
|
+
*/
|
|
70
|
+
list: T[];
|
|
71
|
+
/**
|
|
72
|
+
* 数据总数
|
|
73
|
+
*/
|
|
74
|
+
count: number;
|
|
75
|
+
}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { ref as P, onActivated as L, onDeactivated as B, onMounted as q, onUnmounted as D } from "vue";
|
|
2
|
+
var N = typeof global == "object" && global && global.Object === Object && global, C = typeof self == "object" && self && self.Object === Object && self, $ = N || C || Function("return this")(), T = $.Symbol, H = Object.prototype, W = H.hasOwnProperty, F = H.toString, h = T ? T.toStringTag : void 0;
|
|
3
|
+
function G(e) {
|
|
4
|
+
var t = W.call(e, h), c = e[h];
|
|
5
|
+
try {
|
|
6
|
+
e[h] = void 0;
|
|
7
|
+
var i = !0;
|
|
8
|
+
} catch {
|
|
9
|
+
}
|
|
10
|
+
var n = F.call(e);
|
|
11
|
+
return i && (t ? e[h] = c : delete e[h]), n;
|
|
12
|
+
}
|
|
13
|
+
var U = Object.prototype, z = U.toString;
|
|
14
|
+
function X(e) {
|
|
15
|
+
return z.call(e);
|
|
16
|
+
}
|
|
17
|
+
var Y = "[object Null]", J = "[object Undefined]", I = T ? T.toStringTag : void 0;
|
|
18
|
+
function K(e) {
|
|
19
|
+
return e == null ? e === void 0 ? J : Y : I && I in Object(e) ? G(e) : X(e);
|
|
20
|
+
}
|
|
21
|
+
function Q(e) {
|
|
22
|
+
return e != null && typeof e == "object";
|
|
23
|
+
}
|
|
24
|
+
var V = "[object Symbol]";
|
|
25
|
+
function Z(e) {
|
|
26
|
+
return typeof e == "symbol" || Q(e) && K(e) == V;
|
|
27
|
+
}
|
|
28
|
+
var ee = /\s/;
|
|
29
|
+
function te(e) {
|
|
30
|
+
for (var t = e.length; t-- && ee.test(e.charAt(t)); )
|
|
31
|
+
;
|
|
32
|
+
return t;
|
|
33
|
+
}
|
|
34
|
+
var ne = /^\s+/;
|
|
35
|
+
function ie(e) {
|
|
36
|
+
return e && e.slice(0, te(e) + 1).replace(ne, "");
|
|
37
|
+
}
|
|
38
|
+
function M(e) {
|
|
39
|
+
var t = typeof e;
|
|
40
|
+
return e != null && (t == "object" || t == "function");
|
|
41
|
+
}
|
|
42
|
+
var R = NaN, oe = /^[-+]0x[0-9a-f]+$/i, re = /^0b[01]+$/i, ce = /^0o[0-7]+$/i, se = parseInt;
|
|
43
|
+
function k(e) {
|
|
44
|
+
if (typeof e == "number")
|
|
45
|
+
return e;
|
|
46
|
+
if (Z(e))
|
|
47
|
+
return R;
|
|
48
|
+
if (M(e)) {
|
|
49
|
+
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
50
|
+
e = M(t) ? t + "" : t;
|
|
51
|
+
}
|
|
52
|
+
if (typeof e != "string")
|
|
53
|
+
return e === 0 ? e : +e;
|
|
54
|
+
e = ie(e);
|
|
55
|
+
var c = re.test(e);
|
|
56
|
+
return c || ce.test(e) ? se(e.slice(2), c ? 2 : 8) : oe.test(e) ? R : +e;
|
|
57
|
+
}
|
|
58
|
+
var j = function() {
|
|
59
|
+
return $.Date.now();
|
|
60
|
+
}, ae = "Expected a function", ue = Math.max, fe = Math.min;
|
|
61
|
+
function de(e, t, c) {
|
|
62
|
+
var i, n, o, f, s, a, b = 0, y = !1, u = !1, d = !0;
|
|
63
|
+
if (typeof e != "function")
|
|
64
|
+
throw new TypeError(ae);
|
|
65
|
+
t = k(t) || 0, M(c) && (y = !!c.leading, u = "maxWait" in c, o = u ? ue(k(c.maxWait) || 0, t) : o, d = "trailing" in c ? !!c.trailing : d);
|
|
66
|
+
function l(r) {
|
|
67
|
+
var g = i, x = n;
|
|
68
|
+
return i = n = void 0, b = r, f = e.apply(x, g), f;
|
|
69
|
+
}
|
|
70
|
+
function m(r) {
|
|
71
|
+
return b = r, s = setTimeout(S, t), y ? l(r) : f;
|
|
72
|
+
}
|
|
73
|
+
function p(r) {
|
|
74
|
+
var g = r - a, x = r - b, E = t - g;
|
|
75
|
+
return u ? fe(E, o - x) : E;
|
|
76
|
+
}
|
|
77
|
+
function v(r) {
|
|
78
|
+
var g = r - a, x = r - b;
|
|
79
|
+
return a === void 0 || g >= t || g < 0 || u && x >= o;
|
|
80
|
+
}
|
|
81
|
+
function S() {
|
|
82
|
+
var r = j();
|
|
83
|
+
if (v(r))
|
|
84
|
+
return O(r);
|
|
85
|
+
s = setTimeout(S, p(r));
|
|
86
|
+
}
|
|
87
|
+
function O(r) {
|
|
88
|
+
return s = void 0, d && i ? l(r) : (i = n = void 0, f);
|
|
89
|
+
}
|
|
90
|
+
function _() {
|
|
91
|
+
s !== void 0 && clearTimeout(s), b = 0, i = a = n = s = void 0;
|
|
92
|
+
}
|
|
93
|
+
function A() {
|
|
94
|
+
return s === void 0 ? f : O(j());
|
|
95
|
+
}
|
|
96
|
+
function w() {
|
|
97
|
+
var r = j(), g = v(r);
|
|
98
|
+
if (i = arguments, n = this, a = r, g) {
|
|
99
|
+
if (s === void 0)
|
|
100
|
+
return m(a);
|
|
101
|
+
if (u)
|
|
102
|
+
return clearTimeout(s), s = setTimeout(S, t), l(a);
|
|
103
|
+
}
|
|
104
|
+
return s === void 0 && (s = setTimeout(S, t)), f;
|
|
105
|
+
}
|
|
106
|
+
return w.cancel = _, w.flush = A, w;
|
|
107
|
+
}
|
|
108
|
+
const le = 40, me = 40;
|
|
109
|
+
function xe({
|
|
110
|
+
className: e = "el-table",
|
|
111
|
+
bottomGap: t = le + me
|
|
112
|
+
} = {}) {
|
|
113
|
+
const c = P(500), i = de(
|
|
114
|
+
() => {
|
|
115
|
+
const n = document.querySelector(`.${e}`);
|
|
116
|
+
if (n) {
|
|
117
|
+
const o = n.getBoundingClientRect(), f = window.innerHeight, s = o.top + t, a = f - s;
|
|
118
|
+
c.value = a > 100 ? a : 100;
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
300,
|
|
122
|
+
{ leading: !1 }
|
|
123
|
+
);
|
|
124
|
+
return L(() => {
|
|
125
|
+
i(), window.addEventListener("resize", i);
|
|
126
|
+
}), B(() => {
|
|
127
|
+
window.removeEventListener("resize", i);
|
|
128
|
+
}), { maxHeight: c };
|
|
129
|
+
}
|
|
130
|
+
function he({
|
|
131
|
+
containerClass: e = "jn_table",
|
|
132
|
+
rowClass: t = "el-table__row",
|
|
133
|
+
callback: c = ge
|
|
134
|
+
} = {}) {
|
|
135
|
+
let i = !1, n = { x: 0, y: 0 }, o = { x: 0, y: 0 };
|
|
136
|
+
q(() => {
|
|
137
|
+
window.addEventListener("mouseup", a);
|
|
138
|
+
}), D(() => {
|
|
139
|
+
window.removeEventListener("mouseup", a);
|
|
140
|
+
}), L(() => {
|
|
141
|
+
window.addEventListener("mouseup", a);
|
|
142
|
+
}), B(() => {
|
|
143
|
+
window.removeEventListener("mouseup", a);
|
|
144
|
+
});
|
|
145
|
+
const f = (u) => {
|
|
146
|
+
window.addEventListener("mousemove", s), i = !1, n = { x: u.clientX, y: u.clientY }, o = { ...n };
|
|
147
|
+
}, s = (u) => {
|
|
148
|
+
o = { x: u.clientX, y: u.clientY }, Math.abs(o.x - n.x) > 5 && Math.abs(o.y - n.y) > 25 && (i = !0), i && b(), y();
|
|
149
|
+
}, a = () => {
|
|
150
|
+
window.removeEventListener("mousemove", s), i && (i = !1), y();
|
|
151
|
+
}, b = () => {
|
|
152
|
+
const d = document.querySelector(`.${e}`)?.querySelectorAll(`.${t}`);
|
|
153
|
+
if (!d)
|
|
154
|
+
return !1;
|
|
155
|
+
d.forEach((l) => {
|
|
156
|
+
const m = l.getBoundingClientRect();
|
|
157
|
+
m.right > Math.min(n.x, o.x) && m.left < Math.max(n.x, o.x) && m.bottom > Math.min(n.y, o.y) && m.top < Math.max(n.y, o.y) && c && c(l);
|
|
158
|
+
});
|
|
159
|
+
}, y = () => {
|
|
160
|
+
const u = document.querySelector(".useMouseSelection_fixedRectBox");
|
|
161
|
+
if (u) {
|
|
162
|
+
const d = Math.min(n.x, o.x) + "px", l = Math.min(n.y, o.y) + "px", m = Math.abs(o.x - n.x) + "px", p = Math.abs(o.y - n.y) + "px";
|
|
163
|
+
Object.assign(u.style, {
|
|
164
|
+
display: i ? "block" : "none",
|
|
165
|
+
left: d,
|
|
166
|
+
top: l,
|
|
167
|
+
width: m,
|
|
168
|
+
height: p
|
|
169
|
+
});
|
|
170
|
+
const v = document.querySelector(`.${e}`);
|
|
171
|
+
Object.assign(v.style, {
|
|
172
|
+
"user-select": i ? "none" : "auto"
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
return be(), {
|
|
177
|
+
handleMouseDown: f
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
const ge = (e) => {
|
|
181
|
+
const t = e.querySelector("input[type='checkbox']");
|
|
182
|
+
t && !t.checked && t.click();
|
|
183
|
+
}, be = () => {
|
|
184
|
+
if (!document.querySelector(".useMouseSelection_fixedRectBox")) {
|
|
185
|
+
const t = document.createElement("div");
|
|
186
|
+
t.className = "useMouseSelection_fixedRectBox", Object.assign(t.style, {
|
|
187
|
+
display: "none",
|
|
188
|
+
position: "fixed",
|
|
189
|
+
"z-index": 100,
|
|
190
|
+
border: "2px dashed #409eff",
|
|
191
|
+
"background-color": "rgba(64, 158, 255, 0.2)",
|
|
192
|
+
"pointer-events": "none",
|
|
193
|
+
"will-change": "transform"
|
|
194
|
+
}), document.body.appendChild(t);
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
export {
|
|
198
|
+
T as S,
|
|
199
|
+
he as a,
|
|
200
|
+
K as b,
|
|
201
|
+
Q as c,
|
|
202
|
+
de as d,
|
|
203
|
+
N as f,
|
|
204
|
+
M as i,
|
|
205
|
+
$ as r,
|
|
206
|
+
xe as u
|
|
207
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jnrs/vue-core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "巨能前端工程化开发,Vue 专用核心功能包。",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jnrs",
|
|
@@ -40,6 +40,10 @@
|
|
|
40
40
|
"import": "./dist/piniaStore/index.js",
|
|
41
41
|
"types": "./dist/piniaStore/index.d.ts"
|
|
42
42
|
},
|
|
43
|
+
"./request": {
|
|
44
|
+
"import": "./dist/request/index.js",
|
|
45
|
+
"types": "./dist/request/index.d.ts"
|
|
46
|
+
},
|
|
43
47
|
"./components": {
|
|
44
48
|
"import": "./dist/components/index.js",
|
|
45
49
|
"types": "./dist/components/index.d.ts"
|
|
@@ -58,8 +62,7 @@
|
|
|
58
62
|
"vue": "^3.5.22",
|
|
59
63
|
"vue-router": "^4.5.1",
|
|
60
64
|
"vue-i18n": "^9.14.5",
|
|
61
|
-
"@jnrs/shared": "1.1.
|
|
62
|
-
"@jnrs/core": "1.1.7"
|
|
65
|
+
"@jnrs/shared": "1.1.8"
|
|
63
66
|
},
|
|
64
67
|
"devDependencies": {
|
|
65
68
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @Author : TanRui
|
|
3
|
-
* @WeChat : Tan578853789
|
|
4
|
-
* @File : useAsyncTableHeight.ts
|
|
5
|
-
* @Date : 2025/12/09
|
|
6
|
-
* @Desc. : 根据视口动态计算表格高度
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* @param {*} className 表格类名,默认值 el-table,如果页面存在多个表格,则必须分别传入自定义类名
|
|
10
|
-
* @param {*} FOOT_HEIGHT 总底部高度
|
|
11
|
-
* @param {*} PADDING_HEIGHT 总边距
|
|
12
|
-
*/
|
|
13
|
-
export declare const useAsyncTableHeight: (className?: string, FOOT_HEIGHT?: number, PADDING_HEIGHT?: number) => {
|
|
14
|
-
maxHeight: import('vue').Ref<number, number>;
|
|
15
|
-
};
|