UNPKG

cw-component-ui

Version:

2 lines (1 loc) 1.69 kB
(function(t,_){typeof exports=="object"&&typeof module<"u"?module.exports=_(require("vue")):typeof define=="function"&&define.amd?define(["vue"],_):(t=typeof globalThis<"u"?globalThis:t||self,t.CwComponent=_(t.Vue))})(this,function(t){"use strict";const _="",i=Object.assign({name:"cw-button"},{setup(o){function e(){alert("cw组件一定成功")}return(n,c)=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("button",{class:"test",onClick:e},"我是测试要发布的按钮组件"),t.createElementVNode("button",{class:"test",onClick:e},"我是测试要发布的按钮组件")]))}}),w="",r=Object.assign({name:"cw-input"},{setup(o){const e=t.ref("222");function n(c){alert(`${c.target.value}cw`)}return(c,s)=>(t.openBlock(),t.createElementBlock("div",null,[t.withDirectives(t.createElementVNode("input",{class:"test","onUpdate:modelValue":s[0]||(s[0]=a=>e.value=a),onInput:n},null,544),[[t.vModelText,e.value]])]))}}),V="",d=(o,e)=>{const n=o.__vccOpts||o;for(const[c,s]of e)n[c]=s;return n},p={name:"cw-a-button"},u={class:"content"};function f(o,e,n,c,s,a){const x=t.resolveComponent("a-button"),l=t.resolveComponent("a-tag");return t.openBlock(),t.createElementBlock("div",u,[t.createVNode(x,{type:"primary",class:"content-child"},{default:t.withCtx(()=>[t.createTextVNode("我是组件按钮qq")]),_:1}),t.createVNode(l,{color:"blue",class:"content-child"},{default:t.withCtx(()=>[t.createTextVNode("我是蓝色Tag")]),_:1}),t.createVNode(l,{class:"content-child"},{default:t.withCtx(()=>[t.createTextVNode("purple")]),_:1})])}const m=[i,r,d(p,[["render",f],["__scopeId","data-v-542ee115"]])];return{install:function(o,e){m.forEach(n=>{o.component(n.name,n)})}}});