@banmao/blocks 0.0.1-alpha.5 → 0.0.1-alpha.6
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.
|
@@ -16,7 +16,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
16
16
|
default: string;
|
|
17
17
|
};
|
|
18
18
|
radius: {
|
|
19
|
-
type: (
|
|
19
|
+
type: (NumberConstructor | BooleanConstructor)[];
|
|
20
20
|
default: number;
|
|
21
21
|
};
|
|
22
22
|
shadow: {
|
|
@@ -44,7 +44,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
|
|
|
44
44
|
default: string;
|
|
45
45
|
};
|
|
46
46
|
radius: {
|
|
47
|
-
type: (
|
|
47
|
+
type: (NumberConstructor | BooleanConstructor)[];
|
|
48
48
|
default: number;
|
|
49
49
|
};
|
|
50
50
|
shadow: {
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
require('./index.css');"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),
|
|
1
|
+
require('./index.css');"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("naive-ui"),F=["finish","error","captcha","wechatFinish"],x={title:{type:String,default:"Welcome back"},subTitle:{type:String,default:"Login to your account"},layout:{type:String,default:"simple"},bg:{type:String,default:""},forgotUrl:{type:String,default:""},signUpUrl:{type:String,default:""},bgImageUrl:{type:String,default:""},logo:{type:Function},imagePosition:{type:String,default:"right"},actions:{type:Array}},I={title:{type:String,default:"Welcome back"},subTitle:{type:String,default:"Login to your account"},forgotUrl:{type:String,default:""},signUpUrl:{type:String,default:""},radius:{type:[Number,Boolean],default:8},shadow:{type:Boolean,default:!0},actions:{type:Array}},g=e.defineComponent({name:"LoginForm",props:I,emits:F,setup(t,{emit:i,slots:a}){const{actions:s,title:w,subTitle:l,signUpUrl:d,forgotUrl:u,shadow:p,radius:m}=t,n=e.reactive({username:"",password:""}),f=e.ref(!1),V={username:[{required:!0,message:"请输入用户名",trigger:"blur"},{min:3,max:10,message:"长度在 3 到 10 个字符",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"},{min:6,max:20,message:"长度在 6 到 20 个字符",trigger:"blur"}]},N=e.ref(null),v=()=>{var r;(r=N.value)==null||r.validate(o=>{o?(console.error(o),i("error",o)):i("finish",e.toRaw(n))})},h=()=>{console.error("Weixin login is not supported yet."),i("wechatFinish")};return()=>e.createVNode("div",{class:["login-form",{"login-form-shadow":p}],style:[{borderRadius:m?`${m}px`:"none"}]},[e.createVNode("div",{class:"title"},[w]),e.createVNode("div",{class:"sub-title"},[l]),a.default?a.default():e.createVNode(c.NForm,{ref:N,model:n,rules:V,size:"large","show-require-mark":!1},{default:()=>[e.createVNode(c.NFormItem,{label:"用户名",path:"username"},{default:()=>[e.createVNode(c.NInput,{value:n.username,"onUpdate:value":r=>n.username=r,placeholder:"请输入用户名"},null)]}),e.createVNode(c.NFormItem,{label:"密码",path:"password"},{default:()=>[e.createVNode(c.NInput,{value:n.password,"onUpdate:value":r=>n.password=r,placeholder:"请输入密码",type:"password"},null)]}),e.createVNode("div",{class:"password-forgot"},[e.createVNode(c.NCheckbox,{checked:f.value,"onUpdate:checked":r=>f.value=r,label:"记住密码"},null),u&&e.createVNode("a",{href:u},[e.createTextVNode("忘记密码?")])]),e.createVNode(c.NFormItem,{showLabel:!1},{default:()=>[e.createVNode(c.NButton,{"attr-type":"button",type:"primary",block:!0,onClick:()=>v()},{default:()=>[e.createTextVNode("登录")]})]}),s&&e.createVNode(c.NFormItem,{showLabel:!1},{default:()=>[e.createVNode(c.NButton,{color:"#02E16E",ghost:!0,block:!0,onClick:()=>h()},{default:()=>[e.createTextVNode("微信登录")]})]})]}),d&&e.createVNode("div",{class:"signUp"},[e.createTextVNode("还没有账号?"),e.createVNode("a",{href:d},[e.createTextVNode("立即注册")])])])}});function y(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!e.isVNode(t)}const U=e.defineComponent({name:"LoginPage",props:x,emits:F,setup(t,{emit:i,slots:a}){const{layout:s,bg:w,bgImageUrl:l,...d}=t,u=e.computed(()=>t.imagePosition==="right");return()=>{var p,m,n,f,V,N,v,h;if(a.default){let r;if(s==="column"){let o;return e.createVNode("div",{class:["container","column",{"order-1":t.imagePosition==="left"}]},[e.createVNode("div",{class:"column-item"},[u.value&&e.createVNode("div",{class:"logo"},[(p=a.logo)==null?void 0:p.call(a)]),e.createVNode(g,e.mergeProps(d,{shadow:!1,radius:!1,onFinish:b=>i("finish",b)}),y(o=a.default())?o:{default:()=>[o]})]),e.createVNode("div",{class:"column-muted"},[!u.value&&e.createVNode("div",{class:"logo"},[(m=a.logo)==null?void 0:m.call(a)]),t.bgImageUrl&&e.createVNode("img",{src:t.bgImageUrl,alt:"Image",class:"column-muted-image"},null)])])}if(s==="card"){let o;return e.createVNode("div",{class:["container","flex-center","card-login-wrapper"],style:{backgroundImage:l?`url(${l})`:"transparent"}},[e.createVNode("div",{class:"logo"},[(n=a.logo)==null?void 0:n.call(a)]),e.createVNode("div",{class:"card-img-cover"},null),e.createVNode("div",{class:"card"},[e.createVNode("div",{class:["card-column-item","flex-1"]},[e.createVNode(g,e.mergeProps(d,{shadow:!1,radius:!1,onFinish:b=>i("finish",b)}),y(o=a.default())?o:{default:()=>[o]})]),e.createVNode("div",{class:["card-column-muted","flex-1"],style:{width:"350px"}},[l&&e.createVNode("img",{src:l,alt:"Image",class:"column-muted-image"},null)])])])}return e.createVNode("div",{class:["container","flex-center"],style:{backgroundImage:`url(${l})`,backgroundSize:"cover"}},[e.createVNode("div",{class:["flex-col","space-y-4"]},[(f=a.logo)==null?void 0:f.call(a),e.createVNode(g,e.mergeProps(d,{onFinish:o=>i("finish",o)}),y(r=a.default())?r:{default:()=>[r]})])])}else return s==="column"?e.createVNode("div",{class:["container","column",{"column-reverse":t.imagePosition==="left"}]},[e.createVNode("div",{class:"column-item"},[u.value&&e.createVNode("div",{class:"logo"},[(V=a.logo)==null?void 0:V.call(a)]),e.createVNode(g,e.mergeProps(d,{shadow:!1,radius:!1,onFinish:r=>i("finish",r)}),null)]),e.createVNode("div",{class:"column-muted"},[!u.value&&e.createVNode("div",{class:"logo"},[(N=a.logo)==null?void 0:N.call(a)]),t.bgImageUrl&&e.createVNode("img",{src:t.bgImageUrl,alt:"Image",class:"column-muted-image"},null)])]):s==="card"?e.createVNode("div",{class:["container","flex-center"]},[e.createVNode("div",{class:"logo"},[(v=a.logo)==null?void 0:v.call(a)]),e.createVNode("div",{class:"card"},[e.createVNode("div",{class:["card-column-item","flex-1"]},[e.createVNode(g,e.mergeProps(d,{shadow:!1,radius:!1,onFinish:r=>i("finish",r)}),null)]),e.createVNode("div",{class:["card-column-muted","flex-1"],style:{width:"350px"}},[l&&e.createVNode("img",{src:l,alt:"Image",class:"column-muted-image"},null)])])]):e.createVNode("div",{class:["container","flex-center"],style:{backgroundImage:`url(${l})`,backgroundSize:"cover"}},[e.createVNode("div",{class:["flex-col","space-y-4"]},[(h=a.logo)==null?void 0:h.call(a),e.createVNode(g,d,null)])])}}});exports.Login=U;exports.loginEmits=F;exports.loginFormProps=I;exports.loginProps=x;
|
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--color-link: #2563eb;--color-text: #f4f4f5;--color-section-text: #e4e4e7}.container{position:relative;width:100%;height:100svh}.flex-center{display:flex;align-items:center;justify-content:center}.flex-col{display:flex;flex-direction:column;justify-content:center;align-items:center}.space-y-4{gap:16px}.login-form{padding:32px 32px 24px;min-width:350px;background:#fffc;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-sizing:border-box}.card .login-form{width:100%}.column .login-form,.dark .column .login-form{background:transparent}.login-form-shadow{box-shadow:0 2px 12px #0000001a}.title{font-size:20px;font-weight:700;color:var(--color-text)}.sub-title{font-size:16px;color:var(--color-section-text);margin-bottom:32px}.signUp{text-align:center;color:var(--color-text)}.signUp a,.link{color:var(--color-link);text-decoration:none}.password-forgot{width:100%;display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.password-forgot a{color:var(--color-link);text-decoration:none}.column,.grid{display:grid}.column-reverse{direction:rtl}.column-reverse>*{direction:ltr}.card{width:100%;max-width:48rem;display:flex;box-sizing:border-box;box-shadow:0 2px 12px #0000001a;border-radius:.5rem;overflow:hidden}.card-column-item{display:flex;flex-direction:column;justify-content:center;align-items:center}.card-column-muted{width:100%;position:relative;display:none;background-color:#27272a}.flex-1{flex:1}.logo{position:absolute;top:20px;left:20px;z-index:inherit;height:64px;min-width:64px}.column-item{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1rem}.column-muted{width:100%;position:relative;display:none;background-color:#27272a}.column-muted-image{position:absolute;top:0;right:0;bottom:0;left:0;height:100%;width:100%;object-fit:cover}@media screen and (max-width: 1199px){.column-item{padding:40px}}@media screen and (max-width: 1200){.card{max-width:24rem}}@media screen and (min-width: 1200px){.column{grid-template-columns:repeat(2,minmax(0,1fr))}.column-muted,.card-column-muted{display:block}}.dark .column-muted-image{filter:brightness(.2)}.dark .column-muted-image{filter:grayscale(40%)}.dark .login-form{background-color:#0006}@media (prefers-color-scheme: light){:root{--color-text: #333;--color-section-text: #4f4f4f}.login-form{background:#fffc}.sub-title{color:var(--color-section-text)}}
|
|
1
|
+
:root{--color-link: #2563eb;--color-text: #f4f4f5;--color-section-text: #e4e4e7;--img-cover-color: hsl(220 9% 46% / 60);--img-cover-color-dark: hsl(221 39% 11% / 60)}.container{position:relative;width:100%;height:100svh}.flex-center{display:flex;align-items:center;justify-content:center}.flex-col{display:flex;flex-direction:column;justify-content:center;align-items:center}.space-y-4{gap:16px}.login-form{padding:32px 32px 24px;min-width:350px;background:#fffc;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-sizing:border-box}.card .login-form{width:100%}.column .login-form,.dark .column .login-form{background:transparent}.login-form-shadow{box-shadow:0 2px 12px #0000001a}.title{font-size:20px;font-weight:700;color:var(--color-text)}.sub-title{font-size:16px;color:var(--color-section-text);margin-bottom:32px}.signUp{text-align:center;color:var(--color-text)}.signUp a,.link{color:var(--color-link);text-decoration:none}.password-forgot{width:100%;display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.password-forgot a{color:var(--color-link);text-decoration:none}.column,.grid{display:grid}.column-reverse{direction:rtl}.column-reverse>*{direction:ltr}.card{width:100%;max-width:48rem;display:flex;box-sizing:border-box;box-shadow:0 2px 12px #0000001a;border-radius:.5rem;overflow:hidden}.card-column-item{display:flex;flex-direction:column;justify-content:center;align-items:center}.card-column-muted{width:100%;position:relative;display:none;background-color:#27272a}.flex-1{flex:1}.logo{position:absolute;top:20px;left:20px;z-index:inherit;height:64px;min-width:64px}.column-item{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1rem}.column-muted{width:100%;position:relative;display:none;background-color:#27272a}.column-muted-image{position:absolute;top:0;right:0;bottom:0;left:0;height:100%;width:100%;object-fit:cover}@media screen and (max-width: 1199px){.column-item{padding:40px}}@media screen and (max-width: 1200){.card{max-width:24rem}}@media screen and (min-width: 1200px){.column{grid-template-columns:repeat(2,minmax(0,1fr))}.column-muted,.card-column-muted{display:block}}.dark .column-muted-image{filter:brightness(.2)}.dark .column-muted-image{filter:grayscale(40%)}.dark .login-form{background-color:#0006}@media (prefers-color-scheme: light){:root{--color-text: #333;--color-section-text: #4f4f4f}.login-form{background:#fffc}.sub-title{color:var(--color-section-text)}}.card-login-wrapper{background-size:cover}.card-img-cover{position:absolute;top:0;width:100%;height:100%;background:var(--img-cover-color);z-index:0;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.dark .card-img-cover{background:var(--img-cover-color-dark)}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import './index.css';import { defineComponent as
|
|
2
|
-
import { NForm as
|
|
3
|
-
const
|
|
1
|
+
import './index.css';import { defineComponent as C, reactive as N, ref as S, createVNode as e, createTextVNode as p, toRaw as P, computed as E, mergeProps as v, isVNode as A } from "vue";
|
|
2
|
+
import { NForm as D, NFormItem as w, NInput as k, NCheckbox as W, NButton as B } from "naive-ui";
|
|
3
|
+
const L = ["finish", "error", "captcha", "wechatFinish"], R = {
|
|
4
4
|
title: {
|
|
5
5
|
type: String,
|
|
6
6
|
default: "Welcome back"
|
|
@@ -39,7 +39,7 @@ const P = ["finish", "error", "captcha", "wechatFinish"], _ = {
|
|
|
39
39
|
actions: {
|
|
40
40
|
type: Array
|
|
41
41
|
}
|
|
42
|
-
},
|
|
42
|
+
}, T = {
|
|
43
43
|
title: {
|
|
44
44
|
type: String,
|
|
45
45
|
default: "Welcome back"
|
|
@@ -67,26 +67,26 @@ const P = ["finish", "error", "captcha", "wechatFinish"], _ = {
|
|
|
67
67
|
actions: {
|
|
68
68
|
type: Array
|
|
69
69
|
}
|
|
70
|
-
},
|
|
70
|
+
}, g = /* @__PURE__ */ C({
|
|
71
71
|
name: "LoginForm",
|
|
72
|
-
props:
|
|
73
|
-
emits:
|
|
74
|
-
setup(
|
|
75
|
-
emit:
|
|
72
|
+
props: T,
|
|
73
|
+
emits: L,
|
|
74
|
+
setup(r, {
|
|
75
|
+
emit: t,
|
|
76
76
|
slots: a
|
|
77
77
|
}) {
|
|
78
78
|
const {
|
|
79
79
|
actions: d,
|
|
80
|
-
title:
|
|
81
|
-
subTitle:
|
|
82
|
-
signUpUrl:
|
|
83
|
-
forgotUrl:
|
|
84
|
-
shadow:
|
|
85
|
-
radius:
|
|
86
|
-
} =
|
|
80
|
+
title: I,
|
|
81
|
+
subTitle: n,
|
|
82
|
+
signUpUrl: u,
|
|
83
|
+
forgotUrl: c,
|
|
84
|
+
shadow: h,
|
|
85
|
+
radius: s
|
|
86
|
+
} = r, o = N({
|
|
87
87
|
username: "",
|
|
88
88
|
password: ""
|
|
89
|
-
}),
|
|
89
|
+
}), m = S(!1), b = {
|
|
90
90
|
username: [{
|
|
91
91
|
required: !0,
|
|
92
92
|
message: "请输入用户名",
|
|
@@ -107,160 +107,164 @@ const P = ["finish", "error", "captcha", "wechatFinish"], _ = {
|
|
|
107
107
|
message: "长度在 6 到 20 个字符",
|
|
108
108
|
trigger: "blur"
|
|
109
109
|
}]
|
|
110
|
-
},
|
|
111
|
-
var
|
|
112
|
-
(
|
|
113
|
-
|
|
110
|
+
}, f = S(null), y = () => {
|
|
111
|
+
var l;
|
|
112
|
+
(l = f.value) == null || l.validate((i) => {
|
|
113
|
+
i ? (console.error(i), t("error", i)) : t("finish", P(o));
|
|
114
114
|
});
|
|
115
|
-
},
|
|
116
|
-
console.error("Weixin login is not supported yet."),
|
|
115
|
+
}, F = () => {
|
|
116
|
+
console.error("Weixin login is not supported yet."), t("wechatFinish");
|
|
117
117
|
};
|
|
118
118
|
return () => e("div", {
|
|
119
119
|
class: ["login-form", {
|
|
120
|
-
"login-form-shadow":
|
|
120
|
+
"login-form-shadow": h
|
|
121
121
|
}],
|
|
122
122
|
style: [{
|
|
123
|
-
borderRadius:
|
|
123
|
+
borderRadius: s ? `${s}px` : "none"
|
|
124
124
|
}]
|
|
125
125
|
}, [e("div", {
|
|
126
126
|
class: "title"
|
|
127
|
-
}, [
|
|
127
|
+
}, [I]), e("div", {
|
|
128
128
|
class: "sub-title"
|
|
129
|
-
}, [
|
|
130
|
-
ref:
|
|
131
|
-
model:
|
|
132
|
-
rules:
|
|
129
|
+
}, [n]), a.default ? a.default() : e(D, {
|
|
130
|
+
ref: f,
|
|
131
|
+
model: o,
|
|
132
|
+
rules: b,
|
|
133
133
|
size: "large",
|
|
134
134
|
"show-require-mark": !1
|
|
135
135
|
}, {
|
|
136
|
-
default: () => [e(
|
|
136
|
+
default: () => [e(w, {
|
|
137
137
|
label: "用户名",
|
|
138
138
|
path: "username"
|
|
139
139
|
}, {
|
|
140
|
-
default: () => [e(
|
|
141
|
-
value:
|
|
142
|
-
"onUpdate:value": (
|
|
140
|
+
default: () => [e(k, {
|
|
141
|
+
value: o.username,
|
|
142
|
+
"onUpdate:value": (l) => o.username = l,
|
|
143
143
|
placeholder: "请输入用户名"
|
|
144
144
|
}, null)]
|
|
145
|
-
}), e(
|
|
145
|
+
}), e(w, {
|
|
146
146
|
label: "密码",
|
|
147
147
|
path: "password"
|
|
148
148
|
}, {
|
|
149
|
-
default: () => [e(
|
|
150
|
-
value:
|
|
151
|
-
"onUpdate:value": (
|
|
149
|
+
default: () => [e(k, {
|
|
150
|
+
value: o.password,
|
|
151
|
+
"onUpdate:value": (l) => o.password = l,
|
|
152
152
|
placeholder: "请输入密码",
|
|
153
153
|
type: "password"
|
|
154
154
|
}, null)]
|
|
155
155
|
}), e("div", {
|
|
156
156
|
class: "password-forgot"
|
|
157
|
-
}, [e(
|
|
158
|
-
checked:
|
|
159
|
-
"onUpdate:checked": (
|
|
157
|
+
}, [e(W, {
|
|
158
|
+
checked: m.value,
|
|
159
|
+
"onUpdate:checked": (l) => m.value = l,
|
|
160
160
|
label: "记住密码"
|
|
161
|
-
}, null),
|
|
162
|
-
href:
|
|
163
|
-
}, [
|
|
161
|
+
}, null), c && e("a", {
|
|
162
|
+
href: c
|
|
163
|
+
}, [p("忘记密码?")])]), e(w, {
|
|
164
164
|
showLabel: !1
|
|
165
165
|
}, {
|
|
166
|
-
default: () => [e(
|
|
166
|
+
default: () => [e(B, {
|
|
167
167
|
"attr-type": "button",
|
|
168
168
|
type: "primary",
|
|
169
169
|
block: !0,
|
|
170
|
-
onClick: () =>
|
|
170
|
+
onClick: () => y()
|
|
171
171
|
}, {
|
|
172
|
-
default: () => [
|
|
172
|
+
default: () => [p("登录")]
|
|
173
173
|
})]
|
|
174
|
-
}), d && e(
|
|
174
|
+
}), d && e(w, {
|
|
175
175
|
showLabel: !1
|
|
176
176
|
}, {
|
|
177
|
-
default: () => [e(
|
|
177
|
+
default: () => [e(B, {
|
|
178
178
|
color: "#02E16E",
|
|
179
179
|
ghost: !0,
|
|
180
180
|
block: !0,
|
|
181
|
-
onClick: () =>
|
|
181
|
+
onClick: () => F()
|
|
182
182
|
}, {
|
|
183
|
-
default: () => [
|
|
183
|
+
default: () => [p("微信登录")]
|
|
184
184
|
})]
|
|
185
185
|
})]
|
|
186
|
-
}),
|
|
186
|
+
}), u && e("div", {
|
|
187
187
|
class: "signUp"
|
|
188
|
-
}, [
|
|
189
|
-
href:
|
|
190
|
-
}, [
|
|
188
|
+
}, [p("还没有账号?"), e("a", {
|
|
189
|
+
href: u
|
|
190
|
+
}, [p("立即注册")])])]);
|
|
191
191
|
}
|
|
192
192
|
});
|
|
193
|
-
function
|
|
194
|
-
return typeof
|
|
193
|
+
function U(r) {
|
|
194
|
+
return typeof r == "function" || Object.prototype.toString.call(r) === "[object Object]" && !A(r);
|
|
195
195
|
}
|
|
196
|
-
const
|
|
196
|
+
const j = /* @__PURE__ */ C({
|
|
197
197
|
name: "LoginPage",
|
|
198
|
-
props:
|
|
199
|
-
emits:
|
|
200
|
-
setup(
|
|
201
|
-
emit:
|
|
198
|
+
props: R,
|
|
199
|
+
emits: L,
|
|
200
|
+
setup(r, {
|
|
201
|
+
emit: t,
|
|
202
202
|
slots: a
|
|
203
203
|
}) {
|
|
204
204
|
const {
|
|
205
205
|
layout: d,
|
|
206
|
-
bg:
|
|
207
|
-
bgImageUrl:
|
|
208
|
-
logo: U,
|
|
206
|
+
bg: I,
|
|
207
|
+
bgImageUrl: n,
|
|
209
208
|
...u
|
|
210
|
-
} =
|
|
209
|
+
} = r, c = E(() => r.imagePosition === "right");
|
|
211
210
|
return () => {
|
|
212
|
-
var
|
|
213
|
-
if (
|
|
214
|
-
let
|
|
211
|
+
var h, s, o, m, b, f, y, F;
|
|
212
|
+
if (a.default) {
|
|
213
|
+
let l;
|
|
215
214
|
if (d === "column") {
|
|
216
|
-
let
|
|
215
|
+
let i;
|
|
217
216
|
return e("div", {
|
|
218
217
|
class: ["container", "column", {
|
|
219
|
-
"
|
|
218
|
+
"order-1": r.imagePosition === "left"
|
|
220
219
|
}]
|
|
221
220
|
}, [e("div", {
|
|
222
221
|
class: "column-item"
|
|
223
|
-
}, [
|
|
222
|
+
}, [c.value && e("div", {
|
|
224
223
|
class: "logo"
|
|
225
|
-
}, [(
|
|
224
|
+
}, [(h = a.logo) == null ? void 0 : h.call(a)]), e(g, v(u, {
|
|
226
225
|
shadow: !1,
|
|
227
226
|
radius: !1,
|
|
228
|
-
onFinish: (
|
|
229
|
-
}),
|
|
230
|
-
default: () => [
|
|
227
|
+
onFinish: (x) => t("finish", x)
|
|
228
|
+
}), U(i = a.default()) ? i : {
|
|
229
|
+
default: () => [i]
|
|
231
230
|
})]), e("div", {
|
|
232
231
|
class: "column-muted"
|
|
233
|
-
}, [!
|
|
232
|
+
}, [!c.value && e("div", {
|
|
234
233
|
class: "logo"
|
|
235
|
-
}, [(
|
|
236
|
-
src:
|
|
234
|
+
}, [(s = a.logo) == null ? void 0 : s.call(a)]), r.bgImageUrl && e("img", {
|
|
235
|
+
src: r.bgImageUrl,
|
|
237
236
|
alt: "Image",
|
|
238
237
|
class: "column-muted-image"
|
|
239
238
|
}, null)])]);
|
|
240
239
|
}
|
|
241
240
|
if (d === "card") {
|
|
242
|
-
let
|
|
241
|
+
let i;
|
|
243
242
|
return e("div", {
|
|
244
|
-
class: ["container", "flex-center"]
|
|
243
|
+
class: ["container", "flex-center", "card-login-wrapper"],
|
|
244
|
+
style: {
|
|
245
|
+
backgroundImage: n ? `url(${n})` : "transparent"
|
|
246
|
+
}
|
|
245
247
|
}, [e("div", {
|
|
246
248
|
class: "logo"
|
|
247
|
-
}, [(
|
|
249
|
+
}, [(o = a.logo) == null ? void 0 : o.call(a)]), e("div", {
|
|
250
|
+
class: "card-img-cover"
|
|
251
|
+
}, null), e("div", {
|
|
248
252
|
class: "card"
|
|
249
253
|
}, [e("div", {
|
|
250
254
|
class: ["card-column-item", "flex-1"]
|
|
251
|
-
}, [e(
|
|
255
|
+
}, [e(g, v(u, {
|
|
252
256
|
shadow: !1,
|
|
253
257
|
radius: !1,
|
|
254
|
-
onFinish: (
|
|
255
|
-
}),
|
|
256
|
-
default: () => [
|
|
258
|
+
onFinish: (x) => t("finish", x)
|
|
259
|
+
}), U(i = a.default()) ? i : {
|
|
260
|
+
default: () => [i]
|
|
257
261
|
})]), e("div", {
|
|
258
262
|
class: ["card-column-muted", "flex-1"],
|
|
259
263
|
style: {
|
|
260
264
|
width: "350px"
|
|
261
265
|
}
|
|
262
|
-
}, [
|
|
263
|
-
src:
|
|
266
|
+
}, [n && e("img", {
|
|
267
|
+
src: n,
|
|
264
268
|
alt: "Image",
|
|
265
269
|
class: "column-muted-image"
|
|
266
270
|
}, null)])])]);
|
|
@@ -268,73 +272,73 @@ const V = /* @__PURE__ */ N({
|
|
|
268
272
|
return e("div", {
|
|
269
273
|
class: ["container", "flex-center"],
|
|
270
274
|
style: {
|
|
271
|
-
backgroundImage: `url(${
|
|
275
|
+
backgroundImage: `url(${n})`,
|
|
272
276
|
backgroundSize: "cover"
|
|
273
277
|
}
|
|
274
278
|
}, [e("div", {
|
|
275
279
|
class: ["flex-col", "space-y-4"]
|
|
276
|
-
}, [(
|
|
277
|
-
onFinish: (
|
|
278
|
-
}),
|
|
279
|
-
default: () => [
|
|
280
|
+
}, [(m = a.logo) == null ? void 0 : m.call(a), e(g, v(u, {
|
|
281
|
+
onFinish: (i) => t("finish", i)
|
|
282
|
+
}), U(l = a.default()) ? l : {
|
|
283
|
+
default: () => [l]
|
|
280
284
|
})])]);
|
|
281
285
|
} else
|
|
282
286
|
return d === "column" ? e("div", {
|
|
283
287
|
class: ["container", "column", {
|
|
284
|
-
"column-reverse":
|
|
288
|
+
"column-reverse": r.imagePosition === "left"
|
|
285
289
|
}]
|
|
286
290
|
}, [e("div", {
|
|
287
291
|
class: "column-item"
|
|
288
|
-
}, [
|
|
292
|
+
}, [c.value && e("div", {
|
|
289
293
|
class: "logo"
|
|
290
|
-
}, [(
|
|
294
|
+
}, [(b = a.logo) == null ? void 0 : b.call(a)]), e(g, v(u, {
|
|
291
295
|
shadow: !1,
|
|
292
296
|
radius: !1,
|
|
293
|
-
onFinish: (
|
|
297
|
+
onFinish: (l) => t("finish", l)
|
|
294
298
|
}), null)]), e("div", {
|
|
295
299
|
class: "column-muted"
|
|
296
|
-
}, [!
|
|
300
|
+
}, [!c.value && e("div", {
|
|
297
301
|
class: "logo"
|
|
298
|
-
}, [(
|
|
299
|
-
src:
|
|
302
|
+
}, [(f = a.logo) == null ? void 0 : f.call(a)]), r.bgImageUrl && e("img", {
|
|
303
|
+
src: r.bgImageUrl,
|
|
300
304
|
alt: "Image",
|
|
301
305
|
class: "column-muted-image"
|
|
302
306
|
}, null)])]) : d === "card" ? e("div", {
|
|
303
307
|
class: ["container", "flex-center"]
|
|
304
308
|
}, [e("div", {
|
|
305
309
|
class: "logo"
|
|
306
|
-
}, [(
|
|
310
|
+
}, [(y = a.logo) == null ? void 0 : y.call(a)]), e("div", {
|
|
307
311
|
class: "card"
|
|
308
312
|
}, [e("div", {
|
|
309
313
|
class: ["card-column-item", "flex-1"]
|
|
310
|
-
}, [e(
|
|
314
|
+
}, [e(g, v(u, {
|
|
311
315
|
shadow: !1,
|
|
312
316
|
radius: !1,
|
|
313
|
-
onFinish: (
|
|
317
|
+
onFinish: (l) => t("finish", l)
|
|
314
318
|
}), null)]), e("div", {
|
|
315
319
|
class: ["card-column-muted", "flex-1"],
|
|
316
320
|
style: {
|
|
317
321
|
width: "350px"
|
|
318
322
|
}
|
|
319
|
-
}, [
|
|
320
|
-
src:
|
|
323
|
+
}, [n && e("img", {
|
|
324
|
+
src: n,
|
|
321
325
|
alt: "Image",
|
|
322
326
|
class: "column-muted-image"
|
|
323
327
|
}, null)])])]) : e("div", {
|
|
324
328
|
class: ["container", "flex-center"],
|
|
325
329
|
style: {
|
|
326
|
-
backgroundImage: `url(${
|
|
330
|
+
backgroundImage: `url(${n})`,
|
|
327
331
|
backgroundSize: "cover"
|
|
328
332
|
}
|
|
329
333
|
}, [e("div", {
|
|
330
334
|
class: ["flex-col", "space-y-4"]
|
|
331
|
-
}, [(
|
|
335
|
+
}, [(F = a.logo) == null ? void 0 : F.call(a), e(g, u, null)])]);
|
|
332
336
|
};
|
|
333
337
|
}
|
|
334
338
|
});
|
|
335
339
|
export {
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
+
j as Login,
|
|
341
|
+
L as loginEmits,
|
|
342
|
+
T as loginFormProps,
|
|
343
|
+
R as loginProps
|
|
340
344
|
};
|