jky-component-lib 0.0.21 → 0.0.24
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.
|
@@ -51,16 +51,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
51
51
|
return props.modelValue === item.value;
|
|
52
52
|
}
|
|
53
53
|
function handleClick(item) {
|
|
54
|
+
emit("update:modelValue", item.value);
|
|
55
|
+
emit("change", item.value);
|
|
56
|
+
emit("navClick", item);
|
|
54
57
|
if (props.route && item.to) {
|
|
55
58
|
if (router) {
|
|
56
59
|
router.push(item.to);
|
|
57
|
-
} else {
|
|
58
|
-
emit("navClick", item);
|
|
59
60
|
}
|
|
60
|
-
} else {
|
|
61
|
-
emit("update:modelValue", item.value);
|
|
62
|
-
emit("change", item.value);
|
|
63
|
-
emit("navClick", item);
|
|
64
61
|
}
|
|
65
62
|
}
|
|
66
63
|
return (_ctx, _cache) => {
|
package/dist/es/package.json.js
CHANGED
|
@@ -53,16 +53,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
53
53
|
return props.modelValue === item.value;
|
|
54
54
|
}
|
|
55
55
|
function handleClick(item) {
|
|
56
|
+
emit("update:modelValue", item.value);
|
|
57
|
+
emit("change", item.value);
|
|
58
|
+
emit("navClick", item);
|
|
56
59
|
if (props.route && item.to) {
|
|
57
60
|
if (router) {
|
|
58
61
|
router.push(item.to);
|
|
59
|
-
} else {
|
|
60
|
-
emit("navClick", item);
|
|
61
62
|
}
|
|
62
|
-
} else {
|
|
63
|
-
emit("update:modelValue", item.value);
|
|
64
|
-
emit("change", item.value);
|
|
65
|
-
emit("navClick", item);
|
|
66
63
|
}
|
|
67
64
|
}
|
|
68
65
|
return (_ctx, _cache) => {
|
package/dist/lib/package.json.js
CHANGED
package/dist/umd/index.js
CHANGED
|
@@ -1398,7 +1398,7 @@ img {
|
|
|
1398
1398
|
}
|
|
1399
1399
|
/*$vite$:1*/`;
|
|
1400
1400
|
document.head.appendChild(__vite_style__);
|
|
1401
|
-
const version$1 = "0.0.
|
|
1401
|
+
const version$1 = "0.0.24";
|
|
1402
1402
|
const INSTALLED_KEY = Symbol("INSTALLED_KEY");
|
|
1403
1403
|
function createInstaller(components2 = []) {
|
|
1404
1404
|
const install2 = (app, options) => {
|
|
@@ -1552,16 +1552,13 @@ img {
|
|
|
1552
1552
|
return props.modelValue === item.value;
|
|
1553
1553
|
}
|
|
1554
1554
|
function handleClick(item) {
|
|
1555
|
+
emit("update:modelValue", item.value);
|
|
1556
|
+
emit("change", item.value);
|
|
1557
|
+
emit("navClick", item);
|
|
1555
1558
|
if (props.route && item.to) {
|
|
1556
1559
|
if (router) {
|
|
1557
1560
|
router.push(item.to);
|
|
1558
|
-
} else {
|
|
1559
|
-
emit("navClick", item);
|
|
1560
1561
|
}
|
|
1561
|
-
} else {
|
|
1562
|
-
emit("update:modelValue", item.value);
|
|
1563
|
-
emit("change", item.value);
|
|
1564
|
-
emit("navClick", item);
|
|
1565
1562
|
}
|
|
1566
1563
|
}
|
|
1567
1564
|
return (_ctx, _cache) => {
|