ling-yun-custom-components 0.0.45 → 0.0.47

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.
@@ -0,0 +1,120 @@
1
+ import { w as C } from "./chunks/index.bCzIhWFw.js";
2
+ import { ref as u, computed as I, watch as y, onMounted as M, createElementBlock as r, openBlock as t, Fragment as T, createElementVNode as s, createBlock as k, createCommentVNode as c, renderSlot as d, normalizeClass as w, createTextVNode as p, toDisplayString as g, unref as V, withCtx as E, nextTick as N } from "vue";
3
+ import { ElButton as O, ElSegmented as _ } from "element-plus";
4
+ import { _ as R } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
5
+ import './assets/PluginDetail.css';const A = { key: 0 }, D = { key: 1 }, j = {
6
+ key: 1,
7
+ class: "weight-700 fz-18 text-262626 lh-25 mg-t-34 mg-b-16"
8
+ }, F = {
9
+ key: 3,
10
+ class: "radius-12 border-f0f0f0 pd-l-20 pd-r-20 pd-b-24 pd-t-20"
11
+ }, H = { class: "weight-400 fz-16 text-666666 lh-24" }, P = { class: "flex justify-end items-center gap-10 text-right" }, U = {
12
+ __name: "layout",
13
+ props: {
14
+ intro: {
15
+ type: String,
16
+ default: ""
17
+ },
18
+ description: {
19
+ type: String,
20
+ default: ""
21
+ },
22
+ tabOptions: {
23
+ type: Array,
24
+ default: () => []
25
+ },
26
+ modelValue: {
27
+ type: [String, Number],
28
+ default: ""
29
+ },
30
+ tabItems: {
31
+ type: Array,
32
+ default: () => []
33
+ }
34
+ },
35
+ emits: ["update:modelValue", "tab-change"],
36
+ setup(o, { expose: x, emit: S }) {
37
+ const n = o, h = S, a = u(!1), v = u(!1), m = u(null), i = u(n.modelValue), b = I(() => !n.tabItems?.length || !i.value ? null : n.tabItems.find((e) => e.bnid == i.value) || null), z = () => {
38
+ a.value = !a.value;
39
+ }, $ = (e) => {
40
+ h("update:modelValue", e), h("tab-change", e);
41
+ }, f = () => {
42
+ N(() => {
43
+ const e = m.value;
44
+ e && (v.value = e.scrollHeight > 24);
45
+ });
46
+ };
47
+ return y(
48
+ () => n.modelValue,
49
+ (e) => {
50
+ i.value = e;
51
+ }
52
+ ), y(
53
+ () => n.description,
54
+ () => {
55
+ f();
56
+ },
57
+ { immediate: !0 }
58
+ ), M(() => {
59
+ f();
60
+ }), x({
61
+ checkShowMoreBtn: f,
62
+ currentTabItem: b
63
+ }), (e, l) => (t(), r(T, null, [
64
+ l[1] || (l[1] = s("div", { class: "weight-700 fz-18 text-262626 mg-b-16" }, "插件简介", -1)),
65
+ s("div", {
66
+ class: w(["weight-400 fz-16 text-666", a.value ? "" : "hide-more"]),
67
+ ref_key: "descRef",
68
+ ref: m
69
+ }, [
70
+ d(e.$slots, "intro", {}, () => [
71
+ p(g(o.intro), 1)
72
+ ], !0)
73
+ ], 2),
74
+ l[2] || (l[2] = s("div", { class: "weight-700 fz-18 text-262626 mg-b-16 mg-t-34" }, "工具描述", -1)),
75
+ s("div", {
76
+ class: w(["weight-400 fz-16 text-666", a.value ? "" : "hide-more"]),
77
+ ref_key: "descRef",
78
+ ref: m
79
+ }, [
80
+ d(e.$slots, "description", {}, () => [
81
+ p(g(o.description), 1)
82
+ ], !0)
83
+ ], 2),
84
+ v.value ? (t(), k(V(O), {
85
+ key: 0,
86
+ type: "text",
87
+ onClick: z
88
+ }, {
89
+ default: E(() => [
90
+ a.value ? (t(), r("span", D, "收起")) : (t(), r("span", A, "查看更多"))
91
+ ]),
92
+ _: 1
93
+ })) : c("", !0),
94
+ o.tabOptions?.length ? (t(), r("div", j, " 插件工具 ")) : c("", !0),
95
+ o.tabOptions?.length ? (t(), k(V(_), {
96
+ key: 2,
97
+ modelValue: i.value,
98
+ "onUpdate:modelValue": l[0] || (l[0] = (B) => i.value = B),
99
+ options: o.tabOptions,
100
+ onChange: $,
101
+ class: "mg-b-16"
102
+ }, null, 8, ["modelValue", "options"])) : c("", !0),
103
+ e.$slots.default || e.$slots.actions ? (t(), r("div", F, [
104
+ s("div", H, [
105
+ d(e.$slots, "default", {}, () => [
106
+ p(g(b.value?.description), 1)
107
+ ], !0)
108
+ ]),
109
+ s("div", P, [
110
+ d(e.$slots, "actions", {}, void 0, !0)
111
+ ])
112
+ ])) : c("", !0),
113
+ d(e.$slots, "plugin-detail", {}, void 0, !0)
114
+ ], 64));
115
+ }
116
+ }, q = /* @__PURE__ */ R(U, [["__scopeId", "data-v-0204a00d"]]), Q = C(q);
117
+ export {
118
+ Q as PluginDetail,
119
+ Q as default
120
+ };
package/es/SearchBar.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { w as a } from "./chunks/index.bCzIhWFw.js";
2
- import { S as r } from "./chunks/layout.C9yoozRN.js";
2
+ import { S as r } from "./chunks/layout.DUlSi2g4.js";
3
3
  const s = a(r);
4
4
  export {
5
5
  s as SearchBar,
@@ -1,7 +1,7 @@
1
1
  import { w as h } from "./chunks/index.bCzIhWFw.js";
2
2
  import { ref as P, computed as v, createBlock as x, openBlock as C, withCtx as I, createVNode as D, unref as f, isRef as b } from "vue";
3
3
  import { C as E } from "./chunks/layout.DXw3haOP.js";
4
- import { S as k } from "./chunks/layout.C9yoozRN.js";
4
+ import { S as k } from "./chunks/layout.DUlSi2g4.js";
5
5
  import { componentType as w, emitsMap as u, codeMap as y, messageSuccess as A, AESCrypto as M } from "ling-yun-methods";
6
6
  import { _ as S } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
7
7
  import './assets/UpdatePasswordDialog.css';const U = () => {
@@ -1 +1 @@
1
- .config-item__label[data-v-0188f394]{width:80px;height:auto}.config-item__label span[data-v-0188f394]{line-height:20px;color:#5d6c89}.hover-overlay[data-v-ba3ada8e]{background-color:#00000080}[data-v-3a2170d7] .el-timeline-item__timestamp{color:#86909c}[data-v-3a2170d7] .el-card{background:var(--neutral-color-18)}.el-tab-pane[data-v-e0a3d317]{height:100%;overflow:hidden}
1
+ .hover-overlay[data-v-f13b81ec]{background:#00000080}[data-v-3a2170d7] .el-timeline-item__timestamp{color:#86909c}[data-v-3a2170d7] .el-card{background:var(--neutral-color-18)}
@@ -1 +1 @@
1
- [data-v-4cd45c17] .el-tabs__item.is-active{background:linear-gradient(270deg,#6788ff,#878bff);border-radius:14px 14px 0 0;color:#fff!important}[data-v-4cd45c17] .el-tabs__item{background:#eef0f7;border-radius:14px 14px 0 0;border:1px solid #e4e6ed;padding:8px 24px;color:var(--text-color-2)!important}[data-v-4cd45c17] .el-tabs__nav.is-top{border:none!important}
1
+ [data-v-cd15b5ea] .el-tabs__item.is-active{background:linear-gradient(270deg,#6788ff,#878bff);border-radius:14px 14px 0 0;color:#fff!important}[data-v-cd15b5ea] .el-tabs__item{background:#eef0f7;border-radius:14px 14px 0 0;border:1px solid #e4e6ed;padding:8px 24px;color:var(--text-color-2)!important}[data-v-cd15b5ea] .el-tabs__nav.is-top{border:none!important}
@@ -0,0 +1 @@
1
+ .hide-more[data-v-0204a00d]{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.border-f0f0f0[data-v-0204a00d]{border:1px solid var(--neutral-color-6)}
@@ -1 +1 @@
1
- .filter-form[data-v-6092c6e2]{grid-template-columns:repeat(2,1fr);gap:10px}.filter-preview-form[data-v-6092c6e2]{display:flex}.filter-preview-form .el-form-item[data-v-6092c6e2]{width:var(--v21117ed0);margin-right:10px}.search-bar-form[data-v-6092c6e2]{grid-template-columns:repeat(auto-fit,minmax(var(--v21117ed0),1fr));gap:10px}.search-bar-form.el-form--inline .el-form-item[data-v-6092c6e2]{margin-right:0;margin-bottom:10px}.search-bar-form.el-form--inline .el-form-item.el-form-item--label-left[data-v-6092c6e2]{display:flex;padding:0 14px;background:var(--neutral-color-18);border-radius:8px;border:1px solid var(--parting-line)}.search-bar-form.el-form--inline .el-form-item.el-form-item--label-left[data-v-6092c6e2] .el-form-item__content{justify-content:end}.search-bar-form.el-form--inline.el-form--label-top[data-v-6092c6e2]{display:grid}.search-bar-item--wide[data-v-6092c6e2]{grid-column:span 2}.is-collapsed[data-v-146b7880]{max-height:var(--v1bbac240)}.operation-buttons[data-v-146b7880]{width:var(--v84cfd7f0);z-index:1}.h-32[data-v-146b7880]{height:32px}.drawer-header[data-v-146b7880]{display:flex;justify-content:space-between;align-items:center;width:100%}.drawer-header .shrink-button[data-v-146b7880]{margin-left:auto}.border-top[data-v-146b7880]{border-top:1px solid var(--parting-line)}[data-v-146b7880] .el-drawer__body{padding:16px 0;display:flex;flex-direction:column;overflow:hidden}.filter-form-popover[data-v-146b7880]{max-height:400px}[data-v-146b7880] .el-drawer__header{margin-bottom:0;padding:16px 16px 0}
1
+ .filter-form[data-v-6092c6e2]{grid-template-columns:repeat(2,1fr);gap:10px}.filter-preview-form[data-v-6092c6e2]{display:flex}.filter-preview-form .el-form-item[data-v-6092c6e2]{width:var(--v21117ed0);margin-right:10px}.search-bar-form[data-v-6092c6e2]{grid-template-columns:repeat(auto-fit,minmax(var(--v21117ed0),1fr));gap:10px}.search-bar-form.el-form--inline .el-form-item[data-v-6092c6e2]{margin-right:0;margin-bottom:10px}.search-bar-form.el-form--inline .el-form-item.el-form-item--label-left[data-v-6092c6e2]{display:flex;padding:0 14px;background:var(--neutral-color-18);border-radius:8px;border:1px solid var(--parting-line)}.search-bar-form.el-form--inline .el-form-item.el-form-item--label-left[data-v-6092c6e2] .el-form-item__content{justify-content:end}.search-bar-form.el-form--inline.el-form--label-top[data-v-6092c6e2]{display:grid}.search-bar-item--wide[data-v-6092c6e2]{grid-column:span 2}.is-collapsed[data-v-2bd0ab79]{max-height:var(--v6dc52412)}.operation-buttons[data-v-2bd0ab79]{width:var(--v714dbbde);z-index:1}.h-32[data-v-2bd0ab79]{height:32px}.drawer-header[data-v-2bd0ab79]{display:flex;justify-content:space-between;align-items:center;width:100%}.drawer-header .shrink-button[data-v-2bd0ab79]{margin-left:auto}.border-top[data-v-2bd0ab79]{border-top:1px solid var(--parting-line)}[data-v-2bd0ab79] .el-drawer__body{padding:16px 0;display:flex;flex-direction:column;overflow:hidden}.filter-form-popover[data-v-2bd0ab79]{max-height:400px}[data-v-2bd0ab79] .el-drawer__header{margin-bottom:0;padding:16px 16px 0}