mirror of
https://github.com/talktao/Vue3-Vite-Vant-TS-H5.git
synced 2025-04-06 03:57:55 +08:00
feat:按需导入需要的vant组件
This commit is contained in:
parent
2c34ae1652
commit
0b4dc34fb5
@ -2,7 +2,7 @@
|
||||
* @author TalkTao
|
||||
* @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 = [
|
||||
Button,
|
||||
Tabbar,
|
||||
@ -19,8 +19,10 @@ const pluginsVant = [
|
||||
Tab,
|
||||
Toast,
|
||||
Field,
|
||||
Cell,
|
||||
CellGroup,
|
||||
Form
|
||||
Form,
|
||||
List
|
||||
]
|
||||
export const vantPlugins = {
|
||||
install: function(vm) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user