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.
@@ -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 l=require("./_plugin-vue_export-helper-Dk80_hr9.js"),e=require("vue"),m={class:"upload-wrapper"},g={class:"upload-wrapper-inner"},h=e.defineComponent({__name:"Upload",props:{action:{type:String,default:""},headers:{type:Object,default:()=>({})},limit:{type:Number,default:100}},emits:["success"],setup(i,{emit:a}){const s=i,d=a,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,r){d("success",{result:n,file:t,files:r})}return(n,t)=>{const r=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createElementBlock("div",m,[e.createElementVNode("div",g,[e.createVNode(e.unref(l.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(l.ElButton),{size:"large",type:"primary",onClick:u},{default:e.withCtx(()=>[...t[2]||(t[2]=[e.createTextVNode("上传",-1)])]),_:1})])),[[r,o.loading]])}}}),w=l._export_sfc$1(h,[["__scopeId","data-v-b7ef01a9"]]),y={Upload:w};function v(i){for(const[a,s]of Object.entries(y))i.component(`H${a}`,s)}function x(i){i.directive("loading",l.ElLoading.directive),i.use(v)}exports.useHsAdminUi=x;
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 { bT as h, a$ as w, bS as y, bY as b } from "./_plugin-vue_export-helper-CZTmULB5.mjs";
2
- import { defineComponent as v, shallowRef as x, reactive as _, watch as L, resolveDirective as U, withDirectives as j, createElementBlock as k, openBlock as B, createElementVNode as a, createVNode as c, unref as d, withCtx as f, createTextVNode as E } from "vue";
3
- const C = { class: "upload-wrapper" }, N = { class: "upload-wrapper-inner" }, S = /* @__PURE__ */ v({
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, u = l, r = x(), i = _({
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
- L(
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 p() {
44
+ async function u() {
44
45
  r.value.submit();
45
46
  }
46
47
  function m(o, e, n) {
47
- u("success", { result: o, file: e, files: n });
48
+ p("success", { result: o, file: e, files: n });
48
49
  }
49
50
  return (o, e) => {
50
- const n = U("loading");
51
- return j((B(), k("div", C, [
52
- a("div", N, [
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(w), {
96
+ c(d(j), {
96
97
  size: "large",
97
98
  type: "primary",
98
- onClick: p
99
+ onClick: u
99
100
  }, {
100
101
  default: f(() => [...e[2] || (e[2] = [
101
- E("上传", -1)
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
- }), H = /* @__PURE__ */ y(S, [["__scopeId", "data-v-b7ef01a9"]]), R = {
111
- Upload: H
111
+ }), R = /* @__PURE__ */ k(N, [["__scopeId", "data-v-b7ef01a9"]]), S = {
112
+ Upload: R
112
113
  };
113
- function T(t) {
114
- for (const [l, s] of Object.entries(R))
114
+ function V(t) {
115
+ for (const [l, s] of Object.entries(S))
115
116
  t.component(`H${l}`, s);
116
117
  }
117
- function D(t) {
118
- t.directive("loading", b.directive), t.use(T);
118
+ function O(t) {
119
+ t.directive("loading", E.directive), t.use(V);
119
120
  }
120
121
  export {
121
- D as useHsAdminUi
122
+ O as useHsAdminUi
122
123
  };