@volverjs/ui-vue 0.0.10-beta.10 → 0.0.10-beta.11
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/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +1 -0
- package/dist/components/VvNav/VvNav.es.js +2 -2
- package/dist/components/VvNav/VvNav.umd.js +1 -1
- package/dist/components/VvNav/VvNav.vue.d.ts +1 -0
- package/dist/components/VvTab/VvTab.es.js +2 -2
- package/dist/components/VvTab/VvTab.umd.js +1 -1
- package/dist/components/index.d.ts +9 -0
- package/dist/components/index.es.js +569 -158
- package/dist/components/index.umd.js +1 -1
- package/dist/icons.es.js +3 -3
- package/dist/icons.umd.js +1 -1
- package/dist/resolvers/unplugin.d.ts +6 -1
- package/dist/resolvers/unplugin.es.js +20 -5
- package/dist/resolvers/unplugin.umd.js +1 -1
- package/dist/types/nav.d.ts +1 -0
- package/package.json +1 -1
- package/src/assets/icons/detailed.json +1 -1
- package/src/assets/icons/normal.json +1 -1
- package/src/assets/icons/simple.json +1 -1
- package/src/components/VvNav/VvNav.vue +2 -2
- package/src/components/index.ts +9 -0
- package/src/resolvers/unplugin.ts +22 -2
- package/src/types/nav.ts +1 -0
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
>
|
|
33
33
|
<slot>
|
|
34
34
|
<VvNavItem
|
|
35
|
-
v-for="({ on = {}, ...item }, index) in items"
|
|
35
|
+
v-for="({ on = {}, data, ...item }, index) in items"
|
|
36
36
|
:key="index"
|
|
37
37
|
:data-index="index"
|
|
38
38
|
v-bind="item"
|
|
39
39
|
v-on="on"
|
|
40
40
|
>
|
|
41
|
-
<slot name="item" v-bind="{ item, index }" />
|
|
41
|
+
<slot name="item" v-bind="{ item, data, index }" />
|
|
42
42
|
</VvNavItem>
|
|
43
43
|
</slot>
|
|
44
44
|
</ul>
|
package/src/components/index.ts
CHANGED
|
@@ -2,6 +2,9 @@ export { default as VvAccordion } from './VvAccordion/VvAccordion.vue'
|
|
|
2
2
|
export { default as VvAccordionGroup } from './VvAccordionGroup/VvAccordionGroup.vue'
|
|
3
3
|
export { default as VvAction } from './VvAction/VvAction.vue'
|
|
4
4
|
export { default as VvAlert } from './VvAlert/VvAlert.vue'
|
|
5
|
+
export { default as VvAlertGroup } from './VvAlertGroup/VvAlertGroup.vue'
|
|
6
|
+
export { default as VvAvatar } from './VvAvatar/VvAvatar.vue'
|
|
7
|
+
export { default as VvAvatarGroup } from './VvAvatarGroup/VvAvatarGroup.vue'
|
|
5
8
|
export { default as VvBadge } from './VvBadge/VvBadge.vue'
|
|
6
9
|
export { default as VvBreadcrumb } from './VvBreadcrumb/VvBreadcrumb.vue'
|
|
7
10
|
export { default as VvButton } from './VvButton/VvButton.vue'
|
|
@@ -12,9 +15,15 @@ export { default as VvCheckboxGroup } from './VvCheckboxGroup/VvCheckboxGroup.vu
|
|
|
12
15
|
export { default as VvCombobox } from './VvCombobox/VvCombobox.vue'
|
|
13
16
|
export { default as VvDialog } from './VvDialog/VvDialog.vue'
|
|
14
17
|
export { default as VvDropdown } from './VvDropdown/VvDropdown.vue'
|
|
18
|
+
export { default as VvDropdownAction } from './VvDropdown/VvDropdownAction.vue'
|
|
19
|
+
export { default as VvDropdownItem } from './VvDropdown/VvDropdownItem.vue'
|
|
20
|
+
export { default as VvDropdownOptgroup } from './VvDropdown/VvDropdownOptgroup.vue'
|
|
21
|
+
export { default as VvDropdownOption } from './VvDropdown/VvDropdownOption.vue'
|
|
15
22
|
export { default as VvIcon } from './VvIcon/VvIcon.vue'
|
|
16
23
|
export { default as VvInputText } from './VvInputText/VvInputText.vue'
|
|
17
24
|
export { default as VvNav } from './VvNav/VvNav.vue'
|
|
25
|
+
export { default as VvNavItem } from './VvNav/VvNavItem.vue'
|
|
26
|
+
export { default as VvNavSeparator } from './VvNav/VvNavSeparator.vue'
|
|
18
27
|
export { default as VvProgress } from './VvProgress/VvProgress.vue'
|
|
19
28
|
export { default as VvRadio } from './VvRadio/VvRadio.vue'
|
|
20
29
|
export { default as VvRadioGroup } from './VvRadioGroup/VvRadioGroup.vue'
|
|
@@ -38,6 +38,11 @@ export interface VolverResolverOptions {
|
|
|
38
38
|
* @default undefined
|
|
39
39
|
*/
|
|
40
40
|
ignore?: string[]
|
|
41
|
+
/**
|
|
42
|
+
* cherry pick components from named exports
|
|
43
|
+
* @default undefined
|
|
44
|
+
*/
|
|
45
|
+
cherryPick?: boolean
|
|
41
46
|
}
|
|
42
47
|
|
|
43
48
|
const STYLE_EXCLUDE = ['vv-icon', 'vv-action']
|
|
@@ -113,6 +118,7 @@ export function VolverResolver({
|
|
|
113
118
|
importStyle,
|
|
114
119
|
directives,
|
|
115
120
|
ignore,
|
|
121
|
+
cherryPick,
|
|
116
122
|
}: VolverResolverOptions = {}): ComponentResolver[] {
|
|
117
123
|
return [
|
|
118
124
|
{
|
|
@@ -134,9 +140,16 @@ export function VolverResolver({
|
|
|
134
140
|
}
|
|
135
141
|
|
|
136
142
|
// import component
|
|
143
|
+
if (cherryPick) {
|
|
144
|
+
return {
|
|
145
|
+
from: `@volverjs/ui-vue/${kebabName}`,
|
|
146
|
+
sideEffects: getSideEffects(kebabName, importStyle),
|
|
147
|
+
}
|
|
148
|
+
}
|
|
137
149
|
return {
|
|
138
|
-
from:
|
|
150
|
+
from: '@volverjs/ui-vue/components',
|
|
139
151
|
sideEffects: getSideEffects(kebabName, importStyle),
|
|
152
|
+
name,
|
|
140
153
|
}
|
|
141
154
|
},
|
|
142
155
|
},
|
|
@@ -159,9 +172,16 @@ export function VolverResolver({
|
|
|
159
172
|
}
|
|
160
173
|
|
|
161
174
|
// import directive
|
|
175
|
+
if (cherryPick) {
|
|
176
|
+
return {
|
|
177
|
+
from: `@volverjs/ui-vue/${kebabName}`,
|
|
178
|
+
sideEffects: getSideEffects(kebabName, importStyle),
|
|
179
|
+
}
|
|
180
|
+
}
|
|
162
181
|
return {
|
|
163
|
-
from:
|
|
182
|
+
from: '@volverjs/ui-vue/directives',
|
|
164
183
|
sideEffects: getSideEffects(kebabName, importStyle),
|
|
184
|
+
name,
|
|
165
185
|
}
|
|
166
186
|
},
|
|
167
187
|
},
|