mhz-ui 1.1.25 → 1.1.26
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/UiTable/UiTable.js +26 -26
- package/package.json +4 -4
package/dist/UiTable/UiTable.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./UiTable.css";
|
|
2
|
-
import { defineComponent as k, ref as d, computed as V, onMounted as
|
|
2
|
+
import { defineComponent as k, ref as d, computed as V, onMounted as $, onBeforeUnmount as w, createElementBlock as o, openBlock as n, normalizeClass as t, createCommentVNode as _, createElementVNode as s, toDisplayString as p, Fragment as B, renderList as h, renderSlot as q } from "vue";
|
|
3
3
|
import { _ as S } from "../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const C = ["data-loading"], L = ["onClick", "data-current"], M = ["data-current", "data-loading"], z = ["data-current", "data-loading"], E = /* @__PURE__ */ k({
|
|
5
5
|
__name: "UiTable",
|
|
@@ -21,53 +21,53 @@ const C = ["data-loading"], L = ["onClick", "data-current"], M = ["data-current"
|
|
|
21
21
|
function f(e) {
|
|
22
22
|
l.modelValue?.value === e ? b("update:modelValue", { value: e, isAsc: !l.modelValue?.isAsc }) : b("reset", e);
|
|
23
23
|
}
|
|
24
|
-
return
|
|
24
|
+
return $(() => {
|
|
25
25
|
u(), window.addEventListener("resize", u, !0);
|
|
26
|
-
}),
|
|
26
|
+
}), w(() => {
|
|
27
27
|
window.removeEventListener("resize", u, !0);
|
|
28
28
|
}), (e, i) => (n(), o("div", {
|
|
29
|
-
class:
|
|
29
|
+
class: t(e.$style.tableBlock),
|
|
30
30
|
ref_key: "tableBlock",
|
|
31
31
|
ref: r
|
|
32
32
|
}, [
|
|
33
33
|
m.value ? (n(), o("div", {
|
|
34
34
|
key: 0,
|
|
35
|
-
class:
|
|
35
|
+
class: t(e.$style.scrollMessage)
|
|
36
36
|
}, p(y.value), 3)) : _("", !0),
|
|
37
|
-
|
|
38
|
-
class:
|
|
37
|
+
s("table", {
|
|
38
|
+
class: t(e.$style.table),
|
|
39
39
|
cellpadding: "8",
|
|
40
40
|
cellspacing: "0",
|
|
41
41
|
border: 0,
|
|
42
42
|
ref_key: "table",
|
|
43
43
|
ref: c
|
|
44
44
|
}, [
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
(n(!0), o(
|
|
48
|
-
key:
|
|
49
|
-
class:
|
|
45
|
+
s("thead", null, [
|
|
46
|
+
s("tr", null, [
|
|
47
|
+
(n(!0), o(B, null, h(l.headers, (a) => (n(), o("th", {
|
|
48
|
+
key: `${a.value}${a.title}`,
|
|
49
|
+
class: t(e.$style.th)
|
|
50
50
|
}, [
|
|
51
|
-
|
|
52
|
-
class:
|
|
51
|
+
s("label", {
|
|
52
|
+
class: t(e.$style.label),
|
|
53
53
|
"data-loading": l.isLoading
|
|
54
54
|
}, [
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
s("span", null, p(a.title), 1),
|
|
56
|
+
a.value ? (n(), o("button", {
|
|
57
57
|
key: 0,
|
|
58
|
-
onClick: (I) => f(
|
|
59
|
-
class:
|
|
58
|
+
onClick: (I) => f(a.value),
|
|
59
|
+
class: t(e.$style.sort),
|
|
60
60
|
type: "button",
|
|
61
|
-
"data-current": l.modelValue?.value ===
|
|
61
|
+
"data-current": l.modelValue?.value === a.value
|
|
62
62
|
}, [
|
|
63
|
-
|
|
64
|
-
class:
|
|
65
|
-
"data-current": l.modelValue?.isAsc && l.modelValue?.value ===
|
|
63
|
+
s("span", {
|
|
64
|
+
class: t(e.$style.arrow),
|
|
65
|
+
"data-current": l.modelValue?.isAsc && l.modelValue?.value === a.value,
|
|
66
66
|
"data-loading": l.isLoading
|
|
67
67
|
}, " ↑ ", 10, M),
|
|
68
|
-
|
|
69
|
-
class:
|
|
70
|
-
"data-current": !l.modelValue?.isAsc && l.modelValue?.value ===
|
|
68
|
+
s("span", {
|
|
69
|
+
class: t(e.$style.arrow),
|
|
70
|
+
"data-current": !l.modelValue?.isAsc && l.modelValue?.value === a.value,
|
|
71
71
|
"data-loading": l.isLoading
|
|
72
72
|
}, " ↓ ", 10, z)
|
|
73
73
|
], 10, L)) : _("", !0)
|
|
@@ -75,7 +75,7 @@ const C = ["data-loading"], L = ["onClick", "data-current"], M = ["data-current"
|
|
|
75
75
|
], 2))), 128))
|
|
76
76
|
])
|
|
77
77
|
]),
|
|
78
|
-
|
|
78
|
+
s("tbody", null, [
|
|
79
79
|
q(e.$slots, "default")
|
|
80
80
|
])
|
|
81
81
|
], 2)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mhz-ui",
|
|
3
3
|
"description": "Mhz ui kit",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.26",
|
|
5
5
|
"author": "Alexandr Dergunov <dergunovs@mail.ru> (https://github.com/dergunovs)",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"@vue/test-utils": "2.4.6",
|
|
56
56
|
"eslint": "9.24.0",
|
|
57
57
|
"eslint-config-prettier": "10.1.1",
|
|
58
|
-
"eslint-import-resolver-typescript": "4.3.
|
|
59
|
-
"eslint-plugin-import-x": "4.10.
|
|
58
|
+
"eslint-import-resolver-typescript": "4.3.2",
|
|
59
|
+
"eslint-plugin-import-x": "4.10.2",
|
|
60
60
|
"eslint-plugin-prettier": "5.2.6",
|
|
61
61
|
"eslint-plugin-vue": "10.0.0",
|
|
62
62
|
"globals": "16.0.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"prettier": "3.5.3",
|
|
67
67
|
"sass-embedded": "1.86.3",
|
|
68
68
|
"storybook": "8.6.12",
|
|
69
|
-
"stylelint": "16.
|
|
69
|
+
"stylelint": "16.18.0",
|
|
70
70
|
"stylelint-config-recess-order": "6.0.0",
|
|
71
71
|
"stylelint-config-recommended-scss": "14.1.0",
|
|
72
72
|
"stylelint-config-recommended-vue": "1.6.0",
|