├── static ├── .gitkeep ├── vant │ ├── common │ │ ├── style │ │ │ ├── var.wxss │ │ │ ├── mixins │ │ │ │ ├── clearfix.wxss │ │ │ │ ├── ellipsis.wxss │ │ │ │ └── hairline.wxss │ │ │ ├── clearfix.wxss │ │ │ └── ellipsis.wxss │ │ ├── color.js │ │ ├── color.d.ts │ │ ├── component.d.ts │ │ ├── utils.d.ts │ │ └── utils.js │ ├── area │ │ ├── index.d.ts │ │ ├── index.wxss │ │ ├── index.json │ │ └── index.wxml │ ├── badge │ │ ├── index.d.ts │ │ ├── index.json │ │ ├── index.wxml │ │ └── index.wxss │ ├── card │ │ ├── index.d.ts │ │ └── index.json │ ├── cell │ │ ├── index.d.ts │ │ └── index.json │ ├── col │ │ ├── index.d.ts │ │ ├── index.json │ │ ├── index.wxml │ │ └── index.js │ ├── field │ │ ├── index.d.ts │ │ └── index.json │ ├── icon │ │ ├── index.d.ts │ │ ├── index.json │ │ ├── index.js │ │ └── index.wxml │ ├── info │ │ ├── index.d.ts │ │ ├── index.json │ │ ├── index.wxml │ │ ├── index.js │ │ └── index.wxss │ ├── panel │ │ ├── index.d.ts │ │ ├── index.json │ │ ├── index.wxss │ │ ├── index.js │ │ └── index.wxml │ ├── popup │ │ ├── index.d.ts │ │ └── index.json │ ├── radio │ │ ├── index.d.ts │ │ └── index.json │ ├── rate │ │ ├── index.d.ts │ │ ├── index.json │ │ └── index.wxss │ ├── row │ │ ├── index.d.ts │ │ ├── index.json │ │ ├── index.wxss │ │ └── index.wxml │ ├── steps │ │ ├── index.d.ts │ │ ├── index.json │ │ └── index.js │ ├── tab │ │ ├── index.d.ts │ │ ├── index.json │ │ ├── index.wxss │ │ └── index.wxml │ ├── tabs │ │ ├── index.d.ts │ │ └── index.json │ ├── tag │ │ ├── index.d.ts │ │ ├── index.json │ │ ├── index.wxml │ │ └── index.wxss │ ├── toast │ │ ├── index.d.ts │ │ ├── index.json │ │ └── index.js │ ├── button │ │ ├── index.d.ts │ │ └── index.json │ ├── cell-group │ │ ├── index.d.ts │ │ ├── index.json │ │ ├── index.wxss │ │ ├── index.wxml │ │ └── index.js │ ├── checkbox │ │ ├── index.d.ts │ │ ├── index.json │ │ └── index.wxml │ ├── collapse │ │ ├── index.d.ts │ │ ├── index.wxss │ │ ├── index.json │ │ └── index.wxml │ ├── dialog │ │ ├── index.d.ts │ │ └── index.json │ ├── loading │ │ ├── index.d.ts │ │ ├── index.json │ │ ├── index.js │ │ └── index.wxml │ ├── nav-bar │ │ ├── index.d.ts │ │ ├── index.json │ │ ├── index.wxss │ │ └── index.js │ ├── notice-bar │ │ ├── index.d.ts │ │ └── index.json │ ├── notify │ │ ├── index.d.ts │ │ ├── index.json │ │ ├── index.wxss │ │ ├── notify.d.ts │ │ ├── index.wxml │ │ └── notify.js │ ├── overlay │ │ ├── index.d.ts │ │ ├── index.wxss │ │ ├── index.json │ │ ├── index.wxml │ │ └── index.js │ ├── picker │ │ ├── index.d.ts │ │ ├── index.json │ │ ├── shared.js │ │ └── shared.d.ts │ ├── progress │ │ ├── index.d.ts │ │ ├── index.json │ │ ├── index.wxs │ │ ├── index.wxss │ │ ├── index.js │ │ └── index.wxml │ ├── radio-group │ │ ├── index.wxml │ │ ├── index.d.ts │ │ ├── index.wxss │ │ └── index.json │ ├── search │ │ ├── index.d.ts │ │ ├── index.json │ │ └── index.wxss │ ├── slider │ │ ├── index.d.ts │ │ ├── index.json │ │ └── index.wxss │ ├── stepper │ │ ├── index.d.ts │ │ └── index.json │ ├── submit-bar │ │ ├── index.d.ts │ │ └── index.json │ ├── swipe-cell │ │ ├── index.d.ts │ │ ├── index.json │ │ ├── index.wxss │ │ └── index.wxml │ ├── switch │ │ ├── index.d.ts │ │ ├── index.json │ │ ├── index.wxml │ │ └── index.wxss │ ├── tabbar │ │ ├── index.d.ts │ │ ├── index.json │ │ ├── index.wxss │ │ └── index.wxml │ ├── transition │ │ ├── index.d.ts │ │ ├── index.json │ │ ├── index.wxml │ │ └── index.js │ ├── action-sheet │ │ ├── index.d.ts │ │ └── index.json │ ├── badge-group │ │ ├── index.d.ts │ │ ├── index.json │ │ ├── index.wxss │ │ └── index.wxml │ ├── checkbox-group │ │ ├── index.d.ts │ │ ├── index.wxml │ │ ├── index.wxss │ │ └── index.json │ ├── collapse-item │ │ ├── index.d.ts │ │ ├── index.json │ │ └── index.wxss │ ├── datetime-picker │ │ ├── index.d.ts │ │ ├── index.wxss │ │ ├── index.json │ │ └── index.wxml │ ├── goods-action │ │ ├── index.d.ts │ │ ├── index.json │ │ ├── index.js │ │ ├── index.wxss │ │ └── index.wxml │ ├── picker-column │ │ ├── index.d.ts │ │ ├── index.json │ │ ├── index.wxss │ │ └── index.wxs │ ├── switch-cell │ │ ├── index.d.ts │ │ ├── index.wxss │ │ ├── index.json │ │ └── index.wxml │ ├── tabbar-item │ │ ├── index.d.ts │ │ ├── index.json │ │ └── index.wxss │ ├── tree-select │ │ ├── index.d.ts │ │ └── index.json │ ├── goods-action-button │ │ ├── index.d.ts │ │ ├── index.wxss │ │ ├── index.json │ │ └── index.js │ ├── goods-action-icon │ │ ├── index.d.ts │ │ ├── index.json │ │ ├── index.wxss │ │ └── index.js │ ├── mixins │ │ ├── basic.d.ts │ │ ├── link.d.ts │ │ ├── touch.d.ts │ │ ├── button.d.ts │ │ ├── open-type.d.ts │ │ ├── observer │ │ │ ├── behavior.d.ts │ │ │ ├── props.d.ts │ │ │ ├── index.d.ts │ │ │ └── props.js │ │ ├── transition.d.ts │ │ ├── safe-area.d.ts │ │ ├── link.js │ │ ├── button.js │ │ ├── basic.js │ │ └── open-type.js │ └── wxs │ │ ├── array.wxs │ │ ├── object.wxs │ │ └── utils.wxs ├── img │ ├── logo.png │ ├── Add_32x32.png │ └── Add_active.png └── tabs │ ├── home.png │ ├── orders.png │ ├── home-active.png │ └── orders-active.png ├── src ├── pages │ ├── rate │ │ ├── rate.css │ │ ├── main.js │ │ └── main.json │ ├── tab │ │ ├── tab.css │ │ ├── main.js │ │ └── main.json │ ├── tag │ │ ├── tag.css │ │ ├── main.js │ │ └── main.json │ ├── badge │ │ ├── badge.css │ │ ├── main.js │ │ └── main.json │ ├── button │ │ ├── button.css │ │ ├── main.js │ │ └── main.json │ ├── field │ │ ├── field.css │ │ ├── main.js │ │ └── main.json │ ├── index │ │ ├── index.css │ │ ├── main.js │ │ └── main.json │ ├── mycell │ │ ├── mycell.css │ │ ├── main.js │ │ └── main.json │ ├── navbar │ │ ├── navbar.css │ │ ├── main.js │ │ └── main.json │ ├── picker │ │ ├── picker.css │ │ ├── main.js │ │ └── main.json │ ├── radios │ │ ├── radios.css │ │ ├── main.js │ │ └── main.json │ ├── search │ │ ├── search.css │ │ ├── main.js │ │ └── main.json │ ├── steps │ │ ├── steps.css │ │ ├── main.js │ │ └── main.json │ ├── switch │ │ ├── switch.css │ │ ├── main.js │ │ └── main.json │ ├── checkbox │ │ ├── checkbox.css │ │ ├── main.js │ │ └── main.json │ ├── icon │ │ ├── icon.css │ │ ├── main.js │ │ └── main.json │ ├── mydialog │ │ ├── mydialog.css │ │ ├── main.js │ │ └── main.json │ ├── mynotify │ │ ├── mynotify.css │ │ ├── main.js │ │ └── main.json │ ├── mypanel │ │ ├── mypanel.css │ │ ├── main.js │ │ └── main.json │ ├── mytabbar │ │ ├── mytabbar.css │ │ ├── main.js │ │ └── main.json │ ├── mytoast │ │ ├── mytoast.css │ │ ├── main.js │ │ └── main.json │ ├── noticebar │ │ ├── noticebar.css │ │ ├── main.js │ │ └── main.json │ ├── pickerobj │ │ ├── pickerobj.css │ │ ├── main.js │ │ └── main.json │ ├── readmeme │ │ ├── readmeme.css │ │ ├── main.json │ │ └── main.js │ ├── stepper │ │ ├── stepper.css │ │ ├── main.js │ │ └── main.json │ ├── loading │ │ ├── loading.css │ │ ├── main.js │ │ └── main.json │ ├── mycollapse │ │ ├── mycollapse.css │ │ ├── main.js │ │ └── main.json │ ├── datetimepicker │ │ ├── datetimepicker.css │ │ ├── main.js │ │ └── main.json │ ├── debugpage │ │ ├── selectimg │ │ │ ├── selectimg.css │ │ │ ├── main.json │ │ │ └── main.js │ │ └── scanbarcode │ │ │ ├── scanbarcode.css │ │ │ ├── main.json │ │ │ └── main.js │ ├── mytransition │ │ ├── mytransition.css │ │ ├── main.js │ │ └── main.json │ ├── pickermorecols │ │ ├── pickermorecols.css │ │ ├── main.js │ │ └── main.json │ ├── layout │ │ ├── layout.css │ │ ├── main.js │ │ └── main.json │ ├── actionsheet │ │ ├── actionsheet.css │ │ ├── main.js │ │ └── main.json │ ├── mypopup │ │ ├── mypopup.css │ │ ├── main.js │ │ └── main.json │ ├── iconall │ │ ├── main.js │ │ ├── main.json │ │ └── iconall.css │ ├── myslider │ │ ├── main.js │ │ ├── main.json │ │ └── myslider.css │ └── layoutdemo │ │ ├── main.js │ │ ├── layoutdemo.css │ │ └── main.json ├── main.js ├── App.vue └── components │ └── mybr │ └── mybr.vue ├── config ├── prod.env.js └── dev.env.js ├── _参考源码 └── 源码1 │ ├── code │ └── hello-mpvue-vantweapp │ │ ├── static │ │ ├── vant │ │ │ ├── checkbox-group │ │ │ │ ├── index.wxml │ │ │ │ ├── index.wxss │ │ │ │ └── index.json │ │ │ ├── radio-group │ │ │ │ ├── index.wxml │ │ │ │ ├── index.wxss │ │ │ │ └── index.json │ │ │ ├── area │ │ │ │ ├── index.wxss │ │ │ │ ├── index.json │ │ │ │ └── index.wxml │ │ │ ├── loading │ │ │ │ ├── index.json │ │ │ │ ├── index.js │ │ │ │ └── index.wxml │ │ │ ├── stepper │ │ │ │ └── index.json │ │ │ ├── tab │ │ │ │ ├── index.json │ │ │ │ ├── index.wxss │ │ │ │ └── index.wxml │ │ │ ├── tag │ │ │ │ ├── index.json │ │ │ │ ├── index.wxml │ │ │ │ └── index.wxss │ │ │ ├── cell-group │ │ │ │ ├── index.json │ │ │ │ ├── index.wxss │ │ │ │ ├── index.wxml │ │ │ │ └── index.js │ │ │ ├── col │ │ │ │ ├── index.json │ │ │ │ ├── index.wxml │ │ │ │ └── index.js │ │ │ ├── info │ │ │ │ ├── index.json │ │ │ │ ├── index.js │ │ │ │ ├── index.wxml │ │ │ │ └── index.wxss │ │ │ ├── row │ │ │ │ ├── index.json │ │ │ │ ├── index.wxss │ │ │ │ └── index.wxml │ │ │ ├── slider │ │ │ │ ├── index.json │ │ │ │ └── index.wxss │ │ │ ├── tabbar │ │ │ │ ├── index.json │ │ │ │ ├── index.wxss │ │ │ │ └── index.wxml │ │ │ ├── transition │ │ │ │ ├── index.json │ │ │ │ ├── index.js │ │ │ │ └── index.wxml │ │ │ ├── badge-group │ │ │ │ ├── index.json │ │ │ │ ├── index.wxss │ │ │ │ └── index.wxml │ │ │ ├── collapse │ │ │ │ ├── index.json │ │ │ │ └── index.wxml │ │ │ ├── goods-action │ │ │ │ ├── index.json │ │ │ │ ├── index.js │ │ │ │ ├── index.wxml │ │ │ │ └── index.wxss │ │ │ ├── picker-column │ │ │ │ ├── index.json │ │ │ │ └── index.wxss │ │ │ ├── progress │ │ │ │ ├── index.json │ │ │ │ ├── index.wxml │ │ │ │ └── index.wxss │ │ │ ├── swipe-cell │ │ │ │ ├── index.json │ │ │ │ ├── index.wxss │ │ │ │ └── index.wxml │ │ │ ├── common │ │ │ │ ├── style │ │ │ │ │ ├── clearfix.wxss │ │ │ │ │ └── ellipsis.wxss │ │ │ │ ├── color.js │ │ │ │ └── utils.js │ │ │ ├── goods-action-button │ │ │ │ ├── index.wxss │ │ │ │ ├── index.json │ │ │ │ └── index.js │ │ │ ├── overlay │ │ │ │ ├── index.wxss │ │ │ │ ├── index.json │ │ │ │ ├── index.wxml │ │ │ │ └── index.js │ │ │ ├── cell │ │ │ │ ├── index.json │ │ │ │ └── index.js │ │ │ ├── badge │ │ │ │ ├── index.json │ │ │ │ ├── index.wxml │ │ │ │ ├── index.wxss │ │ │ │ └── index.js │ │ │ ├── card │ │ │ │ └── index.json │ │ │ ├── icon │ │ │ │ ├── index.json │ │ │ │ ├── index.js │ │ │ │ └── index.wxml │ │ │ ├── notice-bar │ │ │ │ ├── index.json │ │ │ │ └── index.wxss │ │ │ ├── panel │ │ │ │ ├── index.json │ │ │ │ ├── index.wxss │ │ │ │ ├── index.js │ │ │ │ └── index.wxml │ │ │ ├── radio │ │ │ │ ├── index.json │ │ │ │ └── index.wxss │ │ │ ├── rate │ │ │ │ ├── index.json │ │ │ │ ├── index.wxss │ │ │ │ └── index.wxml │ │ │ ├── steps │ │ │ │ └── index.json │ │ │ ├── tabs │ │ │ │ └── index.json │ │ │ ├── button │ │ │ │ ├── index.json │ │ │ │ └── index.js │ │ │ ├── checkbox │ │ │ │ ├── index.json │ │ │ │ └── index.wxml │ │ │ ├── nav-bar │ │ │ │ ├── index.json │ │ │ │ ├── index.js │ │ │ │ └── index.wxss │ │ │ ├── collapse-item │ │ │ │ ├── index.json │ │ │ │ └── index.wxss │ │ │ ├── popup │ │ │ │ ├── index.json │ │ │ │ └── index.wxml │ │ │ ├── submit-bar │ │ │ │ ├── index.json │ │ │ │ └── index.wxss │ │ │ ├── switch │ │ │ │ ├── index.json │ │ │ │ ├── index.wxml │ │ │ │ └── index.wxss │ │ │ ├── datetime-picker │ │ │ │ ├── index.json │ │ │ │ └── index.wxml │ │ │ ├── notify │ │ │ │ ├── index.json │ │ │ │ ├── index.wxss │ │ │ │ └── index.wxml │ │ │ ├── wxs │ │ │ │ ├── array.wxs │ │ │ │ ├── object.wxs │ │ │ │ └── utils.wxs │ │ │ ├── switch-cell │ │ │ │ ├── index.wxss │ │ │ │ ├── index.json │ │ │ │ ├── index.wxml │ │ │ │ └── index.js │ │ │ ├── field │ │ │ │ └── index.json │ │ │ ├── search │ │ │ │ ├── index.json │ │ │ │ └── index.wxss │ │ │ ├── dialog │ │ │ │ └── index.json │ │ │ ├── tabbar-item │ │ │ │ ├── index.json │ │ │ │ └── index.wxss │ │ │ ├── tree-select │ │ │ │ └── index.json │ │ │ ├── goods-action-icon │ │ │ │ ├── index.json │ │ │ │ ├── index.wxss │ │ │ │ └── index.js │ │ │ ├── picker │ │ │ │ └── index.json │ │ │ ├── action-sheet │ │ │ │ └── index.json │ │ │ ├── toast │ │ │ │ ├── index.json │ │ │ │ └── index.js │ │ │ └── mixins │ │ │ │ ├── button.js │ │ │ │ ├── link.js │ │ │ │ ├── basic.js │ │ │ │ ├── observer │ │ │ │ └── props.js │ │ │ │ ├── open-type.js │ │ │ │ └── touch.js │ │ └── images │ │ │ ├── custom_active_checkbox.png │ │ │ └── custom_normal_checkbox.png │ │ ├── src │ │ ├── pages │ │ │ ├── switch │ │ │ │ ├── index.wxss │ │ │ │ ├── index.json │ │ │ │ └── index.js │ │ │ ├── stepper │ │ │ │ ├── index.wxss │ │ │ │ ├── index.json │ │ │ │ ├── index.js │ │ │ │ └── index.wxml │ │ │ ├── switch-cell │ │ │ │ ├── index.wxss │ │ │ │ ├── index.json │ │ │ │ ├── index.js │ │ │ │ └── index.wxml │ │ │ ├── col │ │ │ │ ├── index.js │ │ │ │ ├── index.json │ │ │ │ └── index.wxss │ │ │ ├── logs │ │ │ │ ├── main.json │ │ │ │ └── main.js │ │ │ ├── slider │ │ │ │ ├── index.json │ │ │ │ ├── index.wxss │ │ │ │ └── index.js │ │ │ ├── dashboard │ │ │ │ ├── index.json │ │ │ │ └── index.js │ │ │ ├── button │ │ │ │ ├── main.json │ │ │ │ └── main.js │ │ │ ├── card │ │ │ │ ├── main.js │ │ │ │ └── main.json │ │ │ ├── area │ │ │ │ ├── main.js │ │ │ │ └── main.json │ │ │ ├── badge │ │ │ │ ├── main.js │ │ │ │ └── main.json │ │ │ ├── cell │ │ │ │ ├── main.js │ │ │ │ └── main.json │ │ │ ├── dialog │ │ │ │ ├── main.js │ │ │ │ └── main.json │ │ │ ├── field │ │ │ │ ├── main.js │ │ │ │ └── main.json │ │ │ ├── icon │ │ │ │ ├── main.js │ │ │ │ └── main.json │ │ │ ├── index │ │ │ │ ├── main.js │ │ │ │ └── main.json │ │ │ ├── layout │ │ │ │ ├── main.js │ │ │ │ └── main.json │ │ │ ├── notify │ │ │ │ ├── main.js │ │ │ │ └── main.json │ │ │ ├── panel │ │ │ │ ├── main.js │ │ │ │ └── main.json │ │ │ ├── picker │ │ │ │ ├── main.js │ │ │ │ └── main.json │ │ │ ├── popup │ │ │ │ ├── main.js │ │ │ │ └── main.json │ │ │ ├── radio │ │ │ │ ├── main.js │ │ │ │ └── main.json │ │ │ ├── rate │ │ │ │ ├── main.js │ │ │ │ └── main.json │ │ │ ├── search │ │ │ │ ├── main.js │ │ │ │ └── main.json │ │ │ ├── steps │ │ │ │ ├── main.js │ │ │ │ └── main.json │ │ │ ├── tab │ │ │ │ ├── main.js │ │ │ │ └── main.json │ │ │ ├── tabbar │ │ │ │ ├── main.js │ │ │ │ └── main.json │ │ │ ├── tag │ │ │ │ ├── main.js │ │ │ │ └── main.json │ │ │ ├── toast │ │ │ │ ├── main.js │ │ │ │ └── main.json │ │ │ ├── checkbox │ │ │ │ ├── main.js │ │ │ │ └── main.json │ │ │ ├── collapse │ │ │ │ ├── main.js │ │ │ │ └── main.json │ │ │ ├── counter │ │ │ │ ├── main.js │ │ │ │ └── store.js │ │ │ ├── loading │ │ │ │ ├── main.js │ │ │ │ └── main.json │ │ │ ├── nav-bar │ │ │ │ ├── main.js │ │ │ │ └── main.json │ │ │ ├── notice-bar │ │ │ │ ├── main.js │ │ │ │ ├── main.json │ │ │ │ └── index.vue │ │ │ ├── progress │ │ │ │ ├── main.js │ │ │ │ └── main.json │ │ │ ├── submit-bar │ │ │ │ ├── main.js │ │ │ │ └── main.json │ │ │ ├── swipe-cell │ │ │ │ ├── main.js │ │ │ │ └── main.json │ │ │ ├── transition │ │ │ │ ├── main.js │ │ │ │ └── main.json │ │ │ ├── action-sheet │ │ │ │ ├── main.js │ │ │ │ └── main.json │ │ │ ├── datetime-picker │ │ │ │ ├── main.js │ │ │ │ └── main.json │ │ │ └── goods-action │ │ │ │ ├── main.js │ │ │ │ └── main.json │ │ ├── main.js │ │ ├── components │ │ │ └── card.vue │ │ ├── utils │ │ │ └── index.js │ │ └── App.vue │ │ ├── config │ │ ├── prod.env.js │ │ └── dev.env.js │ │ ├── package.swan.json │ │ ├── index.html │ │ ├── build │ │ ├── dev-client.js │ │ └── vue-loader.conf.js │ │ └── project.config.json │ ├── 源码 │ └── hello-mpvue-vantweapp-master.zip │ └── README.md ├── mdresourcefile ├── ui1.png ├── ui2.png ├── ui3.png └── barcode.jpg ├── .postcssrc.js ├── .editorconfig ├── .gitignore ├── project.swan.json ├── package.swan.json ├── index.html ├── .babelrc └── project.config.json /static/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/pages/rate/rate.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/pages/tab/tab.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/pages/tag/tag.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/pages/badge/badge.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/pages/button/button.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/pages/field/field.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/pages/index/index.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/pages/mycell/mycell.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/pages/navbar/navbar.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/pages/picker/picker.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/pages/radios/radios.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/pages/search/search.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/pages/steps/steps.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/pages/switch/switch.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/pages/checkbox/checkbox.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/pages/icon/icon.css: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /src/pages/mydialog/mydialog.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/pages/mynotify/mynotify.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/pages/mypanel/mypanel.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/pages/mytabbar/mytabbar.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/pages/mytoast/mytoast.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/pages/noticebar/noticebar.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/pages/pickerobj/pickerobj.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/pages/readmeme/readmeme.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/pages/stepper/stepper.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/vant/common/style/var.wxss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/pages/loading/loading.css: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/pages/mycollapse/mycollapse.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/pages/datetimepicker/datetimepicker.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/pages/debugpage/selectimg/selectimg.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/pages/mytransition/mytransition.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/pages/pickermorecols/pickermorecols.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/vant/area/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/badge/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/card/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/cell/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/col/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/field/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/icon/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/info/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/panel/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/popup/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/radio/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/rate/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/row/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/steps/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/tab/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/tabs/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/tag/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/toast/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /src/pages/debugpage/scanbarcode/scanbarcode.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/vant/button/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/cell-group/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/checkbox/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/collapse/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/common/style/mixins/clearfix.wxss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/vant/common/style/mixins/ellipsis.wxss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/vant/common/style/mixins/hairline.wxss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/vant/dialog/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/loading/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/nav-bar/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/notice-bar/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/notify/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/overlay/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/picker/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/progress/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/radio-group/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /static/vant/search/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/slider/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/stepper/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/submit-bar/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/swipe-cell/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/switch/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/tabbar/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/transition/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/action-sheet/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/badge-group/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/checkbox-group/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/checkbox-group/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /static/vant/collapse-item/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/datetime-picker/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/goods-action/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/picker-column/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/radio-group/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/switch-cell/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/tabbar-item/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/tree-select/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/area/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss'; -------------------------------------------------------------------------------- /static/vant/goods-action-button/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/goods-action-icon/index.d.ts: -------------------------------------------------------------------------------- 1 | export {}; 2 | -------------------------------------------------------------------------------- /static/vant/tab/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } -------------------------------------------------------------------------------- /static/vant/tag/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } -------------------------------------------------------------------------------- /static/vant/col/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /static/vant/collapse/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss'; -------------------------------------------------------------------------------- /static/vant/info/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /static/vant/loading/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } -------------------------------------------------------------------------------- /static/vant/row/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /static/vant/stepper/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } -------------------------------------------------------------------------------- /static/vant/cell-group/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } -------------------------------------------------------------------------------- /static/vant/checkbox-group/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss'; -------------------------------------------------------------------------------- /static/vant/collapse/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /static/vant/mixins/basic.d.ts: -------------------------------------------------------------------------------- 1 | export declare const basic: void; 2 | -------------------------------------------------------------------------------- /static/vant/mixins/link.d.ts: -------------------------------------------------------------------------------- 1 | export declare const link: void; 2 | -------------------------------------------------------------------------------- /static/vant/mixins/touch.d.ts: -------------------------------------------------------------------------------- 1 | export declare const touch: void; 2 | -------------------------------------------------------------------------------- /static/vant/picker-column/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } -------------------------------------------------------------------------------- /static/vant/progress/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /static/vant/radio-group/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss'; -------------------------------------------------------------------------------- /static/vant/slider/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /static/vant/tabbar/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /static/vant/transition/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } -------------------------------------------------------------------------------- /static/vant/badge-group/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /static/vant/datetime-picker/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss'; -------------------------------------------------------------------------------- /static/vant/goods-action/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /static/vant/mixins/button.d.ts: -------------------------------------------------------------------------------- 1 | export declare const button: void; 2 | -------------------------------------------------------------------------------- /static/vant/swipe-cell/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /config/prod.env.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | NODE_ENV: '"production"' 3 | } 4 | -------------------------------------------------------------------------------- /src/pages/layout/layout.css: -------------------------------------------------------------------------------- 1 | 2 | 3 | .mya { 4 | display: block; 5 | } 6 | -------------------------------------------------------------------------------- /src/pages/readmeme/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "说明" 3 | } 4 | -------------------------------------------------------------------------------- /static/vant/mixins/open-type.d.ts: -------------------------------------------------------------------------------- 1 | export declare const openType: void; 2 | -------------------------------------------------------------------------------- /src/pages/actionsheet/actionsheet.css: -------------------------------------------------------------------------------- 1 | .content { 2 | padding: 38px; 3 | } 4 | -------------------------------------------------------------------------------- /static/vant/mixins/observer/behavior.d.ts: -------------------------------------------------------------------------------- 1 | export declare const behavior: void; 2 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/checkbox-group/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/radio-group/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/switch/index.wxss: -------------------------------------------------------------------------------- 1 | /* pages/switch/index.wxss */ -------------------------------------------------------------------------------- /src/pages/debugpage/scanbarcode/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "扫描条码" 3 | } 4 | -------------------------------------------------------------------------------- /src/pages/debugpage/selectimg/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "相册选择并显示" 3 | } 4 | -------------------------------------------------------------------------------- /static/vant/badge-group/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-badge-group{width:85px} -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/area/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss'; -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/loading/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/stepper/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/tab/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/tag/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } -------------------------------------------------------------------------------- /static/vant/common/style/clearfix.wxss: -------------------------------------------------------------------------------- 1 | .van-clearfix:after{content:"";display:table;clear:both} -------------------------------------------------------------------------------- /static/vant/mixins/observer/props.d.ts: -------------------------------------------------------------------------------- 1 | export declare function observeProps(props: any): void; 2 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/stepper/index.wxss: -------------------------------------------------------------------------------- 1 | /* pages/stepper/index.wxss */ 2 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/switch-cell/index.wxss: -------------------------------------------------------------------------------- 1 | /* pages/switch-cell/index.wxss */ -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/cell-group/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/cell-group/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss'; -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/col/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/info/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/radio-group/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss'; -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/row/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/slider/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/tabbar/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/transition/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } -------------------------------------------------------------------------------- /static/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aierong/vantweappmpvuedemo/HEAD/static/img/logo.png -------------------------------------------------------------------------------- /static/tabs/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aierong/vantweappmpvuedemo/HEAD/static/tabs/home.png -------------------------------------------------------------------------------- /static/vant/goods-action-button/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';:host{-webkit-flex:1;flex:1} -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/badge-group/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/checkbox-group/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss'; -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/collapse/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/goods-action/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/picker-column/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/progress/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/swipe-cell/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true 3 | } 4 | -------------------------------------------------------------------------------- /mdresourcefile/ui1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aierong/vantweappmpvuedemo/HEAD/mdresourcefile/ui1.png -------------------------------------------------------------------------------- /mdresourcefile/ui2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aierong/vantweappmpvuedemo/HEAD/mdresourcefile/ui2.png -------------------------------------------------------------------------------- /mdresourcefile/ui3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aierong/vantweappmpvuedemo/HEAD/mdresourcefile/ui3.png -------------------------------------------------------------------------------- /src/pages/mypopup/mypopup.css: -------------------------------------------------------------------------------- 1 | .right { 2 | width: 100%; 3 | height: 100%; 4 | padding: 20px; 5 | } 6 | -------------------------------------------------------------------------------- /static/tabs/orders.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aierong/vantweappmpvuedemo/HEAD/static/tabs/orders.png -------------------------------------------------------------------------------- /static/vant/mixins/transition.d.ts: -------------------------------------------------------------------------------- 1 | export declare const transition: (showDefaultValue: boolean) => void; 2 | -------------------------------------------------------------------------------- /static/vant/row/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-row:after{content:"";display:table;clear:both} -------------------------------------------------------------------------------- /static/img/Add_32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aierong/vantweappmpvuedemo/HEAD/static/img/Add_32x32.png -------------------------------------------------------------------------------- /static/img/Add_active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aierong/vantweappmpvuedemo/HEAD/static/img/Add_active.png -------------------------------------------------------------------------------- /static/vant/mixins/observer/index.d.ts: -------------------------------------------------------------------------------- 1 | export declare function observe(vantOptions: any, options: any): void; 2 | -------------------------------------------------------------------------------- /static/vant/row/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/config/prod.env.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | NODE_ENV: '"production"' 3 | } 4 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/col/index.js: -------------------------------------------------------------------------------- 1 | import Page from '../../common/page'; 2 | 3 | Page(); 4 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/col/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "Layout 布局" 3 | } 4 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/logs/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "查看启动日志" 3 | } 4 | -------------------------------------------------------------------------------- /mdresourcefile/barcode.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aierong/vantweappmpvuedemo/HEAD/mdresourcefile/barcode.jpg -------------------------------------------------------------------------------- /static/tabs/home-active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aierong/vantweappmpvuedemo/HEAD/static/tabs/home-active.png -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/slider/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "Slider 滑块" 3 | } 4 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/stepper/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "Stepper 步进器" 3 | } 4 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/switch/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "Switch 开关" 3 | } 4 | -------------------------------------------------------------------------------- /static/tabs/orders-active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aierong/vantweappmpvuedemo/HEAD/static/tabs/orders-active.png -------------------------------------------------------------------------------- /static/vant/overlay/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-overlay{position:fixed;top:0;right:0;bottom:0;left:0} -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/dashboard/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "Vant Weapp" 3 | } 4 | -------------------------------------------------------------------------------- /src/pages/tab/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './tab' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/tag/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './tag' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/switch-cell/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "SwitchCell 开关单元格" 3 | } 4 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/badge-group/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-badge-group{width:85px} -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/common/style/clearfix.wxss: -------------------------------------------------------------------------------- 1 | .van-clearfix::after{content:'';display:table;clear:both} -------------------------------------------------------------------------------- /src/pages/badge/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './badge' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/field/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './field' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/icon/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './icon' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/index/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/rate/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './rate' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/steps/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './steps' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /static/vant/card/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-tag": "../tag/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /static/vant/cell/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index" 5 | } 6 | } -------------------------------------------------------------------------------- /static/vant/common/color.js: -------------------------------------------------------------------------------- 1 | export const RED = '#f44'; 2 | export const BLUE = '#1989fa'; 3 | export const GREEN = '#07c160'; 4 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/goods-action-button/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';:host{-webkit-flex:1;flex:1} -------------------------------------------------------------------------------- /src/pages/button/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './button' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/checkbox/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './checkbox' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/iconall/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './iconall' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/layout/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './layout' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/loading/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './loading' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/mycell/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './mycell' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/mydialog/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './mydialog' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/mynotify/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './mynotify' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/mypanel/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './mypanel' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/mypopup/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './mypopup' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/myslider/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './myslider' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/mytabbar/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './mytabbar' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/mytoast/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './mytoast' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/navbar/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './navbar' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/picker/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './picker' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/radios/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './radios' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/readmeme/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './readmeme' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/search/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './search' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/stepper/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './stepper' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/switch/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './switch' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /static/vant/badge-group/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /static/vant/badge/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-info": "../info/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /static/vant/button/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-loading": "../loading/index" 5 | } 6 | } -------------------------------------------------------------------------------- /static/vant/icon/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-info": "../info/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /static/vant/nav-bar/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /static/vant/notice-bar/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index" 5 | } 6 | } -------------------------------------------------------------------------------- /static/vant/panel/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-cell": "../cell/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /static/vant/radio/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /static/vant/rate/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /static/vant/steps/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /static/vant/tabs/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-info": "../info/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /src/pages/layoutdemo/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './layoutdemo' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/mycollapse/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './mycollapse' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/noticebar/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './noticebar' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/pickerobj/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './pickerobj' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /static/vant/area/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-picker": "../picker/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /static/vant/checkbox/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /static/vant/popup/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-overlay": "../overlay/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /static/vant/radio-group/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /static/vant/switch/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-loading": "../loading/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/row/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-row::after{content:"";display:table;clear:both} -------------------------------------------------------------------------------- /src/pages/actionsheet/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './actionsheet' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/mytransition/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './mytransition' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /static/vant/checkbox-group/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /static/vant/collapse-item/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-cell": "../cell/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/row/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /_参考源码/源码1/源码/hello-mpvue-vantweapp-master.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aierong/vantweappmpvuedemo/HEAD/_参考源码/源码1/源码/hello-mpvue-vantweapp-master.zip -------------------------------------------------------------------------------- /src/pages/datetimepicker/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './datetimepicker' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/debugpage/selectimg/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './selectimg' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/pickermorecols/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './pickermorecols' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /static/vant/cell-group/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-cell-group__title{font-size:14px;padding:15px 15px 5px;color:#999;line-height:16px} -------------------------------------------------------------------------------- /static/vant/collapse/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /static/vant/datetime-picker/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-picker": "../picker/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /static/vant/notify/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-transition": "../transition/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /static/vant/overlay/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-transition": "../transition/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/common/color.js: -------------------------------------------------------------------------------- 1 | export var RED = '#f44'; 2 | export var BLUE = '#1989fa'; 3 | export var GREEN = '#07c160'; -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/overlay/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-overlay{position:fixed;top:0;left:0;right:0;bottom:0} -------------------------------------------------------------------------------- /src/pages/debugpage/scanbarcode/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './scanbarcode' 3 | 4 | const app = new Vue( App ) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /static/vant/common/color.d.ts: -------------------------------------------------------------------------------- 1 | export declare const RED = "#f44"; 2 | export declare const BLUE = "#1989fa"; 3 | export declare const GREEN = "#07c160"; 4 | -------------------------------------------------------------------------------- /static/vant/goods-action-button/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-button": "../button/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /static/vant/wxs/array.wxs: -------------------------------------------------------------------------------- 1 | function isArray(array) { 2 | return array && array.constructor === 'Array'; 3 | } 4 | 5 | module.exports.isArray = isArray; 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/button/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-button": "/static/vant/button/index" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/card/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | const app = new Vue(App) 4 | app.$mount() 5 | -------------------------------------------------------------------------------- /src/pages/tag/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-tag": "/static/vant/tag/index" 4 | }, 5 | "navigationBarTitleText": "tag" 6 | } 7 | 8 | 9 | -------------------------------------------------------------------------------- /static/vant/info/index.wxml: -------------------------------------------------------------------------------- 1 | {{ info }} 6 | -------------------------------------------------------------------------------- /static/vant/panel/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-panel{background:#fff}.van-panel__header-value{color:#f44}.van-panel__footer{padding:10px 15px} -------------------------------------------------------------------------------- /static/vant/progress/index.wxs: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | text: function(pivotText, percentage) { 3 | return pivotText || percentage + '%'; 4 | } 5 | }; 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/area/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/badge/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/button/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/cell/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/dialog/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/field/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/icon/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/index/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/layout/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/logs/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/notify/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/panel/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/picker/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/popup/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/radio/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/rate/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/search/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/steps/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/tab/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/tabbar/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/tag/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/toast/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/cell/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index" 5 | } 6 | } -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/collapse/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/pages/switch/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-switch": "/static/vant/switch/index" 4 | }, 5 | "navigationBarTitleText": "Switch 开关" 6 | } 7 | -------------------------------------------------------------------------------- /static/vant/field/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-cell": "../cell/index", 5 | "van-icon": "../icon/index" 6 | } 7 | } -------------------------------------------------------------------------------- /static/vant/switch-cell/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-switch-cell{padding-top:9px;padding-bottom:9px}.van-switch-cell__switch{vertical-align:middle} -------------------------------------------------------------------------------- /.postcssrc.js: -------------------------------------------------------------------------------- 1 | // https://github.com/michael-ciniawsky/postcss-load-config 2 | 3 | module.exports = { 4 | "plugins": { 5 | "postcss-mpvue-wxss": {} 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/checkbox/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/collapse/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/counter/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/loading/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/nav-bar/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/notice-bar/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/progress/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/submit-bar/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/swipe-cell/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/transition/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/badge-group/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/badge/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-info": "../info/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/card/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-tag": "../tag/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/icon/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-info": "../info/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/notice-bar/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index" 5 | } 6 | } -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/panel/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-cell": "../cell/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/radio/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/rate/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/steps/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/tabs/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-info": "../info/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /src/pages/icon/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-icon": "/static/vant/icon/index" 4 | }, 5 | "navigationBarTitleText": "icon图标" 6 | } 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/pages/rate/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-rate": "/static/vant/rate/index" 4 | }, 5 | "navigationBarTitleText": "Rate 评分" 6 | } 7 | 8 | 9 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/action-sheet/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/datetime-picker/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/goods-action/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/area/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-picker": "../picker/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/button/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-loading": "../loading/index" 5 | } 6 | } -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/checkbox/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/nav-bar/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /src/pages/search/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-search": "/static/vant/search/index" 4 | }, 5 | "navigationBarTitleText": "Search 搜索" 6 | } 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/pages/steps/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-steps": "/static/vant/steps/index" 4 | }, 5 | "navigationBarTitleText": "Steps 步骤条" 6 | } 7 | 8 | 9 | -------------------------------------------------------------------------------- /static/vant/search/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index", 5 | "van-field": "../field/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/checkbox-group/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/collapse-item/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-cell": "../cell/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/popup/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-overlay": "../overlay/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/radio-group/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/submit-bar/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-button": "../button/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/switch/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-loading": "../loading/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /config/dev.env.js: -------------------------------------------------------------------------------- 1 | var merge = require('webpack-merge') 2 | var prodEnv = require('./prod.env') 3 | 4 | module.exports = merge(prodEnv, { 5 | NODE_ENV: '"development"' 6 | }) 7 | -------------------------------------------------------------------------------- /src/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './App' 3 | 4 | Vue.config.productionTip = false 5 | App.mpType = 'app' 6 | 7 | const app = new Vue( App ) 8 | app.$mount() 9 | -------------------------------------------------------------------------------- /src/pages/myslider/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-slider": "/static/vant/slider/index" 4 | }, 5 | "navigationBarTitleText": "Slider 滑块" 6 | } 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/pages/stepper/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-stepper": "/static/vant/stepper/index" 4 | }, 5 | "navigationBarTitleText": "Stepper 步进器" 6 | } 7 | 8 | 9 | -------------------------------------------------------------------------------- /static/vant/dialog/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-popup": "../popup/index", 5 | "van-button": "../button/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /static/vant/submit-bar/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-button": "../button/index", 5 | "van-icon": "../icon/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /static/vant/switch-cell/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-cell": "../cell/index", 5 | "van-switch": "../switch/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /static/vant/tabbar-item/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index", 5 | "van-info": "../info/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /static/vant/tree-select/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index", 5 | "van-cell": "../cell/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/datetime-picker/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-picker": "../picker/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/notify/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-transition": "../transition/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/overlay/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-transition": "../transition/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /src/pages/pickermorecols/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-picker": "/static/vant/picker/index" 4 | }, 5 | "navigationBarTitleText": "picker多列" 6 | } 7 | 8 | 9 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/cell-group/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/goods-action-button/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-button": "../button/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /src/pages/noticebar/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-notice-bar": "/static/vant/notice-bar/index" 4 | }, 5 | "navigationBarTitleText": "NoticeBar 通告栏" 6 | } 7 | 8 | 9 | -------------------------------------------------------------------------------- /static/vant/goods-action-icon/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index", 5 | "van-button": "../button/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /static/vant/info/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | props: { 4 | info: null, 5 | customStyle: String 6 | } 7 | }); 8 | -------------------------------------------------------------------------------- /static/vant/picker/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "picker-column": "../picker-column/index", 5 | "loading": "../loading/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/panel/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-panel{background:#fff}.van-panel__header-value{color:#f44}.van-panel__footer{padding:10px 15px} -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/wxs/array.wxs: -------------------------------------------------------------------------------- 1 | function isArray(array) { 2 | return array && array.constructor === 'Array'; 3 | } 4 | 5 | module.exports.isArray = isArray; 6 | -------------------------------------------------------------------------------- /static/vant/tab/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-tab__pane{box-sizing:border-box;overflow-y:auto}.van-tab__pane--active{height:auto}.van-tab__pane--inactive{height:0;overflow:visible} -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/dashboard/index.js: -------------------------------------------------------------------------------- 1 | import list from '../../config'; 2 | import Page from '../../common/page'; 3 | 4 | Page({ 5 | data: { 6 | list 7 | } 8 | }); 9 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/layout/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-row": "/static/vant/row/index", 4 | "van-col": "/static/vant/col/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/switch-cell/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-switch-cell{padding-top:9px;padding-bottom:9px}.van-switch-cell__switch{vertical-align:middle} -------------------------------------------------------------------------------- /src/App.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 12 | -------------------------------------------------------------------------------- /src/pages/datetimepicker/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-datetime-picker": "/static/vant/datetime-picker/index" 4 | }, 5 | "navigationBarTitleText": "时间选择" 6 | } 7 | 8 | 9 | -------------------------------------------------------------------------------- /static/vant/goods-action/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | import { safeArea } from '../mixins/safe-area'; 3 | VantComponent({ 4 | mixins: [safeArea()] 5 | }); 6 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/field/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-cell": "../cell/index", 5 | "van-icon": "../icon/index" 6 | } 7 | } -------------------------------------------------------------------------------- /static/vant/mixins/safe-area.d.ts: -------------------------------------------------------------------------------- 1 | export declare const safeArea: ({ safeAreaInsetBottom, safeAreaInsetTop }?: { 2 | safeAreaInsetBottom?: boolean; 3 | safeAreaInsetTop?: boolean; 4 | }) => void; 5 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/info/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | props: { 4 | info: null, 5 | customStyle: String 6 | } 7 | }); -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/info/index.wxml: -------------------------------------------------------------------------------- 1 | 6 | {{ info }} 7 | 8 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/rate/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-rate{-webkit-user-select:none;user-select:none}.van-rate__item{width:1em;padding:0 2px;box-sizing:content-box} -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/search/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index", 5 | "van-field": "../field/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/config/dev.env.js: -------------------------------------------------------------------------------- 1 | var merge = require('webpack-merge') 2 | var prodEnv = require('./prod.env') 3 | 4 | module.exports = merge(prodEnv, { 5 | NODE_ENV: '"development"' 6 | }) 7 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './App' 3 | 4 | Vue.config.productionTip = false 5 | App.mpType = 'app' 6 | 7 | const app = new Vue(App) 8 | app.$mount() 9 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/images/custom_active_checkbox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aierong/vantweappmpvuedemo/HEAD/_参考源码/源码1/code/hello-mpvue-vantweapp/static/images/custom_active_checkbox.png -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/images/custom_normal_checkbox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/aierong/vantweappmpvuedemo/HEAD/_参考源码/源码1/code/hello-mpvue-vantweapp/static/images/custom_normal_checkbox.png -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/dialog/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-popup": "../popup/index", 5 | "van-button": "../button/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/tabbar-item/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index", 5 | "van-info": "../info/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/tree-select/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index", 5 | "van-cell": "../cell/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules/ 3 | dist/ 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | 8 | # Editor directories and files 9 | .idea 10 | *.suo 11 | *.ntvs* 12 | *.njsproj 13 | *.sln 14 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/index/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-button": "/static/vant/button/index", 4 | "van-tree-select":"/static/vant/tree-select/index" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/goods-action/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | import { iphonex } from '../mixins/iphonex'; 3 | VantComponent({ 4 | mixins: [iphonex] 5 | }); -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/switch-cell/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-cell": "../cell/index", 5 | "van-switch": "../switch/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /project.swan.json: -------------------------------------------------------------------------------- 1 | { 2 | "appid": "testappid", 3 | "setting": { 4 | "urlCheck": false 5 | }, 6 | "condition": { 7 | "swan": { 8 | "current": -1, 9 | "list": [] 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /src/pages/tab/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-tab": "/static/vant/tab/index", 4 | "van-tabs": "/static/vant/tabs/index" 5 | }, 6 | "navigationBarTitleText": "tab" 7 | } 8 | 9 | 10 | -------------------------------------------------------------------------------- /static/vant/goods-action/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-goods-action{position:fixed;right:0;bottom:0;left:0;display:-webkit-flex;display:flex;background-color:#fff}.van-goods-action--safe{padding-bottom:34px} -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/goods-action-icon/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index", 5 | "van-button": "../button/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/picker/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "picker-column": "../picker-column/index", 5 | "loading": "../loading/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /static/vant/action-sheet/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index", 5 | "van-popup": "../popup/index", 6 | "van-loading": "../loading/index" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /static/vant/goods-action/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/tab/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-tab__pane{box-sizing:border-box;overflow-y:auto}.van-tab__pane--active{height:auto}.van-tab__pane--inactive{height:0;overflow:visible} -------------------------------------------------------------------------------- /package.swan.json: -------------------------------------------------------------------------------- 1 | { 2 | "appid": "wxea4707081907fd91", 3 | "setting": { 4 | "urlCheck": false 5 | }, 6 | "condition": { 7 | "swan": { 8 | "current": -1, 9 | "list": [] 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /src/pages/mytabbar/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-tabbar": "/static/vant/tabbar/index", 4 | "van-tabbar-item": "/static/vant/tabbar-item/index" 5 | }, 6 | "navigationBarTitleText": "Tabbar 标签栏" 7 | } 8 | -------------------------------------------------------------------------------- /src/pages/mynotify/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-button": "/static/vant/button/index", 4 | "van-notify": "/static/vant/notify/index" 5 | }, 6 | "navigationBarTitleText": "notify" 7 | } 8 | 9 | 10 | -------------------------------------------------------------------------------- /src/pages/mypanel/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-panel": "/static/vant/panel/index", 4 | "van-button": "/static/vant/button/index" 5 | }, 6 | "navigationBarTitleText": "Panel 面板" 7 | } 8 | 9 | 10 | -------------------------------------------------------------------------------- /src/pages/mytoast/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-button": "/static/vant/button/index", 4 | "van-toast": "/static/vant/toast/index" 5 | }, 6 | "navigationBarTitleText": "Toast 轻提示" 7 | } 8 | 9 | 10 | -------------------------------------------------------------------------------- /src/pages/navbar/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-nav-bar": "/static/vant/nav-bar/index", 4 | "van-icon": "/static/vant/icon/index" 5 | }, 6 | "navigationBarTitleText": "NavBar 导航栏" 7 | } 8 | 9 | 10 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/rate/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "Rate 评分", 3 | "usingComponents":{ 4 | "van-rate":"/static/vant/rate/index", 5 | "van-panel":"/static/vant/panel/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/notify/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-notify{z-index:110;position:fixed;top:0;width:100%;text-align:center;box-sizing:border-box;padding:6px 15px;font-size:14px;line-height:20px} -------------------------------------------------------------------------------- /src/pages/loading/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-button": "/static/vant/button/index", 4 | "van-loading": "/static/vant/loading/index" 5 | }, 6 | "navigationBarTitleText": "Loading 加载" 7 | } 8 | 9 | 10 | -------------------------------------------------------------------------------- /static/vant/tabbar/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-tabbar{display:-webkit-flex;display:flex;width:100%;height:50px;background-color:#fff}.van-tabbar--fixed{position:fixed;bottom:0;left:0}.van-tabbar--safe{padding-bottom:34px} -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/field/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "Field 输入框", 3 | "usingComponents":{ 4 | "van-panel":"/static/vant/panel/index", 5 | "van-field":"/static/vant/field/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/tag/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "Tag 标记", 3 | "usingComponents":{ 4 | "van-panel":"/static/vant/panel/index", 5 | "van-tag":"/static/vant/tag/index" 6 | 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/cell-group/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | props: { 4 | border: { 5 | type: Boolean, 6 | value: true 7 | } 8 | } 9 | }); -------------------------------------------------------------------------------- /src/pages/badge/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-badge": "/static/vant/badge/index", 4 | "van-badge-group": "/static/vant/badge-group/index" 5 | }, 6 | "navigationBarTitleText": "Badge 徽章" 7 | } 8 | 9 | 10 | -------------------------------------------------------------------------------- /src/pages/pickerobj/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-picker": "/static/vant/picker/index", 4 | "van-button": "/static/vant/button/index" 5 | }, 6 | "navigationBarTitleText": "Picker选择器(绑定对象)" 7 | } 8 | 9 | 10 | -------------------------------------------------------------------------------- /static/vant/notify/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-notify{position:fixed;top:0;width:100%;padding:6px 15px;font-size:14px;line-height:20px;text-align:center;word-break:break-all;box-sizing:border-box}.van-notify__safe-top{height:44px} -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/panel/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "Panel 面板", 3 | "usingComponents":{ 4 | "van-button":"/static/vant/button/index", 5 | "van-panel":"/static/vant/panel/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/search/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "Search 搜索", 3 | "usingComponents":{ 4 | "van-search":"/static/vant/search/index", 5 | "van-panel":"/static/vant/panel/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/stepper/index.js: -------------------------------------------------------------------------------- 1 | import Page from '../../common/page'; 2 | import Toast from '../../dist/toast/toast'; 3 | 4 | Page({ 5 | onChange(event) { 6 | Toast(`change: ${event.detail}`); 7 | } 8 | }); 9 | -------------------------------------------------------------------------------- /src/pages/layoutdemo/layoutdemo.css: -------------------------------------------------------------------------------- 1 | .user-links { 2 | padding: 15px 0; 3 | font-size: 12px; 4 | text-align: center; 5 | background-color: #fff; 6 | } 7 | 8 | /*设置这个 就是设置其的背景颜色*/ 9 | .dark { 10 | background-color: #fff; 11 | } 12 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/loading/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "Loading 加载", 3 | "usingComponents":{ 4 | "van-loading":"/static/vant/loading/index", 5 | "van-panel":"/static/vant/panel/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/pages/button/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-button": "/static/vant/button/index" 4 | }, 5 | "navigationBarTitleText": "按钮", 6 | "backgroundTextStyle": "dark", 7 | "backgroundColor": "#eeeeee" 8 | } 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/pages/mytransition/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-transition": "/static/vant/transition/index", 4 | "van-button": "/static/vant/button/index" 5 | }, 6 | "navigationBarTitleText": "Transition 动画" 7 | } 8 | 9 | 10 | -------------------------------------------------------------------------------- /static/vant/col/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/package.swan.json: -------------------------------------------------------------------------------- 1 | { 2 | "appid": "touristappid", 3 | "setting": { 4 | "urlCheck": false 5 | }, 6 | "condition": { 7 | "swan": { 8 | "current": -1, 9 | "list": [] 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/progress/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "Progress 进度条", 3 | "usingComponents":{ 4 | "van-panel": "/static/vant/panel/index", 5 | "van-progress": "/static/vant/progress/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/action-sheet/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index", 5 | "van-popup": "../popup/index", 6 | "van-loading": "../loading/index" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/goods-action/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/goods-action/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-goods-action{position:fixed;right:0;bottom:0;left:0;display:-webkit-flex;display:flex;background-color:#fff}.van-goods-action--safe{padding-bottom:34px} -------------------------------------------------------------------------------- /src/pages/actionsheet/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-action-sheet": "/static/vant/action-sheet/index", 4 | "van-button": "/static/vant/button/index" 5 | }, 6 | "navigationBarTitleText": "ActionSheet 上拉菜单" 7 | } 8 | 9 | 10 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/notice-bar/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "NoticeBar 通告栏", 3 | "usingComponents":{ 4 | "van-notice-bar":"/static/vant/notice-bar/index", 5 | "van-panel":"/static/vant/panel/index" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/pages/mycollapse/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-collapse": "/static/vant/collapse/index", 4 | "van-collapse-item": "/static/vant/collapse-item/index" 5 | }, 6 | "navigationBarTitleText": "Collapse 折叠面板" 7 | } 8 | 9 | 10 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | vantweappmpvuedemp 6 | 7 | 8 |
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /static/vant/cell-group/index.wxml: -------------------------------------------------------------------------------- 1 | 5 | {{ title }} 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/switch-cell/index.js: -------------------------------------------------------------------------------- 1 | import Page from '../../common/page'; 2 | 3 | Page({ 4 | data: { 5 | checked: true 6 | }, 7 | 8 | onChange(event) { 9 | this.setData({ checked: event.detail }); 10 | } 11 | }); 12 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/tabbar/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-tabbar{display:-webkit-flex;display:flex;width:100%;height:50px;background-color:#fff}.van-tabbar--fixed{position:fixed;bottom:0;left:0}.van-tabbar--safe{padding-bottom:34px} -------------------------------------------------------------------------------- /src/pages/layout/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-row": "/static/vant/row/index", 4 | "van-col": "/static/vant/col/index", 5 | "van-icon": "/static/vant/icon/index" 6 | }, 7 | "navigationBarTitleText": "Layout 布局" 8 | } 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/pages/layoutdemo/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-row": "/static/vant/row/index", 4 | "van-col": "/static/vant/col/index", 5 | "van-icon": "/static/vant/icon/index" 6 | }, 7 | "navigationBarTitleText": "布局自做demo" 8 | } 9 | 10 | 11 | -------------------------------------------------------------------------------- /static/vant/cell-group/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | props: { 4 | title: String, 5 | border: { 6 | type: Boolean, 7 | value: true 8 | } 9 | } 10 | }); 11 | -------------------------------------------------------------------------------- /static/vant/tag/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /static/vant/toast/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index", 5 | "van-loading": "../loading/index", 6 | "van-overlay": "../overlay/index", 7 | "van-transition": "../transition/index" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /static/vant/common/component.d.ts: -------------------------------------------------------------------------------- 1 | declare function VantComponent(vantOptions?: VantComponentOptions>): void; 2 | export { VantComponent }; 3 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/cell/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "Cell 单元格", 3 | "usingComponents": { 4 | "van-cell": "/static/vant/cell/index", 5 | "van-tab": "/static/vant/tab/index", 6 | "van-tabs": "/static/vant/tabs/index" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/col/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/notify/index.wxml: -------------------------------------------------------------------------------- 1 | 7 | {{ text }} 8 | 9 | -------------------------------------------------------------------------------- /src/pages/mycell/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-button": "/static/vant/button/index", 4 | "van-cell": "/static/vant/cell/index", 5 | "van-cell-group": "/static/vant/cell-group/index" 6 | }, 7 | "navigationBarTitleText": "cell" 8 | } 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/pages/picker/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-picker": "/static/vant/picker/index", 4 | "van-button": "/static/vant/button/index", 5 | "van-popup": "/static/vant/popup/index" 6 | }, 7 | "navigationBarTitleText": "Picker 选择器" 8 | } 9 | 10 | 11 | -------------------------------------------------------------------------------- /static/vant/picker-column/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-picker-column{overflow:hidden;font-size:16px;color:#999;text-align:center}.van-picker-column__item{padding:0 5px}.van-picker-column__item--selected{font-weight:500;color:#333}.van-picker-column__item--disabled{opacity:.3} -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/area/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "Area 省市区选择", 3 | "usingComponents":{ 4 | "van-area":"/static/vant/area/index", 5 | "van-toast":"/static/vant/toast/index", 6 | "van-panel":"/static/vant/panel/index" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/steps/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "Steps 步骤条", 3 | "usingComponents":{ 4 | "van-button":"/static/vant/button/index", 5 | "van-panel":"/static/vant/panel/index", 6 | "van-steps":"/static/vant/steps/index" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/toast/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "Toast 轻提示", 3 | "usingComponents":{ 4 | "van-panel":"/static/vant/panel/index", 5 | "van-toast":"/static/vant/toast/index", 6 | "van-button":"/static/vant/button/index" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/pages/myslider/myslider.css: -------------------------------------------------------------------------------- 1 | .slider { 2 | margin: 0 15px 30px; 3 | } 4 | 5 | .custom-button { 6 | width: 26px; 7 | color: #fff; 8 | font-size: 10px; 9 | line-height: 18px; 10 | text-align: center; 11 | border-radius: 100px; 12 | background-color: #f44; 13 | } 14 | -------------------------------------------------------------------------------- /static/vant/common/utils.d.ts: -------------------------------------------------------------------------------- 1 | declare function isDef(value: any): boolean; 2 | declare function isObj(x: any): boolean; 3 | declare function isNumber(value: any): boolean; 4 | declare function range(num: number, min: number, max: number): number; 5 | export { isObj, isDef, isNumber, range }; 6 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/picker/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "Picker选择器", 3 | "usingComponents":{ 4 | "van-picker":"/static/vant/picker/index", 5 | "van-toast":"/static/vant/toast/index", 6 | "van-panel":"/static/vant/panel/index" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /static/vant/rate/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-rate{-webkit-user-select:none;user-select:none}.van-rate__item{position:relative;display:inline-block;padding:0 2px}.van-rate__icon{display:block;height:1em}.van-rate__icon--half{position:absolute;top:0;left:2px;width:.5em;overflow:hidden} -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/badge/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "Badge 徽章", 3 | "usingComponents":{ 4 | "van-badge-group":"/static/vant/badge-group/index", 5 | "van-badge":"/static/vant/badge/index", 6 | "van-panel":"/static/vant/panel/index" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/dialog/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "Dialog 弹出框", 3 | "usingComponents": { 4 | "van-button": "/static/vant/button/index", 5 | "van-dialog": "/static/vant/dialog/index", 6 | "van-panel": "/static/vant/panel/index" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/notify/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "Notify 消息通知", 3 | "usingComponents": { 4 | "van-panel":"/static/vant/panel/index", 5 | "van-notify":"/static/vant/notify/index", 6 | "van-button":"/static/vant/button/index" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/popup/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "Popup 弹出层", 3 | "usingComponents": { 4 | "van-button": "/static/vant/button/index", 5 | "van-popup": "/static/vant/popup/index", 6 | "van-picker": "/static/vant/picker/index" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/radio/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "Radio 单选框", 3 | "usingComponents":{ 4 | "van-panel":"/static/vant/panel/index", 5 | "van-radio":"/static/vant/radio/index", 6 | "van-radio-group":"/static/vant/radio-group/index" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/pages/mypopup/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-popup": "/static/vant/popup/index", 4 | "van-button": "/static/vant/button/index", 5 | "van-datetime-picker": "/static/vant/datetime-picker/index" 6 | }, 7 | "navigationBarTitleText": "Popup 弹出层" 8 | } 9 | 10 | 11 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | hello-mpvue-vantweapp 6 | 7 | 8 |
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/tabbar/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "Tabbar 标签栏", 3 | "usingComponents":{ 4 | "van-panel":"/static/vant/panel/index", 5 | "van-tabbar":"/static/vant/tabbar/index", 6 | "van-tabbar-item":"/static/vant/tabbar-item/index" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/tag/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /static/vant/picker-column/index.wxs: -------------------------------------------------------------------------------- 1 | function isObj(x) { 2 | var type = typeof x; 3 | return x !== null && (type === 'object' || type === 'function'); 4 | } 5 | 6 | module.exports = function (option, valueKey) { 7 | return isObj(option) && option[valueKey] != null ? option[valueKey] : option; 8 | } 9 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/nav-bar/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "NavBar导航栏", 3 | "usingComponents":{ 4 | "van-panel":"/static/vant/panel/index", 5 | "van-nav-bar":"/static/vant/nav-bar/index", 6 | "van-icon":"/static/vant/icon/index" 7 | } 8 | 9 | } 10 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/toast/index.json: -------------------------------------------------------------------------------- 1 | { 2 | "component": true, 3 | "usingComponents": { 4 | "van-icon": "../icon/index", 5 | "van-loading": "../loading/index", 6 | "van-overlay": "../overlay/index", 7 | "van-transition": "../transition/index" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /static/vant/panel/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | classes: ['header-class', 'footer-class'], 4 | props: { 5 | desc: String, 6 | title: String, 7 | status: String, 8 | useFooterSlot: Boolean 9 | } 10 | }); 11 | -------------------------------------------------------------------------------- /static/vant/overlay/index.wxml: -------------------------------------------------------------------------------- 1 | 9 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/action-sheet/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "ActionSheet 上拉菜单", 3 | "usingComponents":{ 4 | "van-panel":"/static/vant/panel/index", 5 | "van-button":"/static/vant/button/index", 6 | "van-action-sheet":"/static/vant/action-sheet/index" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/slider/index.wxss: -------------------------------------------------------------------------------- 1 | .slider { 2 | margin: 0 15px 30px; 3 | } 4 | 5 | .custom-button { 6 | width: 26px; 7 | color: #fff; 8 | font-size: 10px; 9 | line-height: 18px; 10 | text-align: center; 11 | border-radius: 100px; 12 | background-color: #f44; 13 | } 14 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/overlay/index.wxml: -------------------------------------------------------------------------------- 1 | 8 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/panel/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | classes: ['header-class', 'footer-class'], 4 | props: { 5 | desc: String, 6 | title: String, 7 | status: String, 8 | useFooterSlot: Boolean 9 | } 10 | }); -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/checkbox/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "Checkbox 复选框", 3 | "usingComponents": { 4 | "van-checkbox": "/static/vant/checkbox/index", 5 | "van-checkbox-group": "/static/vant/checkbox-group/index", 6 | "van-panel": "/static/vant/panel/index" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/picker-column/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-picker-column{overflow:hidden;font-size:16px;text-align:center}.van-picker-column__item{padding:0 5px;color:#999}.van-picker-column__item--selected{font-weight:500;color:#333}.van-picker-column__item--disabled{opacity:.3} -------------------------------------------------------------------------------- /static/vant/tabbar/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/datetime-picker/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "DatetimePicker 时间选择", 3 | "usingComponents":{ 4 | "van-datetime-picker":"/static/vant/datetime-picker/index", 5 | "van-toast":"/static/vant/toast/index", 6 | "van-panel":"/static/vant/panel/index" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/pages/field/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-panel": "/static/vant/panel/index", 4 | "van-button": "/static/vant/button/index", 5 | "van-icon": "/static/vant/icon/index", 6 | "van-field": "/static/vant/field/index" 7 | }, 8 | "navigationBarTitleText": "Field 输入框" 9 | } 10 | 11 | 12 | -------------------------------------------------------------------------------- /static/vant/common/style/ellipsis.wxss: -------------------------------------------------------------------------------- 1 | .van-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-multi-ellipsis--l2{-webkit-line-clamp:2}.van-multi-ellipsis--l2,.van-multi-ellipsis--l3{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical}.van-multi-ellipsis--l3{-webkit-line-clamp:3} -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/components/card.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | 14 | 15 | 20 | -------------------------------------------------------------------------------- /src/pages/mydialog/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-panel": "/static/vant/panel/index", 4 | "van-button": "/static/vant/button/index", 5 | "van-field": "/static/vant/field/index", 6 | "van-dialog": "/static/vant/dialog/index" 7 | }, 8 | "navigationBarTitleText": "Dialog 弹出框" 9 | } 10 | 11 | 12 | -------------------------------------------------------------------------------- /static/vant/wxs/object.wxs: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | var REGEXP = getRegExp('{|}|"', 'g'); 3 | 4 | function keys(obj) { 5 | return JSON.stringify(obj) 6 | .replace(REGEXP, '') 7 | .split(',') 8 | .map(function(item) { 9 | return item.split(':')[0]; 10 | }); 11 | } 12 | 13 | module.exports.keys = keys; 14 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/build/dev-client.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | require('eventsource-polyfill') 3 | var hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true') 4 | 5 | hotClient.subscribe(function (event) { 6 | if (event.action === 'reload') { 7 | window.location.reload() 8 | } 9 | }) 10 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/tabbar/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/transition/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | import { transition } from '../mixins/transition'; 3 | VantComponent({ 4 | mixins: [transition(true)], 5 | props: { 6 | name: { 7 | type: String, 8 | value: 'fade' 9 | } 10 | } 11 | }); -------------------------------------------------------------------------------- /src/pages/radios/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-radio": "/static/vant/radio/index", 4 | "van-radio-group": "/static/vant/radio-group/index", 5 | "van-cell": "/static/vant/cell/index", 6 | "van-cell-group": "/static/vant/cell-group/index" 7 | }, 8 | "navigationBarTitleText": "Radio 单选框" 9 | } 10 | 11 | 12 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/card/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "Card 商品卡片", 3 | "usingComponents": { 4 | "van-panel": "/static/vant/panel/index", 5 | "van-card": "/static/vant/card/index", 6 | "van-tag": "/static/vant/tag/index", 7 | "van-button": "/static/vant/button/index" 8 | } 9 | 10 | } 11 | -------------------------------------------------------------------------------- /static/vant/tab/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/submit-bar/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "SubmitBar 提交订单栏", 3 | "usingComponents":{ 4 | "van-panel":"/static/vant/panel/index", 5 | "van-submit-bar":"/static/vant/submit-bar/index", 6 | "van-tag":"/static/vant/tag/index", 7 | "van-toast":"/static/vant/toast/index" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/transition/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "Transition 动画", 3 | "usingComponents":{ 4 | "van-transition":"/static/vant/transition/index", 5 | "van-panel":"/static/vant/panel/index", 6 | "van-cell":"/static/vant/cell/index", 7 | "van-icon":"/static/vant/icon/index" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/pages/iconall/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-icon": "/static/vant/icon/index", 4 | "van-tab": "/static/vant/tab/index", 5 | "van-tabs": "/static/vant/tabs/index", 6 | "van-row": "/static/vant/row/index", 7 | "van-col": "/static/vant/col/index" 8 | }, 9 | "navigationBarTitleText": "所有icon图标" 10 | } 11 | 12 | 13 | -------------------------------------------------------------------------------- /static/vant/transition/index.wxml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /static/vant/wxs/utils.wxs: -------------------------------------------------------------------------------- 1 | var bem = require('./bem.wxs').bem; 2 | var memoize = require('./memoize.wxs').memoize; 3 | 4 | function isSrc(url) { 5 | return url.indexOf('http') === 0 || url.indexOf('data:image') === 0 || url.indexOf('//') === 0; 6 | } 7 | 8 | module.exports = { 9 | bem: memoize(bem), 10 | isSrc: isSrc, 11 | memoize: memoize 12 | }; 13 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/col/index.wxss: -------------------------------------------------------------------------------- 1 | .dark, 2 | .light { 3 | color: #fff; 4 | font-size: 13px; 5 | line-height: 30px; 6 | text-align: center; 7 | margin-bottom: 10px; 8 | background-clip: content-box; 9 | } 10 | 11 | .dark { 12 | background-color: #39a9ed; 13 | } 14 | 15 | .light { 16 | background-color: #66c6f2; 17 | } 18 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/wxs/object.wxs: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | var REGEXP = getRegExp('{|}|"', 'g'); 3 | 4 | function keys(obj) { 5 | return JSON.stringify(obj) 6 | .replace(REGEXP, '') 7 | .split(',') 8 | .map(function(item) { 9 | return item.split(':')[0]; 10 | }); 11 | } 12 | 13 | module.exports.keys = keys; 14 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/collapse/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "Collapse 折叠面板", 3 | "usingComponents":{ 4 | "van-panel":"/static/vant/panel/index", 5 | "van-collapse":"/static/vant/collapse/index", 6 | "van-collapse-item":"/static/vant/collapse-item/index", 7 | "van-icon":"/static/vant/icon/index" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/pages/index/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-button": "/static/vant/button/index", 4 | "van-cell": "/static/vant/cell/index", 5 | "van-cell-group": "/static/vant/cell-group/index", 6 | "van-tab": "/static/vant/tab/index", 7 | "van-tabs": "/static/vant/tabs/index" 8 | }, 9 | "navigationBarTitleText": "主页" 10 | } 11 | 12 | 13 | -------------------------------------------------------------------------------- /static/vant/notify/notify.d.ts: -------------------------------------------------------------------------------- 1 | interface NotifyOptions { 2 | text: string; 3 | color?: string; 4 | backgroundColor?: string; 5 | duration?: number; 6 | selector?: string; 7 | context?: any; 8 | safeAreaInsetTop?: boolean; 9 | zIndex?: number; 10 | } 11 | export default function Notify(options: NotifyOptions | string): void; 12 | export {}; 13 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/icon/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "Icon 图标", 3 | "usingComponents": { 4 | "van-icon": "/static/vant/icon/index", 5 | "van-row": "/static/vant/row/index", 6 | "van-col": "/static/vant/col/index", 7 | "van-tab": "/static/vant/tab/index", 8 | "van-tabs": "/static/vant/tabs/index" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/tab/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /static/vant/swipe-cell/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-swipe-cell{position:relative;overflow:hidden}.van-swipe-cell__left,.van-swipe-cell__right{position:absolute;top:0;height:100%}.van-swipe-cell__left{left:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.van-swipe-cell__right{right:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)} -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/tab/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "Tab 标签页", 3 | "usingComponents":{ 4 | "van-button":"/static/vant/button/index", 5 | "van-panel":"/static/vant/panel/index", 6 | "van-steps":"/static/vant/steps/index", 7 | "van-tabs":"/static/vant/tabs/index", 8 | "van-tab":"/static/vant/tab/index" 9 | 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/badge/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | {{ title }} 9 | 10 | 11 | -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | ["env", { 4 | "modules": false, 5 | "targets": { 6 | "browsers": ["> 1%", "last 2 versions", "not ie <= 8"] 7 | } 8 | }], 9 | "stage-2" 10 | ], 11 | "plugins": ["transform-runtime"], 12 | "env": { 13 | "test": { 14 | "presets": ["env", "stage-2"], 15 | "plugins": ["istanbul"] 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/common/style/ellipsis.wxss: -------------------------------------------------------------------------------- 1 | .van-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-multi-ellipsis--l2{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.van-multi-ellipsis--l3{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical} -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/wxs/utils.wxs: -------------------------------------------------------------------------------- 1 | var bem = require('./bem.wxs').bem; 2 | var memoize = require('./memoize.wxs').memoize; 3 | 4 | function isSrc(url) { 5 | return url.indexOf('http') === 0 || url.indexOf('data:image') === 0 || url.indexOf('//') === 0; 6 | } 7 | 8 | module.exports = { 9 | bem: memoize(bem), 10 | isSrc: isSrc, 11 | memoize: memoize 12 | }; 13 | -------------------------------------------------------------------------------- /static/vant/goods-action-icon/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-goods-action-icon{width:50px!important;border:none!important}.van-goods-action-icon__content{display:-webkit-flex;display:flex;height:100%;font-size:10px;line-height:1;color:#7d7e80;-webkit-flex-direction:column;flex-direction:column;-webkit-justify-content:center;justify-content:center}.van-goods-action-icon__icon{margin-bottom:4px} -------------------------------------------------------------------------------- /static/vant/notify/index.wxml: -------------------------------------------------------------------------------- 1 | 7 | 8 | {{ text }} 9 | 10 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/loading/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | props: { 4 | size: { 5 | type: String, 6 | value: '30px' 7 | }, 8 | type: { 9 | type: String, 10 | value: 'circular' 11 | }, 12 | color: { 13 | type: String, 14 | value: '#c9c9c9' 15 | } 16 | } 17 | }); -------------------------------------------------------------------------------- /src/pages/iconall/iconall.css: -------------------------------------------------------------------------------- 1 | .col { 2 | text-align: center; 3 | height: 100px; 4 | float: none; 5 | display: inline-block; 6 | vertical-align: middle; 7 | } 8 | 9 | .icon { 10 | display: block; 11 | margin: 15px 0; 12 | color: #455a64; 13 | } 14 | 15 | .text { 16 | font-size: 12px; 17 | padding: 0 5px; 18 | 19 | } 20 | 21 | .demo-tab-pane { 22 | padding-top: 10px; 23 | } 24 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/transition/index.wxml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/pages/checkbox/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "usingComponents": { 3 | "van-checkbox": "/static/vant/checkbox/index", 4 | "van-checkbox-group": "/static/vant/checkbox-group/index", 5 | "van-cell": "/static/vant/cell/index", 6 | "van-cell-group": "/static/vant/cell-group/index", 7 | "van-button": "/static/vant/button/index" 8 | }, 9 | "navigationBarTitleText": "Checkbox 复选框" 10 | } 11 | 12 | 13 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/mixins/button.js: -------------------------------------------------------------------------------- 1 | export var button = Behavior({ 2 | properties: { 3 | id: String, 4 | sessionFrom: String, 5 | appParameter: String, 6 | sendMessageImg: String, 7 | sendMessagePath: String, 8 | showMessageCard: String, 9 | sendMessageTitle: String, 10 | lang: { 11 | type: String, 12 | value: 'en' 13 | } 14 | } 15 | }); -------------------------------------------------------------------------------- /static/vant/transition/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | import { transition } from '../mixins/transition'; 3 | VantComponent({ 4 | classes: [ 5 | 'enter-class', 6 | 'enter-active-class', 7 | 'enter-to-class', 8 | 'leave-class', 9 | 'leave-active-class', 10 | 'leave-to-class' 11 | ], 12 | mixins: [transition(true)] 13 | }); 14 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/swipe-cell/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-swipe-cell{position:relative;overflow:hidden}.van-swipe-cell__left,.van-swipe-cell__right{position:absolute;top:0;height:100%}.van-swipe-cell__left{left:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.van-swipe-cell__right{right:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)} -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/slider/index.js: -------------------------------------------------------------------------------- 1 | import Page from '../../common/page'; 2 | 3 | Page({ 4 | data: { 5 | currentValue: 50 6 | }, 7 | 8 | onChange(event) { 9 | wx.showToast({ 10 | icon: 'none', 11 | title: `当前值:${event.detail}` 12 | }); 13 | }, 14 | 15 | onDrag(event) { 16 | this.setData({ 17 | currentValue: event.detail.value 18 | }); 19 | } 20 | }); 21 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/swipe-cell/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "SwipeCell 滑动单元格", 3 | "usingComponents":{ 4 | "van-panel": "/static/vant/panel/index", 5 | "van-swipe-cell": "/static/vant/swipe-cell/index", 6 | "van-dialog": "/static/vant/dialog/index", 7 | "van-cell-group": "/static/vant/cell-group/index", 8 | "van-cell": "/static/vant/cell/index" 9 | 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/goods-action-icon/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-goods-action-icon{width:50px!important;border:none!important}.van-goods-action-icon__content{height:100%;display:-webkit-flex;display:flex;line-height:1;font-size:10px;color:#7d7e80;-webkit-flex-direction:column;flex-direction:column;-webkit-justify-content:center;justify-content:center}.van-goods-action-icon__icon{margin-bottom:4px} -------------------------------------------------------------------------------- /static/vant/loading/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | props: { 4 | size: { 5 | type: String, 6 | value: '30px' 7 | }, 8 | type: { 9 | type: String, 10 | value: 'circular' 11 | }, 12 | color: { 13 | type: String, 14 | value: '#c9c9c9' 15 | } 16 | } 17 | }); 18 | -------------------------------------------------------------------------------- /static/vant/loading/index.wxml: -------------------------------------------------------------------------------- 1 | 5 | 9 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /static/vant/common/utils.js: -------------------------------------------------------------------------------- 1 | function isDef(value) { 2 | return value !== undefined && value !== null; 3 | } 4 | function isObj(x) { 5 | const type = typeof x; 6 | return x !== null && (type === 'object' || type === 'function'); 7 | } 8 | function isNumber(value) { 9 | return /^\d+$/.test(value); 10 | } 11 | function range(num, min, max) { 12 | return Math.min(Math.max(num, min), max); 13 | } 14 | export { isObj, isDef, isNumber, range }; 15 | -------------------------------------------------------------------------------- /static/vant/mixins/link.js: -------------------------------------------------------------------------------- 1 | export const link = Behavior({ 2 | properties: { 3 | url: String, 4 | linkType: { 5 | type: String, 6 | value: 'navigateTo' 7 | } 8 | }, 9 | methods: { 10 | jumpLink(urlKey = 'url') { 11 | const url = this.data[urlKey]; 12 | if (url) { 13 | wx[this.data.linkType]({ url }); 14 | } 15 | } 16 | } 17 | }); 18 | -------------------------------------------------------------------------------- /static/vant/info/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-info{position:absolute;top:-8px;right:0;min-width:16px;padding:0 3px;font-family:PingFang SC,Helvetica Neue,Arial,sans-serif;font-size:12px;font-weight:500;line-height:14px;color:#fff;text-align:center;white-space:nowrap;background-color:#f44;border:1px solid #fff;border-radius:16px;-webkit-transform:translateX(50%);transform:translateX(50%);box-sizing:border-box;-webkit-transform-origin:100%;transform-origin:100%} -------------------------------------------------------------------------------- /static/vant/tag/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-tag{color:#fff;font-size:10px;padding:.2em .5em;line-height:normal;border-radius:.2em;display:inline-block}.van-tag:after{border-color:currentColor;border-radius:.4em}.van-tag--mark{padding-right:.6em;border-radius:0 .8em .8em 0}.van-tag--mark:after{border-radius:0 1.6em 1.6em 0}.van-tag--round{border-radius:.8em}.van-tag--round:after{border-radius:1.6em}.van-tag--medium{font-size:12px}.van-tag--large{font-size:14px} -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/goods-action/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "GoodsAction 商品导航", 3 | "usingComponents":{ 4 | "van-panel":"/static/vant/panel/index", 5 | "van-goods-action": "/static/vant/goods-action/index", 6 | "van-goods-action-icon": "/static/vant/goods-action-icon/index", 7 | "van-toast": "/static/vant/toast/index", 8 | "van-goods-action-button": "/static/vant/goods-action-button/index" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /static/vant/steps/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | import { GREEN } from '../common/color'; 3 | VantComponent({ 4 | props: { 5 | icon: String, 6 | steps: Array, 7 | active: Number, 8 | direction: { 9 | type: String, 10 | value: 'horizontal' 11 | }, 12 | activeColor: { 13 | type: String, 14 | value: GREEN 15 | } 16 | } 17 | }); 18 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/icon/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | props: { 4 | info: null, 5 | name: String, 6 | size: String, 7 | color: String, 8 | customStyle: String, 9 | classPrefix: { 10 | type: String, 11 | value: 'van-icon' 12 | } 13 | }, 14 | methods: { 15 | onClick: function onClick() { 16 | this.$emit('click'); 17 | } 18 | } 19 | }); -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/progress/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 11 | {{ text }} 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /static/vant/badge/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 15 | {{ title }} 16 | 17 | 18 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/info/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-info{position:absolute;right:0;top:-8px;color:#fff;font-size:12px;font-weight:500;font-family:PingFang SC,Helvetica Neue,Arial,sans-serif;text-align:center;box-sizing:border-box;padding:0 3px;min-width:16px;line-height:14px;border:1px solid #fff;border-radius:16px;background-color:#f44;-webkit-transform:translateX(50%);transform:translateX(50%);-webkit-transform-origin:100%;transform-origin:100%} -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/loading/index.wxml: -------------------------------------------------------------------------------- 1 | 5 | 9 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /static/vant/icon/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | props: { 4 | info: null, 5 | name: String, 6 | size: String, 7 | color: String, 8 | customStyle: String, 9 | classPrefix: { 10 | type: String, 11 | value: 'van-icon' 12 | } 13 | }, 14 | methods: { 15 | onClick() { 16 | this.$emit('click'); 17 | } 18 | } 19 | }); 20 | -------------------------------------------------------------------------------- /static/vant/progress/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-progress{position:relative;height:4px;background:#e5e5e5;border-radius:4px}.van-progress__portion{position:absolute;left:0;height:100%;border-radius:inherit}.van-progress__pivot{position:absolute;top:50%;right:0;min-width:2em;padding:0 5px;font-size:10px;line-height:1.6;text-align:center;word-break:keep-all;background-color:#e5e5e5;border-radius:1em;-webkit-transform:translateY(-50%);transform:translateY(-50%);box-sizing:border-box} -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/overlay/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | props: { 4 | show: Boolean, 5 | mask: Boolean, 6 | customStyle: String, 7 | zIndex: { 8 | type: Number, 9 | value: 1 10 | } 11 | }, 12 | methods: { 13 | onClick: function onClick() { 14 | this.$emit('click'); 15 | }, 16 | // for prevent touchmove 17 | noop: function noop() {} 18 | } 19 | }); -------------------------------------------------------------------------------- /_参考源码/源码1/README.md: -------------------------------------------------------------------------------- 1 | ``` 2 | 3 | Vant Weapp组件库官方示例改写到Mpvue框架下 4 | 5 | 6 | 参考: 7 | https://github.com/zxz-googleman/hello-mpvue-vantweapp 8 | 9 | 10 | 11 | 1.npm 报错 Module build failed: Error: No PostCSS Config found in 12 | 解决办法: 13 | 需要在根文件里面新建一个文件postcss.config.js 14 | 15 | 参考:https://blog.csdn.net/merciwen/article/details/79663569 16 | 17 | 18 | 19 | 2.小程序开发工具打开后,首页报错 20 | 解决办法: 21 | App.vue文件中下面的样式代码屏蔽即可 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | ``` 32 | 33 | 34 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/common/utils.js: -------------------------------------------------------------------------------- 1 | function isDef(value) { 2 | return value !== undefined && value !== null; 3 | } 4 | 5 | function isObj(x) { 6 | var type = typeof x; 7 | return x !== null && (type === 'object' || type === 'function'); 8 | } 9 | 10 | function isNumber(value) { 11 | return /^\d+$/.test(value); 12 | } 13 | 14 | function range(num, min, max) { 15 | return Math.min(Math.max(num, min), max); 16 | } 17 | 18 | export { isObj, isDef, isNumber, range }; -------------------------------------------------------------------------------- /static/vant/picker/shared.js: -------------------------------------------------------------------------------- 1 | export const pickerProps = { 2 | title: String, 3 | loading: Boolean, 4 | showToolbar: Boolean, 5 | cancelButtonText: { 6 | type: String, 7 | value: '取消' 8 | }, 9 | confirmButtonText: { 10 | type: String, 11 | value: '确认' 12 | }, 13 | visibleItemCount: { 14 | type: Number, 15 | value: 5 16 | }, 17 | itemHeight: { 18 | type: Number, 19 | value: 44 20 | } 21 | }; 22 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/datetime-picker/index.wxml: -------------------------------------------------------------------------------- 1 | 14 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/tag/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-tag{color:#fff;font-size:10px;padding:.2em .5em;line-height:normal;border-radius:.2em;display:inline-block}.van-tag::after{border-color:currentColor;border-radius:.4em}.van-tag--mark{padding-right:.6em;border-radius:0 .8em .8em 0}.van-tag--mark::after{border-radius:0 1.6em 1.6em 0}.van-tag--round{border-radius:.8em}.van-tag--round::after{border-radius:1.6em}.van-tag--medium{font-size:12px}.van-tag--large{font-size:14px} -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/rate/index.wxml: -------------------------------------------------------------------------------- 1 | 5 | 16 | 17 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/switch-cell/index.wxml: -------------------------------------------------------------------------------- 1 | 7 | 17 | 18 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/area/index.wxml: -------------------------------------------------------------------------------- 1 | 17 | -------------------------------------------------------------------------------- /static/vant/switch/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/switch/index.js: -------------------------------------------------------------------------------- 1 | import Page from '../../common/page'; 2 | import Dialog from '../../dist/dialog/dialog'; 3 | 4 | Page({ 5 | data: { 6 | checked: true, 7 | checked2: true 8 | }, 9 | 10 | onChange({ detail }) { 11 | this.setData({ checked: detail }); 12 | }, 13 | 14 | onChange2({ detail }) { 15 | Dialog.confirm({ 16 | title: '提示', 17 | message: '是否切换开关?' 18 | }).then((res) => { 19 | this.setData({ checked2: detail }); 20 | }); 21 | } 22 | }); 23 | -------------------------------------------------------------------------------- /static/vant/mixins/button.js: -------------------------------------------------------------------------------- 1 | export const button = Behavior({ 2 | externalClasses: ['hover-class'], 3 | properties: { 4 | id: String, 5 | lang: { 6 | type: String, 7 | value: 'en' 8 | }, 9 | businessId: Number, 10 | sessionFrom: String, 11 | sendMessageTitle: String, 12 | sendMessagePath: String, 13 | sendMessageImg: String, 14 | showMessageCard: Boolean, 15 | appParameter: String, 16 | ariaLabel: String 17 | } 18 | }); 19 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/mixins/link.js: -------------------------------------------------------------------------------- 1 | export var link = Behavior({ 2 | properties: { 3 | url: String, 4 | linkType: { 5 | type: String, 6 | value: 'navigateTo' 7 | } 8 | }, 9 | methods: { 10 | jumpLink: function jumpLink(urlKey) { 11 | if (urlKey === void 0) { 12 | urlKey = 'url'; 13 | } 14 | 15 | var url = this.data[urlKey]; 16 | 17 | if (url) { 18 | wx[this.data.linkType]({ 19 | url: url 20 | }); 21 | } 22 | } 23 | } 24 | }); -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/switch/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /static/vant/datetime-picker/index.wxml: -------------------------------------------------------------------------------- 1 | 17 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/goods-action-icon/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | import { link } from '../mixins/link'; 3 | import { button } from '../mixins/button'; 4 | import { openType } from '../mixins/open-type'; 5 | VantComponent({ 6 | mixins: [link, button, openType], 7 | props: { 8 | text: String, 9 | info: String, 10 | icon: String 11 | }, 12 | methods: { 13 | onClick: function onClick(event) { 14 | this.$emit('click', event.detail); 15 | this.jumpLink(); 16 | } 17 | } 18 | }); -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/icon/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 12 | 16 | 17 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/counter/store.js: -------------------------------------------------------------------------------- 1 | // https://vuex.vuejs.org/zh-cn/intro.html 2 | // make sure to call Vue.use(Vuex) if using a module system 3 | import Vue from 'vue' 4 | import Vuex from 'vuex' 5 | 6 | Vue.use(Vuex) 7 | 8 | const store = new Vuex.Store({ 9 | state: { 10 | count: 0 11 | }, 12 | mutations: { 13 | increment: (state) => { 14 | const obj = state 15 | obj.count += 1 16 | }, 17 | decrement: (state) => { 18 | const obj = state 19 | obj.count -= 1 20 | } 21 | } 22 | }) 23 | 24 | export default store 25 | -------------------------------------------------------------------------------- /static/vant/slider/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-slider{position:relative;border-radius:999px;background-color:#e5e5e5}.van-slider__bar{position:relative;border-radius:inherit;background-color:#1989fa}.van-slider__button{width:20px;height:20px;border-radius:50%;background-color:#fff;box-shadow:0 1px 2px rgba(0,0,0,.5)}.van-slider__button-wrapper{position:absolute;top:50%;right:0;-webkit-transform:translate3d(50%,-50%,0);transform:translate3d(50%,-50%,0)}.van-slider__button-wrapper:after{content:"";position:absolute;width:200%;height:200%;top:-50%;left:-50%}.van-slider--disabled{opacity:.3} -------------------------------------------------------------------------------- /static/vant/area/index.wxml: -------------------------------------------------------------------------------- 1 | 19 | -------------------------------------------------------------------------------- /static/vant/overlay/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | props: { 4 | show: Boolean, 5 | mask: Boolean, 6 | customStyle: String, 7 | duration: { 8 | type: [Number, Object], 9 | value: 300 10 | }, 11 | zIndex: { 12 | type: Number, 13 | value: 1 14 | } 15 | }, 16 | methods: { 17 | onClick() { 18 | this.$emit('click'); 19 | }, 20 | // for prevent touchmove 21 | noop() { } 22 | } 23 | }); 24 | -------------------------------------------------------------------------------- /static/vant/picker/shared.d.ts: -------------------------------------------------------------------------------- 1 | export declare const pickerProps: { 2 | title: StringConstructor; 3 | loading: BooleanConstructor; 4 | showToolbar: BooleanConstructor; 5 | cancelButtonText: { 6 | type: StringConstructor; 7 | value: string; 8 | }; 9 | confirmButtonText: { 10 | type: StringConstructor; 11 | value: string; 12 | }; 13 | visibleItemCount: { 14 | type: NumberConstructor; 15 | value: number; 16 | }; 17 | itemHeight: { 18 | type: NumberConstructor; 19 | value: number; 20 | }; 21 | }; 22 | -------------------------------------------------------------------------------- /static/vant/badge/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-badge{display:block;padding:20px 12px 20px 9px;overflow:hidden;font-size:14px;line-height:1.4;color:#7d7e80;word-break:break-all;background-color:#f8f8f8;border-left:3px solid transparent;box-sizing:border-box;-webkit-user-select:none;user-select:none}.van-badge--hover{background-color:#f2f3f5}.van-badge:after{border-bottom-width:1px}.van-badge--active{font-weight:700;color:#333;border-color:#f44}.van-badge--active:after{border-right-width:1px}.van-badge--active,.van-badge--active.van-badge--hover{background-color:#fff}.van-badge__text{position:relative} -------------------------------------------------------------------------------- /static/vant/panel/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /static/vant/progress/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | import { BLUE } from '../common/color'; 3 | VantComponent({ 4 | props: { 5 | inactive: Boolean, 6 | percentage: Number, 7 | pivotText: String, 8 | pivotColor: String, 9 | showPivot: { 10 | type: Boolean, 11 | value: true 12 | }, 13 | color: { 14 | type: String, 15 | value: BLUE 16 | }, 17 | textColor: { 18 | type: String, 19 | value: '#fff' 20 | } 21 | } 22 | }); 23 | -------------------------------------------------------------------------------- /static/vant/icon/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 13 | 18 | 19 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/progress/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-progress{height:4px;position:relative;border-radius:4px;background:#e5e5e5}.van-progress__portion{left:0;height:100%;position:absolute;border-radius:inherit}.van-progress__portion--with-pivot{border-top-right-radius:0;border-bottom-right-radius:0}.van-progress__pivot{top:50%;right:0;min-width:2em;padding:0 5px;font-size:10px;position:absolute;line-height:1.6;text-align:center;border-radius:1em;word-break:keep-all;box-sizing:border-box;background-color:#e5e5e5;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)} -------------------------------------------------------------------------------- /static/vant/progress/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 13 | {{ getters.text(pivotText, percentage) }} 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/build/vue-loader.conf.js: -------------------------------------------------------------------------------- 1 | var utils = require('./utils') 2 | var config = require('../config') 3 | // var isProduction = process.env.NODE_ENV === 'production' 4 | // for mp 5 | var isProduction = true 6 | 7 | module.exports = { 8 | loaders: utils.cssLoaders({ 9 | sourceMap: isProduction 10 | ? config.build.productionSourceMap 11 | : config.dev.cssSourceMap, 12 | extract: isProduction 13 | }), 14 | transformToRequire: { 15 | video: 'src', 16 | source: 'src', 17 | img: 'src', 18 | image: 'xlink:href' 19 | }, 20 | fileExt: config.build.fileExt 21 | } 22 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/badge/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-badge{display:block;overflow:hidden;font-size:14px;line-height:1.4;-webkit-user-select:none;user-select:none;color:#7d7e80;word-break:break-all;box-sizing:border-box;padding:20px 12px 20px 9px;background-color:#f8f8f8;border-left:3px solid transparent}.van-badge:active{background-color:#e8e8e8}.van-badge::after{border-bottom-width:1px}.van-badge--active{font-weight:700;color:#333;border-color:#f44}.van-badge--active::after{border-right-width:1px}.van-badge--active,.van-badge--active:active{background-color:#fff}.van-badge__text{position:relative} -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/slider/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-slider{position:relative;border-radius:999px;background-color:#e5e5e5}.van-slider__bar{position:relative;border-radius:inherit;background-color:#1989fa}.van-slider__button{width:20px;height:20px;border-radius:50%;background-color:#fff;box-shadow:0 1px 2px rgba(0,0,0,.5)}.van-slider__button-wrapper{position:absolute;top:50%;right:0;-webkit-transform:translate3d(50%,-50%,0);transform:translate3d(50%,-50%,0)}.van-slider__button-wrapper::after{content:'';position:absolute;width:200%;height:200%;top:-50%;left:-50%}.van-slider--disabled{opacity:.3} -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/badge/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | relation: { 4 | type: 'ancestor', 5 | name: 'badge-group' 6 | }, 7 | props: { 8 | info: null, 9 | title: String 10 | }, 11 | methods: { 12 | onClick: function onClick() { 13 | var group = this.getRelationNodes('../badge-group/index')[0]; 14 | 15 | if (group) { 16 | group.setActive(this); 17 | } 18 | }, 19 | setActive: function setActive(active) { 20 | this.set({ 21 | active: active 22 | }); 23 | } 24 | } 25 | }); -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/panel/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /static/vant/tabbar-item/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';:host{-webkit-flex:1;flex:1}.van-tabbar-item{color:#7d7e80;height:100%;display:-webkit-flex;display:flex;line-height:1;font-size:12px;-webkit-align-items:center;align-items:center;-webkit-flex-direction:column;flex-direction:column;-webkit-justify-content:center;justify-content:center}.van-tabbar-item__icon{font-size:18px;margin-bottom:5px;position:relative}.van-tabbar-item__icon--dot:after{top:0;right:-8px;width:8px;height:8px;content:" ";position:absolute;border-radius:100%;background-color:#f44}.van-tabbar-item__icon image{width:30px;height:18px;display:block}.van-tabbar-item--active{color:#1989fa} -------------------------------------------------------------------------------- /static/vant/col/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | relation: { 4 | name: 'row', 5 | type: 'ancestor' 6 | }, 7 | props: { 8 | span: Number, 9 | offset: Number 10 | }, 11 | data: { 12 | style: '' 13 | }, 14 | methods: { 15 | setGutter(gutter) { 16 | const padding = `${gutter / 2}px`; 17 | const style = gutter ? `padding-left: ${padding}; padding-right: ${padding};` : ''; 18 | if (style !== this.data.style) { 19 | this.set({ style }); 20 | } 21 | } 22 | } 23 | }); 24 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/goods-action-button/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | import { link } from '../mixins/link'; 3 | import { button } from '../mixins/button'; 4 | import { openType } from '../mixins/open-type'; 5 | VantComponent({ 6 | mixins: [link, button, openType], 7 | props: { 8 | text: String, 9 | loading: Boolean, 10 | disabled: Boolean, 11 | type: { 12 | type: String, 13 | value: 'danger' 14 | } 15 | }, 16 | methods: { 17 | onClick: function onClick(event) { 18 | this.$emit('click', event.detail); 19 | this.jumpLink(); 20 | } 21 | } 22 | }); -------------------------------------------------------------------------------- /static/vant/goods-action-icon/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | import { link } from '../mixins/link'; 3 | import { button } from '../mixins/button'; 4 | import { openType } from '../mixins/open-type'; 5 | VantComponent({ 6 | classes: ['icon-class', 'text-class'], 7 | mixins: [link, button, openType], 8 | props: { 9 | text: String, 10 | info: String, 11 | icon: String, 12 | disabled: Boolean, 13 | loading: Boolean 14 | }, 15 | methods: { 16 | onClick(event) { 17 | this.$emit('click', event.detail); 18 | this.jumpLink(); 19 | } 20 | } 21 | }); 22 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/collapse-item/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-collapse-item__title .van-cell__right-icon{-webkit-transform:rotate(90deg);transform:rotate(90deg);transition:.3s}.van-collapse-item__title--expanded .van-cell__right-icon{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.van-collapse-item__title--disabled .van-cell,.van-collapse-item__title--disabled .van-cell__right-icon{color:#c9c9c9!important}.van-collapse-item__title--disabled .van-cell:active{background-color:#fff!important}.van-collapse-item__wrapper{overflow:hidden}.van-collapse-item__content{color:#999;padding:15px;font-size:13px;line-height:1.5;background-color:#fff} -------------------------------------------------------------------------------- /static/vant/goods-action-button/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | import { link } from '../mixins/link'; 3 | import { button } from '../mixins/button'; 4 | import { openType } from '../mixins/open-type'; 5 | VantComponent({ 6 | mixins: [link, button, openType], 7 | props: { 8 | text: String, 9 | loading: Boolean, 10 | disabled: Boolean, 11 | type: { 12 | type: String, 13 | value: 'danger' 14 | } 15 | }, 16 | methods: { 17 | onClick(event) { 18 | this.$emit('click', event.detail); 19 | this.jumpLink(); 20 | } 21 | } 22 | }); 23 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/utils/index.js: -------------------------------------------------------------------------------- 1 | function formatNumber (n) { 2 | const str = n.toString() 3 | return str[1] ? str : `0${str}` 4 | } 5 | 6 | export function formatTime (date) { 7 | const year = date.getFullYear() 8 | const month = date.getMonth() + 1 9 | const day = date.getDate() 10 | 11 | const hour = date.getHours() 12 | const minute = date.getMinutes() 13 | const second = date.getSeconds() 14 | 15 | const t1 = [year, month, day].map(formatNumber).join('/') 16 | const t2 = [hour, minute, second].map(formatNumber).join(':') 17 | 18 | return `${t1} ${t2}` 19 | } 20 | 21 | export default { 22 | formatNumber, 23 | formatTime 24 | } 25 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/col/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | relation: { 4 | name: 'row', 5 | type: 'ancestor' 6 | }, 7 | props: { 8 | span: Number, 9 | offset: Number 10 | }, 11 | data: { 12 | style: '' 13 | }, 14 | methods: { 15 | setGutter: function setGutter(gutter) { 16 | var padding = gutter / 2 + "px"; 17 | var style = gutter ? "padding-left: " + padding + "; padding-right: " + padding + ";" : ''; 18 | 19 | if (style !== this.data.style) { 20 | this.set({ 21 | style: style 22 | }); 23 | } 24 | } 25 | } 26 | }); -------------------------------------------------------------------------------- /static/vant/search/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-search{padding:10px 16px;-webkit-align-items:center;align-items:center;box-sizing:border-box}.van-search,.van-search__content{display:-webkit-flex;display:flex}.van-search__content{padding-left:10px;background-color:#f7f8fa;border-radius:2px;-webkit-flex:1;flex:1}.van-search__content--round{border-radius:17px}.van-search__label{padding:0 5px;font-size:14px;line-height:34px;color:#333}.van-search__field{-webkit-flex:1;flex:1}.van-search__field__left-icon{color:#999}.van-search--withaction{padding-right:0}.van-search__action{padding:0 10px;font-size:14px;line-height:34px;color:#333}.van-search__action--hover{background-color:#f2f3f5} -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/stepper/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 16 | 17 | 18 | 19 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/tabbar-item/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';:host{-webkit-flex:1;flex:1}.van-tabbar-item{color:#7d7e80;height:100%;display:-webkit-flex;display:flex;line-height:1;font-size:12px;-webkit-align-items:center;align-items:center;-webkit-flex-direction:column;flex-direction:column;-webkit-justify-content:center;justify-content:center}.van-tabbar-item__icon{font-size:18px;margin-bottom:5px;position:relative}.van-tabbar-item__icon--dot::after{top:0;right:-8px;width:8px;height:8px;content:' ';position:absolute;border-radius:100%;background-color:#f44}.van-tabbar-item__icon image{width:30px;height:18px;display:block}.van-tabbar-item--active{color:#1989fa} -------------------------------------------------------------------------------- /static/vant/switch/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-switch{display:inline-block;position:relative;width:2em;border:1px solid rgba(0,0,0,.1);border-radius:1em;box-sizing:initial;transition:background-color .3s}.van-switch,.van-switch__node{height:1em;background-color:#fff}.van-switch__node{top:0;left:0;position:absolute;border-radius:100%;width:1em;z-index:1;transition:.3s;box-shadow:0 3px 1px 0 rgba(0,0,0,.05),0 2px 2px 0 rgba(0,0,0,.1),0 3px 3px 0 rgba(0,0,0,.05)}.van-switch__loading{top:25%;left:25%;position:absolute!important}.van-switch--on{background-color:#1989fa}.van-switch--on .van-switch__node{-webkit-transform:translateX(1em);transform:translateX(1em)}.van-switch--disabled{opacity:.4} -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/nav-bar/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | classes: ['title-class'], 4 | props: { 5 | title: String, 6 | fixed: Boolean, 7 | leftText: String, 8 | rightText: String, 9 | leftArrow: Boolean, 10 | border: { 11 | type: Boolean, 12 | value: true 13 | }, 14 | zIndex: { 15 | type: Number, 16 | value: 1 17 | } 18 | }, 19 | methods: { 20 | onClickLeft: function onClickLeft() { 21 | this.$emit('clickLeft'); 22 | }, 23 | onClickRight: function onClickRight() { 24 | this.$emit('clickRight'); 25 | } 26 | } 27 | }); 28 | -------------------------------------------------------------------------------- /static/vant/swipe-cell/index.wxml: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/search/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-search{display:-webkit-flex;display:flex;padding:7px 15px;-webkit-align-items:center;align-items:center;box-sizing:border-box}.van-search__field{overflow:hidden;border-radius:4px;-webkit-flex:1;flex:1}.van-search__field__left-icon{color:#999}.van-search--show-action{padding-right:0}.van-search input::-webkit-search-cancel-button,.van-search input::-webkit-search-decoration,.van-search input::-webkit-search-results-button,.van-search input::-webkit-search-results-decoration{display:none}.van-search__action{padding:0 10px;font-size:14px;line-height:30px;color:#7d7e80}.van-search__action:active{background-color:#e8e8e8} -------------------------------------------------------------------------------- /static/vant/collapse-item/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-collapse-item__title .van-cell__right-icon{-webkit-transform:rotate(90deg);transform:rotate(90deg);transition:.3s}.van-collapse-item__title--expanded .van-cell__right-icon{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.van-collapse-item__title--disabled .van-cell,.van-collapse-item__title--disabled .van-cell__right-icon{color:#c9c9c9!important}.van-collapse-item__title--disabled .van-cell--hover{background-color:#fff!important}.van-collapse-item__wrapper{overflow:hidden}.van-collapse-item__wrapper--transition{transition:height .3s ease-in-out}.van-collapse-item__content{padding:15px;font-size:13px;line-height:1.5;color:#999;background-color:#fff} -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/mixins/basic.js: -------------------------------------------------------------------------------- 1 | export var basic = Behavior({ 2 | methods: { 3 | $emit: function $emit() { 4 | this.triggerEvent.apply(this, arguments); 5 | }, 6 | getRect: function getRect(selector, all) { 7 | var _this = this; 8 | 9 | return new Promise(function (resolve) { 10 | wx.createSelectorQuery().in(_this)[all ? 'selectAll' : 'select'](selector).boundingClientRect(function (rect) { 11 | if (all && Array.isArray(rect) && rect.length) { 12 | resolve(rect); 13 | } 14 | 15 | if (!all && rect) { 16 | resolve(rect); 17 | } 18 | }).exec(); 19 | }); 20 | } 21 | } 22 | }); -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/notice-bar/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-notice-bar{display:-webkit-flex;display:flex;height:40px;padding:0 15px;font-size:14px;line-height:24px;-webkit-align-items:center;align-items:center}.van-notice-bar--within-icon{position:relative;padding-right:40px}.van-notice-bar__left-icon{height:18px;min-width:20px;box-sizing:border-box}.van-notice-bar__left-icon>image{width:16px;height:16px}.van-notice-bar__right-icon{position:absolute;top:10px;right:15px;font-size:16px}.van-notice-bar__content-wrap{-webkit-flex:1;flex:1;height:24px;overflow:hidden;position:relative}.van-notice-bar__content{position:absolute;white-space:nowrap}.van-notice-bar__content.van-ellipsis{max-width:100%} -------------------------------------------------------------------------------- /static/vant/mixins/observer/props.js: -------------------------------------------------------------------------------- 1 | export function observeProps(props) { 2 | if (!props) { 3 | return; 4 | } 5 | Object.keys(props).forEach(key => { 6 | let prop = props[key]; 7 | if (prop === null || !('type' in prop)) { 8 | prop = { type: prop }; 9 | } 10 | let { observer } = prop; 11 | prop.observer = function (...args) { 12 | if (observer) { 13 | if (typeof observer === 'string') { 14 | observer = this[observer]; 15 | } 16 | observer.apply(this, args); 17 | } 18 | this.set(); 19 | }; 20 | props[key] = prop; 21 | }); 22 | } 23 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/project.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "项目配置文件。", 3 | "setting": { 4 | "urlCheck": true, 5 | "es6": true, 6 | "postcss": true, 7 | "minified": true, 8 | "newFeature": true, 9 | "autoAudits": false 10 | }, 11 | "miniprogramRoot": "dist/wx/", 12 | "compileType": "miniprogram", 13 | "appid": "wx7504b31c98fe62da", 14 | "projectname": "hello-mpvue-vantweapp", 15 | "condition": { 16 | "search": { 17 | "current": -1, 18 | "list": [] 19 | }, 20 | "conversation": { 21 | "current": -1, 22 | "list": [] 23 | }, 24 | "game": { 25 | "currentL": -1, 26 | "list": [] 27 | }, 28 | "miniprogram": { 29 | "current": -1, 30 | "list": [] 31 | } 32 | } 33 | } -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/submit-bar/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-submit-bar{z-index:100;position:fixed;bottom:0;left:0;width:100%;-webkit-user-select:none;user-select:none}.van-submit-bar__tip{padding:10px;color:#f56723;font-size:12px;line-height:18px;background-color:#fff7cc}.van-submit-bar__bar{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;height:50px;background-color:#fff;font-size:14px}.van-submit-bar__bar--safe{padding-bottom:34px}.van-submit-bar__text{-webkit-flex:1;flex:1;color:#333;font-weight:500;text-align:right}.van-submit-bar__price{color:#f44;font-size:18px;padding-right:12px}.van-submit-bar__currency{font-size:14px}.van-submit-bar__button button{width:110px} -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/swipe-cell/index.wxml: -------------------------------------------------------------------------------- 1 | 10 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/radio/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-radio{overflow:hidden;line-height:1;-webkit-user-select:none;user-select:none}.van-radio__input,.van-radio__label{display:inline-block;vertical-align:middle}.van-radio__input{position:relative;font-size:20px}.van-radio__control{z-index:1;position:absolute;top:0;left:0;width:100%;height:100%;margin:0;opacity:0}.van-radio__label{margin-left:10px;color:#333;font-size:16px;line-height:20px}.van-radio__label--left{margin:0 10px 0 0;float:left}.van-radio__label:empty{margin:0}.van-radio__icon{pointer-events:none;display:block;line-height:0}.van-radio__icon--disabled{color:#e5e5e5}.van-radio__icon--checked{color:#1989fa}.van-radio__icon--check{color:#c9c9c9} -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/switch/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-switch{display:inline-block;position:relative;width:2em;height:1em;border:1px solid rgba(0,0,0,.1);border-radius:1em;box-sizing:content-box;background-color:#fff;transition:background-color .3s}.van-switch__node{top:0;left:0;position:absolute;border-radius:100%;width:1em;height:1em;z-index:1;transition:.3s;box-shadow:0 3px 1px 0 rgba(0,0,0,.05),0 2px 2px 0 rgba(0,0,0,.1),0 3px 3px 0 rgba(0,0,0,.05);background-color:#fff}.van-switch__loading{top:25%;left:25%;position:absolute!important}.van-switch--on{background-color:#1989fa}.van-switch--on .van-switch__node{-webkit-transform:translateX(1em);transform:translateX(1em)}.van-switch--disabled{opacity:.4} -------------------------------------------------------------------------------- /static/vant/nav-bar/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-nav-bar{position:relative;height:44px;line-height:44px;text-align:center;background-color:#fff;-webkit-user-select:none;user-select:none}.van-nav-bar__text{display:inline-block;padding:0 15px;margin:0 -15px;color:#1989fa;vertical-align:middle}.van-nav-bar__text--hover{background-color:#f2f3f5}.van-nav-bar__arrow{color:#1989fa;vertical-align:middle}.van-nav-bar__arrow+.van-nav-bar__text{padding-left:25px;margin-left:-20px}.van-nav-bar--fixed{position:fixed;top:0;left:0;width:100%}.van-nav-bar__title{max-width:60%;margin:0 auto;font-size:16px;font-weight:500}.van-nav-bar__left,.van-nav-bar__right{position:absolute;bottom:0;font-size:14px}.van-nav-bar__left{left:15px}.van-nav-bar__right{right:15px} -------------------------------------------------------------------------------- /static/vant/toast/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | props: { 4 | show: Boolean, 5 | mask: Boolean, 6 | message: String, 7 | forbidClick: Boolean, 8 | zIndex: { 9 | type: Number, 10 | value: 1000 11 | }, 12 | type: { 13 | type: String, 14 | value: 'text' 15 | }, 16 | loadingType: { 17 | type: String, 18 | value: 'circular' 19 | }, 20 | position: { 21 | type: String, 22 | value: 'middle' 23 | } 24 | }, 25 | methods: { 26 | // for prevent touchmove 27 | noop() { } 28 | } 29 | }); 30 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/mixins/observer/props.js: -------------------------------------------------------------------------------- 1 | export function observeProps(props) { 2 | if (!props) { 3 | return; 4 | } 5 | 6 | Object.keys(props).forEach(function (key) { 7 | var prop = props[key]; 8 | 9 | if (prop === null || !('type' in prop)) { 10 | prop = { 11 | type: prop 12 | }; 13 | } 14 | 15 | var _prop = prop, 16 | observer = _prop.observer; 17 | 18 | prop.observer = function () { 19 | if (observer) { 20 | if (typeof observer === 'string') { 21 | observer = this[observer]; 22 | } 23 | 24 | observer.apply(this, arguments); 25 | } 26 | 27 | this.set(); 28 | }; 29 | 30 | props[key] = prop; 31 | }); 32 | } -------------------------------------------------------------------------------- /project.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "项目配置文件。", 3 | "setting": { 4 | "urlCheck": false, 5 | "es6": true, 6 | "postcss": true, 7 | "minified": true, 8 | "newFeature": true, 9 | "autoAudits": false 10 | }, 11 | "miniprogramRoot": "dist/wx/", 12 | "compileType": "miniprogram", 13 | "appid": "wxea4707081907fd91", 14 | "projectname": "vantweappmpvuedemp", 15 | "simulatorType": "wechat", 16 | "simulatorPluginLibVersion": {}, 17 | "condition": { 18 | "search": { 19 | "current": -1, 20 | "list": [] 21 | }, 22 | "conversation": { 23 | "current": -1, 24 | "list": [] 25 | }, 26 | "game": { 27 | "currentL": -1, 28 | "list": [] 29 | }, 30 | "miniprogram": { 31 | "current": -1, 32 | "list": [] 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/mixins/open-type.js: -------------------------------------------------------------------------------- 1 | export var openType = Behavior({ 2 | properties: { 3 | openType: String 4 | }, 5 | methods: { 6 | bindGetUserInfo: function bindGetUserInfo(event) { 7 | this.$emit('getuserinfo', event.detail); 8 | }, 9 | bindContact: function bindContact(event) { 10 | this.$emit('contact', event.detail); 11 | }, 12 | bindGetPhoneNumber: function bindGetPhoneNumber(event) { 13 | this.$emit('getphonenumber', event.detail); 14 | }, 15 | bindOpenSetting: function bindOpenSetting(event) { 16 | this.$emit('opensetting', event.detail); 17 | }, 18 | bindError: function bindError(event) { 19 | this.$emit('error', event.detail); 20 | } 21 | } 22 | }); -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/App.vue: -------------------------------------------------------------------------------- 1 | 13 | 14 | 32 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/switch-cell/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | 10 | 11 | 12 | 13 | 19 | 20 | 21 | 22 | 23 | 24 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/nav-bar/index.wxss: -------------------------------------------------------------------------------- 1 | @import '../common/index.wxss';.van-nav-bar{height:46px;position:relative;-webkit-user-select:none;user-select:none;text-align:center;line-height:46px;background-color:#fff}.van-nav-bar__arrow{color:#1989fa;vertical-align:middle}.van-nav-bar__arrow+.van-nav-bar__text{margin-left:-20px;padding-left:25px}.van-nav-bar--fixed{top:0;left:0;width:100%;position:fixed}.van-nav-bar__title{margin:0 auto;max-width:60%;font-size:16px;font-weight:500}.van-nav-bar__left,.van-nav-bar__right{bottom:0;font-size:14px;position:absolute}.van-nav-bar__left{left:15px}.van-nav-bar__right{right:15px}.van-nav-bar__text{color:#1989fa;margin:0 -15px;padding:0 15px;display:inline-block;vertical-align:middle}.van-nav-bar__text:active{background-color:#e8e8e8} -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/toast/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | props: { 4 | show: Boolean, 5 | mask: Boolean, 6 | message: String, 7 | forbidClick: Boolean, 8 | zIndex: { 9 | type: Number, 10 | value: 1000 11 | }, 12 | type: { 13 | type: String, 14 | value: 'text' 15 | }, 16 | loadingType: { 17 | type: String, 18 | value: 'circular' 19 | }, 20 | position: { 21 | type: String, 22 | value: 'middle' 23 | } 24 | }, 25 | methods: { 26 | clear: function clear() { 27 | this.set({ 28 | show: false 29 | }); 30 | }, 31 | // for prevent touchmove 32 | noop: function noop() {} 33 | } 34 | }); -------------------------------------------------------------------------------- /static/vant/mixins/basic.js: -------------------------------------------------------------------------------- 1 | export const basic = Behavior({ 2 | methods: { 3 | $emit(...args) { 4 | this.triggerEvent(...args); 5 | }, 6 | getRect(selector, all) { 7 | return new Promise(resolve => { 8 | wx.createSelectorQuery() 9 | .in(this)[all ? 'selectAll' : 'select'](selector) 10 | .boundingClientRect(rect => { 11 | if (all && Array.isArray(rect) && rect.length) { 12 | resolve(rect); 13 | } 14 | if (!all && rect) { 15 | resolve(rect); 16 | } 17 | }) 18 | .exec(); 19 | }); 20 | } 21 | } 22 | }); 23 | -------------------------------------------------------------------------------- /static/vant/switch-cell/index.wxml: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 25 | 26 | -------------------------------------------------------------------------------- /static/vant/checkbox/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /static/vant/mixins/open-type.js: -------------------------------------------------------------------------------- 1 | export const openType = Behavior({ 2 | properties: { 3 | openType: String 4 | }, 5 | methods: { 6 | bindGetUserInfo(event) { 7 | this.$emit('getuserinfo', event.detail); 8 | }, 9 | bindContact(event) { 10 | this.$emit('contact', event.detail); 11 | }, 12 | bindGetPhoneNumber(event) { 13 | this.$emit('getphonenumber', event.detail); 14 | }, 15 | bindError(event) { 16 | this.$emit('error', event.detail); 17 | }, 18 | bindLaunchApp(event) { 19 | this.$emit('launchapp', event.detail); 20 | }, 21 | bindOpenSetting(event) { 22 | this.$emit('opensetting', event.detail); 23 | }, 24 | } 25 | }); 26 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/src/pages/notice-bar/index.vue: -------------------------------------------------------------------------------- 1 | 18 | 30 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/popup/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 11 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/button/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | import { button } from '../mixins/button'; 3 | import { openType } from '../mixins/open-type'; 4 | VantComponent({ 5 | classes: ['loading-class'], 6 | mixins: [button, openType], 7 | props: { 8 | plain: Boolean, 9 | block: Boolean, 10 | round: Boolean, 11 | square: Boolean, 12 | loading: Boolean, 13 | disabled: Boolean, 14 | type: { 15 | type: String, 16 | value: 'default' 17 | }, 18 | size: { 19 | type: String, 20 | value: 'normal' 21 | } 22 | }, 23 | methods: { 24 | onClick: function onClick() { 25 | if (!this.data.disabled && !this.data.loading) { 26 | this.$emit('click'); 27 | } 28 | } 29 | } 30 | }); -------------------------------------------------------------------------------- /static/vant/nav-bar/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | import { safeArea } from '../mixins/safe-area'; 3 | VantComponent({ 4 | mixins: [safeArea({ safeAreaInsetTop: true })], 5 | classes: ['title-class'], 6 | props: { 7 | title: String, 8 | fixed: Boolean, 9 | leftText: String, 10 | rightText: String, 11 | leftArrow: Boolean, 12 | border: { 13 | type: Boolean, 14 | value: true 15 | }, 16 | zIndex: { 17 | type: Number, 18 | value: 120 19 | } 20 | }, 21 | methods: { 22 | onClickLeft() { 23 | this.$emit('clickleft'); 24 | }, 25 | onClickRight() { 26 | this.$emit('clickright'); 27 | } 28 | } 29 | }); 30 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/checkbox/index.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/switch-cell/index.js: -------------------------------------------------------------------------------- 1 | import { VantComponent } from '../common/component'; 2 | VantComponent({ 3 | field: true, 4 | props: { 5 | title: String, 6 | border: Boolean, 7 | checked: Boolean, 8 | loading: Boolean, 9 | disabled: Boolean, 10 | activeColor: String, 11 | inactiveColor: String, 12 | size: { 13 | type: String, 14 | value: '24px' 15 | } 16 | }, 17 | watch: { 18 | checked: function checked(value) { 19 | this.set({ 20 | value: value 21 | }); 22 | } 23 | }, 24 | created: function created() { 25 | this.set({ 26 | value: this.data.checked 27 | }); 28 | }, 29 | methods: { 30 | onChange: function onChange(event) { 31 | this.$emit('change', event.detail); 32 | } 33 | } 34 | }); -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/mixins/touch.js: -------------------------------------------------------------------------------- 1 | export var touch = Behavior({ 2 | methods: { 3 | touchStart: function touchStart(event) { 4 | this.direction = ''; 5 | this.deltaX = 0; 6 | this.deltaY = 0; 7 | this.offsetX = 0; 8 | this.offsetY = 0; 9 | this.startX = event.touches[0].clientX; 10 | this.startY = event.touches[0].clientY; 11 | }, 12 | touchMove: function touchMove(event) { 13 | var touch = event.touches[0]; 14 | this.deltaX = touch.clientX - this.startX; 15 | this.deltaY = touch.clientY - this.startY; 16 | this.offsetX = Math.abs(this.deltaX); 17 | this.offsetY = Math.abs(this.deltaY); 18 | this.direction = this.offsetX > this.offsetY ? 'horizontal' : this.offsetX < this.offsetY ? 'vertical' : ''; 19 | } 20 | } 21 | }); -------------------------------------------------------------------------------- /src/components/mybr/mybr.vue: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 16 | 17 | 18 | 47 | 48 | 49 | 52 | -------------------------------------------------------------------------------- /static/vant/notify/notify.js: -------------------------------------------------------------------------------- 1 | import { isObj } from '../common/utils'; 2 | const defaultOptions = { 3 | selector: '#van-notify', 4 | duration: 3000 5 | }; 6 | function parseOptions(text) { 7 | return isObj(text) ? text : { text }; 8 | } 9 | function getContext() { 10 | const pages = getCurrentPages(); 11 | return pages[pages.length - 1]; 12 | } 13 | export default function Notify(options) { 14 | options = Object.assign({}, defaultOptions, parseOptions(options)); 15 | const context = options.context || getContext(); 16 | const notify = context.selectComponent(options.selector); 17 | delete options.selector; 18 | if (notify) { 19 | notify.set(options); 20 | notify.show(); 21 | } 22 | else { 23 | console.warn('未找到 van-notify 节点,请确认 selector 及 context 是否正确'); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /_参考源码/源码1/code/hello-mpvue-vantweapp/static/vant/cell/index.js: -------------------------------------------------------------------------------- 1 | import { link } from '../mixins/link'; 2 | import { VantComponent } from '../common/component'; 3 | VantComponent({ 4 | classes: ['title-class', 'label-class', 'value-class', 'right-icon-class'], 5 | mixins: [link], 6 | props: { 7 | title: null, 8 | value: null, 9 | icon: String, 10 | size: String, 11 | label: String, 12 | center: Boolean, 13 | isLink: Boolean, 14 | required: Boolean, 15 | clickable: Boolean, 16 | titleWidth: String, 17 | customStyle: String, 18 | arrowDirection: String, 19 | border: { 20 | type: Boolean, 21 | value: true 22 | } 23 | }, 24 | methods: { 25 | onClick: function onClick(event) { 26 | this.$emit('click', event.detail); 27 | this.jumpLink(); 28 | } 29 | } 30 | }); --------------------------------------------------------------------------------