y-admin-ui 0.4.0 → 0.4.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/lib/{index.e176cca0.js → index.46448ad6.js} +2 -2
- package/lib/{index.e176cca0.js.gz → index.46448ad6.js.gz} +0 -0
- package/lib/index.7b316528.js +6 -0
- package/lib/style.css +1 -1
- package/lib/style.css.gz +0 -0
- package/lib/y-admin-ui.js +1 -1
- package/lib/y-admin-ui.umd.cjs +1 -1
- package/lib/{y-file-table-item.8d4cb4dd.js → y-file-table-item.89223297.js} +11 -11
- package/lib/{y-file-table.53811948.js → y-file-table.e530cc48.js} +1 -1
- package/package.json +1 -1
- package/lib/index.2e203f40.js +0 -6
@@ -21,28 +21,28 @@ const C = { class: "y-file-list-table-item-body" }, x = {
|
|
21
21
|
emits: ["item-click", "item-check-change"],
|
22
22
|
setup(c, { emit: n }) {
|
23
23
|
const e = c, _ = k({
|
24
|
-
checkboxClass: ["
|
24
|
+
checkboxClass: ["y-file-list-table-item-check", "y-file-icon-check", "y-bg-primary"].join(" ")
|
25
25
|
}), f = m(() => Array.isArray(e.selection) && e.selection.includes(e.item)), b = m(() => {
|
26
26
|
if (e.item.isDirectory) {
|
27
|
-
const t = e.icons.find((
|
27
|
+
const t = e.icons.find((l) => l.type === "dir");
|
28
28
|
return t == null ? void 0 : t.icon;
|
29
29
|
}
|
30
|
-
let
|
30
|
+
let s;
|
31
31
|
if (e.icons.forEach((t) => {
|
32
|
-
t.types && t.types.forEach((
|
33
|
-
e.item.name.endsWith(
|
32
|
+
t.types && t.types.forEach((l) => {
|
33
|
+
e.item.name.endsWith(l) && (s = t.icon);
|
34
34
|
});
|
35
|
-
}), !
|
36
|
-
const t = e.icons.find((
|
37
|
-
|
35
|
+
}), !s) {
|
36
|
+
const t = e.icons.find((l) => l.type === "file");
|
37
|
+
s = t == null ? void 0 : t.icon;
|
38
38
|
}
|
39
|
-
return
|
39
|
+
return s;
|
40
40
|
}), a = () => {
|
41
41
|
n("item-click", e.item);
|
42
42
|
}, u = () => {
|
43
43
|
n("item-check-change", e.item);
|
44
44
|
};
|
45
|
-
return (
|
45
|
+
return (s, t) => (r(), d("div", {
|
46
46
|
class: y(["y-file-list-table-item", { checked: f.value }])
|
47
47
|
}, [
|
48
48
|
i("div", C, [
|
@@ -67,7 +67,7 @@ const C = { class: "y-file-list-table-item-body" }, x = {
|
|
67
67
|
}, o(e.item.name), 9, j)
|
68
68
|
]),
|
69
69
|
i("div", q, [
|
70
|
-
g(
|
70
|
+
g(s.$slots, "tool", {
|
71
71
|
item: e.item
|
72
72
|
})
|
73
73
|
])
|
@@ -40,7 +40,7 @@ const j = {
|
|
40
40
|
props: j,
|
41
41
|
emits: ["sort-change", "check-all-change", "item-click", "item-check-change"],
|
42
42
|
setup(x, { emit: r }) {
|
43
|
-
const e = x, k = p(() => import("./y-file-sort.057cb87a.js")), T = p(() => import("./y-file-table-item.
|
43
|
+
const e = x, k = p(() => import("./y-file-sort.057cb87a.js")), T = p(() => import("./y-file-table-item.89223297.js")), S = Y({
|
44
44
|
checkboxClass: ["y-file-list-table-item-check", "y-file-icon-check", "y-bg-primary"].join(" ")
|
45
45
|
}), h = g(() => typeof e.sort == "string"), _ = g(() => ["y-file-list-table-item y-file-list-table-item-header", { checked: e.checked }]), u = (t) => {
|
46
46
|
r("sort-change", t);
|
package/package.json
CHANGED