提交 5f99dd52 编写于 作者: 刘英杰's avatar 刘英杰

增加新文件

上级 6d479e6d
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/museum-subscribe-master(1)_uni.iml" filepath="$PROJECT_DIR$/.idea/museum-subscribe-master(1)_uni.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<script>
// app.js
export default {
data() {
return {};
},
onHide() {
// uni.setStorageSync('dialog', '切换到后台');
},
onLaunch() {
// 展示本地存储能力
const logs = uni.getStorageSync('logs') || [];
logs.unshift(Date.now());
uni.setStorageSync('logs', logs);
// 登录
uni.login({
success: (res) => {
// 发送 res.code 到后台换取 openId, sessionKey, unionId
}
});
},
globalData: {
windowWidth: uni.getSystemInfoSync().windowWidth,
windowHeight: uni.getSystemInfoSync().windowHeight,
screenWidth: uni.getSystemInfoSync().screenWidth,
screenHeight: uni.getSystemInfoSync().screenHeight,
statusBarHeight: uni.getSystemInfoSync().statusBarHeight,
pageHeight: uni.getSystemInfoSync().screenHeight - uni.getSystemInfoSync().statusBarHeight - 48,
// menuHeigth: (uni.getMenuButtonBoundingClientRect().top - uni.getSystemInfoSync().statusBarHeight) * 2 + uni.getMenuButtonBoundingClientRect().height,
currentAppointmentId: '' // 全局变量
}
};
</script>
<style>
/**app.wxss**/
page {
height: 100%;
width: 100%;
}
</style>
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"strict": true,
"jsx": "preserve",
"moduleResolution": "node",
"esModuleInterop": true,
"sourceMap": true,
"skipLibCheck": true,
"importHelpers": true,
"allowSyntheticDefaultImports": true,
"useDefineForClassFields": true,
"resolveJsonModule": true,
"noImplicitAny": false,
"allowJs": true,
"lib": [
"esnext",
"dom"
],
"types": [
"@dcloudio/types"
]
}
}
\ No newline at end of file
<template>
<view style="height: 100%">
<van-popup
:show="show"
position="bottom"
:round="round"
:z-index="zIndex"
:overlay="overlay"
custom-class="van-action-sheet custom-class"
:safe-area-inset-bottom="safeAreaInsetBottom"
:close-on-click-overlay="closeOnClickOverlay"
@close="onClickOverlay"
>
<view v-if="title" class="van-action-sheet__header">
{{ title }}
<van-icon name="cross" custom-class="van-action-sheet__close" @click="onClose" />
</view>
<view v-if="description" class="van-action-sheet__description van-hairline--bottom">
{{ description }}
</view>
<view v-if="actions && actions.length" class="list-class">
<!-- button外包一层view,防止actions动态变化,导致渲染时button被打散 -->
<button
:open-type="item.disabled || item.loading || (canIUseGetUserProfile && item.openType === 'getUserInfo') ? '' : item.openType"
:style="item.color ? 'color: ' + item.color : ''"
:class="utils.bem('action-sheet__item', { disabled: item.disabled || item.loading }) + ' ' + (item.className || '')"
hover-class="van-action-sheet__item--hover"
:data-index="index"
@tap="parseEventDynamicCode($event, item.disabled || item.loading ? '' : 'onSelect')"
@getuserinfo="onGetUserInfo"
@contact="onContact"
@getphonenumber="onGetPhoneNumber"
@error="onError"
@launchapp="onLaunchApp"
@opensetting="onOpenSetting"
:lang="lang"
:session-from="sessionFrom"
:send-message-title="sendMessageTitle"
:send-message-path="sendMessagePath"
:send-message-img="sendMessageImg"
:show-message-card="showMessageCard"
:app-parameter="appParameter"
v-for="(item, index) in actions"
:key="index"
>
<block v-if="!item.loading">
{{ item.name }}
<view v-if="item.subname" class="van-action-sheet__subname">{{ item.subname }}</view>
</block>
<van-loading v-else custom-class="van-action-sheet__loading" size="22px" />
</button>
</view>
<slot />
<block v-if="cancelText">
<view class="van-action-sheet__gap" />
<view class="van-action-sheet__cancel" hover-class="van-action-sheet__cancel--hover" hover-stay-time="70" @tap="onCancel">
{{ cancelText }}
</view>
</block>
</van-popup>
</view>
</template>
<script module="utils" lang="wxs" src="@/miniprogram_npm/@vant/weapp/wxs/utils.wxs"></script>
<script>
'use strict';
import vanIcon from '../icon/index';
import vanPopup from '../popup/index';
import vanLoading from '../loading/index';
Object.defineProperty(exports, '__esModule', {
value: true
});
var component_1 = require('../common/component');
var button_1 = require('../mixins/button');
export default {
components: {
vanIcon,
vanPopup,
vanLoading
},
data() {
return {
canIUseGetUserProfile: '',
lang: '',
sessionFrom: '',
sendMessageTitle: '',
sendMessagePath: '',
sendMessageImg: '',
showMessageCard: '',
appParameter: ''
};
},
classes: ['list-class'],
mixins: [button_1.button],
props: {
show: Boolean,
title: String,
cancelText: String,
description: String,
round: {
type: Boolean,
default: true
},
zIndex: {
type: Number,
default: 100
},
actions: {
type: Array,
default: () => []
},
overlay: {
type: Boolean,
default: true
},
closeOnClickOverlay: {
type: Boolean,
default: true
},
closeOnClickAction: {
type: Boolean,
default: true
},
safeAreaInsetBottom: {
type: Boolean,
default: true
}
},
methods: {
onSelect: function (event) {
var that = this;
var index = event.currentTarget.dataset.index;
var _a = this;
var actions = _a.actions;
var closeOnClickAction = _a.closeOnClickAction;
var canIUseGetUserProfile = _a.canIUseGetUserProfile;
var item = actions[index];
if (item) {
this.$emit('select', item);
if (closeOnClickAction) {
this.onClose();
}
if (item.openType === 'getUserInfo' && canIUseGetUserProfile) {
uni.getUserProfile({
desc: item.getUserProfileDesc || ' ',
complete: function (userProfile) {
that.$emit('getuserinfo', userProfile);
}
});
}
}
},
onCancel: function () {
this.$emit('cancel');
},
onClose: function () {
this.$emit('close');
},
onClickOverlay: function () {
this.$emit('click-overlay');
this.onClose();
},
onGetUserInfo() {
console.log('占位:函数 onGetUserInfo 未声明');
},
onContact() {
console.log('占位:函数 onContact 未声明');
},
onGetPhoneNumber() {
console.log('占位:函数 onGetPhoneNumber 未声明');
},
onError() {
console.log('占位:函数 onError 未声明');
},
onLaunchApp() {
console.log('占位:函数 onLaunchApp 未声明');
},
onOpenSetting() {
console.log('占位:函数 onOpenSetting 未声明');
}
}
};
</script>
<style>
@import '../common/index.css';
.van-action-sheet {
color: var(--action-sheet-item-text-color, #323233);
max-height: var(--action-sheet-max-height, 90%) !important;
}
.van-action-sheet__cancel,
.van-action-sheet__item {
background-color: var(--action-sheet-item-background, #fff);
font-size: var(--action-sheet-item-font-size, 16px);
line-height: var(--action-sheet-item-line-height, 22px);
padding: 14px 16px;
text-align: center;
}
.van-action-sheet__cancel--hover,
.van-action-sheet__item--hover {
background-color: #f2f3f5;
}
.van-action-sheet__cancel:after,
.van-action-sheet__item:after {
border-width: 0;
}
.van-action-sheet__cancel {
color: var(--action-sheet-cancel-text-color, #646566);
}
.van-action-sheet__gap {
background-color: var(--action-sheet-cancel-padding-color, #f7f8fa);
display: block;
height: var(--action-sheet-cancel-padding-top, 8px);
}
.van-action-sheet__item--disabled {
color: var(--action-sheet-item-disabled-text-color, #c8c9cc);
}
.van-action-sheet__item--disabled.van-action-sheet__item--hover {
background-color: var(--action-sheet-item-background, #fff);
}
.van-action-sheet__subname {
color: var(--action-sheet-subname-color, #969799);
font-size: var(--action-sheet-subname-font-size, 12px);
line-height: var(--action-sheet-subname-line-height, 20px);
margin-top: var(--padding-xs, 8px);
}
.van-action-sheet__header {
font-size: var(--action-sheet-header-font-size, 16px);
font-weight: var(--font-weight-bold, 500);
line-height: var(--action-sheet-header-height, 48px);
text-align: center;
}
.van-action-sheet__description {
color: var(--action-sheet-description-color, #969799);
font-size: var(--action-sheet-description-font-size, 14px);
line-height: var(--action-sheet-description-line-height, 20px);
padding: 20px var(--padding-md, 16px);
text-align: center;
}
.van-action-sheet__close {
color: var(--action-sheet-close-icon-color, #c8c9cc);
font-size: var(--action-sheet-close-icon-size, 22px) !important;
line-height: inherit !important;
padding: var(--action-sheet-close-icon-padding, 0 16px);
position: absolute !important;
right: 0;
top: 0;
}
.van-action-sheet__loading {
display: flex !important;
}
</style>
<template>
<view style="height: 100%">
<button
:id="id"
:data-detail="dataset"
:class="
'custom-class ' +
utils.bem('button', [type, size, { block, round, plain, square, loading, disabled, hairline, unclickable: disabled || loading }]) +
' ' +
(hairline ? 'van-hairline--surround' : '')
"
:hover-class="disabled || loading ? '' : 'van-button--active hover-class'"
:lang="lang"
:form-type="formType"
:style="computed.rootStyle({ plain, color, customStyle })"
:open-type="disabled || loading || (canIUseGetUserProfile && openType === 'getUserInfo') ? '' : openType"
:business-id="businessId"
:session-from="sessionFrom"
:send-message-title="sendMessageTitle"
:send-message-path="sendMessagePath"
:send-message-img="sendMessageImg"
:show-message-card="showMessageCard"
:app-parameter="appParameter"
:aria-label="ariaLabel"
@tap="parseEventDynamicCode($event, disabled || loading ? '' : 'onClick')"
@getuserinfo="onGetUserInfo"
@contact="onContact"
@getphonenumber="onGetPhoneNumber"
@error="onError"
@launchapp="onLaunchApp"
@opensetting="onOpenSetting"
@chooseavatar="onChooseAvatar"
>
<block v-if="loading">
<van-loading custom-class="loading-class" :size="loadingSize" :type="loadingType" :color="computed.loadingColor({ type, color, plain })" />
<view v-if="loadingText" class="van-button__loading-text">
{{ loadingText }}
</view>
</block>
<block v-else>
<van-icon v-if="icon" size="1.2em" :name="icon" :class-prefix="classPrefix" class="van-button__icon" custom-style="line-height: inherit;" />
<view class="van-button__text">
<slot />
</view>
</block>
</button>
</view>
</template>
<script module="utils" lang="wxs" src="@/miniprogram_npm/@vant/weapp/wxs/utils.wxs"></script>
<script module="computed" lang="wxs" src="@/miniprogram_npm/@vant/weapp/button/index.wxs"></script>
<script>
'use strict';
import vanIcon from '../icon/index';
import vanLoading from '../loading/index';
Object.defineProperty(exports, '__esModule', {
value: true
});
var component_1 = require('../common/component');
var button_1 = require('../mixins/button');
var version_1 = require('../common/version');
var mixins = [button_1.button];
if ((0, version_1.canIUseFormFieldButton)()) {
mixins.push('wx://form-field-button');
}
export default {
components: {
vanIcon,
vanLoading
},
data() {
return {
baseStyle: '',
id: '',
lang: '',
canIUseGetUserProfile: '',
openType: '',
businessId: '',
sessionFrom: '',
sendMessageTitle: '',
sendMessagePath: '',
sendMessageImg: '',
showMessageCard: '',
appParameter: '',
ariaLabel: ''
};
},
mixins: mixins,
classes: ['hover-class', 'loading-class'],
props: {
formType: String,
icon: String,
classPrefix: {
type: String,
default: 'van-icon'
},
plain: Boolean,
block: Boolean,
round: Boolean,
square: Boolean,
loading: Boolean,
hairline: Boolean,
disabled: Boolean,
loadingText: String,
customStyle: String,
loadingType: {
type: String,
default: 'circular'
},
type: {
type: String,
default: 'default'
},
dataset: null,
size: {
type: String,
default: 'normal'
},
loadingSize: {
type: String,
default: '20px'
},
color: String
},
methods: {
onClick: function (event) {
var that = this;
this.$emit('click', event);
var _a = this;
var canIUseGetUserProfile = _a.canIUseGetUserProfile;
var openType = _a.openType;
var getUserProfileDesc = _a.getUserProfileDesc;
var lang = _a.lang;
if (openType === 'getUserInfo' && canIUseGetUserProfile) {
uni.getUserProfile({
desc: getUserProfileDesc || ' ',
lang: lang || 'en',
complete: function (userProfile) {
that.$emit('getuserinfo', userProfile);
}
});
}
},
onGetUserInfo() {
console.log('占位:函数 onGetUserInfo 未声明');
},
onContact() {
console.log('占位:函数 onContact 未声明');
},
onGetPhoneNumber() {
console.log('占位:函数 onGetPhoneNumber 未声明');
},
onError() {
console.log('占位:函数 onError 未声明');
},
onLaunchApp() {
console.log('占位:函数 onLaunchApp 未声明');
},
onOpenSetting() {
console.log('占位:函数 onOpenSetting 未声明');
},
onChooseAvatar() {
console.log('占位:函数 onChooseAvatar 未声明');
}
}
};
</script>
<style>
@import '../common/index.css';
.van-button {
-webkit-text-size-adjust: 100%;
align-items: center;
-webkit-appearance: none;
border-radius: var(--button-border-radius, 2px);
box-sizing: border-box;
display: inline-flex;
font-size: var(--button-default-font-size, 16px);
height: var(--button-default-height, 44px);
justify-content: center;
line-height: var(--button-line-height, 20px);
padding: 0;
position: relative;
text-align: center;
transition: opacity 0.2s;
vertical-align: middle;
}
.van-button:before {
background-color: #000;
border: inherit;
border-color: #000;
border-radius: inherit;
content: ' ';
height: 100%;
left: 50%;
opacity: 0;
position: absolute;
top: 50%;
transform: translate(-50%, -50%);
width: 100%;
}
.van-button:after {
border-width: 0;
}
.van-button--active:before {
opacity: 0.15;
}
.van-button--unclickable:after {
display: none;
}
.van-button--default {
background: var(--button-default-background-color, #fff);
border: var(--button-border-width, 1px) solid var(--button-default-border-color, #ebedf0);
color: var(--button-default-color, #323233);
}
.van-button--primary {
background: var(--button-primary-background-color, #07c160);
border: var(--button-border-width, 1px) solid var(--button-primary-border-color, #07c160);
color: var(--button-primary-color, #fff);
}
.van-button--info {
background: var(--button-info-background-color, #1989fa);
border: var(--button-border-width, 1px) solid var(--button-info-border-color, #1989fa);
color: var(--button-info-color, #fff);
}
.van-button--danger {
background: var(--button-danger-background-color, #ee0a24);
border: var(--button-border-width, 1px) solid var(--button-danger-border-color, #ee0a24);
color: var(--button-danger-color, #fff);
}
.van-button--warning {
background: var(--button-warning-background-color, #ff976a);
border: var(--button-border-width, 1px) solid var(--button-warning-border-color, #ff976a);
color: var(--button-warning-color, #fff);
}
.van-button--plain {
background: var(--button-plain-background-color, #fff);
}
.van-button--plain.van-button--primary {
color: var(--button-primary-background-color, #07c160);
}
.van-button--plain.van-button--info {
color: var(--button-info-background-color, #1989fa);
}
.van-button--plain.van-button--danger {
color: var(--button-danger-background-color, #ee0a24);
}
.van-button--plain.van-button--warning {
color: var(--button-warning-background-color, #ff976a);
}
.van-button--large {
height: var(--button-large-height, 50px);
width: 100%;
}
.van-button--normal {
font-size: var(--button-normal-font-size, 14px);
padding: 0 15px;
}
.van-button--small {
font-size: var(--button-small-font-size, 12px);
height: var(--button-small-height, 30px);
min-width: var(--button-small-min-width, 60px);
padding: 0 var(--padding-xs, 8px);
}
.van-button--mini {
display: inline-block;
font-size: var(--button-mini-font-size, 10px);
height: var(--button-mini-height, 22px);
min-width: var(--button-mini-min-width, 50px);
}
.van-button--mini + .van-button--mini {
margin-left: 5px;
}
.van-button--block {
display: flex;
width: 100%;
}
.van-button--round {
border-radius: var(--button-round-border-radius, 999px);
}
.van-button--square {
border-radius: 0;
}
.van-button--disabled {
opacity: var(--button-disabled-opacity, 0.5);
}
.van-button__text {
display: inline;
}
.van-button__icon + .van-button__text:not(:empty),
.van-button__loading-text {
margin-left: 4px;
}
.van-button__icon {
line-height: inherit !important;
min-width: 1em;
vertical-align: top;
}
.van-button--hairline {
border-width: 0;
padding-top: 1px;
}
.van-button--hairline:after {
border-color: inherit;
border-radius: calc(var(--button-border-radius, 2px) * 2);
border-width: 1px;
}
.van-button--hairline.van-button--round:after {
border-radius: var(--button-round-border-radius, 999px);
}
.van-button--hairline.van-button--square:after {
border-radius: 0;
}
</style>
/* eslint-disable */
var style = require('../wxs/style.wxs');
function rootStyle(data) {
if (!data.color) {
return data.customStyle;
}
var properties = {
color: data.plain ? data.color : '#fff',
background: data.plain ? null : data.color,
};
// hide border when color is linear-gradient
if (data.color.indexOf('gradient') !== -1) {
properties.border = 0;
} else {
properties['border-color'] = data.color;
}
return style([properties, data.customStyle]);
}
function loadingColor(data) {
if (data.plain) {
return data.color ? data.color : '#c9c9c9';
}
if (data.type === 'default') {
return '#c9c9c9';
}
return '#fff';
}
module.exports = {
rootStyle: rootStyle,
loadingColor: loadingColor,
};
export interface Day {
date: Date;
type: string;
text: number;
bottomInfo?: string;
}
此差异已折叠。
/* eslint-disable */
var utils = require('./utils.wxs');
function getMonths(minDate, maxDate) {
var months = [];
var cursor = getDate(minDate);
cursor.setDate(1);
do {
months.push(cursor.getTime());
cursor.setMonth(cursor.getMonth() + 1);
} while (utils.compareMonth(cursor, getDate(maxDate)) !== 1);
return months;
}
function getButtonDisabled(type, currentDate, minRange) {
if (currentDate == null) {
return true;
}
if (type === 'range') {
return !currentDate[0] || !currentDate[1];
}
if (type === 'multiple') {
return currentDate.length < minRange;
}
return !currentDate;
}
module.exports = {
getMonths: getMonths,
getButtonDisabled: getButtonDisabled
};
/* eslint-disable */
function getMonthEndDay(year, month) {
return 32 - getDate(year, month - 1, 32).getDate();
}
function compareMonth(date1, date2) {
date1 = getDate(date1);
date2 = getDate(date2);
var year1 = date1.getFullYear();
var year2 = date2.getFullYear();
var month1 = date1.getMonth();
var month2 = date2.getMonth();
if (year1 === year2) {
return month1 === month2 ? 0 : month1 > month2 ? 1 : -1;
}
return year1 > year2 ? 1 : -1;
}
module.exports = {
getMonthEndDay: getMonthEndDay,
compareMonth: compareMonth
};
var utils = require('../wxs/utils.wxs');
var style = require('../wxs/style.wxs');
function isSelected(tab, valueKey, option) {
return tab.selected && tab.selected[valueKey] === option[valueKey]
}
function optionClass(tab, valueKey, option) {
return utils.bem('cascader__option', { selected: isSelected(tab, valueKey, option), disabled: option.disabled })
}
function optionStyle(data) {
var color = data.option.color || (isSelected(data.tab, data.valueKey, data.option) ? data.activeColor : undefined);
return style({
color
});
}
module.exports = {
isSelected: isSelected,
optionClass: optionClass,
optionStyle: optionStyle,
};
\ No newline at end of file
<template>
<view style="height: 100%">
<view v-if="title" :class="utils.bem('cell-group__title', { inset })">
{{ title }}
</view>
<view :class="'custom-class ' + utils.bem('cell-group', { inset }) + ' ' + (border ? 'van-hairline--top-bottom' : '')">
<slot />
</view>
</view>
</template>
<script module="utils" lang="wxs" src="@/miniprogram_npm/@vant/weapp/wxs/utils.wxs"></script>
<script>
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
var component_1 = require('../common/component');
export default {
data() {
return {};
},
props: {
title: String,
border: {
type: Boolean,
default: true
},
inset: Boolean
}
};
</script>
<style>
@import '../common/index.css';
.van-cell-group--inset {
border-radius: var(--cell-group-inset-border-radius, 8px);
margin: var(--cell-group-inset-padding, 0 16px);
overflow: hidden;
}
.van-cell-group__title {
color: var(--cell-group-title-color, #969799);
font-size: var(--cell-group-title-font-size, 14px);
line-height: var(--cell-group-title-line-height, 16px);
padding: var(--cell-group-title-padding, 16px 16px 8px);
}
.van-cell-group__title--inset {
padding: var(--cell-group-inset-title-padding, 16px 16px 8px 32px);
}
</style>
<template>
<view
:class="'custom-class ' + utils.bem('cell', [size, { center, required, borderless: !border, clickable: isLink || clickable }])"
hover-class="van-cell--hover hover-class"
hover-stay-time="70"
:style="customStyle"
@tap="onClick"
>
<van-icon v-if="icon" :name="icon" class="van-cell__left-icon-wrap" custom-class="van-cell__left-icon" />
<slot v-else name="icon" />
<view :style="computed.titleStyle({ titleWidth, titleStyle })" class="van-cell__title title-class">
<block v-if="title">{{ title }}</block>
<slot v-else name="title" />
<view v-if="label || useLabelSlot" class="van-cell__label label-class">
<slot v-if="useLabelSlot" name="label" />
<block v-else-if="label">{{ label }}</block>
</view>
</view>
<view class="van-cell__value value-class">
<block v-if="value || value === 0">{{ value }}</block>
<slot v-else />
</view>
<van-icon
v-if="isLink"
:name="arrowDirection ? 'arrow' + '-' + arrowDirection : 'arrow'"
class="van-cell__right-icon-wrap right-icon-class"
custom-class="van-cell__right-icon"
/>
<slot v-else name="right-icon" />
<slot name="extra" />
</view>
</template>
<script module="utils" lang="wxs" src="@/miniprogram_npm/@vant/weapp/wxs/utils.wxs"></script>
<script module="computed" lang="wxs" src="@/miniprogram_npm/@vant/weapp/cell/index.wxs"></script>
<script>
'use strict';
import vanIcon from '../icon/index';
Object.defineProperty(exports, '__esModule', {
value: true
});
var link_1 = require('../mixins/link');
var component_1 = require('../common/component');
export default {
components: {
vanIcon
},
data() {
return {};
},
classes: ['title-class', 'label-class', 'value-class', 'right-icon-class', 'hover-class'],
mixins: [link_1.link],
props: {
title: null,
value: null,
icon: String,
size: String,
label: String,
center: Boolean,
isLink: Boolean,
required: Boolean,
clickable: Boolean,
titleWidth: String,
customStyle: String,
arrowDirection: String,
useLabelSlot: Boolean,
border: {
type: Boolean,
default: true
},
titleStyle: String
},
methods: {
onClick: function (event) {
this.$emit('click', event.detail);
this.jumpLink();
}
}
};
</script>
<style>
@import '../common/index.css';
.van-cell {
background-color: var(--cell-background-color, #fff);
box-sizing: border-box;
color: var(--cell-text-color, #323233);
display: flex;
font-size: var(--cell-font-size, 14px);
line-height: var(--cell-line-height, 24px);
padding: var(--cell-vertical-padding, 10px) var(--cell-horizontal-padding, 16px);
position: relative;
width: 100%;
}
.van-cell:after {
border-bottom: 1px solid #ebedf0;
bottom: 0;
box-sizing: border-box;
content: ' ';
left: 16px;
pointer-events: none;
position: absolute;
right: 16px;
transform: scaleY(0.5);
transform-origin: center;
}
.van-cell--borderless:after {
display: none;
}
.van-cell-group {
background-color: var(--cell-background-color, #fff);
}
.van-cell__label {
color: var(--cell-label-color, #969799);
font-size: var(--cell-label-font-size, 12px);
line-height: var(--cell-label-line-height, 18px);
margin-top: var(--cell-label-margin-top, 3px);
}
.van-cell__value {
color: var(--cell-value-color, #969799);
overflow: hidden;
text-align: right;
vertical-align: middle;
}
.van-cell__title,
.van-cell__value {
flex: 1;
}
.van-cell__title:empty,
.van-cell__value:empty {
display: none;
}
.van-cell__left-icon-wrap,
.van-cell__right-icon-wrap {
align-items: center;
display: flex;
font-size: var(--cell-icon-size, 16px);
height: var(--cell-line-height, 24px);
}
.van-cell__left-icon-wrap {
margin-right: var(--padding-base, 4px);
}
.van-cell__right-icon-wrap {
color: var(--cell-right-icon-color, #969799);
margin-left: var(--padding-base, 4px);
}
.van-cell__left-icon {
vertical-align: middle;
}
.van-cell__left-icon,
.van-cell__right-icon {
line-height: var(--cell-line-height, 24px);
}
.van-cell--clickable.van-cell--hover {
background-color: var(--cell-active-color, #f2f3f5);
}
.van-cell--required {
overflow: visible;
}
.van-cell--required:before {
color: var(--cell-required-color, #ee0a24);
content: '*';
font-size: var(--cell-font-size, 14px);
left: var(--padding-xs, 8px);
position: absolute;
}
.van-cell--center {
align-items: center;
}
.van-cell--large {
padding-bottom: var(--cell-large-vertical-padding, 12px);
padding-top: var(--cell-large-vertical-padding, 12px);
}
.van-cell--large .van-cell__title {
font-size: var(--cell-large-title-font-size, 16px);
}
.van-cell--large .van-cell__value {
font-size: var(--cell-large-value-font-size, 16px);
}
.van-cell--large .van-cell__label {
font-size: var(--cell-large-label-font-size, 14px);
}
</style>
/* eslint-disable */
var style = require('../wxs/style.wxs');
var addUnit = require('../wxs/add-unit.wxs');
function titleStyle(data) {
return style([
{
'max-width': addUnit(data.titleWidth),
'min-width': addUnit(data.titleWidth),
},
data.titleStyle,
]);
}
module.exports = {
titleStyle: titleStyle,
};
<template>
<view :class="'custom-class ' + utils.bem('col', [span]) + ' ' + (offset ? 'van-col--offset-' + offset : '')" :style="computed.rootStyle({ gutter })">
<slot />
</view>
</template>
<script module="utils" lang="wxs" src="@/miniprogram_npm/@vant/weapp/wxs/utils.wxs"></script>
<script module="computed" lang="wxs" src="@/miniprogram_npm/@vant/weapp/col/index.wxs"></script>
<script>
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
var relation_1 = require('../common/relation');
var component_1 = require('../common/component');
export default {
data() {
return {};
},
relation: (0, relation_1.useParent)('row'),
props: {
span: Number,
offset: Number
}
};
</script>
<style>
@import '../common/index.css';
.van-col {
box-sizing: border-box;
float: left;
}
.van-col--1 {
width: 4.16666667%;
}
.van-col--offset-1 {
margin-left: 4.16666667%;
}
.van-col--2 {
width: 8.33333333%;
}
.van-col--offset-2 {
margin-left: 8.33333333%;
}
.van-col--3 {
width: 12.5%;
}
.van-col--offset-3 {
margin-left: 12.5%;
}
.van-col--4 {
width: 16.66666667%;
}
.van-col--offset-4 {
margin-left: 16.66666667%;
}
.van-col--5 {
width: 20.83333333%;
}
.van-col--offset-5 {
margin-left: 20.83333333%;
}
.van-col--6 {
width: 25%;
}
.van-col--offset-6 {
margin-left: 25%;
}
.van-col--7 {
width: 29.16666667%;
}
.van-col--offset-7 {
margin-left: 29.16666667%;
}
.van-col--8 {
width: 33.33333333%;
}
.van-col--offset-8 {
margin-left: 33.33333333%;
}
.van-col--9 {
width: 37.5%;
}
.van-col--offset-9 {
margin-left: 37.5%;
}
.van-col--10 {
width: 41.66666667%;
}
.van-col--offset-10 {
margin-left: 41.66666667%;
}
.van-col--11 {
width: 45.83333333%;
}
.van-col--offset-11 {
margin-left: 45.83333333%;
}
.van-col--12 {
width: 50%;
}
.van-col--offset-12 {
margin-left: 50%;
}
.van-col--13 {
width: 54.16666667%;
}
.van-col--offset-13 {
margin-left: 54.16666667%;
}
.van-col--14 {
width: 58.33333333%;
}
.van-col--offset-14 {
margin-left: 58.33333333%;
}
.van-col--15 {
width: 62.5%;
}
.van-col--offset-15 {
margin-left: 62.5%;
}
.van-col--16 {
width: 66.66666667%;
}
.van-col--offset-16 {
margin-left: 66.66666667%;
}
.van-col--17 {
width: 70.83333333%;
}
.van-col--offset-17 {
margin-left: 70.83333333%;
}
.van-col--18 {
width: 75%;
}
.van-col--offset-18 {
margin-left: 75%;
}
.van-col--19 {
width: 79.16666667%;
}
.van-col--offset-19 {
margin-left: 79.16666667%;
}
.van-col--20 {
width: 83.33333333%;
}
.van-col--offset-20 {
margin-left: 83.33333333%;
}
.van-col--21 {
width: 87.5%;
}
.van-col--offset-21 {
margin-left: 87.5%;
}
.van-col--22 {
width: 91.66666667%;
}
.van-col--offset-22 {
margin-left: 91.66666667%;
}
.van-col--23 {
width: 95.83333333%;
}
.van-col--offset-23 {
margin-left: 95.83333333%;
}
.van-col--24 {
width: 100%;
}
.van-col--offset-24 {
margin-left: 100%;
}
</style>
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
exports.setContentAnimate = void 0;
var utils_1 = require('../common/utils');
function useAnimation(context, expanded, mounted, height) {
var animation = uni.createAnimation({
duration: 0,
timingFunction: 'ease-in-out'
});
if (expanded) {
if (height === 0) {
animation.height('auto').top(1).step();
} else {
animation
.height(height)
.top(1)
.step({
duration: mounted ? 300 : 1
})
.height('auto')
.step();
}
context.setData({
animation: animation.export()
});
return;
}
animation
.height(height)
.top(0)
.step({
duration: 1
})
.height(0)
.step({
duration: 300
});
context.setData({
animation: animation.export()
});
}
function setContentAnimate(context, expanded, mounted) {
(0, utils_1.getRect)(context, '.van-collapse-item__content')
.then(function (rect) {
return rect.height;
})
.then(function (height) {
useAnimation(context, expanded, mounted, height);
});
}
exports.setContentAnimate = setContentAnimate;
.van-ellipsis {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.van-multi-ellipsis--l2 {
-webkit-line-clamp: 2;
}
.van-multi-ellipsis--l2,
.van-multi-ellipsis--l3 {
-webkit-box-orient: vertical;
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
}
.van-multi-ellipsis--l3 {
-webkit-line-clamp: 3;
}
.van-clearfix:after {
clear: both;
content: '';
display: table;
}
.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 {
border: 0 solid #ebedf0;
bottom: -50%;
box-sizing: border-box;
content: ' ';
left: -50%;
pointer-events: none;
position: absolute;
right: -50%;
top: -50%;
transform: scale(0.5);
transform-origin: center;
}
.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-clearfix:after {
clear: both;
content: '';
display: table;
}
.van-ellipsis {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.van-multi-ellipsis--l2 {
-webkit-line-clamp: 2;
}
.van-multi-ellipsis--l2,
.van-multi-ellipsis--l3 {
-webkit-box-orient: vertical;
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
}
.van-multi-ellipsis--l3 {
-webkit-line-clamp: 3;
}
/// <reference types="node" />
/// <reference types="miniprogram-api-typings" />
/// <reference types="miniprogram-api-typings" />
/// <reference types="miniprogram-api-typings" />
/// <reference types="miniprogram-api-typings" />
export { isDef } from './validator';
export { getSystemInfoSync } from './version';
export declare function range(num: number, min: number, max: number): number;
export declare function nextTick(cb: (...args: any[]) => void): void;
export declare function addUnit(value?: string | number): string | undefined;
export declare function requestAnimationFrame(cb: () => void): NodeJS.Timeout;
export declare function pickExclude(obj: unknown, keys: string[]): {};
export declare function getRect(context: WechatMiniprogram.Component.TrivialInstance, selector: string): Promise<WechatMiniprogram.BoundingClientRectCallbackResult>;
export declare function getAllRect(context: WechatMiniprogram.Component.TrivialInstance, selector: string): Promise<WechatMiniprogram.BoundingClientRectCallbackResult[]>;
export declare function groupSetData(context: WechatMiniprogram.Component.TrivialInstance, cb: () => void): void;
export declare function toPromise(promiseLike: Promise<unknown> | unknown): Promise<unknown>;
export declare function addNumber(num1: any, num2: any): number;
export declare const clamp: (num: any, min: any, max: any) => number;
export declare function getCurrentPage<T>(): T &
WechatMiniprogram.OptionalInterface<WechatMiniprogram.Page.ILifetime> &
WechatMiniprogram.Page.InstanceProperties &
WechatMiniprogram.Page.InstanceMethods<WechatMiniprogram.IAnyObject> &
WechatMiniprogram.Page.Data<WechatMiniprogram.IAnyObject> &
WechatMiniprogram.IAnyObject;
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
exports.getCurrentPage =
exports.clamp =
exports.addNumber =
exports.toPromise =
exports.groupSetData =
exports.getAllRect =
exports.getRect =
exports.pickExclude =
exports.requestAnimationFrame =
exports.addUnit =
exports.nextTick =
exports.range =
exports.getSystemInfoSync =
exports.isDef =
void 0;
var validator_1 = require('./validator');
var version_1 = require('./version');
var validator_2 = require('./validator');
Object.defineProperty(exports, 'isDef', {
enumerable: true,
get: function () {
return validator_2.isDef;
}
});
var version_2 = require('./version');
Object.defineProperty(exports, 'getSystemInfoSync', {
enumerable: true,
get: function () {
return version_2.getSystemInfoSync;
}
});
function range(num, min, max) {
return Math.min(Math.max(num, min), max);
}
exports.range = range;
function nextTick(cb) {
if ((0, version_1.canIUseNextTick)()) {
this.$nextTick(cb);
} else {
setTimeout(function () {
cb();
}, 33.333333333333336);
}
}
exports.nextTick = nextTick;
function addUnit(value) {
if (!(0, validator_1.isDef)(value)) {
return undefined;
}
value = String(value);
return (0, validator_1.isNumber)(value) ? ''.concat(value, 'px') : value;
}
exports.addUnit = addUnit;
function requestAnimationFrame(cb) {
return setTimeout(function () {
cb();
}, 33.333333333333336);
}
exports.requestAnimationFrame = requestAnimationFrame;
function pickExclude(obj, keys) {
if (!(0, validator_1.isPlainObject)(obj)) {
return {};
}
return Object.keys(obj).reduce(function (prev, key) {
if (!keys.includes(key)) {
prev[key] = obj[key];
}
return prev;
}, {});
}
exports.pickExclude = pickExclude;
function getRect(context, selector) {
return new Promise(function (resolve) {
uni.createSelectorQuery()
.in(context)
.select(selector)
.boundingClientRect()
.exec(function (rect) {
if (rect === void 0) {
rect = [];
}
return resolve(rect[0]);
});
});
}
exports.getRect = getRect;
function getAllRect(context, selector) {
return new Promise(function (resolve) {
uni.createSelectorQuery()
.in(context)
.selectAll(selector)
.boundingClientRect()
.exec(function (rect) {
if (rect === void 0) {
rect = [];
}
return resolve(rect[0]);
});
});
}
exports.getAllRect = getAllRect;
function groupSetData(context, cb) {
if ((0, version_1.canIUseGroupSetData)()) {
context.groupSetData(cb);
} else {
cb();
}
}
exports.groupSetData = groupSetData;
function toPromise(promiseLike) {
if ((0, validator_1.isPromise)(promiseLike)) {
return promiseLike;
}
return Promise.resolve(promiseLike);
}
exports.toPromise = toPromise;
// 浮点数精度处理
function addNumber(num1, num2) {
var cardinal = Math.pow(10, 10);
return Math.round((num1 + num2) * cardinal) / cardinal;
}
exports.addNumber = addNumber;
// 限制value在[min, max]之间
var clamp = function (num, min, max) {
return Math.min(Math.max(num, min), max);
};
exports.clamp = clamp;
function getCurrentPage() {
var pages = getCurrentPages();
return pages[pages.length - 1];
}
exports.getCurrentPage = getCurrentPage;
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
exports.isVideoUrl =
exports.isImageUrl =
exports.isBoolean =
exports.isNumber =
exports.isObj =
exports.isDef =
exports.isPromise =
exports.isPlainObject =
exports.isFunction =
void 0;
// eslint-disable-next-line @typescript-eslint/ban-types
function isFunction(val) {
return typeof val === 'function';
}
exports.isFunction = isFunction;
function isPlainObject(val) {
return val !== null && typeof val === 'object' && !Array.isArray(val);
}
exports.isPlainObject = isPlainObject;
function isPromise(val) {
return isPlainObject(val) && isFunction(val.then) && isFunction(val.catch);
}
exports.isPromise = isPromise;
function isDef(value) {
return value !== undefined && value !== null;
}
exports.isDef = isDef;
function isObj(x) {
var type = typeof x;
return x !== null && (type === 'object' || type === 'function');
}
exports.isObj = isObj;
function isNumber(value) {
return /^\d+(\.\d+)?$/.test(value);
}
exports.isNumber = isNumber;
function isBoolean(value) {
return typeof value === 'boolean';
}
exports.isBoolean = isBoolean;
var IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
var VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv)/i;
function isImageUrl(url) {
return IMAGE_REGEXP.test(url);
}
exports.isImageUrl = isImageUrl;
function isVideoUrl(url) {
return VIDEO_REGEXP.test(url);
}
exports.isVideoUrl = isVideoUrl;
/// <reference types="miniprogram-api-typings" />
export declare function getSystemInfoSync(): WechatMiniprogram.SystemInfo;
export declare function canIUseModel(): boolean;
export declare function canIUseFormFieldButton(): boolean;
export declare function canIUseAnimate(): boolean;
export declare function canIUseGroupSetData(): boolean;
export declare function canIUseNextTick(): boolean;
export declare function canIUseCanvas2d(): boolean;
export declare function canIUseGetUserProfile(): boolean;
export type TimeData = {
days: number;
hours: number;
minutes: number;
seconds: number;
milliseconds: number;
};
export declare function parseTimeData(time: number): TimeData;
export declare function parseFormat(format: string, timeData: TimeData): string;
export declare function isSameSecond(time1: number, time2: number): boolean;
/// <reference types="miniprogram-api-typings" />
/// <reference types="miniprogram-api-typings" />
export type Action = 'confirm' | 'cancel' | 'overlay';
type DialogContext = WechatMiniprogram.Page.TrivialInstance | WechatMiniprogram.Component.TrivialInstance;
interface DialogOptions {
lang?: string;
show?: boolean;
title?: string;
width?: string | number | null;
zIndex?: number;
theme?: string;
context?: (() => DialogContext) | DialogContext;
message?: string;
overlay?: boolean;
selector?: string;
ariaLabel?: string;
/**
* @deprecated use custom-class instead
*/
className?: string;
customStyle?: string;
transition?: string;
/**
* @deprecated use beforeClose instead
*/
asyncClose?: boolean;
beforeClose?: null | ((action: Action) => Promise<void | boolean> | void);
businessId?: number;
sessionFrom?: string;
overlayStyle?: string;
appParameter?: string;
messageAlign?: string;
sendMessageImg?: string;
showMessageCard?: boolean;
sendMessagePath?: string;
sendMessageTitle?: string;
confirmButtonText?: string;
cancelButtonText?: string;
showConfirmButton?: boolean;
showCancelButton?: boolean;
closeOnClickOverlay?: boolean;
confirmButtonOpenType?: string;
}
declare const Dialog: {
(options: DialogOptions): Promise<WechatMiniprogram.Component.TrivialInstance>;
alert(options: DialogOptions): Promise<WechatMiniprogram.Component.TrivialInstance>;
confirm(options: DialogOptions): Promise<WechatMiniprogram.Component.TrivialInstance>;
close(): void;
stopLoading(): void;
currentOptions: DialogOptions;
defaultOptions: DialogOptions;
setDefaultOptions(options: DialogOptions): void;
resetDefaultOptions(): void;
};
export default Dialog;
'use strict';
var __assign =
(this && this.__assign) ||
function () {
__assign =
Object.assign ||
function (t) {
for (i = 1, n = arguments.length, void 0; i < n; i++) {
var s;
var i;
var n;
s = arguments[i];
for (var p in s) {
if (Object.prototype.hasOwnProperty.call(s, p)) {
t[p] = s[p];
}
}
}
return t;
};
return __assign.apply(this, arguments);
};
Object.defineProperty(exports, '__esModule', {
value: true
});
var queue = [];
var defaultOptions = {
show: false,
title: '',
width: null,
theme: 'default',
message: '',
zIndex: 100,
overlay: true,
selector: '#van-dialog',
className: '',
asyncClose: false,
beforeClose: null,
transition: 'scale',
customStyle: '',
messageAlign: '',
overlayStyle: '',
confirmButtonText: '确认',
cancelButtonText: '取消',
showConfirmButton: true,
showCancelButton: false,
closeOnClickOverlay: false,
confirmButtonOpenType: ''
};
var currentOptions = __assign({}, defaultOptions);
function getContext() {
var pages = getCurrentPages();
return pages[pages.length - 1];
}
var Dialog = function (options) {
options = __assign(__assign({}, currentOptions), options);
return new Promise(function (resolve, reject) {
var context = (typeof options.context === 'function' ? options.context() : options.context) || getContext();
var dialog = context.zpSelectComponent(options.selector);
delete options.context;
delete options.selector;
if (dialog) {
dialog.setData(
__assign(
{
callback: function (action, instance) {
action === 'confirm' ? resolve(instance) : reject(instance);
}
},
options
)
);
this.$nextTick(function () {
dialog.setData({
show: true
});
});
queue.push(dialog);
} else {
console.warn('未找到 van-dialog 节点,请确认 selector 及 context 是否正确');
}
});
};
Dialog.alert = function (options) {
return Dialog(options);
};
Dialog.confirm = function (options) {
return Dialog(
__assign(
{
showCancelButton: true
},
options
)
);
};
Dialog.close = function () {
queue.forEach(function (dialog) {
dialog.close();
});
queue = [];
};
Dialog.stopLoading = function () {
queue.forEach(function (dialog) {
dialog.stopLoading();
});
};
Dialog.currentOptions = currentOptions;
Dialog.defaultOptions = defaultOptions;
Dialog.setDefaultOptions = function (options) {
currentOptions = __assign(__assign({}, currentOptions), options);
Dialog.currentOptions = currentOptions;
};
Dialog.resetDefaultOptions = function () {
currentOptions = __assign({}, defaultOptions);
Dialog.currentOptions = currentOptions;
};
Dialog.resetDefaultOptions();
exports.default = Dialog;
<template>
<view v-if="showWrapper" :class="utils.bem('dropdown-item', direction) + ' custom-class'" :style="wrapperStyle">
<van-popup
:show="showPopup"
:custom-style="'position: absolute;' + popupStyle"
overlay-style="position: absolute;"
:overlay="overlay"
:position="direction === 'down' ? 'top' : 'bottom'"
:duration="transition ? duration : 0"
:safe-area-tab-bar="safeAreaTabBar"
:close-on-click-overlay="closeOnClickOverlay"
:rootPortal="rootPortal"
@enter="onOpen"
@leave="onClose"
@close="toggle"
@after-enter="onOpened"
@after-leave="onClosed"
>
<van-cell
:data-option="item"
:class="utils.bem('dropdown-item__option', { active: item.value === valueClone })"
clickable
:icon="item.icon"
@tap.native="onOptionTap($event, { option: item })"
v-for="(item, index) in options"
:key="index"
>
<view slot="title" class="van-dropdown-item__title item-title-class" :style="item.value === valueClone ? 'color:' + activeColor : ''">
{{ item.text }}
</view>
<van-icon v-if="item.value === valueClone" name="success" class="van-dropdown-item__icon" :color="activeColor" />
</van-cell>
<slot />
</van-popup>
</view>
</template>
<script module="utils" lang="wxs" src="@/miniprogram_npm/@vant/weapp/wxs/utils.wxs"></script>
<script>
'use strict';
import vanPopup from '../popup/index';
import vanCell from '../cell/index';
import vanIcon from '../icon/index';
Object.defineProperty(exports, '__esModule', {
value: true
});
var relation_1 = require('../common/relation');
var component_1 = require('../common/component');
export default {
components: {
vanPopup,
vanCell,
vanIcon
},
data() {
return {
transition: true,
showPopup: false,
showWrapper: false,
displayTitle: '',
safeAreaTabBar: false,
overlay: '',
duration: '',
activeColor: '',
closeOnClickOverlay: '',
direction: '',
wrapperStyle: '',
valueClone: ''
};
},
classes: ['item-title-class'],
field: true,
relation: (0, relation_1.useParent)('dropdown-menu', function () {
this.updateDataFromParent();
}),
props: {
value: {
type: null
},
title: {
type: String
},
disabled: Boolean,
titleClass: {
type: String
},
options: {
type: Array,
default: () => []
},
popupStyle: String,
useBeforeToggle: {
type: Boolean,
default: false
},
rootPortal: {
type: Boolean,
default: false
}
},
methods: {
rerender: function () {
this.valueClone = this.clone(this.value);
var that = this;
this.$nextTick(function () {
var _a;
if ((_a = that.parent) === null || _a === void 0) {
void 0;
} else {
_a.updateItemListData();
}
});
},
updateDataFromParent: function () {
if (this.parent) {
var _a = this.parent.data;
var overlay = _a.overlay;
var duration = _a.duration;
var activeColor = _a.activeColor;
var closeOnClickOverlay = _a.closeOnClickOverlay;
var direction = _a.direction;
var safeAreaTabBar = _a.safeAreaTabBar;
this.setData({
overlay: overlay,
duration: duration,
activeColor: activeColor,
closeOnClickOverlay: closeOnClickOverlay,
direction: direction,
safeAreaTabBar: safeAreaTabBar
});
}
},
onOpen: function () {
this.$emit('open');
},
onOpened: function () {
this.$emit('opened');
},
onClose: function () {
this.$emit('close');
},
onClosed: function () {
this.$emit('closed');
this.setData({
showWrapper: false
});
},
onOptionTap: function (event, _dataset) {
/* ---处理dataset begin--- */
this.handleDataset(event, _dataset);
/* ---处理dataset end--- */
var option = event.currentTarget.dataset.option;
var value = option.value;
var shouldEmitChange = this.value !== value;
this.setData({
showPopup: false,
valueClone: value
});
this.$emit('close');
this.rerender();
if (shouldEmitChange) {
this.$emit('change', value);
}
},
toggle: function (show, options) {
var that = this;
if (options === void 0) {
options = {};
}
var showPopup = this.showPopup;
if (typeof show !== 'boolean') {
show = !showPopup;
}
if (show === showPopup) {
return;
}
this.onBeforeToggle(show).then(function (status) {
var _a;
if (!status) {
return;
}
that.setData({
transition: !options.immediate,
showPopup: show
});
if (show) {
if ((_a = that.parent) === null || _a === void 0) {
void 0;
} else {
_a.getChildWrapperStyle().then(function (wrapperStyle) {
that.setData({
wrapperStyle: wrapperStyle,
showWrapper: true
});
that.rerender();
});
}
} else {
that.rerender();
}
});
},
onBeforeToggle: function (status) {
var that = this;
var useBeforeToggle = this.useBeforeToggle;
if (!useBeforeToggle) {
return Promise.resolve(true);
}
return new Promise(function (resolve) {
that.$emit('before-toggle', {
status: status,
callback: function (value) {
return resolve(value);
}
});
});
}
},
watch: {
value: {
handler: function () {
this.valueClone = this.clone(this.value);
var that = this;
this.$nextTick(function () {
var _a;
if ((_a = that.parent) === null || _a === void 0) {
void 0;
} else {
_a.updateItemListData();
}
});
},
immediate: true
},
title: {
handler: function () {
this.valueClone = this.clone(this.value);
var that = this;
this.$nextTick(function () {
var _a;
if ((_a = that.parent) === null || _a === void 0) {
void 0;
} else {
_a.updateItemListData();
}
});
},
immediate: true
},
titleClass: {
handler: function () {
this.valueClone = this.clone(this.value);
var that = this;
this.$nextTick(function () {
var _a;
if ((_a = that.parent) === null || _a === void 0) {
void 0;
} else {
_a.updateItemListData();
}
});
},
immediate: true
},
options: {
handler: function () {
this.valueClone = this.clone(this.value);
var that = this;
this.$nextTick(function () {
var _a;
if ((_a = that.parent) === null || _a === void 0) {
void 0;
} else {
_a.updateItemListData();
}
});
},
immediate: true,
deep: true
}
}
};
</script>
<style>
@import '../common/index.css';
.van-dropdown-item {
left: 0;
overflow: hidden;
position: fixed;
right: 0;
}
.van-dropdown-item__option {
text-align: left;
}
.van-dropdown-item__option--active .van-dropdown-item__icon,
.van-dropdown-item__option--active .van-dropdown-item__title {
color: var(--dropdown-menu-option-active-color, #ee0a24);
}
.van-dropdown-item--up {
top: 0;
}
.van-dropdown-item--down {
bottom: 0;
}
.van-dropdown-item__icon {
display: block;
line-height: inherit;
}
</style>
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
此差异已折叠。
/* eslint-disable */
var style = require('../wxs/style.wxs');
var addUnit = require('../wxs/add-unit.wxs');
function inputStyle(autosize) {
if (autosize && autosize.constructor === 'Object') {
return style({
'min-height': addUnit(autosize.minHeight),
'max-height': addUnit(autosize.maxHeight),
});
}
return '';
}
module.exports = {
inputStyle: inputStyle,
};
/// <reference types="miniprogram-api-typings" />
export declare const commonProps: WechatMiniprogram.Component.PropertyOption;
export declare const inputProps: WechatMiniprogram.Component.PropertyOption;
export declare const textareaProps: WechatMiniprogram.Component.PropertyOption;
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
exports.textareaProps = exports.inputProps = exports.commonProps = void 0;
exports.commonProps = {
value: {
type: String,
observer: function (value) {
if (value !== this.value) {
this.setData({
innerValue: value
});
this.value = value;
}
}
},
placeholder: String,
placeholderStyle: String,
placeholderClass: String,
disabled: Boolean,
maxlength: {
type: Number,
value: -1
},
cursorSpacing: {
type: Number,
value: 50
},
autoFocus: Boolean,
focus: Boolean,
cursor: {
type: Number,
value: -1
},
selectionStart: {
type: Number,
value: -1
},
selectionEnd: {
type: Number,
value: -1
},
adjustPosition: {
type: Boolean,
value: true
},
holdKeyboard: Boolean
};
exports.inputProps = {
type: {
type: String,
value: 'text'
},
password: Boolean,
confirmType: String,
confirmHold: Boolean,
alwaysEmbed: Boolean
};
exports.textareaProps = {
autoHeight: Boolean,
fixed: Boolean,
showConfirmBar: {
type: Boolean,
value: true
},
disableDefaultPadding: {
type: Boolean,
value: true
}
};
<template>
<view style="height: 100%">
<textarea
:class="utils.bem('field__control', [inputAlign, type, { disabled, error }]) + ' input-class'"
:fixed="fixed"
:focus="focus"
:cursor="cursor"
:value="innerValue"
:auto-focus="autoFocus"
:disabled="disabled || readonly"
:maxlength="maxlength"
:placeholder="placeholder"
:placeholder-style="placeholderStyle"
:placeholder-class="utils.bem('field__placeholder', { error, disabled })"
:auto-height="!!autosize"
:style="computed.inputStyle(autosize)"
:cursor-spacing="cursorSpacing"
:adjust-position="adjustPosition"
:show-confirm-bar="showConfirmBar"
:hold-keyboard="holdKeyboard"
:selection-end="selectionEnd"
:selection-start="selectionStart"
:disable-default-padding="disableDefaultPadding"
@input="onInput"
@tap="onClickInput"
@blur="onBlur"
@focus="onFocus"
@confirm="onConfirm"
@linechange="onLineChange"
@keyboardheightchange="onKeyboardHeightChange"
/>
</view>
</template>
<script>
export default {
props: ['data', 'compName'],
computed: {
fixed() {
return this.data.fixed;
},
focus() {
return this.data.focus;
},
cursor() {
return this.data.cursor;
},
innerValue() {
return this.data.innerValue;
},
autoFocus() {
return this.data.autoFocus;
},
disabled() {
return this.data.disabled;
},
readonly() {
return this.data.readonly;
},
maxlength() {
return this.data.maxlength;
},
placeholder() {
return this.data.placeholder;
},
placeholderStyle() {
return this.data.placeholderStyle;
},
autosize() {
return this.data.autosize;
},
cursorSpacing() {
return this.data.cursorSpacing;
},
adjustPosition() {
return this.data.adjustPosition;
},
showConfirmBar() {
return this.data.showConfirmBar;
},
holdKeyboard() {
return this.data.holdKeyboard;
},
selectionEnd() {
return this.data.selectionEnd;
},
selectionStart() {
return this.data.selectionStart;
},
disableDefaultPadding() {
return this.data.disableDefaultPadding;
},
onInput() {
return this.data.onInput;
},
onClickInput() {
return this.data.onClickInput;
},
onBlur() {
return this.data.onBlur;
},
onFocus() {
return this.data.onFocus;
},
onConfirm() {
return this.data.onConfirm;
},
onLineChange() {
return this.data.onLineChange;
},
onKeyboardHeightChange() {
return this.data.onKeyboardHeightChange;
}
}
};
</script>
<style></style>
<template>
<view style="height: 100%">
<van-button
:id="id"
:lang="lang"
:type="type"
:size="size"
:color="color"
:plain="plain"
:loading="loading"
:disabled="disabled"
:open-type="openType"
:class="utils.bem('goods-action-button', [type, { first: isFirst, last: isLast, plain: plain }])"
custom-class="van-goods-action-button__inner"
:business-id="businessId"
:session-from="sessionFrom"
:app-parameter="appParameter"
:send-message-img="sendMessageImg"
:send-message-path="sendMessagePath"
:show-message-card="showMessageCard"
:send-message-title="sendMessageTitle"
@click="onClick($event, { tagId: id })"
@error="onError($event, { tagId: id })"
@contact="onContact($event, { tagId: id })"
@opensetting="onOpenSetting($event, { tagId: id })"
@getuserinfo="onGetUserInfo($event, { tagId: id })"
@getphonenumber="onGetPhoneNumber($event, { tagId: id })"
@launchapp="onLaunchApp($event, { tagId: id })"
>
{{ text }}
<slot></slot>
</van-button>
</view>
</template>
<script module="utils" lang="wxs" src="@/miniprogram_npm/@vant/weapp/wxs/utils.wxs"></script>
<script>
'use strict';
import vanButton from '../button/index';
Object.defineProperty(exports, '__esModule', {
value: true
});
var component_1 = require('../common/component');
var relation_1 = require('../common/relation');
var button_1 = require('../mixins/button');
var link_1 = require('../mixins/link');
export default {
components: {
vanButton
},
data() {
return {
isFirst: '',
isLast: '',
id: '',
lang: '',
openType: '',
businessId: '',
sessionFrom: '',
appParameter: '',
sendMessageImg: '',
sendMessagePath: '',
showMessageCard: '',
sendMessageTitle: ''
};
},
mixins: [link_1.link, button_1.button],
relation: (0, relation_1.useParent)('goods-action'),
props: {
text: String,
color: String,
size: {
type: String,
default: 'normal'
},
loading: Boolean,
disabled: Boolean,
plain: Boolean,
type: {
type: String,
default: 'danger'
}
},
methods: {
onClick: function (event, _dataset) {
/* ---处理dataset begin--- */
this.handleDataset(event, _dataset);
/* ---处理dataset end--- */
this.$emit('click', event.detail);
this.jumpLink();
},
updateStyle: function () {
if (this.parent == null) {
return;
}
var index = this.index;
var _a = this.parent.children;
if (_a === void 0) {
var children = [];
} else {
var children = _a;
}
this.setData({
isFirst: index === 0,
isLast: index === children.length - 1
});
},
onError(e, _dataset) {
/* ---处理dataset begin--- */
this.handleDataset(e, _dataset);
/* ---处理dataset end--- */
console.log('占位:函数 onError 未声明');
},
onContact(e, _dataset) {
/* ---处理dataset begin--- */
this.handleDataset(e, _dataset);
/* ---处理dataset end--- */
console.log('占位:函数 onContact 未声明');
},
onOpenSetting(e, _dataset) {
/* ---处理dataset begin--- */
this.handleDataset(e, _dataset);
/* ---处理dataset end--- */
console.log('占位:函数 onOpenSetting 未声明');
},
onGetUserInfo(e, _dataset) {
/* ---处理dataset begin--- */
this.handleDataset(e, _dataset);
/* ---处理dataset end--- */
console.log('占位:函数 onGetUserInfo 未声明');
},
onGetPhoneNumber(e, _dataset) {
/* ---处理dataset begin--- */
this.handleDataset(e, _dataset);
/* ---处理dataset end--- */
console.log('占位:函数 onGetPhoneNumber 未声明');
},
onLaunchApp(e, _dataset) {
/* ---处理dataset begin--- */
this.handleDataset(e, _dataset);
/* ---处理dataset end--- */
console.log('占位:函数 onLaunchApp 未声明');
}
}
};
</script>
<style>
@import '../common/index.css';
:host {
flex: 1;
}
.van-goods-action-button {
--button-warning-background-color: var(--goods-action-button-warning-color, linear-gradient(to right, #ffd01e, #ff8917));
--button-danger-background-color: var(--goods-action-button-danger-color, linear-gradient(to right, #ff6034, #ee0a24));
--button-default-height: var(--goods-action-button-height, 40px);
--button-line-height: var(--goods-action-button-line-height, 20px);
--button-plain-background-color: var(--goods-action-button-plain-color, #fff);
--button-border-width: 0;
display: block;
}
.van-goods-action-button--first {
--button-border-radius: 999px 0 0 var(--goods-action-button-border-radius, 999px);
margin-left: 5px;
}
.van-goods-action-button--last {
--button-border-radius: 0 999px var(--goods-action-button-border-radius, 999px) 0;
margin-right: 5px;
}
.van-goods-action-button--first.van-goods-action-button--last {
--button-border-radius: var(--goods-action-button-border-radius, 999px);
}
.van-goods-action-button--plain {
--button-border-width: 1px;
}
.van-goods-action-button__inner {
font-weight: var(--font-weight-bold, 500) !important;
width: 100%;
}
@media (max-width: 321px) {
.van-goods-action-button {
font-size: 13px;
}
}
</style>
<template>
<view v-if="(info !== null && info !== '') || dot" :class="'van-info ' + utils.bem('info', { dot }) + ' custom-class'" :style="customStyle">{{ dot ? '' : info }}</view>
</template>
<script module="utils" lang="wxs" src="@/miniprogram_npm/@vant/weapp/wxs/utils.wxs"></script>
<script>
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
var component_1 = require('../common/component');
export default {
data() {
return {};
},
props: {
dot: Boolean,
info: null,
customStyle: String
}
};
</script>
<style>
@import '../common/index.css';
.van-info {
align-items: center;
background-color: var(--info-background-color, #ee0a24);
border: var(--info-border-width, 1px) solid #fff;
border-radius: var(--info-size, 16px);
box-sizing: border-box;
color: var(--info-color, #fff);
display: inline-flex;
font-family: var(--info-font-family, -apple-system-font, Helvetica Neue, Arial, sans-serif);
font-size: var(--info-font-size, 12px);
font-weight: var(--info-font-weight, 500);
height: var(--info-size, 16px);
justify-content: center;
min-width: var(--info-size, 16px);
padding: var(--info-padding, 0 3px);
position: absolute;
right: 0;
top: 0;
transform: translate(50%, -50%);
transform-origin: 100%;
white-space: nowrap;
}
.van-info--dot {
background-color: var(--info-dot-color, #ee0a24);
border-radius: 100%;
height: var(--info-dot-size, 8px);
min-width: 0;
width: var(--info-dot-size, 8px);
}
</style>
export declare const button: string;
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
exports.button = void 0;
var version_1 = require('../common/version');
exports.button = {
data() {
return {
canIUseGetUserProfile: (0, version_1.canIUseGetUserProfile)()
};
},
externalClasses: ['hover-class'],
props: {
id: String,
lang: String,
businessId: Number,
sessionFrom: String,
sendMessageTitle: String,
sendMessagePath: String,
sendMessageImg: String,
showMessageCard: Boolean,
appParameter: String,
ariaLabel: String,
openType: String,
getUserProfileDesc: String
},
methods: {
onGetUserInfo: function (event) {
this.$emit('getuserinfo', {
detail: event.detail
});
},
onContact: function (event) {
this.$emit('contact', {
detail: event.detail
});
},
onGetPhoneNumber: function (event) {
this.$emit('getphonenumber', {
detail: event.detail
});
},
onError: function (event) {
this.$emit('error', {
detail: event.detail
});
},
onLaunchApp: function (event) {
this.$emit('launchapp', {
detail: event.detail
});
},
onOpenSetting: function (event) {
this.$emit('opensetting', {
detail: event.detail
});
},
onChooseAvatar: function (event) {
this.$emit('chooseavatar', {
detail: event.detail
});
}
}
};
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
exports.link = void 0;
exports.link = {
props: {
url: String,
linkType: {
type: String,
value: 'navigateTo'
}
},
methods: {
jumpLink: function (urlKey) {
if (urlKey === void 0) {
urlKey = 'url';
}
var url = this[urlKey];
if (url) {
if (this.linkType === 'navigateTo' && getCurrentPages().length > 9) {
uni.redirectTo({
url: url
});
} else {
uni[this.linkType]({
url: url
});
}
}
}
}
};
/// <reference types="miniprogram-api-typings" />
/// <reference types="miniprogram-api-typings" />
type IPageScrollOption = WechatMiniprogram.Page.IPageScrollOption;
type Scroller = (this: WechatMiniprogram.Component.TrivialInstance, event?: IPageScrollOption) => void;
export declare function pageScrollMixin(scroller: Scroller): string;
export {};
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
exports.transition = void 0;
// @ts-nocheck
var utils_1 = require('../common/utils');
var validator_1 = require('../common/validator');
var getClassNames = function (name) {
return {
enter: 'van-'.concat(name, '-enter van-').concat(name, '-enter-active enter-class enter-active-class'),
'enter-to': 'van-'.concat(name, '-enter-to van-').concat(name, '-enter-active enter-to-class enter-active-class'),
leave: 'van-'.concat(name, '-leave van-').concat(name, '-leave-active leave-class leave-active-class'),
'leave-to': 'van-'.concat(name, '-leave-to van-').concat(name, '-leave-active leave-to-class leave-active-class')
};
};
function transition(showDefaultValue) {
return {
data() {
return {
type: '',
inited: false,
display: false
};
},
props: {
customStyle: String,
// @ts-ignore
show: {
type: Boolean,
value: showDefaultValue,
observer: 'observeShow'
},
// @ts-ignore
duration: {
type: null,
value: 300,
observer: 'observeDuration'
},
name: {
type: String,
value: 'fade'
}
},
mounted: function () {
if (this.show === true) {
this.observeShow(true, false);
}
},
methods: {
observeShow: function (value, old) {
if (value === old) {
return;
}
if (value) {
this.enter();
} else {
this.leave();
}
},
enter: function () {
var that = this;
var _a = this;
var duration = _a.duration;
var name = _a.name;
var classNames = getClassNames(name);
if ((0, validator_1.isObj)(duration)) {
var currentDuration = duration.enter;
} else {
var currentDuration = duration;
}
if (this.status === 'enter') {
return;
}
this.status = 'enter';
this.$emit('before-enter');
(0, utils_1.requestAnimationFrame)(function () {
if (that.status !== 'enter') {
return;
}
that.$emit('enter');
that.setData({
inited: true,
display: true,
classes: classNames.enter,
currentDuration: currentDuration
});
(0, utils_1.requestAnimationFrame)(function () {
if (that.status !== 'enter') {
return;
}
that.transitionEnded = false;
that.setData({
classes: classNames['enter-to']
});
});
});
},
leave: function () {
var that = this;
if (!this.display) {
return;
}
var _a = this;
var duration = _a.duration;
var name = _a.name;
var classNames = getClassNames(name);
if ((0, validator_1.isObj)(duration)) {
var currentDuration = duration.leave;
} else {
var currentDuration = duration;
}
this.status = 'leave';
this.$emit('before-leave');
(0, utils_1.requestAnimationFrame)(function () {
if (that.status !== 'leave') {
return;
}
that.$emit('leave');
that.setData({
classes: classNames.leave,
currentDuration: currentDuration
});
(0, utils_1.requestAnimationFrame)(function () {
if (that.status !== 'leave') {
return;
}
that.transitionEnded = false;
setTimeout(function () {
return that.onTransitionEnd();
}, currentDuration);
that.setData({
classes: classNames['leave-to']
});
});
});
},
onTransitionEnd: function () {
if (this.transitionEnded) {
return;
}
this.transitionEnded = true;
this.$emit('after-'.concat(this.status));
var _a = this;
var show = _a.show;
var display = _a.display;
if (!show && display) {
this.setData({
display: false
});
}
}
}
};
}
exports.transition = transition;
/* eslint-disable */
var style = require('../wxs/style.wxs');
var addUnit = require('../wxs/add-unit.wxs');
function rootStyle(data) {
return style({
'z-index': data.zIndex,
top: addUnit(data.top),
});
}
function notifyStyle(data) {
return style({
background: data.background,
color: data.color,
});
}
module.exports = {
rootStyle: rootStyle,
notifyStyle: notifyStyle,
};
<template>
<view
class="van-picker-column custom-class"
:style="computed.rootStyle({ itemHeight, visibleItemCount })"
@touchstart="onTouchStart"
@touchmove.stop.prevent="onTouchMove"
@touchend="onTouchEnd"
@touchcancel="onTouchEnd"
>
<view :style="computed.wrapperStyle({ offset, itemHeight, visibleItemCount, duration })">
<view
:data-index="index"
:style="'height: ' + itemHeight + 'px'"
:class="
'van-ellipsis ' +
utils.bem('picker-column__item', { disabled: option && option.disabled, selected: index === currentIndex }) +
' ' +
(index === currentIndex ? 'active-class' : '')
"
@tap="onClickItem"
v-for="(option, index) in options"
:key="index"
>
{{ computed.optionText(option, valueKey) }}
</view>
</view>
</view>
</template>
<script module="utils" lang="wxs" src="@/miniprogram_npm/@vant/weapp/wxs/utils.wxs"></script>
<script module="computed" lang="wxs" src="@/miniprogram_npm/@vant/weapp/picker-column/index.wxs"></script>
<script>
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
var component_1 = require('../common/component');
var utils_1 = require('../common/utils');
var validator_1 = require('../common/validator');
var DEFAULT_DURATION = 200;
export default {
data() {
return {
startY: 0,
offset: 0,
duration: 0,
startOffset: 0,
options: [],
currentIndex: 0,
option: {
disabled: ''
}
};
},
classes: ['active-class'],
props: {
valueKey: String,
className: String,
itemHeight: Number,
visibleItemCount: Number,
initialOptions: {
type: Array,
default: () => []
},
defaultIndex: {
type: Number,
default: 0
}
},
created: function () {
var that = this;
var _a = this;
var defaultIndex = _a.defaultIndex;
var initialOptions = _a.initialOptions;
this.set({
currentIndex: defaultIndex,
options: initialOptions
}).then(function () {
that.setIndex(defaultIndex);
});
},
methods: {
getCount: function () {
return this.options.length;
},
onTouchStart: function (event) {
this.setData({
startY: event.touches[0].clientY,
startOffset: this.offset,
duration: 0
});
},
onTouchMove: function (event) {
var data = this;
var deltaY = event.touches[0].clientY - data.startY;
this.setData({
offset: (0, utils_1.range)(data.startOffset + deltaY, -(this.getCount() * data.itemHeight), data.itemHeight)
});
},
onTouchEnd: function () {
var data = this;
if (data.offset !== data.startOffset) {
this.setData({
duration: DEFAULT_DURATION
});
var index = (0, utils_1.range)(Math.round(-data.offset / data.itemHeight), 0, this.getCount() - 1);
this.setIndex(index, true);
}
},
onClickItem: function (event) {
var index = event.currentTarget.dataset.index;
this.setIndex(index, true);
},
adjustIndex: function (index) {
var data = this;
var count = this.getCount();
index = (0, utils_1.range)(index, 0, count);
for (var i = index; i < count; i++) {
if (!this.isDisabled(data.options[i])) {
return i;
}
}
for (var i = index - 1; i >= 0; i--) {
if (!this.isDisabled(data.options[i])) {
return i;
}
}
},
isDisabled: function (option) {
return (0, validator_1.isObj)(option) && option.disabled;
},
getOptionText: function (option) {
var data = this;
return (0, validator_1.isObj)(option) && data.valueKey in option ? option[data.valueKey] : option;
},
setIndex: function (index, userAction) {
var that = this;
var data = this;
index = this.adjustIndex(index) || 0;
var offset = -index * data.itemHeight;
if (index !== data.currentIndex) {
return this.set({
offset: offset,
currentIndex: index
}).then(function () {
if (userAction) {
that.$emit('change', index);
}
});
}
return this.set({
offset: offset
});
},
setValue: function (value) {
var options = this.options;
for (var i = 0; i < options.length; i++) {
if (this.getOptionText(options[i]) === value) {
return this.setIndex(i);
}
}
return Promise.resolve();
},
getValue: function () {
var data = this;
return data.options[data.currentIndex];
}
},
watch: {
defaultIndex: {
handler: function (value) {
this.setIndex(value);
},
immediate: true
}
}
};
</script>
<style>
@import '../common/index.css';
.van-picker-column {
color: var(--picker-option-text-color, #000);
font-size: var(--picker-option-font-size, 16px);
overflow: hidden;
text-align: center;
}
.van-picker-column__item {
padding: 0 5px;
}
.van-picker-column__item--selected {
color: var(--picker-option-selected-text-color, #323233);
font-weight: var(--font-weight-bold, 500);
}
.van-picker-column__item--disabled {
opacity: var(--picker-option-disabled-opacity, 0.3);
}
</style>
/* eslint-disable */
var style = require('../wxs/style.wxs');
var addUnit = require('../wxs/add-unit.wxs');
function isObj(x) {
var type = typeof x;
return x !== null && (type === 'object' || type === 'function');
}
function optionText(option, valueKey) {
return isObj(option) && option[valueKey] != null ? option[valueKey] : option;
}
function rootStyle(data) {
return style({
height: addUnit(data.itemHeight * data.visibleItemCount),
});
}
function wrapperStyle(data) {
var offset = addUnit(
data.offset + (data.itemHeight * (data.visibleItemCount - 1)) / 2
);
return style({
transition: 'transform ' + data.duration + 'ms',
'line-height': addUnit(data.itemHeight),
transform: 'translate3d(0, ' + offset + ', 0)',
});
}
module.exports = {
optionText: optionText,
rootStyle: rootStyle,
wrapperStyle: wrapperStyle,
};
此差异已折叠。
/* eslint-disable */
var style = require('../wxs/style.wxs');
var addUnit = require('../wxs/add-unit.wxs');
var array = require('../wxs/array.wxs');
function columnsStyle(data) {
return style({
height: addUnit(data.itemHeight * data.visibleItemCount),
});
}
function maskStyle(data) {
return style({
'background-size':
'100% ' + addUnit((data.itemHeight * (data.visibleItemCount - 1)) / 2),
});
}
function frameStyle(data) {
return style({
height: addUnit(data.itemHeight),
});
}
function columns(columns) {
if (!array.isArray(columns)) {
return [];
}
if (columns.length && !columns[0].values) {
return [{ values: columns }];
}
return columns;
}
module.exports = {
columnsStyle: columnsStyle,
frameStyle: frameStyle,
maskStyle: maskStyle,
columns: columns,
};
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
exports.pickerProps = void 0;
exports.pickerProps = {
title: String,
loading: Boolean,
showToolbar: Boolean,
cancelButtonText: {
type: String,
value: '取消'
},
confirmButtonText: {
type: String,
value: '确认'
},
visibleItemCount: {
type: Number,
value: 6
},
itemHeight: {
type: Number,
value: 44
}
};
<template>
<view style="height: 100%">
<van-overlay
v-if="overlay"
:show="show"
:z-index="zIndex"
:custom-style="overlayStyle"
:duration="duration"
@click="onClickOverlay"
:lock-scroll="lockScroll"
:root-portal="rootPortal"
/>
<root-portal v-if="rootPortal">
<Popup :data="this"></Popup>
</root-portal>
<Popup v-else :data="this"></Popup>
</view>
</template>
<script module="utils" lang="wxs" src="@/miniprogram_npm/@vant/weapp/wxs/utils.wxs"></script>
<script module="computed" lang="wxs" src="@/miniprogram_npm/@vant/weapp/popup/index.wxs"></script>
<script>
'use strict';
import vanIcon from '../icon/index';
import vanOverlay from '../overlay/index';
import Popup from './popup.vue';
Object.defineProperty(exports, '__esModule', {
value: true
});
var component_1 = require('../common/component');
var transition_1 = require('../mixins/transition');
export default {
components: {
vanIcon,
vanOverlay,
Popup
},
data() {
return {
show: '',
duration: '',
this: []
};
},
classes: ['enter-class', 'enter-active-class', 'enter-to-class', 'leave-class', 'leave-active-class', 'leave-to-class', 'close-icon-class'],
mixins: [(0, transition_1.transition)(false)],
props: {
round: Boolean,
closeable: Boolean,
customStyle: String,
overlayStyle: String,
transition: {
type: String
},
zIndex: {
type: Number,
default: 100
},
overlay: {
type: Boolean,
default: true
},
closeIcon: {
type: String,
default: 'cross'
},
closeIconPosition: {
type: String,
default: 'top-right'
},
closeOnClickOverlay: {
type: Boolean,
default: true
},
position: {
type: String,
default: 'center'
},
safeAreaInsetBottom: {
type: Boolean,
default: true
},
safeAreaInsetTop: {
type: Boolean,
default: false
},
safeAreaTabBar: {
type: Boolean,
default: false
},
lockScroll: {
type: Boolean,
default: true
},
rootPortal: {
type: Boolean,
default: false
}
},
created: function () {
this.observeClass();
},
methods: {
onClickCloseIcon: function () {
this.$emit('close');
},
onClickOverlay: function () {
this.$emit('click-overlay');
if (this.closeOnClickOverlay) {
this.$emit('close');
}
},
observeClass: function () {
var _a = this;
var transition = _a.transition;
var position = _a.position;
var duration = _a.duration;
var updateData = {
name: transition || position
};
if (transition === 'none') {
updateData.duration = 0;
this.originDuration = duration;
} else if (this.originDuration != null) {
updateData.duration = this.originDuration;
}
this.setData(updateData);
}
},
watch: {
transition: {
handler: function () {
var _a = this;
var transition = _a.transition;
var position = _a.position;
var duration = _a.duration;
var updateData = {
name: transition || position
};
if (transition === 'none') {
updateData.duration = 0;
this.originDuration = duration;
} else if (this.originDuration != null) {
updateData.duration = this.originDuration;
}
this.setData(updateData);
},
immediate: true
},
position: {
handler: function () {
var _a = this;
var transition = _a.transition;
var position = _a.position;
var duration = _a.duration;
var updateData = {
name: transition || position
};
if (transition === 'none') {
updateData.duration = 0;
this.originDuration = duration;
} else if (this.originDuration != null) {
updateData.duration = this.originDuration;
}
this.setData(updateData);
},
immediate: true
}
}
};
</script>
<style>
@import '../common/index.css';
.van-popup {
-webkit-overflow-scrolling: touch;
animation: ease both;
background-color: var(--popup-background-color, #fff);
box-sizing: border-box;
max-height: 100%;
overflow-y: auto;
position: fixed;
transition-timing-function: ease;
}
.van-popup--center {
left: 50%;
top: 50%;
transform: translate3d(-50%, -50%, 0);
}
.van-popup--center.van-popup--round {
border-radius: var(--popup-round-border-radius, 16px);
}
.van-popup--top {
left: 0;
top: 0;
width: 100%;
}
.van-popup--top.van-popup--round {
border-radius: 0 0 var(--popup-round-border-radius, var(--popup-round-border-radius, 16px)) var(--popup-round-border-radius, var(--popup-round-border-radius, 16px));
}
.van-popup--right {
right: 0;
top: 50%;
transform: translate3d(0, -50%, 0);
}
.van-popup--right.van-popup--round {
border-radius: var(--popup-round-border-radius, var(--popup-round-border-radius, 16px)) 0 0 var(--popup-round-border-radius, var(--popup-round-border-radius, 16px));
}
.van-popup--bottom {
bottom: 0;
left: 0;
width: 100%;
}
.van-popup--bottom.van-popup--round {
border-radius: var(--popup-round-border-radius, var(--popup-round-border-radius, 16px)) var(--popup-round-border-radius, var(--popup-round-border-radius, 16px)) 0 0;
}
.van-popup--left {
left: 0;
top: 50%;
transform: translate3d(0, -50%, 0);
}
.van-popup--left.van-popup--round {
border-radius: 0 var(--popup-round-border-radius, var(--popup-round-border-radius, 16px)) var(--popup-round-border-radius, var(--popup-round-border-radius, 16px)) 0;
}
.van-popup--bottom.van-popup--safe {
padding-bottom: env(safe-area-inset-bottom);
}
.van-popup--bottom.van-popup--safeTabBar,
.van-popup--top.van-popup--safeTabBar {
bottom: var(--tabbar-height, 50px);
}
.van-popup--safeTop {
padding-top: env(safe-area-inset-top);
}
.van-popup__close-icon {
color: var(--popup-close-icon-color, #969799);
font-size: var(--popup-close-icon-size, 18px);
position: absolute;
z-index: var(--popup-close-icon-z-index, 1);
}
.van-popup__close-icon--top-left {
left: var(--popup-close-icon-margin, 16px);
top: var(--popup-close-icon-margin, 16px);
}
.van-popup__close-icon--top-right {
right: var(--popup-close-icon-margin, 16px);
top: var(--popup-close-icon-margin, 16px);
}
.van-popup__close-icon--bottom-left {
bottom: var(--popup-close-icon-margin, 16px);
left: var(--popup-close-icon-margin, 16px);
}
.van-popup__close-icon--bottom-right {
bottom: var(--popup-close-icon-margin, 16px);
right: var(--popup-close-icon-margin, 16px);
}
.van-popup__close-icon:active {
opacity: 0.6;
}
.van-scale-enter-active,
.van-scale-leave-active {
transition-property: opacity, transform;
}
.van-scale-enter,
.van-scale-leave-to {
opacity: 0;
transform: translate3d(-50%, -50%, 0) scale(0.7);
}
.van-fade-enter-active,
.van-fade-leave-active {
transition-property: opacity;
}
.van-fade-enter,
.van-fade-leave-to {
opacity: 0;
}
.van-center-enter-active,
.van-center-leave-active {
transition-property: opacity;
}
.van-center-enter,
.van-center-leave-to {
opacity: 0;
}
.van-bottom-enter-active,
.van-bottom-leave-active,
.van-left-enter-active,
.van-left-leave-active,
.van-right-enter-active,
.van-right-leave-active,
.van-top-enter-active,
.van-top-leave-active {
transition-property: transform;
}
.van-bottom-enter,
.van-bottom-leave-to {
transform: translate3d(0, 100%, 0);
}
.van-top-enter,
.van-top-leave-to {
transform: translate3d(0, -100%, 0);
}
.van-left-enter,
.van-left-leave-to {
transform: translate3d(-100%, -50%, 0);
}
.van-right-enter,
.van-right-leave-to {
transform: translate3d(100%, -50%, 0);
}
</style>
/* eslint-disable */
var style = require('../wxs/style.wxs');
function popupStyle(data) {
return style([
{
'z-index': data.zIndex,
'-webkit-transition-duration': data.currentDuration + 'ms',
'transition-duration': data.currentDuration + 'ms',
},
data.display ? null : 'display: none',
data.customStyle,
]);
}
module.exports = {
popupStyle: popupStyle,
};
/* eslint-disable */
var utils = require('../wxs/utils.wxs');
var style = require('../wxs/style.wxs');
function pivotText(pivotText, percentage) {
return pivotText || percentage + '%';
}
function rootStyle(data) {
return style({
'height': data.strokeWidth ? utils.addUnit(data.strokeWidth) : '',
'background': data.trackColor,
});
}
function portionStyle(data) {
return style({
background: data.inactive ? '#cacaca' : data.color,
width: data.percentage ? data.percentage + '%' : '',
});
}
function pivotStyle(data) {
return style({
color: data.textColor,
right: data.right + 'px',
background: data.pivotColor ? data.pivotColor : data.inactive ? '#cacaca' : data.color,
});
}
module.exports = {
pivotText: pivotText,
rootStyle: rootStyle,
portionStyle: portionStyle,
pivotStyle: pivotStyle,
};
/* eslint-disable */
var style = require('../wxs/style.wxs');
var addUnit = require('../wxs/add-unit.wxs');
function rootStyle(data) {
if (!data.gutter) {
return '';
}
return style({
'margin-right': addUnit(-data.gutter / 2),
'margin-left': addUnit(-data.gutter / 2),
});
}
module.exports = {
rootStyle: rootStyle,
};
此差异已折叠。
<template>
<view :class="utils.bem('share-sheet__options', { border: showBorder })">
<view class="van-share-sheet__option" :data-index="index" @tap="onSelect" v-for="(item, index) in options" :key="index">
<button class="van-share-sheet__button" :open-type="item.openType">
<image :src="computed.getIconURL(item.icon)" class="van-share-sheet__icon" />
<view v-if="item.name" class="van-share-sheet__name">{{ item.name }}</view>
<view v-if="item.description" class="van-share-sheet__option-description">
{{ item.description }}
</view>
</button>
</view>
</view>
</template>
<script module="utils" lang="wxs" src="@/miniprogram_npm/@vant/weapp/wxs/utils.wxs"></script>
<script module="computed" lang="wxs" src="@/miniprogram_npm/@vant/weapp/share-sheet/options.wxs"></script>
<script>
'use strict';
var __assign =
(this && this.__assign) ||
function () {
__assign =
Object.assign ||
function (t) {
for (i = 1, n = arguments.length, void 0; i < n; i++) {
var s;
var i;
var n;
s = arguments[i];
for (var p in s) {
if (Object.prototype.hasOwnProperty.call(s, p)) {
t[p] = s[p];
}
}
}
return t;
};
return __assign.apply(this, arguments);
};
Object.defineProperty(exports, '__esModule', {
value: true
});
var component_1 = require('../common/component');
export default {
data() {
return {};
},
props: {
options: Array,
showBorder: Boolean
},
methods: {
onSelect: function (event) {
var index = event.currentTarget.dataset.index;
var option = this.options[index];
this.$emit(
'select',
__assign(__assign({}, option), {
index: index
})
);
}
}
};
</script>
<style>
@import '../common/index.css';
.van-share-sheet__options {
-webkit-overflow-scrolling: touch;
display: flex;
overflow-x: auto;
overflow-y: visible;
padding: 16px 0 16px 8px;
position: relative;
}
.van-share-sheet__options--border:before {
border-top: 1px solid #ebedf0;
box-sizing: border-box;
content: ' ';
left: 16px;
pointer-events: none;
position: absolute;
right: 0;
top: 0;
transform: scaleY(0.5);
transform-origin: center;
}
.van-share-sheet__options::-webkit-scrollbar {
height: 0;
}
.van-share-sheet__option {
align-items: center;
display: flex;
flex-direction: column;
-webkit-user-select: none;
user-select: none;
}
.van-share-sheet__option:active {
opacity: 0.7;
}
.van-share-sheet__button {
background-color: initial;
border: 0;
height: auto;
line-height: inherit;
padding: 0;
}
.van-share-sheet__button:after {
border: 0;
}
.van-share-sheet__icon {
height: 48px;
margin: 0 16px;
width: 48px;
}
.van-share-sheet__name {
color: #646566;
font-size: 12px;
margin-top: 8px;
padding: 0 4px;
}
.van-share-sheet__option-description {
color: #c8c9cc;
font-size: 12px;
padding: 0 4px;
}
</style>
/* eslint-disable */
var PRESET_ICONS = ['qq', 'link', 'weibo', 'wechat', 'poster', 'qrcode', 'weapp-qrcode', 'wechat-moments'];
function getIconURL(icon) {
if (PRESET_ICONS.indexOf(icon) !== -1) {
return 'https://img.yzcdn.cn/vant/share-sheet-' + icon + '.png';
}
return icon;
}
module.exports = {
getIconURL: getIconURL,
};
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
/// <reference types="miniprogram-api-typings" />
/// <reference types="miniprogram-api-typings" />
type ToastMessage = string | number;
type ToastContext = WechatMiniprogram.Component.TrivialInstance | WechatMiniprogram.Page.TrivialInstance;
interface ToastOptions {
show?: boolean;
type?: string;
mask?: boolean;
zIndex?: number;
context?: (() => ToastContext) | ToastContext;
position?: string;
duration?: number;
selector?: string;
forbidClick?: boolean;
loadingType?: string;
message?: ToastMessage;
onClose?: () => void;
}
declare function Toast(toastOptions: ToastOptions | ToastMessage): WechatMiniprogram.Component.TrivialInstance | undefined;
declare namespace Toast {
var loading: (options: ToastMessage | ToastOptions) => WechatMiniprogram.Component.TrivialInstance | undefined;
var success: (options: ToastMessage | ToastOptions) => WechatMiniprogram.Component.TrivialInstance | undefined;
var fail: (options: ToastMessage | ToastOptions) => WechatMiniprogram.Component.TrivialInstance | undefined;
var clear: () => void;
var setDefaultOptions: (options: ToastOptions) => void;
var resetDefaultOptions: () => void;
}
export default Toast;
此差异已折叠。
此差异已折叠。
function isArray(array) {
return array && array.constructor === 'Array';
}
module.exports.isArray = isArray;
此差异已折叠。
此差异已折叠。
此差异已折叠。
Copyright 2016-present Youzan
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或