Commit 6142da5
authored
feat: restructure
In this PR, I refactored the useOptions composable to have a more
abstract type interface, which makes it easier to use this composable in
different components.
This introduces some breaking changes to the options props for several
components.
- Simplify `useOptions` composable and types
- Remove `hidden` property from internal options representation.
Components which need that propery have to handle it by its own.
- Update `options` property type of several components.
BREAKING CHANGE: The `options` property type of components with child
items has changed. The type got simplified to a more abstract type
interface.options properties and types (#1517)1 parent 4a8453e commit 6142da5
File tree
110 files changed
+1744
-2294
lines changed- packages
- docs/components
- oruga/src
- components
- autocomplete
- examples
- tests
- __snapshots__
- breadcrumb
- examples
- tests
- carousel
- datepicker
- dropdown
- examples
- tests
- __snapshots__
- listbox
- examples
- tests
- select
- examples
- tests
- steps
- tests
- __snapshots__
- table
- tabs
- tests
- __snapshots__
- taginput
- examples
- tests
- __snapshots__
- timepicker
- tree
- examples
- tests
- __snapshots__
- composables
- tests
- types
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
110 files changed
+1744
-2294
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
0 commit comments