@lemon30_npm/csit-vue3 0.0.6 → 0.0.8
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/README.md +29 -10
- package/dist/csit-vue3.js +21 -13
- package/dist/lib/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/lib/axios/index.js +67 -0
- package/dist/lib/axios/middlewares/middleware-executor.js +15 -0
- package/dist/lib/axios/middlewares/request-middlewares/addXRequestedWith.js +12 -0
- package/dist/lib/axios/middlewares/request-middlewares/dafeiyiqi-disposeGetUrlParams.js +17 -0
- package/dist/lib/axios/middlewares/request-middlewares/logRequest.js +7 -0
- package/dist/lib/axios/middlewares/response-middlewares/formatResponseData.js +7 -0
- package/dist/lib/axios/middlewares/response-middlewares/handle-error/errorMessages.js +14 -0
- package/dist/lib/axios/middlewares/response-middlewares/handle-error/handleError.js +35 -0
- package/dist/lib/axios/middlewares/response-middlewares/handle-success/handleFileStream.js +11 -0
- package/dist/lib/axios/middlewares/response-middlewares/handle-success/handleSuccess.js +20 -0
- package/dist/lib/axios/middlewares/response-middlewares/handle-success/handleTokenInvalidToLogin.js +18 -0
- package/dist/lib/axios/middlewares/response-middlewares/logResponse.js +13 -0
- package/dist/lib/ci-blue-line-title/index.css +1 -0
- package/dist/lib/ci-blue-line-title/index.js +7 -0
- package/dist/lib/ci-blue-line-title/index.vue.js +7 -0
- package/dist/lib/ci-blue-line-title/index.vue2.js +29 -0
- package/dist/lib/ci-common-list/ci-common-list-layout/index.css +1 -0
- package/dist/lib/ci-common-list/ci-common-list-layout/index.js +7 -0
- package/dist/lib/ci-common-list/ci-common-list-layout/index.vue.js +7 -0
- package/dist/lib/ci-common-list/ci-common-list-layout/index.vue2.js +87 -0
- package/dist/lib/ci-common-list/ci-common-list-pagination/index.js +7 -0
- package/dist/lib/ci-common-list/ci-common-list-pagination/index.vue.js +7 -0
- package/dist/lib/ci-common-list/ci-common-list-pagination/index.vue2.js +31 -0
- package/dist/lib/ci-common-list/ci-common-list-query/index.css +1 -0
- package/dist/lib/ci-common-list/ci-common-list-query/index.js +7 -0
- package/dist/lib/ci-common-list/ci-common-list-query/index.vue.js +7 -0
- package/dist/lib/ci-common-list/ci-common-list-query/index.vue2.js +80 -0
- package/dist/lib/ci-common-list/ci-common-list-start-end-datepicker/index.css +1 -0
- package/dist/lib/ci-common-list/ci-common-list-start-end-datepicker/index.js +7 -0
- package/dist/lib/ci-common-list/ci-common-list-start-end-datepicker/index.vue.js +7 -0
- package/dist/lib/ci-common-list/ci-common-list-start-end-datepicker/index.vue2.js +51 -0
- package/dist/lib/ci-dictionary-select/config.js +18 -0
- package/dist/lib/ci-dictionary-select/index.css +0 -0
- package/dist/lib/ci-dictionary-select/index.js +7 -0
- package/dist/lib/ci-dictionary-select/index.vue.js +7 -0
- package/dist/lib/ci-dictionary-select/index.vue2.js +78 -0
- package/dist/lib/ci-echarts/ci-echart-ChinaMap/index.css +1 -0
- package/dist/lib/ci-echarts/ci-echart-ChinaMap/index.js +7 -0
- package/dist/lib/ci-echarts/ci-echart-ChinaMap/index.vue.js +7 -0
- package/dist/lib/ci-echarts/ci-echart-ChinaMap/index.vue2.js +77 -0
- package/dist/lib/ci-echarts/ci-echart-ChinaMap/model/ChinaGeoJson.js +911 -0
- package/dist/lib/ci-echarts/ci-echart-ChinaMap/model/index.js +14 -0
- package/dist/lib/ci-echarts/ci-echart-ChinaMap/model/options.js +278 -0
- package/dist/lib/ci-echarts/ci-echart-bar/index.css +1 -0
- package/dist/lib/ci-echarts/ci-echart-bar/index.js +10 -0
- package/dist/lib/ci-echarts/ci-echart-bar/index.vue.js +7 -0
- package/dist/lib/ci-echarts/ci-echart-bar/index.vue2.js +42 -0
- package/dist/lib/ci-echarts/ci-echart-bar/model/options.js +22 -0
- package/dist/lib/ci-echarts/ci-echart-pie/index.css +1 -0
- package/dist/lib/ci-echarts/ci-echart-pie/index.js +10 -0
- package/dist/lib/ci-echarts/ci-echart-pie/index.vue.js +7 -0
- package/dist/lib/ci-echarts/ci-echart-pie/index.vue2.js +50 -0
- package/dist/lib/ci-echarts/ci-echart-pie/model/options.js +38 -0
- package/dist/lib/ci-element-plus/ci-el-date-picker-daterange/index.css +1 -0
- package/dist/lib/ci-element-plus/ci-el-date-picker-daterange/index.js +7 -0
- package/dist/lib/ci-element-plus/ci-el-date-picker-daterange/index.vue.js +7 -0
- package/dist/lib/ci-element-plus/ci-el-date-picker-daterange/index.vue2.js +77 -0
- package/dist/lib/ci-element-plus/ci-el-date-picker-daterange/model/index.js +47 -0
- package/dist/lib/ci-no-data-status/images/No-data-available.png.js +4 -0
- package/dist/lib/ci-no-data-status/index.css +1 -0
- package/dist/lib/ci-no-data-status/index.js +7 -0
- package/dist/lib/ci-no-data-status/index.vue.js +7 -0
- package/dist/lib/ci-no-data-status/index.vue2.js +25 -0
- package/dist/lib/ci-page-header/index.css +1 -0
- package/dist/lib/ci-page-header/index.js +7 -0
- package/dist/lib/ci-page-header/index.vue.js +7 -0
- package/dist/lib/ci-page-header/index.vue2.js +60 -0
- package/dist/lib/ci-svg-icon/index.js +8 -0
- package/dist/lib/ci-svg-icon/index.vue.js +26 -0
- package/dist/lib/ci-svg-icon/index.vue2.js +4 -0
- package/dist/lib/ci-time-line-list/index.css +1 -0
- package/dist/lib/ci-time-line-list/index.js +7 -0
- package/dist/lib/ci-time-line-list/index.vue.js +7 -0
- package/dist/lib/ci-time-line-list/index.vue2.js +49 -0
- package/dist/lib/ci-time-line-list/model/index.js +56 -0
- package/dist/lib/ci-upload/computed/index.js +16 -0
- package/dist/lib/ci-upload/expose/index.js +25 -0
- package/dist/lib/ci-upload/hooks/useUpload.js +58 -0
- package/dist/lib/ci-upload/hooks/useUploadRetry.js +45 -0
- package/dist/lib/ci-upload/icons/icon-loading-blue.svg.js +4 -0
- package/dist/lib/ci-upload/icons/icon-upload-btn-disabled.svg.js +4 -0
- package/dist/lib/ci-upload/icons/icon-upload-btn-hover.svg.js +4 -0
- package/dist/lib/ci-upload/icons/icon-upload-btn.svg.js +4 -0
- package/dist/lib/ci-upload/icons/icon-upload-fail.svg.js +4 -0
- package/dist/lib/ci-upload/icons/icon-upload-retry.svg.js +4 -0
- package/dist/lib/ci-upload/icons/icon-upload-success.svg.js +4 -0
- package/dist/lib/ci-upload/icons/icons-file-extension/dmg.svg.js +4 -0
- package/dist/lib/ci-upload/icons/icons-file-extension/doc.svg.js +4 -0
- package/dist/lib/ci-upload/icons/icons-file-extension/docx.svg.js +4 -0
- package/dist/lib/ci-upload/icons/icons-file-extension/file-type-default.svg.js +4 -0
- package/dist/lib/ci-upload/icons/icons-file-extension/gd.svg.js +4 -0
- package/dist/lib/ci-upload/icons/icons-file-extension/jpg.svg.js +4 -0
- package/dist/lib/ci-upload/icons/icons-file-extension/jpge.svg.js +4 -0
- package/dist/lib/ci-upload/icons/icons-file-extension/ofd.svg.js +4 -0
- package/dist/lib/ci-upload/icons/icons-file-extension/pdf.svg.js +4 -0
- package/dist/lib/ci-upload/icons/icons-file-extension/png.svg.js +4 -0
- package/dist/lib/ci-upload/icons/icons-file-extension/rar.svg.js +4 -0
- package/dist/lib/ci-upload/icons/icons-file-extension/sep.svg.js +4 -0
- package/dist/lib/ci-upload/icons/icons-file-extension/txt.svg.js +4 -0
- package/dist/lib/ci-upload/icons/icons-file-extension/wps.svg.js +4 -0
- package/dist/lib/ci-upload/icons/icons-file-extension/wpt.svg.js +4 -0
- package/dist/lib/ci-upload/icons/icons-file-extension/xls.svg.js +4 -0
- package/dist/lib/ci-upload/icons/icons-file-extension/xlsx.svg.js +4 -0
- package/dist/lib/ci-upload/icons/icons-file-extension/zip.svg.js +4 -0
- package/dist/lib/ci-upload/index.css +1 -0
- package/dist/lib/ci-upload/index.js +8 -0
- package/dist/lib/ci-upload/index.vue.js +7 -0
- package/dist/lib/ci-upload/index.vue2.js +385 -0
- package/dist/lib/ci-upload/props/index.js +48 -0
- package/dist/lib/ci-upload/styles/index.css +1 -0
- package/dist/lib/ci-upload/utils/file-icon-maps.js +50 -0
- package/dist/lib/ci-upload/utils/file.js +25 -0
- package/dist/lib/components/components-global/SvgIcon/index.vue.js +26 -0
- package/dist/lib/components/components-global/SvgIcon/index.vue2.js +4 -0
- package/dist/lib/components/index.js +85 -0
- package/dist/lib/config/env-config/index.js +4 -0
- package/dist/lib/config/system-config/projectSettings.js +7 -0
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/utils/system/useSystem.js +9 -0
- package/dist/types/ci-blue-line-title/index.d.ts +3 -0
- package/dist/types/ci-blue-line-title/index.vue.d.ts +14 -0
- package/dist/types/ci-blue-line-title/type.d.ts +4 -0
- package/dist/types/ci-common-list/ci-common-list-layout/index.d.ts +2 -0
- package/dist/types/ci-common-list/ci-common-list-layout/index.vue.d.ts +19 -0
- package/dist/types/ci-common-list/ci-common-list-pagination/index.d.ts +3 -0
- package/dist/types/ci-common-list/ci-common-list-pagination/index.vue.d.ts +7 -0
- package/dist/types/ci-common-list/ci-common-list-pagination/type.d.ts +5 -0
- package/dist/types/ci-common-list/ci-common-list-query/index.d.ts +2 -0
- package/dist/types/ci-common-list/ci-common-list-query/index.vue.d.ts +12 -0
- package/dist/types/ci-common-list/ci-common-list-start-end-datepicker/index.d.ts +3 -0
- package/dist/types/ci-common-list/ci-common-list-start-end-datepicker/index.vue.d.ts +15 -0
- package/dist/types/ci-common-list/ci-common-list-start-end-datepicker/type.d.ts +7 -0
- package/dist/types/ci-dictionary-select/config.d.ts +14 -0
- package/dist/types/ci-dictionary-select/index.d.ts +3 -0
- package/dist/types/ci-dictionary-select/index.vue.d.ts +14 -0
- package/dist/types/ci-dictionary-select/model/index.d.ts +8 -0
- package/dist/types/ci-dictionary-select/type.d.ts +16 -0
- package/dist/types/ci-echarts/ci-echart-ChinaMap/index.d.ts +3 -0
- package/dist/types/ci-echarts/ci-echart-ChinaMap/index.vue.d.ts +17 -0
- package/dist/types/ci-echarts/ci-echart-ChinaMap/model/ChinaGeoJson.d.ts +33 -0
- package/dist/types/ci-echarts/ci-echart-ChinaMap/model/index.d.ts +16 -0
- package/dist/types/ci-echarts/ci-echart-ChinaMap/model/options.d.ts +110 -0
- package/dist/types/ci-echarts/ci-echart-ChinaMap/type.d.ts +18 -0
- package/dist/types/ci-echarts/ci-echart-bar/index.d.ts +3 -0
- package/dist/types/ci-echarts/ci-echart-bar/index.vue.d.ts +8 -0
- package/dist/types/ci-echarts/ci-echart-bar/model/option-illegality-active-type-distribution.d.ts +63 -0
- package/dist/types/ci-echarts/ci-echart-bar/model/options.d.ts +17 -0
- package/dist/types/ci-echarts/ci-echart-bar/type.d.ts +27 -0
- package/dist/types/ci-echarts/ci-echart-pie/index.d.ts +3 -0
- package/dist/types/ci-echarts/ci-echart-pie/index.vue.d.ts +8 -0
- package/dist/types/ci-echarts/ci-echart-pie/model/option-data-distribution.d.ts +77 -0
- package/dist/types/ci-echarts/ci-echart-pie/model/options.d.ts +30 -0
- package/dist/types/ci-echarts/ci-echart-pie/type.d.ts +26 -0
- package/dist/types/ci-element-plus/ci-el-date-picker-daterange/index.d.ts +3 -0
- package/dist/types/ci-element-plus/ci-el-date-picker-daterange/index.vue.d.ts +24 -0
- package/dist/types/ci-element-plus/ci-el-date-picker-daterange/model/index.d.ts +4 -0
- package/dist/types/ci-element-plus/ci-el-date-picker-daterange/type.d.ts +12 -0
- package/dist/types/ci-no-data-status/index.d.ts +3 -0
- package/dist/types/ci-no-data-status/index.vue.d.ts +11 -0
- package/dist/types/ci-no-data-status/type.d.ts +3 -0
- package/dist/types/ci-page-header/index.d.ts +3 -0
- package/dist/types/ci-page-header/index.vue.d.ts +21 -0
- package/dist/types/ci-page-header/type.d.ts +7 -0
- package/dist/types/ci-svg-icon/index.d.ts +4 -0
- package/dist/types/ci-svg-icon/index.vue.d.ts +8 -0
- package/dist/types/ci-svg-icon/type.d.ts +7 -0
- package/dist/types/ci-time-line-list/index.d.ts +3 -0
- package/dist/types/ci-time-line-list/index.vue.d.ts +14 -0
- package/dist/types/ci-time-line-list/model/index.d.ts +5 -0
- package/dist/types/ci-time-line-list/type.d.ts +8 -0
- package/dist/types/ci-upload/computed/index.d.ts +8 -0
- package/dist/types/ci-upload/expose/index.d.ts +17 -0
- package/dist/types/ci-upload/hooks/useUpload.d.ts +8 -0
- package/dist/types/ci-upload/hooks/useUploadRetry.d.ts +13 -0
- package/dist/types/ci-upload/index.d.ts +3 -0
- package/dist/types/ci-upload/index.vue.d.ts +56 -0
- package/dist/types/ci-upload/props/index.d.ts +27 -0
- package/dist/types/ci-upload/type.d.ts +39 -0
- package/dist/types/ci-upload/utils/file-icon-maps.d.ts +1 -0
- package/dist/types/ci-upload/utils/file.d.ts +8 -0
- package/package.json +19 -14
package/README.md
CHANGED
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
# 🧩 csit-vue3 组件库
|
|
2
2
|
|
|
3
|
-
> 一个基于 **Vue 3** + **Element Plus** 封装的业务组件库,提供统一的 UI
|
|
3
|
+
> 一个基于 **Vue 3** + **Element Plus** 封装的业务组件库,提供统一的 UI 规范和业务逻辑组件,提升团队开发效率。
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
## 📦 安装方式
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
# 推荐使用 pnpm
|
|
11
|
-
pnpm add @lemon30/csit-vue3
|
|
12
10
|
|
|
13
|
-
#
|
|
14
|
-
npm install
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
# 使用 npm
|
|
12
|
+
npm install csit-vue3
|
|
13
|
+
|
|
14
|
+
# 或 yarn
|
|
15
|
+
yarn add csit-vue3
|
|
16
|
+
|
|
17
|
+
# 或 pnpm
|
|
18
|
+
pnpm add csit-vue3
|
|
19
|
+
|
|
17
20
|
```
|
|
18
21
|
|
|
19
|
-
#### ⚠️ 注意:该组件库依赖以下环境,请确保你的项目已安装(
|
|
22
|
+
#### ⚠️ 注意:该组件库依赖以下环境,请确保你的项目已安装(如果你使用Vue 3项目脚手架,请忽略):
|
|
20
23
|
|
|
21
24
|
> 版本可自行升级,无影响
|
|
22
25
|
|
|
@@ -27,6 +30,10 @@ yarn add @lemon30/csit-vue3
|
|
|
27
30
|
- "@element-plus/icons-vue": "^2.3.1"
|
|
28
31
|
- "axios": "^1.7.7"
|
|
29
32
|
- "nanoid": "^5.0.8"
|
|
33
|
+
- "pinia": "^2.2.6"
|
|
34
|
+
- "vue-router": "^4.4.5"
|
|
35
|
+
- "moment": "^2.30.1"
|
|
36
|
+
- "lodash": "^4.17.21"
|
|
30
37
|
|
|
31
38
|
---
|
|
32
39
|
|
|
@@ -39,9 +46,9 @@ import { createApp } from "vue";
|
|
|
39
46
|
import App from "./App.vue";
|
|
40
47
|
|
|
41
48
|
// 引入组件库
|
|
42
|
-
import CsitVue3 from "
|
|
49
|
+
import CsitVue3 from "csit-vue3";
|
|
43
50
|
// 引入 csit-vue3 样式
|
|
44
|
-
import "
|
|
51
|
+
import "csit-vue3/dist/index.css";
|
|
45
52
|
|
|
46
53
|
const app = createApp(App);
|
|
47
54
|
|
|
@@ -50,6 +57,18 @@ app.use(CsitVue3);
|
|
|
50
57
|
app.mount("#app");
|
|
51
58
|
```
|
|
52
59
|
|
|
60
|
+
组件库默认支持**按需引入**,你可以只引入你所需要的组件,而无需引入整个组件库:
|
|
61
|
+
|
|
62
|
+
```ts
|
|
63
|
+
// main.ts
|
|
64
|
+
import { CiUpload } from 'csit-vue3'
|
|
65
|
+
// 全局使用某个组件
|
|
66
|
+
app.use(CiUpload)
|
|
67
|
+
|
|
68
|
+
// 单个组件中使用某个组件 - 直接引入 无需注册
|
|
69
|
+
import { CiPageHeader } from 'csit-vue3'
|
|
70
|
+
```
|
|
71
|
+
|
|
53
72
|
## 🧩 示例组件使用
|
|
54
73
|
|
|
55
74
|
```html
|
package/dist/csit-vue3.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as x,
|
|
1
|
+
import { defineComponent as x, createElementBlock as f, openBlock as n, createElementVNode as p, renderSlot as L, normalizeStyle as W, toDisplayString as I, ref as h, watch as T, nextTick as S, onBeforeUnmount as y1, reactive as z1, createVNode as F, mergeProps as Q1, withCtx as v, Fragment as R, renderList as C1, createBlock as P, computed as z, onMounted as x1, createCommentVNode as Q, normalizeClass as Y, createTextVNode as q, useAttrs as q1, unref as N, mergeDefaults as T1, useSlots as W1, createSlots as K1, normalizeProps as H1, guardReactiveProps as Y1 } from "vue";
|
|
2
2
|
import * as X from "echarts/core";
|
|
3
3
|
import { TitleComponent as X1, TooltipComponent as I1, LegendComponent as D1, GridComponent as J1, DataZoomComponent as $1, VisualMapComponent as e5, MarkPointComponent as t5, ToolboxComponent as C5 } from "echarts/components";
|
|
4
4
|
import { PieChart as o5, BarChart as s5, MapChart as i5, ScatterChart as a5 } from "echarts/charts";
|
|
@@ -2077,7 +2077,8 @@ const M2 = { class: "CommonListQuery" }, _2 = { class: "query-actions" }, Z2 = {
|
|
|
2077
2077
|
default: v(() => d[2] || (d[2] = [
|
|
2078
2078
|
q("查询")
|
|
2079
2079
|
])),
|
|
2080
|
-
_: 1
|
|
2080
|
+
_: 1,
|
|
2081
|
+
__: [2]
|
|
2081
2082
|
}),
|
|
2082
2083
|
F(m, {
|
|
2083
2084
|
onClick: d[1] || (d[1] = (c) => g.$emit("reset"))
|
|
@@ -2085,7 +2086,8 @@ const M2 = { class: "CommonListQuery" }, _2 = { class: "query-actions" }, Z2 = {
|
|
|
2085
2086
|
default: v(() => d[3] || (d[3] = [
|
|
2086
2087
|
q("重置")
|
|
2087
2088
|
])),
|
|
2088
|
-
_: 1
|
|
2089
|
+
_: 1,
|
|
2090
|
+
__: [3]
|
|
2089
2091
|
}),
|
|
2090
2092
|
t.value ? (n(), P(m, {
|
|
2091
2093
|
key: 1,
|
|
@@ -2094,7 +2096,8 @@ const M2 = { class: "CommonListQuery" }, _2 = { class: "query-actions" }, Z2 = {
|
|
|
2094
2096
|
default: v(() => d[5] || (d[5] = [
|
|
2095
2097
|
q("收起")
|
|
2096
2098
|
])),
|
|
2097
|
-
_: 1
|
|
2099
|
+
_: 1,
|
|
2100
|
+
__: [5]
|
|
2098
2101
|
})) : (n(), P(m, {
|
|
2099
2102
|
key: 0,
|
|
2100
2103
|
type: "primary",
|
|
@@ -2105,7 +2108,8 @@ const M2 = { class: "CommonListQuery" }, _2 = { class: "query-actions" }, Z2 = {
|
|
|
2105
2108
|
p("span", null, "更多筛选", -1),
|
|
2106
2109
|
p("div", { class: "down-triangle" }, null, -1)
|
|
2107
2110
|
])),
|
|
2108
|
-
_: 1
|
|
2111
|
+
_: 1,
|
|
2112
|
+
__: [4]
|
|
2109
2113
|
}))
|
|
2110
2114
|
])
|
|
2111
2115
|
], 6)
|
|
@@ -2519,7 +2523,7 @@ const p0 = {
|
|
|
2519
2523
|
name: "CiUpload"
|
|
2520
2524
|
}, R0 = /* @__PURE__ */ x({
|
|
2521
2525
|
...b0,
|
|
2522
|
-
props: /* @__PURE__ */
|
|
2526
|
+
props: /* @__PURE__ */ T1({
|
|
2523
2527
|
action: {},
|
|
2524
2528
|
downloadUrl: {},
|
|
2525
2529
|
uploadBtnText: {},
|
|
@@ -2543,7 +2547,7 @@ const p0 = {
|
|
|
2543
2547
|
}, p0),
|
|
2544
2548
|
emits: ["update:fileList", "onSuccess", "onRemove", "onChange", "onError"],
|
|
2545
2549
|
setup(e, { expose: t, emit: C }) {
|
|
2546
|
-
const s =
|
|
2550
|
+
const s = W1(), l = h(), o = h(!1), a = h([]), { checkUploadStatus: g } = n0(a), d = e, { customHttpRequest: m } = N1(d.axiosInstance), c = C;
|
|
2547
2551
|
t({
|
|
2548
2552
|
checkUploadStatus: g
|
|
2549
2553
|
});
|
|
@@ -2631,7 +2635,7 @@ const p0 = {
|
|
|
2631
2635
|
"on-error": y,
|
|
2632
2636
|
"http-request": N(m),
|
|
2633
2637
|
"show-file-list": !1
|
|
2634
|
-
}, i.$attrs),
|
|
2638
|
+
}, i.$attrs), K1({
|
|
2635
2639
|
default: v(() => [
|
|
2636
2640
|
N(H) ? L(i.$slots, "default", { key: 0 }, void 0, !0) : (n(), f(R, { key: 1 }, [
|
|
2637
2641
|
i.drag ? (n(), f(R, { key: 0 }, [
|
|
@@ -2680,7 +2684,8 @@ const p0 = {
|
|
|
2680
2684
|
}, null, -1)),
|
|
2681
2685
|
p("span", m0, I(i.uploadBtnText), 1)
|
|
2682
2686
|
]),
|
|
2683
|
-
_: 1
|
|
2687
|
+
_: 1,
|
|
2688
|
+
__: [4, 5, 6]
|
|
2684
2689
|
}, 8, ["disabled"]))
|
|
2685
2690
|
], 64))
|
|
2686
2691
|
]),
|
|
@@ -2698,7 +2703,7 @@ const p0 = {
|
|
|
2698
2703
|
C1(N(V1), (u, U) => ({
|
|
2699
2704
|
name: U,
|
|
2700
2705
|
fn: v((U1) => [
|
|
2701
|
-
L(i.$slots, U,
|
|
2706
|
+
L(i.$slots, U, H1(Y1(U1 || {})), void 0, !0)
|
|
2702
2707
|
])
|
|
2703
2708
|
}))
|
|
2704
2709
|
]), 1040, ["class", "action", "file-list", "accept", "limit", "multiple", "drag", "disabled", "before-upload", "http-request"])),
|
|
@@ -2741,7 +2746,8 @@ const p0 = {
|
|
|
2741
2746
|
default: v(() => r[7] || (r[7] = [
|
|
2742
2747
|
q(" 在线预览 ")
|
|
2743
2748
|
])),
|
|
2744
|
-
_: 2
|
|
2749
|
+
_: 2,
|
|
2750
|
+
__: [7]
|
|
2745
2751
|
}, 1032, ["onClick"]),
|
|
2746
2752
|
F(J, { direction: "vertical" })
|
|
2747
2753
|
], 64)) : Q("", !0),
|
|
@@ -2769,7 +2775,8 @@ const p0 = {
|
|
|
2769
2775
|
default: v(() => r[8] || (r[8] = [
|
|
2770
2776
|
q("删除")
|
|
2771
2777
|
])),
|
|
2772
|
-
_: 2
|
|
2778
|
+
_: 2,
|
|
2779
|
+
__: [8]
|
|
2773
2780
|
}, 1032, ["onClick"])) : Q("", !0)
|
|
2774
2781
|
], 64)) : Q("", !0)
|
|
2775
2782
|
])) : Q("", !0),
|
|
@@ -2806,7 +2813,8 @@ const p0 = {
|
|
|
2806
2813
|
default: v(() => r[11] || (r[11] = [
|
|
2807
2814
|
q(" 删除 ")
|
|
2808
2815
|
])),
|
|
2809
|
-
_: 2
|
|
2816
|
+
_: 2,
|
|
2817
|
+
__: [11]
|
|
2810
2818
|
}, 1032, ["onClick"]),
|
|
2811
2819
|
F(b, {
|
|
2812
2820
|
effect: "dark",
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import n from "axios";
|
|
2
|
+
import { executeAxiosMiddlewares as r } from "./middlewares/middleware-executor.js";
|
|
3
|
+
import { logRequest as a } from "./middlewares/request-middlewares/logRequest.js";
|
|
4
|
+
import { addXRequestedWith as i } from "./middlewares/request-middlewares/addXRequestedWith.js";
|
|
5
|
+
import { disposeGetUrlParams as m } from "./middlewares/request-middlewares/dafeiyiqi-disposeGetUrlParams.js";
|
|
6
|
+
import { logResponse as t } from "./middlewares/response-middlewares/logResponse.js";
|
|
7
|
+
import { handleTokenInvalidToLogin as c } from "./middlewares/response-middlewares/handle-success/handleTokenInvalidToLogin.js";
|
|
8
|
+
import { handleFileStream as p } from "./middlewares/response-middlewares/handle-success/handleFileStream.js";
|
|
9
|
+
import { handleSuccess as d } from "./middlewares/response-middlewares/handle-success/handleSuccess.js";
|
|
10
|
+
import { formatResponseData as l } from "./middlewares/response-middlewares/formatResponseData.js";
|
|
11
|
+
import { handleError as u } from "./middlewares/response-middlewares/handle-error/handleError.js";
|
|
12
|
+
const f = [
|
|
13
|
+
// 1. 记录请求日志
|
|
14
|
+
a,
|
|
15
|
+
// 2. 添加通用 X-Requested-With 到请求头
|
|
16
|
+
i,
|
|
17
|
+
/**
|
|
18
|
+
* 3. GET请求,需要处理参数拼接到Url中(目前打非一期列表等一些接口都是用的GET请求)
|
|
19
|
+
* PS: 打非二期设计人员设计的接口: 像只入参一个字段的设计成了GET请求(如此不需要中间件处理),其他但凡入参超过一个的全部设计成了post请求(如此更不需要中间件处理)
|
|
20
|
+
*/
|
|
21
|
+
m
|
|
22
|
+
], w = [
|
|
23
|
+
// 1. 记录响应日志
|
|
24
|
+
t,
|
|
25
|
+
// 2. 处理打非系统用户长时间不操作页面token失效自动去往登录页面
|
|
26
|
+
c,
|
|
27
|
+
// 3. 处理响应成功-文件流
|
|
28
|
+
p,
|
|
29
|
+
// 4. 处理响应成功
|
|
30
|
+
d,
|
|
31
|
+
// 5. 格式化响应数据
|
|
32
|
+
l
|
|
33
|
+
], x = [
|
|
34
|
+
// 1. 记录响应日志
|
|
35
|
+
t,
|
|
36
|
+
// 2. 处理错误响应
|
|
37
|
+
u
|
|
38
|
+
], s = n.create({
|
|
39
|
+
// 基础路径
|
|
40
|
+
baseURL: "/",
|
|
41
|
+
// 超时时间
|
|
42
|
+
timeout: 6e4
|
|
43
|
+
/**
|
|
44
|
+
* 这句话没用,在node.js环境中有用
|
|
45
|
+
* 浏览器环境: 在浏览器中,HTTP重定向是由浏览器本身处理的,而不是Axios。即使你配置了 maxRedirects: 0,浏览器会自动遵循重定向,Axios只会接收到重定向后的响应。因此,302状态码不会被Axios捕获。
|
|
46
|
+
* 解决方案: 浏览器中无法阻止自动重定向,通常需要后端支持,比如返回非标准的状态码(如299)或其他标志,让前端捕获。
|
|
47
|
+
*/
|
|
48
|
+
// maxRedirects: 0,
|
|
49
|
+
});
|
|
50
|
+
s.interceptors.request.use(
|
|
51
|
+
async (e) => (await r(f, { config: e }), e),
|
|
52
|
+
(e) => {
|
|
53
|
+
Promise.reject(e);
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
s.interceptors.response.use(
|
|
57
|
+
async (e) => {
|
|
58
|
+
const o = { response: e };
|
|
59
|
+
return await r(w, o), o.isFileStream ? (console.log("当前我是文件流数据"), o.response) : o.response.data;
|
|
60
|
+
},
|
|
61
|
+
async (e) => {
|
|
62
|
+
throw await r(x, { error: e }), new Error(e);
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
export {
|
|
66
|
+
s as default
|
|
67
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "axios";
|
|
2
|
+
async function o(n, r) {
|
|
3
|
+
let a = -1;
|
|
4
|
+
async function t(e) {
|
|
5
|
+
if (e <= a)
|
|
6
|
+
throw new Error("createdMiddlewareRunner_axios: 中间件不能被重复调用");
|
|
7
|
+
a = e;
|
|
8
|
+
const i = n[e];
|
|
9
|
+
i && await i(r, () => t(e + 1));
|
|
10
|
+
}
|
|
11
|
+
await t(0);
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
o as executeAxiosMiddlewares
|
|
15
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "axios";
|
|
2
|
+
async function s(e, t) {
|
|
3
|
+
console.log("axios-请求中间件: 添加通用 X-Requested-With 到请求头已执行"), e.config.headers = {
|
|
4
|
+
...e.config.headers,
|
|
5
|
+
// 问题:当用户长时间不操作页面 再次触发接口操作时 需要退出到登录页面 所需要的请求头
|
|
6
|
+
// 胡老师,说接口请求要带这个请求头,才能拦截 1001 的超时状态,前端再根据这个1001做登出
|
|
7
|
+
"X-Requested-With": "XMLHttpRequest"
|
|
8
|
+
}, await t();
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
s as addXRequestedWith
|
|
12
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import "axios";
|
|
2
|
+
async function l(r, e) {
|
|
3
|
+
const { config: o } = r;
|
|
4
|
+
if (o.method === "get" && o.params) {
|
|
5
|
+
console.log("axios-请求中间件: 当前请求是GET请求,需要处理参数拼接到Url中去,中间件已执行");
|
|
6
|
+
let s = o.url;
|
|
7
|
+
s += "?";
|
|
8
|
+
const t = Object.keys(o.params);
|
|
9
|
+
for (const a of t)
|
|
10
|
+
o.params[a] !== void 0 && o.params[a] !== null && (s += `${a}=${encodeURIComponent(o.params[a])}&`);
|
|
11
|
+
s = s.substring(0, s.length - 1), o.params = {}, o.url = s;
|
|
12
|
+
}
|
|
13
|
+
await e();
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
l as disposeGetUrlParams
|
|
17
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
400: "请求参数错误,请检查输入。",
|
|
3
|
+
401: "未授权,请重新登录。",
|
|
4
|
+
403: "禁止访问,您没有权限查看此内容。",
|
|
5
|
+
404: "资源未找到,请检查接口路径。",
|
|
6
|
+
429: "请求过多,请稍后再试。",
|
|
7
|
+
500: "服务器内部错误,请稍后重试。",
|
|
8
|
+
502: "网关错误,请联系管理员。",
|
|
9
|
+
503: "服务不可用,请稍后再试。"
|
|
10
|
+
}, r = "发生未知错误,请稍后再试。";
|
|
11
|
+
export {
|
|
12
|
+
r as defaultErrorMessage,
|
|
13
|
+
e as errorMessages
|
|
14
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ElNotification as s } from "element-plus";
|
|
2
|
+
import "axios";
|
|
3
|
+
import { errorMessages as l, defaultErrorMessage as n } from "./errorMessages.js";
|
|
4
|
+
const p = async (a, i) => {
|
|
5
|
+
console.log("axios-响应中间件(失败响应): 响应失败错误处理中间件已执行");
|
|
6
|
+
const e = a.error, { response: r } = e;
|
|
7
|
+
if (r) {
|
|
8
|
+
const { status: o } = r, t = l[o] || n;
|
|
9
|
+
console.log(`axios-响应中间件(失败响应)原因: HTTP 错误状态码: ${o}`), console.log(`axios-响应中间件(失败响应)原因: 错误信息: ${t}`), s({
|
|
10
|
+
type: "error",
|
|
11
|
+
title: `失败响应错误码:${o}`,
|
|
12
|
+
message: t,
|
|
13
|
+
duration: 6e3
|
|
14
|
+
// 6s自动关闭
|
|
15
|
+
}), o === 401 && console.log("axios-响应中间件(失败响应)原因: 我是401特定状态码执行自定义逻辑");
|
|
16
|
+
} else e.request ? (console.log(
|
|
17
|
+
`axios-响应中间件(失败响应)原因: 网络错误或服务器无响应,请检查网络连接。 ${e.message}`
|
|
18
|
+
), s({
|
|
19
|
+
type: "error",
|
|
20
|
+
title: "失败响应",
|
|
21
|
+
message: `失败响应原因:网络错误或服务器无响应,请检查网络连接。 ${e.message}`,
|
|
22
|
+
duration: 6e3
|
|
23
|
+
// 6s自动关闭
|
|
24
|
+
})) : (console.log(`axios-响应中间件(失败响应)原因: 请求配置错误: ${e.message}`), s({
|
|
25
|
+
type: "error",
|
|
26
|
+
title: "失败响应",
|
|
27
|
+
message: `失败响应原因:请求配置错误: ${e.message}`,
|
|
28
|
+
duration: 6e3
|
|
29
|
+
// 6s自动关闭
|
|
30
|
+
}));
|
|
31
|
+
await i();
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
p as handleError
|
|
35
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "axios";
|
|
2
|
+
const r = async (e, o) => {
|
|
3
|
+
if (console.log("axios-响应中间件(成功响应): 文件流处理中间件已执行"), e.response.config.responseType === "blob" || e.response.config.responseType === "arraybuffer") {
|
|
4
|
+
console.log("axios-响应中间件(成功响应): 文件流处理中间件已执行: 目前是文件流数据"), e.isFileStream = !0;
|
|
5
|
+
return;
|
|
6
|
+
}
|
|
7
|
+
console.log("axios-响应中间件(成功响应): 文件流处理中间件已执行: 目前不是文件流数据"), await o();
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
r as handleFileStream
|
|
11
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import "axios";
|
|
2
|
+
import { projectSettings as t } from "../../../../config/system-config/projectSettings.js";
|
|
3
|
+
import { ElNotification as a } from "element-plus";
|
|
4
|
+
const g = async (s, o) => {
|
|
5
|
+
if (console.log("axios-响应中间件(成功响应): 响应成功处理中间件已执行"), s.response.data.code === t.resSuccessCode)
|
|
6
|
+
console.log("axios-响应中间件(成功响应): 后台响应结果是成功编码: 0000"), await o();
|
|
7
|
+
else {
|
|
8
|
+
const e = s.response.data.code, r = s.response.data.message;
|
|
9
|
+
throw a({
|
|
10
|
+
type: "error",
|
|
11
|
+
title: `错误码:${e}`,
|
|
12
|
+
message: r,
|
|
13
|
+
duration: 6e3
|
|
14
|
+
// 6s自动关闭
|
|
15
|
+
}), e === "1001" && console.log("axios-响应中间件(成功响应): 我是1001特定状态码执行自定义逻辑"), new Error(`后台响应结果是异常编码: ${e}`);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
g as handleSuccess
|
|
20
|
+
};
|
package/dist/lib/axios/middlewares/response-middlewares/handle-success/handleTokenInvalidToLogin.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import "axios";
|
|
2
|
+
import t from "../../../../utils/system/useSystem.js";
|
|
3
|
+
const l = async (o, s) => {
|
|
4
|
+
if (o.response) {
|
|
5
|
+
console.log("axios-响应中间件(成功响应): 处理token失效中间件已执行");
|
|
6
|
+
const e = ["1001", "1002", "1003", "1009", "1011", "1012"];
|
|
7
|
+
if (o.response.status === 200 && e.includes(o.response.data.code)) {
|
|
8
|
+
const { TuiChuSystem: n } = t();
|
|
9
|
+
n();
|
|
10
|
+
} else
|
|
11
|
+
console.log(
|
|
12
|
+
"axios-响应中间件(成功响应): 处理token失效中间件已执行: token未失效,继续进行调用中间件链条"
|
|
13
|
+
), await s();
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
l as handleTokenInvalidToLogin
|
|
18
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "axios";
|
|
2
|
+
const r = async (o, s) => {
|
|
3
|
+
console.log("axios-响应中间件(成功响应 | 失败响应): 日志记录中间件执行"), o.response ? console.log(
|
|
4
|
+
"axios-响应中间件(成功响应 | 失败响应): 日志记录中间件: 成功响应-Response为:",
|
|
5
|
+
o.response
|
|
6
|
+
) : o.error && console.log(
|
|
7
|
+
"axios-响应中间件(成功响应 | 失败响应): 日志记录中间件: 失败响应-Error为:",
|
|
8
|
+
o.error
|
|
9
|
+
), await s();
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
r as logResponse
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.CiBlueLineTitle[data-v-bd337875]{margin-bottom:10px;display:flex;justify-content:space-between;align-items:center}.CiBlueLineTitle .BlueLineTitle-left[data-v-bd337875]{display:flex;align-items:center}.CiBlueLineTitle .line-title-area[data-v-bd337875]{margin-right:28px;display:flex;align-items:center}.CiBlueLineTitle .line-title-area .line-area[data-v-bd337875]{width:4px;height:14px;border-radius:4px;margin-right:6px}.CiBlueLineTitle .line-title-area .title-area[data-v-bd337875]{font-size:18px;font-weight:700}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { defineComponent as i, createElementBlock as n, openBlock as a, createElementVNode as e, renderSlot as l, normalizeStyle as r, toDisplayString as c } from "vue";
|
|
2
|
+
const d = { class: "CiBlueLineTitle" }, u = { class: "BlueLineTitle-left" }, _ = { class: "line-title-area" }, p = { class: "title-area" }, f = {
|
|
3
|
+
name: "CiBlueLineTitle"
|
|
4
|
+
}, v = /* @__PURE__ */ i({
|
|
5
|
+
...f,
|
|
6
|
+
props: {
|
|
7
|
+
title: { default: "默认标题" },
|
|
8
|
+
color: { default: "#3573f3" }
|
|
9
|
+
},
|
|
10
|
+
setup(o) {
|
|
11
|
+
const s = o;
|
|
12
|
+
return (t, m) => (a(), n("div", d, [
|
|
13
|
+
e("div", u, [
|
|
14
|
+
e("div", _, [
|
|
15
|
+
e("div", {
|
|
16
|
+
class: "line-area",
|
|
17
|
+
style: r({ backgroundColor: t.color })
|
|
18
|
+
}, null, 4),
|
|
19
|
+
e("span", p, c(s.title), 1)
|
|
20
|
+
]),
|
|
21
|
+
l(t.$slots, "slot-left", {}, void 0, !0)
|
|
22
|
+
]),
|
|
23
|
+
l(t.$slots, "slot-right", {}, void 0, !0)
|
|
24
|
+
]));
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
export {
|
|
28
|
+
v as default
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.CiCommonListLayout[data-v-c9c1da85]{height:100%;display:flex;flex-direction:column}.CiCommonListLayout .area-actions[data-v-c9c1da85]{background-color:#f0f2f5;padding-bottom:10px;flex-shrink:0}.CiCommonListLayout .area-query[data-v-c9c1da85]{padding:20px;border-bottom:1px solid #dbdbdb;flex-shrink:0}.CiCommonListLayout .area-query.hasLastComponentIsCommonListQuery[data-v-c9c1da85]{padding-bottom:6px}.CiCommonListLayout .area-table[data-v-c9c1da85]{padding:20px;flex-grow:1}.CiCommonListLayout .area-pagination[data-v-c9c1da85]{display:flex;justify-content:center;align-items:center;padding-bottom:20px;flex-shrink:0}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import w from "../../ci-no-data-status/index.vue.js";
|
|
2
|
+
import { defineComponent as $, ref as t, onMounted as q, nextTick as H, onBeforeUnmount as z, createElementBlock as r, openBlock as u, createCommentVNode as f, createElementVNode as E, renderSlot as c, normalizeClass as N, createVNode as A } from "vue";
|
|
3
|
+
const B = { class: "CiCommonListLayout" }, O = {
|
|
4
|
+
name: "CiCommonListLayout",
|
|
5
|
+
inheritAttrs: !1
|
|
6
|
+
}, T = /* @__PURE__ */ $({
|
|
7
|
+
...O,
|
|
8
|
+
setup(V) {
|
|
9
|
+
const d = t(null), o = t(null), y = t(null), h = t(null), m = t(null), g = t(!1), v = t(!1), p = t(0), C = t(0), L = t(0), _ = t(0), k = t(0), i = () => {
|
|
10
|
+
H(() => {
|
|
11
|
+
var e, n, s, a, l;
|
|
12
|
+
p.value = ((n = (e = h.value) == null ? void 0 : e.parentElement) == null ? void 0 : n.offsetHeight) || window.innerHeight, C.value = ((s = d.value) == null ? void 0 : s.offsetHeight) || 0, L.value = ((a = o.value) == null ? void 0 : a.offsetHeight) || 0, _.value = ((l = y.value) == null ? void 0 : l.offsetHeight) || 0, k.value = p.value - (C.value + L.value + _.value + 40);
|
|
13
|
+
});
|
|
14
|
+
}, b = () => {
|
|
15
|
+
o.value && (m.value = new ResizeObserver(() => {
|
|
16
|
+
i();
|
|
17
|
+
}), m.value.observe(o.value));
|
|
18
|
+
}, Q = () => {
|
|
19
|
+
if (o.value) {
|
|
20
|
+
const e = Array.from(o.value.children);
|
|
21
|
+
console.log("查询区域所有一级子元素:", e), g.value = e.some(
|
|
22
|
+
(n) => n.classList.contains("CommonListQuery")
|
|
23
|
+
), console.log(
|
|
24
|
+
"查询区域所有一级子元素内是否包含类名 CommonListQuery:",
|
|
25
|
+
g.value
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
}, R = () => {
|
|
29
|
+
var e, n, s;
|
|
30
|
+
if (o.value) {
|
|
31
|
+
const a = Array.from(o.value.children), l = a[a.length - 1];
|
|
32
|
+
v.value = l ? ((s = (n = (e = l.__vnode) == null ? void 0 : e.ctx) == null ? void 0 : n.type) == null ? void 0 : s.name) === "CommonListQuery" : !1, console.log(
|
|
33
|
+
"查询区域最后一个一级子元素是否是 CommonListQuery 组件:",
|
|
34
|
+
v.value
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
return q(() => {
|
|
39
|
+
i(), window.addEventListener("resize", i), b(), H(() => {
|
|
40
|
+
Q(), R();
|
|
41
|
+
});
|
|
42
|
+
}), z(() => {
|
|
43
|
+
var e;
|
|
44
|
+
window.removeEventListener("resize", i), (e = m.value) == null || e.disconnect();
|
|
45
|
+
}), (e, n) => {
|
|
46
|
+
const s = w;
|
|
47
|
+
return u(), r("div", B, [
|
|
48
|
+
e.$slots.actions ? (u(), r("div", {
|
|
49
|
+
key: 0,
|
|
50
|
+
ref_key: "actionsRef",
|
|
51
|
+
ref: d,
|
|
52
|
+
class: "area-actions"
|
|
53
|
+
}, [
|
|
54
|
+
c(e.$slots, "actions", {}, void 0, !0)
|
|
55
|
+
], 512)) : f("", !0),
|
|
56
|
+
e.$slots.query ? (u(), r("div", {
|
|
57
|
+
key: 1,
|
|
58
|
+
ref_key: "queryRef",
|
|
59
|
+
ref: o,
|
|
60
|
+
class: N(["area-query", { hasLastComponentIsCommonListQuery: v.value }])
|
|
61
|
+
}, [
|
|
62
|
+
c(e.$slots, "query", {}, void 0, !0)
|
|
63
|
+
], 2)) : f("", !0),
|
|
64
|
+
E("div", {
|
|
65
|
+
class: "area-table",
|
|
66
|
+
ref_key: "tableRef",
|
|
67
|
+
ref: h
|
|
68
|
+
}, [
|
|
69
|
+
c(e.$slots, "table", { tableHeight: k.value }, () => [
|
|
70
|
+
A(s)
|
|
71
|
+
], !0)
|
|
72
|
+
], 512),
|
|
73
|
+
e.$slots.pagination ? (u(), r("div", {
|
|
74
|
+
key: 2,
|
|
75
|
+
ref_key: "paginationRef",
|
|
76
|
+
ref: y,
|
|
77
|
+
class: "area-pagination"
|
|
78
|
+
}, [
|
|
79
|
+
c(e.$slots, "pagination", {}, void 0, !0)
|
|
80
|
+
], 512)) : f("", !0)
|
|
81
|
+
]);
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
export {
|
|
86
|
+
T as default
|
|
87
|
+
};
|