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