labmaker-plugin 0.0.3 → 0.0.4

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.
@@ -23,11 +23,11 @@ const i = (e, t) => {
23
23
  },
24
24
  mounted() {
25
25
  }
26
- }, m = /* @__PURE__ */ l("h1", null, "File Uploader", -1), f = { class: "image-uploader" }, g = /* @__PURE__ */ l("h1", null, "File Uploader", -1), h = { class: "your-file" }, U = ["src"];
26
+ }, f = /* @__PURE__ */ l("h1", null, "File Uploader", -1), m = { class: "image-uploader" }, g = /* @__PURE__ */ l("h1", null, "File Uploader", -1), h = { class: "your-file" }, U = ["src"];
27
27
  function v(e, t, o, s, n, c) {
28
28
  return a(), r(_, null, [
29
- m,
30
- l("div", f, [
29
+ f,
30
+ l("div", m, [
31
31
  g,
32
32
  l("input", {
33
33
  onChange: t[0] || (t[0] = (...d) => c.fileUpload && c.fileUpload(...d)),
@@ -47,23 +47,23 @@ function v(e, t, o, s, n, c) {
47
47
  ], 64);
48
48
  }
49
49
  const y = /* @__PURE__ */ i(u, [["render", v]]);
50
- const x = {
50
+ const b = {
51
51
  props: ["title"],
52
52
  data() {
53
53
  return {};
54
54
  },
55
55
  computed: {}
56
56
  };
57
- function S(e, t, o, s, n, c) {
57
+ function x(e, t, o, s, n, c) {
58
58
  return a(), r("header", null, [
59
59
  l("h1", null, p(o.title), 1)
60
60
  ]);
61
61
  }
62
- const $ = /* @__PURE__ */ i(x, [["render", S], ["__scopeId", "data-v-b60cd7ff"]]), b = {
62
+ const S = /* @__PURE__ */ i(b, [["render", x], ["__scopeId", "data-v-b60cd7ff"]]), L = {
63
63
  install: (e, t) => {
64
- e.component("SpecialUploader", y), e.component("lm-header", $);
64
+ e.component("SpecialUploader", y), e.component("LabHeader", S);
65
65
  }
66
66
  };
67
67
  export {
68
- b as default
68
+ L as default
69
69
  };
@@ -1 +1 @@
1
- (function(e,l){typeof exports=="object"&&typeof module<"u"?module.exports=l(require("vue")):typeof define=="function"&&define.amd?define(["vue"],l):(e=typeof globalThis<"u"?globalThis:e||self,e.LabmakerPlugin=l(e.Vue))})(this,function(e){"use strict";const l="",r=(t,n)=>{const o=t.__vccOpts||t;for(const[s,c]of n)o[s]=c;return o},a={props:["custom-img"],data(){return{imgSRC:this.customImg}},computed:{},methods:{fileUpload(t){const o=t.target.files[0];this.fileProcess(o)},fileProcess(t){this.imgSRC=URL.createObjectURL(t)}},mounted(){}},d=e.createElementVNode("h1",null,"File Uploader",-1),p={class:"image-uploader"},_=e.createElementVNode("h1",null,"File Uploader",-1),m={class:"your-file"},f=["src"];function u(t,n,o,s,c,i){return e.openBlock(),e.createElementBlock(e.Fragment,null,[d,e.createElementVNode("div",p,[_,e.createElementVNode("input",{onChange:n[0]||(n[0]=(...E)=>i.fileUpload&&i.fileUpload(...E)),type:"file",id:"file-upload",name:"fileUpload",accept:"image/*"},null,32),e.createElementVNode("div",m,[e.createElementVNode("img",{src:c.imgSRC,alt:"",scrset:""},null,8,f)])])],64)}const g=r(a,[["render",u]]),k="",h={props:["title"],data(){return{}},computed:{}};function U(t,n,o,s,c,i){return e.openBlock(),e.createElementBlock("header",null,[e.createElementVNode("h1",null,e.toDisplayString(o.title),1)])}const y=r(h,[["render",U],["__scopeId","data-v-b60cd7ff"]]);return{install:(t,n)=>{t.component("SpecialUploader",g),t.component("lm-header",y)}}});
1
+ (function(e,l){typeof exports=="object"&&typeof module<"u"?module.exports=l(require("vue")):typeof define=="function"&&define.amd?define(["vue"],l):(e=typeof globalThis<"u"?globalThis:e||self,e.LabmakerPlugin=l(e.Vue))})(this,function(e){"use strict";const l="",r=(t,n)=>{const o=t.__vccOpts||t;for(const[s,c]of n)o[s]=c;return o},a={props:["custom-img"],data(){return{imgSRC:this.customImg}},computed:{},methods:{fileUpload(t){const o=t.target.files[0];this.fileProcess(o)},fileProcess(t){this.imgSRC=URL.createObjectURL(t)}},mounted(){}},d=e.createElementVNode("h1",null,"File Uploader",-1),p={class:"image-uploader"},_=e.createElementVNode("h1",null,"File Uploader",-1),m={class:"your-file"},f=["src"];function u(t,n,o,s,c,i){return e.openBlock(),e.createElementBlock(e.Fragment,null,[d,e.createElementVNode("div",p,[_,e.createElementVNode("input",{onChange:n[0]||(n[0]=(...E)=>i.fileUpload&&i.fileUpload(...E)),type:"file",id:"file-upload",name:"fileUpload",accept:"image/*"},null,32),e.createElementVNode("div",m,[e.createElementVNode("img",{src:c.imgSRC,alt:"",scrset:""},null,8,f)])])],64)}const g=r(a,[["render",u]]),b="",h={props:["title"],data(){return{}},computed:{}};function U(t,n,o,s,c,i){return e.openBlock(),e.createElementBlock("header",null,[e.createElementVNode("h1",null,e.toDisplayString(o.title),1)])}const y=r(h,[["render",U],["__scopeId","data-v-b60cd7ff"]]);return{install:(t,n)=>{t.component("SpecialUploader",g),t.component("LabHeader",y)}}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "labmaker-plugin",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"