├── miniprogram
├── app.wxss
├── components
│ ├── dist
│ │ ├── common
│ │ │ ├── style
│ │ │ │ ├── theme.wxss
│ │ │ │ ├── var.wxss
│ │ │ │ ├── mixins
│ │ │ │ │ ├── clearfix.wxss
│ │ │ │ │ ├── ellipsis.wxss
│ │ │ │ │ └── hairline.wxss
│ │ │ │ ├── clearfix.wxss
│ │ │ │ ├── ellipsis.wxss
│ │ │ │ └── hairline.wxss
│ │ │ ├── version.d.ts
│ │ │ ├── color.js
│ │ │ ├── component.d.ts
│ │ │ ├── color.d.ts
│ │ │ ├── validator.d.ts
│ │ │ ├── version.js
│ │ │ ├── utils.d.ts
│ │ │ ├── validator.js
│ │ │ └── index.wxss
│ │ ├── area
│ │ │ ├── index.d.ts
│ │ │ ├── index.wxss
│ │ │ ├── index.json
│ │ │ └── index.wxml
│ │ ├── card
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ └── index.js
│ │ ├── cell
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.js
│ │ │ └── index.wxml
│ │ ├── col
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ └── index.js
│ │ ├── grid
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxss
│ │ │ ├── index.wxml
│ │ │ └── index.js
│ │ ├── icon
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.js
│ │ │ └── index.wxml
│ │ ├── info
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.js
│ │ │ ├── index.wxml
│ │ │ └── index.wxss
│ │ ├── rate
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxss
│ │ │ └── index.wxml
│ │ ├── row
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxss
│ │ │ ├── index.wxml
│ │ │ └── index.js
│ │ ├── tab
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ ├── index.wxss
│ │ │ └── index.js
│ │ ├── tabs
│ │ │ ├── index.d.ts
│ │ │ └── index.json
│ │ ├── tag
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.js
│ │ │ └── index.wxml
│ │ ├── button
│ │ │ ├── index.d.ts
│ │ │ └── index.json
│ │ ├── calendar
│ │ │ ├── index.d.ts
│ │ │ ├── components
│ │ │ │ ├── header
│ │ │ │ │ ├── index.d.ts
│ │ │ │ │ ├── index.json
│ │ │ │ │ ├── index.js
│ │ │ │ │ ├── index.wxml
│ │ │ │ │ └── index.wxss
│ │ │ │ └── month
│ │ │ │ │ ├── index.d.ts
│ │ │ │ │ └── index.json
│ │ │ ├── index.json
│ │ │ ├── utils.wxs
│ │ │ ├── utils.d.ts
│ │ │ ├── index.wxs
│ │ │ ├── index.wxss
│ │ │ └── index.wxml
│ │ ├── checkbox
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxs
│ │ │ └── index.wxml
│ │ ├── circle
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── canvas.d.ts
│ │ │ ├── index.wxss
│ │ │ ├── index.wxml
│ │ │ └── canvas.js
│ │ ├── collapse
│ │ │ ├── index.d.ts
│ │ │ ├── index.wxss
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ └── index.js
│ │ ├── definitions
│ │ │ ├── index.js
│ │ │ ├── weapp.js
│ │ │ └── index.d.ts
│ │ ├── dialog
│ │ │ ├── index.d.ts
│ │ │ └── index.json
│ │ ├── divider
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ ├── index.js
│ │ │ └── index.wxss
│ │ ├── empty
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.js
│ │ │ ├── index.wxml
│ │ │ └── index.wxss
│ │ ├── field
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxs
│ │ │ ├── props.js
│ │ │ └── props.d.ts
│ │ ├── grid-item
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ └── index.wxss
│ │ ├── image
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ └── index.wxss
│ │ ├── index-bar
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxss
│ │ │ └── index.wxml
│ │ ├── loading
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.js
│ │ │ └── index.wxml
│ │ ├── nav-bar
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxs
│ │ │ ├── index.wxss
│ │ │ ├── index.js
│ │ │ └── index.wxml
│ │ ├── notify
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ ├── notify.d.ts
│ │ │ ├── index.wxss
│ │ │ ├── notify.js
│ │ │ └── index.js
│ │ ├── overlay
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxss
│ │ │ ├── index.wxml
│ │ │ └── index.js
│ │ ├── panel
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.js
│ │ │ ├── index.wxss
│ │ │ └── index.wxml
│ │ ├── picker
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── shared.js
│ │ │ ├── shared.d.ts
│ │ │ └── toolbar.wxml
│ │ ├── popup
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ └── index.wxml
│ │ ├── progress
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxs
│ │ │ ├── index.js
│ │ │ ├── index.wxml
│ │ │ └── index.wxss
│ │ ├── radio-group
│ │ │ ├── index.wxml
│ │ │ ├── index.d.ts
│ │ │ ├── index.wxss
│ │ │ ├── index.json
│ │ │ └── index.js
│ │ ├── radio
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.js
│ │ │ └── index.wxml
│ │ ├── search
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ └── index.wxss
│ │ ├── sidebar
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ ├── index.wxss
│ │ │ └── index.js
│ │ ├── skeleton
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ ├── index.js
│ │ │ └── index.wxss
│ │ ├── slider
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxs
│ │ │ ├── index.wxml
│ │ │ └── index.wxss
│ │ ├── stepper
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ └── index.wxml
│ │ ├── steps
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ └── index.js
│ │ ├── sticky
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxss
│ │ │ ├── index.wxml
│ │ │ └── index.wxs
│ │ ├── switch
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ └── index.js
│ │ ├── tabbar
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ ├── index.wxss
│ │ │ └── index.js
│ │ ├── toast
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.js
│ │ │ ├── index.wxml
│ │ │ └── index.wxss
│ │ ├── uploader
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── shared.js
│ │ │ ├── shared.d.ts
│ │ │ └── utils.d.ts
│ │ ├── action-sheet
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ └── index.js
│ │ ├── cell-group
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.js
│ │ │ ├── index.wxml
│ │ │ └── index.wxss
│ │ ├── checkbox-group
│ │ │ ├── index.d.ts
│ │ │ ├── index.wxml
│ │ │ ├── index.wxss
│ │ │ ├── index.json
│ │ │ └── index.js
│ │ ├── collapse-item
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ └── index.wxss
│ │ ├── count-down
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ ├── index.wxss
│ │ │ └── utils.d.ts
│ │ ├── dropdown-item
│ │ │ ├── index.d.ts
│ │ │ ├── shared.js
│ │ │ ├── shared.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxss
│ │ │ └── index.wxml
│ │ ├── dropdown-menu
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxs
│ │ │ ├── index.wxml
│ │ │ └── index.wxss
│ │ ├── goods-action
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ ├── index.wxss
│ │ │ └── index.js
│ │ ├── index-anchor
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ ├── index.wxss
│ │ │ └── index.js
│ │ ├── notice-bar
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ └── index.wxss
│ │ ├── picker-column
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxs
│ │ │ ├── index.wxss
│ │ │ └── index.wxml
│ │ ├── share-sheet
│ │ │ ├── index.d.ts
│ │ │ ├── options.d.ts
│ │ │ ├── options.json
│ │ │ ├── index.json
│ │ │ ├── index.wxs
│ │ │ ├── options.wxs
│ │ │ ├── options.js
│ │ │ ├── options.wxml
│ │ │ ├── index.wxss
│ │ │ ├── options.wxss
│ │ │ ├── index.js
│ │ │ └── index.wxml
│ │ ├── sidebar-item
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ ├── index.js
│ │ │ └── index.wxss
│ │ ├── submit-bar
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ └── index.js
│ │ ├── swipe-cell
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxss
│ │ │ └── index.wxml
│ │ ├── tabbar-item
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxss
│ │ │ ├── index.wxml
│ │ │ └── index.js
│ │ ├── transition
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ └── index.js
│ │ ├── tree-select
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxs
│ │ │ ├── index.wxss
│ │ │ └── index.wxml
│ │ ├── datetime-picker
│ │ │ ├── index.d.ts
│ │ │ ├── index.wxss
│ │ │ ├── index.json
│ │ │ └── index.wxml
│ │ ├── goods-action-button
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.wxml
│ │ │ ├── index.js
│ │ │ └── index.wxss
│ │ ├── goods-action-icon
│ │ │ ├── index.d.ts
│ │ │ ├── index.json
│ │ │ ├── index.js
│ │ │ ├── index.wxss
│ │ │ └── index.wxml
│ │ ├── mixins
│ │ │ ├── link.d.ts
│ │ │ ├── basic.d.ts
│ │ │ ├── button.d.ts
│ │ │ ├── touch.d.ts
│ │ │ ├── open-type.d.ts
│ │ │ ├── transition.d.ts
│ │ │ ├── page-scroll.d.ts
│ │ │ ├── link.js
│ │ │ ├── button.js
│ │ │ ├── open-type.js
│ │ │ ├── basic.js
│ │ │ ├── touch.js
│ │ │ └── page-scroll.js
│ │ └── wxs
│ │ │ ├── array.wxs
│ │ │ ├── utils.wxs
│ │ │ ├── add-unit.wxs
│ │ │ ├── object.wxs
│ │ │ ├── bem.wxs
│ │ │ └── memoize.wxs
│ └── add-tips
│ │ ├── index.json
│ │ ├── assets
│ │ └── fav-1.jpg
│ │ ├── index.wxml
│ │ └── index.js
├── .DS_Store
├── images
│ ├── demo.png
│ ├── .DS_Store
│ ├── icon
│ │ ├── 11.png
│ │ ├── jd.png
│ │ ├── wx.png
│ │ ├── all.png
│ │ ├── didi.jpg
│ │ ├── ele.png
│ │ ├── vip.png
│ │ ├── .DS_Store
│ │ └── meituan.png
│ └── coupon-banner
│ │ ├── 11.jpg
│ │ ├── ele.png
│ │ ├── jd.png
│ │ ├── vip.png
│ │ ├── meituan.png
│ │ ├── ele_banner.png
│ │ ├── ele_guosu.png
│ │ ├── vip_banner.png
│ │ ├── sanzhisongshu.png
│ │ └── meituan_banner.png
├── sitemap.json
├── package.json
├── app.json
├── pages
│ └── index
│ │ └── index.json
└── app.js
├── .gitignore
├── .DS_Store
├── IMG_7326.PNG
├── IMG_7327.JPG
└── db
├── notice.json
└── share-message.json
/miniprogram/app.wxss:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | vant-weapp
2 | node_modules
--------------------------------------------------------------------------------
/miniprogram/components/dist/common/style/theme.wxss:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/common/style/var.wxss:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/area/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/card/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/cell/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/col/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/grid/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/icon/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/info/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/rate/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/row/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/tab/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/tabs/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/tag/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/button/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/calendar/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/checkbox/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/circle/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/collapse/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/common/style/mixins/clearfix.wxss:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/common/style/mixins/ellipsis.wxss:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/common/style/mixins/hairline.wxss:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/definitions/index.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/definitions/weapp.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/dialog/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/divider/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/empty/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/field/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/grid-item/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/image/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/index-bar/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/loading/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/nav-bar/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/notify/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/overlay/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/panel/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/picker/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/popup/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/progress/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/radio-group/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/radio/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/search/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/sidebar/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/skeleton/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/slider/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/stepper/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/steps/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/sticky/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/switch/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/tabbar/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/toast/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/uploader/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/action-sheet/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/cell-group/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/checkbox-group/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/checkbox-group/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/collapse-item/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/count-down/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/dropdown-item/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/dropdown-item/shared.js:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/dropdown-menu/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/goods-action/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/index-anchor/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/notice-bar/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/picker-column/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/radio-group/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/share-sheet/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/share-sheet/options.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/sidebar-item/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/submit-bar/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/swipe-cell/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/tabbar-item/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/transition/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/tree-select/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/datetime-picker/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/goods-action-button/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/goods-action-icon/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/.DS_Store
--------------------------------------------------------------------------------
/miniprogram/components/dist/area/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';
--------------------------------------------------------------------------------
/miniprogram/components/dist/col/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/collapse/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';
--------------------------------------------------------------------------------
/miniprogram/components/dist/row/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/tab/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/IMG_7326.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/IMG_7326.PNG
--------------------------------------------------------------------------------
/IMG_7327.JPG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/IMG_7327.JPG
--------------------------------------------------------------------------------
/miniprogram/components/dist/calendar/components/header/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/calendar/components/month/index.d.ts:
--------------------------------------------------------------------------------
1 | export {};
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/circle/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/collapse/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/grid/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/info/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/loading/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/mixins/link.d.ts:
--------------------------------------------------------------------------------
1 | export declare const link: string;
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/progress/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/radio-group/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';
--------------------------------------------------------------------------------
/miniprogram/components/dist/sidebar/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/slider/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/stepper/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/sticky/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/tabbar/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/cell-group/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/checkbox-group/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';
--------------------------------------------------------------------------------
/miniprogram/components/dist/count-down/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/datetime-picker/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';
--------------------------------------------------------------------------------
/miniprogram/components/dist/dropdown-menu/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/goods-action/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/index-anchor/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/index-bar/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/mixins/basic.d.ts:
--------------------------------------------------------------------------------
1 | export declare const basic: string;
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/mixins/button.d.ts:
--------------------------------------------------------------------------------
1 | export declare const button: string;
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/mixins/touch.d.ts:
--------------------------------------------------------------------------------
1 | export declare const touch: string;
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/picker-column/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/radio-group/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/share-sheet/options.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/swipe-cell/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/transition/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/db/notice.json:
--------------------------------------------------------------------------------
1 | {"_id":"2a7b532a5fc07e1a006dd39159d35aa0","notice":"不止有外卖优惠券哦,多看看,有惊喜~"}
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/checkbox-group/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/mixins/open-type.d.ts:
--------------------------------------------------------------------------------
1 | export declare const openType: string;
2 |
--------------------------------------------------------------------------------
/miniprogram/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/.DS_Store
--------------------------------------------------------------------------------
/miniprogram/components/add-tips/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
--------------------------------------------------------------------------------
/miniprogram/components/dist/calendar/components/header/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/calendar/components/month/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/empty/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
--------------------------------------------------------------------------------
/miniprogram/components/dist/common/style/clearfix.wxss:
--------------------------------------------------------------------------------
1 | .van-clearfix:after{display:table;clear:both;content:""}
--------------------------------------------------------------------------------
/miniprogram/components/dist/divider/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
5 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/skeleton/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
5 |
--------------------------------------------------------------------------------
/miniprogram/images/demo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/demo.png
--------------------------------------------------------------------------------
/miniprogram/components/dist/sidebar/index.wxml:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/miniprogram/images/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/.DS_Store
--------------------------------------------------------------------------------
/miniprogram/images/icon/11.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/icon/11.png
--------------------------------------------------------------------------------
/miniprogram/images/icon/jd.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/icon/jd.png
--------------------------------------------------------------------------------
/miniprogram/images/icon/wx.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/icon/wx.png
--------------------------------------------------------------------------------
/miniprogram/images/icon/all.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/icon/all.png
--------------------------------------------------------------------------------
/miniprogram/images/icon/didi.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/icon/didi.jpg
--------------------------------------------------------------------------------
/miniprogram/images/icon/ele.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/icon/ele.png
--------------------------------------------------------------------------------
/miniprogram/images/icon/vip.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/icon/vip.png
--------------------------------------------------------------------------------
/miniprogram/components/dist/mixins/transition.d.ts:
--------------------------------------------------------------------------------
1 | export declare function transition(showDefaultValue: boolean): string;
2 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/row/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-row:after{display:table;clear:both;content:""}
--------------------------------------------------------------------------------
/miniprogram/images/icon/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/icon/.DS_Store
--------------------------------------------------------------------------------
/miniprogram/images/icon/meituan.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/icon/meituan.png
--------------------------------------------------------------------------------
/miniprogram/components/dist/row/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/sidebar/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-sidebar{width:80px;width:var(--sidebar-width,80px)}
--------------------------------------------------------------------------------
/miniprogram/images/coupon-banner/11.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/coupon-banner/11.jpg
--------------------------------------------------------------------------------
/miniprogram/images/coupon-banner/ele.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/coupon-banner/ele.png
--------------------------------------------------------------------------------
/miniprogram/images/coupon-banner/jd.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/coupon-banner/jd.png
--------------------------------------------------------------------------------
/miniprogram/images/coupon-banner/vip.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/coupon-banner/vip.png
--------------------------------------------------------------------------------
/miniprogram/components/dist/grid/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-grid{position:relative;box-sizing:border-box;overflow:hidden}
--------------------------------------------------------------------------------
/miniprogram/images/coupon-banner/meituan.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/coupon-banner/meituan.png
--------------------------------------------------------------------------------
/miniprogram/components/dist/card/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-tag": "../tag/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/cell/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-icon": "../icon/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/icon/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-info": "../info/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/panel/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-cell": "../cell/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/radio/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-icon": "../icon/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/rate/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-icon": "../icon/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/steps/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-icon": "../icon/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/tag/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-icon": "../icon/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/images/coupon-banner/ele_banner.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/coupon-banner/ele_banner.png
--------------------------------------------------------------------------------
/miniprogram/images/coupon-banner/ele_guosu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/coupon-banner/ele_guosu.png
--------------------------------------------------------------------------------
/miniprogram/images/coupon-banner/vip_banner.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/coupon-banner/vip_banner.png
--------------------------------------------------------------------------------
/miniprogram/components/add-tips/assets/fav-1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/components/add-tips/assets/fav-1.jpg
--------------------------------------------------------------------------------
/miniprogram/components/dist/area/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-picker": "../picker/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/checkbox/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-icon": "../icon/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/grid-item/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-icon": "../icon/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/nav-bar/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-icon": "../icon/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/notice-bar/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-icon": "../icon/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/search/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-field": "../field/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/images/coupon-banner/sanzhisongshu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/coupon-banner/sanzhisongshu.png
--------------------------------------------------------------------------------
/miniprogram/components/dist/collapse-item/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-cell": "../cell/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/common/version.d.ts:
--------------------------------------------------------------------------------
1 | export declare function canIUseModel(): boolean;
2 | export declare function canIUseFormFieldButton(): boolean;
3 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/dropdown-item/shared.d.ts:
--------------------------------------------------------------------------------
1 | export interface Option {
2 | text: string;
3 | value: string | number;
4 | icon: string;
5 | }
6 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/sidebar-item/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-info": "../info/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/sticky/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-sticky{position:relative}.van-sticky-wrap--fixed{position:fixed;right:0;left:0}
--------------------------------------------------------------------------------
/miniprogram/components/dist/switch/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-loading": "../loading/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/images/coupon-banner/meituan_banner.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hotuns/miniapp-coupons/HEAD/miniprogram/images/coupon-banner/meituan_banner.png
--------------------------------------------------------------------------------
/miniprogram/components/dist/collapse/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/datetime-picker/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-picker": "../picker/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/notify/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-transition": "../transition/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/overlay/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-transition": "../transition/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/goods-action-button/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-button": "../button/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/wxs/array.wxs:
--------------------------------------------------------------------------------
1 | function isArray(array) {
2 | return array && array.constructor === 'Array';
3 | }
4 |
5 | module.exports.isArray = isArray;
6 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/progress/index.wxs:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | text: function(pivotText, percentage) {
3 | return pivotText || percentage + '%';
4 | }
5 | };
6 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/count-down/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 | {{ formattedTime }}
4 |
5 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/grid/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/field/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-cell": "../cell/index",
5 | "van-icon": "../icon/index"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/share-sheet/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-popup": "../popup/index",
5 | "options": "./options"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/tabs/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-info": "../info/index",
5 | "van-sticky": "../sticky/index"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/button/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-icon": "../icon/index",
5 | "van-loading": "../loading/index"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/image/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-icon": "../icon/index",
5 | "van-loading": "../loading/index"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/popup/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-icon": "../icon/index",
5 | "van-overlay": "../overlay/index"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/submit-bar/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-button": "../button/index",
5 | "van-icon": "../icon/index"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/tabbar-item/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-icon": "../icon/index",
5 | "van-info": "../info/index"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/uploader/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-icon": "../icon/index",
5 | "van-loading": "../loading/index"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/goods-action-icon/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-icon": "../icon/index",
5 | "van-button": "../button/index"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/picker/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "picker-column": "../picker-column/index",
5 | "loading": "../loading/index"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram/sitemap.json:
--------------------------------------------------------------------------------
1 | {
2 | "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
3 | "rules": [{
4 | "action": "allow",
5 | "page": "*"
6 | }]
7 | }
--------------------------------------------------------------------------------
/miniprogram/components/dist/info/index.js:
--------------------------------------------------------------------------------
1 | import { VantComponent } from '../common/component';
2 | VantComponent({
3 | props: {
4 | dot: Boolean,
5 | info: null,
6 | customStyle: String,
7 | },
8 | });
9 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/goods-action/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/dropdown-item/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-popup": "../popup/index",
5 | "van-cell": "../cell/index",
6 | "van-icon": "../icon/index"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/overlay/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.7);background-color:var(--overlay-background-color,rgba(0,0,0,.7))}
--------------------------------------------------------------------------------
/miniprogram/components/dist/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 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/tree-select/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-icon": "../icon/index",
5 | "van-sidebar": "../sidebar/index",
6 | "van-sidebar-item": "../sidebar-item/index"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/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 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/col/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/count-down/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-count-down{color:#323233;color:var(--count-down-text-color,#323233);font-size:14px;font-size:var(--count-down-font-size,14px);line-height:20px;line-height:var(--count-down-line-height,20px)}
--------------------------------------------------------------------------------
/miniprogram/components/dist/cell-group/index.wxml:
--------------------------------------------------------------------------------
1 |
5 | {{ title }}
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/miniprogram/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "miniprogram",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "app.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "",
10 | "license": "ISC"
11 | }
12 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/circle/canvas.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | declare type CanvasContext = WechatMiniprogram.CanvasContext;
3 | export declare function adaptor(
4 | ctx: CanvasContext & Record
5 | ): CanvasContext;
6 | export {};
7 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/common/color.js:
--------------------------------------------------------------------------------
1 | export const RED = '#ee0a24';
2 | export const BLUE = '#1989fa';
3 | export const WHITE = '#fff';
4 | export const GREEN = '#07c160';
5 | export const ORANGE = '#ff976a';
6 | export const GRAY = '#323233';
7 | export const GRAY_DARK = '#969799';
8 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/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 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/info/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 | {{ dot ? '' : info }}
8 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/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 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/tab/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/panel/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-panel{background:#fff;background:var(--panel-background-color,#fff)}.van-panel__header-value{color:#ee0a24;color:var(--panel-header-value-color,#ee0a24)}.van-panel__footer{padding:8px 16px;padding:var(--panel-footer-padding,8px 16px)}
--------------------------------------------------------------------------------
/miniprogram/components/dist/circle/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-circle{position:relative;display:inline-block;text-align:center}.van-circle__text{position:absolute;top:50%;left:0;width:100%;-webkit-transform:translateY(-50%);transform:translateY(-50%);color:#323233;color:var(--circle-text-color,#323233)}
--------------------------------------------------------------------------------
/miniprogram/components/dist/tab/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';:host{-webkit-flex-shrink:0;flex-shrink:0;width:100%}.van-tab__pane,:host{box-sizing:border-box}.van-tab__pane{overflow-y:auto;-webkit-overflow-scrolling:touch}.van-tab__pane--active{height:auto}.van-tab__pane--inactive{height:0;overflow:visible}
--------------------------------------------------------------------------------
/miniprogram/components/dist/dialog/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-popup": "../popup/index",
5 | "van-button": "../button/index",
6 | "van-goods-action": "../goods-action//index",
7 | "van-goods-action-button": "../goods-action-button/index"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/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 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/overlay/index.wxml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/wxs/utils.wxs:
--------------------------------------------------------------------------------
1 | /* eslint-disable */
2 | var bem = require('./bem.wxs').bem;
3 | var memoize = require('./memoize.wxs').memoize;
4 | var addUnit = require('./add-unit.wxs').addUnit;
5 |
6 | module.exports = {
7 | bem: memoize(bem),
8 | memoize: memoize,
9 | addUnit: addUnit
10 | };
11 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/tabbar/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/calendar/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "header": "./components/header/index",
5 | "month": "./components/month/index",
6 | "van-button": "../button/index",
7 | "van-popup": "../popup/index",
8 | "van-toast": "../toast/index"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/common/component.d.ts:
--------------------------------------------------------------------------------
1 | import { VantComponentOptions, CombinedComponentInstance } from '../definitions/index';
2 | declare function VantComponent(vantOptions?: VantComponentOptions>): void;
3 | export { VantComponent };
4 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/common/color.d.ts:
--------------------------------------------------------------------------------
1 | export declare const RED = "#ee0a24";
2 | export declare const BLUE = "#1989fa";
3 | export declare const WHITE = "#fff";
4 | export declare const GREEN = "#07c160";
5 | export declare const ORANGE = "#ff976a";
6 | export declare const GRAY = "#323233";
7 | export declare const GRAY_DARK = "#969799";
8 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/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{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical}.van-multi-ellipsis--l3{-webkit-line-clamp:3}
--------------------------------------------------------------------------------
/miniprogram/components/dist/share-sheet/index.wxs:
--------------------------------------------------------------------------------
1 | /* eslint-disable */
2 | function isMulti(options) {
3 | if (options == null || options[0] == null) {
4 | return false;
5 | }
6 |
7 | return "Array" === options.constructor && "Array" === options[0].constructor;
8 | }
9 |
10 | module.exports = {
11 | isMulti: isMulti
12 | };
13 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/wxs/add-unit.wxs:
--------------------------------------------------------------------------------
1 | /* eslint-disable */
2 | var REGEXP = getRegExp('^\d+(\.\d+)?$');
3 |
4 | function addUnit(value) {
5 | if (value == null) {
6 | return undefined;
7 | }
8 |
9 | return REGEXP.test('' + value) ? value + 'px' : value;
10 | }
11 |
12 | module.exports = {
13 | addUnit: addUnit
14 | };
15 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/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 |
--------------------------------------------------------------------------------
/miniprogram/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "pages": [
3 | "pages/index/index"
4 | ],
5 | "window": {
6 | "navigationBarTextStyle": "white",
7 | "navigationBarTitleText": "小程序名",
8 | "navigationBarBackgroundColor": "#0bb9b6",
9 | "backgroundColor": "#FFFFFF",
10 | "titleView": false
11 | },
12 | "sitemapLocation": "sitemap.json"
13 | }
--------------------------------------------------------------------------------
/miniprogram/components/dist/cell-group/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-cell-group__title{padding:16px 16px 8px;padding:var(--cell-group-title-padding,16px 16px 8px);font-size:14px;font-size:var(--cell-group-title-font-size,14px);line-height:16px;line-height:var(--cell-group-title-line-height,16px);color:#969799;color:var(--cell-group-title-color,#969799)}
--------------------------------------------------------------------------------
/miniprogram/components/dist/tree-select/index.wxs:
--------------------------------------------------------------------------------
1 | /* eslint-disable */
2 | var array = require('../wxs/array.wxs');
3 |
4 | function isActive (activeList, itemId) {
5 | if (array.isArray(activeList)) {
6 | return activeList.indexOf(itemId) > -1;
7 | }
8 |
9 | return activeList === itemId;
10 | }
11 |
12 | module.exports.isActive = isActive;
13 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/tabbar/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-tabbar{display:-webkit-flex;display:flex;box-sizing:initial;width:100%;height:50px;height:var(--tabbar-height,50px);background-color:#fff;background-color:var(--tabbar-background-color,#fff)}.van-tabbar--fixed{position:fixed;bottom:0;left:0}.van-tabbar--safe{padding-bottom:env(safe-area-inset-bottom)}
--------------------------------------------------------------------------------
/miniprogram/components/dist/transition/index.wxml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/miniprogram/pages/index/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "van-tab": "../../components/dist/tab/index",
4 | "van-tabs": "../../components/dist/tabs/index",
5 | "van-notice-bar": "../../components/dist/notice-bar/index",
6 | "van-loading": "../../components/dist/loading/index",
7 | "add-tips": "../../components/add-tips"
8 | }
9 | }
--------------------------------------------------------------------------------
/miniprogram/components/dist/mixins/page-scroll.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | declare type IPageScrollOption = WechatMiniprogram.Page.IPageScrollOption;
3 | declare type Scroller = (
4 | this: WechatMiniprogram.Component.TrivialInstance,
5 | event?: IPageScrollOption
6 | ) => void;
7 | export declare const pageScrollMixin: (scroller: Scroller) => string;
8 | export {};
9 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/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;-webkit-align-items:center;align-items:center;height:50px;height:var(--goods-action-height,50px);background-color:#fff;background-color:var(--goods-action-background-color,#fff)}.van-goods-action--safe{padding-bottom:env(safe-area-inset-bottom)}
--------------------------------------------------------------------------------
/miniprogram/components/dist/loading/index.js:
--------------------------------------------------------------------------------
1 | import { VantComponent } from '../common/component';
2 | VantComponent({
3 | props: {
4 | color: String,
5 | vertical: Boolean,
6 | type: {
7 | type: String,
8 | value: 'circular',
9 | },
10 | size: String,
11 | textSize: String,
12 | },
13 | data: {
14 | array12: Array.from({ length: 12 }),
15 | },
16 | });
17 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/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)}
--------------------------------------------------------------------------------
/miniprogram/components/dist/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 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/share-sheet/options.wxs:
--------------------------------------------------------------------------------
1 | /* eslint-disable */
2 | var PRESET_ICONS = ['qq', 'weibo', 'wechat', 'link', 'qrcode', 'poster'];
3 |
4 | function getIconURL(icon) {
5 | if (PRESET_ICONS.indexOf(icon) !== -1) {
6 | return 'https://img.yzcdn.cn/vant/share-icon-' + icon + '.png';
7 | }
8 |
9 | return icon;
10 | }
11 |
12 | module.exports = {
13 | getIconURL: getIconURL,
14 | };
15 |
--------------------------------------------------------------------------------
/db/share-message.json:
--------------------------------------------------------------------------------
1 | {"_id":"2a7b532a5fbce118005238b161a1edd0","imageUrl":"cloud://test-b602t.7465-test-b602t-1253275554/coupon-banenr/20201124215133.jpg","path":"/pages/index/index","title":"【无门槛】美团、饿了么大额满减"}
2 | {"_id":"2a7b532a5fbda5840057a0dd68f6fbfc","path":"/pages/index/index","title":"【每日可领】先领券,再下单,立省一半!","imageUrl":"cloud://test-b602t.7465-test-b602t-1253275554/coupon-banenr/a89637f2c503ea874117429dc6768e4c.jpg"}
3 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/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 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/divider/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/sticky/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/index-anchor/index.wxml:
--------------------------------------------------------------------------------
1 |
5 |
9 |
10 |
11 | {{ index }}
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/nav-bar/index.wxs:
--------------------------------------------------------------------------------
1 | /* eslint-disable */
2 | function barStyle(data) {
3 | var styles = [
4 | ['z-index', data.zIndex],
5 | ['padding-top', data.safeAreaInsetTop ? data.statusBarHeight + 'px' : 0],
6 | ];
7 |
8 | return styles
9 | .map(function (item) {
10 | return item.join(':');
11 | })
12 | .join(';');
13 | }
14 |
15 | module.exports = {
16 | barStyle: barStyle,
17 | };
18 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/calendar/components/header/index.js:
--------------------------------------------------------------------------------
1 | import { VantComponent } from '../../../common/component';
2 | VantComponent({
3 | props: {
4 | title: {
5 | type: String,
6 | value: '日期选择',
7 | },
8 | subtitle: String,
9 | showTitle: Boolean,
10 | showSubtitle: Boolean,
11 | },
12 | data: {
13 | weekdays: ['日', '一', '二', '三', '四', '五', '六'],
14 | },
15 | methods: {},
16 | });
17 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/count-down/utils.d.ts:
--------------------------------------------------------------------------------
1 | export declare type TimeData = {
2 | days: number;
3 | hours: number;
4 | minutes: number;
5 | seconds: number;
6 | milliseconds: number;
7 | };
8 | export declare function parseTimeData(time: number): TimeData;
9 | export declare function parseFormat(format: string, timeData: TimeData): string;
10 | export declare function isSameSecond(time1: number, time2: number): boolean;
11 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/dropdown-menu/index.wxs:
--------------------------------------------------------------------------------
1 | /* eslint-disable */
2 | function displayTitle(item) {
3 | if (item.title) {
4 | return item.title;
5 | }
6 |
7 | var match = item.options.filter(function(option) {
8 | return option.value === item.value;
9 | });
10 | var displayTitle = match.length ? match[0].text : '';
11 | return displayTitle;
12 | }
13 |
14 | module.exports = {
15 | displayTitle: displayTitle
16 | };
17 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/mixins/button.js:
--------------------------------------------------------------------------------
1 | export const button = Behavior({
2 | externalClasses: ['hover-class'],
3 | properties: {
4 | id: String,
5 | lang: String,
6 | businessId: Number,
7 | sessionFrom: String,
8 | sendMessageTitle: String,
9 | sendMessagePath: String,
10 | sendMessageImg: String,
11 | showMessageCard: Boolean,
12 | appParameter: String,
13 | ariaLabel: String,
14 | },
15 | });
16 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/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: 6,
16 | },
17 | itemHeight: {
18 | type: Number,
19 | value: 44,
20 | },
21 | };
22 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/rate/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-rate{display:-webkit-inline-flex;display:inline-flex;-webkit-user-select:none;user-select:none}.van-rate__item{position:relative;padding:0 2px;padding:0 var(--rate-horizontal-padding,2px)}.van-rate__icon{display:block;height:1em;font-size:20px;font-size:var(--rate-icon-size,20px)}.van-rate__icon--half{position:absolute;top:0;width:.5em;overflow:hidden;left:2px;left:var(--rate-horizontal-padding,2px)}
--------------------------------------------------------------------------------
/miniprogram/components/dist/share-sheet/options.js:
--------------------------------------------------------------------------------
1 | import { VantComponent } from '../common/component';
2 | VantComponent({
3 | props: {
4 | options: Array,
5 | showBorder: Boolean,
6 | },
7 | methods: {
8 | onSelect(event) {
9 | const { index } = event.currentTarget.dataset;
10 | const option = this.data.options[index];
11 | this.$emit('select', Object.assign(Object.assign({}, option), { index }));
12 | },
13 | },
14 | });
15 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/circle/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | {{ text }}
9 |
10 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/dropdown-item/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-dropdown-item{position:fixed;right:0;left:0;overflow:hidden}.van-dropdown-item__option{text-align:left}.van-dropdown-item__option--active .van-dropdown-item__icon,.van-dropdown-item__option--active .van-dropdown-item__title{color:#ee0a24;color:var(--dropdown-menu-option-active-color,#ee0a24)}.van-dropdown-item--up{top:0}.van-dropdown-item--down{bottom:0}.van-dropdown-item__icon{display:block;line-height:inherit}
--------------------------------------------------------------------------------
/miniprogram/components/dist/tag/index.js:
--------------------------------------------------------------------------------
1 | import { VantComponent } from '../common/component';
2 | VantComponent({
3 | props: {
4 | size: String,
5 | mark: Boolean,
6 | color: String,
7 | plain: Boolean,
8 | round: Boolean,
9 | textColor: String,
10 | type: {
11 | type: String,
12 | value: 'default',
13 | },
14 | closeable: Boolean,
15 | },
16 | methods: {
17 | onClose() {
18 | this.$emit('close');
19 | },
20 | },
21 | });
22 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/overlay/index.js:
--------------------------------------------------------------------------------
1 | import { VantComponent } from '../common/component';
2 | VantComponent({
3 | props: {
4 | show: Boolean,
5 | customStyle: String,
6 | duration: {
7 | type: null,
8 | value: 300,
9 | },
10 | zIndex: {
11 | type: Number,
12 | value: 1,
13 | },
14 | },
15 | methods: {
16 | onClick() {
17 | this.$emit('click');
18 | },
19 | // for prevent touchmove
20 | noop() {},
21 | },
22 | });
23 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/slider/index.wxs:
--------------------------------------------------------------------------------
1 | /* eslint-disable */
2 | var utils = require('../wxs/utils.wxs');
3 |
4 | function barStyle(barHeight, activeColor) {
5 | var styles = [['height', utils.addUnit(barHeight)]];
6 |
7 | if (activeColor) {
8 | styles.push(['background', activeColor]);
9 | }
10 |
11 | return styles
12 | .map(function (item) {
13 | return item.join(':');
14 | })
15 | .join(';');
16 | }
17 |
18 | module.exports = {
19 | barStyle: barStyle,
20 | };
21 |
--------------------------------------------------------------------------------
/miniprogram/app.js:
--------------------------------------------------------------------------------
1 | //app.js
2 | App({
3 | onLaunch: function () {
4 |
5 | if (!wx.cloud) {
6 | console.error('请使用 2.2.3 或以上的基础库以使用云能力')
7 | } else {
8 | wx.cloud.init({
9 | // env 参数说明:
10 | // env 参数决定接下来小程序发起的云开发调用(wx.cloud.xxx)会默认请求到哪个云环境的资源
11 | // 此处请填入环境 ID, 环境 ID 可打开云控制台查看
12 | // 如不填则使用默认环境(第一个创建的环境)
13 | env: 'test-9gfm8pvcba5c8c79',
14 | traceUser: true,
15 | })
16 | }
17 |
18 | this.globalData = {}
19 | }
20 | })
21 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/tag/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
14 |
15 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/picker-column/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-picker-column{overflow:hidden;text-align:center;color:#000;color:var(--picker-option-text-color,#000);font-size:16px;font-size:var(--picker-option-font-size,16px)}.van-picker-column__item{padding:0 5px}.van-picker-column__item--selected{font-weight:500;font-weight:var(--font-weight-bold,500);color:#323233;color:var(--picker-option-selected-text-color,#323233)}.van-picker-column__item--disabled{opacity:.3;opacity:var(--picker-option-disabled-opacity,.3)}
--------------------------------------------------------------------------------
/miniprogram/components/dist/switch/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/datetime-picker/index.wxml:
--------------------------------------------------------------------------------
1 |
17 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/field/index.wxs:
--------------------------------------------------------------------------------
1 | /* eslint-disable */
2 | var utils = require('../wxs/utils.wxs');
3 |
4 | function inputStyle(autosize) {
5 | if (autosize && autosize.constructor === 'Object') {
6 | var style = '';
7 | if (autosize.minHeight) {
8 | style += 'min-height:' + utils.addUnit(autosize.minHeight) + ';';
9 | }
10 | if (autosize.maxHeight) {
11 | style += 'max-height:' + utils.addUnit(autosize.maxHeight) + ';';
12 | }
13 | return style;
14 | }
15 |
16 | return '';
17 | }
18 |
19 | module.exports = {
20 | inputStyle: inputStyle
21 | };
22 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/index-bar/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-index-bar{position:relative}.van-index-bar__sidebar{position:fixed;top:50%;right:0;display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;text-align:center;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-user-select:none;user-select:none}.van-index-bar__index{font-weight:500;padding:0 4px 0 16px;padding:0 var(--padding-base,4px) 0 var(--padding-md,16px);font-size:10px;font-size:var(--index-bar-index-font-size,10px);line-height:14px;line-height:var(--index-bar-index-line-height,14px)}
--------------------------------------------------------------------------------
/miniprogram/components/dist/area/index.wxml:
--------------------------------------------------------------------------------
1 |
19 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/empty/index.js:
--------------------------------------------------------------------------------
1 | import { VantComponent } from '../common/component';
2 | const PRESETS = ['error', 'search', 'default', 'network'];
3 | VantComponent({
4 | props: {
5 | description: String,
6 | image: {
7 | type: String,
8 | value: 'default',
9 | },
10 | },
11 | created() {
12 | if (PRESETS.indexOf(this.data.image) !== -1) {
13 | this.setData({
14 | imageUrl: `https://img.yzcdn.cn/vant/empty-image-${this.data.image}.png`,
15 | });
16 | } else {
17 | this.setData({ imageUrl: this.data.image });
18 | }
19 | },
20 | });
21 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/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 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/calendar/components/header/index.wxml:
--------------------------------------------------------------------------------
1 |
17 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/panel/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
19 |
20 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/icon/index.js:
--------------------------------------------------------------------------------
1 | import { VantComponent } from '../common/component';
2 | VantComponent({
3 | props: {
4 | dot: Boolean,
5 | info: null,
6 | size: null,
7 | color: String,
8 | customStyle: String,
9 | classPrefix: {
10 | type: String,
11 | value: 'van-icon',
12 | },
13 | name: {
14 | type: String,
15 | observer(val) {
16 | this.setData({
17 | isImageName: val.indexOf('/') !== -1,
18 | });
19 | },
20 | },
21 | },
22 | methods: {
23 | onClick() {
24 | this.$emit('click');
25 | },
26 | },
27 | });
28 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/checkbox/index.wxs:
--------------------------------------------------------------------------------
1 | /* eslint-disable */
2 | var utils = require('../wxs/utils.wxs');
3 |
4 | function iconStyle(checkedColor, value, disabled, parentDisabled, iconSize) {
5 | var styles = [['font-size', utils.addUnit(iconSize)]];
6 | if (checkedColor && value && !disabled && !parentDisabled) {
7 | styles.push(['border-color', checkedColor]);
8 | styles.push(['background-color', checkedColor]);
9 | }
10 |
11 | return styles
12 | .map(function(item) {
13 | return item.join(':');
14 | })
15 | .join(';');
16 | }
17 |
18 | module.exports = {
19 | iconStyle: iconStyle
20 | };
21 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/notify/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
10 |
14 |
18 | {{ message }}
19 |
20 |
21 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/notify/notify.d.ts:
--------------------------------------------------------------------------------
1 | interface NotifyOptions {
2 | type?: 'primary' | 'success' | 'danger' | 'warning';
3 | color?: string;
4 | zIndex?: number;
5 | top?: number;
6 | message: string;
7 | context?: any;
8 | duration?: number;
9 | selector?: string;
10 | background?: string;
11 | safeAreaInsetTop?: boolean;
12 | onClick?: () => void;
13 | onOpened?: () => void;
14 | onClose?: () => void;
15 | }
16 | declare function Notify(options: NotifyOptions | string): any;
17 | declare namespace Notify {
18 | var clear: (options?: NotifyOptions | undefined) => void;
19 | }
20 | export default Notify;
21 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/icon/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
14 |
20 |
21 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/empty/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 | {{ description }}
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/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 | trackColor: String,
10 | showPivot: {
11 | type: Boolean,
12 | value: true,
13 | },
14 | color: {
15 | type: String,
16 | value: BLUE,
17 | },
18 | textColor: {
19 | type: String,
20 | value: '#fff',
21 | },
22 | strokeWidth: {
23 | type: null,
24 | value: 4,
25 | },
26 | },
27 | });
28 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/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 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/goods-action-icon/index.js:
--------------------------------------------------------------------------------
1 | import { VantComponent } from '../common/component';
2 | import { button } from '../mixins/button';
3 | import { link } from '../mixins/link';
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 | dot: Boolean,
11 | info: String,
12 | icon: String,
13 | disabled: Boolean,
14 | loading: Boolean,
15 | },
16 | methods: {
17 | onClick(event) {
18 | this.$emit('click', event.detail);
19 | this.jumpLink();
20 | },
21 | },
22 | });
23 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/index-anchor/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-index-anchor{padding:0 16px;padding:var(--index-anchor-padding,0 16px);color:#323233;color:var(--index-anchor-text-color,#323233);font-weight:500;font-weight:var(--index-anchor-font-weight,500);font-size:14px;font-size:var(--index-anchor-font-size,14px);line-height:32px;line-height:var(--index-anchor-line-height,32px);background-color:initial;background-color:var(--index-anchor-background-color,transparent)}.van-index-anchor--active{right:0;left:0;color:#07c160;color:var(--index-anchor-active-text-color,#07c160);background-color:#fff;background-color:var(--index-anchor-active-background-color,#fff)}
--------------------------------------------------------------------------------
/miniprogram/components/dist/index-bar/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
22 |
23 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/uploader/shared.js:
--------------------------------------------------------------------------------
1 | // props for choose image
2 | export const chooseImageProps = {
3 | sizeType: {
4 | type: Array,
5 | value: ['original', 'compressed'],
6 | },
7 | capture: {
8 | type: Array,
9 | value: ['album', 'camera'],
10 | },
11 | };
12 | // props for choose video
13 | export const chooseVideoProps = {
14 | capture: {
15 | type: Array,
16 | value: ['album', 'camera'],
17 | },
18 | compressed: {
19 | type: Boolean,
20 | value: true,
21 | },
22 | maxDuration: {
23 | type: Number,
24 | value: 60,
25 | },
26 | camera: {
27 | type: String,
28 | value: 'back',
29 | },
30 | };
31 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/col/index.js:
--------------------------------------------------------------------------------
1 | import { VantComponent } from '../common/component';
2 | VantComponent({
3 | relation: {
4 | name: 'row',
5 | type: 'ancestor',
6 | current: 'col',
7 | },
8 | props: {
9 | span: Number,
10 | offset: Number,
11 | },
12 | data: {
13 | viewStyle: '',
14 | },
15 | methods: {
16 | setGutter(gutter) {
17 | const padding = `${gutter / 2}px`;
18 | const viewStyle = gutter
19 | ? `padding-left: ${padding}; padding-right: ${padding};`
20 | : '';
21 | if (viewStyle !== this.data.viewStyle) {
22 | this.setData({ viewStyle });
23 | }
24 | },
25 | },
26 | });
27 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/common/validator.d.ts:
--------------------------------------------------------------------------------
1 | export declare function isFunction(val: unknown): val is Function;
2 | export declare function isPlainObject(
3 | val: unknown
4 | ): val is Record;
5 | export declare function isPromise(val: unknown): val is Promise;
6 | export declare function isDef(value: any): boolean;
7 | export declare function isObj(x: unknown): x is Record;
8 | export declare function isNumber(value: string): boolean;
9 | export declare function isBoolean(value: unknown): value is boolean;
10 | export declare function isImageUrl(url: string): boolean;
11 | export declare function isVideoUrl(url: string): boolean;
12 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/loading/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/sidebar-item/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
19 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/calendar/utils.wxs:
--------------------------------------------------------------------------------
1 | /* eslint-disable */
2 | function getMonthEndDay(year, month) {
3 | return 32 - getDate(year, month - 1, 32).getDate();
4 | }
5 |
6 | function compareMonth(date1, date2) {
7 | date1 = getDate(date1);
8 | date2 = getDate(date2);
9 |
10 | var year1 = date1.getFullYear();
11 | var year2 = date2.getFullYear();
12 | var month1 = date1.getMonth();
13 | var month2 = date2.getMonth();
14 |
15 | if (year1 === year2) {
16 | return month1 === month2 ? 0 : month1 > month2 ? 1 : -1;
17 | }
18 |
19 | return year1 > year2 ? 1 : -1;
20 | }
21 |
22 | module.exports = {
23 | getMonthEndDay: getMonthEndDay,
24 | compareMonth: compareMonth
25 | };
26 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/empty/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-empty{display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box;padding:32px 0}.van-empty__image{width:160px;height:160px}.van-empty__image:empty{display:none}.van-empty__image__img{width:100%;height:100%}.van-empty__image:not(:empty)+.van-empty__image{display:none}.van-empty__description{margin-top:16px;padding:0 60px;color:#969799;font-size:14px;line-height:20px}.van-empty__description:empty,.van-empty__description:not(:empty)+.van-empty__description{display:none}.van-empty__bottom{margin-top:24px}
--------------------------------------------------------------------------------
/miniprogram/components/dist/divider/index.js:
--------------------------------------------------------------------------------
1 | import { VantComponent } from '../common/component';
2 | VantComponent({
3 | props: {
4 | dashed: {
5 | type: Boolean,
6 | value: false,
7 | },
8 | hairline: {
9 | type: Boolean,
10 | value: false,
11 | },
12 | contentPosition: {
13 | type: String,
14 | value: '',
15 | },
16 | fontSize: {
17 | type: Number,
18 | value: '',
19 | },
20 | borderColor: {
21 | type: String,
22 | value: '',
23 | },
24 | textColor: {
25 | type: String,
26 | value: '',
27 | },
28 | customStyle: {
29 | type: String,
30 | value: '',
31 | },
32 | },
33 | });
34 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/swipe-cell/index.wxml:
--------------------------------------------------------------------------------
1 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/uploader/shared.d.ts:
--------------------------------------------------------------------------------
1 | export declare const chooseImageProps: {
2 | sizeType: {
3 | type: ArrayConstructor;
4 | value: string[];
5 | };
6 | capture: {
7 | type: ArrayConstructor;
8 | value: string[];
9 | };
10 | };
11 | export declare const chooseVideoProps: {
12 | capture: {
13 | type: ArrayConstructor;
14 | value: string[];
15 | };
16 | compressed: {
17 | type: BooleanConstructor;
18 | value: boolean;
19 | };
20 | maxDuration: {
21 | type: NumberConstructor;
22 | value: number;
23 | };
24 | camera: {
25 | type: StringConstructor;
26 | value: string;
27 | };
28 | };
29 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/mixins/open-type.js:
--------------------------------------------------------------------------------
1 | // @ts-nocheck
2 | export const openType = Behavior({
3 | properties: {
4 | openType: String,
5 | },
6 | methods: {
7 | bindGetUserInfo(event) {
8 | this.$emit('getuserinfo', event.detail);
9 | },
10 | bindContact(event) {
11 | this.$emit('contact', event.detail);
12 | },
13 | bindGetPhoneNumber(event) {
14 | this.$emit('getphonenumber', event.detail);
15 | },
16 | bindError(event) {
17 | this.$emit('error', event.detail);
18 | },
19 | bindLaunchApp(event) {
20 | this.$emit('launchapp', event.detail);
21 | },
22 | bindOpenSetting(event) {
23 | this.$emit('opensetting', event.detail);
24 | },
25 | },
26 | });
27 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/uploader/utils.d.ts:
--------------------------------------------------------------------------------
1 | export interface File {
2 | url: string;
3 | size?: number;
4 | name?: string;
5 | type: string;
6 | duration?: number;
7 | time?: number;
8 | isImage?: boolean;
9 | isVideo?: boolean;
10 | }
11 | export declare function isImageFile(item: File): boolean;
12 | export declare function isVideoFile(item: File): boolean;
13 | export declare function chooseFile({
14 | accept,
15 | multiple,
16 | capture,
17 | compressed,
18 | maxDuration,
19 | sizeType,
20 | camera,
21 | maxCount,
22 | }: {
23 | accept: any;
24 | multiple: any;
25 | capture: any;
26 | compressed: any;
27 | maxDuration: any;
28 | sizeType: any;
29 | camera: any;
30 | maxCount: any;
31 | }): Promise;
32 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/goods-action/index.js:
--------------------------------------------------------------------------------
1 | import { VantComponent } from '../common/component';
2 | VantComponent({
3 | relation: {
4 | type: 'descendant',
5 | name: 'goods-action-button',
6 | current: 'goods-action',
7 | linked() {
8 | this.updateStyle();
9 | },
10 | unlinked() {
11 | this.updateStyle();
12 | },
13 | linkChanged() {
14 | this.updateStyle();
15 | },
16 | },
17 | props: {
18 | safeAreaInsetBottom: {
19 | type: Boolean,
20 | value: true,
21 | },
22 | },
23 | methods: {
24 | updateStyle() {
25 | wx.nextTick(() => {
26 | this.children.forEach((child) => {
27 | child.updateStyle();
28 | });
29 | });
30 | },
31 | },
32 | });
33 |
--------------------------------------------------------------------------------
/miniprogram/components/add-tips/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | {{text}}
5 |
6 |
7 |
8 |
9 |
10 | 第1步. 点击
11 |
12 |
13 |
14 | 第2步. 点击页面底部「添加到我的小程序」
15 |
16 |
17 | 第3步. 微信首页下拉,快速进入小程序
18 |
19 |
20 |
21 |
22 | 我知道了
23 |
24 |
25 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/notify/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-notify{text-align:center;word-wrap:break-word;padding:6px 15px;padding:var(--notify-padding,6px 15px);font-size:14px;font-size:var(--notify-font-size,14px);line-height:20px;line-height:var(--notify-line-height,20px)}.van-notify__container{position:fixed;top:0;box-sizing:border-box;width:100%}.van-notify--primary{background-color:#1989fa;background-color:var(--notify-primary-background-color,#1989fa)}.van-notify--success{background-color:#07c160;background-color:var(--notify-success-background-color,#07c160)}.van-notify--danger{background-color:#ee0a24;background-color:var(--notify-danger-background-color,#ee0a24)}.van-notify--warning{background-color:#ff976a;background-color:var(--notify-warning-background-color,#ff976a)}
--------------------------------------------------------------------------------
/miniprogram/components/dist/progress/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
12 |
17 | {{ getters.text(pivotText, percentage) }}
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/goods-action-icon/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-goods-action-icon{display:-webkit-flex!important;display:flex!important;-webkit-flex-direction:column;flex-direction:column;-webkit-justify-content:center!important;justify-content:center!important;line-height:1!important;border:none!important;font-size:10px!important;font-size:var(--goods-action-icon-font-size,10px)!important;color:#646566!important;color:var(--goods-action-icon-text-color,#646566)!important;min-width:48px;min-width:var(--goods-action-icon-width,48px);height:50px!important;height:var(--goods-action-icon-height,50px)!important}.van-goods-action-icon__icon{display:-webkit-flex;display:flex;margin:0 auto 5px;color:#323233;color:var(--goods-action-icon-color,#323233);font-size:18px;font-size:var(--goods-action-icon-size,18px)}
--------------------------------------------------------------------------------
/miniprogram/components/dist/picker/toolbar.wxml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
13 | {{ cancelButtonText }}
14 |
15 | {{
16 | title
17 | }}
18 |
25 | {{ confirmButtonText }}
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/index-anchor/index.js:
--------------------------------------------------------------------------------
1 | import { VantComponent } from '../common/component';
2 | VantComponent({
3 | relation: {
4 | name: 'index-bar',
5 | type: 'ancestor',
6 | current: 'index-anchor',
7 | },
8 | props: {
9 | useSlot: Boolean,
10 | index: null,
11 | },
12 | data: {
13 | active: false,
14 | wrapperStyle: '',
15 | anchorStyle: '',
16 | },
17 | methods: {
18 | scrollIntoView(scrollTop) {
19 | this.getBoundingClientRect().then((rect) => {
20 | wx.pageScrollTo({
21 | duration: 0,
22 | scrollTop: scrollTop + rect.top - this.parent.data.stickyOffsetTop,
23 | });
24 | });
25 | },
26 | getBoundingClientRect() {
27 | return this.getRect('.van-index-anchor-wrapper');
28 | },
29 | },
30 | });
31 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/tabbar-item/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';:host{-webkit-flex:1;flex:1}.van-tabbar-item{display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;height:100%;color:#646566;color:var(--tabbar-item-text-color,#646566);font-size:12px;font-size:var(--tabbar-item-font-size,12px);line-height:1;line-height:var(--tabbar-item-line-height,1)}.van-tabbar-item__icon{position:relative;margin-bottom:4px;margin-bottom:var(--tabbar-item-margin-bottom,4px);font-size:22px;font-size:var(--tabbar-item-icon-size,22px)}.van-tabbar-item__icon__inner{display:block;min-width:1em}.van-tabbar-item--active{color:#1989fa;color:var(--tabbar-item-active-color,#1989fa)}.van-tabbar-item__info{margin-top:2px}
--------------------------------------------------------------------------------
/miniprogram/components/dist/sticky/index.wxs:
--------------------------------------------------------------------------------
1 | /* eslint-disable */
2 | function wrapStyle(data) {
3 | var style = '';
4 |
5 | if (data.transform) {
6 | style += 'transform: translate3d(0, ' + data.transform + 'px, 0);';
7 | }
8 |
9 | if (data.fixed) {
10 | style += 'top: ' + data.offsetTop + 'px;';
11 | }
12 |
13 | if (data.zIndex) {
14 | style += 'z-index: ' + data.zIndex + ';';
15 | }
16 |
17 | return style;
18 | }
19 |
20 | function containerStyle(data) {
21 | var style = '';
22 |
23 | if (data.fixed) {
24 | style += 'height: ' + data.height + 'px;';
25 | }
26 |
27 | if (data.zIndex) {
28 | style += 'z-index: ' + data.zIndex + ';';
29 | }
30 |
31 | return style;
32 | }
33 |
34 | module.exports = {
35 | wrapStyle: wrapStyle,
36 | containerStyle: containerStyle
37 | };
38 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/steps/index.js:
--------------------------------------------------------------------------------
1 | import { VantComponent } from '../common/component';
2 | import { GREEN, GRAY_DARK } from '../common/color';
3 | VantComponent({
4 | classes: ['desc-class'],
5 | props: {
6 | icon: String,
7 | steps: Array,
8 | active: Number,
9 | direction: {
10 | type: String,
11 | value: 'horizontal',
12 | },
13 | activeColor: {
14 | type: String,
15 | value: GREEN,
16 | },
17 | inactiveColor: {
18 | type: String,
19 | value: GRAY_DARK,
20 | },
21 | activeIcon: {
22 | type: String,
23 | value: 'checked',
24 | },
25 | inactiveIcon: String,
26 | },
27 | methods: {
28 | onClick(event) {
29 | const { index } = event.currentTarget.dataset;
30 | this.$emit('click-step', index);
31 | },
32 | },
33 | });
34 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/share-sheet/options.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
12 |
15 | {{ item.name }}
16 |
17 | {{ item.description }}
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/dropdown-menu/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
24 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/mixins/basic.js:
--------------------------------------------------------------------------------
1 | export const basic = Behavior({
2 | methods: {
3 | $emit(name, detail, options) {
4 | this.triggerEvent(name, detail, options);
5 | },
6 | set(data, callback) {
7 | this.setData(data, callback);
8 | return new Promise((resolve) => wx.nextTick(resolve));
9 | },
10 | getRect(selector, all) {
11 | return new Promise((resolve) => {
12 | wx.createSelectorQuery()
13 | .in(this)
14 | [all ? 'selectAll' : 'select'](selector)
15 | .boundingClientRect((rect) => {
16 | if (all && Array.isArray(rect) && rect.length) {
17 | resolve(rect);
18 | }
19 | if (!all && rect) {
20 | resolve(rect);
21 | }
22 | })
23 | .exec();
24 | });
25 | },
26 | },
27 | });
28 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/tabbar-item/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
14 |
15 |
19 |
20 |
21 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/calendar/utils.d.ts:
--------------------------------------------------------------------------------
1 | export declare const ROW_HEIGHT = 64;
2 | export declare function formatMonthTitle(date: Date): string;
3 | export declare function compareMonth(
4 | date1: Date | number,
5 | date2: Date | number
6 | ): 0 | 1 | -1;
7 | export declare function compareDay(
8 | day1: Date | number,
9 | day2: Date | number
10 | ): 0 | 1 | -1;
11 | export declare function getDayByOffset(date: Date, offset: number): Date;
12 | export declare function getPrevDay(date: Date): Date;
13 | export declare function getNextDay(date: Date): Date;
14 | export declare function calcDateNum(date: [Date, Date]): number;
15 | export declare function copyDates(dates: Date | Date[]): Date | Date[];
16 | export declare function getMonthEndDay(year: number, month: number): number;
17 | export declare function getMonths(minDate: number, maxDate: number): number[];
18 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/radio-group/index.js:
--------------------------------------------------------------------------------
1 | import { VantComponent } from '../common/component';
2 | VantComponent({
3 | field: true,
4 | relation: {
5 | name: 'radio',
6 | type: 'descendant',
7 | current: 'radio-group',
8 | linked(target) {
9 | this.updateChild(target);
10 | },
11 | },
12 | props: {
13 | value: {
14 | type: null,
15 | observer: 'updateChildren',
16 | },
17 | disabled: {
18 | type: Boolean,
19 | observer: 'updateChildren',
20 | },
21 | },
22 | methods: {
23 | updateChildren() {
24 | (this.children || []).forEach((child) => this.updateChild(child));
25 | },
26 | updateChild(child) {
27 | const { value, disabled } = this.data;
28 | child.setData({
29 | value,
30 | disabled: disabled || child.data.disabled,
31 | });
32 | },
33 | },
34 | });
35 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/sidebar-item/index.js:
--------------------------------------------------------------------------------
1 | import { VantComponent } from '../common/component';
2 | VantComponent({
3 | classes: ['active-class', 'disabled-class'],
4 | relation: {
5 | type: 'ancestor',
6 | name: 'sidebar',
7 | current: 'sidebar-item',
8 | },
9 | props: {
10 | dot: Boolean,
11 | badge: null,
12 | info: null,
13 | title: String,
14 | disabled: Boolean,
15 | },
16 | methods: {
17 | onClick() {
18 | const { parent } = this;
19 | if (!parent || this.data.disabled) {
20 | return;
21 | }
22 | const index = parent.children.indexOf(this);
23 | parent.setActive(index).then(() => {
24 | this.$emit('click', index);
25 | parent.$emit('change', index);
26 | });
27 | },
28 | setActive(selected) {
29 | return this.setData({ selected });
30 | },
31 | },
32 | });
33 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/calendar/index.wxs:
--------------------------------------------------------------------------------
1 | /* eslint-disable */
2 | var utils = require('./utils.wxs');
3 |
4 | function getMonths(minDate, maxDate) {
5 | var months = [];
6 | var cursor = getDate(minDate);
7 |
8 | cursor.setDate(1);
9 |
10 | do {
11 | months.push(cursor.getTime());
12 | cursor.setMonth(cursor.getMonth() + 1);
13 | } while (utils.compareMonth(cursor, getDate(maxDate)) !== 1);
14 |
15 | return months;
16 | }
17 |
18 | function getButtonDisabled(type, currentDate) {
19 | if (currentDate == null) {
20 | return true;
21 | }
22 |
23 | if (type === 'range') {
24 | return !currentDate[0] || !currentDate[1];
25 | }
26 |
27 | if (type === 'multiple') {
28 | return !currentDate.length;
29 | }
30 |
31 | return !currentDate;
32 | }
33 |
34 | module.exports = {
35 | getMonths: getMonths,
36 | getButtonDisabled: getButtonDisabled
37 | };
38 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/checkbox/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/common/style/hairline.wxss:
--------------------------------------------------------------------------------
1 | .van-hairline,.van-hairline--bottom,.van-hairline--left,.van-hairline--right,.van-hairline--surround,.van-hairline--top,.van-hairline--top-bottom{position:relative}.van-hairline--bottom:after,.van-hairline--left:after,.van-hairline--right:after,.van-hairline--surround:after,.van-hairline--top-bottom:after,.van-hairline--top:after,.van-hairline:after{position:absolute;box-sizing:border-box;-webkit-transform-origin:center;transform-origin:center;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid #ebedf0;-webkit-transform:scale(.5);transform:scale(.5)}.van-hairline--top:after{border-top-width:1px}.van-hairline--left:after{border-left-width:1px}.van-hairline--right:after{border-right-width:1px}.van-hairline--bottom:after{border-bottom-width:1px}.van-hairline--top-bottom:after{border-width:1px 0}.van-hairline--surround:after{border-width:1px}
--------------------------------------------------------------------------------
/miniprogram/components/dist/share-sheet/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-share-sheet__header{padding:12px 16px 4px;text-align:center}.van-share-sheet__title{margin-top:8px;color:#323233;font-weight:400;font-size:14px;line-height:20px}.van-share-sheet__title:empty,.van-share-sheet__title:not(:empty)+.van-share-sheet__title{display:none}.van-share-sheet__description{display:block;margin-top:8px;color:#969799;font-size:12px;line-height:16px}.van-share-sheet__description:empty,.van-share-sheet__description:not(:empty)+.van-share-sheet__description{display:none}.van-share-sheet__cancel{display:block;box-sizing:initial;width:100%;height:auto;padding:0;font-size:16px;line-height:48px;text-align:center;background:#fff;border:none}.van-share-sheet__cancel:before{display:block;height:8px;background-color:#f7f8fa;content:" "}.van-share-sheet__cancel:after{display:none}.van-share-sheet__cancel:active{background-color:#f2f3f5}
--------------------------------------------------------------------------------
/miniprogram/components/dist/slider/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
13 |
20 |
24 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/common/version.js:
--------------------------------------------------------------------------------
1 | import { getSystemInfoSync } from './utils';
2 | function compareVersion(v1, v2) {
3 | v1 = v1.split('.');
4 | v2 = v2.split('.');
5 | const len = Math.max(v1.length, v2.length);
6 | while (v1.length < len) {
7 | v1.push('0');
8 | }
9 | while (v2.length < len) {
10 | v2.push('0');
11 | }
12 | for (let i = 0; i < len; i++) {
13 | const num1 = parseInt(v1[i], 10);
14 | const num2 = parseInt(v2[i], 10);
15 | if (num1 > num2) {
16 | return 1;
17 | }
18 | if (num1 < num2) {
19 | return -1;
20 | }
21 | }
22 | return 0;
23 | }
24 | export function canIUseModel() {
25 | const system = getSystemInfoSync();
26 | return compareVersion(system.SDKVersion, '2.9.3') >= 0;
27 | }
28 | export function canIUseFormFieldButton() {
29 | const system = getSystemInfoSync();
30 | return compareVersion(system.SDKVersion, '2.10.3') >= 0;
31 | }
32 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/progress/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-progress{position:relative;height:4px;height:var(--progress-height,4px);border-radius:4px;border-radius:var(--progress-height,4px);background:#ebedf0;background:var(--progress-background-color,#ebedf0)}.van-progress__portion{position:absolute;left:0;height:100%;border-radius:inherit;background:#1989fa;background:var(--progress-color,#1989fa)}.van-progress__pivot{position:absolute;top:50%;right:0;box-sizing:border-box;min-width:2em;text-align:center;word-break:keep-all;border-radius:1em;-webkit-transform:translateY(-50%);transform:translateY(-50%);color:#fff;color:var(--progress-pivot-text-color,#fff);padding:0 5px;padding:var(--progress-pivot-padding,0 5px);font-size:10px;font-size:var(--progress-pivot-font-size,10px);line-height:1.6;line-height:var(--progress-pivot-line-height,1.6);background-color:#1989fa;background-color:var(--progress-pivot-background-color,#1989fa)}
--------------------------------------------------------------------------------
/miniprogram/components/dist/cell/index.js:
--------------------------------------------------------------------------------
1 | import { link } from '../mixins/link';
2 | import { VantComponent } from '../common/component';
3 | VantComponent({
4 | classes: [
5 | 'title-class',
6 | 'label-class',
7 | 'value-class',
8 | 'right-icon-class',
9 | 'hover-class',
10 | ],
11 | mixins: [link],
12 | props: {
13 | title: null,
14 | value: null,
15 | icon: String,
16 | size: String,
17 | label: String,
18 | center: Boolean,
19 | isLink: Boolean,
20 | required: Boolean,
21 | clickable: Boolean,
22 | titleWidth: String,
23 | customStyle: String,
24 | arrowDirection: String,
25 | useLabelSlot: Boolean,
26 | border: {
27 | type: Boolean,
28 | value: true,
29 | },
30 | titleStyle: String,
31 | },
32 | methods: {
33 | onClick(event) {
34 | this.$emit('click', event.detail);
35 | this.jumpLink();
36 | },
37 | },
38 | });
39 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/checkbox-group/index.js:
--------------------------------------------------------------------------------
1 | import { VantComponent } from '../common/component';
2 | VantComponent({
3 | field: true,
4 | relation: {
5 | name: 'checkbox',
6 | type: 'descendant',
7 | current: 'checkbox-group',
8 | linked(target) {
9 | this.updateChild(target);
10 | },
11 | },
12 | props: {
13 | max: Number,
14 | value: {
15 | type: Array,
16 | observer: 'updateChildren',
17 | },
18 | disabled: {
19 | type: Boolean,
20 | observer: 'updateChildren',
21 | },
22 | },
23 | methods: {
24 | updateChildren() {
25 | (this.children || []).forEach((child) => this.updateChild(child));
26 | },
27 | updateChild(child) {
28 | const { value, disabled } = this.data;
29 | child.setData({
30 | value: value.indexOf(child.data.name) !== -1,
31 | parentDisabled: disabled,
32 | });
33 | },
34 | },
35 | });
36 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/slider/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-slider{position:relative;border-radius:999px;border-radius:var(--border-radius-max,999px);background-color:#ebedf0;background-color:var(--slider-inactive-background-color,#ebedf0)}.van-slider:before{position:absolute;right:0;left:0;content:"";top:-8px;top:-var(--padding-xs,8px);bottom:-8px;bottom:-var(--padding-xs,8px)}.van-slider__bar{position:relative;border-radius:inherit;transition:width .2s;transition:width var(--animation-duration-fast,.2s);background-color:#1989fa;background-color:var(--slider-active-background-color,#1989fa)}.van-slider__button{width:24px;height:24px;border-radius:50%;box-shadow:0 1px 2px rgba(0,0,0,.5);background-color:#fff;background-color:var(--slider-button-background-color,#fff)}.van-slider__button-wrapper{position:absolute;top:50%;right:0;-webkit-transform:translate3d(50%,-50%,0);transform:translate3d(50%,-50%,0)}.van-slider--disabled{opacity:.5}
--------------------------------------------------------------------------------
/miniprogram/components/dist/calendar/components/header/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../../../common/index.wxss';.van-calendar__header{-webkit-flex-shrink:0;flex-shrink:0;box-shadow:0 2px 10px rgba(125,126,128,.16);box-shadow:var(--calendar-header-box-shadow,0 2px 10px rgba(125,126,128,.16))}.van-calendar__header-subtitle,.van-calendar__header-title{text-align:center;height:44px;height:var(--calendar-header-title-height,44px);font-weight:500;font-weight:var(--font-weight-bold,500);line-height:44px;line-height:var(--calendar-header-title-height,44px)}.van-calendar__header-title+.van-calendar__header-title,.van-calendar__header-title:empty{display:none}.van-calendar__header-title:empty+.van-calendar__header-title{display:block!important}.van-calendar__weekdays{display:-webkit-flex;display:flex}.van-calendar__weekday{-webkit-flex:1;flex:1;text-align:center;font-size:12px;font-size:var(--calendar-weekdays-font-size,12px);line-height:30px;line-height:var(--calendar-weekdays-height,30px)}
--------------------------------------------------------------------------------
/miniprogram/components/dist/popup/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
11 |
25 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/wxs/bem.wxs:
--------------------------------------------------------------------------------
1 | var array = require('./array.wxs');
2 | var object = require('./object.wxs');
3 | var PREFIX = 'van-';
4 |
5 | function join(name, mods) {
6 | name = PREFIX + name;
7 | mods = mods.map(function(mod) {
8 | return name + '--' + mod;
9 | });
10 | mods.unshift(name);
11 | return mods.join(' ');
12 | }
13 |
14 | function traversing(mods, conf) {
15 | if (!conf) {
16 | return;
17 | }
18 |
19 | if (typeof conf === 'string' || typeof conf === 'number') {
20 | mods.push(conf);
21 | } else if (array.isArray(conf)) {
22 | conf.forEach(function(item) {
23 | traversing(mods, item);
24 | });
25 | } else if (typeof conf === 'object') {
26 | object.keys(conf).forEach(function(key) {
27 | conf[key] && mods.push(key);
28 | });
29 | }
30 | }
31 |
32 | function bem(name, conf) {
33 | var mods = [];
34 | traversing(mods, conf);
35 | return join(name, mods);
36 | }
37 |
38 | module.exports.bem = bem;
39 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/skeleton/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
12 |
13 |
18 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/grid-item/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | {{ text }}
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/row/index.js:
--------------------------------------------------------------------------------
1 | import { VantComponent } from '../common/component';
2 | VantComponent({
3 | relation: {
4 | name: 'col',
5 | type: 'descendant',
6 | current: 'row',
7 | linked(target) {
8 | if (this.data.gutter) {
9 | target.setGutter(this.data.gutter);
10 | }
11 | },
12 | },
13 | props: {
14 | gutter: {
15 | type: Number,
16 | observer: 'setGutter',
17 | },
18 | },
19 | data: {
20 | viewStyle: '',
21 | },
22 | mounted() {
23 | if (this.data.gutter) {
24 | this.setGutter();
25 | }
26 | },
27 | methods: {
28 | setGutter() {
29 | const { gutter } = this.data;
30 | const margin = `-${Number(gutter) / 2}px`;
31 | const viewStyle = gutter
32 | ? `margin-right: ${margin}; margin-left: ${margin};`
33 | : '';
34 | this.setData({ viewStyle });
35 | this.getRelationNodes('../col/index').forEach((col) => {
36 | col.setGutter(this.data.gutter);
37 | });
38 | },
39 | },
40 | });
41 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/picker-column/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
11 |
12 | {{ getOptionText(option, valueKey) }}
21 |
22 |
23 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/common/utils.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | export declare function isDef(value: any): boolean;
3 | export declare function isObj(x: any): boolean;
4 | export declare function range(num: number, min: number, max: number): number;
5 | export declare function nextTick(fn: Function): void;
6 | export declare function getSystemInfoSync(): WechatMiniprogram.GetSystemInfoSyncResult;
7 | export declare function addUnit(value?: string | number): string | undefined;
8 | export declare function requestAnimationFrame(
9 | cb: Function
10 | ): void | WechatMiniprogram.NodesRef;
11 | export declare function pickExclude(obj: unknown, keys: string[]): {};
12 | export declare function getRect(
13 | this: WechatMiniprogram.Component.TrivialInstance,
14 | selector: string
15 | ): Promise;
16 | export declare function getAllRect(
17 | this: WechatMiniprogram.Component.TrivialInstance,
18 | selector: string
19 | ): Promise;
20 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/image/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
18 |
19 |
23 |
24 |
25 |
26 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/info/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-info{position:absolute;top:0;right:0;box-sizing:border-box;line-height:1.2;white-space:nowrap;text-align:center;-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%);-webkit-transform-origin:100%;transform-origin:100%;min-width:16px;min-width:var(--info-size,16px);padding:0 3px;padding:var(--info-padding,0 3px);color:#fff;color:var(--info-color,#fff);font-weight:500;font-weight:var(--info-font-weight,500);font-size:12px;font-size:var(--info-font-size,12px);font-family:-apple-system-font,Helvetica Neue,Arial,sans-serif;font-family:var(--info-font-family,-apple-system-font,Helvetica Neue,Arial,sans-serif);background-color:#ee0a24;background-color:var(--info-background-color,#ee0a24);border:1px solid #fff;border:var(--info-border-width,1px) solid var(--white,#fff);border-radius:16px;border-radius:var(--info-size,16px)}.van-info--dot{min-width:0;border-radius:100%;width:8px;width:var(--info-dot-size,8px);height:8px;height:var(--info-dot-size,8px);background-color:#ee0a24;background-color:var(--info-dot-color,#ee0a24)}
--------------------------------------------------------------------------------
/miniprogram/components/dist/image/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-image{position:relative;display:inline-block}.van-image--round{overflow:hidden;border-radius:50%}.van-image--round .van-image__img{border-radius:inherit}.van-image__error,.van-image__img,.van-image__loading{display:block;width:100%;height:100%}.van-image__error,.van-image__loading{position:absolute;top:0;left:0;display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;color:#969799;color:var(--image-placeholder-text-color,#969799);font-size:14px;font-size:var(--image-placeholder-font-size,14px);background-color:#f7f8fa;background-color:var(--image-placeholder-background-color,#f7f8fa)}.van-image__loading-icon{color:#dcdee0;color:var(--image-loading-icon-color,#dcdee0);font-size:32px!important;font-size:var(--image-loading-icon-size,32px)!important}.van-image__error-icon{color:#dcdee0;color:var(--image-error-icon-color,#dcdee0);font-size:32px!important;font-size:var(--image-error-icon-size,32px)!important}
--------------------------------------------------------------------------------
/miniprogram/components/dist/toast/index.wxml:
--------------------------------------------------------------------------------
1 |
7 |
12 |
16 |
17 | {{ message }}
18 |
19 |
20 |
21 |
27 |
28 | {{ message }}
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/common/validator.js:
--------------------------------------------------------------------------------
1 | export function isFunction(val) {
2 | return typeof val === 'function';
3 | }
4 | export function isPlainObject(val) {
5 | return val !== null && typeof val === 'object' && !Array.isArray(val);
6 | }
7 | export function isPromise(val) {
8 | return isPlainObject(val) && isFunction(val.then) && isFunction(val.catch);
9 | }
10 | export function isDef(value) {
11 | return value !== undefined && value !== null;
12 | }
13 | export function isObj(x) {
14 | const type = typeof x;
15 | return x !== null && (type === 'object' || type === 'function');
16 | }
17 | export function isNumber(value) {
18 | return /^\d+(\.\d+)?$/.test(value);
19 | }
20 | export function isBoolean(value) {
21 | return typeof value === 'boolean';
22 | }
23 | const IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
24 | const VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv)/i;
25 | export function isImageUrl(url) {
26 | return IMAGE_REGEXP.test(url);
27 | }
28 | export function isVideoUrl(url) {
29 | return VIDEO_REGEXP.test(url);
30 | }
31 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/skeleton/index.js:
--------------------------------------------------------------------------------
1 | import { VantComponent } from '../common/component';
2 | VantComponent({
3 | classes: ['avatar-class', 'title-class', 'row-class'],
4 | props: {
5 | row: {
6 | type: Number,
7 | value: 0,
8 | observer(value) {
9 | this.setData({ rowArray: Array.from({ length: value }) });
10 | },
11 | },
12 | title: Boolean,
13 | avatar: Boolean,
14 | loading: {
15 | type: Boolean,
16 | value: true,
17 | },
18 | animate: {
19 | type: Boolean,
20 | value: true,
21 | },
22 | avatarSize: {
23 | type: String,
24 | value: '32px',
25 | },
26 | avatarShape: {
27 | type: String,
28 | value: 'round',
29 | },
30 | titleWidth: {
31 | type: String,
32 | value: '40%',
33 | },
34 | rowWidth: {
35 | type: null,
36 | value: '100%',
37 | observer(val) {
38 | this.setData({ isArray: val instanceof Array });
39 | },
40 | },
41 | },
42 | data: {
43 | isArray: false,
44 | rowArray: [],
45 | },
46 | });
47 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/goods-action-button/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
28 | {{ text }}
29 |
30 |
31 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/tree-select/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-tree-select{position:relative;display:-webkit-flex;display:flex;-webkit-user-select:none;user-select:none;font-size:14px;font-size:var(--tree-select-font-size,14px)}.van-tree-select__nav{-webkit-flex:1;flex:1;background-color:#f7f8fa;background-color:var(--tree-select-nav-background-color,#f7f8fa);--sidebar-padding:12px 8px 12px 12px}.van-tree-select__nav__inner{width:100%!important;height:100%}.van-tree-select__content{-webkit-flex:2;flex:2;background-color:#fff;background-color:var(--tree-select-content-background-color,#fff)}.van-tree-select__item{position:relative;font-weight:700;padding:0 32px 0 16px;padding:0 32px 0 var(--padding-md,16px);line-height:44px;line-height:var(--tree-select-item-height,44px)}.van-tree-select__item--active{color:#ee0a24;color:var(--tree-select-item-active-color,#ee0a24)}.van-tree-select__item--disabled{color:#c8c9cc;color:var(--tree-select-item-disabled-color,#c8c9cc)}.van-tree-select__selected{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:16px;right:var(--padding-md,16px)}
--------------------------------------------------------------------------------
/miniprogram/components/dist/definitions/index.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | import { Weapp } from './weapp';
3 | declare type RecordToAny = {
4 | [K in keyof T]: any;
5 | };
6 | export declare type CombinedComponentInstance = Methods &
7 | WechatMiniprogram.Component.TrivialInstance &
8 | Weapp.FormField & {
9 | data: Data & RecordToAny;
10 | };
11 | export interface VantComponentOptions {
12 | data?: Data;
13 | field?: boolean;
14 | classes?: string[];
15 | mixins?: string[];
16 | props?: Props & Weapp.PropertyOption;
17 | relation?: Weapp.RelationOption & {
18 | type: 'ancestor' | 'descendant';
19 | name: string;
20 | current: string;
21 | };
22 | relations?: {
23 | [componentName: string]: Weapp.RelationOption;
24 | };
25 | methods?: Methods & Weapp.MethodOption;
26 | beforeCreate?: (this: Instance) => void;
27 | created?: (this: Instance) => void;
28 | mounted?: (this: Instance) => void;
29 | destroyed?: (this: Instance) => void;
30 | }
31 | export {};
32 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/mixins/touch.js:
--------------------------------------------------------------------------------
1 | // @ts-nocheck
2 | const MIN_DISTANCE = 10;
3 | function getDirection(x, y) {
4 | if (x > y && x > MIN_DISTANCE) {
5 | return 'horizontal';
6 | }
7 | if (y > x && y > MIN_DISTANCE) {
8 | return 'vertical';
9 | }
10 | return '';
11 | }
12 | export const touch = Behavior({
13 | methods: {
14 | resetTouchStatus() {
15 | this.direction = '';
16 | this.deltaX = 0;
17 | this.deltaY = 0;
18 | this.offsetX = 0;
19 | this.offsetY = 0;
20 | },
21 | touchStart(event) {
22 | this.resetTouchStatus();
23 | const touch = event.touches[0];
24 | this.startX = touch.clientX;
25 | this.startY = touch.clientY;
26 | },
27 | touchMove(event) {
28 | const touch = event.touches[0];
29 | this.deltaX = touch.clientX - this.startX;
30 | this.deltaY = touch.clientY - this.startY;
31 | this.offsetX = Math.abs(this.deltaX);
32 | this.offsetY = Math.abs(this.deltaY);
33 | this.direction =
34 | this.direction || getDirection(this.offsetX, this.offsetY);
35 | },
36 | },
37 | });
38 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/circle/canvas.js:
--------------------------------------------------------------------------------
1 | export function adaptor(ctx) {
2 | // @ts-ignore
3 | return Object.assign(ctx, {
4 | setStrokeStyle(val) {
5 | ctx.strokeStyle = val;
6 | },
7 | setLineWidth(val) {
8 | ctx.lineWidth = val;
9 | },
10 | setLineCap(val) {
11 | ctx.lineCap = val;
12 | },
13 | setFillStyle(val) {
14 | ctx.fillStyle = val;
15 | },
16 | setFontSize(val) {
17 | ctx.font = String(val);
18 | },
19 | setGlobalAlpha(val) {
20 | ctx.globalAlpha = val;
21 | },
22 | setLineJoin(val) {
23 | ctx.lineJoin = val;
24 | },
25 | setTextAlign(val) {
26 | ctx.textAlign = val;
27 | },
28 | setMiterLimit(val) {
29 | ctx.miterLimit = val;
30 | },
31 | setShadow(offsetX, offsetY, blur, color) {
32 | ctx.shadowOffsetX = offsetX;
33 | ctx.shadowOffsetY = offsetY;
34 | ctx.shadowBlur = blur;
35 | ctx.shadowColor = color;
36 | },
37 | setTextBaseline(val) {
38 | ctx.textBaseline = val;
39 | },
40 | createCircularGradient() {},
41 | draw() {},
42 | });
43 | }
44 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/share-sheet/options.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-share-sheet__options{position:relative;display:-webkit-flex;display:flex;padding:16px 0 16px 8px;overflow-x:auto;overflow-y:visible;-webkit-overflow-scrolling:touch}.van-share-sheet__options--border:before{position:absolute;box-sizing:border-box;-webkit-transform-origin:center;transform-origin:center;content:" ";pointer-events:none;top:0;right:0;left:16px;border-top:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.van-share-sheet__options::-webkit-scrollbar{height:0}.van-share-sheet__option{display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;-webkit-align-items:center;align-items:center;-webkit-user-select:none;user-select:none}.van-share-sheet__option:active{opacity:.7}.van-share-sheet__button{height:auto;padding:0;line-height:inherit;background-color:initial;border:0}.van-share-sheet__button:after{border:0}.van-share-sheet__icon{width:48px;height:48px;margin:0 16px}.van-share-sheet__name{margin-top:8px;padding:0 4px;color:#646566;font-size:12px}.van-share-sheet__option-description{padding:0 4px;color:#c8c9cc;font-size:12px}
--------------------------------------------------------------------------------
/miniprogram/components/dist/goods-action-icon/index.wxml:
--------------------------------------------------------------------------------
1 |
25 |
33 |
34 | {{ text }}
35 |
36 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/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 | relation: {
8 | type: 'ancestor',
9 | name: 'goods-action',
10 | current: 'goods-action-button',
11 | },
12 | props: {
13 | text: String,
14 | color: String,
15 | loading: Boolean,
16 | disabled: Boolean,
17 | plain: Boolean,
18 | type: {
19 | type: String,
20 | value: 'danger',
21 | },
22 | },
23 | methods: {
24 | onClick(event) {
25 | this.$emit('click', event.detail);
26 | this.jumpLink();
27 | },
28 | updateStyle() {
29 | if (this.parent == null) {
30 | return;
31 | }
32 | const { children = [] } = this.parent;
33 | const { length } = children;
34 | const index = children.indexOf(this);
35 | this.setData({
36 | isFirst: index === 0,
37 | isLast: index === length - 1,
38 | });
39 | },
40 | },
41 | });
42 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/mixins/page-scroll.js:
--------------------------------------------------------------------------------
1 | function getCurrentPage() {
2 | const pages = getCurrentPages();
3 | return pages[pages.length - 1] || {};
4 | }
5 | function onPageScroll(event) {
6 | const { vanPageScroller = [] } = getCurrentPage();
7 | vanPageScroller.forEach((scroller) => {
8 | if (typeof scroller === 'function') {
9 | // @ts-ignore
10 | scroller(event);
11 | }
12 | });
13 | }
14 | export const pageScrollMixin = (scroller) =>
15 | Behavior({
16 | attached() {
17 | const page = getCurrentPage();
18 | if (Array.isArray(page.vanPageScroller)) {
19 | page.vanPageScroller.push(scroller.bind(this));
20 | } else {
21 | page.vanPageScroller =
22 | typeof page.onPageScroll === 'function'
23 | ? [page.onPageScroll.bind(page), scroller.bind(this)]
24 | : [scroller.bind(this)];
25 | }
26 | page.onPageScroll = onPageScroll;
27 | },
28 | detached() {
29 | const page = getCurrentPage();
30 | page.vanPageScroller = (page.vanPageScroller || []).filter(
31 | (item) => item !== scroller
32 | );
33 | },
34 | });
35 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/skeleton/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-skeleton{display:-webkit-flex;display:flex;box-sizing:border-box;width:100%;padding:0 16px;padding:var(--skeleton-padding,0 16px)}.van-skeleton__avatar{-webkit-flex-shrink:0;flex-shrink:0;margin-right:16px;margin-right:var(--padding-md,16px);background-color:#f2f3f5;background-color:var(--skeleton-avatar-background-color,#f2f3f5)}.van-skeleton__avatar--round{border-radius:100%}.van-skeleton__content{-webkit-flex:1;flex:1}.van-skeleton__avatar+.van-skeleton__content{padding-top:8px;padding-top:var(--padding-xs,8px)}.van-skeleton__row,.van-skeleton__title{height:16px;height:var(--skeleton-row-height,16px);background-color:#f2f3f5;background-color:var(--skeleton-row-background-color,#f2f3f5)}.van-skeleton__title{margin:0}.van-skeleton__row:not(:first-child){margin-top:12px;margin-top:var(--skeleton-row-margin-top,12px)}.van-skeleton__title+.van-skeleton__row{margin-top:20px}.van-skeleton--animate{-webkit-animation:van-skeleton-blink 1.2s ease-in-out infinite;animation:van-skeleton-blink 1.2s ease-in-out infinite}@-webkit-keyframes van-skeleton-blink{50%{opacity:.6}}@keyframes van-skeleton-blink{50%{opacity:.6}}
--------------------------------------------------------------------------------
/miniprogram/components/dist/sidebar/index.js:
--------------------------------------------------------------------------------
1 | import { VantComponent } from '../common/component';
2 | VantComponent({
3 | relation: {
4 | name: 'sidebar-item',
5 | type: 'descendant',
6 | current: 'sidebar',
7 | linked() {
8 | this.setActive(this.data.activeKey);
9 | },
10 | unlinked() {
11 | this.setActive(this.data.activeKey);
12 | },
13 | },
14 | props: {
15 | activeKey: {
16 | type: Number,
17 | value: 0,
18 | observer: 'setActive',
19 | },
20 | },
21 | beforeCreate() {
22 | this.currentActive = -1;
23 | },
24 | methods: {
25 | setActive(activeKey) {
26 | const { children, currentActive } = this;
27 | if (!children.length) {
28 | return Promise.resolve();
29 | }
30 | this.currentActive = activeKey;
31 | const stack = [];
32 | if (currentActive !== activeKey && children[currentActive]) {
33 | stack.push(children[currentActive].setActive(false));
34 | }
35 | if (children[activeKey]) {
36 | stack.push(children[activeKey].setActive(true));
37 | }
38 | return Promise.all(stack);
39 | },
40 | },
41 | });
42 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/calendar/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-calendar{display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;height:100%;height:var(--calendar-height,100%);background-color:#fff;background-color:var(--calendar-background-color,#fff)}.van-calendar__close-icon{top:11px}.van-calendar__popup--bottom,.van-calendar__popup--top{height:80%;height:var(--calendar-popup-height,80%)}.van-calendar__popup--left,.van-calendar__popup--right{height:100%}.van-calendar__body{-webkit-flex:1;flex:1;overflow:auto;-webkit-overflow-scrolling:touch}.van-calendar__footer{-webkit-flex-shrink:0;flex-shrink:0;padding:0 16px;padding:0 var(--padding-md,16px)}.van-calendar__footer--safe-area-inset-bottom{padding-bottom:env(safe-area-inset-bottom)}.van-calendar__footer+.van-calendar__footer,.van-calendar__footer:empty{display:none}.van-calendar__footer:empty+.van-calendar__footer{display:block!important}.van-calendar__confirm{height:36px!important;height:var(--calendar-confirm-button-height,36px)!important;margin:7px 0!important;margin:var(--calendar-confirm-button-margin,7px 0)!important;line-height:34px!important;line-height:var(--calendar-confirm-button-line-height,34px)!important}
--------------------------------------------------------------------------------
/miniprogram/components/dist/notice-bar/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
15 |
16 |
17 |
18 |
19 | {{ text }}
20 |
21 |
22 |
23 |
29 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/calendar/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
19 |
23 |
24 |
25 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/card/index.js:
--------------------------------------------------------------------------------
1 | import { link } from '../mixins/link';
2 | import { VantComponent } from '../common/component';
3 | VantComponent({
4 | classes: [
5 | 'num-class',
6 | 'desc-class',
7 | 'thumb-class',
8 | 'title-class',
9 | 'price-class',
10 | 'origin-price-class',
11 | ],
12 | mixins: [link],
13 | props: {
14 | tag: String,
15 | num: String,
16 | desc: String,
17 | thumb: String,
18 | title: String,
19 | price: {
20 | type: String,
21 | observer: 'updatePrice',
22 | },
23 | centered: Boolean,
24 | lazyLoad: Boolean,
25 | thumbLink: String,
26 | originPrice: String,
27 | thumbMode: {
28 | type: String,
29 | value: 'aspectFit',
30 | },
31 | currency: {
32 | type: String,
33 | value: '¥',
34 | },
35 | },
36 | methods: {
37 | updatePrice() {
38 | const { price } = this.data;
39 | const priceArr = price.toString().split('.');
40 | this.setData({
41 | integerStr: priceArr[0],
42 | decimalStr: priceArr[1] ? `.${priceArr[1]}` : '',
43 | });
44 | },
45 | onClickThumb() {
46 | this.jumpLink('thumbLink');
47 | },
48 | },
49 | });
50 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/rate/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
13 |
22 |
23 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/common/index.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{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical}.van-multi-ellipsis--l3{-webkit-line-clamp:3}.van-clearfix:after{display:table;clear:both;content:""}.van-hairline,.van-hairline--bottom,.van-hairline--left,.van-hairline--right,.van-hairline--surround,.van-hairline--top,.van-hairline--top-bottom{position:relative}.van-hairline--bottom:after,.van-hairline--left:after,.van-hairline--right:after,.van-hairline--surround:after,.van-hairline--top-bottom:after,.van-hairline--top:after,.van-hairline:after{position:absolute;box-sizing:border-box;-webkit-transform-origin:center;transform-origin:center;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid #ebedf0;-webkit-transform:scale(.5);transform:scale(.5)}.van-hairline--top:after{border-top-width:1px}.van-hairline--left:after{border-left-width:1px}.van-hairline--right:after{border-right-width:1px}.van-hairline--bottom:after{border-bottom-width:1px}.van-hairline--top-bottom:after{border-width:1px 0}.van-hairline--surround:after{border-width:1px}
--------------------------------------------------------------------------------
/miniprogram/components/dist/radio/index.js:
--------------------------------------------------------------------------------
1 | import { VantComponent } from '../common/component';
2 | VantComponent({
3 | field: true,
4 | relation: {
5 | name: 'radio-group',
6 | type: 'ancestor',
7 | current: 'radio',
8 | },
9 | classes: ['icon-class', 'label-class'],
10 | props: {
11 | name: null,
12 | value: null,
13 | disabled: Boolean,
14 | useIconSlot: Boolean,
15 | checkedColor: String,
16 | labelPosition: {
17 | type: String,
18 | value: 'right',
19 | },
20 | labelDisabled: Boolean,
21 | shape: {
22 | type: String,
23 | value: 'round',
24 | },
25 | iconSize: {
26 | type: null,
27 | value: 20,
28 | },
29 | },
30 | methods: {
31 | emitChange(value) {
32 | const instance = this.parent || this;
33 | instance.$emit('input', value);
34 | instance.$emit('change', value);
35 | },
36 | onChange() {
37 | if (!this.data.disabled) {
38 | this.emitChange(this.data.name);
39 | }
40 | },
41 | onClickLabel() {
42 | const { disabled, labelDisabled, name } = this.data;
43 | if (!disabled && !labelDisabled) {
44 | this.emitChange(name);
45 | }
46 | },
47 | },
48 | });
49 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/wxs/memoize.wxs:
--------------------------------------------------------------------------------
1 | /**
2 | * Simple memoize
3 | * wxs doesn't support fn.apply, so this memoize only support up to 2 args
4 | */
5 |
6 | function isPrimitive(value) {
7 | var type = typeof value;
8 | return (
9 | type === 'boolean' ||
10 | type === 'number' ||
11 | type === 'string' ||
12 | type === 'undefined' ||
13 | value === null
14 | );
15 | }
16 |
17 | // mock simple fn.call in wxs
18 | function call(fn, args) {
19 | if (args.length === 2) {
20 | return fn(args[0], args[1]);
21 | }
22 |
23 | if (args.length === 1) {
24 | return fn(args[0]);
25 | }
26 |
27 | return fn();
28 | }
29 |
30 | function serializer(args) {
31 | if (args.length === 1 && isPrimitive(args[0])) {
32 | return args[0];
33 | }
34 | var obj = {};
35 | for (var i = 0; i < args.length; i++) {
36 | obj['key' + i] = args[i];
37 | }
38 | return JSON.stringify(obj);
39 | }
40 |
41 | function memoize(fn) {
42 | var cache = {};
43 |
44 | return function() {
45 | var key = serializer(arguments);
46 | if (cache[key] === undefined) {
47 | cache[key] = call(fn, arguments);
48 | }
49 |
50 | return cache[key];
51 | };
52 | }
53 |
54 | module.exports.memoize = memoize;
55 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/divider/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-divider{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;margin:16px 0;margin:var(--divider-margin,16px 0);color:#969799;color:var(--divider-text-color,#969799);font-size:14px;font-size:var(--divider-font-size,14px);line-height:24px;line-height:var(--divider-line-height,24px);border:0 solid #ebedf0;border-color:var(--divider-border-color,#ebedf0)}.van-divider:after,.van-divider:before{display:block;-webkit-flex:1;flex:1;box-sizing:border-box;height:1px;border-color:inherit;border-style:inherit;border-width:1px 0 0}.van-divider:before{content:""}.van-divider--hairline:after,.van-divider--hairline:before{-webkit-transform:scaleY(.5);transform:scaleY(.5)}.van-divider--dashed{border-style:dashed}.van-divider--center:before,.van-divider--left:before,.van-divider--right:before{margin-right:16px;margin-right:var(--divider-content-padding,16px)}.van-divider--center:after,.van-divider--left:after,.van-divider--right:after{content:"";margin-left:16px;margin-left:var(--divider-content-padding,16px)}.van-divider--left:before{max-width:10%;max-width:var(--divider-content-left-width,10%)}.van-divider--right:after{max-width:10%;max-width:var(--divider-content-right-width,10%)}
--------------------------------------------------------------------------------
/miniprogram/components/dist/radio/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
10 |
11 |
12 |
13 |
21 |
22 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/share-sheet/index.js:
--------------------------------------------------------------------------------
1 | import { VantComponent } from '../common/component';
2 | VantComponent({
3 | props: {
4 | // whether to show popup
5 | show: Boolean,
6 | // overlay custom style
7 | overlayStyle: Object,
8 | // z-index
9 | zIndex: {
10 | type: Number,
11 | value: 100,
12 | },
13 | title: String,
14 | cancelText: {
15 | type: String,
16 | value: '取消',
17 | },
18 | description: String,
19 | options: {
20 | type: Array,
21 | value: [],
22 | },
23 | overlay: {
24 | type: Boolean,
25 | value: true,
26 | },
27 | safeAreaInsetBottom: {
28 | type: Boolean,
29 | value: true,
30 | },
31 | closeOnClickOverlay: {
32 | type: Boolean,
33 | value: true,
34 | },
35 | duration: {
36 | type: null,
37 | value: 300,
38 | },
39 | },
40 | methods: {
41 | onClickOverlay() {
42 | this.$emit('click-overlay');
43 | },
44 | onCancel() {
45 | this.onClose();
46 | this.$emit('cancel');
47 | },
48 | onSelect(event) {
49 | this.$emit('select', event.detail);
50 | },
51 | onClose() {
52 | this.$emit('close');
53 | },
54 | },
55 | });
56 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/collapse-item/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
19 |
23 |
27 |
28 |
32 |
33 |
38 |
41 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/collapse/index.js:
--------------------------------------------------------------------------------
1 | import { VantComponent } from '../common/component';
2 | VantComponent({
3 | relation: {
4 | name: 'collapse-item',
5 | type: 'descendant',
6 | current: 'collapse',
7 | },
8 | props: {
9 | value: {
10 | type: null,
11 | observer: 'updateExpanded',
12 | },
13 | accordion: {
14 | type: Boolean,
15 | observer: 'updateExpanded',
16 | },
17 | border: {
18 | type: Boolean,
19 | value: true,
20 | },
21 | },
22 | methods: {
23 | updateExpanded() {
24 | this.children.forEach((child) => {
25 | child.updateExpanded();
26 | });
27 | },
28 | switch(name, expanded) {
29 | const { accordion, value } = this.data;
30 | const changeItem = name;
31 | if (!accordion) {
32 | name = expanded
33 | ? (value || []).concat(name)
34 | : (value || []).filter((activeName) => activeName !== name);
35 | } else {
36 | name = expanded ? name : '';
37 | }
38 | if (expanded) {
39 | this.$emit('open', changeItem);
40 | } else {
41 | this.$emit('close', changeItem);
42 | }
43 | this.$emit('change', name);
44 | this.$emit('input', name);
45 | },
46 | },
47 | });
48 |
--------------------------------------------------------------------------------
/miniprogram/components/add-tips/index.js:
--------------------------------------------------------------------------------
1 | const STORAGE_KEY = "PLUG-ADD-MYAPP-KEY";
2 |
3 | Component({
4 | /**
5 | * 组件的属性列表
6 | */
7 | properties: {
8 | // 提示文字
9 | text: {
10 | type: String,
11 | value: "点击「添加小程序」,下次访问更便捷"
12 | },
13 | // 多少秒后关闭
14 | duration: {
15 | type: Number,
16 | value: 60
17 | }
18 | },
19 |
20 | /**
21 | * 组件的初始数据
22 | */
23 | data: {
24 | SHOW_TOP: false,
25 | SHOW_MODAL: false
26 | },
27 |
28 | ready: function() {
29 | // 判断是否已经显示过
30 | let cache = wx.getStorageSync(STORAGE_KEY);
31 | if (cache) return;
32 | // 没显示过,则进行展示
33 | this.setData({
34 | SHOW_TOP: true
35 | });
36 | // 关闭时间
37 | setTimeout(() => {
38 | this.setData({
39 | SHOW_TOP: false
40 | });
41 | }, this.data.duration * 1000);
42 | },
43 |
44 | /**
45 | * 组件的方法列表
46 | */
47 | methods: {
48 | // 显示全屏添加说明
49 | showModal: function() {
50 | this.setData({
51 | SHOW_TOP: false,
52 | SHOW_MODAL: true
53 | });
54 | },
55 |
56 | okHandler: function() {
57 | this.setData({
58 | SHOW_MODAL: false
59 | });
60 | wx.setStorage({
61 | key: STORAGE_KEY,
62 | data: +new Date()
63 | });
64 | }
65 | }
66 | });
67 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/sidebar-item/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-sidebar-item{display:block;box-sizing:border-box;overflow:hidden;border-left:3px solid transparent;-webkit-user-select:none;user-select:none;padding:20px 12px 20px 8px;padding:var(--sidebar-padding,20px 12px 20px 8px);font-size:14px;font-size:var(--sidebar-font-size,14px);line-height:20px;line-height:var(--sidebar-line-height,20px);color:#323233;color:var(--sidebar-text-color,#323233);background-color:#f7f8fa;background-color:var(--sidebar-background-color,#f7f8fa)}.van-sidebar-item__text{position:relative;display:inline-block;word-break:break-all}.van-sidebar-item--hover:not(.van-sidebar-item--disabled){background-color:#f2f3f5;background-color:var(--sidebar-active-color,#f2f3f5)}.van-sidebar-item:after{border-bottom-width:1px}.van-sidebar-item--selected{color:#323233;color:var(--sidebar-selected-text-color,#323233);font-weight:500;font-weight:var(--sidebar-selected-font-weight,500);border-color:#ee0a24;border-color:var(--sidebar-selected-border-color,#ee0a24)}.van-sidebar-item--selected:after{border-right-width:1px}.van-sidebar-item--selected,.van-sidebar-item--selected.van-sidebar-item--hover{background-color:#fff;background-color:var(--sidebar-selected-background-color,#fff)}.van-sidebar-item--disabled{color:#c8c9cc;color:var(--sidebar-disabled-text-color,#c8c9cc)}
--------------------------------------------------------------------------------
/miniprogram/components/dist/search/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-search{-webkit-align-items:center;align-items:center;box-sizing:border-box;padding:10px 12px;padding:var(--search-padding,10px 12px)}.van-search,.van-search__content{display:-webkit-flex;display:flex}.van-search__content{-webkit-flex:1;flex:1;padding-left:12px;padding-left:var(--padding-sm,12px);border-radius:2px;border-radius:var(--border-radius-sm,2px);background-color:#f7f8fa;background-color:var(--search-background-color,#f7f8fa)}.van-search__content--round{border-radius:17px;border-radius:calc(var(--search-input-height, 34px)/2)}.van-search__label{padding:0 5px;padding:var(--search-label-padding,0 5px);font-size:14px;font-size:var(--search-label-font-size,14px);line-height:34px;line-height:var(--search-input-height,34px);color:#323233;color:var(--search-label-color,#323233)}.van-search__field{-webkit-flex:1;flex:1}.van-search__field__left-icon{color:#969799;color:var(--search-left-icon-color,#969799)}.van-search--withaction{padding-right:0}.van-search__action{padding:0 8px;padding:var(--search-action-padding,0 8px);font-size:14px;font-size:var(--search-action-font-size,14px);line-height:34px;line-height:var(--search-input-height,34px);color:#323233;color:var(--search-action-text-color,#323233)}.van-search__action--hover{background-color:#f2f3f5;background-color:var(--active-color,#f2f3f5)}
--------------------------------------------------------------------------------
/miniprogram/components/dist/field/props.js:
--------------------------------------------------------------------------------
1 | export const commonProps = {
2 | value: {
3 | type: String,
4 | observer(value) {
5 | if (value !== this.value) {
6 | this.setData({ innerValue: value });
7 | this.value = value;
8 | }
9 | },
10 | },
11 | placeholder: String,
12 | placeholderStyle: String,
13 | placeholderClass: String,
14 | disabled: Boolean,
15 | maxlength: {
16 | type: Number,
17 | value: -1,
18 | },
19 | cursorSpacing: {
20 | type: Number,
21 | value: 50,
22 | },
23 | autoFocus: Boolean,
24 | focus: Boolean,
25 | cursor: {
26 | type: Number,
27 | value: -1,
28 | },
29 | selectionStart: {
30 | type: Number,
31 | value: -1,
32 | },
33 | selectionEnd: {
34 | type: Number,
35 | value: -1,
36 | },
37 | adjustPosition: {
38 | type: Boolean,
39 | value: true,
40 | },
41 | holdKeyboard: Boolean,
42 | };
43 | export const inputProps = {
44 | type: {
45 | type: String,
46 | value: 'text',
47 | },
48 | password: Boolean,
49 | confirmType: String,
50 | confirmHold: Boolean,
51 | };
52 | export const textareaProps = {
53 | autoHeight: Boolean,
54 | fixed: Boolean,
55 | showConfirmBar: {
56 | type: Boolean,
57 | value: true,
58 | },
59 | disableDefaultPadding: {
60 | type: Boolean,
61 | value: true,
62 | },
63 | };
64 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/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:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;transition:-webkit-transform var(--collapse-item-transition-duration,.3s);transition:transform var(--collapse-item-transition-duration,.3s);transition:transform var(--collapse-item-transition-duration,.3s),-webkit-transform var(--collapse-item-transition-duration,.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:#c8c9cc!important;color:var(--collapse-item-title-disabled-color,#c8c9cc)!important}.van-collapse-item__title--disabled .van-cell--hover{background-color:#fff!important;background-color:var(--white,#fff)!important}.van-collapse-item__wrapper{overflow:hidden}.van-collapse-item__content{padding:15px;padding:var(--collapse-item-content-padding,15px);color:#969799;color:var(--collapse-item-content-text-color,#969799);font-size:13px;font-size:var(--collapse-item-content-font-size,13px);line-height:1.5;line-height:var(--collapse-item-content-line-height,1.5);background-color:#fff;background-color:var(--collapse-item-content-background-color,#fff)}
--------------------------------------------------------------------------------
/miniprogram/components/dist/tabbar-item/index.js:
--------------------------------------------------------------------------------
1 | import { VantComponent } from '../common/component';
2 | VantComponent({
3 | props: {
4 | info: null,
5 | name: null,
6 | icon: String,
7 | dot: Boolean,
8 | },
9 | relation: {
10 | name: 'tabbar',
11 | type: 'ancestor',
12 | current: 'tabbar-item',
13 | },
14 | data: {
15 | active: false,
16 | },
17 | methods: {
18 | onClick() {
19 | if (this.parent) {
20 | this.parent.onChange(this);
21 | }
22 | this.$emit('click');
23 | },
24 | updateFromParent() {
25 | const { parent } = this;
26 | if (!parent) {
27 | return;
28 | }
29 | const index = parent.children.indexOf(this);
30 | const parentData = parent.data;
31 | const { data } = this;
32 | const active = (data.name || index) === parentData.active;
33 | const patch = {};
34 | if (active !== data.active) {
35 | patch.active = active;
36 | }
37 | if (parentData.activeColor !== data.activeColor) {
38 | patch.activeColor = parentData.activeColor;
39 | }
40 | if (parentData.inactiveColor !== data.inactiveColor) {
41 | patch.inactiveColor = parentData.inactiveColor;
42 | }
43 | return Object.keys(patch).length > 0
44 | ? this.set(patch)
45 | : Promise.resolve();
46 | },
47 | },
48 | });
49 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/tab/index.js:
--------------------------------------------------------------------------------
1 | import { VantComponent } from '../common/component';
2 | VantComponent({
3 | relation: {
4 | name: 'tabs',
5 | type: 'ancestor',
6 | current: 'tab',
7 | },
8 | props: {
9 | dot: {
10 | type: Boolean,
11 | observer: 'update',
12 | },
13 | info: {
14 | type: null,
15 | observer: 'update',
16 | },
17 | title: {
18 | type: String,
19 | observer: 'update',
20 | },
21 | disabled: {
22 | type: Boolean,
23 | observer: 'update',
24 | },
25 | titleStyle: {
26 | type: String,
27 | observer: 'update',
28 | },
29 | name: {
30 | type: [Number, String],
31 | value: '',
32 | },
33 | },
34 | data: {
35 | active: false,
36 | },
37 | methods: {
38 | getComputedName() {
39 | if (this.data.name !== '') {
40 | return this.data.name;
41 | }
42 | return this.index;
43 | },
44 | updateRender(active, parent) {
45 | const { data: parentData } = parent;
46 | this.inited = this.inited || active;
47 | this.setData({
48 | active,
49 | shouldRender: this.inited || !parentData.lazyRender,
50 | shouldShow: active || parentData.animated,
51 | });
52 | },
53 | update() {
54 | if (this.parent) {
55 | this.parent.updateTabs();
56 | }
57 | },
58 | },
59 | });
60 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/notice-bar/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-notice-bar{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;height:40px;height:var(--notice-bar-height,40px);padding:0 16px;padding:var(--notice-bar-padding,0 16px);font-size:14px;font-size:var(--notice-bar-font-size,14px);color:#ed6a0c;color:var(--notice-bar-text-color,#ed6a0c);line-height:24px;line-height:var(--notice-bar-line-height,24px);background-color:#fffbe8;background-color:var(--notice-bar-background-color,#fffbe8)}.van-notice-bar--withicon{position:relative;padding-right:40px}.van-notice-bar--wrapable{height:auto;padding:8px 16px;padding:var(--notice-bar-wrapable-padding,8px 16px)}.van-notice-bar--wrapable .van-notice-bar__wrap{height:auto}.van-notice-bar--wrapable .van-notice-bar__content{position:relative;white-space:normal}.van-notice-bar__left-icon{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;margin-right:4px;vertical-align:middle}.van-notice-bar__left-icon,.van-notice-bar__right-icon{font-size:16px;font-size:var(--notice-bar-icon-size,16px);min-width:22px;min-width:var(--notice-bar-icon-min-width,22px)}.van-notice-bar__right-icon{position:absolute;top:10px;right:15px}.van-notice-bar__wrap{position:relative;-webkit-flex:1;flex:1;overflow:hidden;height:24px;height:var(--notice-bar-line-height,24px)}.van-notice-bar__content{position:absolute;white-space:nowrap}.van-notice-bar__content.van-ellipsis{max-width:100%}
--------------------------------------------------------------------------------
/miniprogram/components/dist/toast/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-toast{display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;box-sizing:initial;color:#fff;color:var(--toast-text-color,#fff);font-size:14px;font-size:var(--toast-font-size,14px);line-height:20px;line-height:var(--toast-line-height,20px);white-space:pre-wrap;word-wrap:break-word;background-color:rgba(0,0,0,.7);background-color:var(--toast-background-color,rgba(0,0,0,.7));border-radius:8px;border-radius:var(--toast-border-radius,8px)}.van-toast__container{position:fixed;top:50%;left:50%;width:-webkit-fit-content;width:fit-content;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);max-width:70%;max-width:var(--toast-max-width,70%)}.van-toast--text{min-width:96px;min-width:var(--toast-text-min-width,96px);padding:8px 12px;padding:var(--toast-text-padding,8px 12px)}.van-toast--icon{width:88px;width:var(--toast-default-width,88px);min-height:88px;min-height:var(--toast-default-min-height,88px);padding:16px;padding:var(--toast-default-padding,16px)}.van-toast--icon .van-toast__icon{font-size:36px;font-size:var(--toast-icon-size,36px)}.van-toast--icon .van-toast__text{padding-top:8px}.van-toast__loading{margin:10px 0}.van-toast--top{-webkit-transform:translateY(-30vh);transform:translateY(-30vh)}.van-toast--bottom{-webkit-transform:translateY(30vh);transform:translateY(30vh)}
--------------------------------------------------------------------------------
/miniprogram/components/dist/share-sheet/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
17 |
30 |
31 |
32 |
39 |
40 |
41 |
42 |
43 |
46 |
47 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/nav-bar/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-nav-bar{position:relative;text-align:center;-webkit-user-select:none;user-select:none;height:46px;height:var(--nav-bar-height,46px);line-height:46px;line-height:var(--nav-bar-height,46px);background-color:#fff;background-color:var(--nav-bar-background-color,#fff)}.van-nav-bar__content{position:relative;height:100%}.van-nav-bar__text{display:inline-block;vertical-align:middle;margin:0 -16px;margin:0 -var(--padding-md,16px);padding:0 16px;padding:0 var(--padding-md,16px);color:#1989fa;color:var(--nav-bar-text-color,#1989fa)}.van-nav-bar__text--hover{background-color:#f2f3f5;background-color:var(--active-color,#f2f3f5)}.van-nav-bar__arrow{vertical-align:middle;font-size:16px!important;font-size:var(--nav-bar-arrow-size,16px)!important;color:#1989fa!important;color:var(--nav-bar-icon-color,#1989fa)!important}.van-nav-bar__arrow+.van-nav-bar__text{margin-left:-20px;padding-left:25px}.van-nav-bar--fixed{position:fixed;top:0;left:0;width:100%}.van-nav-bar__title{max-width:60%;margin:0 auto;color:#323233;color:var(--nav-bar-title-text-color,#323233);font-weight:500;font-weight:var(--font-weight-bold,500);font-size:16px;font-size:var(--nav-bar-title-font-size,16px)}.van-nav-bar__left,.van-nav-bar__right{position:absolute;top:0;bottom:0;display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;font-size:14px;font-size:var(--font-size-md,14px)}.van-nav-bar__left{left:16px;left:var(--padding-md,16px)}.van-nav-bar__right{right:16px;right:var(--padding-md,16px)}
--------------------------------------------------------------------------------
/miniprogram/components/dist/notify/notify.js:
--------------------------------------------------------------------------------
1 | import { WHITE } from '../common/color';
2 | const defaultOptions = {
3 | selector: '#van-notify',
4 | type: 'danger',
5 | message: '',
6 | background: '',
7 | duration: 3000,
8 | zIndex: 110,
9 | top: 0,
10 | color: WHITE,
11 | safeAreaInsetTop: false,
12 | onClick: () => {},
13 | onOpened: () => {},
14 | onClose: () => {},
15 | };
16 | function parseOptions(message) {
17 | if (message == null) {
18 | return {};
19 | }
20 | return typeof message === 'string' ? { message } : message;
21 | }
22 | function getContext() {
23 | const pages = getCurrentPages();
24 | return pages[pages.length - 1];
25 | }
26 | export default function Notify(options) {
27 | options = Object.assign(
28 | Object.assign({}, defaultOptions),
29 | parseOptions(options)
30 | );
31 | const context = options.context || getContext();
32 | const notify = context.selectComponent(options.selector);
33 | delete options.context;
34 | delete options.selector;
35 | if (notify) {
36 | notify.setData(options);
37 | notify.show();
38 | return notify;
39 | }
40 | console.warn('未找到 van-notify 节点,请确认 selector 及 context 是否正确');
41 | }
42 | Notify.clear = function (options) {
43 | options = Object.assign(
44 | Object.assign({}, defaultOptions),
45 | parseOptions(options)
46 | );
47 | const context = options.context || getContext();
48 | const notify = context.selectComponent(options.selector);
49 | if (notify) {
50 | notify.hide();
51 | }
52 | };
53 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/submit-bar/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
13 |
14 | {{ tip }}
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | {{ label || '合计:' }}
23 |
24 | {{ currency }}
25 | {{ integerStr }}{{decimalStr}}
26 |
27 | {{ suffixLabel }}
28 |
29 |
39 | {{ loading ? '' : buttonText }}
40 |
41 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/dropdown-item/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
22 |
31 |
36 | {{ item.text }}
37 |
38 |
44 |
45 |
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/grid/index.js:
--------------------------------------------------------------------------------
1 | import { VantComponent } from '../common/component';
2 | import { addUnit } from '../common/utils';
3 | VantComponent({
4 | relation: {
5 | name: 'grid-item',
6 | type: 'descendant',
7 | current: 'grid',
8 | },
9 | props: {
10 | square: {
11 | type: Boolean,
12 | observer: 'updateChildren',
13 | },
14 | gutter: {
15 | type: [Number, String],
16 | value: 0,
17 | observer: 'updateChildren',
18 | },
19 | clickable: {
20 | type: Boolean,
21 | observer: 'updateChildren',
22 | },
23 | columnNum: {
24 | type: Number,
25 | value: 4,
26 | observer: 'updateChildren',
27 | },
28 | center: {
29 | type: Boolean,
30 | value: true,
31 | observer: 'updateChildren',
32 | },
33 | border: {
34 | type: Boolean,
35 | value: true,
36 | observer: 'updateChildren',
37 | },
38 | direction: {
39 | type: String,
40 | observer: 'updateChildren',
41 | },
42 | iconSize: {
43 | type: String,
44 | observer: 'updateChildren',
45 | },
46 | },
47 | data: {
48 | viewStyle: '',
49 | },
50 | created() {
51 | const { gutter } = this.data;
52 | if (gutter) {
53 | this.setData({
54 | viewStyle: `padding-left: ${addUnit(gutter)}`,
55 | });
56 | }
57 | },
58 | methods: {
59 | updateChildren() {
60 | this.children.forEach((child) => {
61 | child.updateStyle();
62 | });
63 | },
64 | },
65 | });
66 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/notify/index.js:
--------------------------------------------------------------------------------
1 | import { VantComponent } from '../common/component';
2 | import { WHITE } from '../common/color';
3 | VantComponent({
4 | props: {
5 | message: String,
6 | background: String,
7 | type: {
8 | type: String,
9 | value: 'danger',
10 | },
11 | color: {
12 | type: String,
13 | value: WHITE,
14 | },
15 | duration: {
16 | type: Number,
17 | value: 3000,
18 | },
19 | zIndex: {
20 | type: Number,
21 | value: 110,
22 | },
23 | safeAreaInsetTop: {
24 | type: Boolean,
25 | value: false,
26 | },
27 | top: null,
28 | },
29 | data: {
30 | show: false,
31 | },
32 | created() {
33 | const { statusBarHeight } = wx.getSystemInfoSync();
34 | this.setData({ statusBarHeight });
35 | },
36 | methods: {
37 | show() {
38 | const { duration, onOpened } = this.data;
39 | clearTimeout(this.timer);
40 | this.setData({ show: true });
41 | wx.nextTick(onOpened);
42 | if (duration > 0 && duration !== Infinity) {
43 | this.timer = setTimeout(() => {
44 | this.hide();
45 | }, duration);
46 | }
47 | },
48 | hide() {
49 | const { onClose } = this.data;
50 | clearTimeout(this.timer);
51 | this.setData({ show: false });
52 | wx.nextTick(onClose);
53 | },
54 | onTap(event) {
55 | const { onClick } = this.data;
56 | if (onClick) {
57 | onClick(event.detail);
58 | }
59 | },
60 | },
61 | });
62 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/stepper/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
15 |
26 |
37 |
38 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/dropdown-menu/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-dropdown-menu{display:-webkit-flex;display:flex;box-shadow:0 2px 12px rgba(100,101,102,.12);-webkit-user-select:none;user-select:none;height:50px;height:var(--dropdown-menu-height,50px);background-color:#fff;background-color:var(--dropdown-menu-background-color,#fff)}.van-dropdown-menu__item{display:-webkit-flex;display:flex;-webkit-flex:1;flex:1;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;min-width:0}.van-dropdown-menu__item:active{opacity:.7}.van-dropdown-menu__item--disabled:active{opacity:1}.van-dropdown-menu__item--disabled .van-dropdown-menu__title{color:#969799;color:var(--dropdown-menu-title-disabled-text-color,#969799)}.van-dropdown-menu__title{position:relative;box-sizing:border-box;max-width:100%;padding:0 8px;padding:var(--dropdown-menu-title-padding,0 8px);color:#323233;color:var(--dropdown-menu-title-text-color,#323233);font-size:15px;font-size:var(--dropdown-menu-title-font-size,15px);line-height:18px;line-height:var(--dropdown-menu-title-line-height,18px)}.van-dropdown-menu__title:after{position:absolute;top:50%;right:-4px;margin-top:-5px;border-color:transparent transparent currentcolor currentcolor;border-style:solid;border-width:3px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);opacity:.8;content:""}.van-dropdown-menu__title--active{color:#ee0a24;color:var(--dropdown-menu-title-active-text-color,#ee0a24)}.van-dropdown-menu__title--down:after{margin-top:-1px;-webkit-transform:rotate(135deg);transform:rotate(135deg)}
--------------------------------------------------------------------------------
/miniprogram/components/dist/nav-bar/index.js:
--------------------------------------------------------------------------------
1 | import { VantComponent } from '../common/component';
2 | import { getRect, getSystemInfoSync } from '../common/utils';
3 | VantComponent({
4 | classes: ['title-class'],
5 | props: {
6 | title: String,
7 | fixed: {
8 | type: Boolean,
9 | observer: 'setHeight',
10 | },
11 | placeholder: {
12 | type: Boolean,
13 | observer: 'setHeight',
14 | },
15 | leftText: String,
16 | rightText: String,
17 | customStyle: String,
18 | leftArrow: Boolean,
19 | border: {
20 | type: Boolean,
21 | value: true,
22 | },
23 | zIndex: {
24 | type: Number,
25 | value: 1,
26 | },
27 | safeAreaInsetTop: {
28 | type: Boolean,
29 | value: true,
30 | },
31 | },
32 | data: {
33 | height: 46,
34 | },
35 | created() {
36 | const { statusBarHeight } = getSystemInfoSync();
37 | this.setData({
38 | statusBarHeight,
39 | height: 46 + statusBarHeight,
40 | });
41 | },
42 | mounted() {
43 | this.setHeight();
44 | },
45 | methods: {
46 | onClickLeft() {
47 | this.$emit('click-left');
48 | },
49 | onClickRight() {
50 | this.$emit('click-right');
51 | },
52 | setHeight() {
53 | if (!this.data.fixed || !this.data.placeholder) {
54 | return;
55 | }
56 | wx.nextTick(() => {
57 | getRect.call(this, '.van-nav-bar').then((res) => {
58 | this.setData({ height: res.height });
59 | });
60 | });
61 | },
62 | },
63 | });
64 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/switch/index.js:
--------------------------------------------------------------------------------
1 | import { VantComponent } from '../common/component';
2 | import { BLUE, GRAY_DARK } from '../common/color';
3 | VantComponent({
4 | field: true,
5 | classes: ['node-class'],
6 | props: {
7 | checked: {
8 | type: null,
9 | observer(value) {
10 | const loadingColor = this.getLoadingColor(value);
11 | this.setData({ value, loadingColor });
12 | },
13 | },
14 | loading: Boolean,
15 | disabled: Boolean,
16 | activeColor: String,
17 | inactiveColor: String,
18 | size: {
19 | type: String,
20 | value: '30px',
21 | },
22 | activeValue: {
23 | type: null,
24 | value: true,
25 | },
26 | inactiveValue: {
27 | type: null,
28 | value: false,
29 | },
30 | },
31 | created() {
32 | const { checked: value } = this.data;
33 | const loadingColor = this.getLoadingColor(value);
34 | this.setData({ value, loadingColor });
35 | },
36 | methods: {
37 | getLoadingColor(checked) {
38 | const { activeColor, inactiveColor } = this.data;
39 | return checked ? activeColor || BLUE : inactiveColor || GRAY_DARK;
40 | },
41 | onClick() {
42 | const { activeValue, inactiveValue } = this.data;
43 | if (!this.data.disabled && !this.data.loading) {
44 | const checked = this.data.checked === activeValue;
45 | const value = checked ? inactiveValue : activeValue;
46 | this.$emit('input', value);
47 | this.$emit('change', value);
48 | }
49 | },
50 | },
51 | });
52 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/action-sheet/index.js:
--------------------------------------------------------------------------------
1 | import { VantComponent } from '../common/component';
2 | import { button } from '../mixins/button';
3 | import { openType } from '../mixins/open-type';
4 | VantComponent({
5 | mixins: [button, openType],
6 | props: {
7 | show: Boolean,
8 | title: String,
9 | cancelText: String,
10 | description: String,
11 | round: {
12 | type: Boolean,
13 | value: true,
14 | },
15 | zIndex: {
16 | type: Number,
17 | value: 100,
18 | },
19 | actions: {
20 | type: Array,
21 | value: [],
22 | },
23 | overlay: {
24 | type: Boolean,
25 | value: true,
26 | },
27 | closeOnClickOverlay: {
28 | type: Boolean,
29 | value: true,
30 | },
31 | closeOnClickAction: {
32 | type: Boolean,
33 | value: true,
34 | },
35 | safeAreaInsetBottom: {
36 | type: Boolean,
37 | value: true,
38 | },
39 | },
40 | methods: {
41 | onSelect(event) {
42 | const { index } = event.currentTarget.dataset;
43 | const item = this.data.actions[index];
44 | if (item && !item.disabled && !item.loading) {
45 | this.$emit('select', item);
46 | if (this.data.closeOnClickAction) {
47 | this.onClose();
48 | }
49 | }
50 | },
51 | onCancel() {
52 | this.$emit('cancel');
53 | },
54 | onClose() {
55 | this.$emit('close');
56 | },
57 | onClickOverlay() {
58 | this.$emit('click-overlay');
59 | this.onClose();
60 | },
61 | },
62 | });
63 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/cell/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
10 |
16 |
17 |
18 |
22 | {{ title }}
23 |
24 |
25 |
26 |
27 | {{ label }}
28 |
29 |
30 |
31 |
32 | {{ value }}
33 |
34 |
35 |
36 |
42 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/tabbar/index.js:
--------------------------------------------------------------------------------
1 | import { VantComponent } from '../common/component';
2 | VantComponent({
3 | relation: {
4 | name: 'tabbar-item',
5 | type: 'descendant',
6 | current: 'tabbar',
7 | linked(target) {
8 | target.parent = this;
9 | target.updateFromParent();
10 | },
11 | unlinked() {
12 | this.updateChildren();
13 | },
14 | },
15 | props: {
16 | active: {
17 | type: null,
18 | observer: 'updateChildren',
19 | },
20 | activeColor: {
21 | type: String,
22 | observer: 'updateChildren',
23 | },
24 | inactiveColor: {
25 | type: String,
26 | observer: 'updateChildren',
27 | },
28 | fixed: {
29 | type: Boolean,
30 | value: true,
31 | },
32 | border: {
33 | type: Boolean,
34 | value: true,
35 | },
36 | zIndex: {
37 | type: Number,
38 | value: 1,
39 | },
40 | safeAreaInsetBottom: {
41 | type: Boolean,
42 | value: true,
43 | },
44 | },
45 | methods: {
46 | updateChildren() {
47 | const { children } = this;
48 | if (!Array.isArray(children) || !children.length) {
49 | return Promise.resolve();
50 | }
51 | return Promise.all(children.map((child) => child.updateFromParent()));
52 | },
53 | onChange(child) {
54 | const index = this.children.indexOf(child);
55 | const active = child.data.name || index;
56 | if (active !== this.data.active) {
57 | this.$emit('change', active);
58 | }
59 | },
60 | },
61 | });
62 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/submit-bar/index.js:
--------------------------------------------------------------------------------
1 | import { VantComponent } from '../common/component';
2 | VantComponent({
3 | classes: ['bar-class', 'price-class', 'button-class'],
4 | props: {
5 | tip: {
6 | type: null,
7 | observer: 'updateTip',
8 | },
9 | tipIcon: String,
10 | type: Number,
11 | price: {
12 | type: null,
13 | observer: 'updatePrice',
14 | },
15 | label: String,
16 | loading: Boolean,
17 | disabled: Boolean,
18 | buttonText: String,
19 | currency: {
20 | type: String,
21 | value: '¥',
22 | },
23 | buttonType: {
24 | type: String,
25 | value: 'danger',
26 | },
27 | decimalLength: {
28 | type: Number,
29 | value: 2,
30 | observer: 'updatePrice',
31 | },
32 | suffixLabel: String,
33 | safeAreaInsetBottom: {
34 | type: Boolean,
35 | value: true,
36 | },
37 | },
38 | methods: {
39 | updatePrice() {
40 | const { price, decimalLength } = this.data;
41 | const priceStrArr =
42 | typeof price === 'number' &&
43 | (price / 100).toFixed(decimalLength).split('.');
44 | this.setData({
45 | hasPrice: typeof price === 'number',
46 | integerStr: priceStrArr && priceStrArr[0],
47 | decimalStr: decimalLength && priceStrArr ? `.${priceStrArr[1]}` : '',
48 | });
49 | },
50 | updateTip() {
51 | this.setData({ hasTip: typeof this.data.tip === 'string' });
52 | },
53 | onSubmit(event) {
54 | this.$emit('submit', event.detail);
55 | },
56 | },
57 | });
58 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/goods-action-button/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';:host{-webkit-flex:1;flex:1}.van-goods-action-button{--button-warning-background-color:linear-gradient(90deg,#ffd01e,#ff8917);--button-warning-background-color:var(--goods-action-button-warning-color,linear-gradient(90deg,#ffd01e,#ff8917));--button-danger-background-color:linear-gradient(90deg,#ff6034,#ee0a24);--button-danger-background-color:var(--goods-action-button-danger-color,linear-gradient(90deg,#ff6034,#ee0a24));--button-default-height:40px;--button-default-height:var(--goods-action-button-height,40px);--button-line-height:20px;--button-line-height:var(--goods-action-button-line-height,20px);--button-plain-background-color:#fff;--button-plain-background-color:var(--goods-action-button-plain-color,#fff);display:block;--button-border-width:0}.van-goods-action-button--first{margin-left:5px;--button-border-radius:20px 0 0 20px;--button-border-radius:var(--goods-action-button-border-radius,20px) 0 0 var(--goods-action-button-border-radius,20px)}.van-goods-action-button--last{margin-right:5px;--button-border-radius:0 20px 20px 0;--button-border-radius:0 var(--goods-action-button-border-radius,20px) var(--goods-action-button-border-radius,20px) 0}.van-goods-action-button--first.van-goods-action-button--last{--button-border-radius:20px;--button-border-radius:var(--goods-action-button-border-radius,20px)}.van-goods-action-button--plain{--button-border-width:1px}.van-goods-action-button__inner{width:100%;font-weight:500!important;font-weight:var(--font-weight-bold,500)!important}@media (max-width:321px){.van-goods-action-button{font-size:13px}}
--------------------------------------------------------------------------------
/miniprogram/components/dist/nav-bar/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
10 |
11 |
12 |
13 |
19 | {{ leftText }}
25 |
26 |
27 |
28 |
29 | {{ title }}
30 |
31 |
32 |
33 | {{ rightText }}
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/tree-select/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
10 |
21 |
22 |
23 |
24 |
25 |
32 | {{ item.text }}
33 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/miniprogram/components/dist/grid-item/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-grid-item{position:relative;float:left;box-sizing:border-box}.van-grid-item--square{height:0}.van-grid-item__content{display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;box-sizing:border-box;height:100%;padding:16px 8px;padding:var(--grid-item-content-padding,16px 8px);background-color:#fff;background-color:var(--grid-item-content-background-color,#fff)}.van-grid-item__content:after{z-index:1;border-width:0 1px 1px 0;border-bottom-width:var(--border-width-base,1px);border-right-width:var(--border-width-base,1px);border-top-width:0}.van-grid-item__content--surround:after{border-width:1px;border-width:var(--border-width-base,1px)}.van-grid-item__content--center{-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center}.van-grid-item__content--square{position:absolute;top:0;right:0;left:0}.van-grid-item__content--horizontal{-webkit-flex-direction:row;flex-direction:row}.van-grid-item__content--horizontal .van-grid-item__icon+.van-grid-item__text{margin-top:0;margin-left:8px}.van-grid-item__content--clickable:active{background-color:#f2f3f5;background-color:var(--grid-item-content-active-color,#f2f3f5)}.van-grid-item__icon{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;font-size:26px;font-size:var(--grid-item-icon-size,26px);height:26px;height:var(--grid-item-icon-size,26px)}.van-grid-item__text{word-wrap:break-word;color:#646566;color:var(--grid-item-text-color,#646566);font-size:12px;font-size:var(--grid-item-text-font-size,12px)}.van-grid-item__icon+.van-grid-item__text{margin-top:8px}
--------------------------------------------------------------------------------
/miniprogram/components/dist/field/props.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | export declare const commonProps: {
3 | value: {
4 | type: StringConstructor;
5 | observer(
6 | this: WechatMiniprogram.Component.TrivialInstance,
7 | value: string
8 | ): void;
9 | };
10 | placeholder: StringConstructor;
11 | placeholderStyle: StringConstructor;
12 | placeholderClass: StringConstructor;
13 | disabled: BooleanConstructor;
14 | maxlength: {
15 | type: NumberConstructor;
16 | value: number;
17 | };
18 | cursorSpacing: {
19 | type: NumberConstructor;
20 | value: number;
21 | };
22 | autoFocus: BooleanConstructor;
23 | focus: BooleanConstructor;
24 | cursor: {
25 | type: NumberConstructor;
26 | value: number;
27 | };
28 | selectionStart: {
29 | type: NumberConstructor;
30 | value: number;
31 | };
32 | selectionEnd: {
33 | type: NumberConstructor;
34 | value: number;
35 | };
36 | adjustPosition: {
37 | type: BooleanConstructor;
38 | value: boolean;
39 | };
40 | holdKeyboard: BooleanConstructor;
41 | };
42 | export declare const inputProps: {
43 | type: {
44 | type: StringConstructor;
45 | value: string;
46 | };
47 | password: BooleanConstructor;
48 | confirmType: StringConstructor;
49 | confirmHold: BooleanConstructor;
50 | };
51 | export declare const textareaProps: {
52 | autoHeight: BooleanConstructor;
53 | fixed: BooleanConstructor;
54 | showConfirmBar: {
55 | type: BooleanConstructor;
56 | value: boolean;
57 | };
58 | disableDefaultPadding: {
59 | type: BooleanConstructor;
60 | value: boolean;
61 | };
62 | };
63 |
--------------------------------------------------------------------------------