mirror of
https://github.com/talktao/Vue3-Vite-Vant-TS-H5.git
synced 2025-04-27 03:56:36 +08:00
feat:按需导入需要的vant组件
This commit is contained in:
parent
2c34ae1652
commit
0b4dc34fb5
@ -2,7 +2,7 @@
|
|||||||
* @author TalkTao
|
* @author TalkTao
|
||||||
* @description 按需引入Vant
|
* @description 按需引入Vant
|
||||||
*/
|
*/
|
||||||
import { Button, Tabbar, TabbarItem, Sticky, NavBar, Icon, Search, DropdownMenu, DropdownItem, Image, Lazyload, Tabs, Tab, Toast, Field, CellGroup, Form } from 'vant'
|
import { Button, Tabbar, TabbarItem, Sticky, NavBar, Icon, Search, DropdownMenu, DropdownItem, Image, Lazyload, Tabs, Tab, Toast, Field, Cell, CellGroup, Form, List } from 'vant'
|
||||||
const pluginsVant = [
|
const pluginsVant = [
|
||||||
Button,
|
Button,
|
||||||
Tabbar,
|
Tabbar,
|
||||||
@ -19,8 +19,10 @@ const pluginsVant = [
|
|||||||
Tab,
|
Tab,
|
||||||
Toast,
|
Toast,
|
||||||
Field,
|
Field,
|
||||||
|
Cell,
|
||||||
CellGroup,
|
CellGroup,
|
||||||
Form
|
Form,
|
||||||
|
List
|
||||||
]
|
]
|
||||||
export const vantPlugins = {
|
export const vantPlugins = {
|
||||||
install: function(vm) {
|
install: function(vm) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user