@rocketui/vue 0.2.67 → 0.2.69
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/rocket-ui-vue.d.ts +21 -2
- package/dist/rocket-ui-vue.js +21 -14
- package/dist/rocket-ui-vue.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/rocket-ui-vue.d.ts
CHANGED
|
@@ -653,6 +653,12 @@ declare interface AccordionProps {
|
|
|
653
653
|
* ```
|
|
654
654
|
*/
|
|
655
655
|
accordions: Accordion[];
|
|
656
|
+
/**
|
|
657
|
+
* Allow multiple accordions to be open at the same time
|
|
658
|
+
* @default false
|
|
659
|
+
* @type boolean
|
|
660
|
+
*/
|
|
661
|
+
multiple?: boolean;
|
|
656
662
|
}
|
|
657
663
|
|
|
658
664
|
declare interface BadgeProps {
|
|
@@ -2075,9 +2081,22 @@ export declare const RAccordion: __VLS_WithTemplateSlots<DefineComponent<__VLS_T
|
|
|
2075
2081
|
};
|
|
2076
2082
|
}): any;
|
|
2077
2083
|
icon?(_: {
|
|
2084
|
+
item: Accordion & {
|
|
2085
|
+
title: string;
|
|
2086
|
+
content: string;
|
|
2087
|
+
open: boolean;
|
|
2088
|
+
disabled: boolean;
|
|
2089
|
+
};
|
|
2078
2090
|
open: boolean;
|
|
2079
2091
|
}): any;
|
|
2080
|
-
content?(_: {
|
|
2092
|
+
content?(_: {
|
|
2093
|
+
accordion: Accordion & {
|
|
2094
|
+
title: string;
|
|
2095
|
+
content: string;
|
|
2096
|
+
open: boolean;
|
|
2097
|
+
disabled: boolean;
|
|
2098
|
+
};
|
|
2099
|
+
}): any;
|
|
2081
2100
|
}>;
|
|
2082
2101
|
|
|
2083
2102
|
export declare const RAlert: __VLS_WithTemplateSlots_2<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps_2<Props>, {
|
|
@@ -2385,6 +2404,7 @@ export declare const RDropdown: __VLS_WithTemplateSlots_6<DefineComponent<__VLS_
|
|
|
2385
2404
|
errorMsg: string;
|
|
2386
2405
|
options: any;
|
|
2387
2406
|
tooltipClass: string;
|
|
2407
|
+
multiple: boolean;
|
|
2388
2408
|
loading: boolean;
|
|
2389
2409
|
prependIcon: string;
|
|
2390
2410
|
appendIcon: string;
|
|
@@ -2392,7 +2412,6 @@ export declare const RDropdown: __VLS_WithTemplateSlots_6<DefineComponent<__VLS_
|
|
|
2392
2412
|
clearable: boolean;
|
|
2393
2413
|
placeholder: string;
|
|
2394
2414
|
chips: boolean;
|
|
2395
|
-
multiple: boolean;
|
|
2396
2415
|
searchable: boolean;
|
|
2397
2416
|
closeOnSelect: boolean;
|
|
2398
2417
|
dropdownClass: string;
|
package/dist/rocket-ui-vue.js
CHANGED
|
@@ -7316,10 +7316,11 @@ const b2 = {
|
|
|
7316
7316
|
}, null, 8, v2)
|
|
7317
7317
|
], 8, w2));
|
|
7318
7318
|
}
|
|
7319
|
-
}), y2 = ["data-state"], P2 =
|
|
7319
|
+
}), y2 = ["data-state", "onClick"], P2 = { class: "r-accordion__header" }, T2 = { class: "r-accordion__title" }, F2 = { class: "r-accordion__icon" }, R2 = { class: "r-accordion__content" }, r0 = /* @__PURE__ */ x({
|
|
7320
7320
|
__name: "RAccordion",
|
|
7321
7321
|
props: {
|
|
7322
|
-
accordions: {}
|
|
7322
|
+
accordions: {},
|
|
7323
|
+
multiple: { type: Boolean }
|
|
7323
7324
|
},
|
|
7324
7325
|
setup(H) {
|
|
7325
7326
|
const V = H, C = v1(
|
|
@@ -7331,34 +7332,40 @@ const b2 = {
|
|
|
7331
7332
|
}))
|
|
7332
7333
|
);
|
|
7333
7334
|
function M(i) {
|
|
7334
|
-
C[i].disabled
|
|
7335
|
-
|
|
7336
|
-
|
|
7335
|
+
if (!C[i].disabled) {
|
|
7336
|
+
if (V.multiple) {
|
|
7337
|
+
C[i].open = !C[i].open;
|
|
7338
|
+
return;
|
|
7339
|
+
}
|
|
7340
|
+
C.forEach((L, A) => {
|
|
7341
|
+
C[A].open = A === i ? !C[A].open : !1;
|
|
7342
|
+
});
|
|
7343
|
+
}
|
|
7337
7344
|
}
|
|
7338
7345
|
return (i, L) => (m(!0), r(t1, null, r1(C, (A, e) => (m(), r("div", {
|
|
7339
7346
|
key: e,
|
|
7340
7347
|
class: p(["r-accordion", {
|
|
7341
|
-
"r-accordion--disabled": A.disabled
|
|
7348
|
+
"r-accordion--disabled": A.disabled,
|
|
7349
|
+
"cursor-pointer": !A.open
|
|
7342
7350
|
}]),
|
|
7343
|
-
"data-state": A.open ? "opened" : "closed"
|
|
7351
|
+
"data-state": A.open ? "opened" : "closed",
|
|
7352
|
+
onClick: (d) => M(e)
|
|
7344
7353
|
}, [
|
|
7345
|
-
u("div",
|
|
7346
|
-
class: "r-accordion__header",
|
|
7347
|
-
onClick: (d) => M(e)
|
|
7348
|
-
}, [
|
|
7354
|
+
u("div", P2, [
|
|
7349
7355
|
f(i.$slots, "title", { accordion: A }, () => [
|
|
7350
7356
|
u("div", T2, w(A.title), 1)
|
|
7351
7357
|
]),
|
|
7352
7358
|
u("div", F2, [
|
|
7353
7359
|
f(i.$slots, "icon", {
|
|
7360
|
+
item: A,
|
|
7354
7361
|
open: A.open
|
|
7355
7362
|
}, () => [
|
|
7356
|
-
q(D, { name: "
|
|
7363
|
+
q(D, { name: "mdiChevronDown" })
|
|
7357
7364
|
])
|
|
7358
7365
|
])
|
|
7359
|
-
]
|
|
7366
|
+
]),
|
|
7360
7367
|
u("div", R2, [
|
|
7361
|
-
f(i.$slots, "content", {}, () => [
|
|
7368
|
+
f(i.$slots, "content", { accordion: A }, () => [
|
|
7362
7369
|
u("span", null, w(A.content), 1)
|
|
7363
7370
|
])
|
|
7364
7371
|
])
|