diff --git a/dist/actionsheet/index.js b/dist/actionsheet/index.js
deleted file mode 100644
index 46056ed7..00000000
--- a/dist/actionsheet/index.js
+++ /dev/null
@@ -1,42 +0,0 @@
-'use strict';
-
-Component({
- externalClasses: ['mask-class', 'container-class'],
- properties: {
- actions: {
- type: Array,
- value: []
- },
- show: {
- type: Boolean,
- value: false
- },
- cancelWithMask: {
- type: Boolean,
- value: true
- },
- cancelText: {
- type: String,
- value: ''
- }
- },
- methods: {
- onMaskClick: function onMaskClick() {
- if (this.data.cancelWithMask) {
- this.cancelClick();
- }
- },
- cancelClick: function cancelClick() {
- this.triggerEvent('cancel');
- },
- handleBtnClick: function handleBtnClick(_ref) {
- var _ref$currentTarget = _ref.currentTarget,
- currentTarget = _ref$currentTarget === undefined ? {} : _ref$currentTarget;
-
- var dataset = currentTarget.dataset || {};
- var index = dataset.index;
-
- this.triggerEvent('actionclick', { index: index });
- }
- }
-});
\ No newline at end of file
diff --git a/dist/actionsheet/index.json b/dist/actionsheet/index.json
deleted file mode 100644
index b5676868..00000000
--- a/dist/actionsheet/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-button": "../button/index"
- }
-}
diff --git a/dist/actionsheet/index.wxml b/dist/actionsheet/index.wxml
deleted file mode 100644
index 63c0816d..00000000
--- a/dist/actionsheet/index.wxml
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-
-
-
-
-
- {{ item.name }}
-
- {{ item.subname }}
-
-
-
-
-
-
-
-
diff --git a/dist/actionsheet/index.wxss b/dist/actionsheet/index.wxss
deleted file mode 100644
index 4bb37b21..00000000
--- a/dist/actionsheet/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-actionsheet{background-color:#f8f8f8}.van-actionsheet__mask{position:fixed;top:0;left:0;right:0;bottom:0;z-index:10;background:rgba(0,0,0,.7);display:none}.van-actionsheet__container{position:fixed;left:0;right:0;bottom:0;background:#f8f8f8;-webkit-transform:translate3d(0,50%,0);transform:translate3d(0,50%,0);-webkit-transform-origin:center;transform-origin:center;-webkit-transition:all .2s ease;transition:all .2s ease;z-index:11;opacity:0;visibility:hidden}.van-actionsheet__button{margin-bottom:0!important}.van-actionsheet__footer .van-actionsheet__button{background:#fff}.van-actionsheet__button-content{display:-webkit-box;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row;-webkit-box-pack:center;justify-content:center}.van-actionsheet__subname{color:#999}.van-actionsheet__name,.van-actionsheet__subname{height:45px;line-height:45px}.van-actionsheet__button.van-button:last-child::after{border-bottom-width:0}.van-actionsheet__subname{margin-left:2px;font-size:12px}.van-actionsheet__footer{margin-top:10px}.van-actionsheet__button--loading .van-actionsheet__subname{color:transparent}.van-actionsheet--show .van-actionsheet__container{opacity:1;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);visibility:visible}.van-actionsheet--show .van-actionsheet__mask{display:block}
\ No newline at end of file
diff --git a/dist/badge/index.js b/dist/badge/index.js
deleted file mode 100644
index 7672b940..00000000
--- a/dist/badge/index.js
+++ /dev/null
@@ -1,27 +0,0 @@
-'use strict';
-
-var DEFAULT_COLOR = '#fff';
-var DEFAULT_BACKGROUND_COLOR = '#f44';
-var DEFAULT_FONT_SIZE = 10;
-var DEFAULT_BOX_SHADOW = '0 0 0 2px #fff';
-
-Component({
- properties: {
- color: {
- type: String,
- value: DEFAULT_COLOR
- },
- backgroundColor: {
- type: String,
- value: DEFAULT_BACKGROUND_COLOR
- },
- fontSize: {
- type: Number,
- value: DEFAULT_FONT_SIZE
- },
- boxShadow: {
- type: String,
- value: DEFAULT_BOX_SHADOW
- }
- }
-});
\ No newline at end of file
diff --git a/dist/badge/index.json b/dist/badge/index.json
deleted file mode 100644
index 467ce294..00000000
--- a/dist/badge/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/dist/badge/index.wxml b/dist/badge/index.wxml
deleted file mode 100644
index 31b18476..00000000
--- a/dist/badge/index.wxml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
diff --git a/dist/badge/index.wxss b/dist/badge/index.wxss
deleted file mode 100644
index fa21f8fa..00000000
--- a/dist/badge/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-badge{position:relative}.van-badge__text{position:absolute;top:-.8em;right:0;height:1.6em;min-width:1.6em;line-height:1.6;padding:0 .4em;font-size:20px;border-radius:.8em;background:#f44;color:#fff;text-align:center;white-space:nowrap;-webkit-transform:translateX(50%) scale(.5);transform:translateX(50%) scale(.5);-webkit-transform-origin:center;transform-origin:center;z-index:10;box-shadow:0 0 0 2px #fff;box-sizing:border-box}
\ No newline at end of file
diff --git a/dist/btn/index.js b/dist/btn/index.js
deleted file mode 100644
index 9f73bfb3..00000000
--- a/dist/btn/index.js
+++ /dev/null
@@ -1,61 +0,0 @@
-'use strict';
-
-var nativeButtonBehavior = require('./native-button-behaviors');
-
-Component({
- externalClasses: ['custom-class', 'theme-class'],
- behaviors: [nativeButtonBehavior],
- relations: {
- '../button-group/index': {
- type: 'parent',
- linked: function linked() {
- this.setData({ inGroup: true });
- },
- unlinked: function unlinked() {
- this.setData({ inGroup: false });
- }
- }
- },
- properties: {
- type: {
- type: String,
- value: ''
- },
- size: {
- type: String,
- value: ''
- },
- plain: {
- type: Boolean,
- value: false
- },
- disabled: {
- type: Boolean,
- value: false
- },
- loading: {
- type: Boolean,
- value: false
- }
- },
-
- data: {
- inGroup: false,
- isLast: false
- },
-
- methods: {
- handleTap: function handleTap() {
- if (this.data.disabled) {
- this.triggerEvent('disabledclick');
- return;
- }
- this.triggerEvent('buttonclick');
- },
- switchLastButtonStatus: function switchLastButtonStatus() {
- var isLast = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
-
- this.setData({ isLast: isLast });
- }
- }
-});
\ No newline at end of file
diff --git a/dist/btn/index.json b/dist/btn/index.json
deleted file mode 100644
index 32640e0d..00000000
--- a/dist/btn/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
\ No newline at end of file
diff --git a/dist/btn/index.wxml b/dist/btn/index.wxml
deleted file mode 100644
index 0290c18a..00000000
--- a/dist/btn/index.wxml
+++ /dev/null
@@ -1,24 +0,0 @@
-
diff --git a/dist/btn/index.wxss b/dist/btn/index.wxss
deleted file mode 100644
index 4880f450..00000000
--- a/dist/btn/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-button{position:relative;color:#333;background-color:#fff;padding-left:15px;padding-right:15px;border-radius:2px;font-size:16px;line-height:45px;height:45px;box-sizing:border-box;text-decoration:none;text-align:center;vertical-align:middle;overflow:visible}.van-button--group{margin-bottom:10px}.van-button::after{content:'';position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #e5e5e5;border-width:1px;border-radius:4px}.van-button--primary{color:#fff;background-color:#4b0}.van-button--primary::after{border-color:#0a0}.van-button--warn{color:#fff;background-color:#f85}.van-button--warn::after{border-color:#f85}.van-button--danger{color:#fff;background-color:#f44}.van-button--danger::after{border-color:#e33}.van-button--small{display:inline-block;height:30px;line-height:30px;font-size:12px}.van-button--small.van-button--group{margin-bottom:0;margin-right:5px}.van-button--mini{display:inline-block;line-height:21px;height:22px;font-size:10px;padding-left:5px;padding-right:5px}.van-button--mini.van-button--group{margin-bottom:0;margin-right:5px}.van-button--large{border-radius:0;border:none;line-height:50px;height:50px}.van-button--large.van-button--group{margin-bottom:0}.van-button--plain.van-button{background-color:transparent}.van-button--plain.van-button--primary{color:#06bf04}.van-button--plain.van-button--warn{color:#f60}.van-button--plain.van-button--danger{color:#f44}.button-hover{opacity:.9}.van-button--loading{color:transparent;opacity:1}.van-button--loading::before{position:absolute;left:50%;top:50%;content:' ';width:16px;height:16px;margin-left:-8px;margin-top:-8px;border:3px solid #e5e5e5;border-color:#666 #e5e5e5 #e5e5e5 #e5e5e5;border-radius:8px;box-sizing:border-box;-webkit-animation:button-spin .6s linear;animation:button-spin .6s linear;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.van-button--danger.van-button--loading::before,.van-button--primary.van-button--loading::before,.van-button--warn.van-button--loading::before{border-color:#fff rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.1)}@-webkit-keyframes button-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes button-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.van-button.van-button--disabled{color:#999!important;background:#f8f8f8!important;border-color:#e5e5e5!important;cursor:not-allowed!important;opacity:1!important}.van-button.van-button--disabled::after{border-color:#e5e5e5!important}.van-button--group.van-button--last{margin-bottom:0;margin-right:0}
\ No newline at end of file
diff --git a/dist/btn/native-button-behaviors.js b/dist/btn/native-button-behaviors.js
deleted file mode 100644
index 3bd240d8..00000000
--- a/dist/btn/native-button-behaviors.js
+++ /dev/null
@@ -1,74 +0,0 @@
-'use strict';
-
-module.exports = Behavior({
- properties: {
- loading: Boolean,
- // 在自定义组件中,无法与外界的 form 组件联动,暂时不开放
- // formType: String,
- openType: String,
- appParameter: String,
- // 暂时不开放,直接传入无法设置样式
- // hoverClass: {
- // type: String,
- // value: 'button-hover'
- // },
- hoverStopPropagation: Boolean,
- hoverStartTime: {
- type: Number,
- value: 20
- },
- hoverStayTime: {
- type: Number,
- value: 70
- },
- lang: {
- type: String,
- value: 'en'
- },
- sessionFrom: {
- type: String,
- value: ''
- },
- sendMessageTitle: String,
- sendMessagePath: String,
- sendMessageImg: String,
- showMessageCard: String
- },
- methods: {
- bindgetuserinfo: function bindgetuserinfo() {
- var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
- _ref$detail = _ref.detail,
- detail = _ref$detail === undefined ? {} : _ref$detail;
-
- this.triggerEvent('getuserinfo', detail);
- },
- bindcontact: function bindcontact() {
- var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
- _ref2$detail = _ref2.detail,
- detail = _ref2$detail === undefined ? {} : _ref2$detail;
-
- this.triggerEvent('contact', detail);
- },
- bindgetphonenumber: function bindgetphonenumber() {
- var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
- _ref3$detail = _ref3.detail,
- detail = _ref3$detail === undefined ? {} : _ref3$detail;
-
- this.triggerEvent('getphonenumber', detail);
- },
- bindopensetting: function bindopensetting() {
- var _ref4 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
- _ref4$detail = _ref4.detail,
- detail = _ref4$detail === undefined ? {} : _ref4$detail;
-
- this.triggerEvent('opensetting', detail);
- },
- binderror: function binderror() {
- var _ref5 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
- _ref5$detail = _ref5.detail,
- detail = _ref5$detail === undefined ? {} : _ref5$detail;
-
- this.triggerEvent('error', detail);
- }
- }
-});
\ No newline at end of file
diff --git a/dist/capsule/index.js b/dist/capsule/index.js
deleted file mode 100644
index 7b8452cc..00000000
--- a/dist/capsule/index.js
+++ /dev/null
@@ -1,31 +0,0 @@
-'use strict';
-
-Component({
- externalClasses: ['custom-class'],
- /**
- * 组件的属性列表
- * 用于组件自定义设置
- */
- properties: {
- // 颜色状态
- type: {
- type: String,
- value: ''
- },
- // 自定义颜色
- color: {
- type: String,
- value: ''
- },
- // 左侧内容
- leftText: {
- type: String,
- value: ''
- },
- // 右侧内容
- rightText: {
- type: String,
- value: ''
- }
- }
-});
\ No newline at end of file
diff --git a/dist/capsule/index.json b/dist/capsule/index.json
deleted file mode 100644
index 467ce294..00000000
--- a/dist/capsule/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/dist/capsule/index.wxml b/dist/capsule/index.wxml
deleted file mode 100644
index f5026813..00000000
--- a/dist/capsule/index.wxml
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
- {{ leftText }}
- {{ rightText }}
-
-
- {{ leftText }}
- {{ rightText }}
-
-
-
diff --git a/dist/capsule/index.wxss b/dist/capsule/index.wxss
deleted file mode 100644
index 31c7de76..00000000
--- a/dist/capsule/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-capsule{display:inline-block;font-size:12px;vertical-align:middle;line-height:19px;-webkit-transform:scale(.83);transform:scale(.83)}.van-capsule__left,.van-capsule__right{display:inline-block;line-height:17px;height:19px;vertical-align:middle;box-sizing:border-box}.van-capsule__left{padding:0 2px;color:#fff;background:#999;border-radius:2px 0 0 2px;border:1rpx solid #999}.van-capsule__right{padding:0 5px;color:#999;border-radius:0 2px 2px 0;border:1rpx solid #999}.van-capsule--danger .van-capsule__left{color:#fff;background:#f24544;border-color:#f24544}.van-capsule--danger .van-capsule__right{color:#f24544;border-color:#f24544}
\ No newline at end of file
diff --git a/dist/card/index.js b/dist/card/index.js
deleted file mode 100644
index fbc3c037..00000000
--- a/dist/card/index.js
+++ /dev/null
@@ -1,26 +0,0 @@
-'use strict';
-
-Component({
- options: {
- multipleSlots: true
- },
-
- externalClasses: ['card-class', 'thumb-class'],
-
- properties: {
- useThumbSlot: {
- type: Boolean,
- value: false
- },
- useDetailSlot: {
- type: Boolean,
- value: false
- },
- thumb: String,
- price: String,
- title: String,
- num: Number,
- desc: String,
- status: String
- }
-});
\ No newline at end of file
diff --git a/dist/card/index.json b/dist/card/index.json
deleted file mode 100644
index 467ce294..00000000
--- a/dist/card/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/dist/card/index.wxml b/dist/card/index.wxml
deleted file mode 100644
index 5f616f22..00000000
--- a/dist/card/index.wxml
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
- ¥ {{ price }}
-
- {{ title }}
-
-
-
-
- x {{ num }}
-
- {{ desc }}
-
-
-
-
- {{ status }}
-
-
-
-
diff --git a/dist/card/index.wxss b/dist/card/index.wxss
deleted file mode 100644
index 986edffd..00000000
--- a/dist/card/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-c-red{color:#f44!important}.van-c-gray{color:#c9c9c9!important}.van-c-gray-dark{color:#999!important}.van-c-gray-darker{color:#666!important}.van-c-black{color:#333!important}.van-c-blue{color:#38f!important}.van-c-green{color:#06bf04!important}.van-pull-left{float:left}.van-pull-right{float:right}.van-center{text-align:center}.van-right{text-align:right}.van-text-deleted{text-decoration:line-through}.van-font-8{font-size:8px}.van-font-10{font-size:10px}.van-font-12{font-size:12px}.van-font-14{font-size:14px}.van-font-16{font-size:16px}.van-font-18{font-size:18px}.van-font-20{font-size:20px}.van-font-22{font-size:22px}.van-font-24{font-size:24px}.van-font-26{font-size:26px}.van-font-30{font-size:30px}.van-font-bold{font-weight:700}.van-arrow{position:absolute;right:15px;top:50%;display:inline-block;height:6px;width:6px;border-width:2px 2px 0 0;border-color:#c8c8c8;border-style:solid;-webkit-transform:translateY(-50%) matrix(.71,.71,-.71,.71,0,0);transform:translateY(-50%) matrix(.71,.71,-.71,.71,0,0)}.van-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal}.van-ellipsis--l2{max-height:40px;line-height:20px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.van-ellipsis--l3{max-height:60px;line-height:20px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.van-clearfix{zoom:1}.van-clearfix::after{content:'';display:table;clear:both}.van-c-red{color:#f44}.van-c-black{color:#000}.van-c-green{color:#06bf04}.van-c-blue{color:#38f}.van-c-gray{color:#c9c9c9}.van-c-gray-dark{color:#999}.van-c-gray-darker{color:#666}.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{content:'';position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #e5e5e5}.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}.van-card{display:-webkit-box;display:flex;margin-left:0;padding:5px 15px;overflow:hidden;position:relative;font-size:14px}.van-card__thumb{width:90px;height:90px;position:relative;margin-left:auto;margin-right:auto;overflow:hidden;background-size:cover}.van-card__img{position:absolute;top:0;left:0;right:0;bottom:0;width:auto;height:auto;max-width:100%;max-height:100%}.van-card__detail{-webkit-box-flex:1;flex:1;margin-left:10px;position:relative}.van-card__detail-row{overflow:hidden;line-height:20px;min-height:20px;margin-bottom:3px}.van-card__right-col{float:right}.van-card__left-col{margin-right:80px}
\ No newline at end of file
diff --git a/dist/cell-group/index.js b/dist/cell-group/index.js
deleted file mode 100644
index 14aa1674..00000000
--- a/dist/cell-group/index.js
+++ /dev/null
@@ -1,75 +0,0 @@
-'use strict';
-
-var _relations;
-
-var CELL_PATH = '../cell/index';
-var FIELD_PATH = '../field/index';
-
-Component({
- properties: {
- titleWidth: {
- type: Number,
- value: null
- },
- border: {
- type: Boolean,
- value: false
- }
- },
- relations: (_relations = {}, _relations[CELL_PATH] = {
- type: 'child',
- linked: function linked() {
- this._updateIsLastElement(CELL_PATH);
- },
- linkChanged: function linkChanged() {
- this._updateIsLastElement(CELL_PATH);
- },
- unlinked: function unlinked() {
- this._updateIsLastElement(CELL_PATH);
- }
- }, _relations[FIELD_PATH] = {
- type: 'child',
- linked: function linked() {
- this._updateIsLastElement(FIELD_PATH);
- },
- linkChanged: function linkChanged() {
- this._updateIsLastElement(FIELD_PATH);
- },
- unlinked: function unlinked() {
- this._updateIsLastElement(FIELD_PATH);
- }
- }, _relations),
-
- data: {
- elementUpdateTimeout: 0
- },
-
- methods: {
- _updateIsLastElement: function _updateIsLastElement(childPath) {
- var _this = this;
-
- // 用 setTimeout 减少计算次数
- if (this.data.elementUpdateTimeout > 0) {
- return;
- }
-
- var elementUpdateTimeout = setTimeout(function () {
- _this.setData({ elementUpdateTimeout: 0 });
- var elements = _this.getRelationNodes(childPath);
- var titleWidth = _this.properties.titleWidth;
-
-
- if (elements.length > 0) {
- var lastIndex = elements.length - 1;
-
- elements.forEach(function (cell, index) {
- titleWidth && cell.setTitleWidth(titleWidth);
- cell.updateIsLastElement(index === lastIndex);
- });
- }
- });
-
- this.setData({ elementUpdateTimeout: elementUpdateTimeout });
- }
- }
-});
\ No newline at end of file
diff --git a/dist/cell-group/index.json b/dist/cell-group/index.json
deleted file mode 100644
index 32640e0d..00000000
--- a/dist/cell-group/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
\ No newline at end of file
diff --git a/dist/cell-group/index.wxml b/dist/cell-group/index.wxml
deleted file mode 100644
index f84d06f4..00000000
--- a/dist/cell-group/index.wxml
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/dist/cell-group/index.wxss b/dist/cell-group/index.wxss
deleted file mode 100644
index aec96ef3..00000000
--- a/dist/cell-group/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.cell-group{position:relative;background-color:#fff;overflow:hidden}.cell-group--with-border::after{content:'';position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #e5e5e5;border-top-width:1px;border-bottom-width:1px}
\ No newline at end of file
diff --git a/dist/cell/index.js b/dist/cell/index.js
deleted file mode 100644
index 13ebdf5e..00000000
--- a/dist/cell/index.js
+++ /dev/null
@@ -1,109 +0,0 @@
-'use strict';
-
-var warn = function warn(msg, getValue) {
- console.warn(msg);
-};
-
-Component({
- externalClasses: ['cell-class', 'title-class'],
- options: {
- multipleSlots: true
- },
- relations: {
- '../cell-group/index': {
- type: 'parent'
- }
- },
- properties: {
- title: {
- type: String,
- description: '左侧标题'
- },
- label: {
- type: String,
- description: '标题下方的描述信息'
- },
- value: {
- type: String,
- description: '右侧内容'
- },
- onlyTapFooter: {
- type: Boolean,
- description: '只有点击 footer 区域才触发 tab 事件'
- },
- isLink: {
- type: null,
- value: '',
- description: '是否展示右侧箭头并开启尝试以 url 跳转'
- },
- linkType: {
- type: String,
- value: 'navigateTo',
- description: '链接类型,可选值为 navigateTo,redirectTo,switchTab,reLaunch'
- },
- url: {
- type: String,
- value: ''
- },
- noBorder: Boolean
- },
- data: {
- isLastCell: true,
- titleWidth: 'auto'
- },
- methods: {
- footerTap: function footerTap() {
- // 如果并没有设置只点击 footer 生效,那就不需要额外处理。cell 上有事件会自动处理
- if (!this.data.onlyTapFooter) {
- return;
- }
-
- this.triggerEvent('tap', {});
- doNavigate.call(this);
- },
- cellTap: function cellTap() {
- // 如果只点击 footer 生效,那就不需要在 cell 根节点上处理
- if (this.data.onlyTapFooter) {
- return;
- }
-
- this.triggerEvent('tap', {});
- doNavigate.call(this);
- },
-
-
- // 用于被 cell-group 更新,标志是否是最后一个 cell
- updateIsLastElement: function updateIsLastElement(isLastCell) {
- this.setData({ isLastCell: isLastCell });
- },
-
-
- // 设置统一的title区域宽度
- setTitleWidth: function setTitleWidth(titleWidth) {
- this.setData({
- titleWidth: titleWidth + 'px'
- });
- }
- }
-});
-
-// 处理跳转
-function doNavigate() {
- var _data$url = this.data.url,
- url = _data$url === undefined ? '' : _data$url;
-
- var type = typeof this.data.isLink;
-
- if (!this.data.isLink || !url || url === 'true' || url === 'false') return;
-
- if (type !== 'boolean' && type !== 'string') {
- warn('isLink 属性值必须是一个字符串或布尔值', this.data.isLink);
- return;
- }
-
- if (['navigateTo', 'redirectTo', 'switchTab', 'reLaunch'].indexOf(this.data.linkType) === -1) {
- warn('linkType 属性可选值为 navigateTo,redirectTo,switchTab,reLaunch', this.data.linkType);
- return;
- }
- wx[this.data.linkType].call(wx, { url: url });
-}
\ No newline at end of file
diff --git a/dist/cell/index.json b/dist/cell/index.json
deleted file mode 100644
index 32640e0d..00000000
--- a/dist/cell/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
\ No newline at end of file
diff --git a/dist/cell/index.wxml b/dist/cell/index.wxml
deleted file mode 100644
index 820bb76f..00000000
--- a/dist/cell/index.wxml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
- {{ title }}
- {{ label }}
-
-
-
-
-
-
-
- {{ value }}
-
-
-
-
-
\ No newline at end of file
diff --git a/dist/cell/index.wxss b/dist/cell/index.wxss
deleted file mode 100644
index ab487cd2..00000000
--- a/dist/cell/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-cell{position:relative;padding:12px 15px;display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;line-height:1.4;background-color:#fff;font-size:14px}.van-cell::after{content:'';position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #e5e5e5;border-bottom-width:1px;left:15px;right:0}.van-cell__icon{margin-right:5px}.van-cell__icon:empty{display:none}.van-cell__title{padding-right:10px}.van-cell__title:empty{display:none}.van-cell__bd{-webkit-box-flex:1;flex:1}.van-cell__text{line-height:24px;font-size:14px}.van-cell__desc{line-height:1.2;font-size:12px;color:#666}.van-cell__ft{position:relative;text-align:right;color:#666}.van-cell__no-pading{padding:0}.van-cell__no-pading .van-cell__bd_padding{padding:12px 0 12px 15px}.van-cell__no-pading .van-cell__bd_padding .van-form__input{height:26px}.van-cell__no-pading .van-cell__ft_padding{padding:12px 15px 12px 0}.van-cell.last-cell::after,.van-cell.no-border::after{display:none}.van-cell--access .van-cell__ft{padding-right:13px}.van-cell--access .van-cell__ft::after{position:absolute;top:50%;right:2px;content:" ";display:inline-block;height:6px;width:6px;border-width:2px 2px 0 0;border-color:#c8c8c8;border-style:solid;-webkit-transform:translateY(-50%) matrix(.71,.71,-.71,.71,0,0);transform:translateY(-50%) matrix(.71,.71,-.71,.71,0,0)}.van-cell--switch{padding-top:6px;padding-bottom:6px}
\ No newline at end of file
diff --git a/dist/checkbox-group/index.js b/dist/checkbox-group/index.js
deleted file mode 100644
index 09058960..00000000
--- a/dist/checkbox-group/index.js
+++ /dev/null
@@ -1,29 +0,0 @@
-'use strict';
-
-var _relations;
-
-var CHECKBOX_PATH = '../checkbox/index';
-
-Component({
- relations: (_relations = {}, _relations[CHECKBOX_PATH] = {
- type: 'child',
- linked: function linked() {
- this.updateChildren(CHECKBOX_PATH);
- }
- }, _relations),
-
- data: {
- elementUpdateTimeout: 0
- },
-
- methods: {
- updateChildren: function updateChildren(childPath) {
- // 把checkbox标记为在group中,设置不同样式
- var elements = this.getRelationNodes(childPath);
-
- elements.forEach(function (checkbox, index) {
- checkbox.updateData({ isInGroup: true });
- });
- }
- }
-});
\ No newline at end of file
diff --git a/dist/checkbox-group/index.json b/dist/checkbox-group/index.json
deleted file mode 100644
index 32640e0d..00000000
--- a/dist/checkbox-group/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
\ No newline at end of file
diff --git a/dist/checkbox-group/index.wxml b/dist/checkbox-group/index.wxml
deleted file mode 100644
index a6ef51f8..00000000
--- a/dist/checkbox-group/index.wxml
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/dist/checkbox-group/index.wxss b/dist/checkbox-group/index.wxss
deleted file mode 100644
index 418d8711..00000000
--- a/dist/checkbox-group/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.checkbox-group{padding-bottom:10px;background-color:#fff}.checkbox-group .van-checkbox{margin-top:10px}
\ No newline at end of file
diff --git a/dist/checkbox/index.js b/dist/checkbox/index.js
deleted file mode 100644
index 62160c07..00000000
--- a/dist/checkbox/index.js
+++ /dev/null
@@ -1,44 +0,0 @@
-'use strict';
-
-var _relations;
-
-var CHECKBOX_GROUP_PATH = '../checkbox-group/index';
-
-Component({
- externalClasses: ['checkbox-class'],
- relations: (_relations = {}, _relations[CHECKBOX_GROUP_PATH] = {
- type: 'parent'
- }, _relations),
-
- properties: {
- checked: Boolean,
- disabled: Boolean,
- isInGroup: Boolean,
- labelDisabled: Boolean,
- type: String
- },
-
- data: function data() {
- return {
- isInGroup: false,
- isInCell: false
- };
- },
-
-
- methods: {
- handleClick: function handleClick() {
- if (this.data.disabled) {
- return;
- }
-
- var checked = !this.data.checked;
-
- this.triggerEvent('change', checked);
- this.setData({ checked: checked });
- },
- updateData: function updateData(data) {
- this.setData(data);
- }
- }
-});
\ No newline at end of file
diff --git a/dist/checkbox/index.json b/dist/checkbox/index.json
deleted file mode 100644
index 0a336c08..00000000
--- a/dist/checkbox/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index"
- }
-}
diff --git a/dist/checkbox/index.wxml b/dist/checkbox/index.wxml
deleted file mode 100644
index 311ccbb9..00000000
--- a/dist/checkbox/index.wxml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
diff --git a/dist/checkbox/index.wxss b/dist/checkbox/index.wxss
deleted file mode 100644
index b56cf0a8..00000000
--- a/dist/checkbox/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-checkbox{display:inline-block;padding:0 10px;font-size:14px}.van-checkbox__item{display:block;margin-top:10px}.van-checkbox__list-item{display:block;padding:10px 10px 10px 0;margin-left:10px;border-bottom:1px solid #e5e5e5}.van-checkbox__list-item .van-checkbox__icon{float:right}.van-checkbox__icon{display:-webkit-inline-box;display:inline-flex;-webkit-box-align:center;align-items:center;color:#aaa}.van-checkbox__icon.van-checkbox--checked{color:#06bf04}.van-checkbox__icon.van-checkbox--disabled{color:#e5e5e5}.van-checkbox__label{display:inline-block;margin-left:10px}
\ No newline at end of file
diff --git a/dist/col/index.js b/dist/col/index.js
deleted file mode 100644
index f3633672..00000000
--- a/dist/col/index.js
+++ /dev/null
@@ -1,22 +0,0 @@
-'use strict';
-
-Component({
- externalClasses: ['col-class'],
-
- relations: {
- '../row/index': {
- type: 'parent'
- }
- },
-
- properties: {
- col: {
- value: 0,
- type: Number
- },
- offset: {
- value: 0,
- type: Number
- }
- }
-});
\ No newline at end of file
diff --git a/dist/col/index.json b/dist/col/index.json
deleted file mode 100644
index 467ce294..00000000
--- a/dist/col/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/dist/col/index.wxml b/dist/col/index.wxml
deleted file mode 100644
index 22eee8f3..00000000
--- a/dist/col/index.wxml
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/dist/col/index.wxss b/dist/col/index.wxss
deleted file mode 100644
index 065914e7..00000000
--- a/dist/col/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-col{float:left;box-sizing:border-box;width:0}.van-col-1{width:4.16667%}.van-col-offset-1{margin-left:4.16667%}.van-col-2{width:8.33333%}.van-col-offset-2{margin-left:8.33333%}.van-col-3{width:12.5%}.van-col-offset-3{margin-left:12.5%}.van-col-4{width:16.66667%}.van-col-offset-4{margin-left:16.66667%}.van-col-5{width:20.83333%}.van-col-offset-5{margin-left:20.83333%}.van-col-6{width:25%}.van-col-offset-6{margin-left:25%}.van-col-7{width:29.16667%}.van-col-offset-7{margin-left:29.16667%}.van-col-8{width:33.33333%}.van-col-offset-8{margin-left:33.33333%}.van-col-9{width:37.5%}.van-col-offset-9{margin-left:37.5%}.van-col-10{width:41.66667%}.van-col-offset-10{margin-left:41.66667%}.van-col-11{width:45.83333%}.van-col-offset-11{margin-left:45.83333%}.van-col-12{width:50%}.van-col-offset-12{margin-left:50%}.van-col-13{width:54.16667%}.van-col-offset-13{margin-left:54.16667%}.van-col-14{width:58.33333%}.van-col-offset-14{margin-left:58.33333%}.van-col-15{width:62.5%}.van-col-offset-15{margin-left:62.5%}.van-col-16{width:66.66667%}.van-col-offset-16{margin-left:66.66667%}.van-col-17{width:70.83333%}.van-col-offset-17{margin-left:70.83333%}.van-col-18{width:75%}.van-col-offset-18{margin-left:75%}.van-col-19{width:79.16667%}.van-col-offset-19{margin-left:79.16667%}.van-col-20{width:83.33333%}.van-col-offset-20{margin-left:83.33333%}.van-col-21{width:87.5%}.van-col-offset-21{margin-left:87.5%}.van-col-22{width:91.66667%}.van-col-offset-22{margin-left:91.66667%}.van-col-23{width:95.83333%}.van-col-offset-23{margin-left:95.83333%}.van-col-24{width:100%}.van-col-offset-24{margin-left:100%}
\ No newline at end of file
diff --git a/dist/color/index.wxss b/dist/color/index.wxss
deleted file mode 100644
index b318f33b..00000000
--- a/dist/color/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-c-red{color:#f44!important}.van-c-gray{color:#c9c9c9!important}.van-c-gray-dark{color:#999!important}.van-c-gray-darker{color:#666!important}.van-c-black{color:#333!important}.van-c-blue{color:#38f!important}.van-c-green{color:#06bf04!important}
\ No newline at end of file
diff --git a/dist/common/helper.js b/dist/common/helper.js
deleted file mode 100644
index e995325d..00000000
--- a/dist/common/helper.js
+++ /dev/null
@@ -1,102 +0,0 @@
-'use strict';
-
-// 从事件对象中解析得到 componentId
-// 需要在元素上声明 data-component-id
-function extractComponentId() {
- var event = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
-
- var _ref = event.currentTarget || {},
- componentId = _ref.dataset.componentId;
-
- return componentId;
-}
-
-/*
- 注:默认合并所有生命周期函数
- 配置合并指定的生命周期 or 忽略指定字段
- const extend = extendCreator({
- life: ['onLoad', 'onPullDownRefresh'],
- exclude: ['binder']
- });
-
- Page(extend({}, {
- onLoad() {},
- ...
- }));
-*/
-
-var LIFE_CYCLE = ['onLoad', 'onReady', 'onShow', 'onHide', 'onUnload', 'onPullDownRefresh', 'onReachBottom', 'onShareAppMessage', 'onPageScroll'];
-
-var extendCreator = function extendCreator() {
- var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- var _config$life = config.life,
- life = _config$life === undefined ? LIFE_CYCLE : _config$life,
- _config$exclude = config.exclude,
- exclude = _config$exclude === undefined ? [] : _config$exclude;
-
-
- var excludeList = exclude.concat(LIFE_CYCLE.map(getFuncArrayName));
-
- if (!Array.isArray(life) || !Array.isArray(exclude)) throw new Error('Invalid Extend Config');
- var lifeCycleList = life.filter(function (item) {
- return LIFE_CYCLE.indexOf(item) >= 0;
- });
- return function extend(target) {
- for (var _len = arguments.length, objList = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
- objList[_key - 1] = arguments[_key];
- }
-
- objList.forEach(function (source) {
- if (source) {
- var keys = Object.keys(source);
- keys.forEach(function (key) {
- var value = source[key];
- if (excludeList.indexOf(key) >= 0) return;
- if (lifeCycleList.indexOf(key) >= 0 && typeof value === 'function') {
- var funcArrayName = getFuncArrayName(key);
- if (!target[funcArrayName]) {
- target[funcArrayName] = [];
- if (target[key]) {
- target[funcArrayName].push(target[key]);
- }
- target[key] = function () {
- var _this = this;
-
- for (var _len2 = arguments.length, rest = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
- rest[_key2] = arguments[_key2];
- }
-
- target[funcArrayName].forEach(function (func) {
- return func.apply(_this, rest);
- });
- };
- }
-
- if (source[funcArrayName]) {
- var _target$funcArrayName;
-
- // 经过生命周期合并的组件直接整合函数列表
- (_target$funcArrayName = target[funcArrayName]).push.apply(_target$funcArrayName, source[funcArrayName]);
- } else {
- // 添加生命周期函数进入函数列表
- target[funcArrayName].push(value);
- }
- } else {
- target[key] = value;
- }
- });
- }
- });
- return target;
- };
-};
-
-var getFuncArrayName = function getFuncArrayName(name) {
- return '__$' + name;
-};
-
-module.exports = {
- extractComponentId: extractComponentId,
- extend: Object.assign,
- extendCreator: extendCreator
-};
\ No newline at end of file
diff --git a/dist/common/pop-manager/index.js b/dist/common/pop-manager/index.js
deleted file mode 100644
index 365a532c..00000000
--- a/dist/common/pop-manager/index.js
+++ /dev/null
@@ -1,31 +0,0 @@
-'use strict';
-
-Component({
- properties: {
- show: {
- type: Boolean,
- value: false
- },
- // 是否有遮罩层
- overlay: {
- type: Boolean,
- value: true
- },
- // 遮罩层是否会显示
- showOverlay: {
- type: Boolean,
- value: true
- },
- // 内容从哪个方向出,可选 center top bottom left right
- type: {
- type: String,
- value: 'center'
- }
- },
-
- methods: {
- handleMaskClick: function handleMaskClick() {
- this.triggerEvent('clickmask', {});
- }
- }
-});
\ No newline at end of file
diff --git a/dist/common/pop-manager/index.json b/dist/common/pop-manager/index.json
deleted file mode 100644
index 467ce294..00000000
--- a/dist/common/pop-manager/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/dist/common/pop-manager/index.wxml b/dist/common/pop-manager/index.wxml
deleted file mode 100644
index 6bb47ef1..00000000
--- a/dist/common/pop-manager/index.wxml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
diff --git a/dist/common/pop-manager/index.wxss b/dist/common/pop-manager/index.wxss
deleted file mode 100644
index 3f22a03f..00000000
--- a/dist/common/pop-manager/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.pop{visibility:hidden}.pop--show{visibility:visible}.pop__mask{position:fixed;top:0;left:0;right:0;bottom:0;z-index:10;background:rgba(0,0,0,.7);display:none}.pop__mask--hide{background:0 0}.pop__container{position:fixed;left:50%;top:50%;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0);-webkit-transform-origin:center;transform-origin:center;-webkit-transition:all .4s ease;transition:all .4s ease;z-index:11;opacity:0}.pop--show .pop__container{opacity:1}.pop--show .pop__mask{display:block}.pop--left .pop__container{left:0;top:50%;-webkit-transform:translate3d(-100%,-50%,0);transform:translate3d(-100%,-50%,0)}.pop--show.pop--left .pop__container{-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}.pop--right .pop__container{right:0;top:50%;left:auto;-webkit-transform:translate3d(100%,-50%,0);transform:translate3d(100%,-50%,0)}.pop--show.pop--right .pop__container{-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}.pop--bottom .pop__container{top:auto;left:50%;bottom:0;-webkit-transform:translate3d(-50%,100%,0);transform:translate3d(-50%,100%,0)}.pop--show.pop--bottom .pop__container{-webkit-transform:translate3d(-50%,0,0);transform:translate3d(-50%,0,0)}.pop--top .pop__container{top:0;left:50%;-webkit-transform:translate3d(-50%,-100%,0);transform:translate3d(-50%,-100%,0)}.pop--show.pop--top .pop__container{-webkit-transform:translate3d(-50%,0,0);transform:translate3d(-50%,0,0)}
\ No newline at end of file
diff --git a/dist/datetime-picker/date-picker-view.wxml b/dist/datetime-picker/date-picker-view.wxml
deleted file mode 100644
index 0a69f841..00000000
--- a/dist/datetime-picker/date-picker-view.wxml
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/dist/datetime-picker/date-picker.js b/dist/datetime-picker/date-picker.js
deleted file mode 100644
index 309ba6eb..00000000
--- a/dist/datetime-picker/date-picker.js
+++ /dev/null
@@ -1,105 +0,0 @@
-'use strict';
-
-function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
-
-var LIMIT_YEAR_COUNT = 50;
-
-var _require = require('./utils'),
- genNumber = _require.genNumber,
- iso2utc = _require.iso2utc;
-
-module.exports = function () {
- function DatePicker() {
- var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new Date();
-
- _classCallCheck(this, DatePicker);
-
- this.types = ['year', 'month', 'day', 'hour', 'minute', 'second'];
- this.months = genNumber(1, 12, 2);
- this.hours = genNumber(0, 23, 2);
- this.seconds = genNumber(0, 59, 2);
- this.minutes = genNumber(0, 59, 2);
- this._date = date;
- }
-
- DatePicker.prototype.getYears = function getYears(year) {
- var mid = Math.floor(LIMIT_YEAR_COUNT / 2);
- var min = year - mid;
- var max = year + (LIMIT_YEAR_COUNT - mid);
- return genNumber(min, max, 4);
- };
-
- DatePicker.prototype.lastDay = function lastDay(year, month) {
- return month !== 12 ? new Date(new Date(year + '/' + (month + 1) + '/1').getTime() - 24 * 60 * 60 * 1000).getDate() : 31;
- };
-
- DatePicker.prototype.getData = function getData(date) {
- date = date || this._date || new Date();
-
- // toUTCString ISO 格式部分 ios 手机会失败
- if (new Date(date).toString() === 'Invalid Date' && typeof date === 'string' && date.indexOf('-') > 0) {
- date = iso2utc(date);
- }
-
- var d = new Date(date);
-
- var y = d.getFullYear();
- var m = d.getMonth() + 1;
- var years = this.getYears(y);
- var lastDay = this.lastDay(y, m);
- var days = genNumber(1, lastDay, 2);
-
- this._years = years;
- this._dataList = [years, this.months, days, this.hours, this.minutes, this.seconds];
- this._indexs = [25, m - 1, d.getDate() - 1, d.getHours(), d.getMinutes(), d.getSeconds()];
-
- return {
- dataList: this._dataList,
- selected: this._indexs
- };
- };
-
- DatePicker.prototype.update = function update(col, index) {
- var type = this.types[col];
- switch (type) {
- case 'year':
- return this._updateYear(col, index);
- case 'month':
- return this._updateMonth(col, index);
- default:
- this._indexs[col] = index;
- return [{ col: col, index: index }];
- }
- };
-
- DatePicker.prototype._updateYear = function _updateYear(col, index, cb) {
- var years = this._dataList[col];
- var year = years[index];
-
- this._dataList[col] = this.getYears(+year);
-
- this._indexs[col] = Math.floor(LIMIT_YEAR_COUNT / 2);
-
- return [{ col: 0, index: this._indexs[col], data: this._dataList[col] }];
- };
-
- DatePicker.prototype._updateMonth = function _updateMonth(col, index) {
- var month = this._dataList[col][index];
- var year = this._dataList[0][this._indexs[0]];
- var lastDay = this.lastDay(+year, +month);
- this._indexs[col] = index;
- this._dataList[2] = genNumber(1, lastDay, 2);
- this._indexs[2] = this._indexs[2] >= this._dataList[2].length ? this._dataList[2].length - 1 : this._indexs[2];
-
- return [{
- col: 1,
- index: index
- }, {
- col: 2,
- index: this._indexs[2],
- data: this._dataList[2]
- }];
- };
-
- return DatePicker;
-}();
\ No newline at end of file
diff --git a/dist/datetime-picker/index.js b/dist/datetime-picker/index.js
deleted file mode 100644
index 44246df0..00000000
--- a/dist/datetime-picker/index.js
+++ /dev/null
@@ -1,216 +0,0 @@
-'use strict';
-
-var DatePicker = require('./date-picker');
-
-var _require = require('./utils'),
- genNumber = _require.genNumber,
- moment = _require.moment;
-
-Component({
- properties: {
- placeholder: {
- type: String,
- value: '请选择时间'
- },
- format: {
- type: String,
- value: 'YYYY-MM-DD HH:mm:ss'
- },
- pickerView: {
- type: Boolean
- },
- date: {
- type: String,
- observer: function observer(value) {
- if (value === {}.toString()) {
- throw new Error('参数必须是一个字符串');
- }
- if (/^[0-9]+$/.test(value)) {
- value = +value;
- }
- !this._inited && this._init();
- this.updateDate(value);
- }
- },
- notUse: {
- type: Array
- }
- },
- externalClasses: ['placeholder-class'],
- data: {
- transPos: [0, 0, 0, 0, 0, 0]
- },
- attached: function attached() {
- !this._inited && this._init();
- },
-
-
- methods: {
- _init: function _init() {
- var _this = this;
-
- this._inited = true;
- this.use = {};
-
- ['years', 'months', 'days', 'hours', 'minutes', 'seconds'].forEach(function (item) {
- if ((_this.data.notUse || []).indexOf(item) === -1) {
- _this.use[item] = true;
- }
- });
-
- this.picker = new DatePicker(this.data.date);
-
- var _picker$getData = this.picker.getData(this.data.date),
- dataList = _picker$getData.dataList,
- selected = _picker$getData.selected;
-
- // 鬼他么知道为什么 dataList, selected 不能一起 setData
-
-
- this.setData({
- use: this.use,
- dataList: dataList
- }, function () {
- _this.setData({
- selected: selected
- });
- });
-
- this._indexs = selected;
- },
- updatePicker: function updatePicker() {
- var updateData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
-
- var _updateData = {};
-
- for (var _iterator = updateData, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
- var _ref2;
-
- if (_isArray) {
- if (_i >= _iterator.length) break;
- _ref2 = _iterator[_i++];
- } else {
- _i = _iterator.next();
- if (_i.done) break;
- _ref2 = _i.value;
- }
-
- var _ref = _ref2;
- var col = _ref.col,
- index = _ref.index,
- data = _ref.data;
-
- if (~index && this._indexs[col] !== index || col === 0) {
- _updateData['selected[' + col + ']'] = index; // 更新索引
- this._indexs[col] = index;
- }
-
- if (data) {
- _updateData['dataList[' + col + ']'] = data;
- }
- }
-
- this.setData(_updateData);
- },
- updateDate: function updateDate(date) {
- var _this2 = this;
-
- var _picker$getData2 = this.picker.getData(date),
- dataList = _picker$getData2.dataList,
- selected = _picker$getData2.selected;
-
- this._indexs = selected;
-
- // 好像必须要等到 datalist 完成
- this.setData({ dataList: dataList }, function () {
- _this2.setData({
- selected: selected,
- text: _this2.getFormatStr()
- });
- });
- },
- getFormatStr: function getFormatStr() {
- var _this3 = this;
-
- var date = new Date();
- ['FullYear', 'Month', 'Date', 'Hours', 'Minutes', 'Seconds'].forEach(function (key, index) {
- var value = _this3.data.dataList[index][_this3._indexs[index]];
- if (key === 'Month') {
- value = +_this3.data.dataList[index][_this3._indexs[index]] - 1;
- }
- date['set' + key](+value);
- });
-
- return moment(date, this.data.format);
- },
- showPicker: function showPicker() {
- this.setData({
- show: true
- });
- },
- hidePicker: function hidePicker(e) {
- var action = e.currentTarget.dataset.action;
-
-
- this.setData({
- show: false
- });
-
- if (action === 'cancel') {
- this.cancel({
- detail: {}
- });
- } else {
- this.change({
- detail: {
- value: this._indexs
- }
- });
- }
- },
- columnchange: function columnchange(e) {
- var _e$detail = e.detail,
- column = _e$detail.column,
- value = _e$detail.value;
-
- var updateData = this.picker.update(column, value);
- this.updatePicker(updateData);
- },
- change: function change(e) {
- var value = e.detail.value;
-
-
- var data = this.data.dataList.map(function (item, index) {
- return +item[value[index]];
- });
-
- var day = data.slice(0, 3);
- var time = data.slice(3, 6);
- var date = new Date(day.join('/') + ' ' + time.join(':'));
-
- this.triggerEvent('change', {
- value: data,
- date: date
- });
-
- // 手动触发 columnchange
- for (var index = 0; index < value.length; index++) {
- if (this._indexs[index] !== value[index]) {
- this.columnchange({
- detail: {
- column: index,
- value: value[index]
- }
- });
- }
- }
-
- this.setData({
- text: this.getFormatStr()
- });
- },
- cancel: function cancel(e) {
- this.triggerEvent('cancel', e.detail);
- }
- }
-});
\ No newline at end of file
diff --git a/dist/datetime-picker/index.json b/dist/datetime-picker/index.json
deleted file mode 100644
index 10d4a702..00000000
--- a/dist/datetime-picker/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "pop-manager": "../common/pop-manager/index"
- }
-}
\ No newline at end of file
diff --git a/dist/datetime-picker/index.wxml b/dist/datetime-picker/index.wxml
deleted file mode 100644
index 2bba4abb..00000000
--- a/dist/datetime-picker/index.wxml
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-{{text || placeholder}}
-
-
-
-
-
-
-
-
- 取消
- 确认
-
-
-
-
-
\ No newline at end of file
diff --git a/dist/datetime-picker/index.wxss b/dist/datetime-picker/index.wxss
deleted file mode 100644
index fe180685..00000000
--- a/dist/datetime-picker/index.wxss
+++ /dev/null
@@ -1,53 +0,0 @@
-.picker-visible {
- height: 236px;
- bottom: 0;
-}
-
-picker-view-column.year-view-column {
- width: 50px;
- flex: 2;
-}
-picker-view-column {
- width: 30px;
- text-align: center;
-}
-.hidden {
- display: none;
-}
-.view-column-tip {
- height: 235px;
- line-height: 235px;
- margin: 0 5px;
-}
-
-.picker {
- width: 100vw;
- height: 100vh;
- top: 0;
- left: 0;
- z-index: 12;
-}
-
-.picker .picker-action {
- height: 36px;
- bottom: 235px;
- padding: 0 15px;
- width: 100%;
- display: flex;
- align-items: center;
- position: absolute;
- background: #fff;
- box-sizing: border-box;
- border-bottom: 1rpx solid #e5e5e5;
- justify-content: space-between;
-}
-.picker-action view:last-child {
- color: #1aad16;
-}
-
-.picker picker-view {
- position: absolute;
- bottom: 0;
- background: #fff;
- width: 100vw;
-}
\ No newline at end of file
diff --git a/dist/datetime-picker/picker-view-column.wxml b/dist/datetime-picker/picker-view-column.wxml
deleted file mode 100644
index 9f407a04..00000000
--- a/dist/datetime-picker/picker-view-column.wxml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
- {{item}}
-
- {{ tip }}
-
\ No newline at end of file
diff --git a/dist/datetime-picker/utils.js b/dist/datetime-picker/utils.js
deleted file mode 100644
index d92fbf92..00000000
--- a/dist/datetime-picker/utils.js
+++ /dev/null
@@ -1,124 +0,0 @@
-'use strict';
-
-function partStartWithZero(num, strlen) {
- var zeros = '';
- while (zeros.length < strlen) {
- zeros += '0';
- }
- return (zeros + num).slice(-strlen);
-}
-
-module.exports.genNumber = function genNumber(begin, end, strlen) {
- var nums = [];
- while (begin <= end) {
- nums.push(partStartWithZero(begin, strlen));
- begin++;
- }
- return nums;
-};
-
-module.exports.moment = function moment(date) {
- var formatStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'YYYY:MM:DD';
-
- if (!date && date !== 0) date = new Date();
-
- date = new Date(date);
- if (date.toString() === 'Invalid Date') throw new Error('Invalid Date');
-
- var getDateValue = function getDateValue(method, fn) {
- return fn ? fn(date['get' + method]()) : date['get' + method]();
- };
- var map = new Map();
-
- map.set(/(Y+)/i, function () {
- return getDateValue('FullYear', function (year) {
- return (year + '').substr(4 - RegExp.$1.length);
- });
- });
- map.set(/(M+)/, function () {
- return getDateValue('Month', function (month) {
- return partStartWithZero(month + 1, RegExp.$1.length);
- });
- });
- map.set(/(D+)/i, function () {
- return getDateValue('Date', function (date) {
- return partStartWithZero(date, RegExp.$1.length);
- });
- });
- map.set(/(H+)/i, function () {
- return getDateValue('Hours', function (hour) {
- return partStartWithZero(hour, RegExp.$1.length);
- });
- });
- map.set(/(m+)/, function () {
- return getDateValue('Minutes', function (minute) {
- return partStartWithZero(minute, RegExp.$1.length);
- });
- });
- map.set(/(s+)/, function () {
- return getDateValue('Seconds', function (second) {
- return partStartWithZero(second, RegExp.$1.length);
- });
- });
-
- for (var _iterator = map, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
- var _ref2;
-
- if (_isArray) {
- if (_i >= _iterator.length) break;
- _ref2 = _iterator[_i++];
- } else {
- _i = _iterator.next();
- if (_i.done) break;
- _ref2 = _i.value;
- }
-
- var _ref = _ref2;
- var reg = _ref[0];
- var fn = _ref[1];
-
- if (reg.test(formatStr)) {
- formatStr = formatStr.replace(RegExp.$1, fn.call(null));
- }
- }
-
- return formatStr;
-};
-
-module.exports.iso2utc = function (string) {
- var regexp = "([0-9]{4})(-([0-9]{2})(-([0-9]{2})(T([0-9]{2}):([0-9]{2})(:([0-9]{2})(\.([0-9]+))?)?(Z|(([-+])([0-9]{2}):([0-9]{2})))?)?)?)?";
- if (string) {
- var d = string.match(new RegExp(regexp));
- var offset = 0;
- var date = new Date(d[1], 0, 1);
-
- if (d[3]) {
- date.setMonth(d[3] - 1);
- }
- if (d[5]) {
- date.setDate(+d[5]);
- }
- if (d[7]) {
- date.setHours(d[7]);
- }
- if (d[8]) {
- date.setMinutes(d[8]);
- }
- if (d[10]) {
- date.setSeconds(d[10]);
- }
- if (d[12]) {
- date.setMilliseconds(Number("0." + d[12]) * 1000);
- }
- if (d[14]) {
- offset = Number(d[16]) * 60 + Number(d[17]);
- offset *= d[15] == '-' ? 1 : -1;
- }
-
- offset -= date.getTimezoneOffset();
-
- return Number(date) + offset * 60 * 1000;
- } else {
- return string;
- }
-};
\ No newline at end of file
diff --git a/dist/dialog/data.js b/dist/dialog/data.js
deleted file mode 100644
index db43a125..00000000
--- a/dist/dialog/data.js
+++ /dev/null
@@ -1,26 +0,0 @@
-'use strict';
-
-module.exports = {
- // 标题
- title: '',
- // 内容
- message: ' ',
- // 选择节点
- selector: '#van-dialog',
- // 按钮是否展示为纵向
- buttonsShowVertical: false,
- // 是否展示确定
- showConfirmButton: true,
- // 确认按钮文案
- confirmButtonText: '确定',
- // 确认按钮颜色
- confirmButtonColor: '#3CC51F',
- // 是否展示取消
- showCancelButton: false,
- // 取消按钮文案
- cancelButtonText: '取消',
- // 取消按钮颜色
- cancelButtonColor: '#333',
- // 点击按钮自动关闭 dialog
- autoClose: true
-};
\ No newline at end of file
diff --git a/dist/dialog/dialog.js b/dist/dialog/dialog.js
deleted file mode 100644
index aef6d658..00000000
--- a/dist/dialog/dialog.js
+++ /dev/null
@@ -1,104 +0,0 @@
-'use strict';
-
-var defaultData = require('./data');
-
-function getDialogCtx(_ref) {
- var selector = _ref.selector,
- pageCtx = _ref.pageCtx;
-
- var ctx = pageCtx;
- if (!ctx) {
- var pages = getCurrentPages();
- ctx = pages[pages.length - 1];
- }
- return ctx.selectComponent(selector);
-}
-
-function getParsedOptions() {
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
-
- return Object.assign({
- // 自定义 button 列表
- // { type: 按钮类型,回调时以此作为区分依据,text: 按钮文案, color: 按钮文字颜色 }
- buttons: []
- }, defaultData, options);
-}
-
-// options 使用参数
-// pageCtx 页面 page 上下文
-function Dialog(options, pageCtx) {
- var parsedOptions = getParsedOptions(options);
-
- var dialogCtx = getDialogCtx({
- selector: parsedOptions.selector,
- pageCtx: pageCtx
- });
-
- if (!dialogCtx) {
- console.error('无法找到对应的dialog组件,请于页面中注册并在 wxml 中声明 dialog 自定义组件');
- return Promise.reject({ type: 'component error' });
- }
-
- // 处理默认按钮的展示
- // 纵向排布确认按钮在上方
- var _parsedOptions$button = parsedOptions.buttons,
- buttons = _parsedOptions$button === undefined ? [] : _parsedOptions$button;
-
- var showCustomBtns = false;
- if (buttons.length === 0) {
- if (parsedOptions.showConfirmButton) {
- buttons.push({
- type: 'confirm',
- text: parsedOptions.confirmButtonText,
- color: parsedOptions.confirmButtonColor
- });
- }
-
- if (parsedOptions.showCancelButton) {
- var cancelButton = {
- type: 'cancel',
- text: parsedOptions.cancelButtonText,
- color: parsedOptions.cancelButtonColor
- };
- if (parsedOptions.buttonsShowVertical) {
- buttons.push(cancelButton);
- } else {
- buttons.unshift(cancelButton);
- }
- }
- } else {
- showCustomBtns = true;
- }
-
- return new Promise(function (resolve, reject) {
- dialogCtx.setData(Object.assign({}, parsedOptions, {
- buttons: buttons,
- showCustomBtns: showCustomBtns,
- key: '' + new Date().getTime(),
- show: true,
- promiseFunc: { resolve: resolve, reject: reject },
- openTypePromiseFunc: null
- }));
- });
-}
-
-Dialog.close = function (options, pageCtx) {
- var parsedOptions = getParsedOptions(options);
-
- var dialogCtx = getDialogCtx({
- selector: parsedOptions.selector,
- pageCtx: pageCtx
- });
-
- if (!dialogCtx) {
- return;
- }
-
- dialogCtx.setData({
- show: false,
- promiseFunc: null,
- openTypePromiseFunc: null
- });
-};
-
-module.exports = Dialog;
\ No newline at end of file
diff --git a/dist/dialog/index.js b/dist/dialog/index.js
deleted file mode 100644
index 71848e04..00000000
--- a/dist/dialog/index.js
+++ /dev/null
@@ -1,133 +0,0 @@
-'use strict';
-
-var _f = function _f() {};
-var needResponseOpenTypes = ['getUserInfo', 'getPhoneNumber', 'openSetting'];
-
-Component({
- properties: {},
-
- data: {
- // 标题
- title: '',
- // 自定义 button 列表
- // { type: 按钮类型,回调时以此作为区分依据,text: 按钮文案, color: 按钮文字颜色, openType: 微信开放能力 }
- buttons: [],
- // 内容
- message: ' ',
- // 选择节点
- selector: '#van-dialog',
- // 按钮是否展示为纵向
- buttonsShowVertical: false,
- // 是否展示确定
- showConfirmButton: true,
- // 确认按钮文案
- confirmButtonText: '确定',
- // 确认按钮颜色
- confirmButtonColor: '#3CC51F',
- // 是否展示取消
- showCancelButton: false,
- // 取消按钮文案
- cancelButtonText: '取消',
- // 取消按钮颜色
- cancelButtonColor: '#333',
- key: '',
- autoClose: true,
- show: false,
- showCustomBtns: false,
- promiseFunc: {},
- openTypePromiseFunc: {}
- },
-
- methods: {
- handleButtonClick: function handleButtonClick(e) {
- var _this = this;
-
- var _e$currentTarget = e.currentTarget,
- currentTarget = _e$currentTarget === undefined ? {} : _e$currentTarget;
- var _currentTarget$datase = currentTarget.dataset,
- dataset = _currentTarget$datase === undefined ? {} : _currentTarget$datase;
-
- // 获取当次弹出框的信息
-
- var _ref = this.data.promiseFunc || {},
- _ref$resolve = _ref.resolve,
- resolve = _ref$resolve === undefined ? _f : _ref$resolve,
- _ref$reject = _ref.reject,
- reject = _ref$reject === undefined ? _f : _ref$reject;
-
- // 重置展示
-
-
- if (this.data.autoClose) {
- this.setData({ show: false });
- }
-
- // 自定义按钮,全部 resolve 形式返回,根据 type 区分点击按钮
- if (this.data.showCustomBtns) {
- var isNeedOpenDataButton = needResponseOpenTypes.indexOf(dataset.openType) > -1;
- var resolveData = { type: dataset.type };
- // 如果需要 openData,就额外返回一个 promise,用于后续 open 数据返回
- if (isNeedOpenDataButton) {
- resolveData.openDataPromise = new Promise(function (resolve, reject) {
- _this.setData({ openTypePromiseFunc: { resolve: resolve, reject: reject } });
- });
- resolveData.hasOpenDataPromise = true;
- }
- resolve(resolveData);
- return;
- }
-
- // 默认按钮,确认为 resolve,取消为 reject
- if (dataset.type === 'confirm') {
- resolve({
- type: 'confirm'
- });
- } else {
- reject({
- type: 'cancel'
- });
- }
-
- this.setData({ promiseFunc: {} });
- },
-
-
- // 以下为处理微信按钮开放能力的逻辑
- handleUserInfoResponse: function handleUserInfoResponse(_ref2) {
- var detail = _ref2.detail;
-
- this.__handleOpenDataResponse({
- type: detail.errMsg === 'getUserInfo:ok' ? 'resolve' : 'reject',
- data: detail
- });
- },
- handlePhoneResponse: function handlePhoneResponse(_ref3) {
- var detail = _ref3.detail;
-
- this.__handleOpenDataResponse({
- type: detail.errMsg === 'getPhoneNumber:ok' ? 'resolve' : 'reject',
- data: detail
- });
- },
- handleOpenSettingResponse: function handleOpenSettingResponse(_ref4) {
- var detail = _ref4.detail;
-
- this.__handleOpenDataResponse({
- type: detail.errMsg === 'openSetting:ok' ? 'resolve' : 'reject',
- data: detail
- });
- },
- __handleOpenDataResponse: function __handleOpenDataResponse(_ref5) {
- var _ref5$type = _ref5.type,
- type = _ref5$type === undefined ? 'resolve' : _ref5$type,
- _ref5$data = _ref5.data,
- data = _ref5$data === undefined ? {} : _ref5$data;
-
- var promiseFuncs = this.data.openTypePromiseFunc || {};
- var responseFunc = promiseFuncs[type] || _f;
-
- responseFunc(data);
- this.setData({ openTypePromiseFunc: null });
- }
- }
-});
\ No newline at end of file
diff --git a/dist/dialog/index.json b/dist/dialog/index.json
deleted file mode 100644
index 4c9bf594..00000000
--- a/dist/dialog/index.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "pop-manager": "../common/pop-manager/index",
- "van-button": "../button/index"
- }
-}
diff --git a/dist/dialog/index.wxml b/dist/dialog/index.wxml
deleted file mode 100644
index 68228aba..00000000
--- a/dist/dialog/index.wxml
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
- {{ message }}
-
-
-
-
diff --git a/dist/dialog/index.wxss b/dist/dialog/index.wxss
deleted file mode 100644
index 459e858c..00000000
--- a/dist/dialog/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-dialog--container{width:80vw;font-size:16px;overflow:hidden;border-radius:4px;background-color:#fff;color:#333}.van-dialog__header{padding:15px 0 0;text-align:center}.van-dialog__content{position:relative;padding:15px 20px;line-height:1.5;min-height:40px}.van-dialog__content::after{content:'';position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #e5e5e5;border-bottom-width:1px}.van-dialog__content--title{color:#999;font-size:14px}.van-dialog__footer{overflow:hidden}.van-dialog__button{-webkit-box-flex:1;flex:1}.van-dialog__button-inside,.van-dialog__button-inside--first{margin-bottom:0;line-height:50px;height:50px}.van-dialog__button-inside--first::after,.van-dialog__button-inside::after{border-width:0;border-radius:0}.van-dialog__footer--horizon{display:-webkit-box;display:flex}.van-dialog__footer--horizon .van-dialog__button-inside::after{border-left-width:1px}.van-dialog__footer--vertical .van-dialog__button-inside::after{border-top-width:1px}
\ No newline at end of file
diff --git a/dist/field/index.js b/dist/field/index.js
deleted file mode 100644
index 40106d80..00000000
--- a/dist/field/index.js
+++ /dev/null
@@ -1,71 +0,0 @@
-'use strict';
-
-Component({
- behaviors: ['wx://form-field'],
-
- externalClasses: ['field-class'],
-
- relations: {
- '../cell-group/index': {
- type: 'parent'
- }
- },
-
- properties: {
- title: String,
- type: {
- type: String,
- value: 'input'
- },
- disabled: Boolean,
- focus: Boolean,
- inputType: {
- type: String,
- value: 'text'
- },
- placeholder: String,
- mode: {
- type: String,
- value: 'normal'
- },
- right: Boolean,
- error: Boolean,
- maxlength: {
- type: Number,
- value: 140
- }
- },
-
- data: {
- showBorder: true
- },
-
- methods: {
- handleFieldChange: function handleFieldChange(event) {
- var _event$detail = event.detail,
- detail = _event$detail === undefined ? {} : _event$detail;
- var _detail$value = detail.value,
- value = _detail$value === undefined ? '' : _detail$value;
-
- this.setData({ value: value });
-
- this.triggerEvent('change', event);
- },
- handleFieldFocus: function handleFieldFocus(event) {
- this.triggerEvent('focus', event);
- },
- handleFieldBlur: function handleFieldBlur(event) {
- this.triggerEvent('blur', event);
- },
- updateIsLastElement: function updateIsLastElement(isLastField) {
- var showBorder = true;
- if (isLastField && this.data.mode === 'normal') {
- showBorder = false;
- }
-
- this.setData({
- showBorder: showBorder
- });
- }
- }
-});
\ No newline at end of file
diff --git a/dist/field/index.json b/dist/field/index.json
deleted file mode 100644
index 114b55d6..00000000
--- a/dist/field/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-cell": "../cell/index"
- }
-}
\ No newline at end of file
diff --git a/dist/field/index.wxml b/dist/field/index.wxml
deleted file mode 100644
index 9792e9c9..00000000
--- a/dist/field/index.wxml
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
- {{ title }}
-
-
-
-
diff --git a/dist/field/index.wxss b/dist/field/index.wxss
deleted file mode 100644
index 4814695b..00000000
--- a/dist/field/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-field{display:block;position:relative;color:#333}.van-field::after{content:'';position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #e5e5e5;border-bottom-width:1px;left:15px;right:0}.van-field--no-border::after{border-bottom-width:0}.van-cell--field{padding:7px 15px}.van-field--wrapped{margin:10px 15px;background-color:#fff}.van-field--wrapped::after{left:0;border-width:1px;border-radius:4px}.van-field--wrapped::after{display:block}.van-field--error{color:#f40}.van-field--wrapped.van-field--error::after{border-color:#f40}.van-field__title{color:#333;min-width:65px;padding-right:10px}.van-field__input{-webkit-box-flex:1;flex:1;line-height:1.6;padding:4px 0;min-height:22px;height:auto;font-size:14px}.van-field__placeholder{font-size:14px}.van-field__input--right{text-align:right}
\ No newline at end of file
diff --git a/dist/helper/index.wxss b/dist/helper/index.wxss
deleted file mode 100644
index d8288fa0..00000000
--- a/dist/helper/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-pull-left{float:left}.van-pull-right{float:right}.van-center{text-align:center}.van-right{text-align:right}.van-text-deleted{text-decoration:line-through}.van-font-8{font-size:8px}.van-font-10{font-size:10px}.van-font-12{font-size:12px}.van-font-14{font-size:14px}.van-font-16{font-size:16px}.van-font-18{font-size:18px}.van-font-20{font-size:20px}.van-font-22{font-size:22px}.van-font-24{font-size:24px}.van-font-26{font-size:26px}.van-font-30{font-size:30px}.van-font-bold{font-weight:700}.van-arrow{position:absolute;right:15px;top:50%;display:inline-block;height:6px;width:6px;border-width:2px 2px 0 0;border-color:#c8c8c8;border-style:solid;-webkit-transform:translateY(-50%) matrix(.71,.71,-.71,.71,0,0);transform:translateY(-50%) matrix(.71,.71,-.71,.71,0,0)}.van-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal}.van-ellipsis--l2{max-height:40px;line-height:20px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.van-ellipsis--l3{max-height:60px;line-height:20px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.van-clearfix{zoom:1}.van-clearfix::after{content:'';display:table;clear:both}.van-c-red{color:#f44}.van-c-black{color:#000}.van-c-green{color:#06bf04}.van-c-blue{color:#38f}.van-c-gray{color:#c9c9c9}.van-c-gray-dark{color:#999}.van-c-gray-darker{color:#666}.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{content:'';position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #e5e5e5}.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}
\ No newline at end of file
diff --git a/dist/icon/index.js b/dist/icon/index.js
deleted file mode 100644
index 281ab935..00000000
--- a/dist/icon/index.js
+++ /dev/null
@@ -1,10 +0,0 @@
-'use strict';
-
-Component({
- properties: {
- type: {
- type: String,
- value: ''
- }
- }
-});
\ No newline at end of file
diff --git a/dist/icon/index.json b/dist/icon/index.json
deleted file mode 100644
index 467ce294..00000000
--- a/dist/icon/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/dist/icon/index.wxml b/dist/icon/index.wxml
deleted file mode 100644
index efcd93dd..00000000
--- a/dist/icon/index.wxml
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/dist/icon/index.wxss b/dist/icon/index.wxss
deleted file mode 100644
index e4d96197..00000000
--- a/dist/icon/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-@font-face{font-family:zanui-weapp-icon;src:url(https://b.yzcdn.cn/vant-weapp/zanui-weapp-icon-eeb0d3c52a.eot);src:url(https://b.yzcdn.cn/vant-weapp/zanui-weapp-icon-eeb0d3c52a.eot?#iefix) format('embedded-opentype'),url(https://b.yzcdn.cn/vant-weapp/zanui-weapp-icon-eeb0d3c52a.woff2) format('woff2'),url(https://b.yzcdn.cn/vant-weapp/zanui-weapp-icon-eeb0d3c52a.woff) format('woff'),url(https://b.yzcdn.cn/vant-weapp/zanui-weapp-icon-eeb0d3c52a.ttf) format('truetype')}.van-icon{display:inline-block}.van-icon::before{font-family:zanui-weapp-icon!important;font-style:normal;font-weight:400;speak:none;display:inline-block;text-decoration:inherit;width:1em;text-align:center;font-variant:normal;text-transform:none;line-height:1em;-webkit-font-smoothing:antialiased}.van-icon-qr-invalid:before{content:'\e800'}.van-icon-qr:before{content:'\e801'}.van-icon-exchange:before{content:'\e802'}.van-icon-close:before{content:'\e803'}.van-icon-location:before{content:'\e804'}.van-icon-upgrade:before{content:'\e805'}.van-icon-check:before{content:'\e806'}.van-icon-checked:before{content:'\e807'}.van-icon-like-o:before{content:'\e808'}.van-icon-like:before{content:'\e809'}.van-icon-chat:before{content:'\e80a'}.van-icon-shop:before{content:'\e80b'}.van-icon-photograph:before{content:'\e80c'}.van-icon-add:before{content:'\e80d'}.van-icon-minus:before{content:'\e80e'}.van-icon-add2:before{content:'\e80f'}.van-icon-photo:before{content:'\e810'}.van-icon-logistics:before{content:'\e811'}.van-icon-edit:before{content:'\e812'}.van-icon-passed:before{content:'\e813'}.van-icon-cart:before{content:'\e814'}.van-icon-shopping-cart:before{content:'\e815'}.van-icon-arrow:before{content:'\e816'}.van-icon-gift:before{content:'\e817'}.van-icon-search:before{content:'\e818'}.van-icon-clear:before{content:'\e819'}.van-icon-success:before{content:'\e81a'}.van-icon-fail:before{content:'\e81b'}.van-icon-contact:before{content:'\e81c'}.van-icon-wechat:before{content:'\e81d'}.van-icon-alipay:before{content:'\e81e'}.van-icon-password-view:before{content:'\e81f'}.van-icon-password-not-view:before{content:'\e820'}.van-icon-wap-nav:before{content:'\e821'}.van-icon-wap-home:before{content:'\e822'}.van-icon-ecard-pay:before{content:'\e823'}.van-icon-balance-pay:before{content:'\e824'}.van-icon-peer-pay:before{content:'\e825'}.van-icon-credit-pay:before{content:'\e826'}.van-icon-debit-pay:before{content:'\e827'}.van-icon-other-pay:before{content:'\e828'}.van-icon-browsing-history:before{content:'\e829'}.van-icon-goods-collect:before{content:'\e82a'}.van-icon-shop-collect:before{content:'\e82b'}.van-icon-receive-gift:before{content:'\e82c'}.van-icon-send-gift:before{content:'\e82d'}.van-icon-setting:before{content:'\e82e'}.van-icon-points:before{content:'\e82f'}.van-icon-coupon:before{content:'\e830'}.van-icon-free-postage:before{content:'\e831'}.van-icon-discount:before{content:'\e832'}.van-icon-birthday-privilege:before{content:'\e833'}.van-icon-member-day-privilege:before{content:'\e834'}.van-icon-balance-details:before{content:'\e835'}.van-icon-cash-back-record:before{content:'\e836'}.van-icon-points-mall:before{content:'\e837'}.van-icon-exchange-record:before{content:'\e838'}.van-icon-pending-payment:before{content:'\e839'}.van-icon-pending-orders:before{content:'\e83a'}.van-icon-pending-deliver:before{content:'\e83b'}.van-icon-pending-evaluate:before{content:'\e83c'}.van-icon-gift-card-pay:before{content:'\e83d'}.van-icon-cash-on-deliver:before{content:'\e83e'}.van-icon-underway:before{content:'\e83f'}.van-icon-point-gift:before{content:'\e840'}.van-icon-after-sale:before{content:'\e841'}.van-icon-edit-data:before{content:'\e842'}.van-icon-question:before{content:'\e843'}.van-icon-delete:before{content:'\e844'}.van-icon-records:before{content:'\e845'}.van-icon-description:before{content:'\e846'}.van-icon-card:before{content:'\e847'}.van-icon-gift-card:before{content:'\e848'}.van-icon-clock:before{content:'\e849'}.van-icon-gold-coin:before{content:'\e84a'}.van-icon-completed:before{content:'\e84b'}.van-icon-value-card:before{content:'\e84c'}.van-icon-certificate:before{content:'\e84d'}.van-icon-tosend:before{content:'\e84e'}.van-icon-sign:before{content:'\e84f'}.van-icon-home:before{content:'\e850'}.van-icon-phone:before{content:'\e851'}.van-icon-add-o:before{content:'\e852'}.van-icon-minus-o:before{content:'\e853'}.van-icon-play:before{content:'\e854'}.van-icon-pause:before{content:'\e855'}.van-icon-stop:before{content:'\e856'}.van-icon-hot:before{content:'\e857'}.van-icon-new:before{content:'\e858'}.van-icon-new-arrival:before{content:'\e859'}.van-icon-hot-sale:before{content:'\e85a'}
\ No newline at end of file
diff --git a/dist/index.js b/dist/index.js
deleted file mode 100644
index 59d2c3b8..00000000
--- a/dist/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-exports.Dialog = require('./dialog/dialog');
-exports.Toast = require('./toast/toast');
-exports.TopTips = require('./toptips/toptips');
\ No newline at end of file
diff --git a/dist/index.wxss b/dist/index.wxss
deleted file mode 100644
index d8288fa0..00000000
--- a/dist/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-pull-left{float:left}.van-pull-right{float:right}.van-center{text-align:center}.van-right{text-align:right}.van-text-deleted{text-decoration:line-through}.van-font-8{font-size:8px}.van-font-10{font-size:10px}.van-font-12{font-size:12px}.van-font-14{font-size:14px}.van-font-16{font-size:16px}.van-font-18{font-size:18px}.van-font-20{font-size:20px}.van-font-22{font-size:22px}.van-font-24{font-size:24px}.van-font-26{font-size:26px}.van-font-30{font-size:30px}.van-font-bold{font-weight:700}.van-arrow{position:absolute;right:15px;top:50%;display:inline-block;height:6px;width:6px;border-width:2px 2px 0 0;border-color:#c8c8c8;border-style:solid;-webkit-transform:translateY(-50%) matrix(.71,.71,-.71,.71,0,0);transform:translateY(-50%) matrix(.71,.71,-.71,.71,0,0)}.van-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal}.van-ellipsis--l2{max-height:40px;line-height:20px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.van-ellipsis--l3{max-height:60px;line-height:20px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.van-clearfix{zoom:1}.van-clearfix::after{content:'';display:table;clear:both}.van-c-red{color:#f44}.van-c-black{color:#000}.van-c-green{color:#06bf04}.van-c-blue{color:#38f}.van-c-gray{color:#c9c9c9}.van-c-gray-dark{color:#999}.van-c-gray-darker{color:#666}.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{content:'';position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #e5e5e5}.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}
\ No newline at end of file
diff --git a/dist/loading/index.js b/dist/loading/index.js
deleted file mode 100644
index a458a6ae..00000000
--- a/dist/loading/index.js
+++ /dev/null
@@ -1,13 +0,0 @@
-'use strict';
-
-Component({
- properties: {
- type: {
- type: String,
- value: 'circle'
- },
- color: {
- type: String
- }
- }
-});
\ No newline at end of file
diff --git a/dist/loading/index.json b/dist/loading/index.json
deleted file mode 100644
index 32640e0d..00000000
--- a/dist/loading/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
\ No newline at end of file
diff --git a/dist/loading/index.wxml b/dist/loading/index.wxml
deleted file mode 100644
index 641501ff..00000000
--- a/dist/loading/index.wxml
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/dist/loading/index.wxss b/dist/loading/index.wxss
deleted file mode 100644
index 5d7270a5..00000000
--- a/dist/loading/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.loading.inline{position:relative;margin:15px;text-align:center;display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center}.loading.inline .circle{display:inline-block;height:24px;width:24px;border-radius:100%;border:3px solid transparent;box-sizing:border-box;border-color:rgba(0,0,0,.1);border-top-color:rgba(255,255,255,.7);-webkit-animation:loading 1s linear infinite;animation:loading 1s linear infinite}.loading.inline.black .circle{border-color:#c9c9c9;border-top-color:#666}.loading.inline .circular{display:inline-block;height:24px;width:24px;-webkit-animation:loading 2s linear infinite;animation:loading 2s linear infinite}.loading.inline .circular::after{content:'';display:block;width:100%;height:100%;border-radius:100%;border:3px solid transparent;box-sizing:border-box;-webkit-animation:circular 2s ease infinite;animation:circular 2s ease infinite}.loading.inline .spinner{width:30px;height:30px;display:inline-block;position:relative;-webkit-animation:loading 1s linear infinite;animation:loading 1s linear infinite;-webkit-animation-timing-function:steps(12);animation-timing-function:steps(12)}.loading.inline .spinner view{width:100%;height:100%;position:absolute;text-align:center;top:0;left:0}.loading.inline .spinner view::after{content:'';background:#fff;height:25%;display:block;width:2px;border-radius:2px;margin:0 auto}.loading.inline .spinner view:nth-child(1){-webkit-transform:rotate(30deg);transform:rotate(30deg);opacity:.78571}.loading.inline .spinner view:nth-child(2){-webkit-transform:rotate(60deg);transform:rotate(60deg);opacity:.71429}.loading.inline .spinner view:nth-child(3){-webkit-transform:rotate(90deg);transform:rotate(90deg);opacity:.64286}.loading.inline .spinner view:nth-child(4){-webkit-transform:rotate(120deg);transform:rotate(120deg);opacity:.57143}.loading.inline .spinner view:nth-child(5){-webkit-transform:rotate(150deg);transform:rotate(150deg);opacity:.5}.loading.inline .spinner view:nth-child(6){-webkit-transform:rotate(180deg);transform:rotate(180deg);opacity:.42857}.loading.inline .spinner view:nth-child(7){-webkit-transform:rotate(210deg);transform:rotate(210deg);opacity:.35714}.loading.inline .spinner view:nth-child(8){-webkit-transform:rotate(240deg);transform:rotate(240deg);opacity:.28571}.loading.inline .spinner view:nth-child(9){-webkit-transform:rotate(270deg);transform:rotate(270deg);opacity:.21429}.loading.inline .spinner view:nth-child(10){-webkit-transform:rotate(300deg);transform:rotate(300deg);opacity:.14286}.loading.inline .spinner view:nth-child(11){-webkit-transform:rotate(330deg);transform:rotate(330deg);opacity:.07143}.loading.inline .spinner view:nth-child(12){-webkit-transform:rotate(360deg);transform:rotate(360deg);opacity:0}.loading.inline.black .spinner view::after{content:'';background:#c9c9c9;height:25%;display:block;width:2px;border-radius:2px;margin:0 auto}.loading.block .dot-spinner{margin:15px 15px;overflow:hidden}.loading.block .dot-spinner view{width:8px;height:8px;border-radius:8px;background:#fff;display:inline-block;margin-left:3px;position:relative;left:0;-webkit-animation:dot-spinner 2s ease infinite;animation:dot-spinner 2s ease infinite}.loading.block .dot-spinner view:nth-child(1){-webkit-animation-delay:.5s;animation-delay:.5s}.loading.block .dot-spinner view:nth-child(2){-webkit-animation-delay:.4s;animation-delay:.4s}.loading.block .dot-spinner view:nth-child(3){-webkit-animation-delay:.3s;animation-delay:.3s}.loading.block .dot-spinner view:nth-child(4){-webkit-animation-delay:.2s;animation-delay:.2s}.loading.block .dot-spinner view:nth-child(5){-webkit-animation-delay:.1s;animation-delay:.1s}.loading.block .dot-spinner view:nth-child(6){-webkit-animation-delay:0s;animation-delay:0s}.loading.block .dot-spinner view:nth-child(6){display:none}.loading.block .dot-spinner view:nth-child(7){display:none}.loading.block .dot-spinner view:nth-child(8){display:none}.loading.block .dot-spinner view:nth-child(9){display:none}.loading.block .dot-spinner view:nth-child(10){display:none}.loading.block .dot-spinner view:nth-child(11){display:none}.loading.block .dot-spinner view:nth-child(12){display:none}.loading.block.black .dot-spinner view{background:#c9c9c9}@-webkit-keyframes dot-spinner{40%{left:-webkit-calc(50% - 15px);left:calc(50% - 15px)}60%{left:-webkit-calc(50% - 15px);left:calc(50% - 15px)}100%{left:100%}}@keyframes dot-spinner{40%{left:-webkit-calc(50% - 15px);left:calc(50% - 15px)}60%{left:-webkit-calc(50% - 15px);left:calc(50% - 15px)}100%{left:100%}}@-webkit-keyframes circular{0%{border-color:#fff}12%{border-top-color:transparent}25%{border-right-color:transparent}37%{border-bottom-color:transparent}50%{border-left-color:transparent}64%{border-top-color:#fff}75%{border-right-color:#fff}87.5%{border-bottom-color:#fff}100%{border-color:#fff}}@keyframes circular{0%{border-color:#fff}12%{border-top-color:transparent}25%{border-right-color:transparent}37%{border-bottom-color:transparent}50%{border-left-color:transparent}64%{border-top-color:#fff}75%{border-right-color:#fff}87.5%{border-bottom-color:#fff}100%{border-color:#fff}}@-webkit-keyframes loading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes loading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}
\ No newline at end of file
diff --git a/dist/loadmore/index.js b/dist/loadmore/index.js
deleted file mode 100644
index e445027f..00000000
--- a/dist/loadmore/index.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-
-Component({
- properties: {
- type: {
- type: String,
- value: 'loading'
- },
- text: {
- type: String,
- value: ''
- }
- }
-});
\ No newline at end of file
diff --git a/dist/loadmore/index.json b/dist/loadmore/index.json
deleted file mode 100644
index 467ce294..00000000
--- a/dist/loadmore/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/dist/loadmore/index.wxml b/dist/loadmore/index.wxml
deleted file mode 100644
index 91aaf503..00000000
--- a/dist/loadmore/index.wxml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
- 加载中...
-
-
-
- {{ text }}
-
-
-
-
\ No newline at end of file
diff --git a/dist/loadmore/index.wxss b/dist/loadmore/index.wxss
deleted file mode 100644
index 057b5f47..00000000
--- a/dist/loadmore/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-loadmore{display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;min-height:24px;line-height:24px;font-size:12px}.van-loadmore__line{-webkit-box-flex:1;flex:1;height:1px;position:relative}.van-loadmore__line::after{content:'';position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #e5e5e5;border-bottom-width:1px}.van-loadmore__dot,.van-loadmore__text{margin:0 5px}.van-loadmore__dot{content:"";width:4px;height:4px;border-radius:50%;background-color:#e5e5e5;display:inline-block;vertical-align:middle}.van-loading{width:20px;height:20px;display:inline-block;vertical-align:middle;-webkit-animation:weuiLoading 1s steps(12,end) infinite;animation:weuiLoading 1s steps(12,end) infinite;background:transparent url(data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iciIgd2lkdGg9JzEyMHB4JyBoZWlnaHQ9JzEyMHB4JyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj4KICAgIDxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIiBmaWxsPSJub25lIiBjbGFzcz0iYmsiPjwvcmVjdD4KICAgIDxyZWN0IHg9JzQ2LjUnIHk9JzQwJyB3aWR0aD0nNycgaGVpZ2h0PScyMCcgcng9JzUnIHJ5PSc1JyBmaWxsPScjRTlFOUU5JwogICAgICAgICAgdHJhbnNmb3JtPSdyb3RhdGUoMCA1MCA1MCkgdHJhbnNsYXRlKDAgLTMwKSc+CiAgICA8L3JlY3Q+CiAgICA8cmVjdCB4PSc0Ni41JyB5PSc0MCcgd2lkdGg9JzcnIGhlaWdodD0nMjAnIHJ4PSc1JyByeT0nNScgZmlsbD0nIzk4OTY5NycKICAgICAgICAgIHRyYW5zZm9ybT0ncm90YXRlKDMwIDUwIDUwKSB0cmFuc2xhdGUoMCAtMzApJz4KICAgICAgICAgICAgICAgICByZXBlYXRDb3VudD0naW5kZWZpbml0ZScvPgogICAgPC9yZWN0PgogICAgPHJlY3QgeD0nNDYuNScgeT0nNDAnIHdpZHRoPSc3JyBoZWlnaHQ9JzIwJyByeD0nNScgcnk9JzUnIGZpbGw9JyM5Qjk5OUEnCiAgICAgICAgICB0cmFuc2Zvcm09J3JvdGF0ZSg2MCA1MCA1MCkgdHJhbnNsYXRlKDAgLTMwKSc+CiAgICAgICAgICAgICAgICAgcmVwZWF0Q291bnQ9J2luZGVmaW5pdGUnLz4KICAgIDwvcmVjdD4KICAgIDxyZWN0IHg9JzQ2LjUnIHk9JzQwJyB3aWR0aD0nNycgaGVpZ2h0PScyMCcgcng9JzUnIHJ5PSc1JyBmaWxsPScjQTNBMUEyJwogICAgICAgICAgdHJhbnNmb3JtPSdyb3RhdGUoOTAgNTAgNTApIHRyYW5zbGF0ZSgwIC0zMCknPgogICAgPC9yZWN0PgogICAgPHJlY3QgeD0nNDYuNScgeT0nNDAnIHdpZHRoPSc3JyBoZWlnaHQ9JzIwJyByeD0nNScgcnk9JzUnIGZpbGw9JyNBQkE5QUEnCiAgICAgICAgICB0cmFuc2Zvcm09J3JvdGF0ZSgxMjAgNTAgNTApIHRyYW5zbGF0ZSgwIC0zMCknPgogICAgPC9yZWN0PgogICAgPHJlY3QgeD0nNDYuNScgeT0nNDAnIHdpZHRoPSc3JyBoZWlnaHQ9JzIwJyByeD0nNScgcnk9JzUnIGZpbGw9JyNCMkIyQjInCiAgICAgICAgICB0cmFuc2Zvcm09J3JvdGF0ZSgxNTAgNTAgNTApIHRyYW5zbGF0ZSgwIC0zMCknPgogICAgPC9yZWN0PgogICAgPHJlY3QgeD0nNDYuNScgeT0nNDAnIHdpZHRoPSc3JyBoZWlnaHQ9JzIwJyByeD0nNScgcnk9JzUnIGZpbGw9JyNCQUI4QjknCiAgICAgICAgICB0cmFuc2Zvcm09J3JvdGF0ZSgxODAgNTAgNTApIHRyYW5zbGF0ZSgwIC0zMCknPgogICAgPC9yZWN0PgogICAgPHJlY3QgeD0nNDYuNScgeT0nNDAnIHdpZHRoPSc3JyBoZWlnaHQ9JzIwJyByeD0nNScgcnk9JzUnIGZpbGw9JyNDMkMwQzEnCiAgICAgICAgICB0cmFuc2Zvcm09J3JvdGF0ZSgyMTAgNTAgNTApIHRyYW5zbGF0ZSgwIC0zMCknPgogICAgPC9yZWN0PgogICAgPHJlY3QgeD0nNDYuNScgeT0nNDAnIHdpZHRoPSc3JyBoZWlnaHQ9JzIwJyByeD0nNScgcnk9JzUnIGZpbGw9JyNDQkNCQ0InCiAgICAgICAgICB0cmFuc2Zvcm09J3JvdGF0ZSgyNDAgNTAgNTApIHRyYW5zbGF0ZSgwIC0zMCknPgogICAgPC9yZWN0PgogICAgPHJlY3QgeD0nNDYuNScgeT0nNDAnIHdpZHRoPSc3JyBoZWlnaHQ9JzIwJyByeD0nNScgcnk9JzUnIGZpbGw9JyNEMkQyRDInCiAgICAgICAgICB0cmFuc2Zvcm09J3JvdGF0ZSgyNzAgNTAgNTApIHRyYW5zbGF0ZSgwIC0zMCknPgogICAgPC9yZWN0PgogICAgPHJlY3QgeD0nNDYuNScgeT0nNDAnIHdpZHRoPSc3JyBoZWlnaHQ9JzIwJyByeD0nNScgcnk9JzUnIGZpbGw9JyNEQURBREEnCiAgICAgICAgICB0cmFuc2Zvcm09J3JvdGF0ZSgzMDAgNTAgNTApIHRyYW5zbGF0ZSgwIC0zMCknPgogICAgPC9yZWN0PgogICAgPHJlY3QgeD0nNDYuNScgeT0nNDAnIHdpZHRoPSc3JyBoZWlnaHQ9JzIwJyByeD0nNScgcnk9JzUnIGZpbGw9JyNFMkUyRTInCiAgICAgICAgICB0cmFuc2Zvcm09J3JvdGF0ZSgzMzAgNTAgNTApIHRyYW5zbGF0ZSgwIC0zMCknPgogICAgPC9yZWN0Pgo8L3N2Zz4=) no-repeat;background-size:100%}.van-loadmore__tips{display:inline-block;vertical-align:middle;height:24px;line-height:24px}
\ No newline at end of file
diff --git a/dist/noticebar/index.js b/dist/noticebar/index.js
deleted file mode 100644
index 0f9909b3..00000000
--- a/dist/noticebar/index.js
+++ /dev/null
@@ -1,176 +0,0 @@
-'use strict';
-
-var VALID_MODE = ['closeable'];
-var FONT_COLOR = '#f60';
-var BG_COLOR = '#fff7cc';
-
-Component({
- properties: {
- text: {
- type: String,
- value: '',
- observer: function observer(newVal) {
- this.setData({}, this._init);
- }
- },
- mode: {
- type: String,
- value: ''
- },
- url: {
- type: String,
- value: ''
- },
- openType: {
- type: String,
- value: 'navigate'
- },
- delay: {
- type: Number,
- value: 0
- },
- speed: {
- type: Number,
- value: 40
- },
- scrollable: {
- type: Boolean,
- value: false
- },
- leftIcon: {
- type: String,
- value: ''
- },
- color: {
- type: String,
- value: FONT_COLOR
- },
- backgroundColor: {
- type: String,
- value: BG_COLOR
- }
- },
-
- data: {
- show: true,
- hasRightIcon: false,
- width: undefined,
- wrapWidth: undefined,
- elapse: undefined,
- animation: null,
- resetAnimation: null,
- timer: null
- },
-
- attached: function attached() {
- var mode = this.data.mode;
-
- if (mode && this._checkMode(mode)) {
- this.setData({
- hasRightIcon: true
- });
- }
- },
- detached: function detached() {
- var timer = this.data.timer;
-
- timer && clearTimeout(timer);
- },
-
-
- methods: {
- _checkMode: function _checkMode(val) {
- var isValidMode = ~VALID_MODE.indexOf(val);
- if (!isValidMode) {
- console.warn('mode only accept value of ' + VALID_MODE + ', now get ' + val + '.');
- }
- return isValidMode;
- },
- _init: function _init() {
- var _this = this;
-
- wx.createSelectorQuery().in(this).select('.van-notice-bar__content').boundingClientRect(function (rect) {
- if (!rect || !rect.width) {
- return;
- }
- _this.setData({
- width: rect.width
- });
-
- wx.createSelectorQuery().in(_this).select('.van-notice-bar__content-wrap').boundingClientRect(function (rect) {
- if (!rect || !rect.width) {
- return;
- }
-
- var wrapWidth = rect.width;
- var _data = _this.data,
- width = _data.width,
- speed = _data.speed,
- scrollable = _data.scrollable,
- delay = _data.delay;
-
-
- if (scrollable && wrapWidth < width) {
- var elapse = width / speed * 1000;
- var animation = wx.createAnimation({
- duration: elapse,
- timeingFunction: 'linear',
- delay: delay
- });
- var resetAnimation = wx.createAnimation({
- duration: 0,
- timeingFunction: 'linear'
- });
-
- _this.setData({
- elapse: elapse,
- wrapWidth: wrapWidth,
- animation: animation,
- resetAnimation: resetAnimation
- }, function () {
- _this._scroll();
- });
- }
- }).exec();
- }).exec();
- },
- _scroll: function _scroll() {
- var _this2 = this;
-
- var _data2 = this.data,
- animation = _data2.animation,
- resetAnimation = _data2.resetAnimation,
- wrapWidth = _data2.wrapWidth,
- elapse = _data2.elapse,
- speed = _data2.speed;
-
- resetAnimation.translateX(wrapWidth).step();
- var animationData = animation.translateX(-(elapse * speed) / 1000).step();
- this.setData({
- animationData: resetAnimation.export()
- });
- setTimeout(function () {
- _this2.setData({
- animationData: animationData.export()
- });
- }, 100);
-
- var timer = setTimeout(function () {
- _this2._scroll();
- }, elapse);
-
- this.setData({
- timer: timer
- });
- },
- _handleButtonClick: function _handleButtonClick() {
- var timer = this.data.timer;
-
- timer && clearTimeout(timer);
- this.setData({
- show: false,
- timer: null
- });
- }
- }
-});
\ No newline at end of file
diff --git a/dist/noticebar/index.json b/dist/noticebar/index.json
deleted file mode 100644
index a9ab393a..00000000
--- a/dist/noticebar/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index"
- }
-}
\ No newline at end of file
diff --git a/dist/noticebar/index.wxml b/dist/noticebar/index.wxml
deleted file mode 100644
index e142a1a9..00000000
--- a/dist/noticebar/index.wxml
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-
-
-
-
- {{ text }}
-
-
-
-
-
-
-
-
-
-
-
diff --git a/dist/noticebar/index.wxss b/dist/noticebar/index.wxss
deleted file mode 100644
index 29fb6cbf..00000000
--- a/dist/noticebar/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-notice-bar{display:-webkit-box;display:flex;padding:9px 10px;font-size:12px;line-height:1.5}.van-notice-bar--within-icon{position:relative;padding-right:30px}.van-notice-bar__left-icon{height:18px;min-width:20px;padding-top:1px;box-sizing:border-box}.van-notice-bar__left-icon>image{width:16px;height:16px}.van-notice-bar__right-icon{position:absolute;top:10px;right:10px;font-size:15px;line-height:1}.van-notice-bar__content-wrap{position:relative;-webkit-box-flex:1;flex:1;height:18px;overflow:hidden}.van-notice-bar__content{position:absolute;white-space:nowrap}
\ No newline at end of file
diff --git a/dist/panel/index.js b/dist/panel/index.js
deleted file mode 100644
index 007df427..00000000
--- a/dist/panel/index.js
+++ /dev/null
@@ -1,25 +0,0 @@
-'use strict';
-
-Component({
- /**
- * 组件的属性列表
- * 用于组件自定义设置
- */
- properties: {
- // 标题
- title: {
- type: String,
- value: ''
- },
- // 内容区顶部是否取消10像素的间距
- hideTop: {
- type: Boolean,
- value: false
- },
- // 内容区顶部是否取消边框
- hideBorder: {
- type: Boolean,
- value: false
- }
- }
-});
\ No newline at end of file
diff --git a/dist/panel/index.json b/dist/panel/index.json
deleted file mode 100644
index 467ce294..00000000
--- a/dist/panel/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/dist/panel/index.wxml b/dist/panel/index.wxml
deleted file mode 100644
index 23121dc5..00000000
--- a/dist/panel/index.wxml
+++ /dev/null
@@ -1,10 +0,0 @@
-
- {{ title }}
-
-
-
-
diff --git a/dist/panel/index.wxss b/dist/panel/index.wxss
deleted file mode 100644
index 798ac453..00000000
--- a/dist/panel/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-panel{position:relative;overflow:hidden}.van-panel__title{font-size:14px;line-height:1;color:#999;padding:20px 15px 10px 15px}.van-panel__content{position:relative;background:#fff;overflow:hidden}.van-panel__content::after{content:'';position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #e5e5e5;border-top-width:1px;border-bottom-width:1px}.van-panel--without-border::after{border:0 none}
\ No newline at end of file
diff --git a/dist/popup/index.js b/dist/popup/index.js
deleted file mode 100644
index f0e688f6..00000000
--- a/dist/popup/index.js
+++ /dev/null
@@ -1,37 +0,0 @@
-'use strict';
-
-Component({
- properties: {
- show: {
- type: Boolean,
- value: false
- },
-
- overlay: {
- type: Boolean,
- value: true
- },
-
- closeOnClickOverlay: {
- type: Boolean,
- value: true
- },
-
- // 弹出方向
- type: {
- type: String,
- value: 'center'
- }
- },
-
- methods: {
- handleMaskClick: function handleMaskClick() {
- this.triggerEvent('click-overlay', {});
-
- if (!this.data.closeOnClickOverlay) {
- return;
- }
- this.triggerEvent('close', {});
- }
- }
-});
\ No newline at end of file
diff --git a/dist/popup/index.json b/dist/popup/index.json
deleted file mode 100644
index 58663aee..00000000
--- a/dist/popup/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "pop-manager": "../common/pop-manager/index"
- }
-}
diff --git a/dist/popup/index.wxml b/dist/popup/index.wxml
deleted file mode 100644
index 6451fc6f..00000000
--- a/dist/popup/index.wxml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
diff --git a/dist/radio/index.js b/dist/radio/index.js
deleted file mode 100644
index c6934df7..00000000
--- a/dist/radio/index.js
+++ /dev/null
@@ -1,33 +0,0 @@
-'use strict';
-
-Component({
- behaviors: ['wx://form-field'],
-
- externalClasses: ['radio-class', 'radio-color'],
-
- properties: {
- items: Array,
- type: String
- },
-
- methods: {
- radioChange: function radioChange(e) {
- this.selectItem(e.detail.value);
- this.triggerEvent('change', e);
- },
- selectItem: function selectItem(value) {
- var items = this.data.items;
-
-
- items.forEach(function (item) {
- if (item.name === value) {
- item.checked = true;
- } else {
- item.checked = false;
- }
- });
-
- this.setData({ items: items });
- }
- }
-});
\ No newline at end of file
diff --git a/dist/radio/index.json b/dist/radio/index.json
deleted file mode 100644
index 0a336c08..00000000
--- a/dist/radio/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index"
- }
-}
diff --git a/dist/radio/index.wxml b/dist/radio/index.wxml
deleted file mode 100644
index 961b8c1a..00000000
--- a/dist/radio/index.wxml
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
diff --git a/dist/radio/index.wxss b/dist/radio/index.wxss
deleted file mode 100644
index a12713fe..00000000
--- a/dist/radio/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-radio{display:block;padding:0 10px;font-size:14px}.van-radio__item{display:block;margin-top:10px;height:20px}.van-radio__item:last-child{margin-bottom:10px}.van-radio__list-item{display:block;padding:10px 10px 10px 0;border-bottom:1px solid #e5e5e5}.van-radio__list-item .van-radio__icon-wrap{float:right;margin-top:3px}.van-radio__icon-wrap{position:relative;width:14px;height:15px;display:-webkit-inline-box;display:inline-flex;-webkit-box-align:center;align-items:center;color:#aaa}.van-radio__icon-wrap .van-radio__origin{opacity:0;width:14px;height:20px}.van-radio__icon-wrap .van-radio__icon{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);border:1px solid #dcdfe6;border-radius:100%;width:14px;height:14px;background-color:#fff;cursor:pointer;box-sizing:border-box}.van-radio__icon-wrap .van-radio__icon .van-radio__icon-inside{position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:4px;height:4px;border-radius:50%}.van-radio__icon-wrap .van-radio__icon.van-radio--checked{border-color:#06bf04;background:#06bf04}.van-radio__icon-wrap .van-radio__icon.van-radio--checked .van-radio__icon-inside{background-color:#fff}.van-radio__icon-wrap .van-radio__icon.van-radio--disabled{opacity:.6}.van-radio__name{display:inline-block;margin-left:10px}
\ No newline at end of file
diff --git a/dist/row/index.js b/dist/row/index.js
deleted file mode 100644
index 25c62ad4..00000000
--- a/dist/row/index.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-
-Component({
- externalClasses: ['row-class'],
-
- relations: {
- '../col/index': {
- type: 'child'
- }
- }
-});
\ No newline at end of file
diff --git a/dist/row/index.json b/dist/row/index.json
deleted file mode 100644
index 467ce294..00000000
--- a/dist/row/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/dist/row/index.wxml b/dist/row/index.wxml
deleted file mode 100644
index 6bbc449a..00000000
--- a/dist/row/index.wxml
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/dist/row/index.wxss b/dist/row/index.wxss
deleted file mode 100644
index 24684aa1..00000000
--- a/dist/row/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-row:after{content:"";display:table;clear:both}
\ No newline at end of file
diff --git a/dist/search/index.js b/dist/search/index.js
deleted file mode 100644
index 0a51765a..00000000
--- a/dist/search/index.js
+++ /dev/null
@@ -1,69 +0,0 @@
-'use strict';
-
-Component({
- externalClasses: ['search-class', 'input-class', 'cancel-class'],
- properties: {
- cancelText: {
- type: String,
- value: '取消'
- },
- disabled: {
- type: Boolean,
- value: false
- },
- focus: {
- type: Boolean,
- value: false
- },
- keyword: {
- type: String,
- value: ''
- },
- show: {
- type: Array,
- value: ['icon', 'cancel']
- },
- placeholder: {
- type: String,
- value: '请输入查询关键字',
- observer: function observer(newVal) {
- this.setData({
- inputWidth: newVal.length * 14 + 45 + 'px'
- });
- }
- },
- useCancel: {
- type: Boolean
- },
- searchStyle: String,
- cancelStyle: String,
- inputStyle: String
- },
- data: {
- inputWidth: 'auto'
- },
- methods: {
- blur: function blur() {
- this.triggerEvent('blur');
- },
- clearInput: function clearInput() {
- this.setData({
- focus: true
- });
- this.triggerEvent('change', { value: '' });
- },
- cancelSearch: function cancelSearch() {
- this.triggerEvent('cancel');
- },
- focus: function focus() {
- this.triggerEvent('focus');
- },
- inputChange: function inputChange(e) {
- this._inputvalue = e.detail.value;
- this.triggerEvent('change', { value: e.detail.value });
- },
- search: function search(e) {
- this.triggerEvent('search', { value: e.detail.value });
- }
- }
-});
\ No newline at end of file
diff --git a/dist/search/index.json b/dist/search/index.json
deleted file mode 100644
index 32640e0d..00000000
--- a/dist/search/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
\ No newline at end of file
diff --git a/dist/search/index.wxml b/dist/search/index.wxml
deleted file mode 100644
index 2d22fc0b..00000000
--- a/dist/search/index.wxml
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
-
-
-
- {{cancelText || '取消'}}
-
-
diff --git a/dist/search/index.wxss b/dist/search/index.wxss
deleted file mode 100644
index 1f013dae..00000000
--- a/dist/search/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-search{box-sizing:border-box;display:-webkit-box;display:flex;-webkit-box-pack:justify;justify-content:space-between;-webkit-box-align:center;align-items:center;background:0 0;padding:5px 10px}.van-search.center-placeholder{background:#fff}.van-search.center-placeholder .van-search__form{margin-left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);border:none}.van-search.van-cell::after{display:none}.van-search__form{display:-webkit-box;display:flex;-webkit-box-flex:1;flex:1;background:#fff;border-radius:4rpx;height:64rpx;line-height:56rpx;-webkit-box-pack:justify;justify-content:space-between;-webkit-box-align:center;align-items:center}.van-search picker{display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;height:100%;padding-right:20rpx}.van-search__form .picker{position:relative;width:110rpx;height:100%;color:#666;font-size:28rpx;margin-left:20rpx}.van-search__form .picker::after{content:'';width:0;height:0;position:absolute;right:0;top:50%;margin-top:-6rpx;border-top:12rpx solid #333;border-right:8rpx solid transparent;border-left:8rpx solid transparent}.van-search__form input{height:100%;-webkit-box-flex:1;flex:1;padding:0 20rpx;font-size:28rpx;color:#333}.van-search__form icon{margin-left:20rpx;line-height:1}.van-search__clear{padding:12rpx 20rpx}.van-search__placeholder{font-size:28rpx;color:#cacaca}.van-search__cancel{align-self:stretch;display:-webkit-inline-box;display:inline-flex;-webkit-box-align:center;align-items:center;padding-left:30rpx;font-size:28rpx;color:#38f}
\ No newline at end of file
diff --git a/dist/select/index.js b/dist/select/index.js
deleted file mode 100644
index 00e297dc..00000000
--- a/dist/select/index.js
+++ /dev/null
@@ -1,29 +0,0 @@
-'use strict';
-
-Component({
- properties: {
- items: {
- type: Array,
- value: []
- },
- name: {
- type: String,
- value: ''
- },
- checkedValue: {
- type: String,
- value: ''
- },
- activeColor: {
- type: String,
- value: '#ff4444'
- }
- },
-
- methods: {
- handleSelectChange: function handleSelectChange(e) {
- var value = e.detail.value;
- this.triggerEvent('change', { value: value });
- }
- }
-});
\ No newline at end of file
diff --git a/dist/select/index.json b/dist/select/index.json
deleted file mode 100644
index d2a8d90e..00000000
--- a/dist/select/index.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index",
- "van-cell": "../cell/index"
- }
-}
diff --git a/dist/select/index.wxml b/dist/select/index.wxml
deleted file mode 100644
index 00681349..00000000
--- a/dist/select/index.wxml
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
-
-
-function getColor(color) {
- color = color || '#ff4444'
- return color;
-}
-
-module.exports = {
- getColor: getColor,
- getItemStyle: function(item, checkedValue, activeColor) {
- var padding = item.padding * 10;
- var style = 'padding-left: ' + padding + 'px;';
-
- // 如果为选中状态,则高亮
- if (item.value === checkedValue) {
- style += 'color: ' + getColor(activeColor);
- }
-
- return style;
- }
-};
-
diff --git a/dist/select/index.wxss b/dist/select/index.wxss
deleted file mode 100644
index 5c815303..00000000
--- a/dist/select/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-select__list .van-select__radio{position:absolute;top:0;bottom:0;left:0;right:0;opacity:0}
\ No newline at end of file
diff --git a/dist/stepper/index.js b/dist/stepper/index.js
deleted file mode 100644
index e0cbb608..00000000
--- a/dist/stepper/index.js
+++ /dev/null
@@ -1,85 +0,0 @@
-'use strict';
-
-// Note that the bitwise operators and shift operators operate on 32-bit ints
-// so in that case, the max safe integer is 2^31-1, or 2147483647
-var VERY_LARGE_NUMBER = 2147483647;
-
-Component({
- properties: {
- size: {
- type: String,
- value: 'middle'
- },
- stepper: {
- type: Number,
- value: 1
- },
- min: {
- type: Number,
- value: 1
- },
- max: {
- type: Number,
- value: VERY_LARGE_NUMBER
- },
- step: {
- type: Number,
- value: 1
- }
- },
-
- methods: {
- handleZanStepperChange: function handleZanStepperChange(e, type) {
- var _e$currentTarget$data = e.currentTarget.dataset,
- dataset = _e$currentTarget$data === undefined ? {} : _e$currentTarget$data;
- var disabled = dataset.disabled;
- var step = this.data.step;
- var stepper = this.data.stepper;
-
-
- if (disabled) return null;
-
- if (type === 'minus') {
- stepper -= step;
- } else if (type === 'plus') {
- stepper += step;
- }
-
- if (stepper < this.data.min || stepper > this.data.max) return null;
-
- this.triggerEvent('change', stepper);
- this.triggerEvent(type);
- },
- handleZanStepperMinus: function handleZanStepperMinus(e) {
- this.handleZanStepperChange(e, 'minus');
- },
- handleZanStepperPlus: function handleZanStepperPlus(e) {
- this.handleZanStepperChange(e, 'plus');
- },
- handleZanStepperBlur: function handleZanStepperBlur(e) {
- var _this = this;
-
- var value = e.detail.value;
- var _data = this.data,
- min = _data.min,
- max = _data.max;
-
-
- if (!value) {
- setTimeout(function () {
- _this.triggerEvent('change', min);
- }, 16);
- return;
- }
-
- value = +value;
- if (value > max) {
- value = max;
- } else if (value < min) {
- value = min;
- }
-
- this.triggerEvent('change', value);
- }
- }
-});
\ No newline at end of file
diff --git a/dist/stepper/index.json b/dist/stepper/index.json
deleted file mode 100644
index 32640e0d..00000000
--- a/dist/stepper/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
\ No newline at end of file
diff --git a/dist/stepper/index.wxml b/dist/stepper/index.wxml
deleted file mode 100644
index 11c4680a..00000000
--- a/dist/stepper/index.wxml
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
- -
-
-
-
- +
-
-
diff --git a/dist/stepper/index.wxss b/dist/stepper/index.wxss
deleted file mode 100644
index ded2837f..00000000
--- a/dist/stepper/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-stepper{color:#666}.van-stepper view{display:inline-block;padding:5px 0;text-align:center;box-sizing:border-box;vertical-align:middle;font-size:12px;border:1rpx solid #999}.van-stepper .van-stepper__minus{border-right:none;border-radius:2px 0 0 2px}.van-stepper .van-stepper__text{border:1rpx solid #999;display:inline-block;text-align:center;vertical-align:middle;min-height:auto;font-size:12px}.van-stepper .van-stepper__plus{border-left:none;border-radius:0 2px 2px 0}.van-stepper .van-stepper--disabled{background:#f8f8f8;color:#bbb;border-color:#e8e8e8}.van-stepper--small view{min-width:36px;line-height:18px}.van-stepper--small .van-stepper__text{width:36px;line-height:28px;height:28px}.van-stepper--middle view{min-width:40px;line-height:20px}.van-stepper--middle .van-stepper__text{width:40px;line-height:30px;height:30px}.van-stepper--large view{min-width:44px;line-height:22px}.van-stepper--large .van-stepper__text{width:44px;line-height:32px;height:32px}
\ No newline at end of file
diff --git a/dist/steps/index.js b/dist/steps/index.js
deleted file mode 100644
index fb846ab6..00000000
--- a/dist/steps/index.js
+++ /dev/null
@@ -1,23 +0,0 @@
-'use strict';
-
-Component({
- externalClasses: ['steps-class', 'icon-class', 'title-class', 'desc-class'],
- properties: {
- type: {
- type: String,
- value: 'horizon'
- },
-
- hasDesc: {
- type: Boolean,
- value: false
- },
-
- steps: { // 必须
- type: Array,
- value: []
- },
-
- className: String
- }
-});
\ No newline at end of file
diff --git a/dist/steps/index.json b/dist/steps/index.json
deleted file mode 100644
index 467ce294..00000000
--- a/dist/steps/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/dist/steps/index.wxml b/dist/steps/index.wxml
deleted file mode 100644
index cd0b160f..00000000
--- a/dist/steps/index.wxml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
- {{ step.text }}
- {{ step.desc }}
-
-
-
-
-
-
diff --git a/dist/steps/index.wxss b/dist/steps/index.wxss
deleted file mode 100644
index 8441a7b4..00000000
--- a/dist/steps/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-steps--steps.van-steps--5 .van-steps__step{width:25%}.van-steps--steps.van-steps--4 .van-steps__step{width:33%}.van-steps--steps.van-steps--3 .van-steps__step{width:50%}.van-steps--steps .van-steps__step{position:relative;float:left;padding-bottom:25px;color:#b1b1b1;width:100%}.van-steps--steps .van-steps__title{-webkit-transform:translateX(-50%);transform:translateX(-50%);font-size:10px;text-align:center}.van-steps--steps .van-steps__icons{position:absolute;top:30px;left:-10px;padding:0 8px;background-color:#fff;z-index:10}.van-steps--steps .van-steps__circle{display:block;position:relative;width:5px;height:5px;background-color:#e5e5e5;border-radius:50%}.van-steps--steps .van-steps__line{position:absolute;left:0;top:32px;width:100%;height:1px;background-color:#e5e5e5}.van-steps--steps .van-steps__step--done{color:#333}.van-steps--steps .van-steps__step--done .van-steps__line{background-color:#06bf04}.van-steps--steps .van-steps__step--done .van-steps__circle{width:5px;height:5px;background-color:#09bb07}.van-steps--steps .van-steps__step--cur .van-steps__icons{top:25px;left:-14px}.van-steps--steps .van-steps__step--cur .van-steps__circle{width:13px;height:13px;background-image:url(https://b.yzcdn.cn/v2/image/wap/success_small@2x.png);background-size:13px 13px}.van-steps--steps .van-steps__step--cur .van-steps__line{background-color:#e5e5e5}.van-steps--steps .van-steps__step--first-child .van-steps__title{margin-left:0;-webkit-transform:none;transform:none;text-align:left}.van-steps--steps .van-steps__step--first-child .van-steps__icons{left:-7px}.van-steps--steps .van-steps__step--last-child{position:absolute;right:0;top:0;text-align:right}.van-steps--steps .van-steps__step--last-child .van-steps__title{-webkit-transform:none;transform:none;text-align:right}.van-steps--steps .van-steps__step--last-child .van-steps__icons{left:auto;right:-6px}.van-steps--steps .van-steps__step--last-child .van-steps__line{display:none}.van-steps--steps .van-steps__step--db-title{min-height:29px}.van-steps--steps .van-steps__step--db-title .van-steps__line{top:45px}.van-steps--steps .van-steps__step--db-title .van-steps__icons{top:43px}.van-steps--steps .van-steps__step--db-title.van-steps__step--cur .van-steps__icons{top:39px}.van-steps--vsteps{color:#999;font-size:14px}.van-steps--vsteps .van-steps__step{position:relative;padding:15px 0}.van-steps--vsteps .van-steps__step--done{color:#4b0}.van-steps--vsteps .van-steps__line{position:absolute;top:0;bottom:0;left:7px;width:1px;background-color:#e5e5e5}.van-steps--vsteps .van-steps__title{display:inline-block;line-height:20px;padding-left:27px}.van-steps--vsteps .van-steps__title--desc{padding-left:3px}.van-steps--vsteps .van-steps__icons{position:absolute;left:7px;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);z-index:2;padding:3px 0;background-color:#fff}.van-steps--vsteps .van-steps__circle{width:5px;height:5px;background-color:#e5e5e5;border-radius:10px}.van-steps--vsteps .van-steps__step--done .van-steps__circle{width:5px;height:5px;background-color:#09bb07}.van-steps--vsteps .van-steps__step--cur .van-steps__circle{width:13px;height:13px;background:transparent url(https://b.yzcdn.cn/v2/image/wap/success_small@2x.png);background-size:13px 13px;border-radius:0}.van-steps--vsteps .van-steps__icon--active{width:13px;height:13px}.van-steps--vsteps .van-steps__step--first-child .van-steps__title::before{content:'';position:absolute;top:0;bottom:50%;left:7px;width:1px;background-color:#fff;z-index:1}.van-steps--vsteps .van-steps__step--last-child .van-steps__title::after{content:'';position:absolute;top:50%;bottom:0;left:7px;width:1px;background-color:#fff;z-index:1}.van-steps{position:relative}
\ No newline at end of file
diff --git a/dist/steps/wxss/step.wxss b/dist/steps/wxss/step.wxss
deleted file mode 100644
index 374b6d26..00000000
--- a/dist/steps/wxss/step.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-steps--steps.van-steps--5 .van-steps__step{width:25%}.van-steps--steps.van-steps--4 .van-steps__step{width:33%}.van-steps--steps.van-steps--3 .van-steps__step{width:50%}.van-steps--steps .van-steps__step{position:relative;float:left;padding-bottom:25px;color:#b1b1b1;width:100%}.van-steps--steps .van-steps__title{-webkit-transform:translateX(-50%);transform:translateX(-50%);font-size:10px;text-align:center}.van-steps--steps .van-steps__icons{position:absolute;top:30px;left:-10px;padding:0 8px;background-color:#fff;z-index:10}.van-steps--steps .van-steps__circle{display:block;position:relative;width:5px;height:5px;background-color:#e5e5e5;border-radius:50%}.van-steps--steps .van-steps__line{position:absolute;left:0;top:32px;width:100%;height:1px;background-color:#e5e5e5}.van-steps--steps .van-steps__step--done{color:#333}.van-steps--steps .van-steps__step--done .van-steps__line{background-color:#06bf04}.van-steps--steps .van-steps__step--done .van-steps__circle{width:5px;height:5px;background-color:#09bb07}.van-steps--steps .van-steps__step--cur .van-steps__icons{top:25px;left:-14px}.van-steps--steps .van-steps__step--cur .van-steps__circle{width:13px;height:13px;background-image:url(https://b.yzcdn.cn/v2/image/wap/success_small@2x.png);background-size:13px 13px}.van-steps--steps .van-steps__step--cur .van-steps__line{background-color:#e5e5e5}.van-steps--steps .van-steps__step--first-child .van-steps__title{margin-left:0;-webkit-transform:none;transform:none;text-align:left}.van-steps--steps .van-steps__step--first-child .van-steps__icons{left:-7px}.van-steps--steps .van-steps__step--last-child{position:absolute;right:0;top:0;text-align:right}.van-steps--steps .van-steps__step--last-child .van-steps__title{-webkit-transform:none;transform:none;text-align:right}.van-steps--steps .van-steps__step--last-child .van-steps__icons{left:auto;right:-6px}.van-steps--steps .van-steps__step--last-child .van-steps__line{display:none}.van-steps--steps .van-steps__step--db-title{min-height:29px}.van-steps--steps .van-steps__step--db-title .van-steps__line{top:45px}.van-steps--steps .van-steps__step--db-title .van-steps__icons{top:43px}.van-steps--steps .van-steps__step--db-title.van-steps__step--cur .van-steps__icons{top:39px}
\ No newline at end of file
diff --git a/dist/steps/wxss/vstep.wxss b/dist/steps/wxss/vstep.wxss
deleted file mode 100644
index 0dc782e1..00000000
--- a/dist/steps/wxss/vstep.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-steps--vsteps{color:#999;font-size:14px}.van-steps--vsteps .van-steps__step{position:relative;padding:15px 0}.van-steps--vsteps .van-steps__step--done{color:#4b0}.van-steps--vsteps .van-steps__line{position:absolute;top:0;bottom:0;left:7px;width:1px;background-color:#e5e5e5}.van-steps--vsteps .van-steps__title{display:inline-block;line-height:20px;padding-left:27px}.van-steps--vsteps .van-steps__title--desc{padding-left:3px}.van-steps--vsteps .van-steps__icons{position:absolute;left:7px;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);z-index:2;padding:3px 0;background-color:#fff}.van-steps--vsteps .van-steps__circle{width:5px;height:5px;background-color:#e5e5e5;border-radius:10px}.van-steps--vsteps .van-steps__step--done .van-steps__circle{width:5px;height:5px;background-color:#09bb07}.van-steps--vsteps .van-steps__step--cur .van-steps__circle{width:13px;height:13px;background:transparent url(https://b.yzcdn.cn/v2/image/wap/success_small@2x.png);background-size:13px 13px;border-radius:0}.van-steps--vsteps .van-steps__icon--active{width:13px;height:13px}.van-steps--vsteps .van-steps__step--first-child .van-steps__title::before{content:'';position:absolute;top:0;bottom:50%;left:7px;width:1px;background-color:#fff;z-index:1}.van-steps--vsteps .van-steps__step--last-child .van-steps__title::after{content:'';position:absolute;top:50%;bottom:0;left:7px;width:1px;background-color:#fff;z-index:1}
\ No newline at end of file
diff --git a/dist/switch/index.js b/dist/switch/index.js
deleted file mode 100644
index 089c3286..00000000
--- a/dist/switch/index.js
+++ /dev/null
@@ -1,35 +0,0 @@
-'use strict';
-
-Component({
- externalClasses: ['custom-class', 'theme-class'],
-
- properties: {
- checked: {
- type: Boolean,
- value: false
- },
-
- loading: {
- type: Boolean,
- value: false
- },
-
- disabled: {
- type: Boolean,
- value: false
- }
- },
-
- methods: {
- handleZanSwitchChange: function handleZanSwitchChange() {
- if (this.data.loading || this.data.disabled) {
- return;
- }
- var checked = !this.data.checked;
- this.triggerEvent('change', {
- checked: checked,
- loading: this.data.loading
- });
- }
- }
-});
\ No newline at end of file
diff --git a/dist/switch/index.json b/dist/switch/index.json
deleted file mode 100644
index 467ce294..00000000
--- a/dist/switch/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/dist/switch/index.wxml b/dist/switch/index.wxml
deleted file mode 100644
index b0d87524..00000000
--- a/dist/switch/index.wxml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
diff --git a/dist/switch/index.wxss b/dist/switch/index.wxss
deleted file mode 100644
index b0b2bd01..00000000
--- a/dist/switch/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-switch{position:relative;display:inline-block;width:52px;height:32px;vertical-align:middle;box-sizing:border-box;border-radius:16px;background:#44db5e;border:1px solid #44db5e}.van-switch__circle{position:absolute;top:0;left:0;width:30px;height:30px;display:inline-block;background:#fff;border-radius:15px;box-sizing:border-box;box-shadow:0 0 0 1px rgba(0,0,0,.1),0 3px 1px 0 rgba(0,0,0,.05),0 2px 2px 0 rgba(0,0,0,.1),0 3px 3px 0 rgba(0,0,0,.05);-webkit-transition:-webkit-transform .35s cubic-bezier(.45,1,.4,1);transition:-webkit-transform .35s cubic-bezier(.45,1,.4,1);transition:transform .35s cubic-bezier(.45,1,.4,1);transition:transform .35s cubic-bezier(.45,1,.4,1),-webkit-transform .35s cubic-bezier(.45,1,.4,1);z-index:2}.van-switch__bg{position:absolute;top:-1px;left:-1px;width:52px;height:32px;background:#fff;border-radius:26px;display:inline-block;border:1px solid #e5e5e5;box-sizing:border-box;-webkit-transition:-webkit-transform .35s cubic-bezier(.45,1,.4,1);transition:-webkit-transform .35s cubic-bezier(.45,1,.4,1);transition:transform .35s cubic-bezier(.45,1,.4,1);transition:transform .35s cubic-bezier(.45,1,.4,1),-webkit-transform .35s cubic-bezier(.45,1,.4,1);-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:36px 16px;transform-origin:36px 16px}.van-switch--on .van-switch__circle{-webkit-transform:translateX(20px);transform:translateX(20px)}.van-switch--off .van-switch__bg{-webkit-transform:scale(1);transform:scale(1)}.van-swtich--disabled{opacity:.4}.van-switch__loading{position:absolute;left:7px;top:7px;width:16px;height:16px;background:url(https://img.yzcdn.cn/public_files/2017/02/24/9acec77d91106cd15b8107c4633d9155.png) no-repeat;background-size:16px 16px;-webkit-animation:van-switch-loading .8s infinite linear;animation:van-switch-loading .8s infinite linear}@-webkit-keyframes van-switch-loading{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes van-switch-loading{from{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}
\ No newline at end of file
diff --git a/dist/tab/index.js b/dist/tab/index.js
deleted file mode 100644
index 431f0a10..00000000
--- a/dist/tab/index.js
+++ /dev/null
@@ -1,61 +0,0 @@
-'use strict';
-
-Component({
- externalClasses: 'class',
-
- properties: {
- scroll: {
- type: Boolean,
- value: false
- },
- fixed: {
- type: Boolean,
- value: false
- },
- height: {
- type: Number,
- value: 0
- },
- list: {
- type: Array,
- value: []
- },
- selectedId: {
- type: [String, Number],
- value: ''
- }
- },
-
- data: {
- scrollLeft: 0
- },
-
- methods: {
- _handleScroll: function _handleScroll(selectedId) {
- var _this = this;
-
- var query = wx.createSelectorQuery().in(this);
- query.select('#item-' + selectedId).boundingClientRect();
- query.select('#scroll-view').boundingClientRect();
- query.select('#scroll-view').scrollOffset();
- query.exec(function (res) {
- _this.setData({
- scrollLeft: res[2].scrollLeft + res[0].left + res[0].width / 2 - res[1].width / 2
- });
- });
- },
- _handleZanTabChange: function _handleZanTabChange(e) {
- var selectedId = e.currentTarget.dataset.itemId;
-
- if (this.data.scroll) {
- this._handleScroll(selectedId);
- }
-
- this.setData({
- selectedId: selectedId
- });
-
- this.triggerEvent('tabchange', selectedId);
- }
- }
-});
\ No newline at end of file
diff --git a/dist/tab/index.json b/dist/tab/index.json
deleted file mode 100644
index 32640e0d..00000000
--- a/dist/tab/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
\ No newline at end of file
diff --git a/dist/tab/index.wxml b/dist/tab/index.wxml
deleted file mode 100644
index 409e2670..00000000
--- a/dist/tab/index.wxml
+++ /dev/null
@@ -1,51 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ item.title }}
-
-
-
diff --git a/dist/tab/index.wxss b/dist/tab/index.wxss
deleted file mode 100644
index eb5b8ef8..00000000
--- a/dist/tab/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-tab{height:45px}.van-tab__bd{width:100%;display:-webkit-box;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row;border-bottom:1rpx solid #e5e5e5;background:#fff}.van-tab__bd--fixed{position:fixed;top:0;z-index:2}.van-tab__item{-webkit-box-flex:1;flex:1;display:inline-block;padding:0 5px;line-height:0;box-sizing:border-box;overflow:hidden;text-align:center}.van-tab__title{display:inline-block;max-width:100%;height:44px;line-height:44px;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;word-break:keep-all;font-size:14px;color:#666}.van-tab__item--selected .van-tab__title{color:#f44;border-bottom:2px solid #f44}.van-tab__bd--scroll{display:block;white-space:nowrap}.van-tab__bd--scroll .van-tab__item{min-width:80px}
\ No newline at end of file
diff --git a/dist/tag/index.js b/dist/tag/index.js
deleted file mode 100644
index d175fa4b..00000000
--- a/dist/tag/index.js
+++ /dev/null
@@ -1,19 +0,0 @@
-'use strict';
-
-Component({
- externalClasses: ['custom-class', 'theme-class'],
-
- properties: {
- type: {
- type: String
- },
- plain: {
- type: Boolean,
- value: false
- },
- disabled: {
- type: Boolean,
- value: false
- }
- }
-});
\ No newline at end of file
diff --git a/dist/tag/index.json b/dist/tag/index.json
deleted file mode 100644
index 32640e0d..00000000
--- a/dist/tag/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
\ No newline at end of file
diff --git a/dist/tag/index.wxml b/dist/tag/index.wxml
deleted file mode 100644
index a585a66f..00000000
--- a/dist/tag/index.wxml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/dist/tag/index.wxss b/dist/tag/index.wxss
deleted file mode 100644
index 57e0e3fd..00000000
--- a/dist/tag/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-tag{display:inline-block;position:relative;box-sizing:border-box;line-height:16px;padding:0 5px;border-radius:2px;font-size:11px;background:#c9c9c9;text-align:center;color:#fff}.van-tag::after{content:'';position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #e5e5e5;border-width:1px;border-radius:4px}.van-tag--plain{color:#c9c9c9;background:#fff}.van-tag--primary{color:#fff;background-color:#4b0}.van-tag--primary::after{border-color:#4b0}.van-tag--primary.van-tag--plain{color:#4b0;background:#fff}.van-tag--danger{color:#fff;background:#f44}.van-tag--danger::after{border-color:#f44}.van-tag--danger.van-tag--plain{color:#f44;background:#fff}.van-tag--warn{color:#fff;background:#f85}.van-tag--warn::after{border-color:#f85}.van-tag--warn.van-tag--plain{color:#f85;background:#fff}.van-tag--disabled{color:#999!important;background:#e5e5e5}.van-tag--disabled::after{border-color:#ccc}
\ No newline at end of file
diff --git a/dist/toast/index.js b/dist/toast/index.js
deleted file mode 100644
index a5044c54..00000000
--- a/dist/toast/index.js
+++ /dev/null
@@ -1,36 +0,0 @@
-'use strict';
-
-var DEFAULT_DATA = {
- show: false,
- message: '',
- icon: '',
- image: '',
- mask: false
-};
-
-var SUPPORT_TYPE = ['loading', 'success', 'fail'];
-
-Component({
- data: Object.assign({}, DEFAULT_DATA),
-
- methods: {
- show: function show(options) {
- var toastOptions = Object.assign({}, options);
-
- var icon = options.icon || '';
- var image = options.image || '';
- if (SUPPORT_TYPE.indexOf(options.type) > -1) {
- icon = options.type;
- image = '';
- }
-
- this.setData(Object.assign({}, toastOptions, {
- icon: icon,
- image: image
- }));
- },
- clear: function clear() {
- this.setData(Object.assign({}, DEFAULT_DATA));
- }
- }
-});
\ No newline at end of file
diff --git a/dist/toast/index.json b/dist/toast/index.json
deleted file mode 100644
index 0a336c08..00000000
--- a/dist/toast/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index"
- }
-}
diff --git a/dist/toast/index.wxml b/dist/toast/index.wxml
deleted file mode 100644
index af4af861..00000000
--- a/dist/toast/index.wxml
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
- {{ message }}
-
diff --git a/dist/toast/index.wxss b/dist/toast/index.wxss
deleted file mode 100644
index b7460d18..00000000
--- a/dist/toast/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-toast{position:fixed;top:35%;left:50%;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0);background:rgba(0,0,0,.7);color:#fff;font-size:14px;line-height:1.5em;margin:0 auto;box-sizing:border-box;padding:10px 18px;text-align:center;border-radius:4px;z-index:100}.van-toast--notitle{padding:18px}.van-toast__icon{display:block;width:40px;height:40px;line-height:40px;margin:0 auto;padding:12px 15px;font-size:38px;text-align:center}.van-toast__icon-loading{line-height:0}.van-loading{width:20px;height:20px;display:inline-block;vertical-align:middle;-webkit-animation:weuiLoading 1s steps(12,end) infinite;animation:weuiLoading 1s steps(12,end) infinite;background:transparent url(data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iciIgd2lkdGg9JzEyMHB4JyBoZWlnaHQ9JzEyMHB4JyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj4KICAgIDxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIiBmaWxsPSJub25lIiBjbGFzcz0iYmsiPjwvcmVjdD4KICAgIDxyZWN0IHg9JzQ2LjUnIHk9JzQwJyB3aWR0aD0nNycgaGVpZ2h0PScyMCcgcng9JzUnIHJ5PSc1JyBmaWxsPScjRTlFOUU5JwogICAgICAgICAgdHJhbnNmb3JtPSdyb3RhdGUoMCA1MCA1MCkgdHJhbnNsYXRlKDAgLTMwKSc+CiAgICA8L3JlY3Q+CiAgICA8cmVjdCB4PSc0Ni41JyB5PSc0MCcgd2lkdGg9JzcnIGhlaWdodD0nMjAnIHJ4PSc1JyByeT0nNScgZmlsbD0nIzk4OTY5NycKICAgICAgICAgIHRyYW5zZm9ybT0ncm90YXRlKDMwIDUwIDUwKSB0cmFuc2xhdGUoMCAtMzApJz4KICAgICAgICAgICAgICAgICByZXBlYXRDb3VudD0naW5kZWZpbml0ZScvPgogICAgPC9yZWN0PgogICAgPHJlY3QgeD0nNDYuNScgeT0nNDAnIHdpZHRoPSc3JyBoZWlnaHQ9JzIwJyByeD0nNScgcnk9JzUnIGZpbGw9JyM5Qjk5OUEnCiAgICAgICAgICB0cmFuc2Zvcm09J3JvdGF0ZSg2MCA1MCA1MCkgdHJhbnNsYXRlKDAgLTMwKSc+CiAgICAgICAgICAgICAgICAgcmVwZWF0Q291bnQ9J2luZGVmaW5pdGUnLz4KICAgIDwvcmVjdD4KICAgIDxyZWN0IHg9JzQ2LjUnIHk9JzQwJyB3aWR0aD0nNycgaGVpZ2h0PScyMCcgcng9JzUnIHJ5PSc1JyBmaWxsPScjQTNBMUEyJwogICAgICAgICAgdHJhbnNmb3JtPSdyb3RhdGUoOTAgNTAgNTApIHRyYW5zbGF0ZSgwIC0zMCknPgogICAgPC9yZWN0PgogICAgPHJlY3QgeD0nNDYuNScgeT0nNDAnIHdpZHRoPSc3JyBoZWlnaHQ9JzIwJyByeD0nNScgcnk9JzUnIGZpbGw9JyNBQkE5QUEnCiAgICAgICAgICB0cmFuc2Zvcm09J3JvdGF0ZSgxMjAgNTAgNTApIHRyYW5zbGF0ZSgwIC0zMCknPgogICAgPC9yZWN0PgogICAgPHJlY3QgeD0nNDYuNScgeT0nNDAnIHdpZHRoPSc3JyBoZWlnaHQ9JzIwJyByeD0nNScgcnk9JzUnIGZpbGw9JyNCMkIyQjInCiAgICAgICAgICB0cmFuc2Zvcm09J3JvdGF0ZSgxNTAgNTAgNTApIHRyYW5zbGF0ZSgwIC0zMCknPgogICAgPC9yZWN0PgogICAgPHJlY3QgeD0nNDYuNScgeT0nNDAnIHdpZHRoPSc3JyBoZWlnaHQ9JzIwJyByeD0nNScgcnk9JzUnIGZpbGw9JyNCQUI4QjknCiAgICAgICAgICB0cmFuc2Zvcm09J3JvdGF0ZSgxODAgNTAgNTApIHRyYW5zbGF0ZSgwIC0zMCknPgogICAgPC9yZWN0PgogICAgPHJlY3QgeD0nNDYuNScgeT0nNDAnIHdpZHRoPSc3JyBoZWlnaHQ9JzIwJyByeD0nNScgcnk9JzUnIGZpbGw9JyNDMkMwQzEnCiAgICAgICAgICB0cmFuc2Zvcm09J3JvdGF0ZSgyMTAgNTAgNTApIHRyYW5zbGF0ZSgwIC0zMCknPgogICAgPC9yZWN0PgogICAgPHJlY3QgeD0nNDYuNScgeT0nNDAnIHdpZHRoPSc3JyBoZWlnaHQ9JzIwJyByeD0nNScgcnk9JzUnIGZpbGw9JyNDQkNCQ0InCiAgICAgICAgICB0cmFuc2Zvcm09J3JvdGF0ZSgyNDAgNTAgNTApIHRyYW5zbGF0ZSgwIC0zMCknPgogICAgPC9yZWN0PgogICAgPHJlY3QgeD0nNDYuNScgeT0nNDAnIHdpZHRoPSc3JyBoZWlnaHQ9JzIwJyByeD0nNScgcnk9JzUnIGZpbGw9JyNEMkQyRDInCiAgICAgICAgICB0cmFuc2Zvcm09J3JvdGF0ZSgyNzAgNTAgNTApIHRyYW5zbGF0ZSgwIC0zMCknPgogICAgPC9yZWN0PgogICAgPHJlY3QgeD0nNDYuNScgeT0nNDAnIHdpZHRoPSc3JyBoZWlnaHQ9JzIwJyByeD0nNScgcnk9JzUnIGZpbGw9JyNEQURBREEnCiAgICAgICAgICB0cmFuc2Zvcm09J3JvdGF0ZSgzMDAgNTAgNTApIHRyYW5zbGF0ZSgwIC0zMCknPgogICAgPC9yZWN0PgogICAgPHJlY3QgeD0nNDYuNScgeT0nNDAnIHdpZHRoPSc3JyBoZWlnaHQ9JzIwJyByeD0nNScgcnk9JzUnIGZpbGw9JyNFMkUyRTInCiAgICAgICAgICB0cmFuc2Zvcm09J3JvdGF0ZSgzMzAgNTAgNTApIHRyYW5zbGF0ZSgwIC0zMCknPgogICAgPC9yZWN0Pgo8L3N2Zz4=) no-repeat;background-size:100%}.van-toast__icon-loading .van-loading{width:40px;height:40px}.van-toast__icon-image{background-size:40px;background-position:center;background-repeat:no-repeat}
\ No newline at end of file
diff --git a/dist/toast/toast.js b/dist/toast/toast.js
deleted file mode 100644
index 934dbab0..00000000
--- a/dist/toast/toast.js
+++ /dev/null
@@ -1,134 +0,0 @@
-'use strict';
-
-var TOAST_CONFIG_KEY = 'zanui.__zanToastPageConfig';
-var DEFAULT_SHOW_TOAST_TIME = 3000;
-
-var timeoutData = {
- timeoutId: 0,
- toastCtx: null
-};
-
-var globalToastUserConfig = {};
-
-// 获取页面上下文
-function getPageCtx(pageCtx) {
- var ctx = pageCtx;
-
- if (!ctx) {
- var pages = getCurrentPages();
- ctx = pages[pages.length - 1];
- }
-
- return ctx;
-}
-
-// 获取当前页面的 toast 配置数据
-function getPageToastConfig(pageCtx) {
- var zanuiData = pageCtx.data.zanui || {};
- return zanuiData.__zanToastPageConfig || {};
-}
-
-// Toast 显示函数
-function Toast(optionsOrMsg, pageCtx) {
- // 参数格式化处理
- // 如果是文字,默认为 message
- var options = optionsOrMsg || {};
- if (typeof optionsOrMsg === 'string') {
- options = { message: optionsOrMsg };
- }
-
- var ctx = getPageCtx(pageCtx);
- var pageToastUserSetting = getPageToastConfig(ctx);
- var parsedOptions = Object.assign({}, globalToastUserConfig, pageToastUserSetting, options);
- var toastCtx = ctx.selectComponent(parsedOptions.selector);
-
- if (!toastCtx) {
- console.error('无法找到对应的toast组件,请于页面中注册并在 wxml 中声明 toast 自定义组件');
- return;
- }
-
- if (timeoutData.timeoutId) {
- Toast.clear();
- }
-
- toastCtx.show(Object.assign({}, parsedOptions, {
- show: true
- }));
-
- var timeoutId = 0;
- // toast 计时,如果小于0,就不会去关闭。
- // 如果不传,就取默认值
- var timeoutOption = parsedOptions.timeout || DEFAULT_SHOW_TOAST_TIME;
- if (timeoutOption >= 0) {
- timeoutId = setTimeout(function () {
- toastCtx.clear();
- }, timeoutOption);
- }
-
- timeoutData = {
- timeoutId: timeoutId,
- toastCtx: toastCtx
- };
-}
-
-// 设置 toast 基础属性
-Toast.setDefaultOptions = function () {
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'page';
-
- var parsedDefaultOptions = {
- selector: options.selector || '',
- type: options.type || '',
- icon: options.icon || '',
- image: options.image || '',
- timeout: options.timeout || DEFAULT_SHOW_TOAST_TIME
- };
-
- if (type === 'global') {
- globalToastUserConfig = Object.assign({}, parsedDefaultOptions);
- } else if (type === 'page') {
- var _ctx$setData;
-
- var ctx = getPageCtx();
- ctx.setData((_ctx$setData = {}, _ctx$setData['' + TOAST_CONFIG_KEY] = parsedDefaultOptions, _ctx$setData));
- }
-};
-
-// 重置 toast 基础属性
-Toast.resetDefaultOptions = function () {
- var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'page';
-
- if (type === 'global') {
- globalToastUserConfig = {};
- } else {
- var _ctx$setData2;
-
- var ctx = getPageCtx();
- ctx.setData((_ctx$setData2 = {}, _ctx$setData2['' + TOAST_CONFIG_KEY] = {}, _ctx$setData2));
- }
-};
-
-// 清理所有 toast
-Toast.clear = function () {
- clearTimeout(timeoutData.timeoutId);
-
- try {
- timeoutData.toastCtx && timeoutData.toastCtx.clear();
- } catch (e) {}
-
- timeoutData = {
- timeoutId: 0,
- toastCtx: null
- };
-};
-
-// 显示 loading
-Toast.loading = function () {
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
-
- Toast(Object.assign({}, options, {
- type: 'loading'
- }));
-};
-
-module.exports = Toast;
\ No newline at end of file
diff --git a/dist/toptips/index.js b/dist/toptips/index.js
deleted file mode 100644
index 23a453e0..00000000
--- a/dist/toptips/index.js
+++ /dev/null
@@ -1,54 +0,0 @@
-'use strict';
-
-var FONT_COLOR = '#fff';
-var BG_COLOR = '#e64340';
-
-Component({
- properties: {
- content: String,
- color: {
- type: String,
- value: FONT_COLOR
- },
- backgroundColor: {
- type: String,
- value: BG_COLOR
- },
- isShow: {
- type: Boolean,
- value: false
- },
- duration: {
- type: Number,
- value: 3000
- }
- },
-
- methods: {
- show: function show() {
- var _this = this;
-
- var duration = this.data.duration;
-
-
- this._timer && clearTimeout(this._timer);
- this.setData({
- isShow: true
- });
-
- if (duration > 0 && duration !== Infinity) {
- this._timer = setTimeout(function () {
- _this.hide();
- }, duration);
- }
- },
- hide: function hide() {
- this._timer = clearTimeout(this._timer);
-
- this.setData({
- isShow: false,
- backgroundColor: BG_COLOR
- });
- }
- }
-});
\ No newline at end of file
diff --git a/dist/toptips/index.json b/dist/toptips/index.json
deleted file mode 100644
index 32640e0d..00000000
--- a/dist/toptips/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
\ No newline at end of file
diff --git a/dist/toptips/index.wxml b/dist/toptips/index.wxml
deleted file mode 100644
index 9f42050c..00000000
--- a/dist/toptips/index.wxml
+++ /dev/null
@@ -1 +0,0 @@
-{{ content }}
diff --git a/dist/toptips/index.wxss b/dist/toptips/index.wxss
deleted file mode 100644
index b91d540b..00000000
--- a/dist/toptips/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-toptips{display:block;position:fixed;-webkit-transform:translateZ(0) translateY(-100%);width:100%;min-height:32px;top:0;line-height:2.3;font-size:14px;text-align:center;color:#fff;background-color:#e64340;z-index:110;opacity:0;-webkit-transition:all .4s ease;transition:all .4s ease}.van-toptips--show{-webkit-transform:translateZ(0) translateY(0);opacity:1}
\ No newline at end of file
diff --git a/dist/toptips/toptips.js b/dist/toptips/toptips.js
deleted file mode 100644
index 5bf6fb40..00000000
--- a/dist/toptips/toptips.js
+++ /dev/null
@@ -1,28 +0,0 @@
-'use strict';
-
-function Toptips() {
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
-
- var pages = getCurrentPages();
- var ctx = pages[pages.length - 1];
- var defaultOptions = {
- selector: '#van-toptips',
- duration: 3000
- };
-
- options = Object.assign(defaultOptions, parseParam(options));
-
- var $toptips = ctx.selectComponent(options.selector);
- delete options.selector;
-
- $toptips.setData(Object.assign({}, options));
- $toptips && $toptips.show();
-}
-
-function parseParam() {
- var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
-
- return typeof params === 'object' ? params : { content: params };
-}
-
-module.exports = Toptips;
\ No newline at end of file
diff --git a/dist/tree-select/index.js b/dist/tree-select/index.js
deleted file mode 100644
index ed63b166..00000000
--- a/dist/tree-select/index.js
+++ /dev/null
@@ -1,87 +0,0 @@
-'use strict';
-
-var ITEM_HEIGHT = 44;
-
-Component({
- properties: {
- items: {
- type: Array,
- observer: function observer() {
- this.updateSubItems();
- this.updateMainHeight();
- }
- },
- mainActiveIndex: {
- type: Number,
- value: 0,
- observer: function observer() {
- this.updateSubItems();
- }
- },
- activeId: {
- type: Number,
- value: 0
- },
- maxHeight: {
- type: Number,
- value: 300,
- observer: function observer() {
- this.updateItemHeight();
- this.updateMainHeight();
- }
- }
- },
-
- data: {
- subItems: [],
- mainHeight: 0,
- itemHeight: 0
- },
-
- methods: {
- // 当一个子项被选择时
- onItemSelect: function onItemSelect(_ref) {
- var _ref$currentTarget = _ref.currentTarget,
- currentTarget = _ref$currentTarget === undefined ? {} : _ref$currentTarget;
- var _currentTarget$datase = currentTarget.dataset,
- data = _currentTarget$datase === undefined ? {} : _currentTarget$datase;
-
- this.triggerEvent('itemclick', Object.assign({}, data.item || {}));
- },
-
-
- // 当一个导航被点击时
- handleNavClick: function handleNavClick(_ref2) {
- var _ref2$currentTarget = _ref2.currentTarget,
- currentTarget = _ref2$currentTarget === undefined ? {} : _ref2$currentTarget;
- var _currentTarget$datase2 = currentTarget.dataset,
- data = _currentTarget$datase2 === undefined ? {} : _currentTarget$datase2;
-
- this.triggerEvent('navclick', { index: data.index });
- },
-
-
- // 更新子项列表
- updateSubItems: function updateSubItems() {
- var selectedItem = this.data.items[this.data.mainActiveIndex] || {};
-
- this.setData({ subItems: selectedItem.children || [] });
-
- this.updateItemHeight();
- },
-
-
- // 更新组件整体高度,根据最大高度和当前组件需要展示的高度来决定
- updateMainHeight: function updateMainHeight() {
- var maxHeight = Math.max(this.data.items.length * ITEM_HEIGHT, this.data.subItems.length * ITEM_HEIGHT);
-
- this.setData({ mainHeight: Math.min(maxHeight, this.data.maxHeight) });
- },
-
-
- // 更新子项列表高度,根据可展示的最大高度和当前子项列表的高度决定
- updateItemHeight: function updateItemHeight() {
- this.setData({ itemHeight: Math.min(this.data.subItems.length * ITEM_HEIGHT, this.data.maxHeight) });
- }
- }
-});
\ No newline at end of file
diff --git a/dist/tree-select/index.json b/dist/tree-select/index.json
deleted file mode 100644
index 0a336c08..00000000
--- a/dist/tree-select/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "van-icon": "../icon/index"
- }
-}
diff --git a/dist/tree-select/index.wxml b/dist/tree-select/index.wxml
deleted file mode 100644
index ceca0c5f..00000000
--- a/dist/tree-select/index.wxml
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
- {{ item.text }}
-
-
-
-
- {{ item.text }}
-
-
-
-
diff --git a/dist/tree-select/index.wxss b/dist/tree-select/index.wxss
deleted file mode 100644
index 11c6c6c2..00000000
--- a/dist/tree-select/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.van-pull-left{float:left}.van-pull-right{float:right}.van-center{text-align:center}.van-right{text-align:right}.van-text-deleted{text-decoration:line-through}.van-font-8{font-size:8px}.van-font-10{font-size:10px}.van-font-12{font-size:12px}.van-font-14{font-size:14px}.van-font-16{font-size:16px}.van-font-18{font-size:18px}.van-font-20{font-size:20px}.van-font-22{font-size:22px}.van-font-24{font-size:24px}.van-font-26{font-size:26px}.van-font-30{font-size:30px}.van-font-bold{font-weight:700}.van-arrow{position:absolute;right:15px;top:50%;display:inline-block;height:6px;width:6px;border-width:2px 2px 0 0;border-color:#c8c8c8;border-style:solid;-webkit-transform:translateY(-50%) matrix(.71,.71,-.71,.71,0,0);transform:translateY(-50%) matrix(.71,.71,-.71,.71,0,0)}.van-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal}.van-ellipsis--l2{max-height:40px;line-height:20px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.van-ellipsis--l3{max-height:60px;line-height:20px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.van-clearfix{zoom:1}.van-clearfix::after{content:'';display:table;clear:both}.van-c-red{color:#f44}.van-c-black{color:#000}.van-c-green{color:#06bf04}.van-c-blue{color:#38f}.van-c-gray{color:#c9c9c9}.van-c-gray-dark{color:#999}.van-c-gray-darker{color:#666}.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{content:'';position:absolute;top:0;left:0;width:200%;height:200%;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:0 0;transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #e5e5e5}.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}.tree-select{-webkit-user-select:none;user-select:none;position:relative;font-size:16px}.tree-select__nav{width:143px;position:absolute;left:0;top:0;bottom:0;overflow:scroll;background-color:#fff;-webkit-overflow-scrolling:touch}.tree-select__nitem{line-height:44px;padding:0 15px;background-color:#fff}.tree-select__nitem--active{background-color:#f8f8f8}.tree-select__content{padding:0 15px;margin-left:143px;overflow:scroll;-webkit-overflow-scrolling:touch}.tree-select__item{position:relative;line-height:44px;padding-left:5px;padding-right:18px}.tree-select__item--active{color:#f44}.tree-select__selected{float:right;position:absolute;right:0;top:0;bottom:0;line-height:inherit}
\ No newline at end of file
diff --git a/doc.config.js b/doc.config.js
index 2013feff..5153c5c7 100644
--- a/doc.config.js
+++ b/doc.config.js
@@ -70,7 +70,6 @@ module.exports = {
include: {
tag: require('./packages/tag/README.md'),
badge: require('./packages/badge/README.md'),
- capsule: require('./packages/capsule/README.md'),
notice_bar: require('./packages/notice-bar/README.md'),
steps: require('./packages/steps/README.md')
}
diff --git a/example/app.json b/example/app.json
index 95cb40b9..d89e040b 100644
--- a/example/app.json
+++ b/example/app.json
@@ -5,7 +5,6 @@
"pages/button/index",
"pages/checkbox/index",
"pages/badge/index",
- "pages/capsule/index",
"pages/card/index",
"pages/cell/index",
"pages/dialog/index",
diff --git a/example/pages/capsule/index.js b/example/pages/capsule/index.js
deleted file mode 100644
index 3b7c183f..00000000
--- a/example/pages/capsule/index.js
+++ /dev/null
@@ -1,2 +0,0 @@
-Page({
-})
diff --git a/example/pages/capsule/index.json b/example/pages/capsule/index.json
deleted file mode 100644
index 999ffe9b..00000000
--- a/example/pages/capsule/index.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "navigationBarTitleText": "Capsule 胶囊",
- "usingComponents": {
- "van-panel": "../../dist/panel/index",
- "van-capsule": "../../dist/capsule/index"
- }
-}
diff --git a/example/pages/capsule/index.wxml b/example/pages/capsule/index.wxml
deleted file mode 100644
index 727c7a7a..00000000
--- a/example/pages/capsule/index.wxml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/example/pages/capsule/index.wxss b/example/pages/capsule/index.wxss
deleted file mode 100644
index c9a89903..00000000
--- a/example/pages/capsule/index.wxss
+++ /dev/null
@@ -1,7 +0,0 @@
-.capsule-demo {
- padding: 15px 0;
-}
-
-.van-capsule + .van-capsule {
- margin-left: 10px;
-}
diff --git a/example/pages/dashboard/config.js b/example/pages/dashboard/config.js
index e8b00068..dca7f706 100644
--- a/example/pages/dashboard/config.js
+++ b/example/pages/dashboard/config.js
@@ -8,9 +8,6 @@ export default {
}, {
name: 'Button 按钮',
path: '/pages/button/index'
- }, {
- name: 'Capsule 胶囊',
- path: '/pages/capsule/index'
}, {
name: 'Card 卡片',
path: '/pages/card/index'
diff --git a/packages/capsule/README.md b/packages/capsule/README.md
deleted file mode 100644
index c6812a2e..00000000
--- a/packages/capsule/README.md
+++ /dev/null
@@ -1,23 +0,0 @@
-## Capsule 胶囊
-
-### 使用指南
-在 index.json 中引入组件
-```json
-{
- "usingComponents": {
- "van-capsule": "path/to/vant-weapp/dist/capsule/index"
- }
-}
-```
-
-### 代码演示
-Panel 提供了一块白色的展示区域,使用方式如下
-```html
-
-```
-| 参数 | 说明 | 类型 | 默认值 | 必须 |
-|-----------|-----------|-----------|-------------|-------------|
-| type | capsule的主体颜色,可选值:danger | String | '' | |
-| color | 自定义capsule颜色 | String | - | |
-| leftText | 左侧文案 | String | - | |
-| rightText | 右侧文案 | String | - | |
diff --git a/packages/capsule/index.js b/packages/capsule/index.js
deleted file mode 100644
index 903c027e..00000000
--- a/packages/capsule/index.js
+++ /dev/null
@@ -1,29 +0,0 @@
-Component({
- externalClasses: ['custom-class'],
- /**
- * 组件的属性列表
- * 用于组件自定义设置
- */
- properties: {
- // 颜色状态
- type: {
- type: String,
- value: ''
- },
- // 自定义颜色
- color: {
- type: String,
- value: ''
- },
- // 左侧内容
- leftText: {
- type: String,
- value: ''
- },
- // 右侧内容
- rightText: {
- type: String,
- value: ''
- }
- }
-});
diff --git a/packages/capsule/index.json b/packages/capsule/index.json
deleted file mode 100644
index 467ce294..00000000
--- a/packages/capsule/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/packages/capsule/index.pcss b/packages/capsule/index.pcss
deleted file mode 100644
index 9029d545..00000000
--- a/packages/capsule/index.pcss
+++ /dev/null
@@ -1,39 +0,0 @@
-.van-capsule {
- display: inline-block;
- font-size: 12px;
- vertical-align: middle;
- line-height: 19px;
- transform: scale(0.83);
-}
-.van-capsule__left,
-.van-capsule__right {
- display: inline-block;
- line-height: 17px;
- height: 19px;
- vertical-align: middle;
- box-sizing: border-box;
-}
-.van-capsule__left {
- padding: 0 2px;
- color: #FFF;
- background: #999;
- border-radius: 2px 0 0 2px;
- border: 1rpx solid #999;
-}
-.van-capsule__right {
- padding: 0 5px;
- color: #999;
- border-radius: 0 2px 2px 0;
- border: 1rpx solid #999;
-}
-
-.van-capsule--danger .van-capsule__left {
- color: #FFF;
- background: #F24544;
- border-color: #F24544;
-}
-
-.van-capsule--danger .van-capsule__right {
- color: #F24544;
- border-color: #F24544;
-}
diff --git a/packages/capsule/index.wxml b/packages/capsule/index.wxml
deleted file mode 100644
index f5026813..00000000
--- a/packages/capsule/index.wxml
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
- {{ leftText }}
- {{ rightText }}
-
-
- {{ leftText }}
- {{ rightText }}
-
-
-