hs-admin-ui 16.0.7 → 16.0.9
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/_plugin-vue_export-helper-VLDak8vc.cjs +12 -0
- package/dist/{_plugin-vue_export-helper-CZTmULB5.mjs → _plugin-vue_export-helper-Y3IFIQZf.js} +2503 -3902
- package/dist/bcIcon-BnzU9Y20.cjs +1 -0
- package/dist/bcIcon-CEW6HYbq.js +4 -0
- package/dist/bcIcon.vue_vue_type_script_setup_true_name_bcIcon_lang-B4FHqtSa.cjs +1 -0
- package/dist/bcIcon.vue_vue_type_script_setup_true_name_bcIcon_lang-BwEGGUoG.js +53 -0
- package/dist/bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-DeJm85cs.js +73610 -0
- package/dist/bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-Dl660Hz3.cjs +276 -0
- package/dist/components-BweH2evj.js +14236 -0
- package/dist/components-D4Q0gfqQ.cjs +3 -0
- package/dist/element-plus-ui.js +1 -0
- package/dist/element-plus-ui.mjs +17 -0
- package/dist/h5.js +1 -1
- package/dist/h5.mjs +21 -20
- package/dist/index-BMV_E6GB.js +33231 -0
- package/dist/index-BS6I1KCa.cjs +39 -0
- package/dist/index-BqER59zX.cjs +6 -0
- package/dist/index-fAYztMsu.js +1414 -0
- package/dist/index.js +18 -1
- package/dist/index.mjs +15382 -259
- package/dist/style.css +1 -1
- package/dist/vxe-table-ui.js +1 -0
- package/dist/vxe-table-ui.mjs +17 -0
- package/package.json +2 -1
- package/dist/_plugin-vue_export-helper-Dk80_hr9.js +0 -17
- package/dist/bcIcon-BOxvx3MK.js +0 -1
- package/dist/bcIcon-CPGxPh77.mjs +0 -4
- package/dist/index-Btv-sh19.js +0 -333
- package/dist/index-CbchlOT_.mjs +0 -136079
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index-BqER59zX.cjs");const l=require("./index-BS6I1KCa.cjs"),u=require("./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-Dl660Hz3.cjs");require("vue");const a=require("./_plugin-vue_export-helper-VLDak8vc.cjs");function c(r,e){u.NEXT_NAME.value=e==null?void 0:e.NEXT_NAME,u.IS_DEV.value=e==null?void 0:e.IS_DEV,u.CurrentRoute.value=e==null?void 0:e.currentRoute,u.CurrentRouter.value=e==null?void 0:e.currentRouter,r.directive("loading",a.ElLoading.directive),r.use(l.install)}exports.ElMessage=u.HsMessage;exports.ElMessageBox=u.HsMessageBox;exports.ElNotification=u.HsNotification;exports.Utils=u.index;exports.mathTool=u.mathTool;exports.useHsAdminUi=c;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import "./index-fAYztMsu.js";
|
|
2
|
+
import { r } from "./index-BMV_E6GB.js";
|
|
3
|
+
import { ao as u, aY as l, aZ as m, a_ as E } from "./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-DeJm85cs.js";
|
|
4
|
+
import { H as M, b0 as R, b1 as x, b2 as A, b3 as H } from "./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-DeJm85cs.js";
|
|
5
|
+
import "vue";
|
|
6
|
+
import { H as c } from "./_plugin-vue_export-helper-Y3IFIQZf.js";
|
|
7
|
+
function b(e, a) {
|
|
8
|
+
u.value = a == null ? void 0 : a.NEXT_NAME, l.value = a == null ? void 0 : a.IS_DEV, m.value = a == null ? void 0 : a.currentRoute, E.value = a == null ? void 0 : a.currentRouter, e.directive("loading", c.directive), e.use(r);
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
M as ElMessage,
|
|
12
|
+
R as ElMessageBox,
|
|
13
|
+
x as ElNotification,
|
|
14
|
+
A as Utils,
|
|
15
|
+
H as mathTool,
|
|
16
|
+
b as useHsAdminUi
|
|
17
|
+
};
|
package/dist/h5.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./index-BqER59zX.cjs"),e=require("vue"),r=require("./_plugin-vue_export-helper-VLDak8vc.cjs"),g={class:"upload-wrapper"},h={class:"upload-wrapper-inner"},w=e.defineComponent({__name:"Upload",props:{action:{type:String,default:""},headers:{type:Object,default:()=>({})},limit:{type:Number,default:100}},emits:["success"],setup(i,{emit:l}){const s=i,d=l,c=e.shallowRef(),o=e.reactive({loading:!1,headers:s.headers,fileList:[{name:"food.jpeg",url:"https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100"}]});e.watch(()=>o.fileList.length,n=>{setTimeout(()=>{const t=document.querySelector(".upload-wrapper .el-upload--picture-card");t&&(t.style.display=n>=s.limit&&n>0?"none":"inline-flex")},100)},{immediate:!0});async function u(){c.value.submit()}function f(n,t,a){d("success",{result:n,file:t,files:a})}return(n,t)=>{const a=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createElementBlock("div",g,[e.createElementVNode("div",h,[e.createVNode(e.unref(m.ElUpload),{ref_key:"uploadRef",ref:c,"file-list":o.fileList,"onUpdate:fileList":t[0]||(t[0]=p=>o.fileList=p),"list-type":"picture-card",accept:"image/*",name:"file",action:i.action,headers:o.headers,limit:i.limit,"auto-upload":!1,"on-success":f},{default:e.withCtx(()=>[...t[1]||(t[1]=[e.createElementVNode("svg",{width:"34",height:"34",viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("rect",{x:"45",y:"20",width:"10",height:"60",rx:"2",fill:"#1677ff"}),e.createElementVNode("rect",{x:"20",y:"45",width:"60",height:"10",rx:"2",fill:"#1677ff"})],-1)])]),_:1},8,["file-list","action","headers","limit"])]),e.createVNode(e.unref(r.ElButton),{size:"large",type:"primary",onClick:u},{default:e.withCtx(()=>[...t[2]||(t[2]=[e.createTextVNode("上传",-1)])]),_:1})])),[[a,o.loading]])}}}),y=r._export_sfc$1(w,[["__scopeId","data-v-b7ef01a9"]]),v={Upload:y};function x(i){for(const[l,s]of Object.entries(v))i.component(`H${l}`,s)}function b(i){i.directive("loading",r.ElLoading.directive),i.use(x)}exports.useHsAdminUi=b;
|
package/dist/h5.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
|
|
1
|
+
import { a as h } from "./index-fAYztMsu.js";
|
|
2
|
+
import { defineComponent as w, shallowRef as y, reactive as v, watch as x, resolveDirective as b, withDirectives as _, createElementBlock as B, openBlock as L, createElementVNode as a, createVNode as c, unref as d, withCtx as f, createTextVNode as U } from "vue";
|
|
3
|
+
import { I as j, B as k, H as E } from "./_plugin-vue_export-helper-Y3IFIQZf.js";
|
|
4
|
+
const C = { class: "upload-wrapper" }, H = { class: "upload-wrapper-inner" }, N = /* @__PURE__ */ w({
|
|
4
5
|
__name: "Upload",
|
|
5
6
|
props: {
|
|
6
7
|
action: {
|
|
@@ -18,7 +19,7 @@ const C = { class: "upload-wrapper" }, N = { class: "upload-wrapper-inner" }, S
|
|
|
18
19
|
},
|
|
19
20
|
emits: ["success"],
|
|
20
21
|
setup(t, { emit: l }) {
|
|
21
|
-
const s = t,
|
|
22
|
+
const s = t, p = l, r = y(), i = v({
|
|
22
23
|
loading: !1,
|
|
23
24
|
headers: s.headers,
|
|
24
25
|
fileList: [
|
|
@@ -28,7 +29,7 @@ const C = { class: "upload-wrapper" }, N = { class: "upload-wrapper-inner" }, S
|
|
|
28
29
|
}
|
|
29
30
|
]
|
|
30
31
|
});
|
|
31
|
-
|
|
32
|
+
x(
|
|
32
33
|
() => i.fileList.length,
|
|
33
34
|
(o) => {
|
|
34
35
|
setTimeout(() => {
|
|
@@ -40,16 +41,16 @@ const C = { class: "upload-wrapper" }, N = { class: "upload-wrapper-inner" }, S
|
|
|
40
41
|
immediate: !0
|
|
41
42
|
}
|
|
42
43
|
);
|
|
43
|
-
async function
|
|
44
|
+
async function u() {
|
|
44
45
|
r.value.submit();
|
|
45
46
|
}
|
|
46
47
|
function m(o, e, n) {
|
|
47
|
-
|
|
48
|
+
p("success", { result: o, file: e, files: n });
|
|
48
49
|
}
|
|
49
50
|
return (o, e) => {
|
|
50
|
-
const n =
|
|
51
|
-
return
|
|
52
|
-
a("div",
|
|
51
|
+
const n = b("loading");
|
|
52
|
+
return _((L(), B("div", C, [
|
|
53
|
+
a("div", H, [
|
|
53
54
|
c(d(h), {
|
|
54
55
|
ref_key: "uploadRef",
|
|
55
56
|
ref: r,
|
|
@@ -92,13 +93,13 @@ const C = { class: "upload-wrapper" }, N = { class: "upload-wrapper-inner" }, S
|
|
|
92
93
|
_: 1
|
|
93
94
|
}, 8, ["file-list", "action", "headers", "limit"])
|
|
94
95
|
]),
|
|
95
|
-
c(d(
|
|
96
|
+
c(d(j), {
|
|
96
97
|
size: "large",
|
|
97
98
|
type: "primary",
|
|
98
|
-
onClick:
|
|
99
|
+
onClick: u
|
|
99
100
|
}, {
|
|
100
101
|
default: f(() => [...e[2] || (e[2] = [
|
|
101
|
-
|
|
102
|
+
U("上传", -1)
|
|
102
103
|
])]),
|
|
103
104
|
_: 1
|
|
104
105
|
})
|
|
@@ -107,16 +108,16 @@ const C = { class: "upload-wrapper" }, N = { class: "upload-wrapper-inner" }, S
|
|
|
107
108
|
]);
|
|
108
109
|
};
|
|
109
110
|
}
|
|
110
|
-
}),
|
|
111
|
-
Upload:
|
|
111
|
+
}), R = /* @__PURE__ */ k(N, [["__scopeId", "data-v-b7ef01a9"]]), S = {
|
|
112
|
+
Upload: R
|
|
112
113
|
};
|
|
113
|
-
function
|
|
114
|
-
for (const [l, s] of Object.entries(
|
|
114
|
+
function V(t) {
|
|
115
|
+
for (const [l, s] of Object.entries(S))
|
|
115
116
|
t.component(`H${l}`, s);
|
|
116
117
|
}
|
|
117
|
-
function
|
|
118
|
-
t.directive("loading",
|
|
118
|
+
function O(t) {
|
|
119
|
+
t.directive("loading", E.directive), t.use(V);
|
|
119
120
|
}
|
|
120
121
|
export {
|
|
121
|
-
|
|
122
|
+
O as useHsAdminUi
|
|
122
123
|
};
|