lovelymaid 1.0.0 → 1.0.2
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.
- package/dist/index.d.ts +3 -0
- package/dist/{maid.css → lovelymaid.css} +1 -1
- package/dist/lovelymaid.es.js +12 -12
- package/dist/main.d.ts +1 -3
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import '../dist/lovelymaid.css';
|
|
1
2
|
import MyActionButton from './components/MyActionButton.vue';
|
|
2
3
|
import MyContentBar from './components/MyContentBar.vue';
|
|
3
4
|
import MyFoldList from './components/MyFoldList.vue';
|
|
4
5
|
import MySearch from './components/MySearch.vue';
|
|
5
6
|
import MySideBar from './components/MySideBar.vue';
|
|
7
|
+
import './assets/styles/base.css';
|
|
8
|
+
import './assets/styles/main.css';
|
|
6
9
|
export { MyActionButton, MyContentBar, MyFoldList, MySearch, MySideBar };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.icon-info[data-v-cd43f472]{position:relative;font-size:18px;color:#3b86f7;cursor:pointer}ul[data-v-cd43f472]{position:absolute;z-index:var(--z-index);width:60px;background-color:#f3f6f6;border-radius:10px;box-shadow:0 0 5px 2px #0000001a}li[data-v-cd43f472]{height:30px;padding:2px;cursor:pointer}.inner[data-v-cd43f472]{display:flex;justify-content:center;border-radius:9px;font-size:12px;color:#000;line-height:26px}.inner .iconfont[data-v-cd43f472]{font-size:14px}.inner[data-v-cd43f472]:hover{background-color:#3b86f7;color:#fff}.container[data-v-1b0264e6]{position:relative;padding-top:40px;background-color:#f2f2f2e6;-webkit-backdrop-filter:blur(10px) saturate(1.5);backdrop-filter:blur(10px) saturate(1.5);border:1px solid rgba(255,255,255,1);border-radius:20px;box-shadow:0 0 5px 2px #0000001a}.icon[data-v-1b0264e6]{display:flex;justify-content:center;align-items:center;position:absolute;top:5px;right:5px;width:35px;height:30px;border-radius:15px;background-color:#f2f2f200;transition:background-color .1s ease 0s;cursor:pointer}.icon[data-v-1b0264e6]:hover{background-color:#e4e4e4}.iconfont[data-v-1b0264e6]{font-size:20px;color:#262626}.header[data-v-bb2a236c]{display:flex;justify-content:space-between;align-items:center;height:30px}.header .title[data-v-bb2a236c]{font-size:12px;color:#767676;font-weight:500}.header .iconfont[data-v-bb2a236c]{font-size:16px;color:#767676;font-weight:700;transition:transform .3s;cursor:pointer}.body-container[data-v-bb2a236c]{overflow:hidden}.body-container.enable-transition[data-v-bb2a236c]{transition:height .5s ease}.body[data-v-bb2a236c]{transform:translateY(0);transition:transform .5s ease;transition-delay:32ms}.body.close[data-v-bb2a236c]{transform:translateY(-100%)}.body li[data-v-bb2a236c]{position:relative;z-index:var(--z-index);height:30px;padding:0 10px;border-radius:6px;font-size:14px;line-height:30px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:all .2s}.body li.active[data-v-bb2a236c]{background-color:#e4e4e4;color:#3b86f7}@keyframes slide-bb2a236c{0%{transform:translateY(var(--translateY))}to{transform:translateY(0)}}.slide[data-v-bb2a236c]{animation:slide-bb2a236c .5s ease}.container[data-v-ff947bde]{display:flex;align-items:center;position:relative;height:35px;border-radius:18px;font-size:14px}.iconfont[data-v-ff947bde]{position:absolute;font-size:14px;line-height:35px;color:#767676}.icon-search[data-v-ff947bde]{left:14px}.icon-clear[data-v-ff947bde]{text-align:center;right:0;width:35px;height:35px;cursor:pointer}.input[data-v-ff947bde]{background-color:#e8e8e8;width:100%;height:100%;border-radius:20px;padding:0 35px;font-size:inherit;font-weight:inherit;color:inherit;caret-color:#3c86f6;transition:outline .2s ease}.input[data-v-ff947bde]::placeholder{font-weight:500;color:#767676}.input[data-v-ff947bde]:focus{outline:3px solid #94bbf0}.container[data-v-4b7d6fb5]{position:relative;padding:40px 15px 15px;background-color:#f2f2f2e6;-webkit-backdrop-filter:blur(10px) saturate(1.5);backdrop-filter:blur(10px) saturate(1.5);border:1px solid rgba(255,255,255,1);border-radius:20px;box-shadow:0 0 5px 2px #0000001a;transition:transform .5s ease}.icon[data-v-4b7d6fb5]{display:flex;justify-content:center;align-items:center;position:absolute;top:5px;right:5px;width:35px;height:30px;border-radius:15px;background-color:#f2f2f200;transition:background-color .1s ease 0s,transform .5s ease 0s,border 0s ease .5s,box-shadow .5s ease 0s;cursor:pointer}.icon.close[data-v-4b7d6fb5]{background-color:#f2f2f2e6;border:1px solid rgba(255,255,255,1);box-shadow:2px 2px 5px #0000001a}.icon[data-v-4b7d6fb5]:hover{background-color:#e4e4e4}.iconfont[data-v-4b7d6fb5]{font-size:20px;color:#262626}
|
|
1
|
+
.icon-info[data-v-cd43f472]{position:relative;font-size:18px;color:#3b86f7;cursor:pointer}ul[data-v-cd43f472]{position:absolute;z-index:var(--z-index);width:60px;background-color:#f3f6f6;border-radius:10px;box-shadow:0 0 5px 2px #0000001a}li[data-v-cd43f472]{height:30px;padding:2px;cursor:pointer}.inner[data-v-cd43f472]{display:flex;justify-content:center;border-radius:9px;font-size:12px;color:#000;line-height:26px}.inner .iconfont[data-v-cd43f472]{font-size:14px}.inner[data-v-cd43f472]:hover{background-color:#3b86f7;color:#fff}.container[data-v-1b0264e6]{position:relative;padding-top:40px;background-color:#f2f2f2e6;-webkit-backdrop-filter:blur(10px) saturate(1.5);backdrop-filter:blur(10px) saturate(1.5);border:1px solid rgba(255,255,255,1);border-radius:20px;box-shadow:0 0 5px 2px #0000001a}.icon[data-v-1b0264e6]{display:flex;justify-content:center;align-items:center;position:absolute;top:5px;right:5px;width:35px;height:30px;border-radius:15px;background-color:#f2f2f200;transition:background-color .1s ease 0s;cursor:pointer}.icon[data-v-1b0264e6]:hover{background-color:#e4e4e4}.iconfont[data-v-1b0264e6]{font-size:20px;color:#262626}.header[data-v-bb2a236c]{display:flex;justify-content:space-between;align-items:center;height:30px}.header .title[data-v-bb2a236c]{font-size:12px;color:#767676;font-weight:500}.header .iconfont[data-v-bb2a236c]{font-size:16px;color:#767676;font-weight:700;transition:transform .3s;cursor:pointer}.body-container[data-v-bb2a236c]{overflow:hidden}.body-container.enable-transition[data-v-bb2a236c]{transition:height .5s ease}.body[data-v-bb2a236c]{transform:translateY(0);transition:transform .5s ease;transition-delay:32ms}.body.close[data-v-bb2a236c]{transform:translateY(-100%)}.body li[data-v-bb2a236c]{position:relative;z-index:var(--z-index);height:30px;padding:0 10px;border-radius:6px;font-size:14px;line-height:30px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:all .2s}.body li.active[data-v-bb2a236c]{background-color:#e4e4e4;color:#3b86f7}@keyframes slide-bb2a236c{0%{transform:translateY(var(--translateY))}to{transform:translateY(0)}}.slide[data-v-bb2a236c]{animation:slide-bb2a236c .5s ease}.container[data-v-ff947bde]{display:flex;align-items:center;position:relative;height:35px;border-radius:18px;font-size:14px}.iconfont[data-v-ff947bde]{position:absolute;font-size:14px;line-height:35px;color:#767676}.icon-search[data-v-ff947bde]{left:14px}.icon-clear[data-v-ff947bde]{text-align:center;right:0;width:35px;height:35px;cursor:pointer}.input[data-v-ff947bde]{background-color:#e8e8e8;width:100%;height:100%;border-radius:20px;padding:0 35px;font-size:inherit;font-weight:inherit;color:inherit;caret-color:#3c86f6;transition:outline .2s ease}.input[data-v-ff947bde]::placeholder{font-weight:500;color:#767676}.input[data-v-ff947bde]:focus{outline:3px solid #94bbf0}.container[data-v-4b7d6fb5]{position:relative;padding:40px 15px 15px;background-color:#f2f2f2e6;-webkit-backdrop-filter:blur(10px) saturate(1.5);backdrop-filter:blur(10px) saturate(1.5);border:1px solid rgba(255,255,255,1);border-radius:20px;box-shadow:0 0 5px 2px #0000001a;transition:transform .5s ease}.icon[data-v-4b7d6fb5]{display:flex;justify-content:center;align-items:center;position:absolute;top:5px;right:5px;width:35px;height:30px;border-radius:15px;background-color:#f2f2f200;transition:background-color .1s ease 0s,transform .5s ease 0s,border 0s ease .5s,box-shadow .5s ease 0s;cursor:pointer}.icon.close[data-v-4b7d6fb5]{background-color:#f2f2f2e6;border:1px solid rgba(255,255,255,1);box-shadow:2px 2px 5px #0000001a}.icon[data-v-4b7d6fb5]:hover{background-color:#e4e4e4}.iconfont[data-v-4b7d6fb5]{font-size:20px;color:#262626}*{margin:0;padding:0;box-sizing:border-box}html{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth}body{width:100%;min-height:100vh;font-family:PingFang SC,Helvetica Neue,Helvetica,Microsoft YaHei,微软雅黑,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow:hidden}ul,ol{list-style:none}input,button,textarea,select{border:none;outline:none;border-radius:0}@keyframes fadeIn{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes fadeOut{0%{transform:scale(1)}to{transform:scale(0)}}.fade-enter-active{animation:fadeIn .3s ease both}.fade-leave-active{animation:fadeOut .3s ease both}
|
package/dist/lovelymaid.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as g, ref as c, useSlots as B, computed as F,
|
|
1
|
+
import { defineComponent as g, ref as c, useSlots as B, computed as F, openBlock as p, createElementBlock as m, withModifiers as C, normalizeStyle as k, Fragment as M, renderList as x, createElementVNode as f, renderSlot as S, createCommentVNode as z, onMounted as b, onUnmounted as E, normalizeClass as $, createTextVNode as T, watch as I, toDisplayString as L, nextTick as X, withDirectives as O, withKeys as A, vModelText as H } from "vue";
|
|
2
2
|
const R = ["onClick"], P = /* @__PURE__ */ g({
|
|
3
3
|
__name: "MyActionButton",
|
|
4
4
|
props: {
|
|
@@ -19,16 +19,16 @@ const R = ["onClick"], P = /* @__PURE__ */ g({
|
|
|
19
19
|
e.push(t), t++;
|
|
20
20
|
return e;
|
|
21
21
|
});
|
|
22
|
-
return (e, t) => (
|
|
22
|
+
return (e, t) => (p(), m("span", {
|
|
23
23
|
class: "iconfont icon-info",
|
|
24
24
|
onClick: C(u, ["stop"]),
|
|
25
25
|
style: { "user-select": "none", "--z-index": "10" }
|
|
26
26
|
}, [
|
|
27
|
-
n.value ? (
|
|
27
|
+
n.value ? (p(), m("ul", {
|
|
28
28
|
key: 0,
|
|
29
29
|
style: k({ left: `${a.value}px`, top: `${r.value}px` })
|
|
30
30
|
}, [
|
|
31
|
-
(
|
|
31
|
+
(p(!0), m(M, null, x(o.value, (s) => (p(), m("li", { key: s }, [
|
|
32
32
|
f("div", {
|
|
33
33
|
class: "inner",
|
|
34
34
|
onClick: (v) => i.onItemClick?.(s)
|
|
@@ -36,7 +36,7 @@ const R = ["onClick"], P = /* @__PURE__ */ g({
|
|
|
36
36
|
S(e.$slots, `item-${s}`, { index: s }, void 0, !0)
|
|
37
37
|
], 8, R)
|
|
38
38
|
]))), 128))
|
|
39
|
-
], 4)) :
|
|
39
|
+
], 4)) : z("", !0)
|
|
40
40
|
]));
|
|
41
41
|
}
|
|
42
42
|
}), _ = (l, i) => {
|
|
@@ -68,7 +68,7 @@ const R = ["onClick"], P = /* @__PURE__ */ g({
|
|
|
68
68
|
u(), window.addEventListener("resize", o);
|
|
69
69
|
}), E(() => {
|
|
70
70
|
window.removeEventListener("resize", o);
|
|
71
|
-
}), (e, t) => (
|
|
71
|
+
}), (e, t) => (p(), m("div", {
|
|
72
72
|
class: "container",
|
|
73
73
|
ref_key: "containerRef",
|
|
74
74
|
ref: n,
|
|
@@ -129,7 +129,7 @@ const R = ["onClick"], P = /* @__PURE__ */ g({
|
|
|
129
129
|
const e = c([]), t = c(!1), s = c([...i.list]);
|
|
130
130
|
return I(() => i.list, (v) => {
|
|
131
131
|
e.value = D(v, s.value), t.value = !0, s.value = [...v];
|
|
132
|
-
}, { deep: !0 }), (v, y) => (
|
|
132
|
+
}, { deep: !0 }), (v, y) => (p(), m("div", N, [
|
|
133
133
|
f("div", {
|
|
134
134
|
class: "header",
|
|
135
135
|
onClick: y[1] || (y[1] = C(
|
|
@@ -159,7 +159,7 @@ const R = ["onClick"], P = /* @__PURE__ */ g({
|
|
|
159
159
|
ref: r,
|
|
160
160
|
class: $(["body", { close: !n.value }])
|
|
161
161
|
}, [
|
|
162
|
-
(
|
|
162
|
+
(p(!0), m(M, null, x(i.list, (w, h) => (p(), m("li", {
|
|
163
163
|
key: h,
|
|
164
164
|
onClick: C(() => l.onItemClick?.(w, h), ["stop"]),
|
|
165
165
|
style: k({ "--z-index": i.list.length - h, "--translateY": `${e.value[h] * 100}%` }),
|
|
@@ -186,7 +186,7 @@ const R = ["onClick"], P = /* @__PURE__ */ g({
|
|
|
186
186
|
}, d = async (o) => {
|
|
187
187
|
a || i.onSearch?.(o);
|
|
188
188
|
};
|
|
189
|
-
return (o, e) => (
|
|
189
|
+
return (o, e) => (p(), m("div", j, [
|
|
190
190
|
e[3] || (e[3] = f("span", { class: "iconfont icon-search" }, null, -1)),
|
|
191
191
|
O(f("input", {
|
|
192
192
|
"onUpdate:modelValue": e[0] || (e[0] = (t) => n.value = t),
|
|
@@ -199,11 +199,11 @@ const R = ["onClick"], P = /* @__PURE__ */ g({
|
|
|
199
199
|
}, null, 40, q), [
|
|
200
200
|
[H, n.value]
|
|
201
201
|
]),
|
|
202
|
-
n.value ? (
|
|
202
|
+
n.value ? (p(), m("span", {
|
|
203
203
|
key: 0,
|
|
204
204
|
class: "iconfont icon-clear",
|
|
205
205
|
onClick: e[2] || (e[2] = C((t) => n.value = "", ["stop"]))
|
|
206
|
-
})) :
|
|
206
|
+
})) : z("", !0)
|
|
207
207
|
]));
|
|
208
208
|
}
|
|
209
209
|
}), oe = /* @__PURE__ */ _(G, [["__scopeId", "data-v-ff947bde"]]), J = ["title"], Q = /* @__PURE__ */ g({
|
|
@@ -229,7 +229,7 @@ const R = ["onClick"], P = /* @__PURE__ */ g({
|
|
|
229
229
|
e(), window.addEventListener("resize", e);
|
|
230
230
|
}), E(() => {
|
|
231
231
|
window.removeEventListener("resize", e);
|
|
232
|
-
}), (t, s) => (
|
|
232
|
+
}), (t, s) => (p(), m("div", {
|
|
233
233
|
class: "container",
|
|
234
234
|
ref_key: "containerRef",
|
|
235
235
|
ref: r,
|
package/dist/main.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lovelymaid",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"main": "dist/lovelymaid.umd.js",
|
|
5
5
|
"module": "dist/lovelymaid.es.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"preview": "vite preview"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
+
"lovelymaid": "^1.0.1",
|
|
18
19
|
"vue": "^3.5.22"
|
|
19
20
|
},
|
|
20
21
|
"devDependencies": {
|