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.
Files changed (55) hide show
  1. package/es/index.mjs +67 -69
  2. package/lib/index.js +1 -1
  3. package/package.json +9 -9
  4. package/es/BatchImport.mjs +0 -202
  5. package/es/CustomSelect.mjs +0 -7
  6. package/es/CustomTitle.mjs +0 -7
  7. package/es/FileList.mjs +0 -7
  8. package/es/SearchBar.mjs +0 -7
  9. package/es/TreeSelect.mjs +0 -406
  10. package/es/TreeShowSelect.mjs +0 -82
  11. package/es/UploadFile.mjs +0 -7
  12. package/es/assets/TreeSelect.css +0 -1
  13. package/es/assets/TreeShowSelect.css +0 -1
  14. package/es/assets/layout2.css +0 -1
  15. package/es/assets/layout3.css +0 -1
  16. package/es/assets/layout4.css +0 -1
  17. package/es/assets/layout5.css +0 -1
  18. package/es/chunks/CustomTitle.BdP_XIUG.js +0 -6
  19. package/es/chunks/index.CGbx4Jkt.js +0 -9
  20. package/es/chunks/index.IgGaYZVs.js +0 -6
  21. package/es/chunks/layout.BF6B8tfH.js +0 -39
  22. package/es/chunks/layout.BLFdMVyE.js +0 -601
  23. package/es/chunks/layout.BbMgklJm.js +0 -230
  24. package/es/chunks/layout.BzQrppiO.js +0 -98
  25. package/es/chunks/layout.CmEFzav_.js +0 -149
  26. package/es/chunks/layout.DBrUEnal.CoUbm47v.js +0 -44
  27. package/es/chunks/layout.DTDMwNO7.js +0 -231
  28. package/es/chunks/layout.D_fCzVf0.js +0 -39
  29. package/es/chunks/layout.wck_IDgd.js +0 -121
  30. package/lib/BatchImport.js +0 -1
  31. package/lib/CustomSelect.js +0 -1
  32. package/lib/CustomTitle.js +0 -1
  33. package/lib/FileList.js +0 -1
  34. package/lib/SearchBar.js +0 -1
  35. package/lib/TreeSelect.js +0 -1
  36. package/lib/TreeShowSelect.js +0 -1
  37. package/lib/UploadFile.js +0 -1
  38. package/lib/assets/TreeSelect.css +0 -1
  39. package/lib/assets/TreeShowSelect.css +0 -1
  40. package/lib/assets/layout2.css +0 -1
  41. package/lib/assets/layout3.css +0 -1
  42. package/lib/assets/layout4.css +0 -1
  43. package/lib/assets/layout5.css +0 -1
  44. package/lib/chunks/CustomTitle.CgcOpfzd.js +0 -1
  45. package/lib/chunks/index.GQTJ5trc.js +0 -1
  46. package/lib/chunks/index.xDUmJAXE.js +0 -1
  47. package/lib/chunks/layout.BFpTjhr8.js +0 -1
  48. package/lib/chunks/layout.BQdjwrgQ.js +0 -1
  49. package/lib/chunks/layout.BbWwZ-k5.js +0 -1
  50. package/lib/chunks/layout.C6XpECNe.js +0 -1
  51. package/lib/chunks/layout.CsWdFS5P.js +0 -1
  52. package/lib/chunks/layout.CvV7N49b.js +0 -1
  53. package/lib/chunks/layout.DBrUEnal.BgxNZd_g.js +0 -1
  54. package/lib/chunks/layout.DC2f1UF4.js +0 -1
  55. package/lib/chunks/layout.DE2WIKAN.js +0 -1
package/es/index.mjs CHANGED
@@ -1,87 +1,85 @@
1
- import { AppIntro as e } from "./AppIntro.mjs";
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 a } from "./CustomDialog.mjs";
5
- import { CustomPagination as l } from "./CustomPagination.mjs";
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 { TreeSelect as p } from "./TreeSelect.mjs";
8
- import { TreeShowSelect as s } from "./TreeShowSelect.mjs";
9
- import { PageNotFound as c } from "./PageNotFound.mjs";
10
- import { UpdatePasswordDialog as f } from "./UpdatePasswordDialog.mjs";
11
- import { BUILD_BIG_TITLES as u, BUILD_STEPS as S, BUILD_TITLES as I, BUILD_TYPES as d, BuildComponents as T, STEP_ARROW_IMAGE as P } from "./BuildComponents.mjs";
12
- import { CustomTab as B } from "./CustomTab.mjs";
13
- import { PluginDetail as _, PluginDetailParamsTable as g } from "./PluginDetail.mjs";
14
- import { BatchImport as C, CustomSelect as D, CustomTitle as E, FileList as L, GlassProxy as y, IconEmpty as U, IconRenderer as b, IconSelect as h, SearchBar as x, UploadFile as F } from "color-star-custom-components";
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: e,
20
- BUILD_BIG_TITLES: u,
17
+ AppIntro: r,
18
+ BUILD_BIG_TITLES: c,
21
19
  BUILD_STEPS: S,
22
- BUILD_TITLES: I,
23
- BUILD_TYPES: d,
24
- BatchImport: C,
25
- BuildComponents: T,
26
- CustomDialog: a,
20
+ BUILD_TITLES: f,
21
+ BUILD_TYPES: u,
22
+ BatchImport: _,
23
+ BuildComponents: I,
24
+ CustomDialog: l,
27
25
  CustomDropdown: n,
28
- CustomPagination: l,
29
- CustomSelect: D,
30
- CustomTab: B,
31
- CustomTitle: E,
32
- FileList: L,
33
- GlassProxy: y,
26
+ CustomPagination: a,
27
+ CustomSelect: g,
28
+ CustomTab: d,
29
+ CustomTitle: C,
30
+ FileList: D,
31
+ GlassProxy: E,
34
32
  GradientButton: i,
35
- IconEmpty: U,
36
- IconRenderer: b,
37
- IconSelect: h,
38
- PageNotFound: c,
33
+ IconEmpty: L,
34
+ IconRenderer: y,
35
+ IconSelect: U,
36
+ PageNotFound: p,
39
37
  PaginationTable: m,
40
- PluginDetail: _,
41
- PluginDetailParamsTable: g,
42
- STEP_ARROW_IMAGE: P,
43
- SearchBar: x,
44
- TreeSelect: p,
45
- TreeShowSelect: s,
46
- UpdatePasswordDialog: f,
47
- UploadFile: F
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
- G.en.weekStart = 1;
50
- const w = (r) => {
47
+ F.en.weekStart = 1;
48
+ const G = (e) => {
51
49
  for (const t in o)
52
- o[t].install && r.use(o[t]);
53
- }, Q = {
54
- install: w
50
+ o[t].install && e.use(o[t]);
51
+ }, J = {
52
+ install: G
55
53
  };
56
54
  export {
57
- e as AppIntro,
58
- u as BUILD_BIG_TITLES,
55
+ r as AppIntro,
56
+ c as BUILD_BIG_TITLES,
59
57
  S as BUILD_STEPS,
60
- I as BUILD_TITLES,
61
- d as BUILD_TYPES,
62
- Z as BatchImport,
63
- T as BuildComponents,
64
- a as CustomDialog,
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
- l as CustomPagination,
67
- $ as CustomSelect,
68
- B as CustomTab,
69
- oo as CustomTitle,
70
- to as FileList,
71
- ro as GlassProxy,
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
- eo as IconEmpty,
74
- mo as IconRenderer,
75
- io as IconSelect,
76
- c as PageNotFound,
71
+ to as IconEmpty,
72
+ eo as IconRenderer,
73
+ ro as IconSelect,
74
+ p as PageNotFound,
77
75
  m as PaginationTable,
78
- _ as PluginDetail,
79
- g as PluginDetailParamsTable,
80
- P as STEP_ARROW_IMAGE,
81
- ao as SearchBar,
82
- p as TreeSelect,
83
- s as TreeShowSelect,
84
- f as UpdatePasswordDialog,
85
- lo as UploadFile,
86
- Q as default
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("./TreeSelect.js"),m=require("./TreeShowSelect.js"),T=require("./PageNotFound.js"),S=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:T.PageNotFound,PaginationTable:i.PaginationTable,PluginDetail:o.PluginDetail,PluginDetailParamsTable:o.PluginDetailParamsTable,STEP_ARROW_IMAGE:t.STEP_ARROW_IMAGE,SearchBar:e.SearchBar,TreeSelect:P.TreeSelect,TreeShowSelect:m.TreeShowSelect,UpdatePasswordDialog:S.UpdatePasswordDialog,UploadFile:e.UploadFile},Symbol.toStringTag,{value:"Module"}));p.dayjs.en.weekStart=1;const g=I=>{for(const n in r)r[n].install&&I.use(r[n])},D={install:g};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.TreeSelect=P.TreeSelect;exports.TreeShowSelect=m.TreeShowSelect;exports.PageNotFound=T.PageNotFound;exports.UpdatePasswordDialog=S.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,"UploadFile",{enumerable:!0,get:()=>e.UploadFile});exports.default=D;
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.60",
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.3"
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.1.11",
179
+ "vite": "^7.3.0",
180
180
  "vite-plugin-lib-inject-css": "^2.2.2",
181
- "vue": "^3.5.22",
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.13",
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
- "ling-yun-methods": "0.0.47",
191
- "color-message-aibox-vue": "0.0.64",
192
- "color-star-atom-style": "0.0.2"
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",
@@ -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
- };
@@ -1,7 +0,0 @@
1
- import { w as t } from "./chunks/index.bCzIhWFw.js";
2
- import { _ as o } from "./chunks/layout.wck_IDgd.js";
3
- const m = t(o);
4
- export {
5
- m as CustomSelect,
6
- m as default
7
- };
@@ -1,7 +0,0 @@
1
- import { w as t } from "./chunks/index.bCzIhWFw.js";
2
- import { C as o } from "./chunks/layout.D_fCzVf0.js";
3
- const a = t(o);
4
- export {
5
- a as CustomTitle,
6
- a as default
7
- };
package/es/FileList.mjs DELETED
@@ -1,7 +0,0 @@
1
- import { w as t } from "./chunks/index.bCzIhWFw.js";
2
- import { _ as o } from "./chunks/layout.CmEFzav_.js";
3
- const i = t(o);
4
- export {
5
- i as FileList,
6
- i as default
7
- };
package/es/SearchBar.mjs DELETED
@@ -1,7 +0,0 @@
1
- import { w as a } from "./chunks/index.bCzIhWFw.js";
2
- import { S as r } from "./chunks/layout.BLFdMVyE.js";
3
- const s = a(r);
4
- export {
5
- s as SearchBar,
6
- s as default
7
- };