wave-ui 4.0.1 → 4.0.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/dist/types/types/components/WAccordion.d.ts +6 -6
- package/dist/types/types/components/WTabs.d.ts +6 -5
- package/dist/wave-ui.cjs.js +2 -2
- package/dist/wave-ui.esm.js +44 -15
- package/dist/wave-ui.umd.js +2 -2
- package/package.json +1 -1
- package/src/wave-ui/components/w-accordion/index.vue +15 -2
- package/src/wave-ui/components/w-tabs/index.vue +61 -18
|
@@ -4,10 +4,10 @@ export interface WaveAccordionProps {
|
|
|
4
4
|
/**
|
|
5
5
|
* `value` in Vue 2.
|
|
6
6
|
* Provide an array of booleans to dictate the state (expanded and collapsed) of all the accordion items. This value gets updated by the accordion when using a v-model.
|
|
7
|
-
* @property {Array<
|
|
7
|
+
* @property {Array<boolean>} modelValue
|
|
8
8
|
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
9
9
|
*/
|
|
10
|
-
modelValue?: Array<
|
|
10
|
+
modelValue?: Array<boolean>;
|
|
11
11
|
/**
|
|
12
12
|
* Applies a text color on each accordion item. Accepts all the color names of the color palette, status colors, or custom colors (learn more about the colors in the `colors` knowledge base page).
|
|
13
13
|
* Providing a color hex, rgb(a) or hsl(a) will not work.
|
|
@@ -163,16 +163,16 @@ export interface WaveAccordionProps {
|
|
|
163
163
|
export interface WaveAccordionEmits {
|
|
164
164
|
/**
|
|
165
165
|
* Emitted each time the state of the accordion changes (when an item is expanded or collapsed).<br>Updates the v-model value in Vue 2.x only.
|
|
166
|
-
* @param {
|
|
166
|
+
* @param {Array<boolean>} state - An array of booleans representing the expanded state of each accordion item.
|
|
167
167
|
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
168
168
|
*/
|
|
169
|
-
'onInput'?: (
|
|
169
|
+
'onInput'?: (state: Array<boolean>) => void;
|
|
170
170
|
/**
|
|
171
171
|
* Emitted each time the state of the accordion changes (when an item is expanded or collapsed).<br>Updates the v-model value in Vue 3 only.
|
|
172
|
-
* @param {
|
|
172
|
+
* @param {Array<boolean>} state - An array of booleans representing the expanded state of each accordion item.
|
|
173
173
|
* @see https://antoniandre.github.io/wave-ui/w-accordion
|
|
174
174
|
*/
|
|
175
|
-
'onUpdate:modelValue'?: (
|
|
175
|
+
'onUpdate:modelValue'?: (state: Array<boolean>) => void;
|
|
176
176
|
/**
|
|
177
177
|
* Emitted on each accordion item title focus.
|
|
178
178
|
* @param {any} renameMe1 - The focused accordion item object.
|
|
@@ -21,7 +21,8 @@ export interface WTabsItem {
|
|
|
21
21
|
export interface WaveTabsProps {
|
|
22
22
|
/**
|
|
23
23
|
* `value` in Vue 2.
|
|
24
|
-
* Provide a tab index (a number starting from 0)
|
|
24
|
+
* Provide a tab index (a number starting from 0), or a tab id when using `itemIdKey`, to open it.
|
|
25
|
+
* This value gets updated when using a v-model.
|
|
25
26
|
* @property {number|string} modelValue
|
|
26
27
|
* @see https://antoniandre.github.io/wave-ui/w-tabs
|
|
27
28
|
*/
|
|
@@ -180,16 +181,16 @@ export interface WaveTabsProps {
|
|
|
180
181
|
export interface WaveTabsEmits {
|
|
181
182
|
/**
|
|
182
183
|
* Emitted each time the current tab changes.<br>Updates the v-model value in Vue 2.x only.
|
|
183
|
-
* @param {
|
|
184
|
+
* @param {number|string} value - The opened tab index, or tab id when `modelValue` uses ids.
|
|
184
185
|
* @see https://antoniandre.github.io/wave-ui/w-tabs
|
|
185
186
|
*/
|
|
186
|
-
'onInput'?: (
|
|
187
|
+
'onInput'?: (value: number | string) => void;
|
|
187
188
|
/**
|
|
188
189
|
* Emitted each time the current tab changes.<br>Updates the v-model value in Vue 3 only.
|
|
189
|
-
* @param {
|
|
190
|
+
* @param {number|string} value - The opened tab index, or tab id when `modelValue` uses ids.
|
|
190
191
|
* @see https://antoniandre.github.io/wave-ui/w-tabs
|
|
191
192
|
*/
|
|
192
|
-
'onUpdate:modelValue'?: (
|
|
193
|
+
'onUpdate:modelValue'?: (value: number | string) => void;
|
|
193
194
|
/**
|
|
194
195
|
* Emitted on each tab title focus.
|
|
195
196
|
* @param {WTabsItem} tab - The focused tab item object.
|