jky-component-lib 0.0.20 → 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.
- package/dist/es/button-nav/ButtonNav.vue.d.ts +2 -2
- package/dist/es/button-nav/ButtonNav.vue.js +8 -7
- package/dist/es/package.json.js +1 -1
- package/dist/lib/button-nav/ButtonNav.vue.d.ts +2 -2
- package/dist/lib/button-nav/ButtonNav.vue.js +8 -7
- package/dist/lib/package.json.js +1 -1
- package/dist/umd/index.js +9 -8
- package/package.json +5 -2
|
@@ -18,13 +18,13 @@ interface NavItem {
|
|
|
18
18
|
to?: RouteLocationRaw;
|
|
19
19
|
}
|
|
20
20
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
21
|
-
click: (item: NavItem) => any;
|
|
22
21
|
change: (value: string | number) => any;
|
|
23
22
|
"update:modelValue": (value: string | number) => any;
|
|
23
|
+
navClick: (item: NavItem) => any;
|
|
24
24
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
|
-
onClick?: ((item: NavItem) => any) | undefined;
|
|
26
25
|
onChange?: ((value: string | number) => any) | undefined;
|
|
27
26
|
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
27
|
+
onNavClick?: ((item: NavItem) => any) | undefined;
|
|
28
28
|
}>, {
|
|
29
29
|
size: "" | "default" | "large" | "small";
|
|
30
30
|
type: "" | "default" | "primary" | "success" | "warning" | "danger" | "info" | "text";
|
|
@@ -34,7 +34,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
34
34
|
buttonWidth: {},
|
|
35
35
|
route: { type: Boolean, default: false }
|
|
36
36
|
},
|
|
37
|
-
emits: ["update:modelValue", "change", "
|
|
37
|
+
emits: ["update:modelValue", "change", "navClick"],
|
|
38
38
|
setup(__props, { emit: __emit }) {
|
|
39
39
|
const props = __props;
|
|
40
40
|
const emit = __emit;
|
|
@@ -51,12 +51,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
51
51
|
return props.modelValue === item.value;
|
|
52
52
|
}
|
|
53
53
|
function handleClick(item) {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
emit("update:modelValue", item.value);
|
|
55
|
+
emit("change", item.value);
|
|
56
|
+
emit("navClick", item);
|
|
57
|
+
if (props.route && item.to) {
|
|
58
|
+
if (router) {
|
|
59
|
+
router.push(item.to);
|
|
60
|
+
}
|
|
60
61
|
}
|
|
61
62
|
}
|
|
62
63
|
return (_ctx, _cache) => {
|
package/dist/es/package.json.js
CHANGED
|
@@ -18,13 +18,13 @@ interface NavItem {
|
|
|
18
18
|
to?: RouteLocationRaw;
|
|
19
19
|
}
|
|
20
20
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
21
|
-
click: (item: NavItem) => any;
|
|
22
21
|
change: (value: string | number) => any;
|
|
23
22
|
"update:modelValue": (value: string | number) => any;
|
|
23
|
+
navClick: (item: NavItem) => any;
|
|
24
24
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
|
-
onClick?: ((item: NavItem) => any) | undefined;
|
|
26
25
|
onChange?: ((value: string | number) => any) | undefined;
|
|
27
26
|
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
27
|
+
onNavClick?: ((item: NavItem) => any) | undefined;
|
|
28
28
|
}>, {
|
|
29
29
|
size: "" | "default" | "large" | "small";
|
|
30
30
|
type: "" | "default" | "primary" | "success" | "warning" | "danger" | "info" | "text";
|
|
@@ -36,7 +36,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent(__spreadProps(__spreadValu
|
|
|
36
36
|
buttonWidth: {},
|
|
37
37
|
route: { type: Boolean, default: false }
|
|
38
38
|
},
|
|
39
|
-
emits: ["update:modelValue", "change", "
|
|
39
|
+
emits: ["update:modelValue", "change", "navClick"],
|
|
40
40
|
setup(__props, { emit: __emit }) {
|
|
41
41
|
const props = __props;
|
|
42
42
|
const emit = __emit;
|
|
@@ -53,12 +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
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
56
|
+
emit("update:modelValue", item.value);
|
|
57
|
+
emit("change", item.value);
|
|
58
|
+
emit("navClick", item);
|
|
59
|
+
if (props.route && item.to) {
|
|
60
|
+
if (router) {
|
|
61
|
+
router.push(item.to);
|
|
62
|
+
}
|
|
62
63
|
}
|
|
63
64
|
}
|
|
64
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) => {
|
|
@@ -1535,7 +1535,7 @@ img {
|
|
|
1535
1535
|
buttonWidth: {},
|
|
1536
1536
|
route: { type: Boolean, default: false }
|
|
1537
1537
|
},
|
|
1538
|
-
emits: ["update:modelValue", "change", "
|
|
1538
|
+
emits: ["update:modelValue", "change", "navClick"],
|
|
1539
1539
|
setup(__props, { emit: __emit }) {
|
|
1540
1540
|
const props = __props;
|
|
1541
1541
|
const emit = __emit;
|
|
@@ -1552,12 +1552,13 @@ img {
|
|
|
1552
1552
|
return props.modelValue === item.value;
|
|
1553
1553
|
}
|
|
1554
1554
|
function handleClick(item) {
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1555
|
+
emit("update:modelValue", item.value);
|
|
1556
|
+
emit("change", item.value);
|
|
1557
|
+
emit("navClick", item);
|
|
1558
|
+
if (props.route && item.to) {
|
|
1559
|
+
if (router) {
|
|
1560
|
+
router.push(item.to);
|
|
1561
|
+
}
|
|
1561
1562
|
}
|
|
1562
1563
|
}
|
|
1563
1564
|
return (_ctx, _cache) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jky-component-lib",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.24",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -42,7 +42,10 @@
|
|
|
42
42
|
"jsdelivr": "dist/umd/index.js",
|
|
43
43
|
"types": "dist/es/index.d.ts",
|
|
44
44
|
"files": [
|
|
45
|
-
"
|
|
45
|
+
"LICENSE",
|
|
46
|
+
"README.md",
|
|
47
|
+
"dist",
|
|
48
|
+
"package.json"
|
|
46
49
|
],
|
|
47
50
|
"engines": {
|
|
48
51
|
"node": ">=18 || >=20 || >=22",
|