feat:按需导入需要的vant组件

This commit is contained in:
talktao 2022-03-25 00:51:34 +08:00
parent 2c34ae1652
commit 0b4dc34fb5

View File

@ -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) {