Skip to content
This repository was archived by the owner on Jan 8, 2025. It is now read-only.

Commit c3179b6

Browse files
committed
feat(ui/picker): add component picker
1 parent 3b78294 commit c3179b6

File tree

29 files changed

+12543
-26
lines changed

29 files changed

+12543
-26
lines changed

packages/varlet-vue2-ui/json/area.json

Lines changed: 10706 additions & 0 deletions
Large diffs are not rendered by default.

packages/varlet-vue2-ui/src/col/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import type { App } from 'vue'
1+
import type { VueConstructor } from 'vue'
22
import Col from './Col.vue'
33

4-
Col.install = function (app: App) {
4+
Col.install = function (app: VueConstructor) {
55
app.component(Col.name, Col)
66
}
77

packages/varlet-vue2-ui/src/dialog/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@ function Dialog(options: DialogOptions | string | number): Promise<DialogActions
5858

5959
singletonInstance = instance
6060

61-
instance.$on('update:show', (value: boolean) => {
62-
instance.show = value
63-
})
64-
6561
instance.$on('open', () => dialogOptions.onOpen?.())
6662

6763
instance.$on('opened', () => dialogOptions.onOpened?.())
@@ -93,6 +89,10 @@ function Dialog(options: DialogOptions | string | number): Promise<DialogActions
9389
unmount()
9490
singletonInstance === instance && (singletonInstance = null)
9591
})
92+
93+
instance.$on('update:show', (value: boolean) => {
94+
instance.show = value
95+
})
9696
})
9797
}
9898

packages/varlet-vue2-ui/src/divider/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import type { App } from 'vue'
1+
import type { VueConstructor } from 'vue'
22
import Divider from './Divider.vue'
33

4-
Divider.install = function (app: App) {
4+
Divider.install = function (app: VueConstructor) {
55
app.component(Divider.name, Divider)
66
}
77

packages/varlet-vue2-ui/src/menu/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import type { App } from 'vue'
1+
import type { VueConstructor } from 'vue'
22
import Menu from './Menu'
33

4-
Menu.install = function (app: App) {
4+
Menu.install = function (app: VueConstructor) {
55
app.component(Menu.name, Menu)
66
}
77

packages/varlet-vue2-ui/src/option/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import type { App } from 'vue'
1+
import type { VueConstructor } from 'vue'
22
import Option from './Option.vue'
33

4-
Option.install = function (app: App) {
4+
Option.install = function (app: VueConstructor) {
55
app.component(Option.name, Option)
66
}
77

0 commit comments

Comments
 (0)