ling-yun-custom-components 0.0.60 → 0.0.61
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/es/index.mjs +67 -69
- package/lib/index.js +1 -1
- package/package.json +9 -9
- package/es/BatchImport.mjs +0 -202
- package/es/CustomSelect.mjs +0 -7
- package/es/CustomTitle.mjs +0 -7
- package/es/FileList.mjs +0 -7
- package/es/SearchBar.mjs +0 -7
- package/es/TreeSelect.mjs +0 -406
- package/es/TreeShowSelect.mjs +0 -82
- package/es/UploadFile.mjs +0 -7
- package/es/assets/TreeSelect.css +0 -1
- package/es/assets/TreeShowSelect.css +0 -1
- package/es/assets/layout2.css +0 -1
- package/es/assets/layout3.css +0 -1
- package/es/assets/layout4.css +0 -1
- package/es/assets/layout5.css +0 -1
- package/es/chunks/CustomTitle.BdP_XIUG.js +0 -6
- package/es/chunks/index.CGbx4Jkt.js +0 -9
- package/es/chunks/index.IgGaYZVs.js +0 -6
- package/es/chunks/layout.BF6B8tfH.js +0 -39
- package/es/chunks/layout.BLFdMVyE.js +0 -601
- package/es/chunks/layout.BbMgklJm.js +0 -230
- package/es/chunks/layout.BzQrppiO.js +0 -98
- package/es/chunks/layout.CmEFzav_.js +0 -149
- package/es/chunks/layout.DBrUEnal.CoUbm47v.js +0 -44
- package/es/chunks/layout.DTDMwNO7.js +0 -231
- package/es/chunks/layout.D_fCzVf0.js +0 -39
- package/es/chunks/layout.wck_IDgd.js +0 -121
- package/lib/BatchImport.js +0 -1
- package/lib/CustomSelect.js +0 -1
- package/lib/CustomTitle.js +0 -1
- package/lib/FileList.js +0 -1
- package/lib/SearchBar.js +0 -1
- package/lib/TreeSelect.js +0 -1
- package/lib/TreeShowSelect.js +0 -1
- package/lib/UploadFile.js +0 -1
- package/lib/assets/TreeSelect.css +0 -1
- package/lib/assets/TreeShowSelect.css +0 -1
- package/lib/assets/layout2.css +0 -1
- package/lib/assets/layout3.css +0 -1
- package/lib/assets/layout4.css +0 -1
- package/lib/assets/layout5.css +0 -1
- package/lib/chunks/CustomTitle.CgcOpfzd.js +0 -1
- package/lib/chunks/index.GQTJ5trc.js +0 -1
- package/lib/chunks/index.xDUmJAXE.js +0 -1
- package/lib/chunks/layout.BFpTjhr8.js +0 -1
- package/lib/chunks/layout.BQdjwrgQ.js +0 -1
- package/lib/chunks/layout.BbWwZ-k5.js +0 -1
- package/lib/chunks/layout.C6XpECNe.js +0 -1
- package/lib/chunks/layout.CsWdFS5P.js +0 -1
- package/lib/chunks/layout.CvV7N49b.js +0 -1
- package/lib/chunks/layout.DBrUEnal.BgxNZd_g.js +0 -1
- package/lib/chunks/layout.DC2f1UF4.js +0 -1
- package/lib/chunks/layout.DE2WIKAN.js +0 -1
package/es/index.mjs
CHANGED
|
@@ -1,87 +1,85 @@
|
|
|
1
|
-
import { AppIntro as
|
|
1
|
+
import { AppIntro as r } from "./AppIntro.mjs";
|
|
2
2
|
import { PaginationTable as m } from "./PaginationTable.mjs";
|
|
3
3
|
import { GradientButton as i } from "./GradientButton.mjs";
|
|
4
|
-
import { CustomDialog as
|
|
5
|
-
import { CustomPagination as
|
|
4
|
+
import { CustomDialog as l } from "./CustomDialog.mjs";
|
|
5
|
+
import { CustomPagination as a } from "./CustomPagination.mjs";
|
|
6
6
|
import { CustomDropdown as n } from "./CustomDropdown.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { BatchImport as Z, CustomSelect as $, CustomTitle as oo, FileList as to, GlassProxy as ro, IconEmpty as eo, IconRenderer as mo, IconSelect as io, SearchBar as ao, UploadFile as lo } from "color-star-custom-components";
|
|
16
|
-
import { dayjs as G } from "element-plus";
|
|
7
|
+
import { PageNotFound as p } from "./PageNotFound.mjs";
|
|
8
|
+
import { UpdatePasswordDialog as s } from "./UpdatePasswordDialog.mjs";
|
|
9
|
+
import { BUILD_BIG_TITLES as c, BUILD_STEPS as S, BUILD_TITLES as f, BUILD_TYPES as u, BuildComponents as I, STEP_ARROW_IMAGE as T } from "./BuildComponents.mjs";
|
|
10
|
+
import { CustomTab as d } from "./CustomTab.mjs";
|
|
11
|
+
import { PluginDetail as P, PluginDetailParamsTable as B } from "./PluginDetail.mjs";
|
|
12
|
+
import { BatchImport as _, CustomSelect as g, CustomTitle as C, FileList as D, GlassProxy as E, IconEmpty as L, IconRenderer as y, IconSelect as U, SearchBar as b, TreeSelect as h, TreeShowSelect as w, UploadFile as x } from "color-star-custom-components";
|
|
13
|
+
import { BatchImport as V, CustomSelect as X, CustomTitle as Z, FileList as $, GlassProxy as oo, IconEmpty as to, IconRenderer as eo, IconSelect as ro, SearchBar as mo, TreeSelect as io, TreeShowSelect as lo, UploadFile as ao } from "color-star-custom-components";
|
|
14
|
+
import { dayjs as F } from "element-plus";
|
|
17
15
|
const o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
18
16
|
__proto__: null,
|
|
19
|
-
AppIntro:
|
|
20
|
-
BUILD_BIG_TITLES:
|
|
17
|
+
AppIntro: r,
|
|
18
|
+
BUILD_BIG_TITLES: c,
|
|
21
19
|
BUILD_STEPS: S,
|
|
22
|
-
BUILD_TITLES:
|
|
23
|
-
BUILD_TYPES:
|
|
24
|
-
BatchImport:
|
|
25
|
-
BuildComponents:
|
|
26
|
-
CustomDialog:
|
|
20
|
+
BUILD_TITLES: f,
|
|
21
|
+
BUILD_TYPES: u,
|
|
22
|
+
BatchImport: _,
|
|
23
|
+
BuildComponents: I,
|
|
24
|
+
CustomDialog: l,
|
|
27
25
|
CustomDropdown: n,
|
|
28
|
-
CustomPagination:
|
|
29
|
-
CustomSelect:
|
|
30
|
-
CustomTab:
|
|
31
|
-
CustomTitle:
|
|
32
|
-
FileList:
|
|
33
|
-
GlassProxy:
|
|
26
|
+
CustomPagination: a,
|
|
27
|
+
CustomSelect: g,
|
|
28
|
+
CustomTab: d,
|
|
29
|
+
CustomTitle: C,
|
|
30
|
+
FileList: D,
|
|
31
|
+
GlassProxy: E,
|
|
34
32
|
GradientButton: i,
|
|
35
|
-
IconEmpty:
|
|
36
|
-
IconRenderer:
|
|
37
|
-
IconSelect:
|
|
38
|
-
PageNotFound:
|
|
33
|
+
IconEmpty: L,
|
|
34
|
+
IconRenderer: y,
|
|
35
|
+
IconSelect: U,
|
|
36
|
+
PageNotFound: p,
|
|
39
37
|
PaginationTable: m,
|
|
40
|
-
PluginDetail:
|
|
41
|
-
PluginDetailParamsTable:
|
|
42
|
-
STEP_ARROW_IMAGE:
|
|
43
|
-
SearchBar:
|
|
44
|
-
TreeSelect:
|
|
45
|
-
TreeShowSelect:
|
|
46
|
-
UpdatePasswordDialog:
|
|
47
|
-
UploadFile:
|
|
38
|
+
PluginDetail: P,
|
|
39
|
+
PluginDetailParamsTable: B,
|
|
40
|
+
STEP_ARROW_IMAGE: T,
|
|
41
|
+
SearchBar: b,
|
|
42
|
+
TreeSelect: h,
|
|
43
|
+
TreeShowSelect: w,
|
|
44
|
+
UpdatePasswordDialog: s,
|
|
45
|
+
UploadFile: x
|
|
48
46
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
49
|
-
|
|
50
|
-
const
|
|
47
|
+
F.en.weekStart = 1;
|
|
48
|
+
const G = (e) => {
|
|
51
49
|
for (const t in o)
|
|
52
|
-
o[t].install &&
|
|
53
|
-
},
|
|
54
|
-
install:
|
|
50
|
+
o[t].install && e.use(o[t]);
|
|
51
|
+
}, J = {
|
|
52
|
+
install: G
|
|
55
53
|
};
|
|
56
54
|
export {
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
r as AppIntro,
|
|
56
|
+
c as BUILD_BIG_TITLES,
|
|
59
57
|
S as BUILD_STEPS,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
58
|
+
f as BUILD_TITLES,
|
|
59
|
+
u as BUILD_TYPES,
|
|
60
|
+
V as BatchImport,
|
|
61
|
+
I as BuildComponents,
|
|
62
|
+
l as CustomDialog,
|
|
65
63
|
n as CustomDropdown,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
64
|
+
a as CustomPagination,
|
|
65
|
+
X as CustomSelect,
|
|
66
|
+
d as CustomTab,
|
|
67
|
+
Z as CustomTitle,
|
|
68
|
+
$ as FileList,
|
|
69
|
+
oo as GlassProxy,
|
|
72
70
|
i as GradientButton,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
71
|
+
to as IconEmpty,
|
|
72
|
+
eo as IconRenderer,
|
|
73
|
+
ro as IconSelect,
|
|
74
|
+
p as PageNotFound,
|
|
77
75
|
m as PaginationTable,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
76
|
+
P as PluginDetail,
|
|
77
|
+
B as PluginDetailParamsTable,
|
|
78
|
+
T as STEP_ARROW_IMAGE,
|
|
79
|
+
mo as SearchBar,
|
|
80
|
+
io as TreeSelect,
|
|
81
|
+
lo as TreeShowSelect,
|
|
82
|
+
s as UpdatePasswordDialog,
|
|
83
|
+
ao as UploadFile,
|
|
84
|
+
J as default
|
|
87
85
|
};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./AppIntro.js"),i=require("./PaginationTable.js"),l=require("./GradientButton.js"),u=require("./CustomDialog.js"),s=require("./CustomPagination.js"),c=require("./CustomDropdown.js"),P=require("./
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./AppIntro.js"),i=require("./PaginationTable.js"),l=require("./GradientButton.js"),u=require("./CustomDialog.js"),s=require("./CustomPagination.js"),c=require("./CustomDropdown.js"),P=require("./PageNotFound.js"),m=require("./UpdatePasswordDialog.js"),t=require("./BuildComponents.js"),d=require("./CustomTab.js"),o=require("./PluginDetail.js"),e=require("color-star-custom-components"),p=require("element-plus"),r=Object.freeze(Object.defineProperty({__proto__:null,AppIntro:a.AppIntro,BUILD_BIG_TITLES:t.BUILD_BIG_TITLES,BUILD_STEPS:t.BUILD_STEPS,BUILD_TITLES:t.BUILD_TITLES,BUILD_TYPES:t.BUILD_TYPES,BatchImport:e.BatchImport,BuildComponents:t.BuildComponents,CustomDialog:u.CustomDialog,CustomDropdown:c.CustomDropdown,CustomPagination:s.CustomPagination,CustomSelect:e.CustomSelect,CustomTab:d.CustomTab,CustomTitle:e.CustomTitle,FileList:e.FileList,GlassProxy:e.GlassProxy,GradientButton:l.GradientButton,IconEmpty:e.IconEmpty,IconRenderer:e.IconRenderer,IconSelect:e.IconSelect,PageNotFound:P.PageNotFound,PaginationTable:i.PaginationTable,PluginDetail:o.PluginDetail,PluginDetailParamsTable:o.PluginDetailParamsTable,STEP_ARROW_IMAGE:t.STEP_ARROW_IMAGE,SearchBar:e.SearchBar,TreeSelect:e.TreeSelect,TreeShowSelect:e.TreeShowSelect,UpdatePasswordDialog:m.UpdatePasswordDialog,UploadFile:e.UploadFile},Symbol.toStringTag,{value:"Module"}));p.dayjs.en.weekStart=1;const S=T=>{for(const n in r)r[n].install&&T.use(r[n])},I={install:S};exports.AppIntro=a.AppIntro;exports.PaginationTable=i.PaginationTable;exports.GradientButton=l.GradientButton;exports.CustomDialog=u.CustomDialog;exports.CustomPagination=s.CustomPagination;exports.CustomDropdown=c.CustomDropdown;exports.PageNotFound=P.PageNotFound;exports.UpdatePasswordDialog=m.UpdatePasswordDialog;exports.BUILD_BIG_TITLES=t.BUILD_BIG_TITLES;exports.BUILD_STEPS=t.BUILD_STEPS;exports.BUILD_TITLES=t.BUILD_TITLES;exports.BUILD_TYPES=t.BUILD_TYPES;exports.BuildComponents=t.BuildComponents;exports.STEP_ARROW_IMAGE=t.STEP_ARROW_IMAGE;exports.CustomTab=d.CustomTab;exports.PluginDetail=o.PluginDetail;exports.PluginDetailParamsTable=o.PluginDetailParamsTable;Object.defineProperty(exports,"BatchImport",{enumerable:!0,get:()=>e.BatchImport});Object.defineProperty(exports,"CustomSelect",{enumerable:!0,get:()=>e.CustomSelect});Object.defineProperty(exports,"CustomTitle",{enumerable:!0,get:()=>e.CustomTitle});Object.defineProperty(exports,"FileList",{enumerable:!0,get:()=>e.FileList});Object.defineProperty(exports,"GlassProxy",{enumerable:!0,get:()=>e.GlassProxy});Object.defineProperty(exports,"IconEmpty",{enumerable:!0,get:()=>e.IconEmpty});Object.defineProperty(exports,"IconRenderer",{enumerable:!0,get:()=>e.IconRenderer});Object.defineProperty(exports,"IconSelect",{enumerable:!0,get:()=>e.IconSelect});Object.defineProperty(exports,"SearchBar",{enumerable:!0,get:()=>e.SearchBar});Object.defineProperty(exports,"TreeSelect",{enumerable:!0,get:()=>e.TreeSelect});Object.defineProperty(exports,"TreeShowSelect",{enumerable:!0,get:()=>e.TreeShowSelect});Object.defineProperty(exports,"UploadFile",{enumerable:!0,get:()=>e.UploadFile});exports.default=I;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ling-yun-custom-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.61",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"component library",
|
|
6
6
|
"ui framework",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"qs": "^6.14.0",
|
|
148
148
|
"unplugin-vue": "^7.0.2",
|
|
149
149
|
"vue-draggable-plus": "^0.6.0",
|
|
150
|
-
"vue-router": "^4.6.
|
|
150
|
+
"vue-router": "^4.6.4"
|
|
151
151
|
},
|
|
152
152
|
"devDependencies": {
|
|
153
153
|
"@commitlint/cli": "^20.1.0",
|
|
@@ -176,20 +176,20 @@
|
|
|
176
176
|
"stylelint-config-ali": "^2.3.0",
|
|
177
177
|
"stylelint-prettier": "^5.0.3",
|
|
178
178
|
"typescript": "~5.9.3",
|
|
179
|
-
"vite": "^7.
|
|
179
|
+
"vite": "^7.3.0",
|
|
180
180
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
181
|
-
"vue": "^3.5.
|
|
181
|
+
"vue": "^3.5.25",
|
|
182
182
|
"lodash": "^4.17.21"
|
|
183
183
|
},
|
|
184
184
|
"peerDependencies": {
|
|
185
185
|
"axios": "^1.8.2",
|
|
186
|
-
"vue": "^3.5.
|
|
186
|
+
"vue": "^3.5.25",
|
|
187
|
+
"color-star-atom-style": "0.0.2",
|
|
187
188
|
"color-message-lingyun-vue": "0.0.30",
|
|
188
|
-
"color-star-custom-components": "0.0.5",
|
|
189
189
|
"color-star-custom-methods": "0.0.10",
|
|
190
|
-
"
|
|
191
|
-
"color-message-aibox-vue": "0.0.
|
|
192
|
-
"
|
|
190
|
+
"color-star-custom-components": "0.0.7",
|
|
191
|
+
"color-message-aibox-vue": "0.0.70",
|
|
192
|
+
"ling-yun-methods": "0.0.47"
|
|
193
193
|
},
|
|
194
194
|
"optionalDependencies": {
|
|
195
195
|
"@ast-grep/napi-linux-x64-musl": "^0.39.6",
|
package/es/BatchImport.mjs
DELETED
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import { w as z } from "./chunks/index.bCzIhWFw.js";
|
|
2
|
-
import { createElementBlock as w, openBlock as s, Fragment as _, createElementVNode as r, toDisplayString as F, ref as g, computed as x, createBlock as D, unref as u, withCtx as i, createCommentVNode as c, mergeProps as q, createVNode as f, createTextVNode as R } from "vue";
|
|
3
|
-
import { ElDialog as L, ElIcon as P, ElButton as b } from "element-plus";
|
|
4
|
-
import { emitsMap as v, uploadFileType as h, codeMap as Q, messageSuccess as A } from "ling-yun-methods";
|
|
5
|
-
import { _ as G } from "./chunks/layout.BbMgklJm.js";
|
|
6
|
-
import { IconQuery as H } from "color-message-lingyun-vue";
|
|
7
|
-
const J = {
|
|
8
|
-
__name: "ImportResultContent",
|
|
9
|
-
props: {
|
|
10
|
-
uploadResData: {
|
|
11
|
-
type: Object,
|
|
12
|
-
default: () => ({})
|
|
13
|
-
},
|
|
14
|
-
templateConfig: {
|
|
15
|
-
type: Object,
|
|
16
|
-
default: () => ({})
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
setup(o) {
|
|
20
|
-
const d = o, T = () => {
|
|
21
|
-
const { ossUrl: y, fileName: t } = d.uploadResData;
|
|
22
|
-
d.templateConfig.downloadErrorFile(t, y, d.templateConfig.isNeedTransform);
|
|
23
|
-
};
|
|
24
|
-
return (y, t) => (s(), w(_, null, [
|
|
25
|
-
r("p", null, " 共" + F(o.uploadResData.total || 0) + "条数据,其中" + F(o.uploadResData.successTotal || 0) + "条数据成功," + F(o.uploadResData.failureTotal || 0) + "条失败 ", 1),
|
|
26
|
-
r("p", { style: { color: "var(--text-color-4)" } }, [
|
|
27
|
-
t[0] || (t[0] = r("span", null, "失败原因请下载", -1)),
|
|
28
|
-
r("span", {
|
|
29
|
-
class: "pointer",
|
|
30
|
-
style: { color: "var(--error-color-1)" },
|
|
31
|
-
onClick: T
|
|
32
|
-
}, " 错误报告 ")
|
|
33
|
-
])
|
|
34
|
-
], 64));
|
|
35
|
-
}
|
|
36
|
-
}, K = {
|
|
37
|
-
key: 0,
|
|
38
|
-
class: "flex items-center"
|
|
39
|
-
}, W = {
|
|
40
|
-
key: 0,
|
|
41
|
-
class: "flex items-center flex-1 fz-12"
|
|
42
|
-
}, X = { key: 1 }, Y = /* @__PURE__ */ Object.assign({
|
|
43
|
-
name: "BatchImport"
|
|
44
|
-
}, {
|
|
45
|
-
__name: "layout",
|
|
46
|
-
props: {
|
|
47
|
-
// 弹窗显示状态
|
|
48
|
-
modelValue: {
|
|
49
|
-
type: Boolean,
|
|
50
|
-
default: !1
|
|
51
|
-
},
|
|
52
|
-
// 弹窗标题
|
|
53
|
-
title: {
|
|
54
|
-
type: String,
|
|
55
|
-
default: "导入"
|
|
56
|
-
},
|
|
57
|
-
templateName: {
|
|
58
|
-
type: String,
|
|
59
|
-
default: "导入"
|
|
60
|
-
},
|
|
61
|
-
// 弹窗宽度
|
|
62
|
-
width: {
|
|
63
|
-
type: Number,
|
|
64
|
-
default: 520
|
|
65
|
-
},
|
|
66
|
-
// 模板下载配置
|
|
67
|
-
templateConfig: {
|
|
68
|
-
type: Object,
|
|
69
|
-
default: () => ({})
|
|
70
|
-
},
|
|
71
|
-
// 上传文件配置
|
|
72
|
-
uploadFileConfig: {
|
|
73
|
-
type: Object,
|
|
74
|
-
default: () => {
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
emits: [v.updateModelValue, v.uploadSuccess],
|
|
79
|
-
setup(o, { emit: d }) {
|
|
80
|
-
const T = {
|
|
81
|
-
templateFileName: "导入模板.xlsx"
|
|
82
|
-
}, y = {
|
|
83
|
-
uploadFileType: [h.xlsx, h.xls],
|
|
84
|
-
isCustomRequest: !0,
|
|
85
|
-
multiple: !1,
|
|
86
|
-
rowCount: 1,
|
|
87
|
-
maxCount: 1
|
|
88
|
-
}, t = o, k = d, p = g([]), m = x({
|
|
89
|
-
get() {
|
|
90
|
-
return t.modelValue;
|
|
91
|
-
},
|
|
92
|
-
set(l) {
|
|
93
|
-
k(v.updateModelValue, l);
|
|
94
|
-
}
|
|
95
|
-
}), I = x(() => n.value === "result" ? "导入结果" : t.title), N = x(() => ({
|
|
96
|
-
...y,
|
|
97
|
-
...t.uploadFileConfig
|
|
98
|
-
})), C = x(() => ({
|
|
99
|
-
...T,
|
|
100
|
-
...t.templateConfig
|
|
101
|
-
})), M = () => {
|
|
102
|
-
C.value.downloadTemplate({}, C.value.templateFileName);
|
|
103
|
-
}, n = g("upload"), E = g({}), U = () => {
|
|
104
|
-
m.value = !1;
|
|
105
|
-
};
|
|
106
|
-
function j(l, e) {
|
|
107
|
-
const a = l.name.split(".").pop(), V = `${e}.${a}`;
|
|
108
|
-
return new File([l], V, {
|
|
109
|
-
type: l.type,
|
|
110
|
-
lastModified: l.lastModified
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
const O = g(null), $ = async () => {
|
|
114
|
-
const l = t.uploadFileConfig?.fileName || p.value?.[0]?.raw?.name;
|
|
115
|
-
N.value?.apiConfig({
|
|
116
|
-
...N.value?.params,
|
|
117
|
-
file: j(p.value?.[0]?.raw, l)
|
|
118
|
-
}).then((e) => {
|
|
119
|
-
const { data: a } = e;
|
|
120
|
-
O.value = a;
|
|
121
|
-
const { failureTotal: V, successTotal: B } = a;
|
|
122
|
-
e.code === Q.success && (V ? (n.value = "result", E.value = a, B && k(v.uploadSuccess)) : (A(`文件导入成功,共导入数据:${B}条`), k(v.uploadSuccess), m.value = !1));
|
|
123
|
-
});
|
|
124
|
-
}, S = () => {
|
|
125
|
-
m.value = !1;
|
|
126
|
-
};
|
|
127
|
-
return (l, e) => (s(), D(u(L), {
|
|
128
|
-
modelValue: m.value,
|
|
129
|
-
"onUpdate:modelValue": e[1] || (e[1] = (a) => m.value = a),
|
|
130
|
-
title: I.value,
|
|
131
|
-
width: o.width,
|
|
132
|
-
"close-on-click-modal": !1,
|
|
133
|
-
"close-on-press-escape": !1,
|
|
134
|
-
onClose: S
|
|
135
|
-
}, {
|
|
136
|
-
footer: i(() => [
|
|
137
|
-
n.value === "upload" ? (s(), w("div", K, [
|
|
138
|
-
C.value?.downloadTemplate ? (s(), w("div", W, [
|
|
139
|
-
f(u(P), {
|
|
140
|
-
size: 14,
|
|
141
|
-
color: "var(--text-color-4)"
|
|
142
|
-
}, {
|
|
143
|
-
default: i(() => [
|
|
144
|
-
f(u(H))
|
|
145
|
-
]),
|
|
146
|
-
_: 1
|
|
147
|
-
}),
|
|
148
|
-
e[2] || (e[2] = r("div", { class: "text-74798c pd-l-4" }, "还没有模板?点击下载", -1)),
|
|
149
|
-
r("div", {
|
|
150
|
-
class: "text-3b64ff pointer",
|
|
151
|
-
onClick: M
|
|
152
|
-
}, " 《" + F(o.templateName) + "模板》 ", 1)
|
|
153
|
-
])) : c("", !0),
|
|
154
|
-
f(u(b), { onClick: S }, {
|
|
155
|
-
default: i(() => [...e[3] || (e[3] = [
|
|
156
|
-
R("取消", -1)
|
|
157
|
-
])]),
|
|
158
|
-
_: 1
|
|
159
|
-
}),
|
|
160
|
-
f(u(b), {
|
|
161
|
-
type: "primary",
|
|
162
|
-
onClick: $,
|
|
163
|
-
disabled: !p.value?.length
|
|
164
|
-
}, {
|
|
165
|
-
default: i(() => [...e[4] || (e[4] = [
|
|
166
|
-
R(" 确认 ", -1)
|
|
167
|
-
])]),
|
|
168
|
-
_: 1
|
|
169
|
-
}, 8, ["disabled"])
|
|
170
|
-
])) : c("", !0),
|
|
171
|
-
n.value === "result" ? (s(), w("div", X, [
|
|
172
|
-
f(u(b), {
|
|
173
|
-
type: "primary",
|
|
174
|
-
onClick: U
|
|
175
|
-
}, {
|
|
176
|
-
default: i(() => [...e[5] || (e[5] = [
|
|
177
|
-
R("我知道了", -1)
|
|
178
|
-
])]),
|
|
179
|
-
_: 1
|
|
180
|
-
})
|
|
181
|
-
])) : c("", !0)
|
|
182
|
-
]),
|
|
183
|
-
default: i(() => [
|
|
184
|
-
n.value === "upload" ? (s(), D(G, q({
|
|
185
|
-
key: 0,
|
|
186
|
-
modelValue: p.value,
|
|
187
|
-
"onUpdate:modelValue": e[0] || (e[0] = (a) => p.value = a)
|
|
188
|
-
}, N.value), null, 16, ["modelValue"])) : c("", !0),
|
|
189
|
-
n.value === "result" ? (s(), D(J, {
|
|
190
|
-
key: 1,
|
|
191
|
-
templateConfig: C.value,
|
|
192
|
-
uploadResData: E.value
|
|
193
|
-
}, null, 8, ["templateConfig", "uploadResData"])) : c("", !0)
|
|
194
|
-
]),
|
|
195
|
-
_: 1
|
|
196
|
-
}, 8, ["modelValue", "title", "width"]));
|
|
197
|
-
}
|
|
198
|
-
}), se = z(Y);
|
|
199
|
-
export {
|
|
200
|
-
se as BatchImport,
|
|
201
|
-
se as default
|
|
202
|
-
};
|
package/es/CustomSelect.mjs
DELETED
package/es/CustomTitle.mjs
DELETED
package/es/FileList.mjs
DELETED