maque-packages
Advanced tools
+42
-19
@@ -1,3 +0,4 @@ | ||
| import { defineComponent as a, createElementBlock as m, openBlock as r, createTextVNode as p, createElementVNode as c, toDisplayString as u } from "vue"; | ||
| const e = /* @__PURE__ */ a({ | ||
| import { defineComponent as a, createElementBlock as p, openBlock as r, createTextVNode as u, createElementVNode as i, toDisplayString as k } from "vue"; | ||
| const o = /* @__PURE__ */ a({ | ||
| name: "mq-component", | ||
| __name: "mq-index", | ||
@@ -9,26 +10,48 @@ props: { | ||
| setup(t, { emit: n }) { | ||
| const i = t, l = n; | ||
| function s() { | ||
| l("click", "我是子组件的数据"); | ||
| const l = t, s = n; | ||
| function m() { | ||
| s("click", "我是子组件的数据"); | ||
| } | ||
| return (f, o) => (r(), m("div", null, [ | ||
| o[0] || (o[0] = p("自定义组件 ")), | ||
| c("div", null, "父节点传过来的参数:" + u(i.title), 1), | ||
| c("button", { onClick: s }, "事件响应") | ||
| return (d, e) => (r(), p("div", null, [ | ||
| e[0] || (e[0] = u("自定义组件 ")), | ||
| i("div", null, "父节点传过来的参数:" + k(l.title), 1), | ||
| i("button", { onClick: m }, "事件响应") | ||
| ])); | ||
| } | ||
| }); | ||
| e.install = (t) => { | ||
| t.component(e.name, e); | ||
| o.install = (t) => { | ||
| t.component(o.name, o); | ||
| }; | ||
| const d = [ | ||
| e, | ||
| e | ||
| ], k = (t) => { | ||
| d.forEach((n) => t.component(n.__name, n)); | ||
| }, x = { | ||
| install: k | ||
| const c = /* @__PURE__ */ a({ | ||
| name: "mq-component2", | ||
| __name: "mq-index", | ||
| props: { | ||
| title: {} | ||
| }, | ||
| emits: ["click"], | ||
| setup(t, { emit: n }) { | ||
| const l = t, s = n; | ||
| function m() { | ||
| s("click", "我是子组件的数据2"); | ||
| } | ||
| return (d, e) => (r(), p("div", null, [ | ||
| e[0] || (e[0] = u("自定义组件2 ")), | ||
| i("div", null, "父节点传过来的参数:" + k(l.title), 1), | ||
| i("button", { onClick: m }, "事件响应") | ||
| ])); | ||
| } | ||
| }); | ||
| c.install = (t) => { | ||
| t.component(c.name, c); | ||
| }; | ||
| const _ = [ | ||
| o, | ||
| c | ||
| ], f = (t) => { | ||
| _.forEach((n) => t.component(n.__name, n)); | ||
| }, q = { | ||
| install: f | ||
| }; | ||
| export { | ||
| x as default | ||
| q as default | ||
| }; |
@@ -1,1 +0,1 @@ | ||
| (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n(require("vue")):typeof define=="function"&&define.amd?define(["vue"],n):(e=typeof globalThis<"u"?globalThis:e||self,e.MaquePackages=n(e.Vue))})(this,function(e){"use strict";const n=e.defineComponent({__name:"mq-index",props:{title:{}},emits:["click"],setup(t,{emit:o}){const c=t,l=o;function a(){l("click","我是子组件的数据")}return(r,i)=>(e.openBlock(),e.createElementBlock("div",null,[i[0]||(i[0]=e.createTextVNode("自定义组件 ")),e.createElementVNode("div",null,"父节点传过来的参数:"+e.toDisplayString(c.title),1),e.createElementVNode("button",{onClick:a},"事件响应")]))}});n.install=t=>{t.component(n.name,n)};const s=[n,n];return{install:t=>{s.forEach(o=>t.component(o.__name,o))}}}); | ||
| (function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t(require("vue")):typeof define=="function"&&define.amd?define(["vue"],t):(e=typeof globalThis<"u"?globalThis:e||self,e.MaquePackages=t(e.Vue))})(this,function(e){"use strict";const t=e.defineComponent({name:"mq-component",__name:"mq-index",props:{title:{}},emits:["click"],setup(n,{emit:o}){const l=n,s=o;function m(){s("click","我是子组件的数据")}return(r,i)=>(e.openBlock(),e.createElementBlock("div",null,[i[0]||(i[0]=e.createTextVNode("自定义组件 ")),e.createElementVNode("div",null,"父节点传过来的参数:"+e.toDisplayString(l.title),1),e.createElementVNode("button",{onClick:m},"事件响应")]))}});t.install=n=>{n.component(t.name,t)};const c=e.defineComponent({name:"mq-component2",__name:"mq-index",props:{title:{}},emits:["click"],setup(n,{emit:o}){const l=n,s=o;function m(){s("click","我是子组件的数据2")}return(r,i)=>(e.openBlock(),e.createElementBlock("div",null,[i[0]||(i[0]=e.createTextVNode("自定义组件2 ")),e.createElementVNode("div",null,"父节点传过来的参数:"+e.toDisplayString(l.title),1),e.createElementVNode("button",{onClick:m},"事件响应")]))}});c.install=n=>{n.component(c.name,c)};const a=[t,c];return{install:n=>{a.forEach(o=>n.component(o.__name,o))}}}); |
+1
-1
| { | ||
| "name": "maque-packages", | ||
| "private": false, | ||
| "version": "1.0.2", | ||
| "version": "1.0.3", | ||
| "type": "module", | ||
@@ -6,0 +6,0 @@ "files": [ |
5821
22.39%62
67.57%