Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vpuserlayout

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vpuserlayout - npm Package Compare versions

Comparing version 1.0.15 to 1.0.16

style.css

2

package.json
{
"name": "vpuserlayout",
"version": "1.0.15",
"version": "1.0.16",
"description": "",

@@ -5,0 +5,0 @@ "main": "vpuserlayout.es.js",

@@ -1,21 +0,59 @@

import { openBlock as s, createElementBlock as r } from "vue";
const a = (o, n) => {
const t = o.__vccOpts || o;
for (const [e, c] of n)
t[e] = c;
return t;
}, p = {
name: "VPUserLayout"
};
function u(o, n, t, e, c, i) {
return s(), r("button", null, "我是测试要发布的按钮组件");
}
const _ = /* @__PURE__ */ a(p, [["render", u]]), f = [_], l = function(o, n) {
f.forEach((t) => {
o.component(t.name, t);
import { defineComponent as p, ref as d, openBlock as u, createElementBlock as m, Fragment as v, createElementVNode as o, createBlock as _, Teleport as f, createVNode as h, Transition as b, withCtx as k, withDirectives as i, vModelText as x, vShow as w, pushScopeId as V, popScopeId as y } from "vue";
const r = (t) => (V("data-v-7bb58728"), t = t(), y(), t), C = { class: "modal-mask" }, S = { class: "modal-container" }, I = /* @__PURE__ */ r(() => /* @__PURE__ */ o("p", null, "Hello from the modal!", -1)), g = { class: "model-footer" }, B = /* @__PURE__ */ r(() => /* @__PURE__ */ o("h2", null, "输入信息", -1)), E = /* @__PURE__ */ p({
__name: "VPUserLayout",
setup(t) {
const n = d(!1), e = d("");
function s() {
console.log("输入的内容是:", e.value), n.value = !1;
}
return (c, l) => (u(), m(v, null, [
o("button", {
class: "modal-button",
onClick: l[0] || (l[0] = (a) => n.value = !0)
}, "Show Modal"),
(u(), _(f, { to: "body" }, [
h(b, { name: "modal" }, {
default: k(() => [
i(o("div", C, [
o("div", S, [
I,
o("div", g, [
B,
i(o("input", {
type: "text",
"onUpdate:modelValue": l[1] || (l[1] = (a) => e.value = a),
placeholder: "请输入内容"
}, null, 512), [
[x, e.value]
]),
o("div", null, [
o("button", { onClick: s }, "确定"),
o("button", {
onClick: l[2] || (l[2] = (a) => n.value = !1)
}, "取消")
])
])
])
], 512), [
[w, n.value]
])
]),
_: 1
})
]))
], 64));
}
}), M = (t, n) => {
const e = t.__vccOpts || t;
for (const [s, c] of n)
e[s] = c;
return e;
}, T = /* @__PURE__ */ M(E, [["__scopeId", "data-v-7bb58728"]]), U = [T], L = function(t, n) {
U.forEach((e) => {
t.component(e.name, e);
});
}, d = { install: l };
}, P = { install: L };
export {
_ as VPUserLayout,
d as default
T as VPUserLayout,
P as default
};

@@ -1,1 +0,1 @@

(function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.VPUserLayout=e.VPUserLayout||{},e.Vue))})(this,function(e,t){"use strict";const i=(o,s)=>{const n=o.__vccOpts||o;for(const[c,r]of s)n[c]=r;return n},f={name:"VPUserLayout"};function a(o,s,n,c,r,_){return t.openBlock(),t.createElementBlock("button",null,"我是测试要发布的按钮组件")}const u=i(f,[["render",a]]),d=[u],p={install:function(o,s){d.forEach(n=>{o.component(n.name,n)})}};e.VPUserLayout=u,e.default=p,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
(function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.VPUserLayout=t.VPUserLayout||{},t.Vue))})(this,function(t,e){"use strict";const c=o=>(e.pushScopeId("data-v-7bb58728"),o=o(),e.popScopeId(),o),m={class:"modal-mask"},f={class:"modal-container"},p=c(()=>e.createElementVNode("p",null,"Hello from the modal!",-1)),_={class:"model-footer"},u=c(()=>e.createElementVNode("h2",null,"输入信息",-1)),i=((o,l)=>{const n=o.__vccOpts||o;for(const[a,r]of l)n[a]=r;return n})(e.defineComponent({__name:"VPUserLayout",setup(o){const l=e.ref(!1),n=e.ref("");function a(){console.log("输入的内容是:",n.value),l.value=!1}return(r,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("button",{class:"modal-button",onClick:s[0]||(s[0]=d=>l.value=!0)},"Show Modal"),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"modal"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",m,[e.createElementVNode("div",f,[p,e.createElementVNode("div",_,[u,e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":s[1]||(s[1]=d=>n.value=d),placeholder:"请输入内容"},null,512),[[e.vModelText,n.value]]),e.createElementVNode("div",null,[e.createElementVNode("button",{onClick:a},"确定"),e.createElementVNode("button",{onClick:s[2]||(s[2]=d=>l.value=!1)},"取消")])])])],512),[[e.vShow,l.value]])]),_:1})]))],64))}}),[["__scopeId","data-v-7bb58728"]]),V=[i],h={install:function(o,l){V.forEach(n=>{o.component(n.name,n)})}};t.VPUserLayout=i,t.default=h,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc