4 |
5 |
8 |
9 |
10 | {{ description }}
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/miniprogram_npm/@vant/weapp/empty/index.wxss:
--------------------------------------------------------------------------------
1 | @import '../common/index.wxss';.van-empty{display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;box-sizing:border-box;padding:32px 0}.van-empty__image{width:160px;height:160px}.van-empty__image__img{width:100%;height:100%}.van-empty__description{margin-top:16px;padding:0 60px;color:#969799;font-size:14px;line-height:20px}.van-empty__bottom{margin-top:24px}
--------------------------------------------------------------------------------
/miniprogram_npm/@vant/weapp/field/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-cell": "../cell/index",
5 | "van-icon": "../icon/index"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/miniprogram_npm/@vant/weapp/field/index.wxs:
--------------------------------------------------------------------------------
1 | /* eslint-disable */
2 | var utils = require('../wxs/utils.wxs');
3 |
4 | function inputStyle(autosize) {
5 | if (autosize && autosize.constructor === 'Object') {
6 | var style = '';
7 | if (autosize.minHeight) {
8 | style += 'min-height:' + utils.addUnit(autosize.minHeight) + ';';
9 | }
10 | if (autosize.maxHeight) {
11 | style += 'max-height:' + utils.addUnit(autosize.maxHeight) + ';';
12 | }
13 | return style;
14 | }
15 |
16 | return '';
17 | }
18 |
19 | module.exports = {
20 | inputStyle: inputStyle
21 | };
22 |
--------------------------------------------------------------------------------
/miniprogram_npm/@vant/weapp/field/props.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | exports.textareaProps = exports.inputProps = exports.commonProps = void 0;
4 | exports.commonProps = {
5 | value: {
6 | type: String,
7 | observer: function (value) {
8 | if (value !== this.value) {
9 | this.setData({ innerValue: value });
10 | this.value = value;
11 | }
12 | },
13 | },
14 | placeholder: String,
15 | placeholderStyle: String,
16 | placeholderClass: String,
17 | disabled: Boolean,
18 | maxlength: {
19 | type: Number,
20 | value: -1,
21 | },
22 | cursorSpacing: {
23 | type: Number,
24 | value: 50,
25 | },
26 | autoFocus: Boolean,
27 | focus: Boolean,
28 | cursor: {
29 | type: Number,
30 | value: -1,
31 | },
32 | selectionStart: {
33 | type: Number,
34 | value: -1,
35 | },
36 | selectionEnd: {
37 | type: Number,
38 | value: -1,
39 | },
40 | adjustPosition: {
41 | type: Boolean,
42 | value: true,
43 | },
44 | holdKeyboard: Boolean,
45 | };
46 | exports.inputProps = {
47 | type: {
48 | type: String,
49 | value: 'text',
50 | },
51 | password: Boolean,
52 | confirmType: String,
53 | confirmHold: Boolean,
54 | };
55 | exports.textareaProps = {
56 | autoHeight: Boolean,
57 | fixed: Boolean,
58 | showConfirmBar: {
59 | type: Boolean,
60 | value: true,
61 | },
62 | disableDefaultPadding: {
63 | type: Boolean,
64 | value: true,
65 | },
66 | };
67 |
--------------------------------------------------------------------------------
/miniprogram_npm/@vant/weapp/goods-action-button/index.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 | Object.defineProperty(exports, '__esModule', { value: true });
3 | var component_1 = require('../common/component');
4 | var link_1 = require('../mixins/link');
5 | var button_1 = require('../mixins/button');
6 | var open_type_1 = require('../mixins/open-type');
7 | component_1.VantComponent({
8 | mixins: [link_1.link, button_1.button, open_type_1.openType],
9 | relation: {
10 | type: 'ancestor',
11 | name: 'goods-action',
12 | current: 'goods-action-button',
13 | },
14 | props: {
15 | text: String,
16 | color: String,
17 | loading: Boolean,
18 | disabled: Boolean,
19 | plain: Boolean,
20 | type: {
21 | type: String,
22 | value: 'danger',
23 | },
24 | },
25 | methods: {
26 | onClick: function (event) {
27 | this.$emit('click', event.detail);
28 | this.jumpLink();
29 | },
30 | updateStyle: function () {
31 | if (this.parent == null) {
32 | return;
33 | }
34 | var _a = this.parent.children,
35 | children = _a === void 0 ? [] : _a;
36 | var length = children.length;
37 | var index = children.indexOf(this);
38 | this.setData({
39 | isFirst: index === 0,
40 | isLast: index === length - 1,
41 | });
42 | },
43 | },
44 | });
45 |
--------------------------------------------------------------------------------
/miniprogram_npm/@vant/weapp/goods-action-button/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "van-button": "../button/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/miniprogram_npm/@vant/weapp/goods-action-button/index.wxml:
--------------------------------------------------------------------------------
1 |