diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index a5c0cf51..5e53ce29 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -3,7 +3,7 @@ updates:
- package-ecosystem: npm
directory: "/"
schedule:
- interval: daily
+ interval: monthly
open-pull-requests-limit: 10
ignore:
- dependency-name: miniprogram-api-typings
diff --git a/.prettierignore b/.prettierignore
new file mode 100644
index 00000000..5f37ca5d
--- /dev/null
+++ b/.prettierignore
@@ -0,0 +1,2 @@
+lib
+dist
diff --git a/dist/action-sheet/index.js b/dist/action-sheet/index.js
index 042a9061..58e866d9 100644
--- a/dist/action-sheet/index.js
+++ b/dist/action-sheet/index.js
@@ -1,70 +1,70 @@
import { VantComponent } from '../common/component';
import { button } from '../mixins/button';
VantComponent({
- mixins: [button],
- props: {
- show: Boolean,
- title: String,
- cancelText: String,
- description: String,
- round: {
- type: Boolean,
- value: true,
+ mixins: [button],
+ props: {
+ show: Boolean,
+ title: String,
+ cancelText: String,
+ description: String,
+ round: {
+ type: Boolean,
+ value: true,
+ },
+ zIndex: {
+ type: Number,
+ value: 100,
+ },
+ actions: {
+ type: Array,
+ value: [],
+ },
+ overlay: {
+ type: Boolean,
+ value: true,
+ },
+ closeOnClickOverlay: {
+ type: Boolean,
+ value: true,
+ },
+ closeOnClickAction: {
+ type: Boolean,
+ value: true,
+ },
+ safeAreaInsetBottom: {
+ type: Boolean,
+ value: true,
+ },
},
- zIndex: {
- type: Number,
- value: 100,
+ methods: {
+ onSelect(event) {
+ const { index } = event.currentTarget.dataset;
+ const { actions, closeOnClickAction, canIUseGetUserProfile } = this.data;
+ const item = actions[index];
+ if (item) {
+ this.$emit('select', item);
+ if (closeOnClickAction) {
+ this.onClose();
+ }
+ if (item.openType === 'getUserInfo' && canIUseGetUserProfile) {
+ wx.getUserProfile({
+ desc: item.getUserProfileDesc || ' ',
+ complete: (userProfile) => {
+ this.$emit('getuserinfo', userProfile);
+ },
+ });
+ }
+ }
+ },
+ onCancel() {
+ this.$emit('cancel');
+ },
+ onClose() {
+ this.$emit('close');
+ },
+ onClickOverlay() {
+ this.$emit('click-overlay');
+ this.onClose();
+ },
},
- actions: {
- type: Array,
- value: [],
- },
- overlay: {
- type: Boolean,
- value: true,
- },
- closeOnClickOverlay: {
- type: Boolean,
- value: true,
- },
- closeOnClickAction: {
- type: Boolean,
- value: true,
- },
- safeAreaInsetBottom: {
- type: Boolean,
- value: true,
- },
- },
- methods: {
- onSelect(event) {
- const { index } = event.currentTarget.dataset;
- const { actions, closeOnClickAction, canIUseGetUserProfile } = this.data;
- const item = actions[index];
- if (item) {
- this.$emit('select', item);
- if (closeOnClickAction) {
- this.onClose();
- }
- if (item.openType === 'getUserInfo' && canIUseGetUserProfile) {
- wx.getUserProfile({
- desc: item.getUserProfileDesc || ' ',
- complete: (userProfile) => {
- this.$emit('getuserinfo', userProfile);
- },
- });
- }
- }
- },
- onCancel() {
- this.$emit('cancel');
- },
- onClose() {
- this.$emit('close');
- },
- onClickOverlay() {
- this.$emit('click-overlay');
- this.onClose();
- },
- },
});
diff --git a/dist/area/index.js b/dist/area/index.js
index e21e67e2..2a7c79b1 100644
--- a/dist/area/index.js
+++ b/dist/area/index.js
@@ -3,233 +3,215 @@ import { pickerProps } from '../picker/shared';
import { requestAnimationFrame } from '../common/utils';
const EMPTY_CODE = '000000';
VantComponent({
- classes: ['active-class', 'toolbar-class', 'column-class'],
- props: Object.assign(Object.assign({}, pickerProps), {
- value: {
- type: String,
- observer(value) {
- this.code = value;
- this.setValues();
- },
+ classes: ['active-class', 'toolbar-class', 'column-class'],
+ props: Object.assign(Object.assign({}, pickerProps), { value: {
+ type: String,
+ observer(value) {
+ this.code = value;
+ this.setValues();
+ },
+ }, areaList: {
+ type: Object,
+ value: {},
+ observer: 'setValues',
+ }, columnsNum: {
+ type: null,
+ value: 3,
+ }, columnsPlaceholder: {
+ type: Array,
+ observer(val) {
+ this.setData({
+ typeToColumnsPlaceholder: {
+ province: val[0] || '',
+ city: val[1] || '',
+ county: val[2] || '',
+ },
+ });
+ },
+ } }),
+ data: {
+ columns: [{ values: [] }, { values: [] }, { values: [] }],
+ typeToColumnsPlaceholder: {},
},
- areaList: {
- type: Object,
- value: {},
- observer: 'setValues',
- },
- columnsNum: {
- type: null,
- value: 3,
- },
- columnsPlaceholder: {
- type: Array,
- observer(val) {
- this.setData({
- typeToColumnsPlaceholder: {
- province: val[0] || '',
- city: val[1] || '',
- county: val[2] || '',
- },
+ mounted() {
+ requestAnimationFrame(() => {
+ this.setValues();
});
- },
},
- }),
- data: {
- columns: [{ values: [] }, { values: [] }, { values: [] }],
- typeToColumnsPlaceholder: {},
- },
- mounted() {
- requestAnimationFrame(() => {
- this.setValues();
- });
- },
- methods: {
- getPicker() {
- if (this.picker == null) {
- this.picker = this.selectComponent('.van-area__picker');
- }
- return this.picker;
- },
- onCancel(event) {
- this.emit('cancel', event.detail);
- },
- onConfirm(event) {
- const { index } = event.detail;
- let { value } = event.detail;
- value = this.parseValues(value);
- this.emit('confirm', { value, index });
- },
- emit(type, detail) {
- detail.values = detail.value;
- delete detail.value;
- this.$emit(type, detail);
- },
- parseValues(values) {
- const { columnsPlaceholder } = this.data;
- return values.map((value, index) => {
- if (
- value &&
- (!value.code || value.name === columnsPlaceholder[index])
- ) {
- return Object.assign(Object.assign({}, value), {
- code: '',
- name: '',
- });
- }
- return value;
- });
- },
- onChange(event) {
- var _a;
- const { index, picker, value } = event.detail;
- this.code = value[index].code;
- (_a = this.setValues()) === null || _a === void 0
- ? void 0
- : _a.then(() => {
- this.$emit('change', {
- picker,
- values: this.parseValues(picker.getValues()),
- index,
+ methods: {
+ getPicker() {
+ if (this.picker == null) {
+ this.picker = this.selectComponent('.van-area__picker');
+ }
+ return this.picker;
+ },
+ onCancel(event) {
+ this.emit('cancel', event.detail);
+ },
+ onConfirm(event) {
+ const { index } = event.detail;
+ let { value } = event.detail;
+ value = this.parseValues(value);
+ this.emit('confirm', { value, index });
+ },
+ emit(type, detail) {
+ detail.values = detail.value;
+ delete detail.value;
+ this.$emit(type, detail);
+ },
+ parseValues(values) {
+ const { columnsPlaceholder } = this.data;
+ return values.map((value, index) => {
+ if (value &&
+ (!value.code || value.name === columnsPlaceholder[index])) {
+ return Object.assign(Object.assign({}, value), { code: '', name: '' });
+ }
+ return value;
});
- });
+ },
+ onChange(event) {
+ var _a;
+ const { index, picker, value } = event.detail;
+ this.code = value[index].code;
+ (_a = this.setValues()) === null || _a === void 0 ? void 0 : _a.then(() => {
+ this.$emit('change', {
+ picker,
+ values: this.parseValues(picker.getValues()),
+ index,
+ });
+ });
+ },
+ getConfig(type) {
+ const { areaList } = this.data;
+ return (areaList && areaList[`${type}_list`]) || {};
+ },
+ getList(type, code) {
+ if (type !== 'province' && !code) {
+ return [];
+ }
+ const { typeToColumnsPlaceholder } = this.data;
+ const list = this.getConfig(type);
+ let result = Object.keys(list).map((code) => ({
+ code,
+ name: list[code],
+ }));
+ if (code != null) {
+ // oversea code
+ if (code[0] === '9' && type === 'city') {
+ code = '9';
+ }
+ result = result.filter((item) => item.code.indexOf(code) === 0);
+ }
+ if (typeToColumnsPlaceholder[type] && result.length) {
+ // set columns placeholder
+ const codeFill = type === 'province'
+ ? ''
+ : type === 'city'
+ ? EMPTY_CODE.slice(2, 4)
+ : EMPTY_CODE.slice(4, 6);
+ result.unshift({
+ code: `${code}${codeFill}`,
+ name: typeToColumnsPlaceholder[type],
+ });
+ }
+ return result;
+ },
+ getIndex(type, code) {
+ let compareNum = type === 'province' ? 2 : type === 'city' ? 4 : 6;
+ const list = this.getList(type, code.slice(0, compareNum - 2));
+ // oversea code
+ if (code[0] === '9' && type === 'province') {
+ compareNum = 1;
+ }
+ code = code.slice(0, compareNum);
+ for (let i = 0; i < list.length; i++) {
+ if (list[i].code.slice(0, compareNum) === code) {
+ return i;
+ }
+ }
+ return 0;
+ },
+ setValues() {
+ const picker = this.getPicker();
+ if (!picker) {
+ return;
+ }
+ let code = this.code || this.getDefaultCode();
+ const provinceList = this.getList('province');
+ const cityList = this.getList('city', code.slice(0, 2));
+ const stack = [];
+ const indexes = [];
+ const { columnsNum } = this.data;
+ if (columnsNum >= 1) {
+ stack.push(picker.setColumnValues(0, provinceList, false));
+ indexes.push(this.getIndex('province', code));
+ }
+ if (columnsNum >= 2) {
+ stack.push(picker.setColumnValues(1, cityList, false));
+ indexes.push(this.getIndex('city', code));
+ if (cityList.length && code.slice(2, 4) === '00') {
+ [{ code }] = cityList;
+ }
+ }
+ if (columnsNum === 3) {
+ stack.push(picker.setColumnValues(2, this.getList('county', code.slice(0, 4)), false));
+ indexes.push(this.getIndex('county', code));
+ }
+ return Promise.all(stack)
+ .catch(() => { })
+ .then(() => picker.setIndexes(indexes))
+ .catch(() => { });
+ },
+ getDefaultCode() {
+ const { columnsPlaceholder } = this.data;
+ if (columnsPlaceholder.length) {
+ return EMPTY_CODE;
+ }
+ const countyCodes = Object.keys(this.getConfig('county'));
+ if (countyCodes[0]) {
+ return countyCodes[0];
+ }
+ const cityCodes = Object.keys(this.getConfig('city'));
+ if (cityCodes[0]) {
+ return cityCodes[0];
+ }
+ return '';
+ },
+ getValues() {
+ const picker = this.getPicker();
+ if (!picker) {
+ return [];
+ }
+ return this.parseValues(picker.getValues().filter((value) => !!value));
+ },
+ getDetail() {
+ const values = this.getValues();
+ const area = {
+ code: '',
+ country: '',
+ province: '',
+ city: '',
+ county: '',
+ };
+ if (!values.length) {
+ return area;
+ }
+ const names = values.map((item) => item.name);
+ area.code = values[values.length - 1].code;
+ if (area.code[0] === '9') {
+ area.country = names[1] || '';
+ area.province = names[2] || '';
+ }
+ else {
+ area.province = names[0] || '';
+ area.city = names[1] || '';
+ area.county = names[2] || '';
+ }
+ return area;
+ },
+ reset(code) {
+ this.code = code || '';
+ return this.setValues();
+ },
},
- getConfig(type) {
- const { areaList } = this.data;
- return (areaList && areaList[`${type}_list`]) || {};
- },
- getList(type, code) {
- if (type !== 'province' && !code) {
- return [];
- }
- const { typeToColumnsPlaceholder } = this.data;
- const list = this.getConfig(type);
- let result = Object.keys(list).map((code) => ({
- code,
- name: list[code],
- }));
- if (code != null) {
- // oversea code
- if (code[0] === '9' && type === 'city') {
- code = '9';
- }
- result = result.filter((item) => item.code.indexOf(code) === 0);
- }
- if (typeToColumnsPlaceholder[type] && result.length) {
- // set columns placeholder
- const codeFill =
- type === 'province'
- ? ''
- : type === 'city'
- ? EMPTY_CODE.slice(2, 4)
- : EMPTY_CODE.slice(4, 6);
- result.unshift({
- code: `${code}${codeFill}`,
- name: typeToColumnsPlaceholder[type],
- });
- }
- return result;
- },
- getIndex(type, code) {
- let compareNum = type === 'province' ? 2 : type === 'city' ? 4 : 6;
- const list = this.getList(type, code.slice(0, compareNum - 2));
- // oversea code
- if (code[0] === '9' && type === 'province') {
- compareNum = 1;
- }
- code = code.slice(0, compareNum);
- for (let i = 0; i < list.length; i++) {
- if (list[i].code.slice(0, compareNum) === code) {
- return i;
- }
- }
- return 0;
- },
- setValues() {
- const picker = this.getPicker();
- if (!picker) {
- return;
- }
- let code = this.code || this.getDefaultCode();
- const provinceList = this.getList('province');
- const cityList = this.getList('city', code.slice(0, 2));
- const stack = [];
- const indexes = [];
- const { columnsNum } = this.data;
- if (columnsNum >= 1) {
- stack.push(picker.setColumnValues(0, provinceList, false));
- indexes.push(this.getIndex('province', code));
- }
- if (columnsNum >= 2) {
- stack.push(picker.setColumnValues(1, cityList, false));
- indexes.push(this.getIndex('city', code));
- if (cityList.length && code.slice(2, 4) === '00') {
- [{ code }] = cityList;
- }
- }
- if (columnsNum === 3) {
- stack.push(
- picker.setColumnValues(
- 2,
- this.getList('county', code.slice(0, 4)),
- false
- )
- );
- indexes.push(this.getIndex('county', code));
- }
- return Promise.all(stack)
- .catch(() => {})
- .then(() => picker.setIndexes(indexes))
- .catch(() => {});
- },
- getDefaultCode() {
- const { columnsPlaceholder } = this.data;
- if (columnsPlaceholder.length) {
- return EMPTY_CODE;
- }
- const countyCodes = Object.keys(this.getConfig('county'));
- if (countyCodes[0]) {
- return countyCodes[0];
- }
- const cityCodes = Object.keys(this.getConfig('city'));
- if (cityCodes[0]) {
- return cityCodes[0];
- }
- return '';
- },
- getValues() {
- const picker = this.getPicker();
- if (!picker) {
- return [];
- }
- return this.parseValues(picker.getValues().filter((value) => !!value));
- },
- getDetail() {
- const values = this.getValues();
- const area = {
- code: '',
- country: '',
- province: '',
- city: '',
- county: '',
- };
- if (!values.length) {
- return area;
- }
- const names = values.map((item) => item.name);
- area.code = values[values.length - 1].code;
- if (area.code[0] === '9') {
- area.country = names[1] || '';
- area.province = names[2] || '';
- } else {
- area.province = names[0] || '';
- area.city = names[1] || '';
- area.county = names[2] || '';
- }
- return area;
- },
- reset(code) {
- this.code = code || '';
- return this.setValues();
- },
- },
});
diff --git a/dist/button/index.js b/dist/button/index.js
index 39750f8b..0e3c134e 100644
--- a/dist/button/index.js
+++ b/dist/button/index.js
@@ -3,67 +3,62 @@ import { button } from '../mixins/button';
import { canIUseFormFieldButton } from '../common/version';
const mixins = [button];
if (canIUseFormFieldButton()) {
- mixins.push('wx://form-field-button');
+ mixins.push('wx://form-field-button');
}
VantComponent({
- mixins,
- classes: ['hover-class', 'loading-class'],
- data: {
- baseStyle: '',
- },
- props: {
- formType: String,
- icon: String,
- classPrefix: {
- type: String,
- value: 'van-icon',
+ mixins,
+ classes: ['hover-class', 'loading-class'],
+ data: {
+ baseStyle: '',
},
- plain: Boolean,
- block: Boolean,
- round: Boolean,
- square: Boolean,
- loading: Boolean,
- hairline: Boolean,
- disabled: Boolean,
- loadingText: String,
- customStyle: String,
- loadingType: {
- type: String,
- value: 'circular',
+ props: {
+ formType: String,
+ icon: String,
+ classPrefix: {
+ type: String,
+ value: 'van-icon',
+ },
+ plain: Boolean,
+ block: Boolean,
+ round: Boolean,
+ square: Boolean,
+ loading: Boolean,
+ hairline: Boolean,
+ disabled: Boolean,
+ loadingText: String,
+ customStyle: String,
+ loadingType: {
+ type: String,
+ value: 'circular',
+ },
+ type: {
+ type: String,
+ value: 'default',
+ },
+ dataset: null,
+ size: {
+ type: String,
+ value: 'normal',
+ },
+ loadingSize: {
+ type: String,
+ value: '20px',
+ },
+ color: String,
},
- type: {
- type: String,
- value: 'default',
+ methods: {
+ onClick(event) {
+ this.$emit('click', event);
+ const { canIUseGetUserProfile, openType, getUserProfileDesc, lang, } = this.data;
+ if (openType === 'getUserInfo' && canIUseGetUserProfile) {
+ wx.getUserProfile({
+ desc: getUserProfileDesc || ' ',
+ lang: lang || 'en',
+ complete: (userProfile) => {
+ this.$emit('getuserinfo', userProfile);
+ },
+ });
+ }
+ },
},
- dataset: null,
- size: {
- type: String,
- value: 'normal',
- },
- loadingSize: {
- type: String,
- value: '20px',
- },
- color: String,
- },
- methods: {
- onClick(event) {
- this.$emit('click', event);
- const {
- canIUseGetUserProfile,
- openType,
- getUserProfileDesc,
- lang,
- } = this.data;
- if (openType === 'getUserInfo' && canIUseGetUserProfile) {
- wx.getUserProfile({
- desc: getUserProfileDesc || ' ',
- lang: lang || 'en',
- complete: (userProfile) => {
- this.$emit('getuserinfo', userProfile);
- },
- });
- }
- },
- },
});
diff --git a/dist/calendar/components/header/index.js b/dist/calendar/components/header/index.js
index a1898dd7..8fb3682d 100644
--- a/dist/calendar/components/header/index.js
+++ b/dist/calendar/components/header/index.js
@@ -1,37 +1,37 @@
import { VantComponent } from '../../../common/component';
VantComponent({
- props: {
- title: {
- type: String,
- value: '日期选择',
+ props: {
+ title: {
+ type: String,
+ value: '日期选择',
+ },
+ subtitle: String,
+ showTitle: Boolean,
+ showSubtitle: Boolean,
+ firstDayOfWeek: {
+ type: Number,
+ observer: 'initWeekDay',
+ },
},
- subtitle: String,
- showTitle: Boolean,
- showSubtitle: Boolean,
- firstDayOfWeek: {
- type: Number,
- observer: 'initWeekDay',
+ data: {
+ weekdays: [],
},
- },
- data: {
- weekdays: [],
- },
- created() {
- this.initWeekDay();
- },
- methods: {
- initWeekDay() {
- const defaultWeeks = ['日', '一', '二', '三', '四', '五', '六'];
- const firstDayOfWeek = this.data.firstDayOfWeek || 0;
- this.setData({
- weekdays: [
- ...defaultWeeks.slice(firstDayOfWeek, 7),
- ...defaultWeeks.slice(0, firstDayOfWeek),
- ],
- });
+ created() {
+ this.initWeekDay();
},
- onClickSubtitle(event) {
- this.$emit('click-subtitle', event);
+ methods: {
+ initWeekDay() {
+ const defaultWeeks = ['日', '一', '二', '三', '四', '五', '六'];
+ const firstDayOfWeek = this.data.firstDayOfWeek || 0;
+ this.setData({
+ weekdays: [
+ ...defaultWeeks.slice(firstDayOfWeek, 7),
+ ...defaultWeeks.slice(0, firstDayOfWeek),
+ ],
+ });
+ },
+ onClickSubtitle(event) {
+ this.$emit('click-subtitle', event);
+ },
},
- },
});
diff --git a/dist/calendar/components/month/index.js b/dist/calendar/components/month/index.js
index d0026cf0..d04c0fe2 100644
--- a/dist/calendar/components/month/index.js
+++ b/dist/calendar/components/month/index.js
@@ -1,163 +1,154 @@
import { VantComponent } from '../../../common/component';
-import {
- getMonthEndDay,
- compareDay,
- getPrevDay,
- getNextDay,
-} from '../../utils';
+import { getMonthEndDay, compareDay, getPrevDay, getNextDay, } from '../../utils';
VantComponent({
- props: {
- date: {
- type: null,
- observer: 'setDays',
+ props: {
+ date: {
+ type: null,
+ observer: 'setDays',
+ },
+ type: {
+ type: String,
+ observer: 'setDays',
+ },
+ color: String,
+ minDate: {
+ type: null,
+ observer: 'setDays',
+ },
+ maxDate: {
+ type: null,
+ observer: 'setDays',
+ },
+ showMark: Boolean,
+ rowHeight: null,
+ formatter: {
+ type: null,
+ observer: 'setDays',
+ },
+ currentDate: {
+ type: null,
+ observer: 'setDays',
+ },
+ firstDayOfWeek: {
+ type: Number,
+ observer: 'setDays',
+ },
+ allowSameDay: Boolean,
+ showSubtitle: Boolean,
+ showMonthTitle: Boolean,
},
- type: {
- type: String,
- observer: 'setDays',
+ data: {
+ visible: true,
+ days: [],
},
- color: String,
- minDate: {
- type: null,
- observer: 'setDays',
+ methods: {
+ onClick(event) {
+ const { index } = event.currentTarget.dataset;
+ const item = this.data.days[index];
+ if (item.type !== 'disabled') {
+ this.$emit('click', item);
+ }
+ },
+ setDays() {
+ const days = [];
+ const startDate = new Date(this.data.date);
+ const year = startDate.getFullYear();
+ const month = startDate.getMonth();
+ const totalDay = getMonthEndDay(startDate.getFullYear(), startDate.getMonth() + 1);
+ for (let day = 1; day <= totalDay; day++) {
+ const date = new Date(year, month, day);
+ const type = this.getDayType(date);
+ let config = {
+ date,
+ type,
+ text: day,
+ bottomInfo: this.getBottomInfo(type),
+ };
+ if (this.data.formatter) {
+ config = this.data.formatter(config);
+ }
+ days.push(config);
+ }
+ this.setData({ days });
+ },
+ getMultipleDayType(day) {
+ const { currentDate } = this.data;
+ if (!Array.isArray(currentDate)) {
+ return '';
+ }
+ const isSelected = (date) => currentDate.some((item) => compareDay(item, date) === 0);
+ if (isSelected(day)) {
+ const prevDay = getPrevDay(day);
+ const nextDay = getNextDay(day);
+ const prevSelected = isSelected(prevDay);
+ const nextSelected = isSelected(nextDay);
+ if (prevSelected && nextSelected) {
+ return 'multiple-middle';
+ }
+ if (prevSelected) {
+ return 'end';
+ }
+ return nextSelected ? 'start' : 'multiple-selected';
+ }
+ return '';
+ },
+ getRangeDayType(day) {
+ const { currentDate, allowSameDay } = this.data;
+ if (!Array.isArray(currentDate)) {
+ return '';
+ }
+ const [startDay, endDay] = currentDate;
+ if (!startDay) {
+ return '';
+ }
+ const compareToStart = compareDay(day, startDay);
+ if (!endDay) {
+ return compareToStart === 0 ? 'start' : '';
+ }
+ const compareToEnd = compareDay(day, endDay);
+ if (compareToStart === 0 && compareToEnd === 0 && allowSameDay) {
+ return 'start-end';
+ }
+ if (compareToStart === 0) {
+ return 'start';
+ }
+ if (compareToEnd === 0) {
+ return 'end';
+ }
+ if (compareToStart > 0 && compareToEnd < 0) {
+ return 'middle';
+ }
+ return '';
+ },
+ getDayType(day) {
+ const { type, minDate, maxDate, currentDate } = this.data;
+ if (compareDay(day, minDate) < 0 || compareDay(day, maxDate) > 0) {
+ return 'disabled';
+ }
+ if (type === 'single') {
+ return compareDay(day, currentDate) === 0 ? 'selected' : '';
+ }
+ if (type === 'multiple') {
+ return this.getMultipleDayType(day);
+ }
+ /* istanbul ignore else */
+ if (type === 'range') {
+ return this.getRangeDayType(day);
+ }
+ return '';
+ },
+ getBottomInfo(type) {
+ if (this.data.type === 'range') {
+ if (type === 'start') {
+ return '开始';
+ }
+ if (type === 'end') {
+ return '结束';
+ }
+ if (type === 'start-end') {
+ return '开始/结束';
+ }
+ }
+ },
},
- maxDate: {
- type: null,
- observer: 'setDays',
- },
- showMark: Boolean,
- rowHeight: null,
- formatter: {
- type: null,
- observer: 'setDays',
- },
- currentDate: {
- type: null,
- observer: 'setDays',
- },
- firstDayOfWeek: {
- type: Number,
- observer: 'setDays',
- },
- allowSameDay: Boolean,
- showSubtitle: Boolean,
- showMonthTitle: Boolean,
- },
- data: {
- visible: true,
- days: [],
- },
- methods: {
- onClick(event) {
- const { index } = event.currentTarget.dataset;
- const item = this.data.days[index];
- if (item.type !== 'disabled') {
- this.$emit('click', item);
- }
- },
- setDays() {
- const days = [];
- const startDate = new Date(this.data.date);
- const year = startDate.getFullYear();
- const month = startDate.getMonth();
- const totalDay = getMonthEndDay(
- startDate.getFullYear(),
- startDate.getMonth() + 1
- );
- for (let day = 1; day <= totalDay; day++) {
- const date = new Date(year, month, day);
- const type = this.getDayType(date);
- let config = {
- date,
- type,
- text: day,
- bottomInfo: this.getBottomInfo(type),
- };
- if (this.data.formatter) {
- config = this.data.formatter(config);
- }
- days.push(config);
- }
- this.setData({ days });
- },
- getMultipleDayType(day) {
- const { currentDate } = this.data;
- if (!Array.isArray(currentDate)) {
- return '';
- }
- const isSelected = (date) =>
- currentDate.some((item) => compareDay(item, date) === 0);
- if (isSelected(day)) {
- const prevDay = getPrevDay(day);
- const nextDay = getNextDay(day);
- const prevSelected = isSelected(prevDay);
- const nextSelected = isSelected(nextDay);
- if (prevSelected && nextSelected) {
- return 'multiple-middle';
- }
- if (prevSelected) {
- return 'end';
- }
- return nextSelected ? 'start' : 'multiple-selected';
- }
- return '';
- },
- getRangeDayType(day) {
- const { currentDate, allowSameDay } = this.data;
- if (!Array.isArray(currentDate)) {
- return '';
- }
- const [startDay, endDay] = currentDate;
- if (!startDay) {
- return '';
- }
- const compareToStart = compareDay(day, startDay);
- if (!endDay) {
- return compareToStart === 0 ? 'start' : '';
- }
- const compareToEnd = compareDay(day, endDay);
- if (compareToStart === 0 && compareToEnd === 0 && allowSameDay) {
- return 'start-end';
- }
- if (compareToStart === 0) {
- return 'start';
- }
- if (compareToEnd === 0) {
- return 'end';
- }
- if (compareToStart > 0 && compareToEnd < 0) {
- return 'middle';
- }
- return '';
- },
- getDayType(day) {
- const { type, minDate, maxDate, currentDate } = this.data;
- if (compareDay(day, minDate) < 0 || compareDay(day, maxDate) > 0) {
- return 'disabled';
- }
- if (type === 'single') {
- return compareDay(day, currentDate) === 0 ? 'selected' : '';
- }
- if (type === 'multiple') {
- return this.getMultipleDayType(day);
- }
- /* istanbul ignore else */
- if (type === 'range') {
- return this.getRangeDayType(day);
- }
- return '';
- },
- getBottomInfo(type) {
- if (this.data.type === 'range') {
- if (type === 'start') {
- return '开始';
- }
- if (type === 'end') {
- return '结束';
- }
- if (type === 'start-end') {
- return '开始/结束';
- }
- }
- },
- },
});
diff --git a/dist/calendar/index.js b/dist/calendar/index.js
index 6e1c7515..b5021107 100644
--- a/dist/calendar/index.js
+++ b/dist/calendar/index.js
@@ -1,348 +1,323 @@
import { VantComponent } from '../common/component';
-import {
- ROW_HEIGHT,
- getPrevDay,
- getNextDay,
- getToday,
- compareDay,
- copyDates,
- calcDateNum,
- formatMonthTitle,
- compareMonth,
- getMonths,
- getDayByOffset,
-} from './utils';
+import { ROW_HEIGHT, getPrevDay, getNextDay, getToday, compareDay, copyDates, calcDateNum, formatMonthTitle, compareMonth, getMonths, getDayByOffset, } from './utils';
import Toast from '../toast/toast';
import { requestAnimationFrame } from '../common/utils';
const initialMinDate = getToday().getTime();
const initialMaxDate = (() => {
- const now = getToday();
- return new Date(
- now.getFullYear(),
- now.getMonth() + 6,
- now.getDate()
- ).getTime();
+ const now = getToday();
+ return new Date(now.getFullYear(), now.getMonth() + 6, now.getDate()).getTime();
})();
VantComponent({
- props: {
- title: {
- type: String,
- value: '日期选择',
+ props: {
+ title: {
+ type: String,
+ value: '日期选择',
+ },
+ color: String,
+ show: {
+ type: Boolean,
+ observer(val) {
+ if (val) {
+ this.initRect();
+ this.scrollIntoView();
+ }
+ },
+ },
+ formatter: null,
+ confirmText: {
+ type: String,
+ value: '确定',
+ },
+ confirmDisabledText: {
+ type: String,
+ value: '确定',
+ },
+ rangePrompt: String,
+ showRangePrompt: {
+ type: Boolean,
+ value: true,
+ },
+ defaultDate: {
+ type: null,
+ observer(val) {
+ this.setData({ currentDate: val });
+ this.scrollIntoView();
+ },
+ },
+ allowSameDay: Boolean,
+ type: {
+ type: String,
+ value: 'single',
+ observer: 'reset',
+ },
+ minDate: {
+ type: Number,
+ value: initialMinDate,
+ },
+ maxDate: {
+ type: Number,
+ value: initialMaxDate,
+ },
+ position: {
+ type: String,
+ value: 'bottom',
+ },
+ rowHeight: {
+ type: null,
+ value: ROW_HEIGHT,
+ },
+ round: {
+ type: Boolean,
+ value: true,
+ },
+ poppable: {
+ type: Boolean,
+ value: true,
+ },
+ showMark: {
+ type: Boolean,
+ value: true,
+ },
+ showTitle: {
+ type: Boolean,
+ value: true,
+ },
+ showConfirm: {
+ type: Boolean,
+ value: true,
+ },
+ showSubtitle: {
+ type: Boolean,
+ value: true,
+ },
+ safeAreaInsetBottom: {
+ type: Boolean,
+ value: true,
+ },
+ closeOnClickOverlay: {
+ type: Boolean,
+ value: true,
+ },
+ maxRange: {
+ type: null,
+ value: null,
+ },
+ firstDayOfWeek: {
+ type: Number,
+ value: 0,
+ },
},
- color: String,
- show: {
- type: Boolean,
- observer(val) {
- if (val) {
- this.initRect();
- this.scrollIntoView();
- }
- },
+ data: {
+ subtitle: '',
+ currentDate: null,
+ scrollIntoView: '',
},
- formatter: null,
- confirmText: {
- type: String,
- value: '确定',
- },
- confirmDisabledText: {
- type: String,
- value: '确定',
- },
- rangePrompt: String,
- showRangePrompt: {
- type: Boolean,
- value: true,
- },
- defaultDate: {
- type: null,
- observer(val) {
- this.setData({ currentDate: val });
- this.scrollIntoView();
- },
- },
- allowSameDay: Boolean,
- type: {
- type: String,
- value: 'single',
- observer: 'reset',
- },
- minDate: {
- type: Number,
- value: initialMinDate,
- },
- maxDate: {
- type: Number,
- value: initialMaxDate,
- },
- position: {
- type: String,
- value: 'bottom',
- },
- rowHeight: {
- type: null,
- value: ROW_HEIGHT,
- },
- round: {
- type: Boolean,
- value: true,
- },
- poppable: {
- type: Boolean,
- value: true,
- },
- showMark: {
- type: Boolean,
- value: true,
- },
- showTitle: {
- type: Boolean,
- value: true,
- },
- showConfirm: {
- type: Boolean,
- value: true,
- },
- showSubtitle: {
- type: Boolean,
- value: true,
- },
- safeAreaInsetBottom: {
- type: Boolean,
- value: true,
- },
- closeOnClickOverlay: {
- type: Boolean,
- value: true,
- },
- maxRange: {
- type: null,
- value: null,
- },
- firstDayOfWeek: {
- type: Number,
- value: 0,
- },
- },
- data: {
- subtitle: '',
- currentDate: null,
- scrollIntoView: '',
- },
- created() {
- this.setData({
- currentDate: this.getInitialDate(this.data.defaultDate),
- });
- },
- mounted() {
- if (this.data.show || !this.data.poppable) {
- this.initRect();
- this.scrollIntoView();
- }
- },
- methods: {
- reset() {
- this.setData({ currentDate: this.getInitialDate() });
- this.scrollIntoView();
- },
- initRect() {
- if (this.contentObserver != null) {
- this.contentObserver.disconnect();
- }
- const contentObserver = this.createIntersectionObserver({
- thresholds: [0, 0.1, 0.9, 1],
- observeAll: true,
- });
- this.contentObserver = contentObserver;
- contentObserver.relativeTo('.van-calendar__body');
- contentObserver.observe('.month', (res) => {
- if (res.boundingClientRect.top <= res.relativeRect.top) {
- // @ts-ignore
- this.setData({ subtitle: formatMonthTitle(res.dataset.date) });
- }
- });
- },
- limitDateRange(date, minDate = null, maxDate = null) {
- minDate = minDate || this.data.minDate;
- maxDate = maxDate || this.data.maxDate;
- if (compareDay(date, minDate) === -1) {
- return minDate;
- }
- if (compareDay(date, maxDate) === 1) {
- return maxDate;
- }
- return date;
- },
- getInitialDate(defaultDate = null) {
- const { type, minDate, maxDate } = this.data;
- const now = getToday().getTime();
- if (type === 'range') {
- if (!Array.isArray(defaultDate)) {
- defaultDate = [];
- }
- const [startDay, endDay] = defaultDate || [];
- const start = this.limitDateRange(
- startDay || now,
- minDate,
- getPrevDay(new Date(maxDate)).getTime()
- );
- const end = this.limitDateRange(
- endDay || now,
- getNextDay(new Date(minDate)).getTime()
- );
- return [start, end];
- }
- if (type === 'multiple') {
- if (Array.isArray(defaultDate)) {
- return defaultDate.map((date) => this.limitDateRange(date));
- }
- return [this.limitDateRange(now)];
- }
- if (!defaultDate || Array.isArray(defaultDate)) {
- defaultDate = now;
- }
- return this.limitDateRange(defaultDate);
- },
- scrollIntoView() {
- requestAnimationFrame(() => {
- const {
- currentDate,
- type,
- show,
- poppable,
- minDate,
- maxDate,
- } = this.data;
- // @ts-ignore
- const targetDate = type === 'single' ? currentDate : currentDate[0];
- const displayed = show || !poppable;
- if (!targetDate || !displayed) {
- return;
- }
- const months = getMonths(minDate, maxDate);
- months.some((month, index) => {
- if (compareMonth(month, targetDate) === 0) {
- this.setData({ scrollIntoView: `month${index}` });
- return true;
- }
- return false;
+ created() {
+ this.setData({
+ currentDate: this.getInitialDate(this.data.defaultDate),
});
- });
},
- onOpen() {
- this.$emit('open');
- },
- onOpened() {
- this.$emit('opened');
- },
- onClose() {
- this.$emit('close');
- },
- onClosed() {
- this.$emit('closed');
- },
- onClickDay(event) {
- const { date } = event.detail;
- const { type, currentDate, allowSameDay } = this.data;
- if (type === 'range') {
- // @ts-ignore
- const [startDay, endDay] = currentDate;
- if (startDay && !endDay) {
- const compareToStart = compareDay(date, startDay);
- if (compareToStart === 1) {
- this.select([startDay, date], true);
- } else if (compareToStart === -1) {
- this.select([date, null]);
- } else if (allowSameDay) {
- this.select([date, date]);
- }
- } else {
- this.select([date, null]);
+ mounted() {
+ if (this.data.show || !this.data.poppable) {
+ this.initRect();
+ this.scrollIntoView();
}
- } else if (type === 'multiple') {
- let selectedIndex;
- // @ts-ignore
- const selected = currentDate.some((dateItem, index) => {
- const equal = compareDay(dateItem, date) === 0;
- if (equal) {
- selectedIndex = index;
- }
- return equal;
- });
- if (selected) {
- // @ts-ignore
- const cancelDate = currentDate.splice(selectedIndex, 1);
- this.setData({ currentDate });
- this.unselect(cancelDate);
- } else {
- // @ts-ignore
- this.select([...currentDate, date]);
- }
- } else {
- this.select(date, true);
- }
},
- unselect(dateArray) {
- const date = dateArray[0];
- if (date) {
- this.$emit('unselect', copyDates(date));
- }
- },
- select(date, complete) {
- if (complete && this.data.type === 'range') {
- const valid = this.checkRange(date);
- if (!valid) {
- // auto selected to max range if showConfirm
- if (this.data.showConfirm) {
- this.emit([
- date[0],
- getDayByOffset(date[0], this.data.maxRange - 1),
- ]);
- } else {
+ methods: {
+ reset() {
+ this.setData({ currentDate: this.getInitialDate() });
+ this.scrollIntoView();
+ },
+ initRect() {
+ if (this.contentObserver != null) {
+ this.contentObserver.disconnect();
+ }
+ const contentObserver = this.createIntersectionObserver({
+ thresholds: [0, 0.1, 0.9, 1],
+ observeAll: true,
+ });
+ this.contentObserver = contentObserver;
+ contentObserver.relativeTo('.van-calendar__body');
+ contentObserver.observe('.month', (res) => {
+ if (res.boundingClientRect.top <= res.relativeRect.top) {
+ // @ts-ignore
+ this.setData({ subtitle: formatMonthTitle(res.dataset.date) });
+ }
+ });
+ },
+ limitDateRange(date, minDate = null, maxDate = null) {
+ minDate = minDate || this.data.minDate;
+ maxDate = maxDate || this.data.maxDate;
+ if (compareDay(date, minDate) === -1) {
+ return minDate;
+ }
+ if (compareDay(date, maxDate) === 1) {
+ return maxDate;
+ }
+ return date;
+ },
+ getInitialDate(defaultDate = null) {
+ const { type, minDate, maxDate } = this.data;
+ const now = getToday().getTime();
+ if (type === 'range') {
+ if (!Array.isArray(defaultDate)) {
+ defaultDate = [];
+ }
+ const [startDay, endDay] = defaultDate || [];
+ const start = this.limitDateRange(startDay || now, minDate, getPrevDay(new Date(maxDate)).getTime());
+ const end = this.limitDateRange(endDay || now, getNextDay(new Date(minDate)).getTime());
+ return [start, end];
+ }
+ if (type === 'multiple') {
+ if (Array.isArray(defaultDate)) {
+ return defaultDate.map((date) => this.limitDateRange(date));
+ }
+ return [this.limitDateRange(now)];
+ }
+ if (!defaultDate || Array.isArray(defaultDate)) {
+ defaultDate = now;
+ }
+ return this.limitDateRange(defaultDate);
+ },
+ scrollIntoView() {
+ requestAnimationFrame(() => {
+ const { currentDate, type, show, poppable, minDate, maxDate, } = this.data;
+ // @ts-ignore
+ const targetDate = type === 'single' ? currentDate : currentDate[0];
+ const displayed = show || !poppable;
+ if (!targetDate || !displayed) {
+ return;
+ }
+ const months = getMonths(minDate, maxDate);
+ months.some((month, index) => {
+ if (compareMonth(month, targetDate) === 0) {
+ this.setData({ scrollIntoView: `month${index}` });
+ return true;
+ }
+ return false;
+ });
+ });
+ },
+ onOpen() {
+ this.$emit('open');
+ },
+ onOpened() {
+ this.$emit('opened');
+ },
+ onClose() {
+ this.$emit('close');
+ },
+ onClosed() {
+ this.$emit('closed');
+ },
+ onClickDay(event) {
+ const { date } = event.detail;
+ const { type, currentDate, allowSameDay } = this.data;
+ if (type === 'range') {
+ // @ts-ignore
+ const [startDay, endDay] = currentDate;
+ if (startDay && !endDay) {
+ const compareToStart = compareDay(date, startDay);
+ if (compareToStart === 1) {
+ this.select([startDay, date], true);
+ }
+ else if (compareToStart === -1) {
+ this.select([date, null]);
+ }
+ else if (allowSameDay) {
+ this.select([date, date]);
+ }
+ }
+ else {
+ this.select([date, null]);
+ }
+ }
+ else if (type === 'multiple') {
+ let selectedIndex;
+ // @ts-ignore
+ const selected = currentDate.some((dateItem, index) => {
+ const equal = compareDay(dateItem, date) === 0;
+ if (equal) {
+ selectedIndex = index;
+ }
+ return equal;
+ });
+ if (selected) {
+ // @ts-ignore
+ const cancelDate = currentDate.splice(selectedIndex, 1);
+ this.setData({ currentDate });
+ this.unselect(cancelDate);
+ }
+ else {
+ // @ts-ignore
+ this.select([...currentDate, date]);
+ }
+ }
+ else {
+ this.select(date, true);
+ }
+ },
+ unselect(dateArray) {
+ const date = dateArray[0];
+ if (date) {
+ this.$emit('unselect', copyDates(date));
+ }
+ },
+ select(date, complete) {
+ if (complete && this.data.type === 'range') {
+ const valid = this.checkRange(date);
+ if (!valid) {
+ // auto selected to max range if showConfirm
+ if (this.data.showConfirm) {
+ this.emit([
+ date[0],
+ getDayByOffset(date[0], this.data.maxRange - 1),
+ ]);
+ }
+ else {
+ this.emit(date);
+ }
+ return;
+ }
+ }
this.emit(date);
- }
- return;
- }
- }
- this.emit(date);
- if (complete && !this.data.showConfirm) {
- this.onConfirm();
- }
+ if (complete && !this.data.showConfirm) {
+ this.onConfirm();
+ }
+ },
+ emit(date) {
+ const getTime = (date) => date instanceof Date ? date.getTime() : date;
+ this.setData({
+ currentDate: Array.isArray(date) ? date.map(getTime) : getTime(date),
+ });
+ this.$emit('select', copyDates(date));
+ },
+ checkRange(date) {
+ const { maxRange, rangePrompt, showRangePrompt } = this.data;
+ if (maxRange && calcDateNum(date) > maxRange) {
+ if (showRangePrompt) {
+ Toast({
+ context: this,
+ message: rangePrompt || `选择天数不能超过 ${maxRange} 天`,
+ });
+ }
+ this.$emit('over-range');
+ return false;
+ }
+ return true;
+ },
+ onConfirm() {
+ if (this.data.type === 'range' &&
+ !this.checkRange(this.data.currentDate)) {
+ return;
+ }
+ wx.nextTick(() => {
+ // @ts-ignore
+ this.$emit('confirm', copyDates(this.data.currentDate));
+ });
+ },
+ onClickSubtitle(event) {
+ this.$emit('click-subtitle', event);
+ },
},
- emit(date) {
- const getTime = (date) => (date instanceof Date ? date.getTime() : date);
- this.setData({
- currentDate: Array.isArray(date) ? date.map(getTime) : getTime(date),
- });
- this.$emit('select', copyDates(date));
- },
- checkRange(date) {
- const { maxRange, rangePrompt, showRangePrompt } = this.data;
- if (maxRange && calcDateNum(date) > maxRange) {
- if (showRangePrompt) {
- Toast({
- context: this,
- message: rangePrompt || `选择天数不能超过 ${maxRange} 天`,
- });
- }
- this.$emit('over-range');
- return false;
- }
- return true;
- },
- onConfirm() {
- if (
- this.data.type === 'range' &&
- !this.checkRange(this.data.currentDate)
- ) {
- return;
- }
- wx.nextTick(() => {
- // @ts-ignore
- this.$emit('confirm', copyDates(this.data.currentDate));
- });
- },
- onClickSubtitle(event) {
- this.$emit('click-subtitle', event);
- },
- },
});
diff --git a/dist/calendar/utils.d.ts b/dist/calendar/utils.d.ts
index ec7cf3f4..eb710c09 100644
--- a/dist/calendar/utils.d.ts
+++ b/dist/calendar/utils.d.ts
@@ -1,13 +1,7 @@
export declare const ROW_HEIGHT = 64;
export declare function formatMonthTitle(date: Date): string;
-export declare function compareMonth(
- date1: Date | number,
- date2: Date | number
-): 1 | -1 | 0;
-export declare function compareDay(
- day1: Date | number,
- day2: Date | number
-): 1 | -1 | 0;
+export declare function compareMonth(date1: Date | number, date2: Date | number): 1 | -1 | 0;
+export declare function compareDay(day1: Date | number, day2: Date | number): 1 | -1 | 0;
export declare function getDayByOffset(date: Date, offset: number): Date;
export declare function getPrevDay(date: Date): Date;
export declare function getNextDay(date: Date): Date;
diff --git a/dist/calendar/utils.js b/dist/calendar/utils.js
index f773e7f5..83d6971d 100644
--- a/dist/calendar/utils.js
+++ b/dist/calendar/utils.js
@@ -1,83 +1,83 @@
export const ROW_HEIGHT = 64;
export function formatMonthTitle(date) {
- if (!(date instanceof Date)) {
- date = new Date(date);
- }
- return `${date.getFullYear()}年${date.getMonth() + 1}月`;
+ if (!(date instanceof Date)) {
+ date = new Date(date);
+ }
+ return `${date.getFullYear()}年${date.getMonth() + 1}月`;
}
export function compareMonth(date1, date2) {
- if (!(date1 instanceof Date)) {
- date1 = new Date(date1);
- }
- if (!(date2 instanceof Date)) {
- date2 = new Date(date2);
- }
- const year1 = date1.getFullYear();
- const year2 = date2.getFullYear();
- const month1 = date1.getMonth();
- const month2 = date2.getMonth();
- if (year1 === year2) {
- return month1 === month2 ? 0 : month1 > month2 ? 1 : -1;
- }
- return year1 > year2 ? 1 : -1;
+ if (!(date1 instanceof Date)) {
+ date1 = new Date(date1);
+ }
+ if (!(date2 instanceof Date)) {
+ date2 = new Date(date2);
+ }
+ const year1 = date1.getFullYear();
+ const year2 = date2.getFullYear();
+ const month1 = date1.getMonth();
+ const month2 = date2.getMonth();
+ if (year1 === year2) {
+ return month1 === month2 ? 0 : month1 > month2 ? 1 : -1;
+ }
+ return year1 > year2 ? 1 : -1;
}
export function compareDay(day1, day2) {
- if (!(day1 instanceof Date)) {
- day1 = new Date(day1);
- }
- if (!(day2 instanceof Date)) {
- day2 = new Date(day2);
- }
- const compareMonthResult = compareMonth(day1, day2);
- if (compareMonthResult === 0) {
- const date1 = day1.getDate();
- const date2 = day2.getDate();
- return date1 === date2 ? 0 : date1 > date2 ? 1 : -1;
- }
- return compareMonthResult;
+ if (!(day1 instanceof Date)) {
+ day1 = new Date(day1);
+ }
+ if (!(day2 instanceof Date)) {
+ day2 = new Date(day2);
+ }
+ const compareMonthResult = compareMonth(day1, day2);
+ if (compareMonthResult === 0) {
+ const date1 = day1.getDate();
+ const date2 = day2.getDate();
+ return date1 === date2 ? 0 : date1 > date2 ? 1 : -1;
+ }
+ return compareMonthResult;
}
export function getDayByOffset(date, offset) {
- date = new Date(date);
- date.setDate(date.getDate() + offset);
- return date;
+ date = new Date(date);
+ date.setDate(date.getDate() + offset);
+ return date;
}
export function getPrevDay(date) {
- return getDayByOffset(date, -1);
+ return getDayByOffset(date, -1);
}
export function getNextDay(date) {
- return getDayByOffset(date, 1);
+ return getDayByOffset(date, 1);
}
export function getToday() {
- const today = new Date();
- today.setHours(0, 0, 0, 0);
- return today;
+ const today = new Date();
+ today.setHours(0, 0, 0, 0);
+ return today;
}
export function calcDateNum(date) {
- const day1 = new Date(date[0]).getTime();
- const day2 = new Date(date[1]).getTime();
- return (day2 - day1) / (1000 * 60 * 60 * 24) + 1;
+ const day1 = new Date(date[0]).getTime();
+ const day2 = new Date(date[1]).getTime();
+ return (day2 - day1) / (1000 * 60 * 60 * 24) + 1;
}
export function copyDates(dates) {
- if (Array.isArray(dates)) {
- return dates.map((date) => {
- if (date === null) {
- return date;
- }
- return new Date(date);
- });
- }
- return new Date(dates);
+ if (Array.isArray(dates)) {
+ return dates.map((date) => {
+ if (date === null) {
+ return date;
+ }
+ return new Date(date);
+ });
+ }
+ return new Date(dates);
}
export function getMonthEndDay(year, month) {
- return 32 - new Date(year, month - 1, 32).getDate();
+ return 32 - new Date(year, month - 1, 32).getDate();
}
export function getMonths(minDate, maxDate) {
- const months = [];
- const cursor = new Date(minDate);
- cursor.setDate(1);
- do {
- months.push(cursor.getTime());
- cursor.setMonth(cursor.getMonth() + 1);
- } while (compareMonth(cursor, maxDate) !== 1);
- return months;
+ const months = [];
+ const cursor = new Date(minDate);
+ cursor.setDate(1);
+ do {
+ months.push(cursor.getTime());
+ cursor.setMonth(cursor.getMonth() + 1);
+ } while (compareMonth(cursor, maxDate) !== 1);
+ return months;
}
diff --git a/dist/card/index.js b/dist/card/index.js
index 6aaf99f2..5bbd2127 100644
--- a/dist/card/index.js
+++ b/dist/card/index.js
@@ -1,49 +1,49 @@
import { link } from '../mixins/link';
import { VantComponent } from '../common/component';
VantComponent({
- classes: [
- 'num-class',
- 'desc-class',
- 'thumb-class',
- 'title-class',
- 'price-class',
- 'origin-price-class',
- ],
- mixins: [link],
- props: {
- tag: String,
- num: String,
- desc: String,
- thumb: String,
- title: String,
- price: {
- type: String,
- observer: 'updatePrice',
+ classes: [
+ 'num-class',
+ 'desc-class',
+ 'thumb-class',
+ 'title-class',
+ 'price-class',
+ 'origin-price-class',
+ ],
+ mixins: [link],
+ props: {
+ tag: String,
+ num: String,
+ desc: String,
+ thumb: String,
+ title: String,
+ price: {
+ type: String,
+ observer: 'updatePrice',
+ },
+ centered: Boolean,
+ lazyLoad: Boolean,
+ thumbLink: String,
+ originPrice: String,
+ thumbMode: {
+ type: String,
+ value: 'aspectFit',
+ },
+ currency: {
+ type: String,
+ value: '¥',
+ },
},
- centered: Boolean,
- lazyLoad: Boolean,
- thumbLink: String,
- originPrice: String,
- thumbMode: {
- type: String,
- value: 'aspectFit',
+ methods: {
+ updatePrice() {
+ const { price } = this.data;
+ const priceArr = price.toString().split('.');
+ this.setData({
+ integerStr: priceArr[0],
+ decimalStr: priceArr[1] ? `.${priceArr[1]}` : '',
+ });
+ },
+ onClickThumb() {
+ this.jumpLink('thumbLink');
+ },
},
- currency: {
- type: String,
- value: '¥',
- },
- },
- methods: {
- updatePrice() {
- const { price } = this.data;
- const priceArr = price.toString().split('.');
- this.setData({
- integerStr: priceArr[0],
- decimalStr: priceArr[1] ? `.${priceArr[1]}` : '',
- });
- },
- onClickThumb() {
- this.jumpLink('thumbLink');
- },
- },
});
diff --git a/dist/cell-group/index.js b/dist/cell-group/index.js
index 5f76bb55..170760f7 100644
--- a/dist/cell-group/index.js
+++ b/dist/cell-group/index.js
@@ -1,11 +1,11 @@
import { VantComponent } from '../common/component';
VantComponent({
- props: {
- title: String,
- border: {
- type: Boolean,
- value: true,
+ props: {
+ title: String,
+ border: {
+ type: Boolean,
+ value: true,
+ },
+ inset: Boolean,
},
- inset: Boolean,
- },
});
diff --git a/dist/cell/index.js b/dist/cell/index.js
index a0123d1d..35548b99 100644
--- a/dist/cell/index.js
+++ b/dist/cell/index.js
@@ -1,38 +1,38 @@
import { link } from '../mixins/link';
import { VantComponent } from '../common/component';
VantComponent({
- classes: [
- 'title-class',
- 'label-class',
- 'value-class',
- 'right-icon-class',
- 'hover-class',
- ],
- mixins: [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,
- value: true,
+ classes: [
+ 'title-class',
+ 'label-class',
+ 'value-class',
+ 'right-icon-class',
+ 'hover-class',
+ ],
+ mixins: [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,
+ value: true,
+ },
+ titleStyle: String,
},
- titleStyle: String,
- },
- methods: {
- onClick(event) {
- this.$emit('click', event.detail);
- this.jumpLink();
+ methods: {
+ onClick(event) {
+ this.$emit('click', event.detail);
+ this.jumpLink();
+ },
},
- },
});
diff --git a/dist/checkbox-group/index.js b/dist/checkbox-group/index.js
index 2dced547..c47d97d0 100644
--- a/dist/checkbox-group/index.js
+++ b/dist/checkbox-group/index.js
@@ -1,36 +1,36 @@
import { useChildren } from '../common/relation';
import { VantComponent } from '../common/component';
VantComponent({
- field: true,
- relation: useChildren('checkbox', function (target) {
- this.updateChild(target);
- }),
- props: {
- max: Number,
- value: {
- type: Array,
- observer: 'updateChildren',
+ field: true,
+ relation: useChildren('checkbox', function (target) {
+ this.updateChild(target);
+ }),
+ props: {
+ max: Number,
+ value: {
+ type: Array,
+ observer: 'updateChildren',
+ },
+ disabled: {
+ type: Boolean,
+ observer: 'updateChildren',
+ },
+ direction: {
+ type: String,
+ value: 'vertical',
+ },
},
- disabled: {
- type: Boolean,
- observer: 'updateChildren',
+ methods: {
+ updateChildren() {
+ this.children.forEach((child) => this.updateChild(child));
+ },
+ updateChild(child) {
+ const { value, disabled, direction } = this.data;
+ child.setData({
+ value: value.indexOf(child.data.name) !== -1,
+ parentDisabled: disabled,
+ direction,
+ });
+ },
},
- direction: {
- type: String,
- value: 'vertical',
- },
- },
- methods: {
- updateChildren() {
- this.children.forEach((child) => this.updateChild(child));
- },
- updateChild(child) {
- const { value, disabled, direction } = this.data;
- child.setData({
- value: value.indexOf(child.data.name) !== -1,
- parentDisabled: disabled,
- direction,
- });
- },
- },
});
diff --git a/dist/checkbox/index.js b/dist/checkbox/index.js
index 304be2cd..e3b78ab7 100644
--- a/dist/checkbox/index.js
+++ b/dist/checkbox/index.js
@@ -1,75 +1,77 @@
import { useParent } from '../common/relation';
import { VantComponent } from '../common/component';
function emit(target, value) {
- target.$emit('input', value);
- target.$emit('change', value);
+ target.$emit('input', value);
+ target.$emit('change', value);
}
VantComponent({
- field: true,
- relation: useParent('checkbox-group'),
- classes: ['icon-class', 'label-class'],
- props: {
- value: Boolean,
- disabled: Boolean,
- useIconSlot: Boolean,
- checkedColor: String,
- labelPosition: {
- type: String,
- value: 'right',
+ field: true,
+ relation: useParent('checkbox-group'),
+ classes: ['icon-class', 'label-class'],
+ props: {
+ value: Boolean,
+ disabled: Boolean,
+ useIconSlot: Boolean,
+ checkedColor: String,
+ labelPosition: {
+ type: String,
+ value: 'right',
+ },
+ labelDisabled: Boolean,
+ shape: {
+ type: String,
+ value: 'round',
+ },
+ iconSize: {
+ type: null,
+ value: 20,
+ },
},
- labelDisabled: Boolean,
- shape: {
- type: String,
- value: 'round',
+ data: {
+ parentDisabled: false,
+ direction: 'vertical',
},
- iconSize: {
- type: null,
- value: 20,
+ methods: {
+ emitChange(value) {
+ if (this.parent) {
+ this.setParentValue(this.parent, value);
+ }
+ else {
+ emit(this, value);
+ }
+ },
+ toggle() {
+ const { parentDisabled, disabled, value } = this.data;
+ if (!disabled && !parentDisabled) {
+ this.emitChange(!value);
+ }
+ },
+ onClickLabel() {
+ const { labelDisabled, parentDisabled, disabled, value } = this.data;
+ if (!disabled && !labelDisabled && !parentDisabled) {
+ this.emitChange(!value);
+ }
+ },
+ setParentValue(parent, value) {
+ const parentValue = parent.data.value.slice();
+ const { name } = this.data;
+ const { max } = parent.data;
+ if (value) {
+ if (max && parentValue.length >= max) {
+ return;
+ }
+ if (parentValue.indexOf(name) === -1) {
+ parentValue.push(name);
+ emit(parent, parentValue);
+ }
+ }
+ else {
+ const index = parentValue.indexOf(name);
+ if (index !== -1) {
+ parentValue.splice(index, 1);
+ emit(parent, parentValue);
+ }
+ }
+ },
},
- },
- data: {
- parentDisabled: false,
- direction: 'vertical',
- },
- methods: {
- emitChange(value) {
- if (this.parent) {
- this.setParentValue(this.parent, value);
- } else {
- emit(this, value);
- }
- },
- toggle() {
- const { parentDisabled, disabled, value } = this.data;
- if (!disabled && !parentDisabled) {
- this.emitChange(!value);
- }
- },
- onClickLabel() {
- const { labelDisabled, parentDisabled, disabled, value } = this.data;
- if (!disabled && !labelDisabled && !parentDisabled) {
- this.emitChange(!value);
- }
- },
- setParentValue(parent, value) {
- const parentValue = parent.data.value.slice();
- const { name } = this.data;
- const { max } = parent.data;
- if (value) {
- if (max && parentValue.length >= max) {
- return;
- }
- if (parentValue.indexOf(name) === -1) {
- parentValue.push(name);
- emit(parent, parentValue);
- }
- } else {
- const index = parentValue.indexOf(name);
- if (index !== -1) {
- parentValue.splice(index, 1);
- emit(parent, parentValue);
- }
- }
- },
- },
});
diff --git a/dist/circle/canvas.d.ts b/dist/circle/canvas.d.ts
index 6aa52dea..15268c9f 100644
--- a/dist/circle/canvas.d.ts
+++ b/dist/circle/canvas.d.ts
@@ -1,6 +1,4 @@
///
declare type CanvasContext = WechatMiniprogram.CanvasContext;
-export declare function adaptor(
- ctx: CanvasContext & Record
-): CanvasContext;
+export declare function adaptor(ctx: CanvasContext & Record): CanvasContext;
export {};
diff --git a/dist/circle/canvas.js b/dist/circle/canvas.js
index c311335e..3ade4cdb 100644
--- a/dist/circle/canvas.js
+++ b/dist/circle/canvas.js
@@ -1,43 +1,43 @@
export function adaptor(ctx) {
- // @ts-ignore
- return Object.assign(ctx, {
- setStrokeStyle(val) {
- ctx.strokeStyle = val;
- },
- setLineWidth(val) {
- ctx.lineWidth = val;
- },
- setLineCap(val) {
- ctx.lineCap = val;
- },
- setFillStyle(val) {
- ctx.fillStyle = val;
- },
- setFontSize(val) {
- ctx.font = String(val);
- },
- setGlobalAlpha(val) {
- ctx.globalAlpha = val;
- },
- setLineJoin(val) {
- ctx.lineJoin = val;
- },
- setTextAlign(val) {
- ctx.textAlign = val;
- },
- setMiterLimit(val) {
- ctx.miterLimit = val;
- },
- setShadow(offsetX, offsetY, blur, color) {
- ctx.shadowOffsetX = offsetX;
- ctx.shadowOffsetY = offsetY;
- ctx.shadowBlur = blur;
- ctx.shadowColor = color;
- },
- setTextBaseline(val) {
- ctx.textBaseline = val;
- },
- createCircularGradient() {},
- draw() {},
- });
+ // @ts-ignore
+ return Object.assign(ctx, {
+ setStrokeStyle(val) {
+ ctx.strokeStyle = val;
+ },
+ setLineWidth(val) {
+ ctx.lineWidth = val;
+ },
+ setLineCap(val) {
+ ctx.lineCap = val;
+ },
+ setFillStyle(val) {
+ ctx.fillStyle = val;
+ },
+ setFontSize(val) {
+ ctx.font = String(val);
+ },
+ setGlobalAlpha(val) {
+ ctx.globalAlpha = val;
+ },
+ setLineJoin(val) {
+ ctx.lineJoin = val;
+ },
+ setTextAlign(val) {
+ ctx.textAlign = val;
+ },
+ setMiterLimit(val) {
+ ctx.miterLimit = val;
+ },
+ setShadow(offsetX, offsetY, blur, color) {
+ ctx.shadowOffsetX = offsetX;
+ ctx.shadowOffsetY = offsetY;
+ ctx.shadowBlur = blur;
+ ctx.shadowColor = color;
+ },
+ setTextBaseline(val) {
+ ctx.textBaseline = val;
+ },
+ createCircularGradient() { },
+ draw() { },
+ });
}
diff --git a/dist/circle/index.js b/dist/circle/index.js
index d42da08e..2a4baf59 100644
--- a/dist/circle/index.js
+++ b/dist/circle/index.js
@@ -5,188 +5,189 @@ import { isObj } from '../common/validator';
import { canIUseCanvas2d } from '../common/version';
import { adaptor } from './canvas';
function format(rate) {
- return Math.min(Math.max(rate, 0), 100);
+ return Math.min(Math.max(rate, 0), 100);
}
const PERIMETER = 2 * Math.PI;
const BEGIN_ANGLE = -Math.PI / 2;
const STEP = 1;
VantComponent({
- props: {
- text: String,
- lineCap: {
- type: String,
- value: 'round',
+ props: {
+ text: String,
+ lineCap: {
+ type: String,
+ value: 'round',
+ },
+ value: {
+ type: Number,
+ value: 0,
+ observer: 'reRender',
+ },
+ speed: {
+ type: Number,
+ value: 50,
+ },
+ size: {
+ type: Number,
+ value: 100,
+ observer() {
+ this.drawCircle(this.currentValue);
+ },
+ },
+ fill: String,
+ layerColor: {
+ type: String,
+ value: WHITE,
+ },
+ color: {
+ type: null,
+ value: BLUE,
+ observer() {
+ this.setHoverColor().then(() => {
+ this.drawCircle(this.currentValue);
+ });
+ },
+ },
+ type: {
+ type: String,
+ value: '',
+ },
+ strokeWidth: {
+ type: Number,
+ value: 4,
+ },
+ clockwise: {
+ type: Boolean,
+ value: true,
+ },
},
- value: {
- type: Number,
- value: 0,
- observer: 'reRender',
+ data: {
+ hoverColor: BLUE,
},
- speed: {
- type: Number,
- value: 50,
- },
- size: {
- type: Number,
- value: 100,
- observer() {
- this.drawCircle(this.currentValue);
- },
- },
- fill: String,
- layerColor: {
- type: String,
- value: WHITE,
- },
- color: {
- type: null,
- value: BLUE,
- observer() {
- this.setHoverColor().then(() => {
- this.drawCircle(this.currentValue);
- });
- },
- },
- type: {
- type: String,
- value: '',
- },
- strokeWidth: {
- type: Number,
- value: 4,
- },
- clockwise: {
- type: Boolean,
- value: true,
- },
- },
- data: {
- hoverColor: BLUE,
- },
- methods: {
- getContext() {
- const { type, size } = this.data;
- if (type === '' || !canIUseCanvas2d()) {
- const ctx = wx.createCanvasContext('van-circle', this);
- return Promise.resolve(ctx);
- }
- const dpr = getSystemInfoSync().pixelRatio;
- return new Promise((resolve) => {
- wx.createSelectorQuery()
- .in(this)
- .select('#van-circle')
- .node()
- .exec((res) => {
- const canvas = res[0].node;
- const ctx = canvas.getContext(type);
- if (!this.inited) {
- this.inited = true;
- canvas.width = size * dpr;
- canvas.height = size * dpr;
- ctx.scale(dpr, dpr);
+ methods: {
+ getContext() {
+ const { type, size } = this.data;
+ if (type === '' || !canIUseCanvas2d()) {
+ const ctx = wx.createCanvasContext('van-circle', this);
+ return Promise.resolve(ctx);
}
- resolve(adaptor(ctx));
- });
- });
- },
- setHoverColor() {
- const { color, size } = this.data;
- if (isObj(color)) {
- return this.getContext().then((context) => {
- const LinearColor = context.createLinearGradient(size, 0, 0, 0);
- Object.keys(color)
- .sort((a, b) => parseFloat(a) - parseFloat(b))
- .map((key) =>
- LinearColor.addColorStop(parseFloat(key) / 100, color[key])
- );
- this.hoverColor = LinearColor;
- });
- }
- this.hoverColor = color;
- return Promise.resolve();
- },
- presetCanvas(context, strokeStyle, beginAngle, endAngle, fill) {
- const { strokeWidth, lineCap, clockwise, size } = this.data;
- const position = size / 2;
- const radius = position - strokeWidth / 2;
- context.setStrokeStyle(strokeStyle);
- context.setLineWidth(strokeWidth);
- context.setLineCap(lineCap);
- context.beginPath();
- context.arc(position, position, radius, beginAngle, endAngle, !clockwise);
- context.stroke();
- if (fill) {
- context.setFillStyle(fill);
- context.fill();
- }
- },
- renderLayerCircle(context) {
- const { layerColor, fill } = this.data;
- this.presetCanvas(context, layerColor, 0, PERIMETER, fill);
- },
- renderHoverCircle(context, formatValue) {
- const { clockwise } = this.data;
- // 结束角度
- const progress = PERIMETER * (formatValue / 100);
- const endAngle = clockwise
- ? BEGIN_ANGLE + progress
- : 3 * Math.PI - (BEGIN_ANGLE + progress);
- this.presetCanvas(context, this.hoverColor, BEGIN_ANGLE, endAngle);
- },
- drawCircle(currentValue) {
- const { size } = this.data;
- this.getContext().then((context) => {
- context.clearRect(0, 0, size, size);
- this.renderLayerCircle(context);
- const formatValue = format(currentValue);
- if (formatValue !== 0) {
- this.renderHoverCircle(context, formatValue);
- }
- context.draw();
- });
- },
- reRender() {
- // tofector 动画暂时没有想到好的解决方案
- const { value, speed } = this.data;
- if (speed <= 0 || speed > 1000) {
- this.drawCircle(value);
- return;
- }
- this.clearMockInterval();
- this.currentValue = this.currentValue || 0;
- const run = () => {
- this.interval = setTimeout(() => {
- if (this.currentValue !== value) {
- if (Math.abs(this.currentValue - value) < STEP) {
- this.currentValue = value;
- } else if (this.currentValue < value) {
- this.currentValue += STEP;
- } else {
- this.currentValue -= STEP;
+ const dpr = getSystemInfoSync().pixelRatio;
+ return new Promise((resolve) => {
+ wx.createSelectorQuery()
+ .in(this)
+ .select('#van-circle')
+ .node()
+ .exec((res) => {
+ const canvas = res[0].node;
+ const ctx = canvas.getContext(type);
+ if (!this.inited) {
+ this.inited = true;
+ canvas.width = size * dpr;
+ canvas.height = size * dpr;
+ ctx.scale(dpr, dpr);
+ }
+ resolve(adaptor(ctx));
+ });
+ });
+ },
+ setHoverColor() {
+ const { color, size } = this.data;
+ if (isObj(color)) {
+ return this.getContext().then((context) => {
+ const LinearColor = context.createLinearGradient(size, 0, 0, 0);
+ Object.keys(color)
+ .sort((a, b) => parseFloat(a) - parseFloat(b))
+ .map((key) => LinearColor.addColorStop(parseFloat(key) / 100, color[key]));
+ this.hoverColor = LinearColor;
+ });
+ }
+ this.hoverColor = color;
+ return Promise.resolve();
+ },
+ presetCanvas(context, strokeStyle, beginAngle, endAngle, fill) {
+ const { strokeWidth, lineCap, clockwise, size } = this.data;
+ const position = size / 2;
+ const radius = position - strokeWidth / 2;
+ context.setStrokeStyle(strokeStyle);
+ context.setLineWidth(strokeWidth);
+ context.setLineCap(lineCap);
+ context.beginPath();
+ context.arc(position, position, radius, beginAngle, endAngle, !clockwise);
+ context.stroke();
+ if (fill) {
+ context.setFillStyle(fill);
+ context.fill();
+ }
+ },
+ renderLayerCircle(context) {
+ const { layerColor, fill } = this.data;
+ this.presetCanvas(context, layerColor, 0, PERIMETER, fill);
+ },
+ renderHoverCircle(context, formatValue) {
+ const { clockwise } = this.data;
+ // 结束角度
+ const progress = PERIMETER * (formatValue / 100);
+ const endAngle = clockwise
+ ? BEGIN_ANGLE + progress
+ : 3 * Math.PI - (BEGIN_ANGLE + progress);
+ this.presetCanvas(context, this.hoverColor, BEGIN_ANGLE, endAngle);
+ },
+ drawCircle(currentValue) {
+ const { size } = this.data;
+ this.getContext().then((context) => {
+ context.clearRect(0, 0, size, size);
+ this.renderLayerCircle(context);
+ const formatValue = format(currentValue);
+ if (formatValue !== 0) {
+ this.renderHoverCircle(context, formatValue);
+ }
+ context.draw();
+ });
+ },
+ reRender() {
+ // tofector 动画暂时没有想到好的解决方案
+ const { value, speed } = this.data;
+ if (speed <= 0 || speed > 1000) {
+ this.drawCircle(value);
+ return;
}
- this.drawCircle(this.currentValue);
- run();
- } else {
this.clearMockInterval();
- }
- }, 1000 / speed);
- };
- run();
+ this.currentValue = this.currentValue || 0;
+ const run = () => {
+ this.interval = setTimeout(() => {
+ if (this.currentValue !== value) {
+ if (Math.abs(this.currentValue - value) < STEP) {
+ this.currentValue = value;
+ }
+ else if (this.currentValue < value) {
+ this.currentValue += STEP;
+ }
+ else {
+ this.currentValue -= STEP;
+ }
+ this.drawCircle(this.currentValue);
+ run();
+ }
+ else {
+ this.clearMockInterval();
+ }
+ }, 1000 / speed);
+ };
+ run();
+ },
+ clearMockInterval() {
+ if (this.interval) {
+ clearTimeout(this.interval);
+ this.interval = null;
+ }
+ },
},
- clearMockInterval() {
- if (this.interval) {
- clearTimeout(this.interval);
- this.interval = null;
- }
+ mounted() {
+ this.currentValue = this.data.value;
+ this.setHoverColor().then(() => {
+ this.drawCircle(this.currentValue);
+ });
+ },
+ destroyed() {
+ this.clearMockInterval();
},
- },
- mounted() {
- this.currentValue = this.data.value;
- this.setHoverColor().then(() => {
- this.drawCircle(this.currentValue);
- });
- },
- destroyed() {
- this.clearMockInterval();
- },
});
diff --git a/dist/col/index.js b/dist/col/index.js
index 20f326fb..02bb78d1 100644
--- a/dist/col/index.js
+++ b/dist/col/index.js
@@ -1,9 +1,9 @@
import { useParent } from '../common/relation';
import { VantComponent } from '../common/component';
VantComponent({
- relation: useParent('row'),
- props: {
- span: Number,
- offset: Number,
- },
+ relation: useParent('row'),
+ props: {
+ span: Number,
+ offset: Number,
+ },
});
diff --git a/dist/collapse-item/animate.d.ts b/dist/collapse-item/animate.d.ts
index 0c33c005..32157b62 100644
--- a/dist/collapse-item/animate.d.ts
+++ b/dist/collapse-item/animate.d.ts
@@ -1,6 +1,2 @@
///
-export declare function setContentAnimate(
- context: WechatMiniprogram.Component.TrivialInstance,
- expanded: boolean,
- mounted: boolean
-): void;
+export declare function setContentAnimate(context: WechatMiniprogram.Component.TrivialInstance, expanded: boolean, mounted: boolean): void;
diff --git a/dist/collapse-item/animate.js b/dist/collapse-item/animate.js
index 7ce1dae0..9f672dba 100644
--- a/dist/collapse-item/animate.js
+++ b/dist/collapse-item/animate.js
@@ -1,70 +1,61 @@
import { canIUseAnimate } from '../common/version';
import { getRect } from '../common/utils';
function useAnimate(context, expanded, mounted, height) {
- const selector = '.van-collapse-item__wrapper';
- if (expanded) {
- context.animate(
- selector,
- [
- { height: 0, ease: 'ease-in-out', offset: 0 },
- { height: `${height}px`, ease: 'ease-in-out', offset: 1 },
- { height: `auto`, ease: 'ease-in-out', offset: 1 },
- ],
- mounted ? 300 : 0,
- () => {
- context.clearAnimation(selector);
- }
- );
- return;
- }
- context.animate(
- selector,
- [
- { height: `${height}px`, ease: 'ease-in-out', offset: 0 },
- { height: 0, ease: 'ease-in-out', offset: 1 },
- ],
- 300,
- () => {
- context.clearAnimation(selector);
+ const selector = '.van-collapse-item__wrapper';
+ if (expanded) {
+ context.animate(selector, [
+ { height: 0, ease: 'ease-in-out', offset: 0 },
+ { height: `${height}px`, ease: 'ease-in-out', offset: 1 },
+ { height: `auto`, ease: 'ease-in-out', offset: 1 },
+ ], mounted ? 300 : 0, () => {
+ context.clearAnimation(selector);
+ });
+ return;
}
- );
+ context.animate(selector, [
+ { height: `${height}px`, ease: 'ease-in-out', offset: 0 },
+ { height: 0, ease: 'ease-in-out', offset: 1 },
+ ], 300, () => {
+ context.clearAnimation(selector);
+ });
}
function useAnimation(context, expanded, mounted, height) {
- const animation = wx.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(),
+ const animation = wx.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(),
});
- return;
- }
- animation.height(height).top(0).step({ duration: 1 }).height(0).step({
- duration: 300,
- });
- context.setData({
- animation: animation.export(),
- });
}
export function setContentAnimate(context, expanded, mounted) {
- getRect(context, '.van-collapse-item__content')
- .then((rect) => rect.height)
- .then((height) => {
- canIUseAnimate()
- ? useAnimate(context, expanded, mounted, height)
- : useAnimation(context, expanded, mounted, height);
+ getRect(context, '.van-collapse-item__content')
+ .then((rect) => rect.height)
+ .then((height) => {
+ canIUseAnimate()
+ ? useAnimate(context, expanded, mounted, height)
+ : useAnimation(context, expanded, mounted, height);
});
}
diff --git a/dist/collapse-item/index.js b/dist/collapse-item/index.js
index c44c27e1..991d7dfc 100644
--- a/dist/collapse-item/index.js
+++ b/dist/collapse-item/index.js
@@ -2,58 +2,58 @@ import { VantComponent } from '../common/component';
import { useParent } from '../common/relation';
import { setContentAnimate } from './animate';
VantComponent({
- classes: ['title-class', 'content-class'],
- relation: useParent('collapse'),
- props: {
- name: null,
- title: null,
- value: null,
- icon: String,
- label: String,
- disabled: Boolean,
- clickable: Boolean,
- border: {
- type: Boolean,
- value: true,
+ classes: ['title-class', 'content-class'],
+ relation: useParent('collapse'),
+ props: {
+ name: null,
+ title: null,
+ value: null,
+ icon: String,
+ label: String,
+ disabled: Boolean,
+ clickable: Boolean,
+ border: {
+ type: Boolean,
+ value: true,
+ },
+ isLink: {
+ type: Boolean,
+ value: true,
+ },
},
- isLink: {
- type: Boolean,
- value: true,
+ data: {
+ expanded: false,
},
- },
- data: {
- expanded: false,
- },
- mounted() {
- this.updateExpanded();
- this.mounted = true;
- },
- methods: {
- updateExpanded() {
- if (!this.parent) {
- return;
- }
- const { value, accordion } = this.parent.data;
- const { children = [] } = this.parent;
- const { name } = this.data;
- const index = children.indexOf(this);
- const currentName = name == null ? index : name;
- const expanded = accordion
- ? value === currentName
- : (value || []).some((name) => name === currentName);
- if (expanded !== this.data.expanded) {
- setContentAnimate(this, expanded, this.mounted);
- }
- this.setData({ index, expanded });
+ mounted() {
+ this.updateExpanded();
+ this.mounted = true;
},
- onClick() {
- if (this.data.disabled) {
- return;
- }
- const { name, expanded } = this.data;
- const index = this.parent.children.indexOf(this);
- const currentName = name == null ? index : name;
- this.parent.switch(currentName, !expanded);
+ methods: {
+ updateExpanded() {
+ if (!this.parent) {
+ return;
+ }
+ const { value, accordion } = this.parent.data;
+ const { children = [] } = this.parent;
+ const { name } = this.data;
+ const index = children.indexOf(this);
+ const currentName = name == null ? index : name;
+ const expanded = accordion
+ ? value === currentName
+ : (value || []).some((name) => name === currentName);
+ if (expanded !== this.data.expanded) {
+ setContentAnimate(this, expanded, this.mounted);
+ }
+ this.setData({ index, expanded });
+ },
+ onClick() {
+ if (this.data.disabled) {
+ return;
+ }
+ const { name, expanded } = this.data;
+ const index = this.parent.children.indexOf(this);
+ const currentName = name == null ? index : name;
+ this.parent.switch(currentName, !expanded);
+ },
},
- },
});
diff --git a/dist/collapse/index.js b/dist/collapse/index.js
index 60e4611a..3616087f 100644
--- a/dist/collapse/index.js
+++ b/dist/collapse/index.js
@@ -1,44 +1,46 @@
import { VantComponent } from '../common/component';
import { useChildren } from '../common/relation';
VantComponent({
- relation: useChildren('collapse-item'),
- props: {
- value: {
- type: null,
- observer: 'updateExpanded',
+ relation: useChildren('collapse-item'),
+ props: {
+ value: {
+ type: null,
+ observer: 'updateExpanded',
+ },
+ accordion: {
+ type: Boolean,
+ observer: 'updateExpanded',
+ },
+ border: {
+ type: Boolean,
+ value: true,
+ },
},
- accordion: {
- type: Boolean,
- observer: 'updateExpanded',
+ methods: {
+ updateExpanded() {
+ this.children.forEach((child) => {
+ child.updateExpanded();
+ });
+ },
+ switch(name, expanded) {
+ const { accordion, value } = this.data;
+ const changeItem = name;
+ if (!accordion) {
+ name = expanded
+ ? (value || []).concat(name)
+ : (value || []).filter((activeName) => activeName !== name);
+ }
+ else {
+ name = expanded ? name : '';
+ }
+ if (expanded) {
+ this.$emit('open', changeItem);
+ }
+ else {
+ this.$emit('close', changeItem);
+ }
+ this.$emit('change', name);
+ this.$emit('input', name);
+ },
},
- border: {
- type: Boolean,
- value: true,
- },
- },
- methods: {
- updateExpanded() {
- this.children.forEach((child) => {
- child.updateExpanded();
- });
- },
- switch(name, expanded) {
- const { accordion, value } = this.data;
- const changeItem = name;
- if (!accordion) {
- name = expanded
- ? (value || []).concat(name)
- : (value || []).filter((activeName) => activeName !== name);
- } else {
- name = expanded ? name : '';
- }
- if (expanded) {
- this.$emit('open', changeItem);
- } else {
- this.$emit('close', changeItem);
- }
- this.$emit('change', name);
- this.$emit('input', name);
- },
- },
});
diff --git a/dist/common/component.d.ts b/dist/common/component.d.ts
index 6b0a9582..acdd7f0e 100644
--- a/dist/common/component.d.ts
+++ b/dist/common/component.d.ts
@@ -1,8 +1,4 @@
///
import { VantComponentOptions } from '../definitions/index';
-declare function VantComponent<
- Data extends WechatMiniprogram.Component.DataOption,
- Props extends WechatMiniprogram.Component.PropertyOption,
- Methods extends WechatMiniprogram.Component.MethodOption
->(vantOptions: VantComponentOptions): void;
+declare function VantComponent(vantOptions: VantComponentOptions): void;
export { VantComponent };
diff --git a/dist/common/component.js b/dist/common/component.js
index 5530c6f0..8528dc0f 100644
--- a/dist/common/component.js
+++ b/dist/common/component.js
@@ -1,45 +1,45 @@
import { basic } from '../mixins/basic';
function mapKeys(source, target, map) {
- Object.keys(map).forEach((key) => {
- if (source[key]) {
- target[map[key]] = source[key];
- }
- });
+ Object.keys(map).forEach((key) => {
+ if (source[key]) {
+ target[map[key]] = source[key];
+ }
+ });
}
function VantComponent(vantOptions) {
- const options = {};
- mapKeys(vantOptions, options, {
- data: 'data',
- props: 'properties',
- mixins: 'behaviors',
- methods: 'methods',
- beforeCreate: 'created',
- created: 'attached',
- mounted: 'ready',
- destroyed: 'detached',
- classes: 'externalClasses',
- });
- // add default externalClasses
- options.externalClasses = options.externalClasses || [];
- options.externalClasses.push('custom-class');
- // add default behaviors
- options.behaviors = options.behaviors || [];
- options.behaviors.push(basic);
- // add relations
- const { relation } = vantOptions;
- if (relation) {
- options.relations = relation.relations;
- options.behaviors.push(relation.mixin);
- }
- // map field to form-field behavior
- if (vantOptions.field) {
- options.behaviors.push('wx://form-field');
- }
- // add default options
- options.options = {
- multipleSlots: true,
- addGlobalClass: true,
- };
- Component(options);
+ const options = {};
+ mapKeys(vantOptions, options, {
+ data: 'data',
+ props: 'properties',
+ mixins: 'behaviors',
+ methods: 'methods',
+ beforeCreate: 'created',
+ created: 'attached',
+ mounted: 'ready',
+ destroyed: 'detached',
+ classes: 'externalClasses',
+ });
+ // add default externalClasses
+ options.externalClasses = options.externalClasses || [];
+ options.externalClasses.push('custom-class');
+ // add default behaviors
+ options.behaviors = options.behaviors || [];
+ options.behaviors.push(basic);
+ // add relations
+ const { relation } = vantOptions;
+ if (relation) {
+ options.relations = relation.relations;
+ options.behaviors.push(relation.mixin);
+ }
+ // map field to form-field behavior
+ if (vantOptions.field) {
+ options.behaviors.push('wx://form-field');
+ }
+ // add default options
+ options.options = {
+ multipleSlots: true,
+ addGlobalClass: true,
+ };
+ Component(options);
}
export { VantComponent };
diff --git a/dist/common/relation.d.ts b/dist/common/relation.d.ts
index be5f2eea..4b5af008 100644
--- a/dist/common/relation.d.ts
+++ b/dist/common/relation.d.ts
@@ -1,21 +1,15 @@
///
declare type TrivialInstance = WechatMiniprogram.Component.TrivialInstance;
-export declare function useParent(
- name: string,
- onEffect?: (this: TrivialInstance) => void
-): {
- relations: {
- [x: string]: WechatMiniprogram.Component.RelationOption;
- };
- mixin: string;
+export declare function useParent(name: string, onEffect?: (this: TrivialInstance) => void): {
+ relations: {
+ [x: string]: WechatMiniprogram.Component.RelationOption;
+ };
+ mixin: string;
};
-export declare function useChildren(
- name: string,
- onEffect?: (this: TrivialInstance, target: TrivialInstance) => void
-): {
- relations: {
- [x: string]: WechatMiniprogram.Component.RelationOption;
- };
- mixin: string;
+export declare function useChildren(name: string, onEffect?: (this: TrivialInstance, target: TrivialInstance) => void): {
+ relations: {
+ [x: string]: WechatMiniprogram.Component.RelationOption;
+ };
+ mixin: string;
};
export {};
diff --git a/dist/common/relation.js b/dist/common/relation.js
index 99c1a493..04e29340 100644
--- a/dist/common/relation.js
+++ b/dist/common/relation.js
@@ -1,64 +1,56 @@
export function useParent(name, onEffect) {
- const path = `../${name}/index`;
- return {
- relations: {
- [path]: {
- type: 'ancestor',
- linked() {
- onEffect && onEffect.call(this);
+ const path = `../${name}/index`;
+ return {
+ relations: {
+ [path]: {
+ type: 'ancestor',
+ linked() {
+ onEffect && onEffect.call(this);
+ },
+ linkChanged() {
+ onEffect && onEffect.call(this);
+ },
+ unlinked() {
+ onEffect && onEffect.call(this);
+ },
+ },
},
- linkChanged() {
- onEffect && onEffect.call(this);
- },
- unlinked() {
- onEffect && onEffect.call(this);
- },
- },
- },
- mixin: Behavior({
- created() {
- Object.defineProperty(this, 'parent', {
- get: () => this.getRelationNodes(path)[0],
- });
- Object.defineProperty(this, 'index', {
- // @ts-ignore
- get: () => {
- var _a, _b;
- return (_b =
- (_a = this.parent) === null || _a === void 0
- ? void 0
- : _a.children) === null || _b === void 0
- ? void 0
- : _b.indexOf(this);
- },
- });
- },
- }),
- };
+ mixin: Behavior({
+ created() {
+ Object.defineProperty(this, 'parent', {
+ get: () => this.getRelationNodes(path)[0],
+ });
+ Object.defineProperty(this, 'index', {
+ // @ts-ignore
+ get: () => { var _a, _b; return (_b = (_a = this.parent) === null || _a === void 0 ? void 0 : _a.children) === null || _b === void 0 ? void 0 : _b.indexOf(this); },
+ });
+ },
+ }),
+ };
}
export function useChildren(name, onEffect) {
- const path = `../${name}/index`;
- return {
- relations: {
- [path]: {
- type: 'descendant',
- linked(target) {
- onEffect && onEffect.call(this, target);
+ const path = `../${name}/index`;
+ return {
+ relations: {
+ [path]: {
+ type: 'descendant',
+ linked(target) {
+ onEffect && onEffect.call(this, target);
+ },
+ linkChanged(target) {
+ onEffect && onEffect.call(this, target);
+ },
+ unlinked(target) {
+ onEffect && onEffect.call(this, target);
+ },
+ },
},
- linkChanged(target) {
- onEffect && onEffect.call(this, target);
- },
- unlinked(target) {
- onEffect && onEffect.call(this, target);
- },
- },
- },
- mixin: Behavior({
- created() {
- Object.defineProperty(this, 'children', {
- get: () => this.getRelationNodes(path) || [],
- });
- },
- }),
- };
+ mixin: Behavior({
+ created() {
+ Object.defineProperty(this, 'children', {
+ get: () => this.getRelationNodes(path) || [],
+ });
+ },
+ }),
+ };
}
diff --git a/dist/common/utils.d.ts b/dist/common/utils.d.ts
index 59dbbfba..5332a68a 100644
--- a/dist/common/utils.d.ts
+++ b/dist/common/utils.d.ts
@@ -4,28 +4,10 @@ export declare function range(num: number, min: number, max: number): number;
export declare function nextTick(cb: (...args: any[]) => void): void;
export declare function getSystemInfoSync(): WechatMiniprogram.SystemInfo;
export declare function addUnit(value?: string | number): string | undefined;
-export declare function requestAnimationFrame(
- cb: () => void
-): number | WechatMiniprogram.NodesRef;
+export declare function requestAnimationFrame(cb: () => void): number | WechatMiniprogram.NodesRef;
export declare function pickExclude(obj: unknown, keys: string[]): {};
-export declare function getRect(
- context: WechatMiniprogram.Component.TrivialInstance,
- selector: string
-): Promise;
-export declare function getAllRect(
- context: WechatMiniprogram.Component.TrivialInstance,
- selector: string
-): Promise;
-export declare function groupSetData(
- context: WechatMiniprogram.Component.TrivialInstance,
- cb: () => void
-): void;
-export declare function toPromise(
- promiseLike: Promise | unknown
-): Promise;
-export declare function getCurrentPage(): T &
- WechatMiniprogram.OptionalInterface &
- WechatMiniprogram.Page.InstanceProperties &
- WechatMiniprogram.Page.InstanceMethods &
- WechatMiniprogram.Page.Data &
- WechatMiniprogram.IAnyObject;
+export declare function getRect(context: WechatMiniprogram.Component.TrivialInstance, selector: string): Promise;
+export declare function getAllRect(context: WechatMiniprogram.Component.TrivialInstance, selector: string): Promise;
+export declare function groupSetData(context: WechatMiniprogram.Component.TrivialInstance, cb: () => void): void;
+export declare function toPromise(promiseLike: Promise | unknown): Promise;
+export declare function getCurrentPage(): T & WechatMiniprogram.OptionalInterface & WechatMiniprogram.Page.InstanceProperties & WechatMiniprogram.Page.InstanceMethods & WechatMiniprogram.Page.Data & WechatMiniprogram.IAnyObject;
diff --git a/dist/common/utils.js b/dist/common/utils.js
index 15555dd6..d06acb14 100644
--- a/dist/common/utils.js
+++ b/dist/common/utils.js
@@ -2,89 +2,91 @@ import { isDef, isNumber, isPlainObject, isPromise } from './validator';
import { canIUseGroupSetData, canIUseNextTick } from './version';
export { isDef } from './validator';
export function range(num, min, max) {
- return Math.min(Math.max(num, min), max);
+ return Math.min(Math.max(num, min), max);
}
export function nextTick(cb) {
- if (canIUseNextTick()) {
- wx.nextTick(cb);
- } else {
- setTimeout(() => {
- cb();
- }, 1000 / 30);
- }
+ if (canIUseNextTick()) {
+ wx.nextTick(cb);
+ }
+ else {
+ setTimeout(() => {
+ cb();
+ }, 1000 / 30);
+ }
}
let systemInfo;
export function getSystemInfoSync() {
- if (systemInfo == null) {
- systemInfo = wx.getSystemInfoSync();
- }
- return systemInfo;
+ if (systemInfo == null) {
+ systemInfo = wx.getSystemInfoSync();
+ }
+ return systemInfo;
}
export function addUnit(value) {
- if (!isDef(value)) {
- return undefined;
- }
- value = String(value);
- return isNumber(value) ? `${value}px` : value;
+ if (!isDef(value)) {
+ return undefined;
+ }
+ value = String(value);
+ return isNumber(value) ? `${value}px` : value;
}
export function requestAnimationFrame(cb) {
- const systemInfo = getSystemInfoSync();
- if (systemInfo.platform === 'devtools') {
- return setTimeout(() => {
- cb();
- }, 1000 / 30);
- }
- return wx
- .createSelectorQuery()
- .selectViewport()
- .boundingClientRect()
- .exec(() => {
- cb();
+ const systemInfo = getSystemInfoSync();
+ if (systemInfo.platform === 'devtools') {
+ return setTimeout(() => {
+ cb();
+ }, 1000 / 30);
+ }
+ return wx
+ .createSelectorQuery()
+ .selectViewport()
+ .boundingClientRect()
+ .exec(() => {
+ cb();
});
}
export function pickExclude(obj, keys) {
- if (!isPlainObject(obj)) {
- return {};
- }
- return Object.keys(obj).reduce((prev, key) => {
- if (!keys.includes(key)) {
- prev[key] = obj[key];
+ if (!isPlainObject(obj)) {
+ return {};
}
- return prev;
- }, {});
+ return Object.keys(obj).reduce((prev, key) => {
+ if (!keys.includes(key)) {
+ prev[key] = obj[key];
+ }
+ return prev;
+ }, {});
}
export function getRect(context, selector) {
- return new Promise((resolve) => {
- wx.createSelectorQuery()
- .in(context)
- .select(selector)
- .boundingClientRect()
- .exec((rect = []) => resolve(rect[0]));
- });
+ return new Promise((resolve) => {
+ wx.createSelectorQuery()
+ .in(context)
+ .select(selector)
+ .boundingClientRect()
+ .exec((rect = []) => resolve(rect[0]));
+ });
}
export function getAllRect(context, selector) {
- return new Promise((resolve) => {
- wx.createSelectorQuery()
- .in(context)
- .selectAll(selector)
- .boundingClientRect()
- .exec((rect = []) => resolve(rect[0]));
- });
+ return new Promise((resolve) => {
+ wx.createSelectorQuery()
+ .in(context)
+ .selectAll(selector)
+ .boundingClientRect()
+ .exec((rect = []) => resolve(rect[0]));
+ });
}
export function groupSetData(context, cb) {
- if (canIUseGroupSetData()) {
- context.groupSetData(cb);
- } else {
- cb();
- }
+ if (canIUseGroupSetData()) {
+ context.groupSetData(cb);
+ }
+ else {
+ cb();
+ }
}
export function toPromise(promiseLike) {
- if (isPromise(promiseLike)) {
- return promiseLike;
- }
- return Promise.resolve(promiseLike);
+ if (isPromise(promiseLike)) {
+ return promiseLike;
+ }
+ return Promise.resolve(promiseLike);
}
export function getCurrentPage() {
- const pages = getCurrentPages();
- return pages[pages.length - 1];
+ const pages = getCurrentPages();
+ return pages[pages.length - 1];
}
diff --git a/dist/common/validator.d.ts b/dist/common/validator.d.ts
index ae7c48f1..152894ae 100644
--- a/dist/common/validator.d.ts
+++ b/dist/common/validator.d.ts
@@ -1,7 +1,5 @@
export declare function isFunction(val: unknown): val is Function;
-export declare function isPlainObject(
- val: unknown
-): val is Record;
+export declare function isPlainObject(val: unknown): val is Record;
export declare function isPromise(val: unknown): val is Promise;
export declare function isDef(value: unknown): boolean;
export declare function isObj(x: unknown): x is Record;
diff --git a/dist/common/validator.js b/dist/common/validator.js
index a6d416cd..f11f844b 100644
--- a/dist/common/validator.js
+++ b/dist/common/validator.js
@@ -1,31 +1,31 @@
// eslint-disable-next-line @typescript-eslint/ban-types
export function isFunction(val) {
- return typeof val === 'function';
+ return typeof val === 'function';
}
export function isPlainObject(val) {
- return val !== null && typeof val === 'object' && !Array.isArray(val);
+ return val !== null && typeof val === 'object' && !Array.isArray(val);
}
export function isPromise(val) {
- return isPlainObject(val) && isFunction(val.then) && isFunction(val.catch);
+ return isPlainObject(val) && isFunction(val.then) && isFunction(val.catch);
}
export function isDef(value) {
- return value !== undefined && value !== null;
+ return value !== undefined && value !== null;
}
export function isObj(x) {
- const type = typeof x;
- return x !== null && (type === 'object' || type === 'function');
+ const type = typeof x;
+ return x !== null && (type === 'object' || type === 'function');
}
export function isNumber(value) {
- return /^\d+(\.\d+)?$/.test(value);
+ return /^\d+(\.\d+)?$/.test(value);
}
export function isBoolean(value) {
- return typeof value === 'boolean';
+ return typeof value === 'boolean';
}
const IMAGE_REGEXP = /\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;
const VIDEO_REGEXP = /\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv)/i;
export function isImageUrl(url) {
- return IMAGE_REGEXP.test(url);
+ return IMAGE_REGEXP.test(url);
}
export function isVideoUrl(url) {
- return VIDEO_REGEXP.test(url);
+ return VIDEO_REGEXP.test(url);
}
diff --git a/dist/common/version.js b/dist/common/version.js
index 6444d7bf..eb851856 100644
--- a/dist/common/version.js
+++ b/dist/common/version.js
@@ -1,48 +1,48 @@
import { getSystemInfoSync } from './utils';
function compareVersion(v1, v2) {
- v1 = v1.split('.');
- v2 = v2.split('.');
- const len = Math.max(v1.length, v2.length);
- while (v1.length < len) {
- v1.push('0');
- }
- while (v2.length < len) {
- v2.push('0');
- }
- for (let i = 0; i < len; i++) {
- const num1 = parseInt(v1[i], 10);
- const num2 = parseInt(v2[i], 10);
- if (num1 > num2) {
- return 1;
+ v1 = v1.split('.');
+ v2 = v2.split('.');
+ const len = Math.max(v1.length, v2.length);
+ while (v1.length < len) {
+ v1.push('0');
}
- if (num1 < num2) {
- return -1;
+ while (v2.length < len) {
+ v2.push('0');
}
- }
- return 0;
+ for (let i = 0; i < len; i++) {
+ const num1 = parseInt(v1[i], 10);
+ const num2 = parseInt(v2[i], 10);
+ if (num1 > num2) {
+ return 1;
+ }
+ if (num1 < num2) {
+ return -1;
+ }
+ }
+ return 0;
}
function gte(version) {
- const system = getSystemInfoSync();
- return compareVersion(system.SDKVersion, version) >= 0;
+ const system = getSystemInfoSync();
+ return compareVersion(system.SDKVersion, version) >= 0;
}
export function canIUseModel() {
- return gte('2.9.3');
+ return gte('2.9.3');
}
export function canIUseFormFieldButton() {
- return gte('2.10.3');
+ return gte('2.10.3');
}
export function canIUseAnimate() {
- return gte('2.9.0');
+ return gte('2.9.0');
}
export function canIUseGroupSetData() {
- return gte('2.4.0');
+ return gte('2.4.0');
}
export function canIUseNextTick() {
- return wx.canIUse('nextTick');
+ return wx.canIUse('nextTick');
}
export function canIUseCanvas2d() {
- return gte('2.9.0');
+ return gte('2.9.0');
}
export function canIUseGetUserProfile() {
- return !!wx.getUserProfile;
+ return !!wx.getUserProfile;
}
diff --git a/dist/config-provider/index.js b/dist/config-provider/index.js
index b4c542f2..0cb23f41 100644
--- a/dist/config-provider/index.js
+++ b/dist/config-provider/index.js
@@ -1,9 +1,9 @@
import { VantComponent } from '../common/component';
VantComponent({
- props: {
- themeVars: {
- type: Object,
- value: {},
+ props: {
+ themeVars: {
+ type: Object,
+ value: {},
+ },
},
- },
});
diff --git a/dist/count-down/index.js b/dist/count-down/index.js
index 78dbb885..da241451 100644
--- a/dist/count-down/index.js
+++ b/dist/count-down/index.js
@@ -1,99 +1,100 @@
import { VantComponent } from '../common/component';
import { isSameSecond, parseFormat, parseTimeData } from './utils';
function simpleTick(fn) {
- return setTimeout(fn, 30);
+ return setTimeout(fn, 30);
}
VantComponent({
- props: {
- useSlot: Boolean,
- millisecond: Boolean,
- time: {
- type: Number,
- observer: 'reset',
+ props: {
+ useSlot: Boolean,
+ millisecond: Boolean,
+ time: {
+ type: Number,
+ observer: 'reset',
+ },
+ format: {
+ type: String,
+ value: 'HH:mm:ss',
+ },
+ autoStart: {
+ type: Boolean,
+ value: true,
+ },
},
- format: {
- type: String,
- value: 'HH:mm:ss',
+ data: {
+ timeData: parseTimeData(0),
+ formattedTime: '0',
},
- autoStart: {
- type: Boolean,
- value: true,
+ destroyed() {
+ clearTimeout(this.tid);
+ this.tid = null;
},
- },
- data: {
- timeData: parseTimeData(0),
- formattedTime: '0',
- },
- destroyed() {
- clearTimeout(this.tid);
- this.tid = null;
- },
- methods: {
- // 开始
- start() {
- if (this.counting) {
- return;
- }
- this.counting = true;
- this.endTime = Date.now() + this.remain;
- this.tick();
+ methods: {
+ // 开始
+ start() {
+ if (this.counting) {
+ return;
+ }
+ this.counting = true;
+ this.endTime = Date.now() + this.remain;
+ this.tick();
+ },
+ // 暂停
+ pause() {
+ this.counting = false;
+ clearTimeout(this.tid);
+ },
+ // 重置
+ reset() {
+ this.pause();
+ this.remain = this.data.time;
+ this.setRemain(this.remain);
+ if (this.data.autoStart) {
+ this.start();
+ }
+ },
+ tick() {
+ if (this.data.millisecond) {
+ this.microTick();
+ }
+ else {
+ this.macroTick();
+ }
+ },
+ microTick() {
+ this.tid = simpleTick(() => {
+ this.setRemain(this.getRemain());
+ if (this.remain !== 0) {
+ this.microTick();
+ }
+ });
+ },
+ macroTick() {
+ this.tid = simpleTick(() => {
+ const remain = this.getRemain();
+ if (!isSameSecond(remain, this.remain) || remain === 0) {
+ this.setRemain(remain);
+ }
+ if (this.remain !== 0) {
+ this.macroTick();
+ }
+ });
+ },
+ getRemain() {
+ return Math.max(this.endTime - Date.now(), 0);
+ },
+ setRemain(remain) {
+ this.remain = remain;
+ const timeData = parseTimeData(remain);
+ if (this.data.useSlot) {
+ this.$emit('change', timeData);
+ }
+ this.setData({
+ formattedTime: parseFormat(this.data.format, timeData),
+ });
+ if (remain === 0) {
+ this.pause();
+ this.$emit('finish');
+ }
+ },
},
- // 暂停
- pause() {
- this.counting = false;
- clearTimeout(this.tid);
- },
- // 重置
- reset() {
- this.pause();
- this.remain = this.data.time;
- this.setRemain(this.remain);
- if (this.data.autoStart) {
- this.start();
- }
- },
- tick() {
- if (this.data.millisecond) {
- this.microTick();
- } else {
- this.macroTick();
- }
- },
- microTick() {
- this.tid = simpleTick(() => {
- this.setRemain(this.getRemain());
- if (this.remain !== 0) {
- this.microTick();
- }
- });
- },
- macroTick() {
- this.tid = simpleTick(() => {
- const remain = this.getRemain();
- if (!isSameSecond(remain, this.remain) || remain === 0) {
- this.setRemain(remain);
- }
- if (this.remain !== 0) {
- this.macroTick();
- }
- });
- },
- getRemain() {
- return Math.max(this.endTime - Date.now(), 0);
- },
- setRemain(remain) {
- this.remain = remain;
- const timeData = parseTimeData(remain);
- if (this.data.useSlot) {
- this.$emit('change', timeData);
- }
- this.setData({
- formattedTime: parseFormat(this.data.format, timeData),
- });
- if (remain === 0) {
- this.pause();
- this.$emit('finish');
- }
- },
- },
});
diff --git a/dist/count-down/utils.js b/dist/count-down/utils.js
index a9f05b8e..cbdbd79d 100644
--- a/dist/count-down/utils.js
+++ b/dist/count-down/utils.js
@@ -1,53 +1,57 @@
function padZero(num, targetLength = 2) {
- let str = num + '';
- while (str.length < targetLength) {
- str = '0' + str;
- }
- return str;
+ let str = num + '';
+ while (str.length < targetLength) {
+ str = '0' + str;
+ }
+ return str;
}
const SECOND = 1000;
const MINUTE = 60 * SECOND;
const HOUR = 60 * MINUTE;
const DAY = 24 * HOUR;
export function parseTimeData(time) {
- const days = Math.floor(time / DAY);
- const hours = Math.floor((time % DAY) / HOUR);
- const minutes = Math.floor((time % HOUR) / MINUTE);
- const seconds = Math.floor((time % MINUTE) / SECOND);
- const milliseconds = Math.floor(time % SECOND);
- return {
- days,
- hours,
- minutes,
- seconds,
- milliseconds,
- };
+ const days = Math.floor(time / DAY);
+ const hours = Math.floor((time % DAY) / HOUR);
+ const minutes = Math.floor((time % HOUR) / MINUTE);
+ const seconds = Math.floor((time % MINUTE) / SECOND);
+ const milliseconds = Math.floor(time % SECOND);
+ return {
+ days,
+ hours,
+ minutes,
+ seconds,
+ milliseconds,
+ };
}
export function parseFormat(format, timeData) {
- const { days } = timeData;
- let { hours, minutes, seconds, milliseconds } = timeData;
- if (format.indexOf('DD') === -1) {
- hours += days * 24;
- } else {
- format = format.replace('DD', padZero(days));
- }
- if (format.indexOf('HH') === -1) {
- minutes += hours * 60;
- } else {
- format = format.replace('HH', padZero(hours));
- }
- if (format.indexOf('mm') === -1) {
- seconds += minutes * 60;
- } else {
- format = format.replace('mm', padZero(minutes));
- }
- if (format.indexOf('ss') === -1) {
- milliseconds += seconds * 1000;
- } else {
- format = format.replace('ss', padZero(seconds));
- }
- return format.replace('SSS', padZero(milliseconds, 3));
+ const { days } = timeData;
+ let { hours, minutes, seconds, milliseconds } = timeData;
+ if (format.indexOf('DD') === -1) {
+ hours += days * 24;
+ }
+ else {
+ format = format.replace('DD', padZero(days));
+ }
+ if (format.indexOf('HH') === -1) {
+ minutes += hours * 60;
+ }
+ else {
+ format = format.replace('HH', padZero(hours));
+ }
+ if (format.indexOf('mm') === -1) {
+ seconds += minutes * 60;
+ }
+ else {
+ format = format.replace('mm', padZero(minutes));
+ }
+ if (format.indexOf('ss') === -1) {
+ milliseconds += seconds * 1000;
+ }
+ else {
+ format = format.replace('ss', padZero(seconds));
+ }
+ return format.replace('SSS', padZero(milliseconds, 3));
}
export function isSameSecond(time1, time2) {
- return Math.floor(time1 / 1000) === Math.floor(time2 / 1000);
+ return Math.floor(time1 / 1000) === Math.floor(time2 / 1000);
}
diff --git a/dist/datetime-picker/index.js b/dist/datetime-picker/index.js
index 8f77bf64..33341705 100644
--- a/dist/datetime-picker/index.js
+++ b/dist/datetime-picker/index.js
@@ -3,319 +3,293 @@ import { isDef } from '../common/validator';
import { pickerProps } from '../picker/shared';
const currentYear = new Date().getFullYear();
function isValidDate(date) {
- return isDef(date) && !isNaN(new Date(date).getTime());
+ return isDef(date) && !isNaN(new Date(date).getTime());
}
function range(num, min, max) {
- return Math.min(Math.max(num, min), max);
+ return Math.min(Math.max(num, min), max);
}
function padZero(val) {
- return `00${val}`.slice(-2);
+ return `00${val}`.slice(-2);
}
function times(n, iteratee) {
- let index = -1;
- const result = Array(n < 0 ? 0 : n);
- while (++index < n) {
- result[index] = iteratee(index);
- }
- return result;
+ let index = -1;
+ const result = Array(n < 0 ? 0 : n);
+ while (++index < n) {
+ result[index] = iteratee(index);
+ }
+ return result;
}
function getTrueValue(formattedValue) {
- if (formattedValue === undefined) {
- formattedValue = '1';
- }
- while (isNaN(parseInt(formattedValue, 10))) {
- formattedValue = formattedValue.slice(1);
- }
- return parseInt(formattedValue, 10);
+ if (formattedValue === undefined) {
+ formattedValue = '1';
+ }
+ while (isNaN(parseInt(formattedValue, 10))) {
+ formattedValue = formattedValue.slice(1);
+ }
+ return parseInt(formattedValue, 10);
}
function getMonthEndDay(year, month) {
- return 32 - new Date(year, month - 1, 32).getDate();
+ return 32 - new Date(year, month - 1, 32).getDate();
}
const defaultFormatter = (type, value) => value;
VantComponent({
- classes: ['active-class', 'toolbar-class', 'column-class'],
- props: Object.assign(Object.assign({}, pickerProps), {
- value: {
- type: null,
- observer: 'updateValue',
+ classes: ['active-class', 'toolbar-class', 'column-class'],
+ props: Object.assign(Object.assign({}, pickerProps), { value: {
+ type: null,
+ observer: 'updateValue',
+ }, filter: null, type: {
+ type: String,
+ value: 'datetime',
+ observer: 'updateValue',
+ }, showToolbar: {
+ type: Boolean,
+ value: true,
+ }, formatter: {
+ type: null,
+ value: defaultFormatter,
+ }, minDate: {
+ type: Number,
+ value: new Date(currentYear - 10, 0, 1).getTime(),
+ observer: 'updateValue',
+ }, maxDate: {
+ type: Number,
+ value: new Date(currentYear + 10, 11, 31).getTime(),
+ observer: 'updateValue',
+ }, minHour: {
+ type: Number,
+ value: 0,
+ observer: 'updateValue',
+ }, maxHour: {
+ type: Number,
+ value: 23,
+ observer: 'updateValue',
+ }, minMinute: {
+ type: Number,
+ value: 0,
+ observer: 'updateValue',
+ }, maxMinute: {
+ type: Number,
+ value: 59,
+ observer: 'updateValue',
+ } }),
+ data: {
+ innerValue: Date.now(),
+ columns: [],
},
- filter: null,
- type: {
- type: String,
- value: 'datetime',
- observer: 'updateValue',
- },
- showToolbar: {
- type: Boolean,
- value: true,
- },
- formatter: {
- type: null,
- value: defaultFormatter,
- },
- minDate: {
- type: Number,
- value: new Date(currentYear - 10, 0, 1).getTime(),
- observer: 'updateValue',
- },
- maxDate: {
- type: Number,
- value: new Date(currentYear + 10, 11, 31).getTime(),
- observer: 'updateValue',
- },
- minHour: {
- type: Number,
- value: 0,
- observer: 'updateValue',
- },
- maxHour: {
- type: Number,
- value: 23,
- observer: 'updateValue',
- },
- minMinute: {
- type: Number,
- value: 0,
- observer: 'updateValue',
- },
- maxMinute: {
- type: Number,
- value: 59,
- observer: 'updateValue',
- },
- }),
- data: {
- innerValue: Date.now(),
- columns: [],
- },
- methods: {
- updateValue() {
- const { data } = this;
- const val = this.correctValue(data.value);
- const isEqual = val === data.innerValue;
- this.updateColumnValue(val).then(() => {
- if (!isEqual) {
- this.$emit('input', val);
- }
- });
- },
- getPicker() {
- if (this.picker == null) {
- this.picker = this.selectComponent('.van-datetime-picker');
- const { picker } = this;
- const { setColumnValues } = picker;
- picker.setColumnValues = (...args) =>
- setColumnValues.apply(picker, [...args, false]);
- }
- return this.picker;
- },
- updateColumns() {
- const { formatter = defaultFormatter } = this.data;
- const results = this.getOriginColumns().map((column) => ({
- values: column.values.map((value) => formatter(column.type, value)),
- }));
- return this.set({ columns: results });
- },
- getOriginColumns() {
- const { filter } = this.data;
- const results = this.getRanges().map(({ type, range }) => {
- let values = times(range[1] - range[0] + 1, (index) => {
- const value = range[0] + index;
- return type === 'year' ? `${value}` : padZero(value);
- });
- if (filter) {
- values = filter(type, values);
- }
- return { type, values };
- });
- return results;
- },
- getRanges() {
- const { data } = this;
- if (data.type === 'time') {
- return [
- {
- type: 'hour',
- range: [data.minHour, data.maxHour],
- },
- {
- type: 'minute',
- range: [data.minMinute, data.maxMinute],
- },
- ];
- }
- const {
- maxYear,
- maxDate,
- maxMonth,
- maxHour,
- maxMinute,
- } = this.getBoundary('max', data.innerValue);
- const {
- minYear,
- minDate,
- minMonth,
- minHour,
- minMinute,
- } = this.getBoundary('min', data.innerValue);
- const result = [
- {
- type: 'year',
- range: [minYear, maxYear],
+ methods: {
+ updateValue() {
+ const { data } = this;
+ const val = this.correctValue(data.value);
+ const isEqual = val === data.innerValue;
+ this.updateColumnValue(val).then(() => {
+ if (!isEqual) {
+ this.$emit('input', val);
+ }
+ });
},
- {
- type: 'month',
- range: [minMonth, maxMonth],
- },
- {
- type: 'day',
- range: [minDate, maxDate],
- },
- {
- type: 'hour',
- range: [minHour, maxHour],
- },
- {
- type: 'minute',
- range: [minMinute, maxMinute],
- },
- ];
- if (data.type === 'date') result.splice(3, 2);
- if (data.type === 'year-month') result.splice(2, 3);
- return result;
- },
- correctValue(value) {
- const { data } = this;
- // validate value
- const isDateType = data.type !== 'time';
- if (isDateType && !isValidDate(value)) {
- value = data.minDate;
- } else if (!isDateType && !value) {
- const { minHour } = data;
- value = `${padZero(minHour)}:00`;
- }
- // time type
- if (!isDateType) {
- let [hour, minute] = value.split(':');
- hour = padZero(range(hour, data.minHour, data.maxHour));
- minute = padZero(range(minute, data.minMinute, data.maxMinute));
- return `${hour}:${minute}`;
- }
- // date type
- value = Math.max(value, data.minDate);
- value = Math.min(value, data.maxDate);
- return value;
- },
- getBoundary(type, innerValue) {
- const value = new Date(innerValue);
- const boundary = new Date(this.data[`${type}Date`]);
- const year = boundary.getFullYear();
- let month = 1;
- let date = 1;
- let hour = 0;
- let minute = 0;
- if (type === 'max') {
- month = 12;
- date = getMonthEndDay(value.getFullYear(), value.getMonth() + 1);
- hour = 23;
- minute = 59;
- }
- if (value.getFullYear() === year) {
- month = boundary.getMonth() + 1;
- if (value.getMonth() + 1 === month) {
- date = boundary.getDate();
- if (value.getDate() === date) {
- hour = boundary.getHours();
- if (value.getHours() === hour) {
- minute = boundary.getMinutes();
+ getPicker() {
+ if (this.picker == null) {
+ this.picker = this.selectComponent('.van-datetime-picker');
+ const { picker } = this;
+ const { setColumnValues } = picker;
+ picker.setColumnValues = (...args) => setColumnValues.apply(picker, [...args, false]);
}
- }
- }
- }
- return {
- [`${type}Year`]: year,
- [`${type}Month`]: month,
- [`${type}Date`]: date,
- [`${type}Hour`]: hour,
- [`${type}Minute`]: minute,
- };
+ return this.picker;
+ },
+ updateColumns() {
+ const { formatter = defaultFormatter } = this.data;
+ const results = this.getOriginColumns().map((column) => ({
+ values: column.values.map((value) => formatter(column.type, value)),
+ }));
+ return this.set({ columns: results });
+ },
+ getOriginColumns() {
+ const { filter } = this.data;
+ const results = this.getRanges().map(({ type, range }) => {
+ let values = times(range[1] - range[0] + 1, (index) => {
+ const value = range[0] + index;
+ return type === 'year' ? `${value}` : padZero(value);
+ });
+ if (filter) {
+ values = filter(type, values);
+ }
+ return { type, values };
+ });
+ return results;
+ },
+ getRanges() {
+ const { data } = this;
+ if (data.type === 'time') {
+ return [
+ {
+ type: 'hour',
+ range: [data.minHour, data.maxHour],
+ },
+ {
+ type: 'minute',
+ range: [data.minMinute, data.maxMinute],
+ },
+ ];
+ }
+ const { maxYear, maxDate, maxMonth, maxHour, maxMinute, } = this.getBoundary('max', data.innerValue);
+ const { minYear, minDate, minMonth, minHour, minMinute, } = this.getBoundary('min', data.innerValue);
+ const result = [
+ {
+ type: 'year',
+ range: [minYear, maxYear],
+ },
+ {
+ type: 'month',
+ range: [minMonth, maxMonth],
+ },
+ {
+ type: 'day',
+ range: [minDate, maxDate],
+ },
+ {
+ type: 'hour',
+ range: [minHour, maxHour],
+ },
+ {
+ type: 'minute',
+ range: [minMinute, maxMinute],
+ },
+ ];
+ if (data.type === 'date')
+ result.splice(3, 2);
+ if (data.type === 'year-month')
+ result.splice(2, 3);
+ return result;
+ },
+ correctValue(value) {
+ const { data } = this;
+ // validate value
+ const isDateType = data.type !== 'time';
+ if (isDateType && !isValidDate(value)) {
+ value = data.minDate;
+ }
+ else if (!isDateType && !value) {
+ const { minHour } = data;
+ value = `${padZero(minHour)}:00`;
+ }
+ // time type
+ if (!isDateType) {
+ let [hour, minute] = value.split(':');
+ hour = padZero(range(hour, data.minHour, data.maxHour));
+ minute = padZero(range(minute, data.minMinute, data.maxMinute));
+ return `${hour}:${minute}`;
+ }
+ // date type
+ value = Math.max(value, data.minDate);
+ value = Math.min(value, data.maxDate);
+ return value;
+ },
+ getBoundary(type, innerValue) {
+ const value = new Date(innerValue);
+ const boundary = new Date(this.data[`${type}Date`]);
+ const year = boundary.getFullYear();
+ let month = 1;
+ let date = 1;
+ let hour = 0;
+ let minute = 0;
+ if (type === 'max') {
+ month = 12;
+ date = getMonthEndDay(value.getFullYear(), value.getMonth() + 1);
+ hour = 23;
+ minute = 59;
+ }
+ if (value.getFullYear() === year) {
+ month = boundary.getMonth() + 1;
+ if (value.getMonth() + 1 === month) {
+ date = boundary.getDate();
+ if (value.getDate() === date) {
+ hour = boundary.getHours();
+ if (value.getHours() === hour) {
+ minute = boundary.getMinutes();
+ }
+ }
+ }
+ }
+ return {
+ [`${type}Year`]: year,
+ [`${type}Month`]: month,
+ [`${type}Date`]: date,
+ [`${type}Hour`]: hour,
+ [`${type}Minute`]: minute,
+ };
+ },
+ onCancel() {
+ this.$emit('cancel');
+ },
+ onConfirm() {
+ this.$emit('confirm', this.data.innerValue);
+ },
+ onChange() {
+ const { data } = this;
+ let value;
+ const picker = this.getPicker();
+ const originColumns = this.getOriginColumns();
+ if (data.type === 'time') {
+ const indexes = picker.getIndexes();
+ value = `${+originColumns[0].values[indexes[0]]}:${+originColumns[1]
+ .values[indexes[1]]}`;
+ }
+ else {
+ const indexes = picker.getIndexes();
+ const values = indexes.map((value, index) => originColumns[index].values[value]);
+ const year = getTrueValue(values[0]);
+ const month = getTrueValue(values[1]);
+ const maxDate = getMonthEndDay(year, month);
+ let date = getTrueValue(values[2]);
+ if (data.type === 'year-month') {
+ date = 1;
+ }
+ date = date > maxDate ? maxDate : date;
+ let hour = 0;
+ let minute = 0;
+ if (data.type === 'datetime') {
+ hour = getTrueValue(values[3]);
+ minute = getTrueValue(values[4]);
+ }
+ value = new Date(year, month - 1, date, hour, minute);
+ }
+ value = this.correctValue(value);
+ this.updateColumnValue(value).then(() => {
+ this.$emit('input', value);
+ this.$emit('change', picker);
+ });
+ },
+ updateColumnValue(value) {
+ let values = [];
+ const { type } = this.data;
+ const formatter = this.data.formatter || defaultFormatter;
+ const picker = this.getPicker();
+ if (type === 'time') {
+ const pair = value.split(':');
+ values = [formatter('hour', pair[0]), formatter('minute', pair[1])];
+ }
+ else {
+ const date = new Date(value);
+ values = [
+ formatter('year', `${date.getFullYear()}`),
+ formatter('month', padZero(date.getMonth() + 1)),
+ ];
+ if (type === 'date') {
+ values.push(formatter('day', padZero(date.getDate())));
+ }
+ if (type === 'datetime') {
+ values.push(formatter('day', padZero(date.getDate())), formatter('hour', padZero(date.getHours())), formatter('minute', padZero(date.getMinutes())));
+ }
+ }
+ return this.set({ innerValue: value })
+ .then(() => this.updateColumns())
+ .then(() => picker.setValues(values));
+ },
},
- onCancel() {
- this.$emit('cancel');
+ created() {
+ const innerValue = this.correctValue(this.data.value);
+ this.updateColumnValue(innerValue).then(() => {
+ this.$emit('input', innerValue);
+ });
},
- onConfirm() {
- this.$emit('confirm', this.data.innerValue);
- },
- onChange() {
- const { data } = this;
- let value;
- const picker = this.getPicker();
- const originColumns = this.getOriginColumns();
- if (data.type === 'time') {
- const indexes = picker.getIndexes();
- value = `${+originColumns[0].values[indexes[0]]}:${+originColumns[1]
- .values[indexes[1]]}`;
- } else {
- const indexes = picker.getIndexes();
- const values = indexes.map(
- (value, index) => originColumns[index].values[value]
- );
- const year = getTrueValue(values[0]);
- const month = getTrueValue(values[1]);
- const maxDate = getMonthEndDay(year, month);
- let date = getTrueValue(values[2]);
- if (data.type === 'year-month') {
- date = 1;
- }
- date = date > maxDate ? maxDate : date;
- let hour = 0;
- let minute = 0;
- if (data.type === 'datetime') {
- hour = getTrueValue(values[3]);
- minute = getTrueValue(values[4]);
- }
- value = new Date(year, month - 1, date, hour, minute);
- }
- value = this.correctValue(value);
- this.updateColumnValue(value).then(() => {
- this.$emit('input', value);
- this.$emit('change', picker);
- });
- },
- updateColumnValue(value) {
- let values = [];
- const { type } = this.data;
- const formatter = this.data.formatter || defaultFormatter;
- const picker = this.getPicker();
- if (type === 'time') {
- const pair = value.split(':');
- values = [formatter('hour', pair[0]), formatter('minute', pair[1])];
- } else {
- const date = new Date(value);
- values = [
- formatter('year', `${date.getFullYear()}`),
- formatter('month', padZero(date.getMonth() + 1)),
- ];
- if (type === 'date') {
- values.push(formatter('day', padZero(date.getDate())));
- }
- if (type === 'datetime') {
- values.push(
- formatter('day', padZero(date.getDate())),
- formatter('hour', padZero(date.getHours())),
- formatter('minute', padZero(date.getMinutes()))
- );
- }
- }
- return this.set({ innerValue: value })
- .then(() => this.updateColumns())
- .then(() => picker.setValues(values));
- },
- },
- created() {
- const innerValue = this.correctValue(this.data.value);
- this.updateColumnValue(innerValue).then(() => {
- this.$emit('input', innerValue);
- });
- },
});
diff --git a/dist/definitions/index.d.ts b/dist/definitions/index.d.ts
index ed01b4dd..a7cc750a 100644
--- a/dist/definitions/index.d.ts
+++ b/dist/definitions/index.d.ts
@@ -1,43 +1,27 @@
///
interface VantComponentInstance {
- parent: WechatMiniprogram.Component.TrivialInstance;
- children: WechatMiniprogram.Component.TrivialInstance[];
- index: number;
- $emit: (
- name: string,
- detail?: unknown,
- options?: WechatMiniprogram.Component.TriggerEventOption
- ) => void;
+ parent: WechatMiniprogram.Component.TrivialInstance;
+ children: WechatMiniprogram.Component.TrivialInstance[];
+ index: number;
+ $emit: (name: string, detail?: unknown, options?: WechatMiniprogram.Component.TriggerEventOption) => void;
}
-export declare type VantComponentOptions<
- Data extends WechatMiniprogram.Component.DataOption,
- Props extends WechatMiniprogram.Component.PropertyOption,
- Methods extends WechatMiniprogram.Component.MethodOption
-> = {
- data?: Data;
- field?: boolean;
- classes?: string[];
- mixins?: string[];
- props?: Props;
- relation?: {
- relations: Record;
- mixin: string;
- };
- methods?: Methods;
- beforeCreate?: () => void;
- created?: () => void;
- mounted?: () => void;
- destroyed?: () => void;
-} & ThisType<
- VantComponentInstance &
- WechatMiniprogram.Component.Instance<
- Data & {
- name: string;
- value: any;
- } & Record,
- Props,
- Methods
- > &
- Record
->;
+export declare type VantComponentOptions = {
+ data?: Data;
+ field?: boolean;
+ classes?: string[];
+ mixins?: string[];
+ props?: Props;
+ relation?: {
+ relations: Record;
+ mixin: string;
+ };
+ methods?: Methods;
+ beforeCreate?: () => void;
+ created?: () => void;
+ mounted?: () => void;
+ destroyed?: () => void;
+} & ThisType, Props, Methods> & Record>;
export {};
diff --git a/dist/dialog/dialog.d.ts b/dist/dialog/dialog.d.ts
index 95117338..c981315b 100644
--- a/dist/dialog/dialog.d.ts
+++ b/dist/dialog/dialog.d.ts
@@ -1,58 +1,50 @@
///
export declare type Action = 'confirm' | 'cancel' | 'overlay';
interface DialogOptions {
- lang?: string;
- show?: boolean;
- title?: string;
- width?: string | number | null;
- zIndex?: number;
- theme?: string;
- context?:
- | WechatMiniprogram.Page.TrivialInstance
- | WechatMiniprogram.Component.TrivialInstance;
- message?: string;
- overlay?: boolean;
- selector?: string;
- ariaLabel?: string;
- className?: string;
- customStyle?: string;
- transition?: string;
- /**
- * @deprecated use beforeClose instead
- */
- asyncClose?: boolean;
- beforeClose?: null | ((action: Action) => Promise | 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;
+ lang?: string;
+ show?: boolean;
+ title?: string;
+ width?: string | number | null;
+ zIndex?: number;
+ theme?: string;
+ context?: WechatMiniprogram.Page.TrivialInstance | WechatMiniprogram.Component.TrivialInstance;
+ message?: string;
+ overlay?: boolean;
+ selector?: string;
+ ariaLabel?: string;
+ className?: string;
+ customStyle?: string;
+ transition?: string;
+ /**
+ * @deprecated use beforeClose instead
+ */
+ asyncClose?: boolean;
+ beforeClose?: null | ((action: Action) => Promise | 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;
- confirm(
- options: DialogOptions
- ): Promise;
- close(): void;
- stopLoading(): void;
- currentOptions: DialogOptions;
- defaultOptions: DialogOptions;
- setDefaultOptions(options: DialogOptions): void;
- resetDefaultOptions(): void;
+ (options: DialogOptions): Promise;
+ alert(options: DialogOptions): Promise;
+ confirm(options: DialogOptions): Promise;
+ close(): void;
+ stopLoading(): void;
+ currentOptions: DialogOptions;
+ defaultOptions: DialogOptions;
+ setDefaultOptions(options: DialogOptions): void;
+ resetDefaultOptions(): void;
};
export default Dialog;
diff --git a/dist/dialog/dialog.js b/dist/dialog/dialog.js
index 542c07b0..0b72feca 100644
--- a/dist/dialog/dialog.js
+++ b/dist/dialog/dialog.js
@@ -1,84 +1,75 @@
let queue = [];
const 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: '',
+ 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: '',
};
let currentOptions = Object.assign({}, defaultOptions);
function getContext() {
- const pages = getCurrentPages();
- return pages[pages.length - 1];
+ const pages = getCurrentPages();
+ return pages[pages.length - 1];
}
const Dialog = (options) => {
- options = Object.assign(Object.assign({}, currentOptions), options);
- return new Promise((resolve, reject) => {
- const context = options.context || getContext();
- const dialog = context.selectComponent(options.selector);
- delete options.context;
- delete options.selector;
- if (dialog) {
- dialog.setData(
- Object.assign(
- {
- callback: (action, instance) => {
- action === 'confirm' ? resolve(instance) : reject(instance);
- },
- },
- options
- )
- );
- wx.nextTick(() => {
- dialog.setData({ show: true });
- });
- queue.push(dialog);
- } else {
- console.warn(
- '未找到 van-dialog 节点,请确认 selector 及 context 是否正确'
- );
- }
- });
+ options = Object.assign(Object.assign({}, currentOptions), options);
+ return new Promise((resolve, reject) => {
+ const context = options.context || getContext();
+ const dialog = context.selectComponent(options.selector);
+ delete options.context;
+ delete options.selector;
+ if (dialog) {
+ dialog.setData(Object.assign({ callback: (action, instance) => {
+ action === 'confirm' ? resolve(instance) : reject(instance);
+ } }, options));
+ wx.nextTick(() => {
+ dialog.setData({ show: true });
+ });
+ queue.push(dialog);
+ }
+ else {
+ console.warn('未找到 van-dialog 节点,请确认 selector 及 context 是否正确');
+ }
+ });
};
Dialog.alert = (options) => Dialog(options);
-Dialog.confirm = (options) =>
- Dialog(Object.assign({ showCancelButton: true }, options));
+Dialog.confirm = (options) => Dialog(Object.assign({ showCancelButton: true }, options));
Dialog.close = () => {
- queue.forEach((dialog) => {
- dialog.close();
- });
- queue = [];
+ queue.forEach((dialog) => {
+ dialog.close();
+ });
+ queue = [];
};
Dialog.stopLoading = () => {
- queue.forEach((dialog) => {
- dialog.stopLoading();
- });
+ queue.forEach((dialog) => {
+ dialog.stopLoading();
+ });
};
Dialog.currentOptions = currentOptions;
Dialog.defaultOptions = defaultOptions;
Dialog.setDefaultOptions = (options) => {
- currentOptions = Object.assign(Object.assign({}, currentOptions), options);
- Dialog.currentOptions = currentOptions;
+ currentOptions = Object.assign(Object.assign({}, currentOptions), options);
+ Dialog.currentOptions = currentOptions;
};
Dialog.resetDefaultOptions = () => {
- currentOptions = Object.assign({}, defaultOptions);
- Dialog.currentOptions = currentOptions;
+ currentOptions = Object.assign({}, defaultOptions);
+ Dialog.currentOptions = currentOptions;
};
Dialog.resetDefaultOptions();
export default Dialog;
diff --git a/dist/dialog/index.js b/dist/dialog/index.js
index 10267b43..6f24cf4a 100644
--- a/dist/dialog/index.js
+++ b/dist/dialog/index.js
@@ -3,119 +3,120 @@ import { button } from '../mixins/button';
import { GRAY, RED } from '../common/color';
import { toPromise } from '../common/utils';
VantComponent({
- mixins: [button],
- props: {
- show: {
- type: Boolean,
- observer(show) {
- !show && this.stopLoading();
- },
- },
- title: String,
- message: String,
- theme: {
- type: String,
- value: 'default',
- },
- useSlot: Boolean,
- className: String,
- customStyle: String,
- asyncClose: Boolean,
- messageAlign: String,
- beforeClose: null,
- overlayStyle: String,
- useTitleSlot: Boolean,
- showCancelButton: Boolean,
- closeOnClickOverlay: Boolean,
- confirmButtonOpenType: String,
- width: null,
- zIndex: {
- type: Number,
- value: 2000,
- },
- confirmButtonText: {
- type: String,
- value: '确认',
- },
- cancelButtonText: {
- type: String,
- value: '取消',
- },
- confirmButtonColor: {
- type: String,
- value: RED,
- },
- cancelButtonColor: {
- type: String,
- value: GRAY,
- },
- showConfirmButton: {
- type: Boolean,
- value: true,
- },
- overlay: {
- type: Boolean,
- value: true,
- },
- transition: {
- type: String,
- value: 'scale',
- },
- },
- data: {
- loading: {
- confirm: false,
- cancel: false,
- },
- callback: () => {},
- },
- methods: {
- onConfirm() {
- this.handleAction('confirm');
- },
- onCancel() {
- this.handleAction('cancel');
- },
- onClickOverlay() {
- this.close('overlay');
- },
- close(action) {
- this.setData({ show: false });
- wx.nextTick(() => {
- this.$emit('close', action);
- const { callback } = this.data;
- if (callback) {
- callback(action, this);
- }
- });
- },
- stopLoading() {
- this.setData({
- loading: {
- confirm: false,
- cancel: false,
+ mixins: [button],
+ props: {
+ show: {
+ type: Boolean,
+ observer(show) {
+ !show && this.stopLoading();
+ },
+ },
+ title: String,
+ message: String,
+ theme: {
+ type: String,
+ value: 'default',
+ },
+ useSlot: Boolean,
+ className: String,
+ customStyle: String,
+ asyncClose: Boolean,
+ messageAlign: String,
+ beforeClose: null,
+ overlayStyle: String,
+ useTitleSlot: Boolean,
+ showCancelButton: Boolean,
+ closeOnClickOverlay: Boolean,
+ confirmButtonOpenType: String,
+ width: null,
+ zIndex: {
+ type: Number,
+ value: 2000,
+ },
+ confirmButtonText: {
+ type: String,
+ value: '确认',
+ },
+ cancelButtonText: {
+ type: String,
+ value: '取消',
+ },
+ confirmButtonColor: {
+ type: String,
+ value: RED,
+ },
+ cancelButtonColor: {
+ type: String,
+ value: GRAY,
+ },
+ showConfirmButton: {
+ type: Boolean,
+ value: true,
+ },
+ overlay: {
+ type: Boolean,
+ value: true,
+ },
+ transition: {
+ type: String,
+ value: 'scale',
},
- });
},
- handleAction(action) {
- this.$emit(action, { dialog: this });
- const { asyncClose, beforeClose } = this.data;
- if (!asyncClose && !beforeClose) {
- this.close(action);
- return;
- }
- this.setData({
- [`loading.${action}`]: true,
- });
- if (beforeClose) {
- toPromise(beforeClose(action)).then((value) => {
- if (value) {
- this.close(action);
- } else {
- this.stopLoading();
- }
- });
- }
+ data: {
+ loading: {
+ confirm: false,
+ cancel: false,
+ },
+ callback: (() => { }),
+ },
+ methods: {
+ onConfirm() {
+ this.handleAction('confirm');
+ },
+ onCancel() {
+ this.handleAction('cancel');
+ },
+ onClickOverlay() {
+ this.close('overlay');
+ },
+ close(action) {
+ this.setData({ show: false });
+ wx.nextTick(() => {
+ this.$emit('close', action);
+ const { callback } = this.data;
+ if (callback) {
+ callback(action, this);
+ }
+ });
+ },
+ stopLoading() {
+ this.setData({
+ loading: {
+ confirm: false,
+ cancel: false,
+ },
+ });
+ },
+ handleAction(action) {
+ this.$emit(action, { dialog: this });
+ const { asyncClose, beforeClose } = this.data;
+ if (!asyncClose && !beforeClose) {
+ this.close(action);
+ return;
+ }
+ this.setData({
+ [`loading.${action}`]: true,
+ });
+ if (beforeClose) {
+ toPromise(beforeClose(action)).then((value) => {
+ if (value) {
+ this.close(action);
+ }
+ else {
+ this.stopLoading();
+ }
+ });
+ }
+ },
},
- },
});
diff --git a/dist/divider/index.js b/dist/divider/index.js
index e7257408..9596edde 100644
--- a/dist/divider/index.js
+++ b/dist/divider/index.js
@@ -1,12 +1,12 @@
import { VantComponent } from '../common/component';
VantComponent({
- props: {
- dashed: Boolean,
- hairline: Boolean,
- contentPosition: String,
- fontSize: String,
- borderColor: String,
- textColor: String,
- customStyle: String,
- },
+ props: {
+ dashed: Boolean,
+ hairline: Boolean,
+ contentPosition: String,
+ fontSize: String,
+ borderColor: String,
+ textColor: String,
+ customStyle: String,
+ },
});
diff --git a/dist/dropdown-item/index.js b/dist/dropdown-item/index.js
index 95da1eef..0b0d00f6 100644
--- a/dist/dropdown-item/index.js
+++ b/dist/dropdown-item/index.js
@@ -1,111 +1,102 @@
import { useParent } from '../common/relation';
import { VantComponent } from '../common/component';
VantComponent({
- field: true,
- relation: useParent('dropdown-menu', function () {
- this.updateDataFromParent();
- }),
- props: {
- value: {
- type: null,
- observer: 'rerender',
+ field: true,
+ relation: useParent('dropdown-menu', function () {
+ this.updateDataFromParent();
+ }),
+ props: {
+ value: {
+ type: null,
+ observer: 'rerender',
+ },
+ title: {
+ type: String,
+ observer: 'rerender',
+ },
+ disabled: Boolean,
+ titleClass: {
+ type: String,
+ observer: 'rerender',
+ },
+ options: {
+ type: Array,
+ value: [],
+ observer: 'rerender',
+ },
+ popupStyle: String,
},
- title: {
- type: String,
- observer: 'rerender',
+ data: {
+ transition: true,
+ showPopup: false,
+ showWrapper: false,
+ displayTitle: '',
},
- disabled: Boolean,
- titleClass: {
- type: String,
- observer: 'rerender',
- },
- options: {
- type: Array,
- value: [],
- observer: 'rerender',
- },
- popupStyle: String,
- },
- data: {
- transition: true,
- showPopup: false,
- showWrapper: false,
- displayTitle: '',
- },
- methods: {
- rerender() {
- wx.nextTick(() => {
- var _a;
- (_a = this.parent) === null || _a === void 0
- ? void 0
- : _a.updateItemListData();
- });
- },
- updateDataFromParent() {
- if (this.parent) {
- const {
- overlay,
- duration,
- activeColor,
- closeOnClickOverlay,
- direction,
- } = this.parent.data;
- this.setData({
- overlay,
- duration,
- activeColor,
- closeOnClickOverlay,
- direction,
- });
- }
- },
- onOpen() {
- this.$emit('open');
- },
- onOpened() {
- this.$emit('opened');
- },
- onClose() {
- this.$emit('close');
- },
- onClosed() {
- this.$emit('closed');
- this.setData({ showWrapper: false });
- },
- onOptionTap(event) {
- const { option } = event.currentTarget.dataset;
- const { value } = option;
- const shouldEmitChange = this.data.value !== value;
- this.setData({ showPopup: false, value });
- this.$emit('close');
- this.rerender();
- if (shouldEmitChange) {
- this.$emit('change', value);
- }
- },
- toggle(show, options = {}) {
- var _a;
- const { showPopup } = this.data;
- if (typeof show !== 'boolean') {
- show = !showPopup;
- }
- if (show === showPopup) {
- return;
- }
- this.setData({
- transition: !options.immediate,
- showPopup: show,
- });
- if (show) {
- (_a = this.parent) === null || _a === void 0
- ? void 0
- : _a.getChildWrapperStyle().then((wrapperStyle) => {
- this.setData({ wrapperStyle, showWrapper: true });
- this.rerender();
+ methods: {
+ rerender() {
+ wx.nextTick(() => {
+ var _a;
+ (_a = this.parent) === null || _a === void 0 ? void 0 : _a.updateItemListData();
});
- } else {
- this.rerender();
- }
+ },
+ updateDataFromParent() {
+ if (this.parent) {
+ const { overlay, duration, activeColor, closeOnClickOverlay, direction, } = this.parent.data;
+ this.setData({
+ overlay,
+ duration,
+ activeColor,
+ closeOnClickOverlay,
+ direction,
+ });
+ }
+ },
+ onOpen() {
+ this.$emit('open');
+ },
+ onOpened() {
+ this.$emit('opened');
+ },
+ onClose() {
+ this.$emit('close');
+ },
+ onClosed() {
+ this.$emit('closed');
+ this.setData({ showWrapper: false });
+ },
+ onOptionTap(event) {
+ const { option } = event.currentTarget.dataset;
+ const { value } = option;
+ const shouldEmitChange = this.data.value !== value;
+ this.setData({ showPopup: false, value });
+ this.$emit('close');
+ this.rerender();
+ if (shouldEmitChange) {
+ this.$emit('change', value);
+ }
+ },
+ toggle(show, options = {}) {
+ var _a;
+ const { showPopup } = this.data;
+ if (typeof show !== 'boolean') {
+ show = !showPopup;
+ }
+ if (show === showPopup) {
+ return;
+ }
+ this.setData({
+ transition: !options.immediate,
+ showPopup: show,
+ });
+ if (show) {
+ (_a = this.parent) === null || _a === void 0 ? void 0 : _a.getChildWrapperStyle().then((wrapperStyle) => {
+ this.setData({ wrapperStyle, showWrapper: true });
+ this.rerender();
+ });
+ }
+ else {
+ this.rerender();
+ }
+ },
},
- },
});
diff --git a/dist/dropdown-item/shared.d.ts b/dist/dropdown-item/shared.d.ts
index c90bd9e1..774eb4ca 100644
--- a/dist/dropdown-item/shared.d.ts
+++ b/dist/dropdown-item/shared.d.ts
@@ -1,5 +1,5 @@
export interface Option {
- text: string;
- value: string | number;
- icon: string;
+ text: string;
+ value: string | number;
+ icon: string;
}
diff --git a/dist/dropdown-menu/index.js b/dist/dropdown-menu/index.js
index aba11b98..1ed1a878 100644
--- a/dist/dropdown-menu/index.js
+++ b/dist/dropdown-menu/index.js
@@ -3,110 +3,110 @@ import { useChildren } from '../common/relation';
import { addUnit, getRect, getSystemInfoSync } from '../common/utils';
let ARRAY = [];
VantComponent({
- field: true,
- relation: useChildren('dropdown-item', function () {
- this.updateItemListData();
- }),
- props: {
- activeColor: {
- type: String,
- observer: 'updateChildrenData',
+ field: true,
+ relation: useChildren('dropdown-item', function () {
+ this.updateItemListData();
+ }),
+ props: {
+ activeColor: {
+ type: String,
+ observer: 'updateChildrenData',
+ },
+ overlay: {
+ type: Boolean,
+ value: true,
+ observer: 'updateChildrenData',
+ },
+ zIndex: {
+ type: Number,
+ value: 10,
+ },
+ duration: {
+ type: Number,
+ value: 200,
+ observer: 'updateChildrenData',
+ },
+ direction: {
+ type: String,
+ value: 'down',
+ observer: 'updateChildrenData',
+ },
+ closeOnClickOverlay: {
+ type: Boolean,
+ value: true,
+ observer: 'updateChildrenData',
+ },
+ closeOnClickOutside: {
+ type: Boolean,
+ value: true,
+ },
},
- overlay: {
- type: Boolean,
- value: true,
- observer: 'updateChildrenData',
+ data: {
+ itemListData: [],
},
- zIndex: {
- type: Number,
- value: 10,
+ beforeCreate() {
+ const { windowHeight } = getSystemInfoSync();
+ this.windowHeight = windowHeight;
+ ARRAY.push(this);
},
- duration: {
- type: Number,
- value: 200,
- observer: 'updateChildrenData',
+ destroyed() {
+ ARRAY = ARRAY.filter((item) => item !== this);
},
- direction: {
- type: String,
- value: 'down',
- observer: 'updateChildrenData',
+ methods: {
+ updateItemListData() {
+ this.setData({
+ itemListData: this.children.map((child) => child.data),
+ });
+ },
+ updateChildrenData() {
+ this.children.forEach((child) => {
+ child.updateDataFromParent();
+ });
+ },
+ toggleItem(active) {
+ this.children.forEach((item, index) => {
+ const { showPopup } = item.data;
+ if (index === active) {
+ item.toggle();
+ }
+ else if (showPopup) {
+ item.toggle(false, { immediate: true });
+ }
+ });
+ },
+ close() {
+ this.children.forEach((child) => {
+ child.toggle(false, { immediate: true });
+ });
+ },
+ getChildWrapperStyle() {
+ const { zIndex, direction } = this.data;
+ return getRect(this, '.van-dropdown-menu').then((rect) => {
+ const { top = 0, bottom = 0 } = rect;
+ const offset = direction === 'down' ? bottom : this.windowHeight - top;
+ let wrapperStyle = `z-index: ${zIndex};`;
+ if (direction === 'down') {
+ wrapperStyle += `top: ${addUnit(offset)};`;
+ }
+ else {
+ wrapperStyle += `bottom: ${addUnit(offset)};`;
+ }
+ return wrapperStyle;
+ });
+ },
+ onTitleTap(event) {
+ const { index } = event.currentTarget.dataset;
+ const child = this.children[index];
+ if (!child.data.disabled) {
+ ARRAY.forEach((menuItem) => {
+ if (menuItem &&
+ menuItem.data.closeOnClickOutside &&
+ menuItem !== this) {
+ menuItem.close();
+ }
+ });
+ this.toggleItem(index);
+ }
+ },
},
- closeOnClickOverlay: {
- type: Boolean,
- value: true,
- observer: 'updateChildrenData',
- },
- closeOnClickOutside: {
- type: Boolean,
- value: true,
- },
- },
- data: {
- itemListData: [],
- },
- beforeCreate() {
- const { windowHeight } = getSystemInfoSync();
- this.windowHeight = windowHeight;
- ARRAY.push(this);
- },
- destroyed() {
- ARRAY = ARRAY.filter((item) => item !== this);
- },
- methods: {
- updateItemListData() {
- this.setData({
- itemListData: this.children.map((child) => child.data),
- });
- },
- updateChildrenData() {
- this.children.forEach((child) => {
- child.updateDataFromParent();
- });
- },
- toggleItem(active) {
- this.children.forEach((item, index) => {
- const { showPopup } = item.data;
- if (index === active) {
- item.toggle();
- } else if (showPopup) {
- item.toggle(false, { immediate: true });
- }
- });
- },
- close() {
- this.children.forEach((child) => {
- child.toggle(false, { immediate: true });
- });
- },
- getChildWrapperStyle() {
- const { zIndex, direction } = this.data;
- return getRect(this, '.van-dropdown-menu').then((rect) => {
- const { top = 0, bottom = 0 } = rect;
- const offset = direction === 'down' ? bottom : this.windowHeight - top;
- let wrapperStyle = `z-index: ${zIndex};`;
- if (direction === 'down') {
- wrapperStyle += `top: ${addUnit(offset)};`;
- } else {
- wrapperStyle += `bottom: ${addUnit(offset)};`;
- }
- return wrapperStyle;
- });
- },
- onTitleTap(event) {
- const { index } = event.currentTarget.dataset;
- const child = this.children[index];
- if (!child.data.disabled) {
- ARRAY.forEach((menuItem) => {
- if (
- menuItem &&
- menuItem.data.closeOnClickOutside &&
- menuItem !== this
- ) {
- menuItem.close();
- }
- });
- this.toggleItem(index);
- }
- },
- },
});
diff --git a/dist/empty/index.js b/dist/empty/index.js
index 32ec1163..842e1bb6 100644
--- a/dist/empty/index.js
+++ b/dist/empty/index.js
@@ -1,10 +1,10 @@
import { VantComponent } from '../common/component';
VantComponent({
- props: {
- description: String,
- image: {
- type: String,
- value: 'default',
+ props: {
+ description: String,
+ image: {
+ type: String,
+ value: 'default',
+ },
},
- },
});
diff --git a/dist/field/index.js b/dist/field/index.js
index 105ba28f..35627a2b 100644
--- a/dist/field/index.js
+++ b/dist/field/index.js
@@ -2,138 +2,106 @@ import { nextTick } from '../common/utils';
import { VantComponent } from '../common/component';
import { commonProps, inputProps, textareaProps } from './props';
VantComponent({
- field: true,
- classes: ['input-class', 'right-icon-class', 'label-class'],
- props: Object.assign(
- Object.assign(
- Object.assign(Object.assign({}, commonProps), inputProps),
- textareaProps
- ),
- {
- size: String,
- icon: String,
- label: String,
- error: Boolean,
- center: Boolean,
- isLink: Boolean,
- leftIcon: String,
- rightIcon: String,
- autosize: null,
- required: Boolean,
- iconClass: String,
- clickable: Boolean,
- inputAlign: String,
- customStyle: String,
- errorMessage: String,
- arrowDirection: String,
- showWordLimit: Boolean,
- errorMessageAlign: String,
- readonly: {
- type: Boolean,
- observer: 'setShowClear',
- },
- clearable: {
- type: Boolean,
- observer: 'setShowClear',
- },
- clearTrigger: {
- type: String,
- value: 'focus',
- },
- border: {
- type: Boolean,
- value: true,
- },
- titleWidth: {
- type: String,
- value: '6.2em',
- },
- clearIcon: {
- type: String,
- value: 'clear',
- },
- }
- ),
- data: {
- focused: false,
- innerValue: '',
- showClear: false,
- },
- created() {
- this.value = this.data.value;
- this.setData({ innerValue: this.value });
- },
- methods: {
- onInput(event) {
- const { value = '' } = event.detail || {};
- this.value = value;
- this.setShowClear();
- this.emitChange();
+ field: true,
+ classes: ['input-class', 'right-icon-class', 'label-class'],
+ props: Object.assign(Object.assign(Object.assign(Object.assign({}, commonProps), inputProps), textareaProps), { size: String, icon: String, label: String, error: Boolean, center: Boolean, isLink: Boolean, leftIcon: String, rightIcon: String, autosize: null, required: Boolean, iconClass: String, clickable: Boolean, inputAlign: String, customStyle: String, errorMessage: String, arrowDirection: String, showWordLimit: Boolean, errorMessageAlign: String, readonly: {
+ type: Boolean,
+ observer: 'setShowClear',
+ }, clearable: {
+ type: Boolean,
+ observer: 'setShowClear',
+ }, clearTrigger: {
+ type: String,
+ value: 'focus',
+ }, border: {
+ type: Boolean,
+ value: true,
+ }, titleWidth: {
+ type: String,
+ value: '6.2em',
+ }, clearIcon: {
+ type: String,
+ value: 'clear',
+ } }),
+ data: {
+ focused: false,
+ innerValue: '',
+ showClear: false,
},
- onFocus(event) {
- this.focused = true;
- this.setShowClear();
- this.$emit('focus', event.detail);
+ created() {
+ this.value = this.data.value;
+ this.setData({ innerValue: this.value });
},
- onBlur(event) {
- this.focused = false;
- this.setShowClear();
- this.$emit('blur', event.detail);
+ methods: {
+ onInput(event) {
+ const { value = '' } = event.detail || {};
+ this.value = value;
+ this.setShowClear();
+ this.emitChange();
+ },
+ onFocus(event) {
+ this.focused = true;
+ this.setShowClear();
+ this.$emit('focus', event.detail);
+ },
+ onBlur(event) {
+ this.focused = false;
+ this.setShowClear();
+ this.$emit('blur', event.detail);
+ },
+ onClickIcon() {
+ this.$emit('click-icon');
+ },
+ onClickInput(event) {
+ this.$emit('click-input', event.detail);
+ },
+ onClear() {
+ this.setData({ innerValue: '' });
+ this.value = '';
+ this.setShowClear();
+ nextTick(() => {
+ this.emitChange();
+ this.$emit('clear', '');
+ });
+ },
+ onConfirm(event) {
+ const { value = '' } = event.detail || {};
+ this.value = value;
+ this.setShowClear();
+ this.$emit('confirm', value);
+ },
+ setValue(value) {
+ this.value = value;
+ this.setShowClear();
+ if (value === '') {
+ this.setData({ innerValue: '' });
+ }
+ this.emitChange();
+ },
+ onLineChange(event) {
+ this.$emit('linechange', event.detail);
+ },
+ onKeyboardHeightChange(event) {
+ this.$emit('keyboardheightchange', event.detail);
+ },
+ emitChange() {
+ this.setData({ value: this.value });
+ nextTick(() => {
+ this.$emit('input', this.value);
+ this.$emit('change', this.value);
+ });
+ },
+ setShowClear() {
+ const { clearable, readonly, clearTrigger } = this.data;
+ const { focused, value } = this;
+ let showClear = false;
+ if (clearable && !readonly) {
+ const hasValue = !!value;
+ const trigger = clearTrigger === 'always' || (clearTrigger === 'focus' && focused);
+ showClear = hasValue && trigger;
+ }
+ this.setData({ showClear });
+ },
+ noop() { },
},
- onClickIcon() {
- this.$emit('click-icon');
- },
- onClickInput(event) {
- this.$emit('click-input', event.detail);
- },
- onClear() {
- this.setData({ innerValue: '' });
- this.value = '';
- this.setShowClear();
- nextTick(() => {
- this.emitChange();
- this.$emit('clear', '');
- });
- },
- onConfirm(event) {
- const { value = '' } = event.detail || {};
- this.value = value;
- this.setShowClear();
- this.$emit('confirm', value);
- },
- setValue(value) {
- this.value = value;
- this.setShowClear();
- if (value === '') {
- this.setData({ innerValue: '' });
- }
- this.emitChange();
- },
- onLineChange(event) {
- this.$emit('linechange', event.detail);
- },
- onKeyboardHeightChange(event) {
- this.$emit('keyboardheightchange', event.detail);
- },
- emitChange() {
- this.setData({ value: this.value });
- nextTick(() => {
- this.$emit('input', this.value);
- this.$emit('change', this.value);
- });
- },
- setShowClear() {
- const { clearable, readonly, clearTrigger } = this.data;
- const { focused, value } = this;
- let showClear = false;
- if (clearable && !readonly) {
- const hasValue = !!value;
- const trigger =
- clearTrigger === 'always' || (clearTrigger === 'focus' && focused);
- showClear = hasValue && trigger;
- }
- this.setData({ showClear });
- },
- noop() {},
- },
});
diff --git a/dist/field/props.js b/dist/field/props.js
index 218749f8..415e48d2 100644
--- a/dist/field/props.js
+++ b/dist/field/props.js
@@ -1,63 +1,63 @@
export const commonProps = {
- value: {
- type: String,
- observer(value) {
- if (value !== this.value) {
- this.setData({ innerValue: value });
- this.value = value;
- }
+ value: {
+ type: String,
+ observer(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,
+ 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,
};
export const inputProps = {
- type: {
- type: String,
- value: 'text',
- },
- password: Boolean,
- confirmType: String,
- confirmHold: Boolean,
+ type: {
+ type: String,
+ value: 'text',
+ },
+ password: Boolean,
+ confirmType: String,
+ confirmHold: Boolean,
};
export const textareaProps = {
- autoHeight: Boolean,
- fixed: Boolean,
- showConfirmBar: {
- type: Boolean,
- value: true,
- },
- disableDefaultPadding: {
- type: Boolean,
- value: true,
- },
+ autoHeight: Boolean,
+ fixed: Boolean,
+ showConfirmBar: {
+ type: Boolean,
+ value: true,
+ },
+ disableDefaultPadding: {
+ type: Boolean,
+ value: true,
+ },
};
diff --git a/dist/goods-action-button/index.js b/dist/goods-action-button/index.js
index 5f6dfe20..06fa62c1 100644
--- a/dist/goods-action-button/index.js
+++ b/dist/goods-action-button/index.js
@@ -3,34 +3,34 @@ import { useParent } from '../common/relation';
import { button } from '../mixins/button';
import { link } from '../mixins/link';
VantComponent({
- mixins: [link, button],
- relation: useParent('goods-action'),
- props: {
- text: String,
- color: String,
- loading: Boolean,
- disabled: Boolean,
- plain: Boolean,
- type: {
- type: String,
- value: 'danger',
+ mixins: [link, button],
+ relation: useParent('goods-action'),
+ props: {
+ text: String,
+ color: String,
+ loading: Boolean,
+ disabled: Boolean,
+ plain: Boolean,
+ type: {
+ type: String,
+ value: 'danger',
+ },
},
- },
- methods: {
- onClick(event) {
- this.$emit('click', event.detail);
- this.jumpLink();
+ methods: {
+ onClick(event) {
+ this.$emit('click', event.detail);
+ this.jumpLink();
+ },
+ updateStyle() {
+ if (this.parent == null) {
+ return;
+ }
+ const { index } = this;
+ const { children = [] } = this.parent;
+ this.setData({
+ isFirst: index === 0,
+ isLast: index === children.length - 1,
+ });
+ },
},
- updateStyle() {
- if (this.parent == null) {
- return;
- }
- const { index } = this;
- const { children = [] } = this.parent;
- this.setData({
- isFirst: index === 0,
- isLast: index === children.length - 1,
- });
- },
- },
});
diff --git a/dist/goods-action-icon/index.js b/dist/goods-action-icon/index.js
index 3ebbec1c..91bd34c9 100644
--- a/dist/goods-action-icon/index.js
+++ b/dist/goods-action-icon/index.js
@@ -2,20 +2,20 @@ import { VantComponent } from '../common/component';
import { button } from '../mixins/button';
import { link } from '../mixins/link';
VantComponent({
- classes: ['icon-class', 'text-class'],
- mixins: [link, button],
- props: {
- text: String,
- dot: Boolean,
- info: String,
- icon: String,
- disabled: Boolean,
- loading: Boolean,
- },
- methods: {
- onClick(event) {
- this.$emit('click', event.detail);
- this.jumpLink();
+ classes: ['icon-class', 'text-class'],
+ mixins: [link, button],
+ props: {
+ text: String,
+ dot: Boolean,
+ info: String,
+ icon: String,
+ disabled: Boolean,
+ loading: Boolean,
+ },
+ methods: {
+ onClick(event) {
+ this.$emit('click', event.detail);
+ this.jumpLink();
+ },
},
- },
});
diff --git a/dist/goods-action/index.js b/dist/goods-action/index.js
index c58c38df..6b2ed745 100644
--- a/dist/goods-action/index.js
+++ b/dist/goods-action/index.js
@@ -1,15 +1,15 @@
import { VantComponent } from '../common/component';
import { useChildren } from '../common/relation';
VantComponent({
- relation: useChildren('goods-action-button', function () {
- this.children.forEach((item) => {
- item.updateStyle();
- });
- }),
- props: {
- safeAreaInsetBottom: {
- type: Boolean,
- value: true,
+ relation: useChildren('goods-action-button', function () {
+ this.children.forEach((item) => {
+ item.updateStyle();
+ });
+ }),
+ props: {
+ safeAreaInsetBottom: {
+ type: Boolean,
+ value: true,
+ },
},
- },
});
diff --git a/dist/grid-item/index.js b/dist/grid-item/index.js
index a08943ed..dbeb18a3 100644
--- a/dist/grid-item/index.js
+++ b/dist/grid-item/index.js
@@ -2,61 +2,51 @@ import { VantComponent } from '../common/component';
import { useParent } from '../common/relation';
import { link } from '../mixins/link';
VantComponent({
- relation: useParent('grid'),
- classes: ['content-class', 'icon-class', 'text-class'],
- mixins: [link],
- props: {
- icon: String,
- iconColor: String,
- iconPrefix: {
- type: String,
- value: 'van-icon',
+ relation: useParent('grid'),
+ classes: ['content-class', 'icon-class', 'text-class'],
+ mixins: [link],
+ props: {
+ icon: String,
+ iconColor: String,
+ iconPrefix: {
+ type: String,
+ value: 'van-icon',
+ },
+ dot: Boolean,
+ info: null,
+ badge: null,
+ text: String,
+ useSlot: Boolean,
},
- dot: Boolean,
- info: null,
- badge: null,
- text: String,
- useSlot: Boolean,
- },
- data: {
- viewStyle: '',
- },
- mounted() {
- this.updateStyle();
- },
- methods: {
- updateStyle() {
- if (!this.parent) {
- return;
- }
- const { data, children } = this.parent;
- const {
- columnNum,
- border,
- square,
- gutter,
- clickable,
- center,
- direction,
- reverse,
- iconSize,
- } = data;
- this.setData({
- center,
- border,
- square,
- gutter,
- clickable,
- direction,
- reverse,
- iconSize,
- index: children.indexOf(this),
- columnNum,
- });
+ data: {
+ viewStyle: '',
},
- onClick() {
- this.$emit('click');
- this.jumpLink();
+ mounted() {
+ this.updateStyle();
+ },
+ methods: {
+ updateStyle() {
+ if (!this.parent) {
+ return;
+ }
+ const { data, children } = this.parent;
+ const { columnNum, border, square, gutter, clickable, center, direction, reverse, iconSize, } = data;
+ this.setData({
+ center,
+ border,
+ square,
+ gutter,
+ clickable,
+ direction,
+ reverse,
+ iconSize,
+ index: children.indexOf(this),
+ columnNum,
+ });
+ },
+ onClick() {
+ this.$emit('click');
+ this.jumpLink();
+ },
},
- },
});
diff --git a/dist/grid/index.js b/dist/grid/index.js
index b80d3785..41dfa4ce 100644
--- a/dist/grid/index.js
+++ b/dist/grid/index.js
@@ -1,55 +1,55 @@
import { VantComponent } from '../common/component';
import { useChildren } from '../common/relation';
VantComponent({
- relation: useChildren('grid-item'),
- props: {
- square: {
- type: Boolean,
- observer: 'updateChildren',
+ relation: useChildren('grid-item'),
+ props: {
+ square: {
+ type: Boolean,
+ observer: 'updateChildren',
+ },
+ gutter: {
+ type: null,
+ value: 0,
+ observer: 'updateChildren',
+ },
+ clickable: {
+ type: Boolean,
+ observer: 'updateChildren',
+ },
+ columnNum: {
+ type: Number,
+ value: 4,
+ observer: 'updateChildren',
+ },
+ center: {
+ type: Boolean,
+ value: true,
+ observer: 'updateChildren',
+ },
+ border: {
+ type: Boolean,
+ value: true,
+ observer: 'updateChildren',
+ },
+ direction: {
+ type: String,
+ observer: 'updateChildren',
+ },
+ iconSize: {
+ type: String,
+ observer: 'updateChildren',
+ },
+ reverse: {
+ type: Boolean,
+ value: false,
+ observer: 'updateChildren',
+ },
},
- gutter: {
- type: null,
- value: 0,
- observer: 'updateChildren',
+ methods: {
+ updateChildren() {
+ this.children.forEach((child) => {
+ child.updateStyle();
+ });
+ },
},
- clickable: {
- type: Boolean,
- observer: 'updateChildren',
- },
- columnNum: {
- type: Number,
- value: 4,
- observer: 'updateChildren',
- },
- center: {
- type: Boolean,
- value: true,
- observer: 'updateChildren',
- },
- border: {
- type: Boolean,
- value: true,
- observer: 'updateChildren',
- },
- direction: {
- type: String,
- observer: 'updateChildren',
- },
- iconSize: {
- type: String,
- observer: 'updateChildren',
- },
- reverse: {
- type: Boolean,
- value: false,
- observer: 'updateChildren',
- },
- },
- methods: {
- updateChildren() {
- this.children.forEach((child) => {
- child.updateStyle();
- });
- },
- },
});
diff --git a/dist/icon/index.js b/dist/icon/index.js
index 75f2c946..34fee338 100644
--- a/dist/icon/index.js
+++ b/dist/icon/index.js
@@ -1,20 +1,20 @@
import { VantComponent } from '../common/component';
VantComponent({
- props: {
- dot: Boolean,
- info: null,
- size: null,
- color: String,
- customStyle: String,
- classPrefix: {
- type: String,
- value: 'van-icon',
+ props: {
+ dot: Boolean,
+ info: null,
+ size: null,
+ color: String,
+ customStyle: String,
+ classPrefix: {
+ type: String,
+ value: 'van-icon',
+ },
+ name: String,
},
- name: String,
- },
- methods: {
- onClick() {
- this.$emit('click');
+ methods: {
+ onClick() {
+ this.$emit('click');
+ },
},
- },
});
diff --git a/dist/icon/index.wxss b/dist/icon/index.wxss
index b97b6e78..442556fc 100644
--- a/dist/icon/index.wxss
+++ b/dist/icon/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-icon{position:relative;font:normal normal normal 14px/1 vant-icon;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased}.van-icon,.van-icon:before{display:inline-block}.van-icon-exchange:before{content:"\e6af"}.van-icon-eye:before{content:"\e6b0"}.van-icon-enlarge:before{content:"\e6b1"}.van-icon-expand-o:before{content:"\e6b2"}.van-icon-eye-o:before{content:"\e6b3"}.van-icon-expand:before{content:"\e6b4"}.van-icon-filter-o:before{content:"\e6b5"}.van-icon-fire:before{content:"\e6b6"}.van-icon-fail:before{content:"\e6b7"}.van-icon-failure:before{content:"\e6b8"}.van-icon-fire-o:before{content:"\e6b9"}.van-icon-flag-o:before{content:"\e6ba"}.van-icon-font:before{content:"\e6bb"}.van-icon-font-o:before{content:"\e6bc"}.van-icon-gem-o:before{content:"\e6bd"}.van-icon-flower-o:before{content:"\e6be"}.van-icon-gem:before{content:"\e6bf"}.van-icon-gift-card:before{content:"\e6c0"}.van-icon-friends:before{content:"\e6c1"}.van-icon-friends-o:before{content:"\e6c2"}.van-icon-gold-coin:before{content:"\e6c3"}.van-icon-gold-coin-o:before{content:"\e6c4"}.van-icon-good-job-o:before{content:"\e6c5"}.van-icon-gift:before{content:"\e6c6"}.van-icon-gift-o:before{content:"\e6c7"}.van-icon-gift-card-o:before{content:"\e6c8"}.van-icon-good-job:before{content:"\e6c9"}.van-icon-home-o:before{content:"\e6ca"}.van-icon-goods-collect:before{content:"\e6cb"}.van-icon-graphic:before{content:"\e6cc"}.van-icon-goods-collect-o:before{content:"\e6cd"}.van-icon-hot-o:before{content:"\e6ce"}.van-icon-info:before{content:"\e6cf"}.van-icon-hotel-o:before{content:"\e6d0"}.van-icon-info-o:before{content:"\e6d1"}.van-icon-hot-sale-o:before{content:"\e6d2"}.van-icon-hot:before{content:"\e6d3"}.van-icon-like:before{content:"\e6d4"}.van-icon-idcard:before{content:"\e6d5"}.van-icon-invitation:before{content:"\e6d6"}.van-icon-like-o:before{content:"\e6d7"}.van-icon-hot-sale:before{content:"\e6d8"}.van-icon-location-o:before{content:"\e6d9"}.van-icon-location:before{content:"\e6da"}.van-icon-label:before{content:"\e6db"}.van-icon-lock:before{content:"\e6dc"}.van-icon-label-o:before{content:"\e6dd"}.van-icon-map-marked:before{content:"\e6de"}.van-icon-logistics:before{content:"\e6df"}.van-icon-manager:before{content:"\e6e0"}.van-icon-more:before{content:"\e6e1"}.van-icon-live:before{content:"\e6e2"}.van-icon-manager-o:before{content:"\e6e3"}.van-icon-medal:before{content:"\e6e4"}.van-icon-more-o:before{content:"\e6e5"}.van-icon-music-o:before{content:"\e6e6"}.van-icon-music:before{content:"\e6e7"}.van-icon-new-arrival-o:before{content:"\e6e8"}.van-icon-medal-o:before{content:"\e6e9"}.van-icon-new-o:before{content:"\e6ea"}.van-icon-free-postage:before{content:"\e6eb"}.van-icon-newspaper-o:before{content:"\e6ec"}.van-icon-new-arrival:before{content:"\e6ed"}.van-icon-minus:before{content:"\e6ee"}.van-icon-orders-o:before{content:"\e6ef"}.van-icon-new:before{content:"\e6f0"}.van-icon-paid:before{content:"\e6f1"}.van-icon-notes-o:before{content:"\e6f2"}.van-icon-other-pay:before{content:"\e6f3"}.van-icon-pause-circle:before{content:"\e6f4"}.van-icon-pause:before{content:"\e6f5"}.van-icon-pause-circle-o:before{content:"\e6f6"}.van-icon-peer-pay:before{content:"\e6f7"}.van-icon-pending-payment:before{content:"\e6f8"}.van-icon-passed:before{content:"\e6f9"}.van-icon-plus:before{content:"\e6fa"}.van-icon-phone-circle-o:before{content:"\e6fb"}.van-icon-phone-o:before{content:"\e6fc"}.van-icon-printer:before{content:"\e6fd"}.van-icon-photo-fail:before{content:"\e6fe"}.van-icon-phone:before{content:"\e6ff"}.van-icon-photo-o:before{content:"\e700"}.van-icon-play-circle:before{content:"\e701"}.van-icon-play:before{content:"\e702"}.van-icon-phone-circle:before{content:"\e703"}.van-icon-point-gift-o:before{content:"\e704"}.van-icon-point-gift:before{content:"\e705"}.van-icon-play-circle-o:before{content:"\e706"}.van-icon-shrink:before{content:"\e707"}.van-icon-photo:before{content:"\e708"}.van-icon-qr:before{content:"\e709"}.van-icon-qr-invalid:before{content:"\e70a"}.van-icon-question-o:before{content:"\e70b"}.van-icon-revoke:before{content:"\e70c"}.van-icon-replay:before{content:"\e70d"}.van-icon-service:before{content:"\e70e"}.van-icon-question:before{content:"\e70f"}.van-icon-search:before{content:"\e710"}.van-icon-refund-o:before{content:"\e711"}.van-icon-service-o:before{content:"\e712"}.van-icon-scan:before{content:"\e713"}.van-icon-share:before{content:"\e714"}.van-icon-send-gift-o:before{content:"\e715"}.van-icon-share-o:before{content:"\e716"}.van-icon-setting:before{content:"\e717"}.van-icon-points:before{content:"\e718"}.van-icon-photograph:before{content:"\e719"}.van-icon-shop:before{content:"\e71a"}.van-icon-shop-o:before{content:"\e71b"}.van-icon-shop-collect-o:before{content:"\e71c"}.van-icon-shop-collect:before{content:"\e71d"}.van-icon-smile:before{content:"\e71e"}.van-icon-shopping-cart-o:before{content:"\e71f"}.van-icon-sign:before{content:"\e720"}.van-icon-sort:before{content:"\e721"}.van-icon-star-o:before{content:"\e722"}.van-icon-smile-comment-o:before{content:"\e723"}.van-icon-stop:before{content:"\e724"}.van-icon-stop-circle-o:before{content:"\e725"}.van-icon-smile-o:before{content:"\e726"}.van-icon-star:before{content:"\e727"}.van-icon-success:before{content:"\e728"}.van-icon-stop-circle:before{content:"\e729"}.van-icon-records:before{content:"\e72a"}.van-icon-shopping-cart:before{content:"\e72b"}.van-icon-tosend:before{content:"\e72c"}.van-icon-todo-list:before{content:"\e72d"}.van-icon-thumb-circle-o:before{content:"\e72e"}.van-icon-thumb-circle:before{content:"\e72f"}.van-icon-umbrella-circle:before{content:"\e730"}.van-icon-underway:before{content:"\e731"}.van-icon-upgrade:before{content:"\e732"}.van-icon-todo-list-o:before{content:"\e733"}.van-icon-tv-o:before{content:"\e734"}.van-icon-underway-o:before{content:"\e735"}.van-icon-user-o:before{content:"\e736"}.van-icon-vip-card-o:before{content:"\e737"}.van-icon-vip-card:before{content:"\e738"}.van-icon-send-gift:before{content:"\e739"}.van-icon-wap-home:before{content:"\e73a"}.van-icon-wap-nav:before{content:"\e73b"}.van-icon-volume-o:before{content:"\e73c"}.van-icon-video:before{content:"\e73d"}.van-icon-wap-home-o:before{content:"\e73e"}.van-icon-volume:before{content:"\e73f"}.van-icon-warning:before{content:"\e740"}.van-icon-weapp-nav:before{content:"\e741"}.van-icon-wechat-pay:before{content:"\e742"}.van-icon-warning-o:before{content:"\e743"}.van-icon-wechat:before{content:"\e744"}.van-icon-setting-o:before{content:"\e745"}.van-icon-youzan-shield:before{content:"\e746"}.van-icon-warn-o:before{content:"\e747"}.van-icon-smile-comment:before{content:"\e748"}.van-icon-user-circle-o:before{content:"\e749"}.van-icon-video-o:before{content:"\e74a"}.van-icon-add-square:before{content:"\e65c"}.van-icon-add:before{content:"\e65d"}.van-icon-arrow-down:before{content:"\e65e"}.van-icon-arrow-up:before{content:"\e65f"}.van-icon-arrow:before{content:"\e660"}.van-icon-after-sale:before{content:"\e661"}.van-icon-add-o:before{content:"\e662"}.van-icon-alipay:before{content:"\e663"}.van-icon-ascending:before{content:"\e664"}.van-icon-apps-o:before{content:"\e665"}.van-icon-aim:before{content:"\e666"}.van-icon-award:before{content:"\e667"}.van-icon-arrow-left:before{content:"\e668"}.van-icon-award-o:before{content:"\e669"}.van-icon-audio:before{content:"\e66a"}.van-icon-bag-o:before{content:"\e66b"}.van-icon-balance-list:before{content:"\e66c"}.van-icon-back-top:before{content:"\e66d"}.van-icon-bag:before{content:"\e66e"}.van-icon-balance-pay:before{content:"\e66f"}.van-icon-balance-o:before{content:"\e670"}.van-icon-bar-chart-o:before{content:"\e671"}.van-icon-bars:before{content:"\e672"}.van-icon-balance-list-o:before{content:"\e673"}.van-icon-birthday-cake-o:before{content:"\e674"}.van-icon-bookmark:before{content:"\e675"}.van-icon-bill:before{content:"\e676"}.van-icon-bell:before{content:"\e677"}.van-icon-browsing-history-o:before{content:"\e678"}.van-icon-browsing-history:before{content:"\e679"}.van-icon-bookmark-o:before{content:"\e67a"}.van-icon-bulb-o:before{content:"\e67b"}.van-icon-bullhorn-o:before{content:"\e67c"}.van-icon-bill-o:before{content:"\e67d"}.van-icon-calendar-o:before{content:"\e67e"}.van-icon-brush-o:before{content:"\e67f"}.van-icon-card:before{content:"\e680"}.van-icon-cart-o:before{content:"\e681"}.van-icon-cart-circle:before{content:"\e682"}.van-icon-cart-circle-o:before{content:"\e683"}.van-icon-cart:before{content:"\e684"}.van-icon-cash-on-deliver:before{content:"\e685"}.van-icon-cash-back-record:before{content:"\e686"}.van-icon-cashier-o:before{content:"\e687"}.van-icon-chart-trending-o:before{content:"\e688"}.van-icon-certificate:before{content:"\e689"}.van-icon-chat:before{content:"\e68a"}.van-icon-clear:before{content:"\e68b"}.van-icon-chat-o:before{content:"\e68c"}.van-icon-checked:before{content:"\e68d"}.van-icon-clock:before{content:"\e68e"}.van-icon-clock-o:before{content:"\e68f"}.van-icon-close:before{content:"\e690"}.van-icon-closed-eye:before{content:"\e691"}.van-icon-circle:before{content:"\e692"}.van-icon-cluster-o:before{content:"\e693"}.van-icon-column:before{content:"\e694"}.van-icon-comment-circle-o:before{content:"\e695"}.van-icon-cluster:before{content:"\e696"}.van-icon-comment:before{content:"\e697"}.van-icon-comment-o:before{content:"\e698"}.van-icon-comment-circle:before{content:"\e699"}.van-icon-completed:before{content:"\e69a"}.van-icon-credit-pay:before{content:"\e69b"}.van-icon-coupon:before{content:"\e69c"}.van-icon-debit-pay:before{content:"\e69d"}.van-icon-coupon-o:before{content:"\e69e"}.van-icon-contact:before{content:"\e69f"}.van-icon-descending:before{content:"\e6a0"}.van-icon-desktop-o:before{content:"\e6a1"}.van-icon-diamond-o:before{content:"\e6a2"}.van-icon-description:before{content:"\e6a3"}.van-icon-delete:before{content:"\e6a4"}.van-icon-diamond:before{content:"\e6a5"}.van-icon-delete-o:before{content:"\e6a6"}.van-icon-cross:before{content:"\e6a7"}.van-icon-edit:before{content:"\e6a8"}.van-icon-ellipsis:before{content:"\e6a9"}.van-icon-down:before{content:"\e6aa"}.van-icon-discount:before{content:"\e6ab"}.van-icon-ecard-pay:before{content:"\e6ac"}.van-icon-envelop-o:before{content:"\e6ae"}.van-icon-shield-o:before{content:"\e74b"}@font-face{font-weight:400;font-style:normal;font-display:auto;font-family:vant-icon;src:url(//at.alicdn.com/t/font_2553510_3bs9b5licix.woff2?t=1626956973644) format("woff2"),url(//at.alicdn.com/t/font_2553510_3bs9b5licix.woff?t=1626956973644) format("woff"),url(//at.alicdn.com/t/font_2553510_3bs9b5licix.ttf?t=1626956973644) format("truetype")}:host{display:inline-flex;align-items:center;justify-content:center}.van-icon--image{width:1em;height:1em}.van-icon__image{width:100%;height:100%}.van-icon__info{z-index:1}
\ No newline at end of file
+@import '../common/index.wxss';.van-icon{position:relative;font:normal normal normal 14px/1 vant-icon;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased}.van-icon,.van-icon:before{display:inline-block}.van-icon-exchange:before{content:"\e6af"}.van-icon-eye:before{content:"\e6b0"}.van-icon-enlarge:before{content:"\e6b1"}.van-icon-expand-o:before{content:"\e6b2"}.van-icon-eye-o:before{content:"\e6b3"}.van-icon-expand:before{content:"\e6b4"}.van-icon-filter-o:before{content:"\e6b5"}.van-icon-fire:before{content:"\e6b6"}.van-icon-fail:before{content:"\e6b7"}.van-icon-failure:before{content:"\e6b8"}.van-icon-fire-o:before{content:"\e6b9"}.van-icon-flag-o:before{content:"\e6ba"}.van-icon-font:before{content:"\e6bb"}.van-icon-font-o:before{content:"\e6bc"}.van-icon-gem-o:before{content:"\e6bd"}.van-icon-flower-o:before{content:"\e6be"}.van-icon-gem:before{content:"\e6bf"}.van-icon-gift-card:before{content:"\e6c0"}.van-icon-friends:before{content:"\e6c1"}.van-icon-friends-o:before{content:"\e6c2"}.van-icon-gold-coin:before{content:"\e6c3"}.van-icon-gold-coin-o:before{content:"\e6c4"}.van-icon-good-job-o:before{content:"\e6c5"}.van-icon-gift:before{content:"\e6c6"}.van-icon-gift-o:before{content:"\e6c7"}.van-icon-gift-card-o:before{content:"\e6c8"}.van-icon-good-job:before{content:"\e6c9"}.van-icon-home-o:before{content:"\e6ca"}.van-icon-goods-collect:before{content:"\e6cb"}.van-icon-graphic:before{content:"\e6cc"}.van-icon-goods-collect-o:before{content:"\e6cd"}.van-icon-hot-o:before{content:"\e6ce"}.van-icon-info:before{content:"\e6cf"}.van-icon-hotel-o:before{content:"\e6d0"}.van-icon-info-o:before{content:"\e6d1"}.van-icon-hot-sale-o:before{content:"\e6d2"}.van-icon-hot:before{content:"\e6d3"}.van-icon-like:before{content:"\e6d4"}.van-icon-idcard:before{content:"\e6d5"}.van-icon-invitation:before{content:"\e6d6"}.van-icon-like-o:before{content:"\e6d7"}.van-icon-hot-sale:before{content:"\e6d8"}.van-icon-location-o:before{content:"\e6d9"}.van-icon-location:before{content:"\e6da"}.van-icon-label:before{content:"\e6db"}.van-icon-lock:before{content:"\e6dc"}.van-icon-label-o:before{content:"\e6dd"}.van-icon-map-marked:before{content:"\e6de"}.van-icon-logistics:before{content:"\e6df"}.van-icon-manager:before{content:"\e6e0"}.van-icon-more:before{content:"\e6e1"}.van-icon-live:before{content:"\e6e2"}.van-icon-manager-o:before{content:"\e6e3"}.van-icon-medal:before{content:"\e6e4"}.van-icon-more-o:before{content:"\e6e5"}.van-icon-music-o:before{content:"\e6e6"}.van-icon-music:before{content:"\e6e7"}.van-icon-new-arrival-o:before{content:"\e6e8"}.van-icon-medal-o:before{content:"\e6e9"}.van-icon-new-o:before{content:"\e6ea"}.van-icon-free-postage:before{content:"\e6eb"}.van-icon-newspaper-o:before{content:"\e6ec"}.van-icon-new-arrival:before{content:"\e6ed"}.van-icon-minus:before{content:"\e6ee"}.van-icon-orders-o:before{content:"\e6ef"}.van-icon-new:before{content:"\e6f0"}.van-icon-paid:before{content:"\e6f1"}.van-icon-notes-o:before{content:"\e6f2"}.van-icon-other-pay:before{content:"\e6f3"}.van-icon-pause-circle:before{content:"\e6f4"}.van-icon-pause:before{content:"\e6f5"}.van-icon-pause-circle-o:before{content:"\e6f6"}.van-icon-peer-pay:before{content:"\e6f7"}.van-icon-pending-payment:before{content:"\e6f8"}.van-icon-passed:before{content:"\e6f9"}.van-icon-plus:before{content:"\e6fa"}.van-icon-phone-circle-o:before{content:"\e6fb"}.van-icon-phone-o:before{content:"\e6fc"}.van-icon-printer:before{content:"\e6fd"}.van-icon-photo-fail:before{content:"\e6fe"}.van-icon-phone:before{content:"\e6ff"}.van-icon-photo-o:before{content:"\e700"}.van-icon-play-circle:before{content:"\e701"}.van-icon-play:before{content:"\e702"}.van-icon-phone-circle:before{content:"\e703"}.van-icon-point-gift-o:before{content:"\e704"}.van-icon-point-gift:before{content:"\e705"}.van-icon-play-circle-o:before{content:"\e706"}.van-icon-shrink:before{content:"\e707"}.van-icon-photo:before{content:"\e708"}.van-icon-qr:before{content:"\e709"}.van-icon-qr-invalid:before{content:"\e70a"}.van-icon-question-o:before{content:"\e70b"}.van-icon-revoke:before{content:"\e70c"}.van-icon-replay:before{content:"\e70d"}.van-icon-service:before{content:"\e70e"}.van-icon-question:before{content:"\e70f"}.van-icon-search:before{content:"\e710"}.van-icon-refund-o:before{content:"\e711"}.van-icon-service-o:before{content:"\e712"}.van-icon-scan:before{content:"\e713"}.van-icon-share:before{content:"\e714"}.van-icon-send-gift-o:before{content:"\e715"}.van-icon-share-o:before{content:"\e716"}.van-icon-setting:before{content:"\e717"}.van-icon-points:before{content:"\e718"}.van-icon-photograph:before{content:"\e719"}.van-icon-shop:before{content:"\e71a"}.van-icon-shop-o:before{content:"\e71b"}.van-icon-shop-collect-o:before{content:"\e71c"}.van-icon-shop-collect:before{content:"\e71d"}.van-icon-smile:before{content:"\e71e"}.van-icon-shopping-cart-o:before{content:"\e71f"}.van-icon-sign:before{content:"\e720"}.van-icon-sort:before{content:"\e721"}.van-icon-star-o:before{content:"\e722"}.van-icon-smile-comment-o:before{content:"\e723"}.van-icon-stop:before{content:"\e724"}.van-icon-stop-circle-o:before{content:"\e725"}.van-icon-smile-o:before{content:"\e726"}.van-icon-star:before{content:"\e727"}.van-icon-success:before{content:"\e728"}.van-icon-stop-circle:before{content:"\e729"}.van-icon-records:before{content:"\e72a"}.van-icon-shopping-cart:before{content:"\e72b"}.van-icon-tosend:before{content:"\e72c"}.van-icon-todo-list:before{content:"\e72d"}.van-icon-thumb-circle-o:before{content:"\e72e"}.van-icon-thumb-circle:before{content:"\e72f"}.van-icon-umbrella-circle:before{content:"\e730"}.van-icon-underway:before{content:"\e731"}.van-icon-upgrade:before{content:"\e732"}.van-icon-todo-list-o:before{content:"\e733"}.van-icon-tv-o:before{content:"\e734"}.van-icon-underway-o:before{content:"\e735"}.van-icon-user-o:before{content:"\e736"}.van-icon-vip-card-o:before{content:"\e737"}.van-icon-vip-card:before{content:"\e738"}.van-icon-send-gift:before{content:"\e739"}.van-icon-wap-home:before{content:"\e73a"}.van-icon-wap-nav:before{content:"\e73b"}.van-icon-volume-o:before{content:"\e73c"}.van-icon-video:before{content:"\e73d"}.van-icon-wap-home-o:before{content:"\e73e"}.van-icon-volume:before{content:"\e73f"}.van-icon-warning:before{content:"\e740"}.van-icon-weapp-nav:before{content:"\e741"}.van-icon-wechat-pay:before{content:"\e742"}.van-icon-warning-o:before{content:"\e743"}.van-icon-wechat:before{content:"\e744"}.van-icon-setting-o:before{content:"\e745"}.van-icon-youzan-shield:before{content:"\e746"}.van-icon-warn-o:before{content:"\e747"}.van-icon-smile-comment:before{content:"\e748"}.van-icon-user-circle-o:before{content:"\e749"}.van-icon-video-o:before{content:"\e74a"}.van-icon-add-square:before{content:"\e65c"}.van-icon-add:before{content:"\e65d"}.van-icon-arrow-down:before{content:"\e65e"}.van-icon-arrow-up:before{content:"\e65f"}.van-icon-arrow:before{content:"\e660"}.van-icon-after-sale:before{content:"\e661"}.van-icon-add-o:before{content:"\e662"}.van-icon-alipay:before{content:"\e663"}.van-icon-ascending:before{content:"\e664"}.van-icon-apps-o:before{content:"\e665"}.van-icon-aim:before{content:"\e666"}.van-icon-award:before{content:"\e667"}.van-icon-arrow-left:before{content:"\e668"}.van-icon-award-o:before{content:"\e669"}.van-icon-audio:before{content:"\e66a"}.van-icon-bag-o:before{content:"\e66b"}.van-icon-balance-list:before{content:"\e66c"}.van-icon-back-top:before{content:"\e66d"}.van-icon-bag:before{content:"\e66e"}.van-icon-balance-pay:before{content:"\e66f"}.van-icon-balance-o:before{content:"\e670"}.van-icon-bar-chart-o:before{content:"\e671"}.van-icon-bars:before{content:"\e672"}.van-icon-balance-list-o:before{content:"\e673"}.van-icon-birthday-cake-o:before{content:"\e674"}.van-icon-bookmark:before{content:"\e675"}.van-icon-bill:before{content:"\e676"}.van-icon-bell:before{content:"\e677"}.van-icon-browsing-history-o:before{content:"\e678"}.van-icon-browsing-history:before{content:"\e679"}.van-icon-bookmark-o:before{content:"\e67a"}.van-icon-bulb-o:before{content:"\e67b"}.van-icon-bullhorn-o:before{content:"\e67c"}.van-icon-bill-o:before{content:"\e67d"}.van-icon-calendar-o:before{content:"\e67e"}.van-icon-brush-o:before{content:"\e67f"}.van-icon-card:before{content:"\e680"}.van-icon-cart-o:before{content:"\e681"}.van-icon-cart-circle:before{content:"\e682"}.van-icon-cart-circle-o:before{content:"\e683"}.van-icon-cart:before{content:"\e684"}.van-icon-cash-on-deliver:before{content:"\e685"}.van-icon-cash-back-record:before{content:"\e686"}.van-icon-cashier-o:before{content:"\e687"}.van-icon-chart-trending-o:before{content:"\e688"}.van-icon-certificate:before{content:"\e689"}.van-icon-chat:before{content:"\e68a"}.van-icon-clear:before{content:"\e68b"}.van-icon-chat-o:before{content:"\e68c"}.van-icon-checked:before{content:"\e68d"}.van-icon-clock:before{content:"\e68e"}.van-icon-clock-o:before{content:"\e68f"}.van-icon-close:before{content:"\e690"}.van-icon-closed-eye:before{content:"\e691"}.van-icon-circle:before{content:"\e692"}.van-icon-cluster-o:before{content:"\e693"}.van-icon-column:before{content:"\e694"}.van-icon-comment-circle-o:before{content:"\e695"}.van-icon-cluster:before{content:"\e696"}.van-icon-comment:before{content:"\e697"}.van-icon-comment-o:before{content:"\e698"}.van-icon-comment-circle:before{content:"\e699"}.van-icon-completed:before{content:"\e69a"}.van-icon-credit-pay:before{content:"\e69b"}.van-icon-coupon:before{content:"\e69c"}.van-icon-debit-pay:before{content:"\e69d"}.van-icon-coupon-o:before{content:"\e69e"}.van-icon-contact:before{content:"\e69f"}.van-icon-descending:before{content:"\e6a0"}.van-icon-desktop-o:before{content:"\e6a1"}.van-icon-diamond-o:before{content:"\e6a2"}.van-icon-description:before{content:"\e6a3"}.van-icon-delete:before{content:"\e6a4"}.van-icon-diamond:before{content:"\e6a5"}.van-icon-delete-o:before{content:"\e6a6"}.van-icon-cross:before{content:"\e6a7"}.van-icon-edit:before{content:"\e6a8"}.van-icon-ellipsis:before{content:"\e6a9"}.van-icon-down:before{content:"\e6aa"}.van-icon-discount:before{content:"\e6ab"}.van-icon-ecard-pay:before{content:"\e6ac"}.van-icon-envelop-o:before{content:"\e6ae"}.van-icon-shield-o:before{content:"\e74b"}.van-icon-guide-o:before{content:"\e74c"}@font-face{font-weight:400;font-style:normal;font-display:auto;font-family:vant-icon;src:url(//at.alicdn.com/t/font_2553510_61agzg96wm8.woff2?t=1631948257467) format("woff2"),url(//at.alicdn.com/t/font_2553510_61agzg96wm8.woff?t=1631948257467) format("woff"),url(//at.alicdn.com/t/font_2553510_61agzg96wm8.ttf?t=1631948257467) format("truetype")}:host{display:inline-flex;align-items:center;justify-content:center}.van-icon--image{width:1em;height:1em}.van-icon__image{width:100%;height:100%}.van-icon__info{z-index:1}
\ No newline at end of file
diff --git a/dist/image/index.js b/dist/image/index.js
index 74054267..06c9dd15 100644
--- a/dist/image/index.js
+++ b/dist/image/index.js
@@ -1,60 +1,60 @@
import { VantComponent } from '../common/component';
import { button } from '../mixins/button';
VantComponent({
- mixins: [button],
- classes: ['custom-class', 'loading-class', 'error-class', 'image-class'],
- props: {
- src: {
- type: String,
- observer() {
- this.setData({
- error: false,
- loading: true,
- });
- },
+ mixins: [button],
+ classes: ['custom-class', 'loading-class', 'error-class', 'image-class'],
+ props: {
+ src: {
+ type: String,
+ observer() {
+ this.setData({
+ error: false,
+ loading: true,
+ });
+ },
+ },
+ round: Boolean,
+ width: null,
+ height: null,
+ radius: null,
+ lazyLoad: Boolean,
+ useErrorSlot: Boolean,
+ useLoadingSlot: Boolean,
+ showMenuByLongpress: Boolean,
+ fit: {
+ type: String,
+ value: 'fill',
+ },
+ showError: {
+ type: Boolean,
+ value: true,
+ },
+ showLoading: {
+ type: Boolean,
+ value: true,
+ },
},
- round: Boolean,
- width: null,
- height: null,
- radius: null,
- lazyLoad: Boolean,
- useErrorSlot: Boolean,
- useLoadingSlot: Boolean,
- showMenuByLongpress: Boolean,
- fit: {
- type: String,
- value: 'fill',
+ data: {
+ error: false,
+ loading: true,
+ viewStyle: '',
},
- showError: {
- type: Boolean,
- value: true,
+ methods: {
+ onLoad(event) {
+ this.setData({
+ loading: false,
+ });
+ this.$emit('load', event.detail);
+ },
+ onError(event) {
+ this.setData({
+ loading: false,
+ error: true,
+ });
+ this.$emit('error', event.detail);
+ },
+ onClick(event) {
+ this.$emit('click', event.detail);
+ },
},
- showLoading: {
- type: Boolean,
- value: true,
- },
- },
- data: {
- error: false,
- loading: true,
- viewStyle: '',
- },
- methods: {
- onLoad(event) {
- this.setData({
- loading: false,
- });
- this.$emit('load', event.detail);
- },
- onError(event) {
- this.setData({
- loading: false,
- error: true,
- });
- this.$emit('error', event.detail);
- },
- onClick(event) {
- this.$emit('click', event.detail);
- },
- },
});
diff --git a/dist/index-anchor/index.js b/dist/index-anchor/index.js
index 7d81508f..85265e95 100644
--- a/dist/index-anchor/index.js
+++ b/dist/index-anchor/index.js
@@ -2,24 +2,24 @@ import { getRect } from '../common/utils';
import { VantComponent } from '../common/component';
import { useParent } from '../common/relation';
VantComponent({
- relation: useParent('index-bar'),
- props: {
- useSlot: Boolean,
- index: null,
- },
- data: {
- active: false,
- wrapperStyle: '',
- anchorStyle: '',
- },
- methods: {
- scrollIntoView(scrollTop) {
- getRect(this, '.van-index-anchor-wrapper').then((rect) => {
- wx.pageScrollTo({
- duration: 0,
- scrollTop: scrollTop + rect.top - this.parent.data.stickyOffsetTop,
- });
- });
+ relation: useParent('index-bar'),
+ props: {
+ useSlot: Boolean,
+ index: null,
+ },
+ data: {
+ active: false,
+ wrapperStyle: '',
+ anchorStyle: '',
+ },
+ methods: {
+ scrollIntoView(scrollTop) {
+ getRect(this, '.van-index-anchor-wrapper').then((rect) => {
+ wx.pageScrollTo({
+ duration: 0,
+ scrollTop: scrollTop + rect.top - this.parent.data.stickyOffsetTop,
+ });
+ });
+ },
},
- },
});
diff --git a/dist/index-bar/index.js b/dist/index-bar/index.js
index 0df8a7bd..201b2e36 100644
--- a/dist/index-bar/index.js
+++ b/dist/index-bar/index.js
@@ -4,245 +4,240 @@ import { useChildren } from '../common/relation';
import { getRect, isDef } from '../common/utils';
import { pageScrollMixin } from '../mixins/page-scroll';
const indexList = () => {
- const indexList = [];
- const charCodeOfA = 'A'.charCodeAt(0);
- for (let i = 0; i < 26; i++) {
- indexList.push(String.fromCharCode(charCodeOfA + i));
- }
- return indexList;
+ const indexList = [];
+ const charCodeOfA = 'A'.charCodeAt(0);
+ for (let i = 0; i < 26; i++) {
+ indexList.push(String.fromCharCode(charCodeOfA + i));
+ }
+ return indexList;
};
VantComponent({
- relation: useChildren('index-anchor', function () {
- this.updateData();
- }),
- props: {
- sticky: {
- type: Boolean,
- value: true,
- },
- zIndex: {
- type: Number,
- value: 1,
- },
- highlightColor: {
- type: String,
- value: GREEN,
- },
- stickyOffsetTop: {
- type: Number,
- value: 0,
- },
- indexList: {
- type: Array,
- value: indexList(),
- },
- },
- mixins: [
- pageScrollMixin(function (event) {
- this.scrollTop =
- (event === null || event === void 0 ? void 0 : event.scrollTop) || 0;
- this.onScroll();
+ relation: useChildren('index-anchor', function () {
+ this.updateData();
}),
- ],
- data: {
- activeAnchorIndex: null,
- showSidebar: false,
- },
- created() {
- this.scrollTop = 0;
- },
- methods: {
- updateData() {
- wx.nextTick(() => {
- if (this.timer != null) {
- clearTimeout(this.timer);
- }
- this.timer = setTimeout(() => {
- this.setData({
- showSidebar: !!this.children.length,
- });
- this.setRect().then(() => {
- this.onScroll();
- });
- }, 0);
- });
- },
- setRect() {
- return Promise.all([
- this.setAnchorsRect(),
- this.setListRect(),
- this.setSiderbarRect(),
- ]);
- },
- setAnchorsRect() {
- return Promise.all(
- this.children.map((anchor) =>
- getRect(anchor, '.van-index-anchor-wrapper').then((rect) => {
- Object.assign(anchor, {
- height: rect.height,
- top: rect.top + this.scrollTop,
- });
- })
- )
- );
- },
- setListRect() {
- return getRect(this, '.van-index-bar').then((rect) => {
- Object.assign(this, {
- height: rect.height,
- top: rect.top + this.scrollTop,
- });
- });
- },
- setSiderbarRect() {
- return getRect(this, '.van-index-bar__sidebar').then((res) => {
- if (!isDef(res)) {
- return;
- }
- this.sidebar = {
- height: res.height,
- top: res.top,
- };
- });
- },
- setDiffData({ target, data }) {
- const diffData = {};
- Object.keys(data).forEach((key) => {
- if (target.data[key] !== data[key]) {
- diffData[key] = data[key];
- }
- });
- if (Object.keys(diffData).length) {
- target.setData(diffData);
- }
- },
- getAnchorRect(anchor) {
- return getRect(anchor, '.van-index-anchor-wrapper').then((rect) => ({
- height: rect.height,
- top: rect.top,
- }));
- },
- getActiveAnchorIndex() {
- const { children, scrollTop } = this;
- const { sticky, stickyOffsetTop } = this.data;
- for (let i = this.children.length - 1; i >= 0; i--) {
- const preAnchorHeight = i > 0 ? children[i - 1].height : 0;
- const reachTop = sticky ? preAnchorHeight + stickyOffsetTop : 0;
- if (reachTop + scrollTop >= children[i].top) {
- return i;
- }
- }
- return -1;
- },
- onScroll() {
- const { children = [], scrollTop } = this;
- if (!children.length) {
- return;
- }
- const { sticky, stickyOffsetTop, zIndex, highlightColor } = this.data;
- const active = this.getActiveAnchorIndex();
- this.setDiffData({
- target: this,
- data: {
- activeAnchorIndex: active,
+ props: {
+ sticky: {
+ type: Boolean,
+ value: true,
},
- });
- if (sticky) {
- let isActiveAnchorSticky = false;
- if (active !== -1) {
- isActiveAnchorSticky =
- children[active].top <= stickyOffsetTop + scrollTop;
- }
- children.forEach((item, index) => {
- if (index === active) {
- let wrapperStyle = '';
- let anchorStyle = `
+ zIndex: {
+ type: Number,
+ value: 1,
+ },
+ highlightColor: {
+ type: String,
+ value: GREEN,
+ },
+ stickyOffsetTop: {
+ type: Number,
+ value: 0,
+ },
+ indexList: {
+ type: Array,
+ value: indexList(),
+ },
+ },
+ mixins: [
+ pageScrollMixin(function (event) {
+ this.scrollTop = (event === null || event === void 0 ? void 0 : event.scrollTop) || 0;
+ this.onScroll();
+ }),
+ ],
+ data: {
+ activeAnchorIndex: null,
+ showSidebar: false,
+ },
+ created() {
+ this.scrollTop = 0;
+ },
+ methods: {
+ updateData() {
+ wx.nextTick(() => {
+ if (this.timer != null) {
+ clearTimeout(this.timer);
+ }
+ this.timer = setTimeout(() => {
+ this.setData({
+ showSidebar: !!this.children.length,
+ });
+ this.setRect().then(() => {
+ this.onScroll();
+ });
+ }, 0);
+ });
+ },
+ setRect() {
+ return Promise.all([
+ this.setAnchorsRect(),
+ this.setListRect(),
+ this.setSiderbarRect(),
+ ]);
+ },
+ setAnchorsRect() {
+ return Promise.all(this.children.map((anchor) => getRect(anchor, '.van-index-anchor-wrapper').then((rect) => {
+ Object.assign(anchor, {
+ height: rect.height,
+ top: rect.top + this.scrollTop,
+ });
+ })));
+ },
+ setListRect() {
+ return getRect(this, '.van-index-bar').then((rect) => {
+ Object.assign(this, {
+ height: rect.height,
+ top: rect.top + this.scrollTop,
+ });
+ });
+ },
+ setSiderbarRect() {
+ return getRect(this, '.van-index-bar__sidebar').then((res) => {
+ if (!isDef(res)) {
+ return;
+ }
+ this.sidebar = {
+ height: res.height,
+ top: res.top,
+ };
+ });
+ },
+ setDiffData({ target, data }) {
+ const diffData = {};
+ Object.keys(data).forEach((key) => {
+ if (target.data[key] !== data[key]) {
+ diffData[key] = data[key];
+ }
+ });
+ if (Object.keys(diffData).length) {
+ target.setData(diffData);
+ }
+ },
+ getAnchorRect(anchor) {
+ return getRect(anchor, '.van-index-anchor-wrapper').then((rect) => ({
+ height: rect.height,
+ top: rect.top,
+ }));
+ },
+ getActiveAnchorIndex() {
+ const { children, scrollTop } = this;
+ const { sticky, stickyOffsetTop } = this.data;
+ for (let i = this.children.length - 1; i >= 0; i--) {
+ const preAnchorHeight = i > 0 ? children[i - 1].height : 0;
+ const reachTop = sticky ? preAnchorHeight + stickyOffsetTop : 0;
+ if (reachTop + scrollTop >= children[i].top) {
+ return i;
+ }
+ }
+ return -1;
+ },
+ onScroll() {
+ const { children = [], scrollTop } = this;
+ if (!children.length) {
+ return;
+ }
+ const { sticky, stickyOffsetTop, zIndex, highlightColor } = this.data;
+ const active = this.getActiveAnchorIndex();
+ this.setDiffData({
+ target: this,
+ data: {
+ activeAnchorIndex: active,
+ },
+ });
+ if (sticky) {
+ let isActiveAnchorSticky = false;
+ if (active !== -1) {
+ isActiveAnchorSticky =
+ children[active].top <= stickyOffsetTop + scrollTop;
+ }
+ children.forEach((item, index) => {
+ if (index === active) {
+ let wrapperStyle = '';
+ let anchorStyle = `
color: ${highlightColor};
`;
- if (isActiveAnchorSticky) {
- wrapperStyle = `
+ if (isActiveAnchorSticky) {
+ wrapperStyle = `
height: ${children[index].height}px;
`;
- anchorStyle = `
+ anchorStyle = `
position: fixed;
top: ${stickyOffsetTop}px;
z-index: ${zIndex};
color: ${highlightColor};
`;
- }
- this.setDiffData({
- target: item,
- data: {
- active: true,
- anchorStyle,
- wrapperStyle,
- },
- });
- } else if (index === active - 1) {
- const currentAnchor = children[index];
- const currentOffsetTop = currentAnchor.top;
- const targetOffsetTop =
- index === children.length - 1
- ? this.top
- : children[index + 1].top;
- const parentOffsetHeight = targetOffsetTop - currentOffsetTop;
- const translateY = parentOffsetHeight - currentAnchor.height;
- const anchorStyle = `
+ }
+ this.setDiffData({
+ target: item,
+ data: {
+ active: true,
+ anchorStyle,
+ wrapperStyle,
+ },
+ });
+ }
+ else if (index === active - 1) {
+ const currentAnchor = children[index];
+ const currentOffsetTop = currentAnchor.top;
+ const targetOffsetTop = index === children.length - 1
+ ? this.top
+ : children[index + 1].top;
+ const parentOffsetHeight = targetOffsetTop - currentOffsetTop;
+ const translateY = parentOffsetHeight - currentAnchor.height;
+ const anchorStyle = `
position: relative;
transform: translate3d(0, ${translateY}px, 0);
z-index: ${zIndex};
color: ${highlightColor};
`;
- this.setDiffData({
- target: item,
- data: {
- active: true,
- anchorStyle,
- },
- });
- } else {
- this.setDiffData({
- target: item,
- data: {
- active: false,
- anchorStyle: '',
- wrapperStyle: '',
- },
- });
- }
- });
- }
+ this.setDiffData({
+ target: item,
+ data: {
+ active: true,
+ anchorStyle,
+ },
+ });
+ }
+ else {
+ this.setDiffData({
+ target: item,
+ data: {
+ active: false,
+ anchorStyle: '',
+ wrapperStyle: '',
+ },
+ });
+ }
+ });
+ }
+ },
+ onClick(event) {
+ this.scrollToAnchor(event.target.dataset.index);
+ },
+ onTouchMove(event) {
+ const sidebarLength = this.children.length;
+ const touch = event.touches[0];
+ const itemHeight = this.sidebar.height / sidebarLength;
+ let index = Math.floor((touch.clientY - this.sidebar.top) / itemHeight);
+ if (index < 0) {
+ index = 0;
+ }
+ else if (index > sidebarLength - 1) {
+ index = sidebarLength - 1;
+ }
+ this.scrollToAnchor(index);
+ },
+ onTouchStop() {
+ this.scrollToAnchorIndex = null;
+ },
+ scrollToAnchor(index) {
+ if (typeof index !== 'number' || this.scrollToAnchorIndex === index) {
+ return;
+ }
+ this.scrollToAnchorIndex = index;
+ const anchor = this.children.find((item) => item.data.index === this.data.indexList[index]);
+ if (anchor) {
+ anchor.scrollIntoView(this.scrollTop);
+ this.$emit('select', anchor.data.index);
+ }
+ },
},
- onClick(event) {
- this.scrollToAnchor(event.target.dataset.index);
- },
- onTouchMove(event) {
- const sidebarLength = this.children.length;
- const touch = event.touches[0];
- const itemHeight = this.sidebar.height / sidebarLength;
- let index = Math.floor((touch.clientY - this.sidebar.top) / itemHeight);
- if (index < 0) {
- index = 0;
- } else if (index > sidebarLength - 1) {
- index = sidebarLength - 1;
- }
- this.scrollToAnchor(index);
- },
- onTouchStop() {
- this.scrollToAnchorIndex = null;
- },
- scrollToAnchor(index) {
- if (typeof index !== 'number' || this.scrollToAnchorIndex === index) {
- return;
- }
- this.scrollToAnchorIndex = index;
- const anchor = this.children.find(
- (item) => item.data.index === this.data.indexList[index]
- );
- if (anchor) {
- anchor.scrollIntoView(this.scrollTop);
- this.$emit('select', anchor.data.index);
- }
- },
- },
});
diff --git a/dist/info/index.js b/dist/info/index.js
index 489f39cb..6eac8f8d 100644
--- a/dist/info/index.js
+++ b/dist/info/index.js
@@ -1,8 +1,8 @@
import { VantComponent } from '../common/component';
VantComponent({
- props: {
- dot: Boolean,
- info: null,
- customStyle: String,
- },
+ props: {
+ dot: Boolean,
+ info: null,
+ customStyle: String,
+ },
});
diff --git a/dist/loading/index.js b/dist/loading/index.js
index 2049447c..f5f96bad 100644
--- a/dist/loading/index.js
+++ b/dist/loading/index.js
@@ -1,16 +1,16 @@
import { VantComponent } from '../common/component';
VantComponent({
- props: {
- color: String,
- vertical: Boolean,
- type: {
- type: String,
- value: 'circular',
+ props: {
+ color: String,
+ vertical: Boolean,
+ type: {
+ type: String,
+ value: 'circular',
+ },
+ size: String,
+ textSize: String,
+ },
+ data: {
+ array12: Array.from({ length: 12 }),
},
- size: String,
- textSize: String,
- },
- data: {
- array12: Array.from({ length: 12 }),
- },
});
diff --git a/dist/mixins/basic.js b/dist/mixins/basic.js
index 9c59dc30..617cc070 100644
--- a/dist/mixins/basic.js
+++ b/dist/mixins/basic.js
@@ -1,11 +1,11 @@
export const basic = Behavior({
- methods: {
- $emit(name, detail, options) {
- this.triggerEvent(name, detail, options);
+ methods: {
+ $emit(name, detail, options) {
+ this.triggerEvent(name, detail, options);
+ },
+ set(data) {
+ this.setData(data);
+ return new Promise((resolve) => wx.nextTick(resolve));
+ },
},
- set(data) {
- this.setData(data);
- return new Promise((resolve) => wx.nextTick(resolve));
- },
- },
});
diff --git a/dist/mixins/button.js b/dist/mixins/button.js
index 320b561e..ac1e5697 100644
--- a/dist/mixins/button.js
+++ b/dist/mixins/button.js
@@ -1,41 +1,41 @@
import { canIUseGetUserProfile } from '../common/version';
export const button = Behavior({
- externalClasses: ['hover-class'],
- properties: {
- id: String,
- lang: String,
- businessId: Number,
- sessionFrom: String,
- sendMessageTitle: String,
- sendMessagePath: String,
- sendMessageImg: String,
- showMessageCard: Boolean,
- appParameter: String,
- ariaLabel: String,
- openType: String,
- getUserProfileDesc: String,
- },
- data: {
- canIUseGetUserProfile: canIUseGetUserProfile(),
- },
- methods: {
- onGetUserInfo(event) {
- this.triggerEvent('getuserinfo', event.detail);
+ externalClasses: ['hover-class'],
+ properties: {
+ id: String,
+ lang: String,
+ businessId: Number,
+ sessionFrom: String,
+ sendMessageTitle: String,
+ sendMessagePath: String,
+ sendMessageImg: String,
+ showMessageCard: Boolean,
+ appParameter: String,
+ ariaLabel: String,
+ openType: String,
+ getUserProfileDesc: String,
},
- onContact(event) {
- this.triggerEvent('contact', event.detail);
+ data: {
+ canIUseGetUserProfile: canIUseGetUserProfile(),
},
- onGetPhoneNumber(event) {
- this.triggerEvent('getphonenumber', event.detail);
+ methods: {
+ onGetUserInfo(event) {
+ this.triggerEvent('getuserinfo', event.detail);
+ },
+ onContact(event) {
+ this.triggerEvent('contact', event.detail);
+ },
+ onGetPhoneNumber(event) {
+ this.triggerEvent('getphonenumber', event.detail);
+ },
+ onError(event) {
+ this.triggerEvent('error', event.detail);
+ },
+ onLaunchApp(event) {
+ this.triggerEvent('launchapp', event.detail);
+ },
+ onOpenSetting(event) {
+ this.triggerEvent('opensetting', event.detail);
+ },
},
- onError(event) {
- this.triggerEvent('error', event.detail);
- },
- onLaunchApp(event) {
- this.triggerEvent('launchapp', event.detail);
- },
- onOpenSetting(event) {
- this.triggerEvent('opensetting', event.detail);
- },
- },
});
diff --git a/dist/mixins/link.js b/dist/mixins/link.js
index 4612e340..8c274e1d 100644
--- a/dist/mixins/link.js
+++ b/dist/mixins/link.js
@@ -1,24 +1,23 @@
export const link = Behavior({
- properties: {
- url: String,
- linkType: {
- type: String,
- value: 'navigateTo',
+ properties: {
+ url: String,
+ linkType: {
+ type: String,
+ value: 'navigateTo',
+ },
},
- },
- methods: {
- jumpLink(urlKey = 'url') {
- const url = this.data[urlKey];
- if (url) {
- if (
- this.data.linkType === 'navigateTo' &&
- getCurrentPages().length > 9
- ) {
- wx.redirectTo({ url });
- } else {
- wx[this.data.linkType]({ url });
- }
- }
+ methods: {
+ jumpLink(urlKey = 'url') {
+ const url = this.data[urlKey];
+ if (url) {
+ if (this.data.linkType === 'navigateTo' &&
+ getCurrentPages().length > 9) {
+ wx.redirectTo({ url });
+ }
+ else {
+ wx[this.data.linkType]({ url });
+ }
+ }
+ },
},
- },
});
diff --git a/dist/mixins/page-scroll.d.ts b/dist/mixins/page-scroll.d.ts
index a76f542c..a316bb86 100644
--- a/dist/mixins/page-scroll.d.ts
+++ b/dist/mixins/page-scroll.d.ts
@@ -1,8 +1,5 @@
///
declare type IPageScrollOption = WechatMiniprogram.Page.IPageScrollOption;
-declare type Scroller = (
- this: WechatMiniprogram.Component.TrivialInstance,
- event?: IPageScrollOption
-) => void;
+declare type Scroller = (this: WechatMiniprogram.Component.TrivialInstance, event?: IPageScrollOption) => void;
export declare const pageScrollMixin: (scroller: Scroller) => string;
export {};
diff --git a/dist/mixins/page-scroll.js b/dist/mixins/page-scroll.js
index f01e3ed8..a1a37f5e 100644
--- a/dist/mixins/page-scroll.js
+++ b/dist/mixins/page-scroll.js
@@ -1,35 +1,33 @@
import { getCurrentPage, isDef } from '../common/utils';
function onPageScroll(event) {
- const { vanPageScroller = [] } = getCurrentPage();
- vanPageScroller.forEach((scroller) => {
- if (typeof scroller === 'function') {
- // @ts-ignore
- scroller(event);
- }
- });
+ const { vanPageScroller = [] } = getCurrentPage();
+ vanPageScroller.forEach((scroller) => {
+ if (typeof scroller === 'function') {
+ // @ts-ignore
+ scroller(event);
+ }
+ });
}
-export const pageScrollMixin = (scroller) =>
- Behavior({
+export const pageScrollMixin = (scroller) => Behavior({
attached() {
- const page = getCurrentPage();
- if (Array.isArray(page.vanPageScroller)) {
- page.vanPageScroller.push(scroller.bind(this));
- } else {
- page.vanPageScroller =
- typeof page.onPageScroll === 'function'
- ? [page.onPageScroll.bind(page), scroller.bind(this)]
- : [scroller.bind(this)];
- }
- page.onPageScroll = onPageScroll;
+ const page = getCurrentPage();
+ if (Array.isArray(page.vanPageScroller)) {
+ page.vanPageScroller.push(scroller.bind(this));
+ }
+ else {
+ page.vanPageScroller =
+ typeof page.onPageScroll === 'function'
+ ? [page.onPageScroll.bind(page), scroller.bind(this)]
+ : [scroller.bind(this)];
+ }
+ page.onPageScroll = onPageScroll;
},
detached() {
- var _a;
- const page = getCurrentPage();
- if (isDef(page)) {
- page.vanPageScroller =
- ((_a = page.vanPageScroller) === null || _a === void 0
- ? void 0
- : _a.filter((item) => item !== scroller)) || [];
- }
+ var _a;
+ const page = getCurrentPage();
+ if (isDef(page)) {
+ page.vanPageScroller =
+ ((_a = page.vanPageScroller) === null || _a === void 0 ? void 0 : _a.filter((item) => item !== scroller)) || [];
+ }
},
- });
+});
diff --git a/dist/mixins/touch.js b/dist/mixins/touch.js
index c6e94c31..ecefae8e 100644
--- a/dist/mixins/touch.js
+++ b/dist/mixins/touch.js
@@ -1,37 +1,37 @@
// @ts-nocheck
const MIN_DISTANCE = 10;
function getDirection(x, y) {
- if (x > y && x > MIN_DISTANCE) {
- return 'horizontal';
- }
- if (y > x && y > MIN_DISTANCE) {
- return 'vertical';
- }
- return '';
+ if (x > y && x > MIN_DISTANCE) {
+ return 'horizontal';
+ }
+ if (y > x && y > MIN_DISTANCE) {
+ return 'vertical';
+ }
+ return '';
}
export const touch = Behavior({
- methods: {
- resetTouchStatus() {
- this.direction = '';
- this.deltaX = 0;
- this.deltaY = 0;
- this.offsetX = 0;
- this.offsetY = 0;
+ methods: {
+ resetTouchStatus() {
+ this.direction = '';
+ this.deltaX = 0;
+ this.deltaY = 0;
+ this.offsetX = 0;
+ this.offsetY = 0;
+ },
+ touchStart(event) {
+ this.resetTouchStatus();
+ const touch = event.touches[0];
+ this.startX = touch.clientX;
+ this.startY = touch.clientY;
+ },
+ touchMove(event) {
+ const touch = event.touches[0];
+ this.deltaX = touch.clientX - this.startX;
+ this.deltaY = touch.clientY - this.startY;
+ this.offsetX = Math.abs(this.deltaX);
+ this.offsetY = Math.abs(this.deltaY);
+ this.direction =
+ this.direction || getDirection(this.offsetX, this.offsetY);
+ },
},
- touchStart(event) {
- this.resetTouchStatus();
- const touch = event.touches[0];
- this.startX = touch.clientX;
- this.startY = touch.clientY;
- },
- touchMove(event) {
- const touch = event.touches[0];
- this.deltaX = touch.clientX - this.startX;
- this.deltaY = touch.clientY - this.startY;
- this.offsetX = Math.abs(this.deltaX);
- this.offsetY = Math.abs(this.deltaY);
- this.direction =
- this.direction || getDirection(this.offsetX, this.offsetY);
- },
- },
});
diff --git a/dist/mixins/transition.js b/dist/mixins/transition.js
index 3b3ec774..bc7fc8eb 100644
--- a/dist/mixins/transition.js
+++ b/dist/mixins/transition.js
@@ -2,114 +2,114 @@
import { requestAnimationFrame } from '../common/utils';
import { isObj } from '../common/validator';
const getClassNames = (name) => ({
- enter: `van-${name}-enter van-${name}-enter-active enter-class enter-active-class`,
- 'enter-to': `van-${name}-enter-to van-${name}-enter-active enter-to-class enter-active-class`,
- leave: `van-${name}-leave van-${name}-leave-active leave-class leave-active-class`,
- 'leave-to': `van-${name}-leave-to van-${name}-leave-active leave-to-class leave-active-class`,
+ enter: `van-${name}-enter van-${name}-enter-active enter-class enter-active-class`,
+ 'enter-to': `van-${name}-enter-to van-${name}-enter-active enter-to-class enter-active-class`,
+ leave: `van-${name}-leave van-${name}-leave-active leave-class leave-active-class`,
+ 'leave-to': `van-${name}-leave-to van-${name}-leave-active leave-to-class leave-active-class`,
});
export function transition(showDefaultValue) {
- return Behavior({
- properties: {
- 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',
- },
- },
- data: {
- type: '',
- inited: false,
- display: false,
- },
- ready() {
- if (this.data.show === true) {
- this.observeShow(true, false);
- }
- },
- methods: {
- observeShow(value, old) {
- if (value === old) {
- return;
- }
- value ? this.enter() : this.leave();
- },
- enter() {
- const { duration, name } = this.data;
- const classNames = getClassNames(name);
- const currentDuration = isObj(duration) ? duration.enter : duration;
- this.status = 'enter';
- this.$emit('before-enter');
- requestAnimationFrame(() => {
- if (this.status !== 'enter') {
- return;
- }
- this.$emit('enter');
- this.setData({
- inited: true,
- display: true,
- classes: classNames.enter,
- currentDuration,
- });
- requestAnimationFrame(() => {
- if (this.status !== 'enter') {
- return;
+ return Behavior({
+ properties: {
+ 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',
+ },
+ },
+ data: {
+ type: '',
+ inited: false,
+ display: false,
+ },
+ ready() {
+ if (this.data.show === true) {
+ this.observeShow(true, false);
}
- this.transitionEnded = false;
- this.setData({ classes: classNames['enter-to'] });
- });
- });
- },
- leave() {
- if (!this.data.display) {
- return;
- }
- const { duration, name } = this.data;
- const classNames = getClassNames(name);
- const currentDuration = isObj(duration) ? duration.leave : duration;
- this.status = 'leave';
- this.$emit('before-leave');
- requestAnimationFrame(() => {
- if (this.status !== 'leave') {
- return;
- }
- this.$emit('leave');
- this.setData({
- classes: classNames.leave,
- currentDuration,
- });
- requestAnimationFrame(() => {
- if (this.status !== 'leave') {
- return;
- }
- this.transitionEnded = false;
- setTimeout(() => this.onTransitionEnd(), currentDuration);
- this.setData({ classes: classNames['leave-to'] });
- });
- });
- },
- onTransitionEnd() {
- if (this.transitionEnded) {
- return;
- }
- this.transitionEnded = true;
- this.$emit(`after-${this.status}`);
- const { show, display } = this.data;
- if (!show && display) {
- this.setData({ display: false });
- }
- },
- },
- });
+ },
+ methods: {
+ observeShow(value, old) {
+ if (value === old) {
+ return;
+ }
+ value ? this.enter() : this.leave();
+ },
+ enter() {
+ const { duration, name } = this.data;
+ const classNames = getClassNames(name);
+ const currentDuration = isObj(duration) ? duration.enter : duration;
+ this.status = 'enter';
+ this.$emit('before-enter');
+ requestAnimationFrame(() => {
+ if (this.status !== 'enter') {
+ return;
+ }
+ this.$emit('enter');
+ this.setData({
+ inited: true,
+ display: true,
+ classes: classNames.enter,
+ currentDuration,
+ });
+ requestAnimationFrame(() => {
+ if (this.status !== 'enter') {
+ return;
+ }
+ this.transitionEnded = false;
+ this.setData({ classes: classNames['enter-to'] });
+ });
+ });
+ },
+ leave() {
+ if (!this.data.display) {
+ return;
+ }
+ const { duration, name } = this.data;
+ const classNames = getClassNames(name);
+ const currentDuration = isObj(duration) ? duration.leave : duration;
+ this.status = 'leave';
+ this.$emit('before-leave');
+ requestAnimationFrame(() => {
+ if (this.status !== 'leave') {
+ return;
+ }
+ this.$emit('leave');
+ this.setData({
+ classes: classNames.leave,
+ currentDuration,
+ });
+ requestAnimationFrame(() => {
+ if (this.status !== 'leave') {
+ return;
+ }
+ this.transitionEnded = false;
+ setTimeout(() => this.onTransitionEnd(), currentDuration);
+ this.setData({ classes: classNames['leave-to'] });
+ });
+ });
+ },
+ onTransitionEnd() {
+ if (this.transitionEnded) {
+ return;
+ }
+ this.transitionEnded = true;
+ this.$emit(`after-${this.status}`);
+ const { show, display } = this.data;
+ if (!show && display) {
+ this.setData({ display: false });
+ }
+ },
+ },
+ });
}
diff --git a/dist/nav-bar/index.js b/dist/nav-bar/index.js
index b620a5dd..30fc5aaa 100644
--- a/dist/nav-bar/index.js
+++ b/dist/nav-bar/index.js
@@ -1,65 +1,65 @@
import { VantComponent } from '../common/component';
import { getRect, getSystemInfoSync } from '../common/utils';
VantComponent({
- classes: ['title-class'],
- props: {
- title: String,
- fixed: {
- type: Boolean,
- observer: 'setHeight',
+ classes: ['title-class'],
+ props: {
+ title: String,
+ fixed: {
+ type: Boolean,
+ observer: 'setHeight',
+ },
+ placeholder: {
+ type: Boolean,
+ observer: 'setHeight',
+ },
+ leftText: String,
+ rightText: String,
+ customStyle: String,
+ leftArrow: Boolean,
+ border: {
+ type: Boolean,
+ value: true,
+ },
+ zIndex: {
+ type: Number,
+ value: 1,
+ },
+ safeAreaInsetTop: {
+ type: Boolean,
+ value: true,
+ },
},
- placeholder: {
- type: Boolean,
- observer: 'setHeight',
+ data: {
+ height: 46,
},
- leftText: String,
- rightText: String,
- customStyle: String,
- leftArrow: Boolean,
- border: {
- type: Boolean,
- value: true,
- },
- zIndex: {
- type: Number,
- value: 1,
- },
- safeAreaInsetTop: {
- type: Boolean,
- value: true,
- },
- },
- data: {
- height: 46,
- },
- created() {
- const { statusBarHeight } = getSystemInfoSync();
- this.setData({
- statusBarHeight,
- height: 46 + statusBarHeight,
- });
- },
- mounted() {
- this.setHeight();
- },
- methods: {
- onClickLeft() {
- this.$emit('click-left');
- },
- onClickRight() {
- this.$emit('click-right');
- },
- setHeight() {
- if (!this.data.fixed || !this.data.placeholder) {
- return;
- }
- wx.nextTick(() => {
- getRect(this, '.van-nav-bar').then((res) => {
- if (res && 'height' in res) {
- this.setData({ height: res.height });
- }
+ created() {
+ const { statusBarHeight } = getSystemInfoSync();
+ this.setData({
+ statusBarHeight,
+ height: 46 + statusBarHeight,
});
- });
},
- },
+ mounted() {
+ this.setHeight();
+ },
+ methods: {
+ onClickLeft() {
+ this.$emit('click-left');
+ },
+ onClickRight() {
+ this.$emit('click-right');
+ },
+ setHeight() {
+ if (!this.data.fixed || !this.data.placeholder) {
+ return;
+ }
+ wx.nextTick(() => {
+ getRect(this, '.van-nav-bar').then((res) => {
+ if (res && 'height' in res) {
+ this.setData({ height: res.height });
+ }
+ });
+ });
+ },
+ },
});
diff --git a/dist/notice-bar/index.js b/dist/notice-bar/index.js
index 5e11c20d..ef369996 100644
--- a/dist/notice-bar/index.js
+++ b/dist/notice-bar/index.js
@@ -1,123 +1,120 @@
import { VantComponent } from '../common/component';
import { getRect, requestAnimationFrame } from '../common/utils';
VantComponent({
- props: {
- text: {
- type: String,
- value: '',
- observer: 'init',
+ props: {
+ text: {
+ type: String,
+ value: '',
+ observer: 'init',
+ },
+ mode: {
+ type: String,
+ value: '',
+ },
+ url: {
+ type: String,
+ value: '',
+ },
+ openType: {
+ type: String,
+ value: 'navigate',
+ },
+ delay: {
+ type: Number,
+ value: 1,
+ },
+ speed: {
+ type: Number,
+ value: 60,
+ observer: 'init',
+ },
+ scrollable: null,
+ leftIcon: {
+ type: String,
+ value: '',
+ },
+ color: String,
+ backgroundColor: String,
+ background: String,
+ wrapable: Boolean,
},
- mode: {
- type: String,
- value: '',
+ data: {
+ show: true,
},
- url: {
- type: String,
- value: '',
- },
- openType: {
- type: String,
- value: 'navigate',
- },
- delay: {
- type: Number,
- value: 1,
- },
- speed: {
- type: Number,
- value: 60,
- observer: 'init',
- },
- scrollable: null,
- leftIcon: {
- type: String,
- value: '',
- },
- color: String,
- backgroundColor: String,
- background: String,
- wrapable: Boolean,
- },
- data: {
- show: true,
- },
- created() {
- this.resetAnimation = wx.createAnimation({
- duration: 0,
- timingFunction: 'linear',
- });
- },
- destroyed() {
- this.timer && clearTimeout(this.timer);
- },
- mounted() {
- this.init();
- },
- methods: {
- init() {
- requestAnimationFrame(() => {
- Promise.all([
- getRect(this, '.van-notice-bar__content'),
- getRect(this, '.van-notice-bar__wrap'),
- ]).then((rects) => {
- const [contentRect, wrapRect] = rects;
- const { speed, scrollable, delay } = this.data;
- if (
- contentRect == null ||
- wrapRect == null ||
- !contentRect.width ||
- !wrapRect.width ||
- scrollable === false
- ) {
- return;
- }
- if (scrollable || wrapRect.width < contentRect.width) {
- const duration =
- ((wrapRect.width + contentRect.width) / speed) * 1000;
- this.wrapWidth = wrapRect.width;
- this.contentWidth = contentRect.width;
- this.duration = duration;
- this.animation = wx.createAnimation({
- duration,
- timingFunction: 'linear',
- delay,
- });
- this.scroll();
- }
+ created() {
+ this.resetAnimation = wx.createAnimation({
+ duration: 0,
+ timingFunction: 'linear',
});
- });
},
- scroll() {
- this.timer && clearTimeout(this.timer);
- this.timer = null;
- this.setData({
- animationData: this.resetAnimation
- .translateX(this.wrapWidth)
- .step()
- .export(),
- });
- requestAnimationFrame(() => {
- this.setData({
- animationData: this.animation
- .translateX(-this.contentWidth)
- .step()
- .export(),
- });
- });
- this.timer = setTimeout(() => {
- this.scroll();
- }, this.duration);
- },
- onClickIcon(event) {
- if (this.data.mode === 'closeable') {
+ destroyed() {
this.timer && clearTimeout(this.timer);
- this.timer = null;
- this.setData({ show: false });
- this.$emit('close', event.detail);
- }
},
- onClick(event) {
- this.$emit('click', event);
+ mounted() {
+ this.init();
+ },
+ methods: {
+ init() {
+ requestAnimationFrame(() => {
+ Promise.all([
+ getRect(this, '.van-notice-bar__content'),
+ getRect(this, '.van-notice-bar__wrap'),
+ ]).then((rects) => {
+ const [contentRect, wrapRect] = rects;
+ const { speed, scrollable, delay } = this.data;
+ if (contentRect == null ||
+ wrapRect == null ||
+ !contentRect.width ||
+ !wrapRect.width ||
+ scrollable === false) {
+ return;
+ }
+ if (scrollable || wrapRect.width < contentRect.width) {
+ const duration = ((wrapRect.width + contentRect.width) / speed) * 1000;
+ this.wrapWidth = wrapRect.width;
+ this.contentWidth = contentRect.width;
+ this.duration = duration;
+ this.animation = wx.createAnimation({
+ duration,
+ timingFunction: 'linear',
+ delay,
+ });
+ this.scroll();
+ }
+ });
+ });
+ },
+ scroll() {
+ this.timer && clearTimeout(this.timer);
+ this.timer = null;
+ this.setData({
+ animationData: this.resetAnimation
+ .translateX(this.wrapWidth)
+ .step()
+ .export(),
+ });
+ requestAnimationFrame(() => {
+ this.setData({
+ animationData: this.animation
+ .translateX(-this.contentWidth)
+ .step()
+ .export(),
+ });
+ });
+ this.timer = setTimeout(() => {
+ this.scroll();
+ }, this.duration);
+ },
+ onClickIcon(event) {
+ if (this.data.mode === 'closeable') {
+ this.timer && clearTimeout(this.timer);
+ this.timer = null;
+ this.setData({ show: false });
+ this.$emit('close', event.detail);
+ }
+ },
+ onClick(event) {
+ this.$emit('click', event);
+ },
},
- },
});
diff --git a/dist/notify/index.js b/dist/notify/index.js
index fda6a2f6..d4aba2dc 100644
--- a/dist/notify/index.js
+++ b/dist/notify/index.js
@@ -2,64 +2,64 @@ import { VantComponent } from '../common/component';
import { WHITE } from '../common/color';
import { getSystemInfoSync } from '../common/utils';
VantComponent({
- props: {
- message: String,
- background: String,
- type: {
- type: String,
- value: 'danger',
+ props: {
+ message: String,
+ background: String,
+ type: {
+ type: String,
+ value: 'danger',
+ },
+ color: {
+ type: String,
+ value: WHITE,
+ },
+ duration: {
+ type: Number,
+ value: 3000,
+ },
+ zIndex: {
+ type: Number,
+ value: 110,
+ },
+ safeAreaInsetTop: {
+ type: Boolean,
+ value: false,
+ },
+ top: null,
},
- color: {
- type: String,
- value: WHITE,
+ data: {
+ show: false,
+ onOpened: null,
+ onClose: null,
+ onClick: null,
},
- duration: {
- type: Number,
- value: 3000,
+ created() {
+ const { statusBarHeight } = getSystemInfoSync();
+ this.setData({ statusBarHeight });
},
- zIndex: {
- type: Number,
- value: 110,
+ methods: {
+ show() {
+ const { duration, onOpened } = this.data;
+ clearTimeout(this.timer);
+ this.setData({ show: true });
+ wx.nextTick(onOpened);
+ if (duration > 0 && duration !== Infinity) {
+ this.timer = setTimeout(() => {
+ this.hide();
+ }, duration);
+ }
+ },
+ hide() {
+ const { onClose } = this.data;
+ clearTimeout(this.timer);
+ this.setData({ show: false });
+ wx.nextTick(onClose);
+ },
+ onTap(event) {
+ const { onClick } = this.data;
+ if (onClick) {
+ onClick(event.detail);
+ }
+ },
},
- safeAreaInsetTop: {
- type: Boolean,
- value: false,
- },
- top: null,
- },
- data: {
- show: false,
- onOpened: null,
- onClose: null,
- onClick: null,
- },
- created() {
- const { statusBarHeight } = getSystemInfoSync();
- this.setData({ statusBarHeight });
- },
- methods: {
- show() {
- const { duration, onOpened } = this.data;
- clearTimeout(this.timer);
- this.setData({ show: true });
- wx.nextTick(onOpened);
- if (duration > 0 && duration !== Infinity) {
- this.timer = setTimeout(() => {
- this.hide();
- }, duration);
- }
- },
- hide() {
- const { onClose } = this.data;
- clearTimeout(this.timer);
- this.setData({ show: false });
- wx.nextTick(onClose);
- },
- onTap(event) {
- const { onClick } = this.data;
- if (onClick) {
- onClick(event.detail);
- }
- },
- },
});
diff --git a/dist/notify/notify.d.ts b/dist/notify/notify.d.ts
index 32f77ad0..f6ee08f9 100644
--- a/dist/notify/notify.d.ts
+++ b/dist/notify/notify.d.ts
@@ -1,20 +1,20 @@
interface NotifyOptions {
- type?: 'primary' | 'success' | 'danger' | 'warning';
- color?: string;
- zIndex?: number;
- top?: number;
- message: string;
- context?: any;
- duration?: number;
- selector?: string;
- background?: string;
- safeAreaInsetTop?: boolean;
- onClick?: () => void;
- onOpened?: () => void;
- onClose?: () => void;
+ type?: 'primary' | 'success' | 'danger' | 'warning';
+ color?: string;
+ zIndex?: number;
+ top?: number;
+ message: string;
+ context?: any;
+ duration?: number;
+ selector?: string;
+ background?: string;
+ safeAreaInsetTop?: boolean;
+ onClick?: () => void;
+ onOpened?: () => void;
+ onClose?: () => void;
}
declare function Notify(options: NotifyOptions | string): any;
declare namespace Notify {
- var clear: (options?: NotifyOptions | undefined) => void;
+ var clear: (options?: NotifyOptions | undefined) => void;
}
export default Notify;
diff --git a/dist/notify/notify.js b/dist/notify/notify.js
index ee3c966d..59dc73e2 100644
--- a/dist/notify/notify.js
+++ b/dist/notify/notify.js
@@ -1,52 +1,46 @@
import { WHITE } from '../common/color';
const defaultOptions = {
- selector: '#van-notify',
- type: 'danger',
- message: '',
- background: '',
- duration: 3000,
- zIndex: 110,
- top: 0,
- color: WHITE,
- safeAreaInsetTop: false,
- onClick: () => {},
- onOpened: () => {},
- onClose: () => {},
+ selector: '#van-notify',
+ type: 'danger',
+ message: '',
+ background: '',
+ duration: 3000,
+ zIndex: 110,
+ top: 0,
+ color: WHITE,
+ safeAreaInsetTop: false,
+ onClick: () => { },
+ onOpened: () => { },
+ onClose: () => { },
};
function parseOptions(message) {
- if (message == null) {
- return {};
- }
- return typeof message === 'string' ? { message } : message;
+ if (message == null) {
+ return {};
+ }
+ return typeof message === 'string' ? { message } : message;
}
function getContext() {
- const pages = getCurrentPages();
- return pages[pages.length - 1];
+ const pages = getCurrentPages();
+ return pages[pages.length - 1];
}
export default function Notify(options) {
- options = Object.assign(
- Object.assign({}, defaultOptions),
- parseOptions(options)
- );
- const context = options.context || getContext();
- const notify = context.selectComponent(options.selector);
- delete options.context;
- delete options.selector;
- if (notify) {
- notify.setData(options);
- notify.show();
- return notify;
- }
- console.warn('未找到 van-notify 节点,请确认 selector 及 context 是否正确');
+ options = Object.assign(Object.assign({}, defaultOptions), parseOptions(options));
+ const context = options.context || getContext();
+ const notify = context.selectComponent(options.selector);
+ delete options.context;
+ delete options.selector;
+ if (notify) {
+ notify.setData(options);
+ notify.show();
+ return notify;
+ }
+ console.warn('未找到 van-notify 节点,请确认 selector 及 context 是否正确');
}
Notify.clear = function (options) {
- options = Object.assign(
- Object.assign({}, defaultOptions),
- parseOptions(options)
- );
- const context = options.context || getContext();
- const notify = context.selectComponent(options.selector);
- if (notify) {
- notify.hide();
- }
+ options = Object.assign(Object.assign({}, defaultOptions), parseOptions(options));
+ const context = options.context || getContext();
+ const notify = context.selectComponent(options.selector);
+ if (notify) {
+ notify.hide();
+ }
};
diff --git a/dist/overlay/index.js b/dist/overlay/index.js
index 65231cbe..48117a0d 100644
--- a/dist/overlay/index.js
+++ b/dist/overlay/index.js
@@ -1,26 +1,26 @@
import { VantComponent } from '../common/component';
VantComponent({
- props: {
- show: Boolean,
- customStyle: String,
- duration: {
- type: null,
- value: 300,
+ props: {
+ show: Boolean,
+ customStyle: String,
+ duration: {
+ type: null,
+ value: 300,
+ },
+ zIndex: {
+ type: Number,
+ value: 1,
+ },
+ lockScroll: {
+ type: Boolean,
+ value: true,
+ },
},
- zIndex: {
- type: Number,
- value: 1,
+ methods: {
+ onClick() {
+ this.$emit('click');
+ },
+ // for prevent touchmove
+ noop() { },
},
- lockScroll: {
- type: Boolean,
- value: true,
- },
- },
- methods: {
- onClick() {
- this.$emit('click');
- },
- // for prevent touchmove
- noop() {},
- },
});
diff --git a/dist/panel/index.js b/dist/panel/index.js
index c3e7749f..7b6a99a4 100644
--- a/dist/panel/index.js
+++ b/dist/panel/index.js
@@ -1,9 +1,9 @@
import { VantComponent } from '../common/component';
VantComponent({
- classes: ['header-class', 'footer-class'],
- props: {
- desc: String,
- title: String,
- status: String,
- },
+ classes: ['header-class', 'footer-class'],
+ props: {
+ desc: String,
+ title: String,
+ status: String,
+ },
});
diff --git a/dist/picker-column/index.js b/dist/picker-column/index.js
index d55d2744..abcc5208 100644
--- a/dist/picker-column/index.js
+++ b/dist/picker-column/index.js
@@ -3,122 +3,116 @@ import { range } from '../common/utils';
import { isObj } from '../common/validator';
const DEFAULT_DURATION = 200;
VantComponent({
- classes: ['active-class'],
- props: {
- valueKey: String,
- className: String,
- itemHeight: Number,
- visibleItemCount: Number,
- initialOptions: {
- type: Array,
- value: [],
+ classes: ['active-class'],
+ props: {
+ valueKey: String,
+ className: String,
+ itemHeight: Number,
+ visibleItemCount: Number,
+ initialOptions: {
+ type: Array,
+ value: [],
+ },
+ defaultIndex: {
+ type: Number,
+ value: 0,
+ observer(value) {
+ this.setIndex(value);
+ },
+ },
},
- defaultIndex: {
- type: Number,
- value: 0,
- observer(value) {
- this.setIndex(value);
- },
- },
- },
- data: {
- startY: 0,
- offset: 0,
- duration: 0,
- startOffset: 0,
- options: [],
- currentIndex: 0,
- },
- created() {
- const { defaultIndex, initialOptions } = this.data;
- this.set({
- currentIndex: defaultIndex,
- options: initialOptions,
- }).then(() => {
- this.setIndex(defaultIndex);
- });
- },
- methods: {
- getCount() {
- return this.data.options.length;
- },
- onTouchStart(event) {
- this.setData({
- startY: event.touches[0].clientY,
- startOffset: this.data.offset,
+ data: {
+ startY: 0,
+ offset: 0,
duration: 0,
- });
+ startOffset: 0,
+ options: [],
+ currentIndex: 0,
},
- onTouchMove(event) {
- const { data } = this;
- const deltaY = event.touches[0].clientY - data.startY;
- this.setData({
- offset: range(
- data.startOffset + deltaY,
- -(this.getCount() * data.itemHeight),
- data.itemHeight
- ),
- });
- },
- onTouchEnd() {
- const { data } = this;
- if (data.offset !== data.startOffset) {
- this.setData({ duration: DEFAULT_DURATION });
- const index = range(
- Math.round(-data.offset / data.itemHeight),
- 0,
- this.getCount() - 1
- );
- this.setIndex(index, true);
- }
- },
- onClickItem(event) {
- const { index } = event.currentTarget.dataset;
- this.setIndex(index, true);
- },
- adjustIndex(index) {
- const { data } = this;
- const count = this.getCount();
- index = range(index, 0, count);
- for (let i = index; i < count; i++) {
- if (!this.isDisabled(data.options[i])) return i;
- }
- for (let i = index - 1; i >= 0; i--) {
- if (!this.isDisabled(data.options[i])) return i;
- }
- },
- isDisabled(option) {
- return isObj(option) && option.disabled;
- },
- getOptionText(option) {
- const { data } = this;
- return isObj(option) && data.valueKey in option
- ? option[data.valueKey]
- : option;
- },
- setIndex(index, userAction) {
- const { data } = this;
- index = this.adjustIndex(index) || 0;
- const offset = -index * data.itemHeight;
- if (index !== data.currentIndex) {
- return this.set({ offset, currentIndex: index }).then(() => {
- userAction && this.$emit('change', index);
+ created() {
+ const { defaultIndex, initialOptions } = this.data;
+ this.set({
+ currentIndex: defaultIndex,
+ options: initialOptions,
+ }).then(() => {
+ this.setIndex(defaultIndex);
});
- }
- return this.set({ offset });
},
- setValue(value) {
- const { options } = this.data;
- for (let i = 0; i < options.length; i++) {
- if (this.getOptionText(options[i]) === value) {
- return this.setIndex(i);
- }
- }
- return Promise.resolve();
+ methods: {
+ getCount() {
+ return this.data.options.length;
+ },
+ onTouchStart(event) {
+ this.setData({
+ startY: event.touches[0].clientY,
+ startOffset: this.data.offset,
+ duration: 0,
+ });
+ },
+ onTouchMove(event) {
+ const { data } = this;
+ const deltaY = event.touches[0].clientY - data.startY;
+ this.setData({
+ offset: range(data.startOffset + deltaY, -(this.getCount() * data.itemHeight), data.itemHeight),
+ });
+ },
+ onTouchEnd() {
+ const { data } = this;
+ if (data.offset !== data.startOffset) {
+ this.setData({ duration: DEFAULT_DURATION });
+ const index = range(Math.round(-data.offset / data.itemHeight), 0, this.getCount() - 1);
+ this.setIndex(index, true);
+ }
+ },
+ onClickItem(event) {
+ const { index } = event.currentTarget.dataset;
+ this.setIndex(index, true);
+ },
+ adjustIndex(index) {
+ const { data } = this;
+ const count = this.getCount();
+ index = range(index, 0, count);
+ for (let i = index; i < count; i++) {
+ if (!this.isDisabled(data.options[i]))
+ return i;
+ }
+ for (let i = index - 1; i >= 0; i--) {
+ if (!this.isDisabled(data.options[i]))
+ return i;
+ }
+ },
+ isDisabled(option) {
+ return isObj(option) && option.disabled;
+ },
+ getOptionText(option) {
+ const { data } = this;
+ return isObj(option) && data.valueKey in option
+ ? option[data.valueKey]
+ : option;
+ },
+ setIndex(index, userAction) {
+ const { data } = this;
+ index = this.adjustIndex(index) || 0;
+ const offset = -index * data.itemHeight;
+ if (index !== data.currentIndex) {
+ return this.set({ offset, currentIndex: index }).then(() => {
+ userAction && this.$emit('change', index);
+ });
+ }
+ return this.set({ offset });
+ },
+ setValue(value) {
+ const { options } = this.data;
+ for (let i = 0; i < options.length; i++) {
+ if (this.getOptionText(options[i]) === value) {
+ return this.setIndex(i);
+ }
+ }
+ return Promise.resolve();
+ },
+ getValue() {
+ const { data } = this;
+ return data.options[data.currentIndex];
+ },
},
- getValue() {
- const { data } = this;
- return data.options[data.currentIndex];
- },
- },
});
diff --git a/dist/picker/index.js b/dist/picker/index.js
index d0ca3025..cef057d6 100644
--- a/dist/picker/index.js
+++ b/dist/picker/index.js
@@ -1,146 +1,136 @@
import { VantComponent } from '../common/component';
import { pickerProps } from './shared';
VantComponent({
- classes: ['active-class', 'toolbar-class', 'column-class'],
- props: Object.assign(Object.assign({}, pickerProps), {
- valueKey: {
- type: String,
- value: 'text',
- },
- toolbarPosition: {
- type: String,
- value: 'top',
- },
- defaultIndex: {
- type: Number,
- value: 0,
- },
- columns: {
- type: Array,
- value: [],
- observer(columns = []) {
- this.simple = columns.length && !columns[0].values;
- if (Array.isArray(this.children) && this.children.length) {
- this.setColumns().catch(() => {});
- }
- },
- },
- }),
- beforeCreate() {
- Object.defineProperty(this, 'children', {
- get: () => this.selectAllComponents('.van-picker__column') || [],
- });
- },
- methods: {
- noop() {},
- setColumns() {
- const { data } = this;
- const columns = this.simple ? [{ values: data.columns }] : data.columns;
- const stack = columns.map((column, index) =>
- this.setColumnValues(index, column.values)
- );
- return Promise.all(stack);
- },
- emit(event) {
- const { type } = event.currentTarget.dataset;
- if (this.simple) {
- this.$emit(type, {
- value: this.getColumnValue(0),
- index: this.getColumnIndex(0),
+ classes: ['active-class', 'toolbar-class', 'column-class'],
+ props: Object.assign(Object.assign({}, pickerProps), { valueKey: {
+ type: String,
+ value: 'text',
+ }, toolbarPosition: {
+ type: String,
+ value: 'top',
+ }, defaultIndex: {
+ type: Number,
+ value: 0,
+ }, columns: {
+ type: Array,
+ value: [],
+ observer(columns = []) {
+ this.simple = columns.length && !columns[0].values;
+ if (Array.isArray(this.children) && this.children.length) {
+ this.setColumns().catch(() => { });
+ }
+ },
+ } }),
+ beforeCreate() {
+ Object.defineProperty(this, 'children', {
+ get: () => this.selectAllComponents('.van-picker__column') || [],
});
- } else {
- this.$emit(type, {
- value: this.getValues(),
- index: this.getIndexes(),
- });
- }
},
- onChange(event) {
- if (this.simple) {
- this.$emit('change', {
- picker: this,
- value: this.getColumnValue(0),
- index: this.getColumnIndex(0),
- });
- } else {
- this.$emit('change', {
- picker: this,
- value: this.getValues(),
- index: event.currentTarget.dataset.index,
- });
- }
+ methods: {
+ noop() { },
+ setColumns() {
+ const { data } = this;
+ const columns = this.simple ? [{ values: data.columns }] : data.columns;
+ const stack = columns.map((column, index) => this.setColumnValues(index, column.values));
+ return Promise.all(stack);
+ },
+ emit(event) {
+ const { type } = event.currentTarget.dataset;
+ if (this.simple) {
+ this.$emit(type, {
+ value: this.getColumnValue(0),
+ index: this.getColumnIndex(0),
+ });
+ }
+ else {
+ this.$emit(type, {
+ value: this.getValues(),
+ index: this.getIndexes(),
+ });
+ }
+ },
+ onChange(event) {
+ if (this.simple) {
+ this.$emit('change', {
+ picker: this,
+ value: this.getColumnValue(0),
+ index: this.getColumnIndex(0),
+ });
+ }
+ else {
+ this.$emit('change', {
+ picker: this,
+ value: this.getValues(),
+ index: event.currentTarget.dataset.index,
+ });
+ }
+ },
+ // get column instance by index
+ getColumn(index) {
+ return this.children[index];
+ },
+ // get column value by index
+ getColumnValue(index) {
+ const column = this.getColumn(index);
+ return column && column.getValue();
+ },
+ // set column value by index
+ setColumnValue(index, value) {
+ const column = this.getColumn(index);
+ if (column == null) {
+ return Promise.reject(new Error('setColumnValue: 对应列不存在'));
+ }
+ return column.setValue(value);
+ },
+ // get column option index by column index
+ getColumnIndex(columnIndex) {
+ return (this.getColumn(columnIndex) || {}).data.currentIndex;
+ },
+ // set column option index by column index
+ setColumnIndex(columnIndex, optionIndex) {
+ const column = this.getColumn(columnIndex);
+ if (column == null) {
+ return Promise.reject(new Error('setColumnIndex: 对应列不存在'));
+ }
+ return column.setIndex(optionIndex);
+ },
+ // get options of column by index
+ getColumnValues(index) {
+ return (this.children[index] || {}).data.options;
+ },
+ // set options of column by index
+ setColumnValues(index, options, needReset = true) {
+ const column = this.children[index];
+ if (column == null) {
+ return Promise.reject(new Error('setColumnValues: 对应列不存在'));
+ }
+ const isSame = JSON.stringify(column.data.options) === JSON.stringify(options);
+ if (isSame) {
+ return Promise.resolve();
+ }
+ return column.set({ options }).then(() => {
+ if (needReset) {
+ column.setIndex(0);
+ }
+ });
+ },
+ // get values of all columns
+ getValues() {
+ return this.children.map((child) => child.getValue());
+ },
+ // set values of all columns
+ setValues(values) {
+ const stack = values.map((value, index) => this.setColumnValue(index, value));
+ return Promise.all(stack);
+ },
+ // get indexes of all columns
+ getIndexes() {
+ return this.children.map((child) => child.data.currentIndex);
+ },
+ // set indexes of all columns
+ setIndexes(indexes) {
+ const stack = indexes.map((optionIndex, columnIndex) => this.setColumnIndex(columnIndex, optionIndex));
+ return Promise.all(stack);
+ },
},
- // get column instance by index
- getColumn(index) {
- return this.children[index];
- },
- // get column value by index
- getColumnValue(index) {
- const column = this.getColumn(index);
- return column && column.getValue();
- },
- // set column value by index
- setColumnValue(index, value) {
- const column = this.getColumn(index);
- if (column == null) {
- return Promise.reject(new Error('setColumnValue: 对应列不存在'));
- }
- return column.setValue(value);
- },
- // get column option index by column index
- getColumnIndex(columnIndex) {
- return (this.getColumn(columnIndex) || {}).data.currentIndex;
- },
- // set column option index by column index
- setColumnIndex(columnIndex, optionIndex) {
- const column = this.getColumn(columnIndex);
- if (column == null) {
- return Promise.reject(new Error('setColumnIndex: 对应列不存在'));
- }
- return column.setIndex(optionIndex);
- },
- // get options of column by index
- getColumnValues(index) {
- return (this.children[index] || {}).data.options;
- },
- // set options of column by index
- setColumnValues(index, options, needReset = true) {
- const column = this.children[index];
- if (column == null) {
- return Promise.reject(new Error('setColumnValues: 对应列不存在'));
- }
- const isSame =
- JSON.stringify(column.data.options) === JSON.stringify(options);
- if (isSame) {
- return Promise.resolve();
- }
- return column.set({ options }).then(() => {
- if (needReset) {
- column.setIndex(0);
- }
- });
- },
- // get values of all columns
- getValues() {
- return this.children.map((child) => child.getValue());
- },
- // set values of all columns
- setValues(values) {
- const stack = values.map((value, index) =>
- this.setColumnValue(index, value)
- );
- return Promise.all(stack);
- },
- // get indexes of all columns
- getIndexes() {
- return this.children.map((child) => child.data.currentIndex);
- },
- // set indexes of all columns
- setIndexes(indexes) {
- const stack = indexes.map((optionIndex, columnIndex) =>
- this.setColumnIndex(columnIndex, optionIndex)
- );
- return Promise.all(stack);
- },
- },
});
diff --git a/dist/picker/shared.js b/dist/picker/shared.js
index 8531290b..5f21f322 100644
--- a/dist/picker/shared.js
+++ b/dist/picker/shared.js
@@ -1,21 +1,21 @@
export const 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,
- },
+ title: String,
+ loading: Boolean,
+ showToolbar: Boolean,
+ cancelButtonText: {
+ type: String,
+ value: '取消',
+ },
+ confirmButtonText: {
+ type: String,
+ value: '确认',
+ },
+ visibleItemCount: {
+ type: Number,
+ value: 6,
+ },
+ itemHeight: {
+ type: Number,
+ value: 44,
+ },
};
diff --git a/dist/popup/index.js b/dist/popup/index.js
index 295ee198..9c5ef868 100644
--- a/dist/popup/index.js
+++ b/dist/popup/index.js
@@ -1,88 +1,89 @@
import { VantComponent } from '../common/component';
import { transition } from '../mixins/transition';
VantComponent({
- classes: [
- 'enter-class',
- 'enter-active-class',
- 'enter-to-class',
- 'leave-class',
- 'leave-active-class',
- 'leave-to-class',
- 'close-icon-class',
- ],
- mixins: [transition(false)],
- props: {
- round: Boolean,
- closeable: Boolean,
- customStyle: String,
- overlayStyle: String,
- transition: {
- type: String,
- observer: 'observeClass',
+ classes: [
+ 'enter-class',
+ 'enter-active-class',
+ 'enter-to-class',
+ 'leave-class',
+ 'leave-active-class',
+ 'leave-to-class',
+ 'close-icon-class',
+ ],
+ mixins: [transition(false)],
+ props: {
+ round: Boolean,
+ closeable: Boolean,
+ customStyle: String,
+ overlayStyle: String,
+ transition: {
+ type: String,
+ observer: 'observeClass',
+ },
+ zIndex: {
+ type: Number,
+ value: 100,
+ },
+ overlay: {
+ type: Boolean,
+ value: true,
+ },
+ closeIcon: {
+ type: String,
+ value: 'cross',
+ },
+ closeIconPosition: {
+ type: String,
+ value: 'top-right',
+ },
+ closeOnClickOverlay: {
+ type: Boolean,
+ value: true,
+ },
+ position: {
+ type: String,
+ value: 'center',
+ observer: 'observeClass',
+ },
+ safeAreaInsetBottom: {
+ type: Boolean,
+ value: true,
+ },
+ safeAreaInsetTop: {
+ type: Boolean,
+ value: false,
+ },
+ lockScroll: {
+ type: Boolean,
+ value: true,
+ },
},
- zIndex: {
- type: Number,
- value: 100,
+ created() {
+ this.observeClass();
},
- overlay: {
- type: Boolean,
- value: true,
+ methods: {
+ onClickCloseIcon() {
+ this.$emit('close');
+ },
+ onClickOverlay() {
+ this.$emit('click-overlay');
+ if (this.data.closeOnClickOverlay) {
+ this.$emit('close');
+ }
+ },
+ observeClass() {
+ const { transition, position, duration } = this.data;
+ const 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);
+ },
},
- closeIcon: {
- type: String,
- value: 'cross',
- },
- closeIconPosition: {
- type: String,
- value: 'top-right',
- },
- closeOnClickOverlay: {
- type: Boolean,
- value: true,
- },
- position: {
- type: String,
- value: 'center',
- observer: 'observeClass',
- },
- safeAreaInsetBottom: {
- type: Boolean,
- value: true,
- },
- safeAreaInsetTop: {
- type: Boolean,
- value: false,
- },
- lockScroll: {
- type: Boolean,
- value: true,
- },
- },
- created() {
- this.observeClass();
- },
- methods: {
- onClickCloseIcon() {
- this.$emit('close');
- },
- onClickOverlay() {
- this.$emit('click-overlay');
- if (this.data.closeOnClickOverlay) {
- this.$emit('close');
- }
- },
- observeClass() {
- const { transition, position, duration } = this.data;
- const 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);
- },
- },
});
diff --git a/dist/progress/index.js b/dist/progress/index.js
index ee6a0c15..0780c433 100644
--- a/dist/progress/index.js
+++ b/dist/progress/index.js
@@ -2,50 +2,50 @@ import { VantComponent } from '../common/component';
import { BLUE } from '../common/color';
import { getRect } from '../common/utils';
VantComponent({
- props: {
- inactive: Boolean,
- percentage: {
- type: Number,
- observer: 'setLeft',
+ props: {
+ inactive: Boolean,
+ percentage: {
+ type: Number,
+ observer: 'setLeft',
+ },
+ pivotText: String,
+ pivotColor: String,
+ trackColor: String,
+ showPivot: {
+ type: Boolean,
+ value: true,
+ },
+ color: {
+ type: String,
+ value: BLUE,
+ },
+ textColor: {
+ type: String,
+ value: '#fff',
+ },
+ strokeWidth: {
+ type: null,
+ value: 4,
+ },
},
- pivotText: String,
- pivotColor: String,
- trackColor: String,
- showPivot: {
- type: Boolean,
- value: true,
+ data: {
+ right: 0,
},
- color: {
- type: String,
- value: BLUE,
+ mounted() {
+ this.setLeft();
},
- textColor: {
- type: String,
- value: '#fff',
+ methods: {
+ setLeft() {
+ Promise.all([
+ getRect(this, '.van-progress'),
+ getRect(this, '.van-progress__pivot'),
+ ]).then(([portion, pivot]) => {
+ if (portion && pivot) {
+ this.setData({
+ right: (pivot.width * (this.data.percentage - 100)) / 100,
+ });
+ }
+ });
+ },
},
- strokeWidth: {
- type: null,
- value: 4,
- },
- },
- data: {
- right: 0,
- },
- mounted() {
- this.setLeft();
- },
- methods: {
- setLeft() {
- Promise.all([
- getRect(this, '.van-progress'),
- getRect(this, '.van-progress__pivot'),
- ]).then(([portion, pivot]) => {
- if (portion && pivot) {
- this.setData({
- right: (pivot.width * (this.data.percentage - 100)) / 100,
- });
- }
- });
- },
- },
});
diff --git a/dist/radio-group/index.js b/dist/radio-group/index.js
index 06db0866..2846fdd8 100644
--- a/dist/radio-group/index.js
+++ b/dist/radio-group/index.js
@@ -1,22 +1,22 @@
import { VantComponent } from '../common/component';
import { useChildren } from '../common/relation';
VantComponent({
- field: true,
- relation: useChildren('radio'),
- props: {
- value: {
- type: null,
- observer: 'updateChildren',
+ field: true,
+ relation: useChildren('radio'),
+ props: {
+ value: {
+ type: null,
+ observer: 'updateChildren',
+ },
+ direction: String,
+ disabled: {
+ type: Boolean,
+ observer: 'updateChildren',
+ },
},
- direction: String,
- disabled: {
- type: Boolean,
- observer: 'updateChildren',
+ methods: {
+ updateChildren() {
+ this.children.forEach((child) => child.updateFromParent());
+ },
},
- },
- methods: {
- updateChildren() {
- this.children.forEach((child) => child.updateFromParent());
- },
- },
});
diff --git a/dist/radio/index.js b/dist/radio/index.js
index 8e749996..9eb12586 100644
--- a/dist/radio/index.js
+++ b/dist/radio/index.js
@@ -2,65 +2,65 @@ import { canIUseModel } from '../common/version';
import { VantComponent } from '../common/component';
import { useParent } from '../common/relation';
VantComponent({
- field: true,
- relation: useParent('radio-group', function () {
- this.updateFromParent();
- }),
- classes: ['icon-class', 'label-class'],
- props: {
- name: null,
- value: null,
- disabled: Boolean,
- useIconSlot: Boolean,
- checkedColor: String,
- labelPosition: {
- type: String,
- value: 'right',
+ field: true,
+ relation: useParent('radio-group', function () {
+ this.updateFromParent();
+ }),
+ classes: ['icon-class', 'label-class'],
+ props: {
+ name: null,
+ value: null,
+ disabled: Boolean,
+ useIconSlot: Boolean,
+ checkedColor: String,
+ labelPosition: {
+ type: String,
+ value: 'right',
+ },
+ labelDisabled: Boolean,
+ shape: {
+ type: String,
+ value: 'round',
+ },
+ iconSize: {
+ type: null,
+ value: 20,
+ },
},
- labelDisabled: Boolean,
- shape: {
- type: String,
- value: 'round',
+ data: {
+ direction: '',
+ parentDisabled: false,
},
- iconSize: {
- type: null,
- value: 20,
+ methods: {
+ updateFromParent() {
+ if (!this.parent) {
+ return;
+ }
+ const { value, disabled: parentDisabled, direction } = this.parent.data;
+ this.setData({
+ value,
+ direction,
+ parentDisabled,
+ });
+ },
+ emitChange(value) {
+ const instance = this.parent || this;
+ instance.$emit('input', value);
+ instance.$emit('change', value);
+ if (canIUseModel()) {
+ instance.setData({ value });
+ }
+ },
+ onChange() {
+ if (!this.data.disabled && !this.data.parentDisabled) {
+ this.emitChange(this.data.name);
+ }
+ },
+ onClickLabel() {
+ const { disabled, parentDisabled, labelDisabled, name } = this.data;
+ if (!(disabled || parentDisabled) && !labelDisabled) {
+ this.emitChange(name);
+ }
+ },
},
- },
- data: {
- direction: '',
- parentDisabled: false,
- },
- methods: {
- updateFromParent() {
- if (!this.parent) {
- return;
- }
- const { value, disabled: parentDisabled, direction } = this.parent.data;
- this.setData({
- value,
- direction,
- parentDisabled,
- });
- },
- emitChange(value) {
- const instance = this.parent || this;
- instance.$emit('input', value);
- instance.$emit('change', value);
- if (canIUseModel()) {
- instance.setData({ value });
- }
- },
- onChange() {
- if (!this.data.disabled && !this.data.parentDisabled) {
- this.emitChange(this.data.name);
- }
- },
- onClickLabel() {
- const { disabled, parentDisabled, labelDisabled, name } = this.data;
- if (!(disabled || parentDisabled) && !labelDisabled) {
- this.emitChange(name);
- }
- },
- },
});
diff --git a/dist/rate/index.js b/dist/rate/index.js
index 9dd6819f..23b73450 100644
--- a/dist/rate/index.js
+++ b/dist/rate/index.js
@@ -2,78 +2,77 @@ import { getAllRect } from '../common/utils';
import { VantComponent } from '../common/component';
import { canIUseModel } from '../common/version';
VantComponent({
- field: true,
- classes: ['icon-class'],
- props: {
- value: {
- type: Number,
- observer(value) {
- if (value !== this.data.innerValue) {
- this.setData({ innerValue: value });
- }
- },
+ field: true,
+ classes: ['icon-class'],
+ props: {
+ value: {
+ type: Number,
+ observer(value) {
+ if (value !== this.data.innerValue) {
+ this.setData({ innerValue: value });
+ }
+ },
+ },
+ readonly: Boolean,
+ disabled: Boolean,
+ allowHalf: Boolean,
+ size: null,
+ icon: {
+ type: String,
+ value: 'star',
+ },
+ voidIcon: {
+ type: String,
+ value: 'star-o',
+ },
+ color: String,
+ voidColor: String,
+ disabledColor: String,
+ count: {
+ type: Number,
+ value: 5,
+ observer(value) {
+ this.setData({ innerCountArray: Array.from({ length: value }) });
+ },
+ },
+ gutter: null,
+ touchable: {
+ type: Boolean,
+ value: true,
+ },
},
- readonly: Boolean,
- disabled: Boolean,
- allowHalf: Boolean,
- size: null,
- icon: {
- type: String,
- value: 'star',
+ data: {
+ innerValue: 0,
+ innerCountArray: Array.from({ length: 5 }),
},
- voidIcon: {
- type: String,
- value: 'star-o',
+ methods: {
+ onSelect(event) {
+ const { data } = this;
+ const { score } = event.currentTarget.dataset;
+ if (!data.disabled && !data.readonly) {
+ this.setData({ innerValue: score + 1 });
+ if (canIUseModel()) {
+ this.setData({ value: score + 1 });
+ }
+ wx.nextTick(() => {
+ this.$emit('input', score + 1);
+ this.$emit('change', score + 1);
+ });
+ }
+ },
+ onTouchMove(event) {
+ const { touchable } = this.data;
+ if (!touchable)
+ return;
+ const { clientX } = event.touches[0];
+ getAllRect(this, '.van-rate__icon').then((list) => {
+ const target = list
+ .sort((cur, next) => cur.dataset.score - next.dataset.score)
+ .find((item) => clientX >= item.left && clientX <= item.right);
+ if (target != null) {
+ this.onSelect(Object.assign(Object.assign({}, event), { currentTarget: target }));
+ }
+ });
+ },
},
- color: String,
- voidColor: String,
- disabledColor: String,
- count: {
- type: Number,
- value: 5,
- observer(value) {
- this.setData({ innerCountArray: Array.from({ length: value }) });
- },
- },
- gutter: null,
- touchable: {
- type: Boolean,
- value: true,
- },
- },
- data: {
- innerValue: 0,
- innerCountArray: Array.from({ length: 5 }),
- },
- methods: {
- onSelect(event) {
- const { data } = this;
- const { score } = event.currentTarget.dataset;
- if (!data.disabled && !data.readonly) {
- this.setData({ innerValue: score + 1 });
- if (canIUseModel()) {
- this.setData({ value: score + 1 });
- }
- wx.nextTick(() => {
- this.$emit('input', score + 1);
- this.$emit('change', score + 1);
- });
- }
- },
- onTouchMove(event) {
- const { touchable } = this.data;
- if (!touchable) return;
- const { clientX } = event.touches[0];
- getAllRect(this, '.van-rate__icon').then((list) => {
- const target = list
- .sort((cur, next) => cur.dataset.score - next.dataset.score)
- .find((item) => clientX >= item.left && clientX <= item.right);
- if (target != null) {
- this.onSelect(
- Object.assign(Object.assign({}, event), { currentTarget: target })
- );
- }
- });
- },
- },
});
diff --git a/dist/row/index.js b/dist/row/index.js
index f2b691bf..cc844f84 100644
--- a/dist/row/index.js
+++ b/dist/row/index.js
@@ -1,23 +1,23 @@
import { VantComponent } from '../common/component';
import { useChildren } from '../common/relation';
VantComponent({
- relation: useChildren('col', function (target) {
- const { gutter } = this.data;
- if (gutter) {
- target.setData({ gutter });
- }
- }),
- props: {
- gutter: {
- type: Number,
- observer: 'setGutter',
+ relation: useChildren('col', function (target) {
+ const { gutter } = this.data;
+ if (gutter) {
+ target.setData({ gutter });
+ }
+ }),
+ props: {
+ gutter: {
+ type: Number,
+ observer: 'setGutter',
+ },
},
- },
- methods: {
- setGutter() {
- this.children.forEach((col) => {
- col.setData(this.data);
- });
+ methods: {
+ setGutter() {
+ this.children.forEach((col) => {
+ col.setData(this.data);
+ });
+ },
},
- },
});
diff --git a/dist/search/index.js b/dist/search/index.js
index 22544e8f..d6f4bfaf 100644
--- a/dist/search/index.js
+++ b/dist/search/index.js
@@ -1,89 +1,89 @@
import { VantComponent } from '../common/component';
import { canIUseModel } from '../common/version';
VantComponent({
- field: true,
- classes: ['field-class', 'input-class', 'cancel-class'],
- props: {
- label: String,
- focus: Boolean,
- error: Boolean,
- disabled: Boolean,
- readonly: Boolean,
- inputAlign: String,
- showAction: Boolean,
- useActionSlot: Boolean,
- useLeftIconSlot: Boolean,
- useRightIconSlot: Boolean,
- leftIcon: {
- type: String,
- value: 'search',
+ field: true,
+ classes: ['field-class', 'input-class', 'cancel-class'],
+ props: {
+ label: String,
+ focus: Boolean,
+ error: Boolean,
+ disabled: Boolean,
+ readonly: Boolean,
+ inputAlign: String,
+ showAction: Boolean,
+ useActionSlot: Boolean,
+ useLeftIconSlot: Boolean,
+ useRightIconSlot: Boolean,
+ leftIcon: {
+ type: String,
+ value: 'search',
+ },
+ rightIcon: String,
+ placeholder: String,
+ placeholderStyle: String,
+ actionText: {
+ type: String,
+ value: '取消',
+ },
+ background: {
+ type: String,
+ value: '#ffffff',
+ },
+ maxlength: {
+ type: Number,
+ value: -1,
+ },
+ shape: {
+ type: String,
+ value: 'square',
+ },
+ clearable: {
+ type: Boolean,
+ value: true,
+ },
+ clearTrigger: {
+ type: String,
+ value: 'focus',
+ },
+ clearIcon: {
+ type: String,
+ value: 'clear',
+ },
},
- rightIcon: String,
- placeholder: String,
- placeholderStyle: String,
- actionText: {
- type: String,
- value: '取消',
+ methods: {
+ onChange(event) {
+ if (canIUseModel()) {
+ this.setData({ value: event.detail });
+ }
+ this.$emit('change', event.detail);
+ },
+ onCancel() {
+ /**
+ * 修复修改输入框值时,输入框失焦和赋值同时触发,赋值失效
+ * https://github.com/youzan/@vant/weapp/issues/1768
+ */
+ setTimeout(() => {
+ if (canIUseModel()) {
+ this.setData({ value: '' });
+ }
+ this.$emit('cancel');
+ this.$emit('change', '');
+ }, 200);
+ },
+ onSearch(event) {
+ this.$emit('search', event.detail);
+ },
+ onFocus(event) {
+ this.$emit('focus', event.detail);
+ },
+ onBlur(event) {
+ this.$emit('blur', event.detail);
+ },
+ onClear(event) {
+ this.$emit('clear', event.detail);
+ },
+ onClickInput(event) {
+ this.$emit('click-input', event.detail);
+ },
},
- background: {
- type: String,
- value: '#ffffff',
- },
- maxlength: {
- type: Number,
- value: -1,
- },
- shape: {
- type: String,
- value: 'square',
- },
- clearable: {
- type: Boolean,
- value: true,
- },
- clearTrigger: {
- type: String,
- value: 'focus',
- },
- clearIcon: {
- type: String,
- value: 'clear',
- },
- },
- methods: {
- onChange(event) {
- if (canIUseModel()) {
- this.setData({ value: event.detail });
- }
- this.$emit('change', event.detail);
- },
- onCancel() {
- /**
- * 修复修改输入框值时,输入框失焦和赋值同时触发,赋值失效
- * https://github.com/youzan/@vant/weapp/issues/1768
- */
- setTimeout(() => {
- if (canIUseModel()) {
- this.setData({ value: '' });
- }
- this.$emit('cancel');
- this.$emit('change', '');
- }, 200);
- },
- onSearch(event) {
- this.$emit('search', event.detail);
- },
- onFocus(event) {
- this.$emit('focus', event.detail);
- },
- onBlur(event) {
- this.$emit('blur', event.detail);
- },
- onClear(event) {
- this.$emit('clear', event.detail);
- },
- onClickInput(event) {
- this.$emit('click-input', event.detail);
- },
- },
});
diff --git a/dist/share-sheet/index.js b/dist/share-sheet/index.js
index 470dea68..a6ce016c 100644
--- a/dist/share-sheet/index.js
+++ b/dist/share-sheet/index.js
@@ -1,55 +1,55 @@
import { VantComponent } from '../common/component';
VantComponent({
- props: {
- // whether to show popup
- show: Boolean,
- // overlay custom style
- overlayStyle: String,
- // z-index
- zIndex: {
- type: Number,
- value: 100,
+ props: {
+ // whether to show popup
+ show: Boolean,
+ // overlay custom style
+ overlayStyle: String,
+ // z-index
+ zIndex: {
+ type: Number,
+ value: 100,
+ },
+ title: String,
+ cancelText: {
+ type: String,
+ value: '取消',
+ },
+ description: String,
+ options: {
+ type: Array,
+ value: [],
+ },
+ overlay: {
+ type: Boolean,
+ value: true,
+ },
+ safeAreaInsetBottom: {
+ type: Boolean,
+ value: true,
+ },
+ closeOnClickOverlay: {
+ type: Boolean,
+ value: true,
+ },
+ duration: {
+ type: null,
+ value: 300,
+ },
},
- title: String,
- cancelText: {
- type: String,
- value: '取消',
+ methods: {
+ onClickOverlay() {
+ this.$emit('click-overlay');
+ },
+ onCancel() {
+ this.onClose();
+ this.$emit('cancel');
+ },
+ onSelect(event) {
+ this.$emit('select', event.detail);
+ },
+ onClose() {
+ this.$emit('close');
+ },
},
- description: String,
- options: {
- type: Array,
- value: [],
- },
- overlay: {
- type: Boolean,
- value: true,
- },
- safeAreaInsetBottom: {
- type: Boolean,
- value: true,
- },
- closeOnClickOverlay: {
- type: Boolean,
- value: true,
- },
- duration: {
- type: null,
- value: 300,
- },
- },
- methods: {
- onClickOverlay() {
- this.$emit('click-overlay');
- },
- onCancel() {
- this.onClose();
- this.$emit('cancel');
- },
- onSelect(event) {
- this.$emit('select', event.detail);
- },
- onClose() {
- this.$emit('close');
- },
- },
});
diff --git a/dist/share-sheet/options.js b/dist/share-sheet/options.js
index c1bd03b2..5a29ad74 100644
--- a/dist/share-sheet/options.js
+++ b/dist/share-sheet/options.js
@@ -1,14 +1,14 @@
import { VantComponent } from '../common/component';
VantComponent({
- props: {
- options: Array,
- showBorder: Boolean,
- },
- methods: {
- onSelect(event) {
- const { index } = event.currentTarget.dataset;
- const option = this.data.options[index];
- this.$emit('select', Object.assign(Object.assign({}, option), { index }));
+ props: {
+ options: Array,
+ showBorder: Boolean,
+ },
+ methods: {
+ onSelect(event) {
+ const { index } = event.currentTarget.dataset;
+ const option = this.data.options[index];
+ this.$emit('select', Object.assign(Object.assign({}, option), { index }));
+ },
},
- },
});
diff --git a/dist/sidebar-item/index.js b/dist/sidebar-item/index.js
index 042db596..63ea57d2 100644
--- a/dist/sidebar-item/index.js
+++ b/dist/sidebar-item/index.js
@@ -1,29 +1,29 @@
import { VantComponent } from '../common/component';
import { useParent } from '../common/relation';
VantComponent({
- classes: ['active-class', 'disabled-class'],
- relation: useParent('sidebar'),
- props: {
- dot: Boolean,
- badge: null,
- info: null,
- title: String,
- disabled: Boolean,
- },
- methods: {
- onClick() {
- const { parent } = this;
- if (!parent || this.data.disabled) {
- return;
- }
- const index = parent.children.indexOf(this);
- parent.setActive(index).then(() => {
- this.$emit('click', index);
- parent.$emit('change', index);
- });
+ classes: ['active-class', 'disabled-class'],
+ relation: useParent('sidebar'),
+ props: {
+ dot: Boolean,
+ badge: null,
+ info: null,
+ title: String,
+ disabled: Boolean,
},
- setActive(selected) {
- return this.setData({ selected });
+ methods: {
+ onClick() {
+ const { parent } = this;
+ if (!parent || this.data.disabled) {
+ return;
+ }
+ const index = parent.children.indexOf(this);
+ parent.setActive(index).then(() => {
+ this.$emit('click', index);
+ parent.$emit('change', index);
+ });
+ },
+ setActive(selected) {
+ return this.setData({ selected });
+ },
},
- },
});
diff --git a/dist/sidebar/index.js b/dist/sidebar/index.js
index e4445330..d763e06d 100644
--- a/dist/sidebar/index.js
+++ b/dist/sidebar/index.js
@@ -1,34 +1,34 @@
import { VantComponent } from '../common/component';
import { useChildren } from '../common/relation';
VantComponent({
- relation: useChildren('sidebar-item', function () {
- this.setActive(this.data.activeKey);
- }),
- props: {
- activeKey: {
- type: Number,
- value: 0,
- observer: 'setActive',
+ relation: useChildren('sidebar-item', function () {
+ this.setActive(this.data.activeKey);
+ }),
+ props: {
+ activeKey: {
+ type: Number,
+ value: 0,
+ observer: 'setActive',
+ },
},
- },
- beforeCreate() {
- this.currentActive = -1;
- },
- methods: {
- setActive(activeKey) {
- const { children, currentActive } = this;
- if (!children.length) {
- return Promise.resolve();
- }
- this.currentActive = activeKey;
- const stack = [];
- if (currentActive !== activeKey && children[currentActive]) {
- stack.push(children[currentActive].setActive(false));
- }
- if (children[activeKey]) {
- stack.push(children[activeKey].setActive(true));
- }
- return Promise.all(stack);
+ beforeCreate() {
+ this.currentActive = -1;
+ },
+ methods: {
+ setActive(activeKey) {
+ const { children, currentActive } = this;
+ if (!children.length) {
+ return Promise.resolve();
+ }
+ this.currentActive = activeKey;
+ const stack = [];
+ if (currentActive !== activeKey && children[currentActive]) {
+ stack.push(children[currentActive].setActive(false));
+ }
+ if (children[activeKey]) {
+ stack.push(children[activeKey].setActive(true));
+ }
+ return Promise.all(stack);
+ },
},
- },
});
diff --git a/dist/skeleton/index.js b/dist/skeleton/index.js
index aab922d0..33b1141c 100644
--- a/dist/skeleton/index.js
+++ b/dist/skeleton/index.js
@@ -1,46 +1,46 @@
import { VantComponent } from '../common/component';
VantComponent({
- classes: ['avatar-class', 'title-class', 'row-class'],
- props: {
- row: {
- type: Number,
- value: 0,
- observer(value) {
- this.setData({ rowArray: Array.from({ length: value }) });
- },
+ classes: ['avatar-class', 'title-class', 'row-class'],
+ props: {
+ row: {
+ type: Number,
+ value: 0,
+ observer(value) {
+ this.setData({ rowArray: Array.from({ length: value }) });
+ },
+ },
+ title: Boolean,
+ avatar: Boolean,
+ loading: {
+ type: Boolean,
+ value: true,
+ },
+ animate: {
+ type: Boolean,
+ value: true,
+ },
+ avatarSize: {
+ type: String,
+ value: '32px',
+ },
+ avatarShape: {
+ type: String,
+ value: 'round',
+ },
+ titleWidth: {
+ type: String,
+ value: '40%',
+ },
+ rowWidth: {
+ type: null,
+ value: '100%',
+ observer(val) {
+ this.setData({ isArray: val instanceof Array });
+ },
+ },
},
- title: Boolean,
- avatar: Boolean,
- loading: {
- type: Boolean,
- value: true,
+ data: {
+ isArray: false,
+ rowArray: [],
},
- animate: {
- type: Boolean,
- value: true,
- },
- avatarSize: {
- type: String,
- value: '32px',
- },
- avatarShape: {
- type: String,
- value: 'round',
- },
- titleWidth: {
- type: String,
- value: '40%',
- },
- rowWidth: {
- type: null,
- value: '100%',
- observer(val) {
- this.setData({ isArray: val instanceof Array });
- },
- },
- },
- data: {
- isArray: false,
- rowArray: [],
- },
});
diff --git a/dist/slider/index.js b/dist/slider/index.js
index feca0b0c..c5d9a4e2 100644
--- a/dist/slider/index.js
+++ b/dist/slider/index.js
@@ -3,154 +3,162 @@ import { touch } from '../mixins/touch';
import { canIUseModel } from '../common/version';
import { getRect } from '../common/utils';
VantComponent({
- mixins: [touch],
- props: {
- range: Boolean,
- disabled: Boolean,
- useButtonSlot: Boolean,
- activeColor: String,
- inactiveColor: String,
- max: {
- type: Number,
- value: 100,
+ mixins: [touch],
+ props: {
+ range: Boolean,
+ disabled: Boolean,
+ useButtonSlot: Boolean,
+ activeColor: String,
+ inactiveColor: String,
+ max: {
+ type: Number,
+ value: 100,
+ },
+ min: {
+ type: Number,
+ value: 0,
+ },
+ step: {
+ type: Number,
+ value: 1,
+ },
+ value: {
+ type: null,
+ value: 0,
+ observer(val) {
+ if (val !== this.value) {
+ this.updateValue(val);
+ }
+ },
+ },
+ barHeight: null,
},
- min: {
- type: Number,
- value: 0,
+ created() {
+ this.updateValue(this.data.value);
},
- step: {
- type: Number,
- value: 1,
- },
- value: {
- type: null,
- value: 0,
- observer(val) {
- if (val !== this.value) {
- this.updateValue(val);
- }
- },
- },
- barHeight: null,
- },
- created() {
- this.updateValue(this.data.value);
- },
- methods: {
- onTouchStart(event) {
- if (this.data.disabled) return;
- const { index } = event.currentTarget.dataset;
- if (typeof index === 'number') {
- this.buttonIndex = index;
- }
- this.touchStart(event);
- this.startValue = this.format(this.value);
- this.newValue = this.value;
- if (this.isRange(this.newValue)) {
- this.startValue = this.newValue.map((val) => this.format(val));
- } else {
- this.startValue = this.format(this.newValue);
- }
- this.dragStatus = 'start';
- },
- onTouchMove(event) {
- if (this.data.disabled) return;
- if (this.dragStatus === 'start') {
- this.$emit('drag-start');
- }
- this.touchMove(event);
- this.dragStatus = 'draging';
- getRect(this, '.van-slider').then((rect) => {
- const diff = (this.deltaX / rect.width) * this.getRange();
- if (this.isRange(this.startValue)) {
- this.newValue[this.buttonIndex] =
- this.startValue[this.buttonIndex] + diff;
- } else {
- this.newValue = this.startValue + diff;
- }
- this.updateValue(this.newValue, false, true);
- });
- },
- onTouchEnd() {
- if (this.data.disabled) return;
- if (this.dragStatus === 'draging') {
- this.updateValue(this.newValue, true);
- this.$emit('drag-end');
- }
- },
- onClick(event) {
- if (this.data.disabled) return;
- const { min } = this.data;
- getRect(this, '.van-slider').then((rect) => {
- const value =
- ((event.detail.x - rect.left) / rect.width) * this.getRange() + min;
- if (this.isRange(this.value)) {
- const [left, right] = this.value;
- const middle = (left + right) / 2;
- if (value <= middle) {
- this.updateValue([value, right], true);
- } else {
- this.updateValue([left, value], true);
- }
- } else {
- this.updateValue(value, true);
- }
- });
- },
- isRange(val) {
- const { range } = this.data;
- return range && Array.isArray(val);
- },
- handleOverlap(value) {
- if (value[0] > value[1]) {
- return value.slice(0).reverse();
- }
- return value;
- },
- updateValue(value, end, drag) {
- if (this.isRange(value)) {
- value = this.handleOverlap(value).map((val) => this.format(val));
- } else {
- value = this.format(value);
- }
- this.value = value;
- this.setData({
- barStyle: `
+ methods: {
+ onTouchStart(event) {
+ if (this.data.disabled)
+ return;
+ const { index } = event.currentTarget.dataset;
+ if (typeof index === 'number') {
+ this.buttonIndex = index;
+ }
+ this.touchStart(event);
+ this.startValue = this.format(this.value);
+ this.newValue = this.value;
+ if (this.isRange(this.newValue)) {
+ this.startValue = this.newValue.map((val) => this.format(val));
+ }
+ else {
+ this.startValue = this.format(this.newValue);
+ }
+ this.dragStatus = 'start';
+ },
+ onTouchMove(event) {
+ if (this.data.disabled)
+ return;
+ if (this.dragStatus === 'start') {
+ this.$emit('drag-start');
+ }
+ this.touchMove(event);
+ this.dragStatus = 'draging';
+ getRect(this, '.van-slider').then((rect) => {
+ const diff = (this.deltaX / rect.width) * this.getRange();
+ if (this.isRange(this.startValue)) {
+ this.newValue[this.buttonIndex] =
+ this.startValue[this.buttonIndex] + diff;
+ }
+ else {
+ this.newValue = this.startValue + diff;
+ }
+ this.updateValue(this.newValue, false, true);
+ });
+ },
+ onTouchEnd() {
+ if (this.data.disabled)
+ return;
+ if (this.dragStatus === 'draging') {
+ this.updateValue(this.newValue, true);
+ this.$emit('drag-end');
+ }
+ },
+ onClick(event) {
+ if (this.data.disabled)
+ return;
+ const { min } = this.data;
+ getRect(this, '.van-slider').then((rect) => {
+ const value = ((event.detail.x - rect.left) / rect.width) * this.getRange() + min;
+ if (this.isRange(this.value)) {
+ const [left, right] = this.value;
+ const middle = (left + right) / 2;
+ if (value <= middle) {
+ this.updateValue([value, right], true);
+ }
+ else {
+ this.updateValue([left, value], true);
+ }
+ }
+ else {
+ this.updateValue(value, true);
+ }
+ });
+ },
+ isRange(val) {
+ const { range } = this.data;
+ return range && Array.isArray(val);
+ },
+ handleOverlap(value) {
+ if (value[0] > value[1]) {
+ return value.slice(0).reverse();
+ }
+ return value;
+ },
+ updateValue(value, end, drag) {
+ if (this.isRange(value)) {
+ value = this.handleOverlap(value).map((val) => this.format(val));
+ }
+ else {
+ value = this.format(value);
+ }
+ this.value = value;
+ this.setData({
+ barStyle: `
width: ${this.calcMainAxis()};
left: ${this.isRange(value) ? `${value[0]}%` : 0};
${drag ? 'transition: none;' : ''}
`,
- });
- if (drag) {
- this.$emit('drag', { value });
- }
- if (end) {
- this.$emit('change', value);
- }
- if ((drag || end) && canIUseModel()) {
- this.setData({ value });
- }
+ });
+ if (drag) {
+ this.$emit('drag', { value });
+ }
+ if (end) {
+ this.$emit('change', value);
+ }
+ if ((drag || end) && canIUseModel()) {
+ this.setData({ value });
+ }
+ },
+ getScope() {
+ return Number(this.data.max) - Number(this.data.min);
+ },
+ getRange() {
+ const { max, min } = this.data;
+ return max - min;
+ },
+ // 计算选中条的长度百分比
+ calcMainAxis() {
+ const { value } = this;
+ const { min } = this.data;
+ const scope = this.getScope();
+ if (this.isRange(value)) {
+ return `${((value[1] - value[0]) * 100) / scope}%`;
+ }
+ return `${((value - Number(min)) * 100) / scope}%`;
+ },
+ format(value) {
+ const { max, min, step } = this.data;
+ return Math.round(Math.max(min, Math.min(value, max)) / step) * step;
+ },
},
- getScope() {
- return Number(this.data.max) - Number(this.data.min);
- },
- getRange() {
- const { max, min } = this.data;
- return max - min;
- },
- // 计算选中条的长度百分比
- calcMainAxis() {
- const { value } = this;
- const { min } = this.data;
- const scope = this.getScope();
- if (this.isRange(value)) {
- return `${((value[1] - value[0]) * 100) / scope}%`;
- }
- return `${((value - Number(min)) * 100) / scope}%`;
- },
- format(value) {
- const { max, min, step } = this.data;
- return Math.round(Math.max(min, Math.min(value, max)) / step) * step;
- },
- },
});
diff --git a/dist/stepper/index.js b/dist/stepper/index.js
index 6ea0da54..c54ea719 100644
--- a/dist/stepper/index.js
+++ b/dist/stepper/index.js
@@ -4,191 +4,181 @@ const LONG_PRESS_START_TIME = 600;
const LONG_PRESS_INTERVAL = 200;
// add num and avoid float number
function add(num1, num2) {
- const cardinal = Math.pow(10, 10);
- return Math.round((num1 + num2) * cardinal) / cardinal;
+ const cardinal = Math.pow(10, 10);
+ return Math.round((num1 + num2) * cardinal) / cardinal;
}
function equal(value1, value2) {
- return String(value1) === String(value2);
+ return String(value1) === String(value2);
}
VantComponent({
- field: true,
- classes: ['input-class', 'plus-class', 'minus-class'],
- props: {
- value: {
- type: null,
- observer: 'observeValue',
+ field: true,
+ classes: ['input-class', 'plus-class', 'minus-class'],
+ props: {
+ value: {
+ type: null,
+ observer: 'observeValue',
+ },
+ integer: {
+ type: Boolean,
+ observer: 'check',
+ },
+ disabled: Boolean,
+ inputWidth: String,
+ buttonSize: String,
+ asyncChange: Boolean,
+ disableInput: Boolean,
+ decimalLength: {
+ type: Number,
+ value: null,
+ observer: 'check',
+ },
+ min: {
+ type: null,
+ value: 1,
+ observer: 'check',
+ },
+ max: {
+ type: null,
+ value: Number.MAX_SAFE_INTEGER,
+ observer: 'check',
+ },
+ step: {
+ type: null,
+ value: 1,
+ },
+ showPlus: {
+ type: Boolean,
+ value: true,
+ },
+ showMinus: {
+ type: Boolean,
+ value: true,
+ },
+ disablePlus: Boolean,
+ disableMinus: Boolean,
+ longPress: {
+ type: Boolean,
+ value: true,
+ },
+ theme: String,
},
- integer: {
- type: Boolean,
- observer: 'check',
+ data: {
+ currentValue: '',
},
- disabled: Boolean,
- inputWidth: String,
- buttonSize: String,
- asyncChange: Boolean,
- disableInput: Boolean,
- decimalLength: {
- type: Number,
- value: null,
- observer: 'check',
+ created() {
+ this.setData({
+ currentValue: this.format(this.data.value),
+ });
},
- min: {
- type: null,
- value: 1,
- observer: 'check',
+ methods: {
+ observeValue() {
+ const { value, currentValue } = this.data;
+ if (!equal(value, currentValue)) {
+ this.setData({ currentValue: this.format(value) });
+ }
+ },
+ check() {
+ const val = this.format(this.data.currentValue);
+ if (!equal(val, this.data.currentValue)) {
+ this.setData({ currentValue: val });
+ }
+ },
+ isDisabled(type) {
+ const { disabled, disablePlus, disableMinus, currentValue, max, min, } = this.data;
+ if (type === 'plus') {
+ return disabled || disablePlus || currentValue >= max;
+ }
+ return disabled || disableMinus || currentValue <= min;
+ },
+ onFocus(event) {
+ this.$emit('focus', event.detail);
+ },
+ onBlur(event) {
+ const value = this.format(event.detail.value);
+ this.emitChange(value);
+ this.$emit('blur', Object.assign(Object.assign({}, event.detail), { value }));
+ },
+ // filter illegal characters
+ filter(value) {
+ value = String(value).replace(/[^0-9.-]/g, '');
+ if (this.data.integer && value.indexOf('.') !== -1) {
+ value = value.split('.')[0];
+ }
+ return value;
+ },
+ // limit value range
+ format(value) {
+ value = this.filter(value);
+ // format range
+ value = value === '' ? 0 : +value;
+ value = Math.max(Math.min(this.data.max, value), this.data.min);
+ // format decimal
+ if (isDef(this.data.decimalLength)) {
+ value = value.toFixed(this.data.decimalLength);
+ }
+ return value;
+ },
+ onInput(event) {
+ const { value = '' } = event.detail || {};
+ // allow input to be empty
+ if (value === '') {
+ return;
+ }
+ let formatted = this.filter(value);
+ // limit max decimal length
+ if (isDef(this.data.decimalLength) && formatted.indexOf('.') !== -1) {
+ const pair = formatted.split('.');
+ formatted = `${pair[0]}.${pair[1].slice(0, this.data.decimalLength)}`;
+ }
+ this.emitChange(formatted);
+ },
+ emitChange(value) {
+ if (!this.data.asyncChange) {
+ this.setData({ currentValue: value });
+ }
+ this.$emit('change', value);
+ },
+ onChange() {
+ const { type } = this;
+ if (this.isDisabled(type)) {
+ this.$emit('overlimit', type);
+ return;
+ }
+ const diff = type === 'minus' ? -this.data.step : +this.data.step;
+ const value = this.format(add(+this.data.currentValue, diff));
+ this.emitChange(value);
+ this.$emit(type);
+ },
+ longPressStep() {
+ this.longPressTimer = setTimeout(() => {
+ this.onChange();
+ this.longPressStep();
+ }, LONG_PRESS_INTERVAL);
+ },
+ onTap(event) {
+ const { type } = event.currentTarget.dataset;
+ this.type = type;
+ this.onChange();
+ },
+ onTouchStart(event) {
+ if (!this.data.longPress) {
+ return;
+ }
+ clearTimeout(this.longPressTimer);
+ const { type } = event.currentTarget.dataset;
+ this.type = type;
+ this.isLongPress = false;
+ this.longPressTimer = setTimeout(() => {
+ this.isLongPress = true;
+ this.onChange();
+ this.longPressStep();
+ }, LONG_PRESS_START_TIME);
+ },
+ onTouchEnd() {
+ if (!this.data.longPress) {
+ return;
+ }
+ clearTimeout(this.longPressTimer);
+ },
},
- max: {
- type: null,
- value: Number.MAX_SAFE_INTEGER,
- observer: 'check',
- },
- step: {
- type: null,
- value: 1,
- },
- showPlus: {
- type: Boolean,
- value: true,
- },
- showMinus: {
- type: Boolean,
- value: true,
- },
- disablePlus: Boolean,
- disableMinus: Boolean,
- longPress: {
- type: Boolean,
- value: true,
- },
- theme: String,
- },
- data: {
- currentValue: '',
- },
- created() {
- this.setData({
- currentValue: this.format(this.data.value),
- });
- },
- methods: {
- observeValue() {
- const { value, currentValue } = this.data;
- if (!equal(value, currentValue)) {
- this.setData({ currentValue: this.format(value) });
- }
- },
- check() {
- const val = this.format(this.data.currentValue);
- if (!equal(val, this.data.currentValue)) {
- this.setData({ currentValue: val });
- }
- },
- isDisabled(type) {
- const {
- disabled,
- disablePlus,
- disableMinus,
- currentValue,
- max,
- min,
- } = this.data;
- if (type === 'plus') {
- return disabled || disablePlus || currentValue >= max;
- }
- return disabled || disableMinus || currentValue <= min;
- },
- onFocus(event) {
- this.$emit('focus', event.detail);
- },
- onBlur(event) {
- const value = this.format(event.detail.value);
- this.emitChange(value);
- this.$emit(
- 'blur',
- Object.assign(Object.assign({}, event.detail), { value })
- );
- },
- // filter illegal characters
- filter(value) {
- value = String(value).replace(/[^0-9.-]/g, '');
- if (this.data.integer && value.indexOf('.') !== -1) {
- value = value.split('.')[0];
- }
- return value;
- },
- // limit value range
- format(value) {
- value = this.filter(value);
- // format range
- value = value === '' ? 0 : +value;
- value = Math.max(Math.min(this.data.max, value), this.data.min);
- // format decimal
- if (isDef(this.data.decimalLength)) {
- value = value.toFixed(this.data.decimalLength);
- }
- return value;
- },
- onInput(event) {
- const { value = '' } = event.detail || {};
- // allow input to be empty
- if (value === '') {
- return;
- }
- let formatted = this.filter(value);
- // limit max decimal length
- if (isDef(this.data.decimalLength) && formatted.indexOf('.') !== -1) {
- const pair = formatted.split('.');
- formatted = `${pair[0]}.${pair[1].slice(0, this.data.decimalLength)}`;
- }
- this.emitChange(formatted);
- },
- emitChange(value) {
- if (!this.data.asyncChange) {
- this.setData({ currentValue: value });
- }
- this.$emit('change', value);
- },
- onChange() {
- const { type } = this;
- if (this.isDisabled(type)) {
- this.$emit('overlimit', type);
- return;
- }
- const diff = type === 'minus' ? -this.data.step : +this.data.step;
- const value = this.format(add(+this.data.currentValue, diff));
- this.emitChange(value);
- this.$emit(type);
- },
- longPressStep() {
- this.longPressTimer = setTimeout(() => {
- this.onChange();
- this.longPressStep();
- }, LONG_PRESS_INTERVAL);
- },
- onTap(event) {
- const { type } = event.currentTarget.dataset;
- this.type = type;
- this.onChange();
- },
- onTouchStart(event) {
- if (!this.data.longPress) {
- return;
- }
- clearTimeout(this.longPressTimer);
- const { type } = event.currentTarget.dataset;
- this.type = type;
- this.isLongPress = false;
- this.longPressTimer = setTimeout(() => {
- this.isLongPress = true;
- this.onChange();
- this.longPressStep();
- }, LONG_PRESS_START_TIME);
- },
- onTouchEnd() {
- if (!this.data.longPress) {
- return;
- }
- clearTimeout(this.longPressTimer);
- },
- },
});
diff --git a/dist/steps/index.js b/dist/steps/index.js
index a89ed4a8..b47be76e 100644
--- a/dist/steps/index.js
+++ b/dist/steps/index.js
@@ -1,33 +1,33 @@
import { VantComponent } from '../common/component';
import { GREEN, GRAY_DARK } from '../common/color';
VantComponent({
- classes: ['desc-class'],
- props: {
- icon: String,
- steps: Array,
- active: Number,
- direction: {
- type: String,
- value: 'horizontal',
+ classes: ['desc-class'],
+ props: {
+ icon: String,
+ steps: Array,
+ active: Number,
+ direction: {
+ type: String,
+ value: 'horizontal',
+ },
+ activeColor: {
+ type: String,
+ value: GREEN,
+ },
+ inactiveColor: {
+ type: String,
+ value: GRAY_DARK,
+ },
+ activeIcon: {
+ type: String,
+ value: 'checked',
+ },
+ inactiveIcon: String,
},
- activeColor: {
- type: String,
- value: GREEN,
+ methods: {
+ onClick(event) {
+ const { index } = event.currentTarget.dataset;
+ this.$emit('click-step', index);
+ },
},
- inactiveColor: {
- type: String,
- value: GRAY_DARK,
- },
- activeIcon: {
- type: String,
- value: 'checked',
- },
- inactiveIcon: String,
- },
- methods: {
- onClick(event) {
- const { index } = event.currentTarget.dataset;
- this.$emit('click-step', index);
- },
- },
});
diff --git a/dist/sticky/index.js b/dist/sticky/index.js
index 01f10989..e1ae6dfa 100644
--- a/dist/sticky/index.js
+++ b/dist/sticky/index.js
@@ -4,114 +4,115 @@ import { isDef } from '../common/validator';
import { pageScrollMixin } from '../mixins/page-scroll';
const ROOT_ELEMENT = '.van-sticky';
VantComponent({
- props: {
- zIndex: {
- type: Number,
- value: 99,
+ props: {
+ zIndex: {
+ type: Number,
+ value: 99,
+ },
+ offsetTop: {
+ type: Number,
+ value: 0,
+ observer: 'onScroll',
+ },
+ disabled: {
+ type: Boolean,
+ observer: 'onScroll',
+ },
+ container: {
+ type: null,
+ observer: 'onScroll',
+ },
+ scrollTop: {
+ type: null,
+ observer(val) {
+ this.onScroll({ scrollTop: val });
+ },
+ },
},
- offsetTop: {
- type: Number,
- value: 0,
- observer: 'onScroll',
+ mixins: [
+ pageScrollMixin(function (event) {
+ if (this.data.scrollTop != null) {
+ return;
+ }
+ this.onScroll(event);
+ }),
+ ],
+ data: {
+ height: 0,
+ fixed: false,
+ transform: 0,
},
- disabled: {
- type: Boolean,
- observer: 'onScroll',
+ mounted() {
+ this.onScroll();
},
- container: {
- type: null,
- observer: 'onScroll',
- },
- scrollTop: {
- type: null,
- observer(val) {
- this.onScroll({ scrollTop: val });
- },
- },
- },
- mixins: [
- pageScrollMixin(function (event) {
- if (this.data.scrollTop != null) {
- return;
- }
- this.onScroll(event);
- }),
- ],
- data: {
- height: 0,
- fixed: false,
- transform: 0,
- },
- mounted() {
- this.onScroll();
- },
- methods: {
- onScroll({ scrollTop } = {}) {
- const { container, offsetTop, disabled } = this.data;
- if (disabled) {
- this.setDataAfterDiff({
- fixed: false,
- transform: 0,
- });
- return;
- }
- this.scrollTop = scrollTop || this.scrollTop;
- if (typeof container === 'function') {
- Promise.all([
- getRect(this, ROOT_ELEMENT),
- this.getContainerRect(),
- ]).then(([root, container]) => {
- if (offsetTop + root.height > container.height + container.top) {
- this.setDataAfterDiff({
- fixed: false,
- transform: container.height - root.height,
+ methods: {
+ onScroll({ scrollTop } = {}) {
+ const { container, offsetTop, disabled } = this.data;
+ if (disabled) {
+ this.setDataAfterDiff({
+ fixed: false,
+ transform: 0,
+ });
+ return;
+ }
+ this.scrollTop = scrollTop || this.scrollTop;
+ if (typeof container === 'function') {
+ Promise.all([
+ getRect(this, ROOT_ELEMENT),
+ this.getContainerRect(),
+ ]).then(([root, container]) => {
+ if (offsetTop + root.height > container.height + container.top) {
+ this.setDataAfterDiff({
+ fixed: false,
+ transform: container.height - root.height,
+ });
+ }
+ else if (offsetTop >= root.top) {
+ this.setDataAfterDiff({
+ fixed: true,
+ height: root.height,
+ transform: 0,
+ });
+ }
+ else {
+ this.setDataAfterDiff({ fixed: false, transform: 0 });
+ }
+ });
+ return;
+ }
+ getRect(this, ROOT_ELEMENT).then((root) => {
+ if (!isDef(root)) {
+ return;
+ }
+ if (offsetTop >= root.top) {
+ this.setDataAfterDiff({ fixed: true, height: root.height });
+ this.transform = 0;
+ }
+ else {
+ this.setDataAfterDiff({ fixed: false });
+ }
});
- } else if (offsetTop >= root.top) {
- this.setDataAfterDiff({
- fixed: true,
- height: root.height,
- transform: 0,
+ },
+ setDataAfterDiff(data) {
+ wx.nextTick(() => {
+ const diff = Object.keys(data).reduce((prev, key) => {
+ if (data[key] !== this.data[key]) {
+ prev[key] = data[key];
+ }
+ return prev;
+ }, {});
+ if (Object.keys(diff).length > 0) {
+ this.setData(diff);
+ }
+ this.$emit('scroll', {
+ scrollTop: this.scrollTop,
+ isFixed: data.fixed || this.data.fixed,
+ });
});
- } else {
- this.setDataAfterDiff({ fixed: false, transform: 0 });
- }
- });
- return;
- }
- getRect(this, ROOT_ELEMENT).then((root) => {
- if (!isDef(root)) {
- return;
- }
- if (offsetTop >= root.top) {
- this.setDataAfterDiff({ fixed: true, height: root.height });
- this.transform = 0;
- } else {
- this.setDataAfterDiff({ fixed: false });
- }
- });
+ },
+ getContainerRect() {
+ const nodesRef = this.data.container();
+ return new Promise((resolve) => nodesRef.boundingClientRect(resolve).exec());
+ },
},
- setDataAfterDiff(data) {
- wx.nextTick(() => {
- const diff = Object.keys(data).reduce((prev, key) => {
- if (data[key] !== this.data[key]) {
- prev[key] = data[key];
- }
- return prev;
- }, {});
- if (Object.keys(diff).length > 0) {
- this.setData(diff);
- }
- this.$emit('scroll', {
- scrollTop: this.scrollTop,
- isFixed: data.fixed || this.data.fixed,
- });
- });
- },
- getContainerRect() {
- const nodesRef = this.data.container();
- return new Promise((resolve) =>
- nodesRef.boundingClientRect(resolve).exec()
- );
- },
- },
});
diff --git a/dist/submit-bar/index.js b/dist/submit-bar/index.js
index 4a888fff..decf4596 100644
--- a/dist/submit-bar/index.js
+++ b/dist/submit-bar/index.js
@@ -1,57 +1,56 @@
import { VantComponent } from '../common/component';
VantComponent({
- classes: ['bar-class', 'price-class', 'button-class'],
- props: {
- tip: {
- type: null,
- observer: 'updateTip',
+ classes: ['bar-class', 'price-class', 'button-class'],
+ props: {
+ tip: {
+ type: null,
+ observer: 'updateTip',
+ },
+ tipIcon: String,
+ type: Number,
+ price: {
+ type: null,
+ observer: 'updatePrice',
+ },
+ label: String,
+ loading: Boolean,
+ disabled: Boolean,
+ buttonText: String,
+ currency: {
+ type: String,
+ value: '¥',
+ },
+ buttonType: {
+ type: String,
+ value: 'danger',
+ },
+ decimalLength: {
+ type: Number,
+ value: 2,
+ observer: 'updatePrice',
+ },
+ suffixLabel: String,
+ safeAreaInsetBottom: {
+ type: Boolean,
+ value: true,
+ },
},
- tipIcon: String,
- type: Number,
- price: {
- type: null,
- observer: 'updatePrice',
+ methods: {
+ updatePrice() {
+ const { price, decimalLength } = this.data;
+ const priceStrArr = typeof price === 'number' &&
+ (price / 100).toFixed(decimalLength).split('.');
+ this.setData({
+ hasPrice: typeof price === 'number',
+ integerStr: priceStrArr && priceStrArr[0],
+ decimalStr: decimalLength && priceStrArr ? `.${priceStrArr[1]}` : '',
+ });
+ },
+ updateTip() {
+ this.setData({ hasTip: typeof this.data.tip === 'string' });
+ },
+ onSubmit(event) {
+ this.$emit('submit', event.detail);
+ },
},
- label: String,
- loading: Boolean,
- disabled: Boolean,
- buttonText: String,
- currency: {
- type: String,
- value: '¥',
- },
- buttonType: {
- type: String,
- value: 'danger',
- },
- decimalLength: {
- type: Number,
- value: 2,
- observer: 'updatePrice',
- },
- suffixLabel: String,
- safeAreaInsetBottom: {
- type: Boolean,
- value: true,
- },
- },
- methods: {
- updatePrice() {
- const { price, decimalLength } = this.data;
- const priceStrArr =
- typeof price === 'number' &&
- (price / 100).toFixed(decimalLength).split('.');
- this.setData({
- hasPrice: typeof price === 'number',
- integerStr: priceStrArr && priceStrArr[0],
- decimalStr: decimalLength && priceStrArr ? `.${priceStrArr[1]}` : '',
- });
- },
- updateTip() {
- this.setData({ hasTip: typeof this.data.tip === 'string' });
- },
- onSubmit(event) {
- this.$emit('submit', event.detail);
- },
- },
});
diff --git a/dist/swipe-cell/index.js b/dist/swipe-cell/index.js
index 216ffb0e..501088f5 100644
--- a/dist/swipe-cell/index.js
+++ b/dist/swipe-cell/index.js
@@ -4,129 +4,130 @@ import { range } from '../common/utils';
const THRESHOLD = 0.3;
let ARRAY = [];
VantComponent({
- props: {
- disabled: Boolean,
- leftWidth: {
- type: Number,
- value: 0,
- observer(leftWidth = 0) {
- if (this.offset > 0) {
- this.swipeMove(leftWidth);
- }
- },
+ props: {
+ disabled: Boolean,
+ leftWidth: {
+ type: Number,
+ value: 0,
+ observer(leftWidth = 0) {
+ if (this.offset > 0) {
+ this.swipeMove(leftWidth);
+ }
+ },
+ },
+ rightWidth: {
+ type: Number,
+ value: 0,
+ observer(rightWidth = 0) {
+ if (this.offset < 0) {
+ this.swipeMove(-rightWidth);
+ }
+ },
+ },
+ asyncClose: Boolean,
+ name: {
+ type: null,
+ value: '',
+ },
},
- rightWidth: {
- type: Number,
- value: 0,
- observer(rightWidth = 0) {
- if (this.offset < 0) {
- this.swipeMove(-rightWidth);
- }
- },
+ mixins: [touch],
+ data: {
+ catchMove: false,
+ wrapperStyle: '',
},
- asyncClose: Boolean,
- name: {
- type: null,
- value: '',
+ created() {
+ this.offset = 0;
+ ARRAY.push(this);
},
- },
- mixins: [touch],
- data: {
- catchMove: false,
- wrapperStyle: '',
- },
- created() {
- this.offset = 0;
- ARRAY.push(this);
- },
- destroyed() {
- ARRAY = ARRAY.filter((item) => item !== this);
- },
- methods: {
- open(position) {
- const { leftWidth, rightWidth } = this.data;
- const offset = position === 'left' ? leftWidth : -rightWidth;
- this.swipeMove(offset);
- this.$emit('open', {
- position,
- name: this.data.name,
- });
+ destroyed() {
+ ARRAY = ARRAY.filter((item) => item !== this);
},
- close() {
- this.swipeMove(0);
- },
- swipeMove(offset = 0) {
- this.offset = range(offset, -this.data.rightWidth, this.data.leftWidth);
- const transform = `translate3d(${this.offset}px, 0, 0)`;
- const transition = this.dragging
- ? 'none'
- : 'transform .6s cubic-bezier(0.18, 0.89, 0.32, 1)';
- this.setData({
- wrapperStyle: `
+ methods: {
+ open(position) {
+ const { leftWidth, rightWidth } = this.data;
+ const offset = position === 'left' ? leftWidth : -rightWidth;
+ this.swipeMove(offset);
+ this.$emit('open', {
+ position,
+ name: this.data.name,
+ });
+ },
+ close() {
+ this.swipeMove(0);
+ },
+ swipeMove(offset = 0) {
+ this.offset = range(offset, -this.data.rightWidth, this.data.leftWidth);
+ const transform = `translate3d(${this.offset}px, 0, 0)`;
+ const transition = this.dragging
+ ? 'none'
+ : 'transform .6s cubic-bezier(0.18, 0.89, 0.32, 1)';
+ this.setData({
+ wrapperStyle: `
-webkit-transform: ${transform};
-webkit-transition: ${transition};
transform: ${transform};
transition: ${transition};
`,
- });
+ });
+ },
+ swipeLeaveTransition() {
+ const { leftWidth, rightWidth } = this.data;
+ const { offset } = this;
+ if (rightWidth > 0 && -offset > rightWidth * THRESHOLD) {
+ this.open('right');
+ }
+ else if (leftWidth > 0 && offset > leftWidth * THRESHOLD) {
+ this.open('left');
+ }
+ else {
+ this.swipeMove(0);
+ }
+ this.setData({ catchMove: false });
+ },
+ startDrag(event) {
+ if (this.data.disabled) {
+ return;
+ }
+ this.startOffset = this.offset;
+ this.touchStart(event);
+ },
+ noop() { },
+ onDrag(event) {
+ if (this.data.disabled) {
+ return;
+ }
+ this.touchMove(event);
+ if (this.direction !== 'horizontal') {
+ return;
+ }
+ this.dragging = true;
+ ARRAY.filter((item) => item !== this && item.offset !== 0).forEach((item) => item.close());
+ this.setData({ catchMove: true });
+ this.swipeMove(this.startOffset + this.deltaX);
+ },
+ endDrag() {
+ if (this.data.disabled) {
+ return;
+ }
+ this.dragging = false;
+ this.swipeLeaveTransition();
+ },
+ onClick(event) {
+ const { key: position = 'outside' } = event.currentTarget.dataset;
+ this.$emit('click', position);
+ if (!this.offset) {
+ return;
+ }
+ if (this.data.asyncClose) {
+ this.$emit('close', {
+ position,
+ instance: this,
+ name: this.data.name,
+ });
+ }
+ else {
+ this.swipeMove(0);
+ }
+ },
},
- swipeLeaveTransition() {
- const { leftWidth, rightWidth } = this.data;
- const { offset } = this;
- if (rightWidth > 0 && -offset > rightWidth * THRESHOLD) {
- this.open('right');
- } else if (leftWidth > 0 && offset > leftWidth * THRESHOLD) {
- this.open('left');
- } else {
- this.swipeMove(0);
- }
- this.setData({ catchMove: false });
- },
- startDrag(event) {
- if (this.data.disabled) {
- return;
- }
- this.startOffset = this.offset;
- this.touchStart(event);
- },
- noop() {},
- onDrag(event) {
- if (this.data.disabled) {
- return;
- }
- this.touchMove(event);
- if (this.direction !== 'horizontal') {
- return;
- }
- this.dragging = true;
- ARRAY.filter(
- (item) => item !== this && item.offset !== 0
- ).forEach((item) => item.close());
- this.setData({ catchMove: true });
- this.swipeMove(this.startOffset + this.deltaX);
- },
- endDrag() {
- if (this.data.disabled) {
- return;
- }
- this.dragging = false;
- this.swipeLeaveTransition();
- },
- onClick(event) {
- const { key: position = 'outside' } = event.currentTarget.dataset;
- this.$emit('click', position);
- if (!this.offset) {
- return;
- }
- if (this.data.asyncClose) {
- this.$emit('close', {
- position,
- instance: this,
- name: this.data.name,
- });
- } else {
- this.swipeMove(0);
- }
- },
- },
});
diff --git a/dist/switch/index.js b/dist/switch/index.js
index d25fd27e..4cad09c9 100644
--- a/dist/switch/index.js
+++ b/dist/switch/index.js
@@ -1,36 +1,36 @@
import { VantComponent } from '../common/component';
VantComponent({
- field: true,
- classes: ['node-class'],
- props: {
- checked: null,
- loading: Boolean,
- disabled: Boolean,
- activeColor: String,
- inactiveColor: String,
- size: {
- type: String,
- value: '30',
+ field: true,
+ classes: ['node-class'],
+ props: {
+ checked: null,
+ loading: Boolean,
+ disabled: Boolean,
+ activeColor: String,
+ inactiveColor: String,
+ size: {
+ type: String,
+ value: '30',
+ },
+ activeValue: {
+ type: null,
+ value: true,
+ },
+ inactiveValue: {
+ type: null,
+ value: false,
+ },
},
- activeValue: {
- type: null,
- value: true,
+ methods: {
+ onClick() {
+ const { activeValue, inactiveValue, disabled, loading } = this.data;
+ if (disabled || loading) {
+ return;
+ }
+ const checked = this.data.checked === activeValue;
+ const value = checked ? inactiveValue : activeValue;
+ this.$emit('input', value);
+ this.$emit('change', value);
+ },
},
- inactiveValue: {
- type: null,
- value: false,
- },
- },
- methods: {
- onClick() {
- const { activeValue, inactiveValue, disabled, loading } = this.data;
- if (disabled || loading) {
- return;
- }
- const checked = this.data.checked === activeValue;
- const value = checked ? inactiveValue : activeValue;
- this.$emit('input', value);
- this.$emit('change', value);
- },
- },
});
diff --git a/dist/tab/index.js b/dist/tab/index.js
index 287825e6..9ada62e0 100644
--- a/dist/tab/index.js
+++ b/dist/tab/index.js
@@ -1,56 +1,56 @@
import { useParent } from '../common/relation';
import { VantComponent } from '../common/component';
VantComponent({
- relation: useParent('tabs'),
- props: {
- dot: {
- type: Boolean,
- observer: 'update',
+ relation: useParent('tabs'),
+ props: {
+ dot: {
+ type: Boolean,
+ observer: 'update',
+ },
+ info: {
+ type: null,
+ observer: 'update',
+ },
+ title: {
+ type: String,
+ observer: 'update',
+ },
+ disabled: {
+ type: Boolean,
+ observer: 'update',
+ },
+ titleStyle: {
+ type: String,
+ observer: 'update',
+ },
+ name: {
+ type: null,
+ value: '',
+ },
},
- info: {
- type: null,
- observer: 'update',
+ data: {
+ active: false,
},
- title: {
- type: String,
- observer: 'update',
+ methods: {
+ getComputedName() {
+ if (this.data.name !== '') {
+ return this.data.name;
+ }
+ return this.index;
+ },
+ updateRender(active, parent) {
+ const { data: parentData } = parent;
+ this.inited = this.inited || active;
+ this.setData({
+ active,
+ shouldRender: this.inited || !parentData.lazyRender,
+ shouldShow: active || parentData.animated,
+ });
+ },
+ update() {
+ if (this.parent) {
+ this.parent.updateTabs();
+ }
+ },
},
- disabled: {
- type: Boolean,
- observer: 'update',
- },
- titleStyle: {
- type: String,
- observer: 'update',
- },
- name: {
- type: null,
- value: '',
- },
- },
- data: {
- active: false,
- },
- methods: {
- getComputedName() {
- if (this.data.name !== '') {
- return this.data.name;
- }
- return this.index;
- },
- updateRender(active, parent) {
- const { data: parentData } = parent;
- this.inited = this.inited || active;
- this.setData({
- active,
- shouldRender: this.inited || !parentData.lazyRender,
- shouldShow: active || parentData.animated,
- });
- },
- update() {
- if (this.parent) {
- this.parent.updateTabs();
- }
- },
- },
});
diff --git a/dist/tabbar-item/index.js b/dist/tabbar-item/index.js
index d323703f..4154399e 100644
--- a/dist/tabbar-item/index.js
+++ b/dist/tabbar-item/index.js
@@ -1,56 +1,56 @@
import { VantComponent } from '../common/component';
import { useParent } from '../common/relation';
VantComponent({
- props: {
- info: null,
- name: null,
- icon: String,
- dot: Boolean,
- iconPrefix: {
- type: String,
- value: 'van-icon',
+ props: {
+ info: null,
+ name: null,
+ icon: String,
+ dot: Boolean,
+ iconPrefix: {
+ type: String,
+ value: 'van-icon',
+ },
},
- },
- relation: useParent('tabbar'),
- data: {
- active: false,
- activeColor: '',
- inactiveColor: '',
- },
- methods: {
- onClick() {
- const { parent } = this;
- if (parent) {
- const index = parent.children.indexOf(this);
- const active = this.data.name || index;
- if (active !== this.data.active) {
- parent.$emit('change', active);
- }
- }
- this.$emit('click');
+ relation: useParent('tabbar'),
+ data: {
+ active: false,
+ activeColor: '',
+ inactiveColor: '',
},
- updateFromParent() {
- const { parent } = this;
- if (!parent) {
- return;
- }
- const index = parent.children.indexOf(this);
- const parentData = parent.data;
- const { data } = this;
- const active = (data.name || index) === parentData.active;
- const patch = {};
- if (active !== data.active) {
- patch.active = active;
- }
- if (parentData.activeColor !== data.activeColor) {
- patch.activeColor = parentData.activeColor;
- }
- if (parentData.inactiveColor !== data.inactiveColor) {
- patch.inactiveColor = parentData.inactiveColor;
- }
- if (Object.keys(patch).length > 0) {
- this.setData(patch);
- }
+ methods: {
+ onClick() {
+ const { parent } = this;
+ if (parent) {
+ const index = parent.children.indexOf(this);
+ const active = this.data.name || index;
+ if (active !== this.data.active) {
+ parent.$emit('change', active);
+ }
+ }
+ this.$emit('click');
+ },
+ updateFromParent() {
+ const { parent } = this;
+ if (!parent) {
+ return;
+ }
+ const index = parent.children.indexOf(this);
+ const parentData = parent.data;
+ const { data } = this;
+ const active = (data.name || index) === parentData.active;
+ const patch = {};
+ if (active !== data.active) {
+ patch.active = active;
+ }
+ if (parentData.activeColor !== data.activeColor) {
+ patch.activeColor = parentData.activeColor;
+ }
+ if (parentData.inactiveColor !== data.inactiveColor) {
+ patch.inactiveColor = parentData.inactiveColor;
+ }
+ if (Object.keys(patch).length > 0) {
+ this.setData(patch);
+ }
+ },
},
- },
});
diff --git a/dist/tabbar/index.js b/dist/tabbar/index.js
index 33bef092..05a39d6e 100644
--- a/dist/tabbar/index.js
+++ b/dist/tabbar/index.js
@@ -2,64 +2,64 @@ import { VantComponent } from '../common/component';
import { useChildren } from '../common/relation';
import { getRect } from '../common/utils';
VantComponent({
- relation: useChildren('tabbar-item', function () {
- this.updateChildren();
- }),
- props: {
- active: {
- type: null,
- observer: 'updateChildren',
+ relation: useChildren('tabbar-item', function () {
+ this.updateChildren();
+ }),
+ props: {
+ active: {
+ type: null,
+ observer: 'updateChildren',
+ },
+ activeColor: {
+ type: String,
+ observer: 'updateChildren',
+ },
+ inactiveColor: {
+ type: String,
+ observer: 'updateChildren',
+ },
+ fixed: {
+ type: Boolean,
+ value: true,
+ observer: 'setHeight',
+ },
+ placeholder: {
+ type: Boolean,
+ observer: 'setHeight',
+ },
+ border: {
+ type: Boolean,
+ value: true,
+ },
+ zIndex: {
+ type: Number,
+ value: 1,
+ },
+ safeAreaInsetBottom: {
+ type: Boolean,
+ value: true,
+ },
},
- activeColor: {
- type: String,
- observer: 'updateChildren',
+ data: {
+ height: 50,
},
- inactiveColor: {
- type: String,
- observer: 'updateChildren',
+ methods: {
+ updateChildren() {
+ const { children } = this;
+ if (!Array.isArray(children) || !children.length) {
+ return;
+ }
+ children.forEach((child) => child.updateFromParent());
+ },
+ setHeight() {
+ if (!this.data.fixed || !this.data.placeholder) {
+ return;
+ }
+ wx.nextTick(() => {
+ getRect(this, '.van-tabbar').then((res) => {
+ this.setData({ height: res.height });
+ });
+ });
+ },
},
- fixed: {
- type: Boolean,
- value: true,
- observer: 'setHeight',
- },
- placeholder: {
- type: Boolean,
- observer: 'setHeight',
- },
- border: {
- type: Boolean,
- value: true,
- },
- zIndex: {
- type: Number,
- value: 1,
- },
- safeAreaInsetBottom: {
- type: Boolean,
- value: true,
- },
- },
- data: {
- height: 50,
- },
- methods: {
- updateChildren() {
- const { children } = this;
- if (!Array.isArray(children) || !children.length) {
- return;
- }
- children.forEach((child) => child.updateFromParent());
- },
- setHeight() {
- if (!this.data.fixed || !this.data.placeholder) {
- return;
- }
- wx.nextTick(() => {
- getRect(this, '.van-tabbar').then((res) => {
- this.setData({ height: res.height });
- });
- });
- },
- },
});
diff --git a/dist/tabs/index.js b/dist/tabs/index.js
index dee2aef6..76b5d719 100644
--- a/dist/tabs/index.js
+++ b/dist/tabs/index.js
@@ -1,286 +1,271 @@
import { VantComponent } from '../common/component';
import { touch } from '../mixins/touch';
-import {
- getAllRect,
- getRect,
- groupSetData,
- nextTick,
- requestAnimationFrame,
-} from '../common/utils';
+import { getAllRect, getRect, groupSetData, nextTick, requestAnimationFrame, } from '../common/utils';
import { isDef } from '../common/validator';
import { useChildren } from '../common/relation';
VantComponent({
- mixins: [touch],
- classes: ['nav-class', 'tab-class', 'tab-active-class', 'line-class'],
- relation: useChildren('tab', function () {
- this.updateTabs();
- }),
- props: {
- sticky: Boolean,
- border: Boolean,
- swipeable: Boolean,
- titleActiveColor: String,
- titleInactiveColor: String,
- color: String,
- animated: {
- type: Boolean,
- observer() {
- this.children.forEach((child, index) =>
- child.updateRender(index === this.data.currentIndex, this)
- );
- },
+ mixins: [touch],
+ classes: ['nav-class', 'tab-class', 'tab-active-class', 'line-class'],
+ relation: useChildren('tab', function () {
+ this.updateTabs();
+ }),
+ props: {
+ sticky: Boolean,
+ border: Boolean,
+ swipeable: Boolean,
+ titleActiveColor: String,
+ titleInactiveColor: String,
+ color: String,
+ animated: {
+ type: Boolean,
+ observer() {
+ this.children.forEach((child, index) => child.updateRender(index === this.data.currentIndex, this));
+ },
+ },
+ lineWidth: {
+ type: null,
+ value: 40,
+ observer: 'resize',
+ },
+ lineHeight: {
+ type: null,
+ value: -1,
+ },
+ active: {
+ type: null,
+ value: 0,
+ observer(name) {
+ if (!this.skipInit) {
+ this.skipInit = true;
+ }
+ if (name !== this.getCurrentName()) {
+ this.setCurrentIndexByName(name);
+ }
+ },
+ },
+ type: {
+ type: String,
+ value: 'line',
+ },
+ ellipsis: {
+ type: Boolean,
+ value: true,
+ },
+ duration: {
+ type: Number,
+ value: 0.3,
+ },
+ zIndex: {
+ type: Number,
+ value: 1,
+ },
+ swipeThreshold: {
+ type: Number,
+ value: 5,
+ observer(value) {
+ this.setData({
+ scrollable: this.children.length > value || !this.data.ellipsis,
+ });
+ },
+ },
+ offsetTop: {
+ type: Number,
+ value: 0,
+ },
+ lazyRender: {
+ type: Boolean,
+ value: true,
+ },
},
- lineWidth: {
- type: null,
- value: 40,
- observer: 'resize',
+ data: {
+ tabs: [],
+ scrollLeft: 0,
+ scrollable: false,
+ currentIndex: 0,
+ container: null,
+ skipTransition: true,
+ scrollWithAnimation: false,
+ lineOffsetLeft: 0,
},
- lineHeight: {
- type: null,
- value: -1,
- },
- active: {
- type: null,
- value: 0,
- observer(name) {
- if (!this.skipInit) {
- this.skipInit = true;
- }
- if (name !== this.getCurrentName()) {
- this.setCurrentIndexByName(name);
- }
- },
- },
- type: {
- type: String,
- value: 'line',
- },
- ellipsis: {
- type: Boolean,
- value: true,
- },
- duration: {
- type: Number,
- value: 0.3,
- },
- zIndex: {
- type: Number,
- value: 1,
- },
- swipeThreshold: {
- type: Number,
- value: 5,
- observer(value) {
- this.setData({
- scrollable: this.children.length > value || !this.data.ellipsis,
+ mounted() {
+ requestAnimationFrame(() => {
+ this.setData({
+ container: () => this.createSelectorQuery().select('.van-tabs'),
+ });
+ if (!this.skipInit) {
+ this.resize();
+ this.scrollIntoView();
+ }
});
- },
},
- offsetTop: {
- type: Number,
- value: 0,
+ methods: {
+ updateTabs() {
+ const { children = [], data } = this;
+ this.setData({
+ tabs: children.map((child) => child.data),
+ scrollable: this.children.length > data.swipeThreshold || !data.ellipsis,
+ });
+ this.setCurrentIndexByName(data.active || this.getCurrentName());
+ },
+ trigger(eventName, child) {
+ const { currentIndex } = this.data;
+ const currentChild = child || this.children[currentIndex];
+ if (!isDef(currentChild)) {
+ return;
+ }
+ this.$emit(eventName, {
+ index: currentChild.index,
+ name: currentChild.getComputedName(),
+ title: currentChild.data.title,
+ });
+ },
+ onTap(event) {
+ const { index } = event.currentTarget.dataset;
+ const child = this.children[index];
+ if (child.data.disabled) {
+ this.trigger('disabled', child);
+ }
+ else {
+ this.setCurrentIndex(index);
+ nextTick(() => {
+ this.trigger('click');
+ });
+ }
+ },
+ // correct the index of active tab
+ setCurrentIndexByName(name) {
+ const { children = [] } = this;
+ const matched = children.filter((child) => child.getComputedName() === name);
+ if (matched.length) {
+ this.setCurrentIndex(matched[0].index);
+ }
+ },
+ setCurrentIndex(currentIndex) {
+ const { data, children = [] } = this;
+ if (!isDef(currentIndex) ||
+ currentIndex >= children.length ||
+ currentIndex < 0) {
+ return;
+ }
+ groupSetData(this, () => {
+ children.forEach((item, index) => {
+ const active = index === currentIndex;
+ if (active !== item.data.active || !item.inited) {
+ item.updateRender(active, this);
+ }
+ });
+ });
+ if (currentIndex === data.currentIndex) {
+ return;
+ }
+ const shouldEmitChange = data.currentIndex !== null;
+ this.setData({ currentIndex });
+ requestAnimationFrame(() => {
+ this.resize();
+ this.scrollIntoView();
+ });
+ nextTick(() => {
+ this.trigger('input');
+ if (shouldEmitChange) {
+ this.trigger('change');
+ }
+ });
+ },
+ getCurrentName() {
+ const activeTab = this.children[this.data.currentIndex];
+ if (activeTab) {
+ return activeTab.getComputedName();
+ }
+ },
+ resize() {
+ if (this.data.type !== 'line') {
+ return;
+ }
+ const { currentIndex, ellipsis, skipTransition } = this.data;
+ Promise.all([
+ getAllRect(this, '.van-tab'),
+ getRect(this, '.van-tabs__line'),
+ ]).then(([rects = [], lineRect]) => {
+ const rect = rects[currentIndex];
+ if (rect == null) {
+ return;
+ }
+ let lineOffsetLeft = rects
+ .slice(0, currentIndex)
+ .reduce((prev, curr) => prev + curr.width, 0);
+ lineOffsetLeft +=
+ (rect.width - lineRect.width) / 2 + (ellipsis ? 0 : 8);
+ this.setData({ lineOffsetLeft });
+ if (skipTransition) {
+ nextTick(() => {
+ this.setData({ skipTransition: false });
+ });
+ }
+ });
+ },
+ // scroll active tab into view
+ scrollIntoView() {
+ const { currentIndex, scrollable, scrollWithAnimation } = this.data;
+ if (!scrollable) {
+ return;
+ }
+ Promise.all([
+ getAllRect(this, '.van-tab'),
+ getRect(this, '.van-tabs__nav'),
+ ]).then(([tabRects, navRect]) => {
+ const tabRect = tabRects[currentIndex];
+ const offsetLeft = tabRects
+ .slice(0, currentIndex)
+ .reduce((prev, curr) => prev + curr.width, 0);
+ this.setData({
+ scrollLeft: offsetLeft - (navRect.width - tabRect.width) / 2,
+ });
+ if (!scrollWithAnimation) {
+ nextTick(() => {
+ this.setData({ scrollWithAnimation: true });
+ });
+ }
+ });
+ },
+ onTouchScroll(event) {
+ this.$emit('scroll', event.detail);
+ },
+ onTouchStart(event) {
+ if (!this.data.swipeable)
+ return;
+ this.touchStart(event);
+ },
+ onTouchMove(event) {
+ if (!this.data.swipeable)
+ return;
+ this.touchMove(event);
+ },
+ // watch swipe touch end
+ onTouchEnd() {
+ if (!this.data.swipeable)
+ return;
+ const { direction, deltaX, offsetX } = this;
+ const minSwipeDistance = 50;
+ if (direction === 'horizontal' && offsetX >= minSwipeDistance) {
+ const index = this.getAvaiableTab(deltaX);
+ if (index !== -1) {
+ this.setCurrentIndex(index);
+ }
+ }
+ },
+ getAvaiableTab(direction) {
+ const { tabs, currentIndex } = this.data;
+ const step = direction > 0 ? -1 : 1;
+ for (let i = step; currentIndex + i < tabs.length && currentIndex + i >= 0; i += step) {
+ const index = currentIndex + i;
+ if (index >= 0 &&
+ index < tabs.length &&
+ tabs[index] &&
+ !tabs[index].disabled) {
+ return index;
+ }
+ }
+ return -1;
+ },
},
- lazyRender: {
- type: Boolean,
- value: true,
- },
- },
- data: {
- tabs: [],
- scrollLeft: 0,
- scrollable: false,
- currentIndex: 0,
- container: null,
- skipTransition: true,
- scrollWithAnimation: false,
- lineOffsetLeft: 0,
- },
- mounted() {
- requestAnimationFrame(() => {
- this.setData({
- container: () => this.createSelectorQuery().select('.van-tabs'),
- });
- if (!this.skipInit) {
- this.resize();
- this.scrollIntoView();
- }
- });
- },
- methods: {
- updateTabs() {
- const { children = [], data } = this;
- this.setData({
- tabs: children.map((child) => child.data),
- scrollable:
- this.children.length > data.swipeThreshold || !data.ellipsis,
- });
- this.setCurrentIndexByName(data.active || this.getCurrentName());
- },
- trigger(eventName, child) {
- const { currentIndex } = this.data;
- const currentChild = child || this.children[currentIndex];
- if (!isDef(currentChild)) {
- return;
- }
- this.$emit(eventName, {
- index: currentChild.index,
- name: currentChild.getComputedName(),
- title: currentChild.data.title,
- });
- },
- onTap(event) {
- const { index } = event.currentTarget.dataset;
- const child = this.children[index];
- if (child.data.disabled) {
- this.trigger('disabled', child);
- } else {
- this.setCurrentIndex(index);
- nextTick(() => {
- this.trigger('click');
- });
- }
- },
- // correct the index of active tab
- setCurrentIndexByName(name) {
- const { children = [] } = this;
- const matched = children.filter(
- (child) => child.getComputedName() === name
- );
- if (matched.length) {
- this.setCurrentIndex(matched[0].index);
- }
- },
- setCurrentIndex(currentIndex) {
- const { data, children = [] } = this;
- if (
- !isDef(currentIndex) ||
- currentIndex >= children.length ||
- currentIndex < 0
- ) {
- return;
- }
- groupSetData(this, () => {
- children.forEach((item, index) => {
- const active = index === currentIndex;
- if (active !== item.data.active || !item.inited) {
- item.updateRender(active, this);
- }
- });
- });
- if (currentIndex === data.currentIndex) {
- return;
- }
- const shouldEmitChange = data.currentIndex !== null;
- this.setData({ currentIndex });
- requestAnimationFrame(() => {
- this.resize();
- this.scrollIntoView();
- });
- nextTick(() => {
- this.trigger('input');
- if (shouldEmitChange) {
- this.trigger('change');
- }
- });
- },
- getCurrentName() {
- const activeTab = this.children[this.data.currentIndex];
- if (activeTab) {
- return activeTab.getComputedName();
- }
- },
- resize() {
- if (this.data.type !== 'line') {
- return;
- }
- const { currentIndex, ellipsis, skipTransition } = this.data;
- Promise.all([
- getAllRect(this, '.van-tab'),
- getRect(this, '.van-tabs__line'),
- ]).then(([rects = [], lineRect]) => {
- const rect = rects[currentIndex];
- if (rect == null) {
- return;
- }
- let lineOffsetLeft = rects
- .slice(0, currentIndex)
- .reduce((prev, curr) => prev + curr.width, 0);
- lineOffsetLeft +=
- (rect.width - lineRect.width) / 2 + (ellipsis ? 0 : 8);
- this.setData({ lineOffsetLeft });
- if (skipTransition) {
- nextTick(() => {
- this.setData({ skipTransition: false });
- });
- }
- });
- },
- // scroll active tab into view
- scrollIntoView() {
- const { currentIndex, scrollable, scrollWithAnimation } = this.data;
- if (!scrollable) {
- return;
- }
- Promise.all([
- getAllRect(this, '.van-tab'),
- getRect(this, '.van-tabs__nav'),
- ]).then(([tabRects, navRect]) => {
- const tabRect = tabRects[currentIndex];
- const offsetLeft = tabRects
- .slice(0, currentIndex)
- .reduce((prev, curr) => prev + curr.width, 0);
- this.setData({
- scrollLeft: offsetLeft - (navRect.width - tabRect.width) / 2,
- });
- if (!scrollWithAnimation) {
- nextTick(() => {
- this.setData({ scrollWithAnimation: true });
- });
- }
- });
- },
- onTouchScroll(event) {
- this.$emit('scroll', event.detail);
- },
- onTouchStart(event) {
- if (!this.data.swipeable) return;
- this.touchStart(event);
- },
- onTouchMove(event) {
- if (!this.data.swipeable) return;
- this.touchMove(event);
- },
- // watch swipe touch end
- onTouchEnd() {
- if (!this.data.swipeable) return;
- const { direction, deltaX, offsetX } = this;
- const minSwipeDistance = 50;
- if (direction === 'horizontal' && offsetX >= minSwipeDistance) {
- const index = this.getAvaiableTab(deltaX);
- if (index !== -1) {
- this.setCurrentIndex(index);
- }
- }
- },
- getAvaiableTab(direction) {
- const { tabs, currentIndex } = this.data;
- const step = direction > 0 ? -1 : 1;
- for (
- let i = step;
- currentIndex + i < tabs.length && currentIndex + i >= 0;
- i += step
- ) {
- const index = currentIndex + i;
- if (
- index >= 0 &&
- index < tabs.length &&
- tabs[index] &&
- !tabs[index].disabled
- ) {
- return index;
- }
- }
- return -1;
- },
- },
});
diff --git a/dist/tag/index.js b/dist/tag/index.js
index 49627a39..9704ef01 100644
--- a/dist/tag/index.js
+++ b/dist/tag/index.js
@@ -1,21 +1,21 @@
import { VantComponent } from '../common/component';
VantComponent({
- props: {
- size: String,
- mark: Boolean,
- color: String,
- plain: Boolean,
- round: Boolean,
- textColor: String,
- type: {
- type: String,
- value: 'default',
+ props: {
+ size: String,
+ mark: Boolean,
+ color: String,
+ plain: Boolean,
+ round: Boolean,
+ textColor: String,
+ type: {
+ type: String,
+ value: 'default',
+ },
+ closeable: Boolean,
},
- closeable: Boolean,
- },
- methods: {
- onClose() {
- this.$emit('close');
+ methods: {
+ onClose() {
+ this.$emit('close');
+ },
},
- },
});
diff --git a/dist/toast/index.js b/dist/toast/index.js
index c4c2ed94..414e746a 100644
--- a/dist/toast/index.js
+++ b/dist/toast/index.js
@@ -1,29 +1,29 @@
import { VantComponent } from '../common/component';
VantComponent({
- props: {
- show: Boolean,
- mask: Boolean,
- message: String,
- forbidClick: Boolean,
- zIndex: {
- type: Number,
- value: 1000,
+ props: {
+ show: Boolean,
+ mask: Boolean,
+ message: String,
+ forbidClick: Boolean,
+ zIndex: {
+ type: Number,
+ value: 1000,
+ },
+ type: {
+ type: String,
+ value: 'text',
+ },
+ loadingType: {
+ type: String,
+ value: 'circular',
+ },
+ position: {
+ type: String,
+ value: 'middle',
+ },
},
- type: {
- type: String,
- value: 'text',
+ methods: {
+ // for prevent touchmove
+ noop() { },
},
- loadingType: {
- type: String,
- value: 'circular',
- },
- position: {
- type: String,
- value: 'middle',
- },
- },
- methods: {
- // for prevent touchmove
- noop() {},
- },
});
diff --git a/dist/toast/toast.d.ts b/dist/toast/toast.d.ts
index aaa3aa1d..db3f40e6 100644
--- a/dist/toast/toast.d.ts
+++ b/dist/toast/toast.d.ts
@@ -1,36 +1,26 @@
///
declare type ToastMessage = string | number;
interface ToastOptions {
- show?: boolean;
- type?: string;
- mask?: boolean;
- zIndex?: number;
- context?:
- | WechatMiniprogram.Component.TrivialInstance
- | WechatMiniprogram.Page.TrivialInstance;
- position?: string;
- duration?: number;
- selector?: string;
- forbidClick?: boolean;
- loadingType?: string;
- message?: ToastMessage;
- onClose?: () => void;
+ show?: boolean;
+ type?: string;
+ mask?: boolean;
+ zIndex?: number;
+ context?: WechatMiniprogram.Component.TrivialInstance | WechatMiniprogram.Page.TrivialInstance;
+ 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 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;
+ 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;
diff --git a/dist/toast/toast.js b/dist/toast/toast.js
index 4a1b63aa..10775f31 100644
--- a/dist/toast/toast.js
+++ b/dist/toast/toast.js
@@ -1,70 +1,66 @@
import { isObj } from '../common/validator';
const defaultOptions = {
- type: 'text',
- mask: false,
- message: '',
- show: true,
- zIndex: 1000,
- duration: 2000,
- position: 'middle',
- forbidClick: false,
- loadingType: 'circular',
- selector: '#van-toast',
+ type: 'text',
+ mask: false,
+ message: '',
+ show: true,
+ zIndex: 1000,
+ duration: 2000,
+ position: 'middle',
+ forbidClick: false,
+ loadingType: 'circular',
+ selector: '#van-toast',
};
let queue = [];
let currentOptions = Object.assign({}, defaultOptions);
function parseOptions(message) {
- return isObj(message) ? message : { message };
+ return isObj(message) ? message : { message };
}
function getContext() {
- const pages = getCurrentPages();
- return pages[pages.length - 1];
+ const pages = getCurrentPages();
+ return pages[pages.length - 1];
}
function Toast(toastOptions) {
- const options = Object.assign(
- Object.assign({}, currentOptions),
- parseOptions(toastOptions)
- );
- const context = options.context || getContext();
- const toast = context.selectComponent(options.selector);
- if (!toast) {
- console.warn('未找到 van-toast 节点,请确认 selector 及 context 是否正确');
- return;
- }
- delete options.context;
- delete options.selector;
- toast.clear = () => {
- toast.setData({ show: false });
- if (options.onClose) {
- options.onClose();
+ const options = Object.assign(Object.assign({}, currentOptions), parseOptions(toastOptions));
+ const context = options.context || getContext();
+ const toast = context.selectComponent(options.selector);
+ if (!toast) {
+ console.warn('未找到 van-toast 节点,请确认 selector 及 context 是否正确');
+ return;
}
- };
- queue.push(toast);
- toast.setData(options);
- clearTimeout(toast.timer);
- if (options.duration != null && options.duration > 0) {
- toast.timer = setTimeout(() => {
- toast.clear();
- queue = queue.filter((item) => item !== toast);
- }, options.duration);
- }
- return toast;
+ delete options.context;
+ delete options.selector;
+ toast.clear = () => {
+ toast.setData({ show: false });
+ if (options.onClose) {
+ options.onClose();
+ }
+ };
+ queue.push(toast);
+ toast.setData(options);
+ clearTimeout(toast.timer);
+ if (options.duration != null && options.duration > 0) {
+ toast.timer = setTimeout(() => {
+ toast.clear();
+ queue = queue.filter((item) => item !== toast);
+ }, options.duration);
+ }
+ return toast;
}
-const createMethod = (type) => (options) =>
- Toast(Object.assign({ type }, parseOptions(options)));
+const createMethod = (type) => (options) => Toast(Object.assign({ type }, parseOptions(options)));
Toast.loading = createMethod('loading');
Toast.success = createMethod('success');
Toast.fail = createMethod('fail');
Toast.clear = () => {
- queue.forEach((toast) => {
- toast.clear();
- });
- queue = [];
+ queue.forEach((toast) => {
+ toast.clear();
+ });
+ queue = [];
};
Toast.setDefaultOptions = (options) => {
- Object.assign(currentOptions, options);
+ Object.assign(currentOptions, options);
};
Toast.resetDefaultOptions = () => {
- currentOptions = Object.assign({}, defaultOptions);
+ currentOptions = Object.assign({}, defaultOptions);
};
export default Toast;
diff --git a/dist/transition/index.js b/dist/transition/index.js
index 0ebdef0d..59bb9842 100644
--- a/dist/transition/index.js
+++ b/dist/transition/index.js
@@ -1,13 +1,13 @@
import { VantComponent } from '../common/component';
import { transition } from '../mixins/transition';
VantComponent({
- classes: [
- 'enter-class',
- 'enter-active-class',
- 'enter-to-class',
- 'leave-class',
- 'leave-active-class',
- 'leave-to-class',
- ],
- mixins: [transition(true)],
+ classes: [
+ 'enter-class',
+ 'enter-active-class',
+ 'enter-to-class',
+ 'leave-class',
+ 'leave-active-class',
+ 'leave-to-class',
+ ],
+ mixins: [transition(true)],
});
diff --git a/dist/tree-select/index.js b/dist/tree-select/index.js
index 8dc4ed86..a850ed6e 100644
--- a/dist/tree-select/index.js
+++ b/dist/tree-select/index.js
@@ -1,68 +1,68 @@
import { VantComponent } from '../common/component';
VantComponent({
- classes: [
- 'main-item-class',
- 'content-item-class',
- 'main-active-class',
- 'content-active-class',
- 'main-disabled-class',
- 'content-disabled-class',
- ],
- props: {
- items: {
- type: Array,
- observer: 'updateSubItems',
+ classes: [
+ 'main-item-class',
+ 'content-item-class',
+ 'main-active-class',
+ 'content-active-class',
+ 'main-disabled-class',
+ 'content-disabled-class',
+ ],
+ props: {
+ items: {
+ type: Array,
+ observer: 'updateSubItems',
+ },
+ activeId: null,
+ mainActiveIndex: {
+ type: Number,
+ value: 0,
+ observer: 'updateSubItems',
+ },
+ height: {
+ type: null,
+ value: 300,
+ },
+ max: {
+ type: Number,
+ value: Infinity,
+ },
+ selectedIcon: {
+ type: String,
+ value: 'success',
+ },
},
- activeId: null,
- mainActiveIndex: {
- type: Number,
- value: 0,
- observer: 'updateSubItems',
+ data: {
+ subItems: [],
},
- height: {
- type: null,
- value: 300,
+ methods: {
+ // 当一个子项被选择时
+ onSelectItem(event) {
+ const { item } = event.currentTarget.dataset;
+ const isArray = Array.isArray(this.data.activeId);
+ // 判断有没有超出右侧选择的最大数
+ const isOverMax = isArray && this.data.activeId.length >= this.data.max;
+ // 判断该项有没有被选中, 如果有被选中,则忽视是否超出的条件
+ const isSelected = isArray
+ ? this.data.activeId.indexOf(item.id) > -1
+ : this.data.activeId === item.id;
+ if (!item.disabled && (!isOverMax || isSelected)) {
+ this.$emit('click-item', item);
+ }
+ },
+ // 当一个导航被点击时
+ onClickNav(event) {
+ const index = event.detail;
+ const item = this.data.items[index];
+ if (!item.disabled) {
+ this.$emit('click-nav', { index });
+ }
+ },
+ // 更新子项列表
+ updateSubItems() {
+ const { items, mainActiveIndex } = this.data;
+ const { children = [] } = items[mainActiveIndex] || {};
+ this.setData({ subItems: children });
+ },
},
- max: {
- type: Number,
- value: Infinity,
- },
- selectedIcon: {
- type: String,
- value: 'success',
- },
- },
- data: {
- subItems: [],
- },
- methods: {
- // 当一个子项被选择时
- onSelectItem(event) {
- const { item } = event.currentTarget.dataset;
- const isArray = Array.isArray(this.data.activeId);
- // 判断有没有超出右侧选择的最大数
- const isOverMax = isArray && this.data.activeId.length >= this.data.max;
- // 判断该项有没有被选中, 如果有被选中,则忽视是否超出的条件
- const isSelected = isArray
- ? this.data.activeId.indexOf(item.id) > -1
- : this.data.activeId === item.id;
- if (!item.disabled && (!isOverMax || isSelected)) {
- this.$emit('click-item', item);
- }
- },
- // 当一个导航被点击时
- onClickNav(event) {
- const index = event.detail;
- const item = this.data.items[index];
- if (!item.disabled) {
- this.$emit('click-nav', { index });
- }
- },
- // 更新子项列表
- updateSubItems() {
- const { items, mainActiveIndex } = this.data;
- const { children = [] } = items[mainActiveIndex] || {};
- this.setData({ subItems: children });
- },
- },
});
diff --git a/dist/uploader/index.js b/dist/uploader/index.js
index 263c50e3..ba4b1b46 100644
--- a/dist/uploader/index.js
+++ b/dist/uploader/index.js
@@ -3,199 +3,153 @@ import { isImageFile, chooseFile, isVideoFile } from './utils';
import { chooseImageProps, chooseVideoProps } from './shared';
import { isBoolean, isPromise } from '../common/validator';
VantComponent({
- props: Object.assign(
- Object.assign(
- {
- disabled: Boolean,
- multiple: Boolean,
- uploadText: String,
- useBeforeRead: Boolean,
- afterRead: null,
- beforeRead: null,
- previewSize: {
- type: null,
- value: 80,
- },
- name: {
- type: null,
- value: '',
- },
- accept: {
- type: String,
- value: 'image',
- },
- fileList: {
- type: Array,
- value: [],
- observer: 'formatFileList',
- },
- maxSize: {
- type: Number,
- value: Number.MAX_VALUE,
- },
- maxCount: {
- type: Number,
- value: 100,
- },
- deletable: {
- type: Boolean,
- value: true,
- },
- showUpload: {
- type: Boolean,
- value: true,
- },
- previewImage: {
- type: Boolean,
- value: true,
- },
- previewFullImage: {
- type: Boolean,
- value: true,
- },
- imageFit: {
- type: String,
- value: 'scaleToFill',
- },
- uploadIcon: {
- type: String,
- value: 'photograph',
- },
- },
- chooseImageProps
- ),
- chooseVideoProps
- ),
- data: {
- lists: [],
- isInCount: true,
- },
- methods: {
- formatFileList() {
- const { fileList = [], maxCount } = this.data;
- const lists = fileList.map((item) =>
- Object.assign(Object.assign({}, item), {
- isImage: isImageFile(item),
- isVideo: isVideoFile(item),
- deletable: isBoolean(item.deletable) ? item.deletable : true,
- })
- );
- this.setData({ lists, isInCount: lists.length < maxCount });
+ props: Object.assign(Object.assign({ disabled: Boolean, multiple: Boolean, uploadText: String, useBeforeRead: Boolean, afterRead: null, beforeRead: null, previewSize: {
+ type: null,
+ value: 80,
+ }, name: {
+ type: null,
+ value: '',
+ }, accept: {
+ type: String,
+ value: 'image',
+ }, fileList: {
+ type: Array,
+ value: [],
+ observer: 'formatFileList',
+ }, maxSize: {
+ type: Number,
+ value: Number.MAX_VALUE,
+ }, maxCount: {
+ type: Number,
+ value: 100,
+ }, deletable: {
+ type: Boolean,
+ value: true,
+ }, showUpload: {
+ type: Boolean,
+ value: true,
+ }, previewImage: {
+ type: Boolean,
+ value: true,
+ }, previewFullImage: {
+ type: Boolean,
+ value: true,
+ }, imageFit: {
+ type: String,
+ value: 'scaleToFill',
+ }, uploadIcon: {
+ type: String,
+ value: 'photograph',
+ } }, chooseImageProps), chooseVideoProps),
+ data: {
+ lists: [],
+ isInCount: true,
},
- getDetail(index) {
- return {
- name: this.data.name,
- index: index == null ? this.data.fileList.length : index,
- };
- },
- startUpload() {
- const { maxCount, multiple, lists, disabled } = this.data;
- if (disabled) return;
- chooseFile(
- Object.assign(Object.assign({}, this.data), {
- maxCount: maxCount - lists.length,
- })
- )
- .then((res) => {
- this.onBeforeRead(multiple ? res : res[0]);
- })
- .catch((error) => {
- this.$emit('error', error);
- });
- },
- onBeforeRead(file) {
- const { beforeRead, useBeforeRead } = this.data;
- let res = true;
- if (typeof beforeRead === 'function') {
- res = beforeRead(file, this.getDetail());
- }
- if (useBeforeRead) {
- res = new Promise((resolve, reject) => {
- this.$emit(
- 'before-read',
- Object.assign(Object.assign({ file }, this.getDetail()), {
- callback: (ok) => {
- ok ? resolve() : reject();
- },
+ methods: {
+ formatFileList() {
+ const { fileList = [], maxCount } = this.data;
+ const lists = fileList.map((item) => (Object.assign(Object.assign({}, item), { isImage: isImageFile(item), isVideo: isVideoFile(item), deletable: isBoolean(item.deletable) ? item.deletable : true })));
+ this.setData({ lists, isInCount: lists.length < maxCount });
+ },
+ getDetail(index) {
+ return {
+ name: this.data.name,
+ index: index == null ? this.data.fileList.length : index,
+ };
+ },
+ startUpload() {
+ const { maxCount, multiple, lists, disabled } = this.data;
+ if (disabled)
+ return;
+ chooseFile(Object.assign(Object.assign({}, this.data), { maxCount: maxCount - lists.length }))
+ .then((res) => {
+ this.onBeforeRead(multiple ? res : res[0]);
})
- );
- });
- }
- if (!res) {
- return;
- }
- if (isPromise(res)) {
- res.then((data) => this.onAfterRead(data || file));
- } else {
- this.onAfterRead(file);
- }
- },
- onAfterRead(file) {
- const { maxSize, afterRead } = this.data;
- const oversize = Array.isArray(file)
- ? file.some((item) => item.size > maxSize)
- : file.size > maxSize;
- if (oversize) {
- this.$emit('oversize', Object.assign({ file }, this.getDetail()));
- return;
- }
- if (typeof afterRead === 'function') {
- afterRead(file, this.getDetail());
- }
- this.$emit('after-read', Object.assign({ file }, this.getDetail()));
- },
- deleteItem(event) {
- const { index } = event.currentTarget.dataset;
- this.$emit(
- 'delete',
- Object.assign(Object.assign({}, this.getDetail(index)), {
- file: this.data.fileList[index],
- })
- );
- },
- onPreviewImage(event) {
- if (!this.data.previewFullImage) return;
- const { index } = event.currentTarget.dataset;
- const { lists } = this.data;
- const item = lists[index];
- wx.previewImage({
- urls: lists.filter((item) => isImageFile(item)).map((item) => item.url),
- current: item.url,
- fail() {
- wx.showToast({ title: '预览图片失败', icon: 'none' });
+ .catch((error) => {
+ this.$emit('error', error);
+ });
},
- });
- },
- onPreviewVideo(event) {
- if (!this.data.previewFullImage) return;
- const { index } = event.currentTarget.dataset;
- const { lists } = this.data;
- wx.previewMedia({
- sources: lists
- .filter((item) => isVideoFile(item))
- .map((item) =>
- Object.assign(Object.assign({}, item), { type: 'video' })
- ),
- current: index,
- fail() {
- wx.showToast({ title: '预览视频失败', icon: 'none' });
+ onBeforeRead(file) {
+ const { beforeRead, useBeforeRead } = this.data;
+ let res = true;
+ if (typeof beforeRead === 'function') {
+ res = beforeRead(file, this.getDetail());
+ }
+ if (useBeforeRead) {
+ res = new Promise((resolve, reject) => {
+ this.$emit('before-read', Object.assign(Object.assign({ file }, this.getDetail()), { callback: (ok) => {
+ ok ? resolve() : reject();
+ } }));
+ });
+ }
+ if (!res) {
+ return;
+ }
+ if (isPromise(res)) {
+ res.then((data) => this.onAfterRead(data || file));
+ }
+ else {
+ this.onAfterRead(file);
+ }
+ },
+ onAfterRead(file) {
+ const { maxSize, afterRead } = this.data;
+ const oversize = Array.isArray(file)
+ ? file.some((item) => item.size > maxSize)
+ : file.size > maxSize;
+ if (oversize) {
+ this.$emit('oversize', Object.assign({ file }, this.getDetail()));
+ return;
+ }
+ if (typeof afterRead === 'function') {
+ afterRead(file, this.getDetail());
+ }
+ this.$emit('after-read', Object.assign({ file }, this.getDetail()));
+ },
+ deleteItem(event) {
+ const { index } = event.currentTarget.dataset;
+ this.$emit('delete', Object.assign(Object.assign({}, this.getDetail(index)), { file: this.data.fileList[index] }));
+ },
+ onPreviewImage(event) {
+ if (!this.data.previewFullImage)
+ return;
+ const { index } = event.currentTarget.dataset;
+ const { lists } = this.data;
+ const item = lists[index];
+ wx.previewImage({
+ urls: lists.filter((item) => isImageFile(item)).map((item) => item.url),
+ current: item.url,
+ fail() {
+ wx.showToast({ title: '预览图片失败', icon: 'none' });
+ },
+ });
+ },
+ onPreviewVideo(event) {
+ if (!this.data.previewFullImage)
+ return;
+ const { index } = event.currentTarget.dataset;
+ const { lists } = this.data;
+ wx.previewMedia({
+ sources: lists
+ .filter((item) => isVideoFile(item))
+ .map((item) => (Object.assign(Object.assign({}, item), { type: 'video' }))),
+ current: index,
+ fail() {
+ wx.showToast({ title: '预览视频失败', icon: 'none' });
+ },
+ });
+ },
+ onPreviewFile(event) {
+ const { index } = event.currentTarget.dataset;
+ wx.openDocument({
+ filePath: this.data.lists[index].url,
+ showMenu: true,
+ });
+ },
+ onClickPreview(event) {
+ const { index } = event.currentTarget.dataset;
+ const item = this.data.lists[index];
+ this.$emit('click-preview', Object.assign(Object.assign({}, item), this.getDetail(index)));
},
- });
},
- onPreviewFile(event) {
- const { index } = event.currentTarget.dataset;
- wx.openDocument({
- filePath: this.data.lists[index].url,
- showMenu: true,
- });
- },
- onClickPreview(event) {
- const { index } = event.currentTarget.dataset;
- const item = this.data.lists[index];
- this.$emit(
- 'click-preview',
- Object.assign(Object.assign({}, item), this.getDetail(index))
- );
- },
- },
});
diff --git a/dist/uploader/shared.js b/dist/uploader/shared.js
index e097d74e..c12861c4 100644
--- a/dist/uploader/shared.js
+++ b/dist/uploader/shared.js
@@ -1,30 +1,30 @@
// props for choose image
export const chooseImageProps = {
- sizeType: {
- type: Array,
- value: ['original', 'compressed'],
- },
- capture: {
- type: Array,
- value: ['album', 'camera'],
- },
+ sizeType: {
+ type: Array,
+ value: ['original', 'compressed'],
+ },
+ capture: {
+ type: Array,
+ value: ['album', 'camera'],
+ },
};
// props for choose video
export const chooseVideoProps = {
- capture: {
- type: Array,
- value: ['album', 'camera'],
- },
- compressed: {
- type: Boolean,
- value: true,
- },
- maxDuration: {
- type: Number,
- value: 60,
- },
- camera: {
- type: String,
- value: 'back',
- },
+ capture: {
+ type: Array,
+ value: ['album', 'camera'],
+ },
+ compressed: {
+ type: Boolean,
+ value: true,
+ },
+ maxDuration: {
+ type: Number,
+ value: 60,
+ },
+ camera: {
+ type: String,
+ value: 'back',
+ },
};
diff --git a/dist/uploader/utils.d.ts b/dist/uploader/utils.d.ts
index 07b32d08..d5c9ab7f 100644
--- a/dist/uploader/utils.d.ts
+++ b/dist/uploader/utils.d.ts
@@ -1,31 +1,22 @@
export interface File {
- url: string;
- size?: number;
- name?: string;
- type: string;
- duration?: number;
- time?: number;
- isImage?: boolean;
- isVideo?: boolean;
+ url: string;
+ size?: number;
+ name?: string;
+ type: string;
+ duration?: number;
+ time?: number;
+ isImage?: boolean;
+ isVideo?: boolean;
}
export declare function isImageFile(item: File): boolean;
export declare function isVideoFile(item: File): boolean;
-export declare function chooseFile({
- accept,
- multiple,
- capture,
- compressed,
- maxDuration,
- sizeType,
- camera,
- maxCount,
-}: {
- accept: any;
- multiple: any;
- capture: any;
- compressed: any;
- maxDuration: any;
- sizeType: any;
- camera: any;
- maxCount: any;
+export declare function chooseFile({ accept, multiple, capture, compressed, maxDuration, sizeType, camera, maxCount, }: {
+ accept: any;
+ multiple: any;
+ capture: any;
+ compressed: any;
+ maxDuration: any;
+ sizeType: any;
+ camera: any;
+ maxCount: any;
}): Promise;
diff --git a/dist/uploader/utils.js b/dist/uploader/utils.js
index bdd40791..b77f7078 100644
--- a/dist/uploader/utils.js
+++ b/dist/uploader/utils.js
@@ -1,122 +1,84 @@
import { pickExclude } from '../common/utils';
import { isImageUrl, isVideoUrl } from '../common/validator';
export function isImageFile(item) {
- if (item.isImage != null) {
- return item.isImage;
- }
- if (item.type) {
- return item.type === 'image';
- }
- if (item.url) {
- return isImageUrl(item.url);
- }
- return false;
+ if (item.isImage != null) {
+ return item.isImage;
+ }
+ if (item.type) {
+ return item.type === 'image';
+ }
+ if (item.url) {
+ return isImageUrl(item.url);
+ }
+ return false;
}
export function isVideoFile(item) {
- if (item.isVideo != null) {
- return item.isVideo;
- }
- if (item.type) {
- return item.type === 'video';
- }
- if (item.url) {
- return isVideoUrl(item.url);
- }
- return false;
+ if (item.isVideo != null) {
+ return item.isVideo;
+ }
+ if (item.type) {
+ return item.type === 'video';
+ }
+ if (item.url) {
+ return isVideoUrl(item.url);
+ }
+ return false;
}
function formatImage(res) {
- return res.tempFiles.map((item) =>
- Object.assign(Object.assign({}, pickExclude(item, ['path'])), {
- type: 'image',
- url: item.path,
- thumb: item.path,
- })
- );
+ return res.tempFiles.map((item) => (Object.assign(Object.assign({}, pickExclude(item, ['path'])), { type: 'image', url: item.path, thumb: item.path })));
}
function formatVideo(res) {
- return [
- Object.assign(
- Object.assign(
- {},
- pickExclude(res, ['tempFilePath', 'thumbTempFilePath', 'errMsg'])
- ),
- { type: 'video', url: res.tempFilePath, thumb: res.thumbTempFilePath }
- ),
- ];
+ return [
+ Object.assign(Object.assign({}, pickExclude(res, ['tempFilePath', 'thumbTempFilePath', 'errMsg'])), { type: 'video', url: res.tempFilePath, thumb: res.thumbTempFilePath }),
+ ];
}
function formatMedia(res) {
- return res.tempFiles.map((item) =>
- Object.assign(
- Object.assign(
- {},
- pickExclude(item, ['fileType', 'thumbTempFilePath', 'tempFilePath'])
- ),
- {
- type: res.type,
- url: item.tempFilePath,
- thumb:
- res.type === 'video' ? item.thumbTempFilePath : item.tempFilePath,
- }
- )
- );
+ return res.tempFiles.map((item) => (Object.assign(Object.assign({}, pickExclude(item, ['fileType', 'thumbTempFilePath', 'tempFilePath'])), { type: res.type, url: item.tempFilePath, thumb: res.type === 'video' ? item.thumbTempFilePath : item.tempFilePath })));
}
function formatFile(res) {
- return res.tempFiles.map((item) =>
- Object.assign(Object.assign({}, pickExclude(item, ['path'])), {
- url: item.path,
- })
- );
+ return res.tempFiles.map((item) => (Object.assign(Object.assign({}, pickExclude(item, ['path'])), { url: item.path })));
}
-export function chooseFile({
- accept,
- multiple,
- capture,
- compressed,
- maxDuration,
- sizeType,
- camera,
- maxCount,
-}) {
- return new Promise((resolve, reject) => {
- switch (accept) {
- case 'image':
- wx.chooseImage({
- count: multiple ? Math.min(maxCount, 9) : 1,
- sourceType: capture,
- sizeType,
- success: (res) => resolve(formatImage(res)),
- fail: reject,
- });
- break;
- case 'media':
- wx.chooseMedia({
- count: multiple ? Math.min(maxCount, 9) : 1,
- sourceType: capture,
- maxDuration,
- sizeType,
- camera,
- success: (res) => resolve(formatMedia(res)),
- fail: reject,
- });
- break;
- case 'video':
- wx.chooseVideo({
- sourceType: capture,
- compressed,
- maxDuration,
- camera,
- success: (res) => resolve(formatVideo(res)),
- fail: reject,
- });
- break;
- default:
- wx.chooseMessageFile({
- count: multiple ? maxCount : 1,
- type: accept,
- success: (res) => resolve(formatFile(res)),
- fail: reject,
- });
- break;
- }
- });
+export function chooseFile({ accept, multiple, capture, compressed, maxDuration, sizeType, camera, maxCount, }) {
+ return new Promise((resolve, reject) => {
+ switch (accept) {
+ case 'image':
+ wx.chooseImage({
+ count: multiple ? Math.min(maxCount, 9) : 1,
+ sourceType: capture,
+ sizeType,
+ success: (res) => resolve(formatImage(res)),
+ fail: reject,
+ });
+ break;
+ case 'media':
+ wx.chooseMedia({
+ count: multiple ? Math.min(maxCount, 9) : 1,
+ sourceType: capture,
+ maxDuration,
+ sizeType,
+ camera,
+ success: (res) => resolve(formatMedia(res)),
+ fail: reject,
+ });
+ break;
+ case 'video':
+ wx.chooseVideo({
+ sourceType: capture,
+ compressed,
+ maxDuration,
+ camera,
+ success: (res) => resolve(formatVideo(res)),
+ fail: reject,
+ });
+ break;
+ default:
+ wx.chooseMessageFile({
+ count: multiple ? maxCount : 1,
+ type: accept,
+ success: (res) => resolve(formatFile(res)),
+ fail: reject,
+ });
+ break;
+ }
+ });
}
diff --git a/lib/action-sheet/index.js b/lib/action-sheet/index.js
index 48e5a81c..f597b7f4 100644
--- a/lib/action-sheet/index.js
+++ b/lib/action-sheet/index.js
@@ -1,76 +1,73 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var button_1 = require('../mixins/button');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var button_1 = require("../mixins/button");
component_1.VantComponent({
- mixins: [button_1.button],
- props: {
- show: Boolean,
- title: String,
- cancelText: String,
- description: String,
- round: {
- type: Boolean,
- value: true,
+ mixins: [button_1.button],
+ props: {
+ show: Boolean,
+ title: String,
+ cancelText: String,
+ description: String,
+ round: {
+ type: Boolean,
+ value: true,
+ },
+ zIndex: {
+ type: Number,
+ value: 100,
+ },
+ actions: {
+ type: Array,
+ value: [],
+ },
+ overlay: {
+ type: Boolean,
+ value: true,
+ },
+ closeOnClickOverlay: {
+ type: Boolean,
+ value: true,
+ },
+ closeOnClickAction: {
+ type: Boolean,
+ value: true,
+ },
+ safeAreaInsetBottom: {
+ type: Boolean,
+ value: true,
+ },
},
- zIndex: {
- type: Number,
- value: 100,
+ methods: {
+ onSelect: function (event) {
+ var _this = this;
+ var index = event.currentTarget.dataset.index;
+ var _a = this.data, actions = _a.actions, closeOnClickAction = _a.closeOnClickAction, canIUseGetUserProfile = _a.canIUseGetUserProfile;
+ var item = actions[index];
+ if (item) {
+ this.$emit('select', item);
+ if (closeOnClickAction) {
+ this.onClose();
+ }
+ if (item.openType === 'getUserInfo' && canIUseGetUserProfile) {
+ wx.getUserProfile({
+ desc: item.getUserProfileDesc || ' ',
+ complete: function (userProfile) {
+ _this.$emit('getuserinfo', userProfile);
+ },
+ });
+ }
+ }
+ },
+ onCancel: function () {
+ this.$emit('cancel');
+ },
+ onClose: function () {
+ this.$emit('close');
+ },
+ onClickOverlay: function () {
+ this.$emit('click-overlay');
+ this.onClose();
+ },
},
- actions: {
- type: Array,
- value: [],
- },
- overlay: {
- type: Boolean,
- value: true,
- },
- closeOnClickOverlay: {
- type: Boolean,
- value: true,
- },
- closeOnClickAction: {
- type: Boolean,
- value: true,
- },
- safeAreaInsetBottom: {
- type: Boolean,
- value: true,
- },
- },
- methods: {
- onSelect: function (event) {
- var _this = this;
- var index = event.currentTarget.dataset.index;
- var _a = this.data,
- actions = _a.actions,
- closeOnClickAction = _a.closeOnClickAction,
- canIUseGetUserProfile = _a.canIUseGetUserProfile;
- var item = actions[index];
- if (item) {
- this.$emit('select', item);
- if (closeOnClickAction) {
- this.onClose();
- }
- if (item.openType === 'getUserInfo' && canIUseGetUserProfile) {
- wx.getUserProfile({
- desc: item.getUserProfileDesc || ' ',
- complete: function (userProfile) {
- _this.$emit('getuserinfo', userProfile);
- },
- });
- }
- }
- },
- onCancel: function () {
- this.$emit('cancel');
- },
- onClose: function () {
- this.$emit('close');
- },
- onClickOverlay: function () {
- this.$emit('click-overlay');
- this.onClose();
- },
- },
});
diff --git a/lib/area/index.js b/lib/area/index.js
index 6b17a07c..ed256284 100644
--- a/lib/area/index.js
+++ b/lib/area/index.js
@@ -1,266 +1,232 @@
-'use strict';
-var __assign =
- (this && this.__assign) ||
- function () {
- __assign =
- Object.assign ||
- function (t) {
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s)
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
+ 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');
-var shared_1 = require('../picker/shared');
-var utils_1 = require('../common/utils');
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var shared_1 = require("../picker/shared");
+var utils_1 = require("../common/utils");
var EMPTY_CODE = '000000';
component_1.VantComponent({
- classes: ['active-class', 'toolbar-class', 'column-class'],
- props: __assign(__assign({}, shared_1.pickerProps), {
- value: {
- type: String,
- observer: function (value) {
- this.code = value;
- this.setValues();
- },
+ classes: ['active-class', 'toolbar-class', 'column-class'],
+ props: __assign(__assign({}, shared_1.pickerProps), { value: {
+ type: String,
+ observer: function (value) {
+ this.code = value;
+ this.setValues();
+ },
+ }, areaList: {
+ type: Object,
+ value: {},
+ observer: 'setValues',
+ }, columnsNum: {
+ type: null,
+ value: 3,
+ }, columnsPlaceholder: {
+ type: Array,
+ observer: function (val) {
+ this.setData({
+ typeToColumnsPlaceholder: {
+ province: val[0] || '',
+ city: val[1] || '',
+ county: val[2] || '',
+ },
+ });
+ },
+ } }),
+ data: {
+ columns: [{ values: [] }, { values: [] }, { values: [] }],
+ typeToColumnsPlaceholder: {},
},
- areaList: {
- type: Object,
- value: {},
- observer: 'setValues',
- },
- columnsNum: {
- type: null,
- value: 3,
- },
- columnsPlaceholder: {
- type: Array,
- observer: function (val) {
- this.setData({
- typeToColumnsPlaceholder: {
- province: val[0] || '',
- city: val[1] || '',
- county: val[2] || '',
- },
+ mounted: function () {
+ var _this = this;
+ utils_1.requestAnimationFrame(function () {
+ _this.setValues();
});
- },
},
- }),
- data: {
- columns: [{ values: [] }, { values: [] }, { values: [] }],
- typeToColumnsPlaceholder: {},
- },
- mounted: function () {
- var _this = this;
- utils_1.requestAnimationFrame(function () {
- _this.setValues();
- });
- },
- methods: {
- getPicker: function () {
- if (this.picker == null) {
- this.picker = this.selectComponent('.van-area__picker');
- }
- return this.picker;
- },
- onCancel: function (event) {
- this.emit('cancel', event.detail);
- },
- onConfirm: function (event) {
- var index = event.detail.index;
- var value = event.detail.value;
- value = this.parseValues(value);
- this.emit('confirm', { value: value, index: index });
- },
- emit: function (type, detail) {
- detail.values = detail.value;
- delete detail.value;
- this.$emit(type, detail);
- },
- parseValues: function (values) {
- var columnsPlaceholder = this.data.columnsPlaceholder;
- return values.map(function (value, index) {
- if (
- value &&
- (!value.code || value.name === columnsPlaceholder[index])
- ) {
- return __assign(__assign({}, value), { code: '', name: '' });
- }
- return value;
- });
- },
- onChange: function (event) {
- var _this = this;
- var _a;
- var _b = event.detail,
- index = _b.index,
- picker = _b.picker,
- value = _b.value;
- this.code = value[index].code;
- (_a = this.setValues()) === null || _a === void 0
- ? void 0
- : _a.then(function () {
- _this.$emit('change', {
- picker: picker,
- values: _this.parseValues(picker.getValues()),
- index: index,
+ methods: {
+ getPicker: function () {
+ if (this.picker == null) {
+ this.picker = this.selectComponent('.van-area__picker');
+ }
+ return this.picker;
+ },
+ onCancel: function (event) {
+ this.emit('cancel', event.detail);
+ },
+ onConfirm: function (event) {
+ var index = event.detail.index;
+ var value = event.detail.value;
+ value = this.parseValues(value);
+ this.emit('confirm', { value: value, index: index });
+ },
+ emit: function (type, detail) {
+ detail.values = detail.value;
+ delete detail.value;
+ this.$emit(type, detail);
+ },
+ parseValues: function (values) {
+ var columnsPlaceholder = this.data.columnsPlaceholder;
+ return values.map(function (value, index) {
+ if (value &&
+ (!value.code || value.name === columnsPlaceholder[index])) {
+ return __assign(__assign({}, value), { code: '', name: '' });
+ }
+ return value;
});
- });
+ },
+ onChange: function (event) {
+ var _this = this;
+ var _a;
+ var _b = event.detail, index = _b.index, picker = _b.picker, value = _b.value;
+ this.code = value[index].code;
+ (_a = this.setValues()) === null || _a === void 0 ? void 0 : _a.then(function () {
+ _this.$emit('change', {
+ picker: picker,
+ values: _this.parseValues(picker.getValues()),
+ index: index,
+ });
+ });
+ },
+ getConfig: function (type) {
+ var areaList = this.data.areaList;
+ return (areaList && areaList[type + "_list"]) || {};
+ },
+ getList: function (type, code) {
+ if (type !== 'province' && !code) {
+ return [];
+ }
+ var typeToColumnsPlaceholder = this.data.typeToColumnsPlaceholder;
+ var list = this.getConfig(type);
+ var result = Object.keys(list).map(function (code) { return ({
+ code: code,
+ name: list[code],
+ }); });
+ if (code != null) {
+ // oversea code
+ if (code[0] === '9' && type === 'city') {
+ code = '9';
+ }
+ result = result.filter(function (item) { return item.code.indexOf(code) === 0; });
+ }
+ if (typeToColumnsPlaceholder[type] && result.length) {
+ // set columns placeholder
+ var codeFill = type === 'province'
+ ? ''
+ : type === 'city'
+ ? EMPTY_CODE.slice(2, 4)
+ : EMPTY_CODE.slice(4, 6);
+ result.unshift({
+ code: "" + code + codeFill,
+ name: typeToColumnsPlaceholder[type],
+ });
+ }
+ return result;
+ },
+ getIndex: function (type, code) {
+ var compareNum = type === 'province' ? 2 : type === 'city' ? 4 : 6;
+ var list = this.getList(type, code.slice(0, compareNum - 2));
+ // oversea code
+ if (code[0] === '9' && type === 'province') {
+ compareNum = 1;
+ }
+ code = code.slice(0, compareNum);
+ for (var i = 0; i < list.length; i++) {
+ if (list[i].code.slice(0, compareNum) === code) {
+ return i;
+ }
+ }
+ return 0;
+ },
+ setValues: function () {
+ var picker = this.getPicker();
+ if (!picker) {
+ return;
+ }
+ var code = this.code || this.getDefaultCode();
+ var provinceList = this.getList('province');
+ var cityList = this.getList('city', code.slice(0, 2));
+ var stack = [];
+ var indexes = [];
+ var columnsNum = this.data.columnsNum;
+ if (columnsNum >= 1) {
+ stack.push(picker.setColumnValues(0, provinceList, false));
+ indexes.push(this.getIndex('province', code));
+ }
+ if (columnsNum >= 2) {
+ stack.push(picker.setColumnValues(1, cityList, false));
+ indexes.push(this.getIndex('city', code));
+ if (cityList.length && code.slice(2, 4) === '00') {
+ code = cityList[0].code;
+ }
+ }
+ if (columnsNum === 3) {
+ stack.push(picker.setColumnValues(2, this.getList('county', code.slice(0, 4)), false));
+ indexes.push(this.getIndex('county', code));
+ }
+ return Promise.all(stack)
+ .catch(function () { })
+ .then(function () { return picker.setIndexes(indexes); })
+ .catch(function () { });
+ },
+ getDefaultCode: function () {
+ var columnsPlaceholder = this.data.columnsPlaceholder;
+ if (columnsPlaceholder.length) {
+ return EMPTY_CODE;
+ }
+ var countyCodes = Object.keys(this.getConfig('county'));
+ if (countyCodes[0]) {
+ return countyCodes[0];
+ }
+ var cityCodes = Object.keys(this.getConfig('city'));
+ if (cityCodes[0]) {
+ return cityCodes[0];
+ }
+ return '';
+ },
+ getValues: function () {
+ var picker = this.getPicker();
+ if (!picker) {
+ return [];
+ }
+ return this.parseValues(picker.getValues().filter(function (value) { return !!value; }));
+ },
+ getDetail: function () {
+ var values = this.getValues();
+ var area = {
+ code: '',
+ country: '',
+ province: '',
+ city: '',
+ county: '',
+ };
+ if (!values.length) {
+ return area;
+ }
+ var names = values.map(function (item) { return item.name; });
+ area.code = values[values.length - 1].code;
+ if (area.code[0] === '9') {
+ area.country = names[1] || '';
+ area.province = names[2] || '';
+ }
+ else {
+ area.province = names[0] || '';
+ area.city = names[1] || '';
+ area.county = names[2] || '';
+ }
+ return area;
+ },
+ reset: function (code) {
+ this.code = code || '';
+ return this.setValues();
+ },
},
- getConfig: function (type) {
- var areaList = this.data.areaList;
- return (areaList && areaList[type + '_list']) || {};
- },
- getList: function (type, code) {
- if (type !== 'province' && !code) {
- return [];
- }
- var typeToColumnsPlaceholder = this.data.typeToColumnsPlaceholder;
- var list = this.getConfig(type);
- var result = Object.keys(list).map(function (code) {
- return {
- code: code,
- name: list[code],
- };
- });
- if (code != null) {
- // oversea code
- if (code[0] === '9' && type === 'city') {
- code = '9';
- }
- result = result.filter(function (item) {
- return item.code.indexOf(code) === 0;
- });
- }
- if (typeToColumnsPlaceholder[type] && result.length) {
- // set columns placeholder
- var codeFill =
- type === 'province'
- ? ''
- : type === 'city'
- ? EMPTY_CODE.slice(2, 4)
- : EMPTY_CODE.slice(4, 6);
- result.unshift({
- code: '' + code + codeFill,
- name: typeToColumnsPlaceholder[type],
- });
- }
- return result;
- },
- getIndex: function (type, code) {
- var compareNum = type === 'province' ? 2 : type === 'city' ? 4 : 6;
- var list = this.getList(type, code.slice(0, compareNum - 2));
- // oversea code
- if (code[0] === '9' && type === 'province') {
- compareNum = 1;
- }
- code = code.slice(0, compareNum);
- for (var i = 0; i < list.length; i++) {
- if (list[i].code.slice(0, compareNum) === code) {
- return i;
- }
- }
- return 0;
- },
- setValues: function () {
- var picker = this.getPicker();
- if (!picker) {
- return;
- }
- var code = this.code || this.getDefaultCode();
- var provinceList = this.getList('province');
- var cityList = this.getList('city', code.slice(0, 2));
- var stack = [];
- var indexes = [];
- var columnsNum = this.data.columnsNum;
- if (columnsNum >= 1) {
- stack.push(picker.setColumnValues(0, provinceList, false));
- indexes.push(this.getIndex('province', code));
- }
- if (columnsNum >= 2) {
- stack.push(picker.setColumnValues(1, cityList, false));
- indexes.push(this.getIndex('city', code));
- if (cityList.length && code.slice(2, 4) === '00') {
- code = cityList[0].code;
- }
- }
- if (columnsNum === 3) {
- stack.push(
- picker.setColumnValues(
- 2,
- this.getList('county', code.slice(0, 4)),
- false
- )
- );
- indexes.push(this.getIndex('county', code));
- }
- return Promise.all(stack)
- .catch(function () {})
- .then(function () {
- return picker.setIndexes(indexes);
- })
- .catch(function () {});
- },
- getDefaultCode: function () {
- var columnsPlaceholder = this.data.columnsPlaceholder;
- if (columnsPlaceholder.length) {
- return EMPTY_CODE;
- }
- var countyCodes = Object.keys(this.getConfig('county'));
- if (countyCodes[0]) {
- return countyCodes[0];
- }
- var cityCodes = Object.keys(this.getConfig('city'));
- if (cityCodes[0]) {
- return cityCodes[0];
- }
- return '';
- },
- getValues: function () {
- var picker = this.getPicker();
- if (!picker) {
- return [];
- }
- return this.parseValues(
- picker.getValues().filter(function (value) {
- return !!value;
- })
- );
- },
- getDetail: function () {
- var values = this.getValues();
- var area = {
- code: '',
- country: '',
- province: '',
- city: '',
- county: '',
- };
- if (!values.length) {
- return area;
- }
- var names = values.map(function (item) {
- return item.name;
- });
- area.code = values[values.length - 1].code;
- if (area.code[0] === '9') {
- area.country = names[1] || '';
- area.province = names[2] || '';
- } else {
- area.province = names[0] || '';
- area.city = names[1] || '';
- area.county = names[2] || '';
- }
- return area;
- },
- reset: function (code) {
- this.code = code || '';
- return this.setValues();
- },
- },
});
diff --git a/lib/button/index.js b/lib/button/index.js
index caff63c1..3a7cd6a9 100644
--- a/lib/button/index.js
+++ b/lib/button/index.js
@@ -1,71 +1,67 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var button_1 = require('../mixins/button');
-var version_1 = require('../common/version');
+"use strict";
+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 (version_1.canIUseFormFieldButton()) {
- mixins.push('wx://form-field-button');
+ mixins.push('wx://form-field-button');
}
component_1.VantComponent({
- mixins: mixins,
- classes: ['hover-class', 'loading-class'],
- data: {
- baseStyle: '',
- },
- props: {
- formType: String,
- icon: String,
- classPrefix: {
- type: String,
- value: 'van-icon',
+ mixins: mixins,
+ classes: ['hover-class', 'loading-class'],
+ data: {
+ baseStyle: '',
},
- plain: Boolean,
- block: Boolean,
- round: Boolean,
- square: Boolean,
- loading: Boolean,
- hairline: Boolean,
- disabled: Boolean,
- loadingText: String,
- customStyle: String,
- loadingType: {
- type: String,
- value: 'circular',
+ props: {
+ formType: String,
+ icon: String,
+ classPrefix: {
+ type: String,
+ value: 'van-icon',
+ },
+ plain: Boolean,
+ block: Boolean,
+ round: Boolean,
+ square: Boolean,
+ loading: Boolean,
+ hairline: Boolean,
+ disabled: Boolean,
+ loadingText: String,
+ customStyle: String,
+ loadingType: {
+ type: String,
+ value: 'circular',
+ },
+ type: {
+ type: String,
+ value: 'default',
+ },
+ dataset: null,
+ size: {
+ type: String,
+ value: 'normal',
+ },
+ loadingSize: {
+ type: String,
+ value: '20px',
+ },
+ color: String,
},
- type: {
- type: String,
- value: 'default',
+ methods: {
+ onClick: function (event) {
+ var _this = this;
+ this.$emit('click', event);
+ var _a = this.data, canIUseGetUserProfile = _a.canIUseGetUserProfile, openType = _a.openType, getUserProfileDesc = _a.getUserProfileDesc, lang = _a.lang;
+ if (openType === 'getUserInfo' && canIUseGetUserProfile) {
+ wx.getUserProfile({
+ desc: getUserProfileDesc || ' ',
+ lang: lang || 'en',
+ complete: function (userProfile) {
+ _this.$emit('getuserinfo', userProfile);
+ },
+ });
+ }
+ },
},
- dataset: null,
- size: {
- type: String,
- value: 'normal',
- },
- loadingSize: {
- type: String,
- value: '20px',
- },
- color: String,
- },
- methods: {
- onClick: function (event) {
- var _this = this;
- this.$emit('click', event);
- var _a = this.data,
- canIUseGetUserProfile = _a.canIUseGetUserProfile,
- openType = _a.openType,
- getUserProfileDesc = _a.getUserProfileDesc,
- lang = _a.lang;
- if (openType === 'getUserInfo' && canIUseGetUserProfile) {
- wx.getUserProfile({
- desc: getUserProfileDesc || ' ',
- lang: lang || 'en',
- complete: function (userProfile) {
- _this.$emit('getuserinfo', userProfile);
- },
- });
- }
- },
- },
});
diff --git a/lib/calendar/components/header/index.js b/lib/calendar/components/header/index.js
index 08f230cd..cf101d04 100644
--- a/lib/calendar/components/header/index.js
+++ b/lib/calendar/components/header/index.js
@@ -1,46 +1,41 @@
-'use strict';
-var __spreadArray =
- (this && this.__spreadArray) ||
- function (to, from) {
+"use strict";
+var __spreadArray = (this && this.__spreadArray) || function (to, from) {
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
- to[j] = from[i];
+ to[j] = from[i];
return to;
- };
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../../../common/component');
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../../../common/component");
component_1.VantComponent({
- props: {
- title: {
- type: String,
- value: '日期选择',
+ props: {
+ title: {
+ type: String,
+ value: '日期选择',
+ },
+ subtitle: String,
+ showTitle: Boolean,
+ showSubtitle: Boolean,
+ firstDayOfWeek: {
+ type: Number,
+ observer: 'initWeekDay',
+ },
},
- subtitle: String,
- showTitle: Boolean,
- showSubtitle: Boolean,
- firstDayOfWeek: {
- type: Number,
- observer: 'initWeekDay',
+ data: {
+ weekdays: [],
},
- },
- data: {
- weekdays: [],
- },
- created: function () {
- this.initWeekDay();
- },
- methods: {
- initWeekDay: function () {
- var defaultWeeks = ['日', '一', '二', '三', '四', '五', '六'];
- var firstDayOfWeek = this.data.firstDayOfWeek || 0;
- this.setData({
- weekdays: __spreadArray(
- __spreadArray([], defaultWeeks.slice(firstDayOfWeek, 7)),
- defaultWeeks.slice(0, firstDayOfWeek)
- ),
- });
+ created: function () {
+ this.initWeekDay();
},
- onClickSubtitle: function (event) {
- this.$emit('click-subtitle', event);
+ methods: {
+ initWeekDay: function () {
+ var defaultWeeks = ['日', '一', '二', '三', '四', '五', '六'];
+ var firstDayOfWeek = this.data.firstDayOfWeek || 0;
+ this.setData({
+ weekdays: __spreadArray(__spreadArray([], defaultWeeks.slice(firstDayOfWeek, 7)), defaultWeeks.slice(0, firstDayOfWeek)),
+ });
+ },
+ onClickSubtitle: function (event) {
+ this.$emit('click-subtitle', event);
+ },
},
- },
});
diff --git a/lib/calendar/components/month/index.js b/lib/calendar/components/month/index.js
index 1dcb49aa..94521909 100644
--- a/lib/calendar/components/month/index.js
+++ b/lib/calendar/components/month/index.js
@@ -1,173 +1,158 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../../../common/component');
-var utils_1 = require('../../utils');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../../../common/component");
+var utils_1 = require("../../utils");
component_1.VantComponent({
- props: {
- date: {
- type: null,
- observer: 'setDays',
+ props: {
+ date: {
+ type: null,
+ observer: 'setDays',
+ },
+ type: {
+ type: String,
+ observer: 'setDays',
+ },
+ color: String,
+ minDate: {
+ type: null,
+ observer: 'setDays',
+ },
+ maxDate: {
+ type: null,
+ observer: 'setDays',
+ },
+ showMark: Boolean,
+ rowHeight: null,
+ formatter: {
+ type: null,
+ observer: 'setDays',
+ },
+ currentDate: {
+ type: null,
+ observer: 'setDays',
+ },
+ firstDayOfWeek: {
+ type: Number,
+ observer: 'setDays',
+ },
+ allowSameDay: Boolean,
+ showSubtitle: Boolean,
+ showMonthTitle: Boolean,
},
- type: {
- type: String,
- observer: 'setDays',
+ data: {
+ visible: true,
+ days: [],
},
- color: String,
- minDate: {
- type: null,
- observer: 'setDays',
+ methods: {
+ onClick: function (event) {
+ var index = event.currentTarget.dataset.index;
+ var item = this.data.days[index];
+ if (item.type !== 'disabled') {
+ this.$emit('click', item);
+ }
+ },
+ setDays: function () {
+ var days = [];
+ var startDate = new Date(this.data.date);
+ var year = startDate.getFullYear();
+ var month = startDate.getMonth();
+ var totalDay = utils_1.getMonthEndDay(startDate.getFullYear(), startDate.getMonth() + 1);
+ for (var day = 1; day <= totalDay; day++) {
+ var date = new Date(year, month, day);
+ var type = this.getDayType(date);
+ var config = {
+ date: date,
+ type: type,
+ text: day,
+ bottomInfo: this.getBottomInfo(type),
+ };
+ if (this.data.formatter) {
+ config = this.data.formatter(config);
+ }
+ days.push(config);
+ }
+ this.setData({ days: days });
+ },
+ getMultipleDayType: function (day) {
+ var currentDate = this.data.currentDate;
+ if (!Array.isArray(currentDate)) {
+ return '';
+ }
+ var isSelected = function (date) {
+ return currentDate.some(function (item) { return utils_1.compareDay(item, date) === 0; });
+ };
+ if (isSelected(day)) {
+ var prevDay = utils_1.getPrevDay(day);
+ var nextDay = utils_1.getNextDay(day);
+ var prevSelected = isSelected(prevDay);
+ var nextSelected = isSelected(nextDay);
+ if (prevSelected && nextSelected) {
+ return 'multiple-middle';
+ }
+ if (prevSelected) {
+ return 'end';
+ }
+ return nextSelected ? 'start' : 'multiple-selected';
+ }
+ return '';
+ },
+ getRangeDayType: function (day) {
+ var _a = this.data, currentDate = _a.currentDate, allowSameDay = _a.allowSameDay;
+ if (!Array.isArray(currentDate)) {
+ return '';
+ }
+ var startDay = currentDate[0], endDay = currentDate[1];
+ if (!startDay) {
+ return '';
+ }
+ var compareToStart = utils_1.compareDay(day, startDay);
+ if (!endDay) {
+ return compareToStart === 0 ? 'start' : '';
+ }
+ var compareToEnd = utils_1.compareDay(day, endDay);
+ if (compareToStart === 0 && compareToEnd === 0 && allowSameDay) {
+ return 'start-end';
+ }
+ if (compareToStart === 0) {
+ return 'start';
+ }
+ if (compareToEnd === 0) {
+ return 'end';
+ }
+ if (compareToStart > 0 && compareToEnd < 0) {
+ return 'middle';
+ }
+ return '';
+ },
+ getDayType: function (day) {
+ var _a = this.data, type = _a.type, minDate = _a.minDate, maxDate = _a.maxDate, currentDate = _a.currentDate;
+ if (utils_1.compareDay(day, minDate) < 0 || utils_1.compareDay(day, maxDate) > 0) {
+ return 'disabled';
+ }
+ if (type === 'single') {
+ return utils_1.compareDay(day, currentDate) === 0 ? 'selected' : '';
+ }
+ if (type === 'multiple') {
+ return this.getMultipleDayType(day);
+ }
+ /* istanbul ignore else */
+ if (type === 'range') {
+ return this.getRangeDayType(day);
+ }
+ return '';
+ },
+ getBottomInfo: function (type) {
+ if (this.data.type === 'range') {
+ if (type === 'start') {
+ return '开始';
+ }
+ if (type === 'end') {
+ return '结束';
+ }
+ if (type === 'start-end') {
+ return '开始/结束';
+ }
+ }
+ },
},
- maxDate: {
- type: null,
- observer: 'setDays',
- },
- showMark: Boolean,
- rowHeight: null,
- formatter: {
- type: null,
- observer: 'setDays',
- },
- currentDate: {
- type: null,
- observer: 'setDays',
- },
- firstDayOfWeek: {
- type: Number,
- observer: 'setDays',
- },
- allowSameDay: Boolean,
- showSubtitle: Boolean,
- showMonthTitle: Boolean,
- },
- data: {
- visible: true,
- days: [],
- },
- methods: {
- onClick: function (event) {
- var index = event.currentTarget.dataset.index;
- var item = this.data.days[index];
- if (item.type !== 'disabled') {
- this.$emit('click', item);
- }
- },
- setDays: function () {
- var days = [];
- var startDate = new Date(this.data.date);
- var year = startDate.getFullYear();
- var month = startDate.getMonth();
- var totalDay = utils_1.getMonthEndDay(
- startDate.getFullYear(),
- startDate.getMonth() + 1
- );
- for (var day = 1; day <= totalDay; day++) {
- var date = new Date(year, month, day);
- var type = this.getDayType(date);
- var config = {
- date: date,
- type: type,
- text: day,
- bottomInfo: this.getBottomInfo(type),
- };
- if (this.data.formatter) {
- config = this.data.formatter(config);
- }
- days.push(config);
- }
- this.setData({ days: days });
- },
- getMultipleDayType: function (day) {
- var currentDate = this.data.currentDate;
- if (!Array.isArray(currentDate)) {
- return '';
- }
- var isSelected = function (date) {
- return currentDate.some(function (item) {
- return utils_1.compareDay(item, date) === 0;
- });
- };
- if (isSelected(day)) {
- var prevDay = utils_1.getPrevDay(day);
- var nextDay = utils_1.getNextDay(day);
- var prevSelected = isSelected(prevDay);
- var nextSelected = isSelected(nextDay);
- if (prevSelected && nextSelected) {
- return 'multiple-middle';
- }
- if (prevSelected) {
- return 'end';
- }
- return nextSelected ? 'start' : 'multiple-selected';
- }
- return '';
- },
- getRangeDayType: function (day) {
- var _a = this.data,
- currentDate = _a.currentDate,
- allowSameDay = _a.allowSameDay;
- if (!Array.isArray(currentDate)) {
- return '';
- }
- var startDay = currentDate[0],
- endDay = currentDate[1];
- if (!startDay) {
- return '';
- }
- var compareToStart = utils_1.compareDay(day, startDay);
- if (!endDay) {
- return compareToStart === 0 ? 'start' : '';
- }
- var compareToEnd = utils_1.compareDay(day, endDay);
- if (compareToStart === 0 && compareToEnd === 0 && allowSameDay) {
- return 'start-end';
- }
- if (compareToStart === 0) {
- return 'start';
- }
- if (compareToEnd === 0) {
- return 'end';
- }
- if (compareToStart > 0 && compareToEnd < 0) {
- return 'middle';
- }
- return '';
- },
- getDayType: function (day) {
- var _a = this.data,
- type = _a.type,
- minDate = _a.minDate,
- maxDate = _a.maxDate,
- currentDate = _a.currentDate;
- if (
- utils_1.compareDay(day, minDate) < 0 ||
- utils_1.compareDay(day, maxDate) > 0
- ) {
- return 'disabled';
- }
- if (type === 'single') {
- return utils_1.compareDay(day, currentDate) === 0 ? 'selected' : '';
- }
- if (type === 'multiple') {
- return this.getMultipleDayType(day);
- }
- /* istanbul ignore else */
- if (type === 'range') {
- return this.getRangeDayType(day);
- }
- return '';
- },
- getBottomInfo: function (type) {
- if (this.data.type === 'range') {
- if (type === 'start') {
- return '开始';
- }
- if (type === 'end') {
- return '结束';
- }
- if (type === 'start-end') {
- return '开始/结束';
- }
- }
- },
- },
});
diff --git a/lib/calendar/index.js b/lib/calendar/index.js
index 086e69d7..f1602bbd 100644
--- a/lib/calendar/index.js
+++ b/lib/calendar/index.js
@@ -1,384 +1,342 @@
-'use strict';
-var __spreadArray =
- (this && this.__spreadArray) ||
- function (to, from) {
+"use strict";
+var __spreadArray = (this && this.__spreadArray) || function (to, from) {
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
- to[j] = from[i];
+ to[j] = from[i];
return to;
- };
-var __importDefault =
- (this && this.__importDefault) ||
- function (mod) {
- return mod && mod.__esModule ? mod : { default: mod };
- };
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var utils_1 = require('./utils');
-var toast_1 = __importDefault(require('../toast/toast'));
-var utils_2 = require('../common/utils');
+};
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var utils_1 = require("./utils");
+var toast_1 = __importDefault(require("../toast/toast"));
+var utils_2 = require("../common/utils");
var initialMinDate = utils_1.getToday().getTime();
var initialMaxDate = (function () {
- var now = utils_1.getToday();
- return new Date(
- now.getFullYear(),
- now.getMonth() + 6,
- now.getDate()
- ).getTime();
+ var now = utils_1.getToday();
+ return new Date(now.getFullYear(), now.getMonth() + 6, now.getDate()).getTime();
})();
component_1.VantComponent({
- props: {
- title: {
- type: String,
- value: '日期选择',
+ props: {
+ title: {
+ type: String,
+ value: '日期选择',
+ },
+ color: String,
+ show: {
+ type: Boolean,
+ observer: function (val) {
+ if (val) {
+ this.initRect();
+ this.scrollIntoView();
+ }
+ },
+ },
+ formatter: null,
+ confirmText: {
+ type: String,
+ value: '确定',
+ },
+ confirmDisabledText: {
+ type: String,
+ value: '确定',
+ },
+ rangePrompt: String,
+ showRangePrompt: {
+ type: Boolean,
+ value: true,
+ },
+ defaultDate: {
+ type: null,
+ observer: function (val) {
+ this.setData({ currentDate: val });
+ this.scrollIntoView();
+ },
+ },
+ allowSameDay: Boolean,
+ type: {
+ type: String,
+ value: 'single',
+ observer: 'reset',
+ },
+ minDate: {
+ type: Number,
+ value: initialMinDate,
+ },
+ maxDate: {
+ type: Number,
+ value: initialMaxDate,
+ },
+ position: {
+ type: String,
+ value: 'bottom',
+ },
+ rowHeight: {
+ type: null,
+ value: utils_1.ROW_HEIGHT,
+ },
+ round: {
+ type: Boolean,
+ value: true,
+ },
+ poppable: {
+ type: Boolean,
+ value: true,
+ },
+ showMark: {
+ type: Boolean,
+ value: true,
+ },
+ showTitle: {
+ type: Boolean,
+ value: true,
+ },
+ showConfirm: {
+ type: Boolean,
+ value: true,
+ },
+ showSubtitle: {
+ type: Boolean,
+ value: true,
+ },
+ safeAreaInsetBottom: {
+ type: Boolean,
+ value: true,
+ },
+ closeOnClickOverlay: {
+ type: Boolean,
+ value: true,
+ },
+ maxRange: {
+ type: null,
+ value: null,
+ },
+ firstDayOfWeek: {
+ type: Number,
+ value: 0,
+ },
},
- color: String,
- show: {
- type: Boolean,
- observer: function (val) {
- if (val) {
- this.initRect();
- this.scrollIntoView();
- }
- },
+ data: {
+ subtitle: '',
+ currentDate: null,
+ scrollIntoView: '',
},
- formatter: null,
- confirmText: {
- type: String,
- value: '确定',
- },
- confirmDisabledText: {
- type: String,
- value: '确定',
- },
- rangePrompt: String,
- showRangePrompt: {
- type: Boolean,
- value: true,
- },
- defaultDate: {
- type: null,
- observer: function (val) {
- this.setData({ currentDate: val });
- this.scrollIntoView();
- },
- },
- allowSameDay: Boolean,
- type: {
- type: String,
- value: 'single',
- observer: 'reset',
- },
- minDate: {
- type: Number,
- value: initialMinDate,
- },
- maxDate: {
- type: Number,
- value: initialMaxDate,
- },
- position: {
- type: String,
- value: 'bottom',
- },
- rowHeight: {
- type: null,
- value: utils_1.ROW_HEIGHT,
- },
- round: {
- type: Boolean,
- value: true,
- },
- poppable: {
- type: Boolean,
- value: true,
- },
- showMark: {
- type: Boolean,
- value: true,
- },
- showTitle: {
- type: Boolean,
- value: true,
- },
- showConfirm: {
- type: Boolean,
- value: true,
- },
- showSubtitle: {
- type: Boolean,
- value: true,
- },
- safeAreaInsetBottom: {
- type: Boolean,
- value: true,
- },
- closeOnClickOverlay: {
- type: Boolean,
- value: true,
- },
- maxRange: {
- type: null,
- value: null,
- },
- firstDayOfWeek: {
- type: Number,
- value: 0,
- },
- },
- data: {
- subtitle: '',
- currentDate: null,
- scrollIntoView: '',
- },
- created: function () {
- this.setData({
- currentDate: this.getInitialDate(this.data.defaultDate),
- });
- },
- mounted: function () {
- if (this.data.show || !this.data.poppable) {
- this.initRect();
- this.scrollIntoView();
- }
- },
- methods: {
- reset: function () {
- this.setData({ currentDate: this.getInitialDate() });
- this.scrollIntoView();
- },
- initRect: function () {
- var _this = this;
- if (this.contentObserver != null) {
- this.contentObserver.disconnect();
- }
- var contentObserver = this.createIntersectionObserver({
- thresholds: [0, 0.1, 0.9, 1],
- observeAll: true,
- });
- this.contentObserver = contentObserver;
- contentObserver.relativeTo('.van-calendar__body');
- contentObserver.observe('.month', function (res) {
- if (res.boundingClientRect.top <= res.relativeRect.top) {
- // @ts-ignore
- _this.setData({
- subtitle: utils_1.formatMonthTitle(res.dataset.date),
- });
- }
- });
- },
- limitDateRange: function (date, minDate, maxDate) {
- if (minDate === void 0) {
- minDate = null;
- }
- if (maxDate === void 0) {
- maxDate = null;
- }
- minDate = minDate || this.data.minDate;
- maxDate = maxDate || this.data.maxDate;
- if (utils_1.compareDay(date, minDate) === -1) {
- return minDate;
- }
- if (utils_1.compareDay(date, maxDate) === 1) {
- return maxDate;
- }
- return date;
- },
- getInitialDate: function (defaultDate) {
- var _this = this;
- if (defaultDate === void 0) {
- defaultDate = null;
- }
- var _a = this.data,
- type = _a.type,
- minDate = _a.minDate,
- maxDate = _a.maxDate;
- var now = utils_1.getToday().getTime();
- if (type === 'range') {
- if (!Array.isArray(defaultDate)) {
- defaultDate = [];
- }
- var _b = defaultDate || [],
- startDay = _b[0],
- endDay = _b[1];
- var start = this.limitDateRange(
- startDay || now,
- minDate,
- utils_1.getPrevDay(new Date(maxDate)).getTime()
- );
- var end = this.limitDateRange(
- endDay || now,
- utils_1.getNextDay(new Date(minDate)).getTime()
- );
- return [start, end];
- }
- if (type === 'multiple') {
- if (Array.isArray(defaultDate)) {
- return defaultDate.map(function (date) {
- return _this.limitDateRange(date);
- });
- }
- return [this.limitDateRange(now)];
- }
- if (!defaultDate || Array.isArray(defaultDate)) {
- defaultDate = now;
- }
- return this.limitDateRange(defaultDate);
- },
- scrollIntoView: function () {
- var _this = this;
- utils_2.requestAnimationFrame(function () {
- var _a = _this.data,
- currentDate = _a.currentDate,
- type = _a.type,
- show = _a.show,
- poppable = _a.poppable,
- minDate = _a.minDate,
- maxDate = _a.maxDate;
- // @ts-ignore
- var targetDate = type === 'single' ? currentDate : currentDate[0];
- var displayed = show || !poppable;
- if (!targetDate || !displayed) {
- return;
- }
- var months = utils_1.getMonths(minDate, maxDate);
- months.some(function (month, index) {
- if (utils_1.compareMonth(month, targetDate) === 0) {
- _this.setData({ scrollIntoView: 'month' + index });
- return true;
- }
- return false;
+ created: function () {
+ this.setData({
+ currentDate: this.getInitialDate(this.data.defaultDate),
});
- });
},
- onOpen: function () {
- this.$emit('open');
- },
- onOpened: function () {
- this.$emit('opened');
- },
- onClose: function () {
- this.$emit('close');
- },
- onClosed: function () {
- this.$emit('closed');
- },
- onClickDay: function (event) {
- var date = event.detail.date;
- var _a = this.data,
- type = _a.type,
- currentDate = _a.currentDate,
- allowSameDay = _a.allowSameDay;
- if (type === 'range') {
- // @ts-ignore
- var startDay = currentDate[0],
- endDay = currentDate[1];
- if (startDay && !endDay) {
- var compareToStart = utils_1.compareDay(date, startDay);
- if (compareToStart === 1) {
- this.select([startDay, date], true);
- } else if (compareToStart === -1) {
- this.select([date, null]);
- } else if (allowSameDay) {
- this.select([date, date]);
- }
- } else {
- this.select([date, null]);
+ mounted: function () {
+ if (this.data.show || !this.data.poppable) {
+ this.initRect();
+ this.scrollIntoView();
}
- } else if (type === 'multiple') {
- var selectedIndex_1;
- // @ts-ignore
- var selected = currentDate.some(function (dateItem, index) {
- var equal = utils_1.compareDay(dateItem, date) === 0;
- if (equal) {
- selectedIndex_1 = index;
- }
- return equal;
- });
- if (selected) {
- // @ts-ignore
- var cancelDate = currentDate.splice(selectedIndex_1, 1);
- this.setData({ currentDate: currentDate });
- this.unselect(cancelDate);
- } else {
- // @ts-ignore
- this.select(__spreadArray(__spreadArray([], currentDate), [date]));
- }
- } else {
- this.select(date, true);
- }
},
- unselect: function (dateArray) {
- var date = dateArray[0];
- if (date) {
- this.$emit('unselect', utils_1.copyDates(date));
- }
- },
- select: function (date, complete) {
- if (complete && this.data.type === 'range') {
- var valid = this.checkRange(date);
- if (!valid) {
- // auto selected to max range if showConfirm
- if (this.data.showConfirm) {
- this.emit([
- date[0],
- utils_1.getDayByOffset(date[0], this.data.maxRange - 1),
- ]);
- } else {
+ methods: {
+ reset: function () {
+ this.setData({ currentDate: this.getInitialDate() });
+ this.scrollIntoView();
+ },
+ initRect: function () {
+ var _this = this;
+ if (this.contentObserver != null) {
+ this.contentObserver.disconnect();
+ }
+ var contentObserver = this.createIntersectionObserver({
+ thresholds: [0, 0.1, 0.9, 1],
+ observeAll: true,
+ });
+ this.contentObserver = contentObserver;
+ contentObserver.relativeTo('.van-calendar__body');
+ contentObserver.observe('.month', function (res) {
+ if (res.boundingClientRect.top <= res.relativeRect.top) {
+ // @ts-ignore
+ _this.setData({ subtitle: utils_1.formatMonthTitle(res.dataset.date) });
+ }
+ });
+ },
+ limitDateRange: function (date, minDate, maxDate) {
+ if (minDate === void 0) { minDate = null; }
+ if (maxDate === void 0) { maxDate = null; }
+ minDate = minDate || this.data.minDate;
+ maxDate = maxDate || this.data.maxDate;
+ if (utils_1.compareDay(date, minDate) === -1) {
+ return minDate;
+ }
+ if (utils_1.compareDay(date, maxDate) === 1) {
+ return maxDate;
+ }
+ return date;
+ },
+ getInitialDate: function (defaultDate) {
+ var _this = this;
+ if (defaultDate === void 0) { defaultDate = null; }
+ var _a = this.data, type = _a.type, minDate = _a.minDate, maxDate = _a.maxDate;
+ var now = utils_1.getToday().getTime();
+ if (type === 'range') {
+ if (!Array.isArray(defaultDate)) {
+ defaultDate = [];
+ }
+ var _b = defaultDate || [], startDay = _b[0], endDay = _b[1];
+ var start = this.limitDateRange(startDay || now, minDate, utils_1.getPrevDay(new Date(maxDate)).getTime());
+ var end = this.limitDateRange(endDay || now, utils_1.getNextDay(new Date(minDate)).getTime());
+ return [start, end];
+ }
+ if (type === 'multiple') {
+ if (Array.isArray(defaultDate)) {
+ return defaultDate.map(function (date) { return _this.limitDateRange(date); });
+ }
+ return [this.limitDateRange(now)];
+ }
+ if (!defaultDate || Array.isArray(defaultDate)) {
+ defaultDate = now;
+ }
+ return this.limitDateRange(defaultDate);
+ },
+ scrollIntoView: function () {
+ var _this = this;
+ utils_2.requestAnimationFrame(function () {
+ var _a = _this.data, currentDate = _a.currentDate, type = _a.type, show = _a.show, poppable = _a.poppable, minDate = _a.minDate, maxDate = _a.maxDate;
+ // @ts-ignore
+ var targetDate = type === 'single' ? currentDate : currentDate[0];
+ var displayed = show || !poppable;
+ if (!targetDate || !displayed) {
+ return;
+ }
+ var months = utils_1.getMonths(minDate, maxDate);
+ months.some(function (month, index) {
+ if (utils_1.compareMonth(month, targetDate) === 0) {
+ _this.setData({ scrollIntoView: "month" + index });
+ return true;
+ }
+ return false;
+ });
+ });
+ },
+ onOpen: function () {
+ this.$emit('open');
+ },
+ onOpened: function () {
+ this.$emit('opened');
+ },
+ onClose: function () {
+ this.$emit('close');
+ },
+ onClosed: function () {
+ this.$emit('closed');
+ },
+ onClickDay: function (event) {
+ var date = event.detail.date;
+ var _a = this.data, type = _a.type, currentDate = _a.currentDate, allowSameDay = _a.allowSameDay;
+ if (type === 'range') {
+ // @ts-ignore
+ var startDay = currentDate[0], endDay = currentDate[1];
+ if (startDay && !endDay) {
+ var compareToStart = utils_1.compareDay(date, startDay);
+ if (compareToStart === 1) {
+ this.select([startDay, date], true);
+ }
+ else if (compareToStart === -1) {
+ this.select([date, null]);
+ }
+ else if (allowSameDay) {
+ this.select([date, date]);
+ }
+ }
+ else {
+ this.select([date, null]);
+ }
+ }
+ else if (type === 'multiple') {
+ var selectedIndex_1;
+ // @ts-ignore
+ var selected = currentDate.some(function (dateItem, index) {
+ var equal = utils_1.compareDay(dateItem, date) === 0;
+ if (equal) {
+ selectedIndex_1 = index;
+ }
+ return equal;
+ });
+ if (selected) {
+ // @ts-ignore
+ var cancelDate = currentDate.splice(selectedIndex_1, 1);
+ this.setData({ currentDate: currentDate });
+ this.unselect(cancelDate);
+ }
+ else {
+ // @ts-ignore
+ this.select(__spreadArray(__spreadArray([], currentDate), [date]));
+ }
+ }
+ else {
+ this.select(date, true);
+ }
+ },
+ unselect: function (dateArray) {
+ var date = dateArray[0];
+ if (date) {
+ this.$emit('unselect', utils_1.copyDates(date));
+ }
+ },
+ select: function (date, complete) {
+ if (complete && this.data.type === 'range') {
+ var valid = this.checkRange(date);
+ if (!valid) {
+ // auto selected to max range if showConfirm
+ if (this.data.showConfirm) {
+ this.emit([
+ date[0],
+ utils_1.getDayByOffset(date[0], this.data.maxRange - 1),
+ ]);
+ }
+ else {
+ this.emit(date);
+ }
+ return;
+ }
+ }
this.emit(date);
- }
- return;
- }
- }
- this.emit(date);
- if (complete && !this.data.showConfirm) {
- this.onConfirm();
- }
+ if (complete && !this.data.showConfirm) {
+ this.onConfirm();
+ }
+ },
+ emit: function (date) {
+ var getTime = function (date) {
+ return date instanceof Date ? date.getTime() : date;
+ };
+ this.setData({
+ currentDate: Array.isArray(date) ? date.map(getTime) : getTime(date),
+ });
+ this.$emit('select', utils_1.copyDates(date));
+ },
+ checkRange: function (date) {
+ var _a = this.data, maxRange = _a.maxRange, rangePrompt = _a.rangePrompt, showRangePrompt = _a.showRangePrompt;
+ if (maxRange && utils_1.calcDateNum(date) > maxRange) {
+ if (showRangePrompt) {
+ toast_1.default({
+ context: this,
+ message: rangePrompt || "\u9009\u62E9\u5929\u6570\u4E0D\u80FD\u8D85\u8FC7 " + maxRange + " \u5929",
+ });
+ }
+ this.$emit('over-range');
+ return false;
+ }
+ return true;
+ },
+ onConfirm: function () {
+ var _this = this;
+ if (this.data.type === 'range' &&
+ !this.checkRange(this.data.currentDate)) {
+ return;
+ }
+ wx.nextTick(function () {
+ // @ts-ignore
+ _this.$emit('confirm', utils_1.copyDates(_this.data.currentDate));
+ });
+ },
+ onClickSubtitle: function (event) {
+ this.$emit('click-subtitle', event);
+ },
},
- emit: function (date) {
- var getTime = function (date) {
- return date instanceof Date ? date.getTime() : date;
- };
- this.setData({
- currentDate: Array.isArray(date) ? date.map(getTime) : getTime(date),
- });
- this.$emit('select', utils_1.copyDates(date));
- },
- checkRange: function (date) {
- var _a = this.data,
- maxRange = _a.maxRange,
- rangePrompt = _a.rangePrompt,
- showRangePrompt = _a.showRangePrompt;
- if (maxRange && utils_1.calcDateNum(date) > maxRange) {
- if (showRangePrompt) {
- toast_1.default({
- context: this,
- message:
- rangePrompt ||
- '\u9009\u62E9\u5929\u6570\u4E0D\u80FD\u8D85\u8FC7 ' +
- maxRange +
- ' \u5929',
- });
- }
- this.$emit('over-range');
- return false;
- }
- return true;
- },
- onConfirm: function () {
- var _this = this;
- if (
- this.data.type === 'range' &&
- !this.checkRange(this.data.currentDate)
- ) {
- return;
- }
- wx.nextTick(function () {
- // @ts-ignore
- _this.$emit('confirm', utils_1.copyDates(_this.data.currentDate));
- });
- },
- onClickSubtitle: function (event) {
- this.$emit('click-subtitle', event);
- },
- },
});
diff --git a/lib/calendar/utils.js b/lib/calendar/utils.js
index 37e14c2a..337c9ede 100644
--- a/lib/calendar/utils.js
+++ b/lib/calendar/utils.js
@@ -1,97 +1,97 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
exports.getMonths = exports.getMonthEndDay = exports.copyDates = exports.calcDateNum = exports.getToday = exports.getNextDay = exports.getPrevDay = exports.getDayByOffset = exports.compareDay = exports.compareMonth = exports.formatMonthTitle = exports.ROW_HEIGHT = void 0;
exports.ROW_HEIGHT = 64;
function formatMonthTitle(date) {
- if (!(date instanceof Date)) {
- date = new Date(date);
- }
- return date.getFullYear() + '\u5E74' + (date.getMonth() + 1) + '\u6708';
+ if (!(date instanceof Date)) {
+ date = new Date(date);
+ }
+ return date.getFullYear() + "\u5E74" + (date.getMonth() + 1) + "\u6708";
}
exports.formatMonthTitle = formatMonthTitle;
function compareMonth(date1, date2) {
- if (!(date1 instanceof Date)) {
- date1 = new Date(date1);
- }
- if (!(date2 instanceof Date)) {
- date2 = new Date(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;
+ if (!(date1 instanceof Date)) {
+ date1 = new Date(date1);
+ }
+ if (!(date2 instanceof Date)) {
+ date2 = new Date(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;
}
exports.compareMonth = compareMonth;
function compareDay(day1, day2) {
- if (!(day1 instanceof Date)) {
- day1 = new Date(day1);
- }
- if (!(day2 instanceof Date)) {
- day2 = new Date(day2);
- }
- var compareMonthResult = compareMonth(day1, day2);
- if (compareMonthResult === 0) {
- var date1 = day1.getDate();
- var date2 = day2.getDate();
- return date1 === date2 ? 0 : date1 > date2 ? 1 : -1;
- }
- return compareMonthResult;
+ if (!(day1 instanceof Date)) {
+ day1 = new Date(day1);
+ }
+ if (!(day2 instanceof Date)) {
+ day2 = new Date(day2);
+ }
+ var compareMonthResult = compareMonth(day1, day2);
+ if (compareMonthResult === 0) {
+ var date1 = day1.getDate();
+ var date2 = day2.getDate();
+ return date1 === date2 ? 0 : date1 > date2 ? 1 : -1;
+ }
+ return compareMonthResult;
}
exports.compareDay = compareDay;
function getDayByOffset(date, offset) {
- date = new Date(date);
- date.setDate(date.getDate() + offset);
- return date;
+ date = new Date(date);
+ date.setDate(date.getDate() + offset);
+ return date;
}
exports.getDayByOffset = getDayByOffset;
function getPrevDay(date) {
- return getDayByOffset(date, -1);
+ return getDayByOffset(date, -1);
}
exports.getPrevDay = getPrevDay;
function getNextDay(date) {
- return getDayByOffset(date, 1);
+ return getDayByOffset(date, 1);
}
exports.getNextDay = getNextDay;
function getToday() {
- var today = new Date();
- today.setHours(0, 0, 0, 0);
- return today;
+ var today = new Date();
+ today.setHours(0, 0, 0, 0);
+ return today;
}
exports.getToday = getToday;
function calcDateNum(date) {
- var day1 = new Date(date[0]).getTime();
- var day2 = new Date(date[1]).getTime();
- return (day2 - day1) / (1000 * 60 * 60 * 24) + 1;
+ var day1 = new Date(date[0]).getTime();
+ var day2 = new Date(date[1]).getTime();
+ return (day2 - day1) / (1000 * 60 * 60 * 24) + 1;
}
exports.calcDateNum = calcDateNum;
function copyDates(dates) {
- if (Array.isArray(dates)) {
- return dates.map(function (date) {
- if (date === null) {
- return date;
- }
- return new Date(date);
- });
- }
- return new Date(dates);
+ if (Array.isArray(dates)) {
+ return dates.map(function (date) {
+ if (date === null) {
+ return date;
+ }
+ return new Date(date);
+ });
+ }
+ return new Date(dates);
}
exports.copyDates = copyDates;
function getMonthEndDay(year, month) {
- return 32 - new Date(year, month - 1, 32).getDate();
+ return 32 - new Date(year, month - 1, 32).getDate();
}
exports.getMonthEndDay = getMonthEndDay;
function getMonths(minDate, maxDate) {
- var months = [];
- var cursor = new Date(minDate);
- cursor.setDate(1);
- do {
- months.push(cursor.getTime());
- cursor.setMonth(cursor.getMonth() + 1);
- } while (compareMonth(cursor, maxDate) !== 1);
- return months;
+ var months = [];
+ var cursor = new Date(minDate);
+ cursor.setDate(1);
+ do {
+ months.push(cursor.getTime());
+ cursor.setMonth(cursor.getMonth() + 1);
+ } while (compareMonth(cursor, maxDate) !== 1);
+ return months;
}
exports.getMonths = getMonths;
diff --git a/lib/card/index.js b/lib/card/index.js
index cb0f9827..b1048260 100644
--- a/lib/card/index.js
+++ b/lib/card/index.js
@@ -1,51 +1,51 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var link_1 = require('../mixins/link');
-var component_1 = require('../common/component');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var link_1 = require("../mixins/link");
+var component_1 = require("../common/component");
component_1.VantComponent({
- classes: [
- 'num-class',
- 'desc-class',
- 'thumb-class',
- 'title-class',
- 'price-class',
- 'origin-price-class',
- ],
- mixins: [link_1.link],
- props: {
- tag: String,
- num: String,
- desc: String,
- thumb: String,
- title: String,
- price: {
- type: String,
- observer: 'updatePrice',
+ classes: [
+ 'num-class',
+ 'desc-class',
+ 'thumb-class',
+ 'title-class',
+ 'price-class',
+ 'origin-price-class',
+ ],
+ mixins: [link_1.link],
+ props: {
+ tag: String,
+ num: String,
+ desc: String,
+ thumb: String,
+ title: String,
+ price: {
+ type: String,
+ observer: 'updatePrice',
+ },
+ centered: Boolean,
+ lazyLoad: Boolean,
+ thumbLink: String,
+ originPrice: String,
+ thumbMode: {
+ type: String,
+ value: 'aspectFit',
+ },
+ currency: {
+ type: String,
+ value: '¥',
+ },
},
- centered: Boolean,
- lazyLoad: Boolean,
- thumbLink: String,
- originPrice: String,
- thumbMode: {
- type: String,
- value: 'aspectFit',
+ methods: {
+ updatePrice: function () {
+ var price = this.data.price;
+ var priceArr = price.toString().split('.');
+ this.setData({
+ integerStr: priceArr[0],
+ decimalStr: priceArr[1] ? "." + priceArr[1] : '',
+ });
+ },
+ onClickThumb: function () {
+ this.jumpLink('thumbLink');
+ },
},
- currency: {
- type: String,
- value: '¥',
- },
- },
- methods: {
- updatePrice: function () {
- var price = this.data.price;
- var priceArr = price.toString().split('.');
- this.setData({
- integerStr: priceArr[0],
- decimalStr: priceArr[1] ? '.' + priceArr[1] : '',
- });
- },
- onClickThumb: function () {
- this.jumpLink('thumbLink');
- },
- },
});
diff --git a/lib/cell-group/index.js b/lib/cell-group/index.js
index fc0f6645..cf294f0b 100644
--- a/lib/cell-group/index.js
+++ b/lib/cell-group/index.js
@@ -1,13 +1,13 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
component_1.VantComponent({
- props: {
- title: String,
- border: {
- type: Boolean,
- value: true,
+ props: {
+ title: String,
+ border: {
+ type: Boolean,
+ value: true,
+ },
+ inset: Boolean,
},
- inset: Boolean,
- },
});
diff --git a/lib/cell/index.js b/lib/cell/index.js
index 7a18c9f2..d2703827 100644
--- a/lib/cell/index.js
+++ b/lib/cell/index.js
@@ -1,40 +1,40 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var link_1 = require('../mixins/link');
-var component_1 = require('../common/component');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var link_1 = require("../mixins/link");
+var component_1 = require("../common/component");
component_1.VantComponent({
- 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,
- value: true,
+ 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,
+ value: true,
+ },
+ titleStyle: String,
},
- titleStyle: String,
- },
- methods: {
- onClick: function (event) {
- this.$emit('click', event.detail);
- this.jumpLink();
+ methods: {
+ onClick: function (event) {
+ this.$emit('click', event.detail);
+ this.jumpLink();
+ },
},
- },
});
diff --git a/lib/checkbox-group/index.js b/lib/checkbox-group/index.js
index 96aec51c..7cdaccfd 100644
--- a/lib/checkbox-group/index.js
+++ b/lib/checkbox-group/index.js
@@ -1,44 +1,39 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var relation_1 = require('../common/relation');
-var component_1 = require('../common/component');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var relation_1 = require("../common/relation");
+var component_1 = require("../common/component");
component_1.VantComponent({
- field: true,
- relation: relation_1.useChildren('checkbox', function (target) {
- this.updateChild(target);
- }),
- props: {
- max: Number,
- value: {
- type: Array,
- observer: 'updateChildren',
+ field: true,
+ relation: relation_1.useChildren('checkbox', function (target) {
+ this.updateChild(target);
+ }),
+ props: {
+ max: Number,
+ value: {
+ type: Array,
+ observer: 'updateChildren',
+ },
+ disabled: {
+ type: Boolean,
+ observer: 'updateChildren',
+ },
+ direction: {
+ type: String,
+ value: 'vertical',
+ },
},
- disabled: {
- type: Boolean,
- observer: 'updateChildren',
+ methods: {
+ updateChildren: function () {
+ var _this = this;
+ this.children.forEach(function (child) { return _this.updateChild(child); });
+ },
+ updateChild: function (child) {
+ var _a = this.data, value = _a.value, disabled = _a.disabled, direction = _a.direction;
+ child.setData({
+ value: value.indexOf(child.data.name) !== -1,
+ parentDisabled: disabled,
+ direction: direction,
+ });
+ },
},
- direction: {
- type: String,
- value: 'vertical',
- },
- },
- methods: {
- updateChildren: function () {
- var _this = this;
- this.children.forEach(function (child) {
- return _this.updateChild(child);
- });
- },
- updateChild: function (child) {
- var _a = this.data,
- value = _a.value,
- disabled = _a.disabled,
- direction = _a.direction;
- child.setData({
- value: value.indexOf(child.data.name) !== -1,
- parentDisabled: disabled,
- direction: direction,
- });
- },
- },
});
diff --git a/lib/checkbox/index.js b/lib/checkbox/index.js
index c607f292..0fc809f7 100644
--- a/lib/checkbox/index.js
+++ b/lib/checkbox/index.js
@@ -1,84 +1,79 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var relation_1 = require('../common/relation');
-var component_1 = require('../common/component');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var relation_1 = require("../common/relation");
+var component_1 = require("../common/component");
function emit(target, value) {
- target.$emit('input', value);
- target.$emit('change', value);
+ target.$emit('input', value);
+ target.$emit('change', value);
}
component_1.VantComponent({
- field: true,
- relation: relation_1.useParent('checkbox-group'),
- classes: ['icon-class', 'label-class'],
- props: {
- value: Boolean,
- disabled: Boolean,
- useIconSlot: Boolean,
- checkedColor: String,
- labelPosition: {
- type: String,
- value: 'right',
+ field: true,
+ relation: relation_1.useParent('checkbox-group'),
+ classes: ['icon-class', 'label-class'],
+ props: {
+ value: Boolean,
+ disabled: Boolean,
+ useIconSlot: Boolean,
+ checkedColor: String,
+ labelPosition: {
+ type: String,
+ value: 'right',
+ },
+ labelDisabled: Boolean,
+ shape: {
+ type: String,
+ value: 'round',
+ },
+ iconSize: {
+ type: null,
+ value: 20,
+ },
},
- labelDisabled: Boolean,
- shape: {
- type: String,
- value: 'round',
+ data: {
+ parentDisabled: false,
+ direction: 'vertical',
},
- iconSize: {
- type: null,
- value: 20,
+ methods: {
+ emitChange: function (value) {
+ if (this.parent) {
+ this.setParentValue(this.parent, value);
+ }
+ else {
+ emit(this, value);
+ }
+ },
+ toggle: function () {
+ var _a = this.data, parentDisabled = _a.parentDisabled, disabled = _a.disabled, value = _a.value;
+ if (!disabled && !parentDisabled) {
+ this.emitChange(!value);
+ }
+ },
+ onClickLabel: function () {
+ var _a = this.data, labelDisabled = _a.labelDisabled, parentDisabled = _a.parentDisabled, disabled = _a.disabled, value = _a.value;
+ if (!disabled && !labelDisabled && !parentDisabled) {
+ this.emitChange(!value);
+ }
+ },
+ setParentValue: function (parent, value) {
+ var parentValue = parent.data.value.slice();
+ var name = this.data.name;
+ var max = parent.data.max;
+ if (value) {
+ if (max && parentValue.length >= max) {
+ return;
+ }
+ if (parentValue.indexOf(name) === -1) {
+ parentValue.push(name);
+ emit(parent, parentValue);
+ }
+ }
+ else {
+ var index = parentValue.indexOf(name);
+ if (index !== -1) {
+ parentValue.splice(index, 1);
+ emit(parent, parentValue);
+ }
+ }
+ },
},
- },
- data: {
- parentDisabled: false,
- direction: 'vertical',
- },
- methods: {
- emitChange: function (value) {
- if (this.parent) {
- this.setParentValue(this.parent, value);
- } else {
- emit(this, value);
- }
- },
- toggle: function () {
- var _a = this.data,
- parentDisabled = _a.parentDisabled,
- disabled = _a.disabled,
- value = _a.value;
- if (!disabled && !parentDisabled) {
- this.emitChange(!value);
- }
- },
- onClickLabel: function () {
- var _a = this.data,
- labelDisabled = _a.labelDisabled,
- parentDisabled = _a.parentDisabled,
- disabled = _a.disabled,
- value = _a.value;
- if (!disabled && !labelDisabled && !parentDisabled) {
- this.emitChange(!value);
- }
- },
- setParentValue: function (parent, value) {
- var parentValue = parent.data.value.slice();
- var name = this.data.name;
- var max = parent.data.max;
- if (value) {
- if (max && parentValue.length >= max) {
- return;
- }
- if (parentValue.indexOf(name) === -1) {
- parentValue.push(name);
- emit(parent, parentValue);
- }
- } else {
- var index = parentValue.indexOf(name);
- if (index !== -1) {
- parentValue.splice(index, 1);
- emit(parent, parentValue);
- }
- }
- },
- },
});
diff --git a/lib/circle/canvas.js b/lib/circle/canvas.js
index dbee1d73..d81df747 100644
--- a/lib/circle/canvas.js
+++ b/lib/circle/canvas.js
@@ -1,47 +1,47 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
exports.adaptor = void 0;
function adaptor(ctx) {
- // @ts-ignore
- return Object.assign(ctx, {
- setStrokeStyle: function (val) {
- ctx.strokeStyle = val;
- },
- setLineWidth: function (val) {
- ctx.lineWidth = val;
- },
- setLineCap: function (val) {
- ctx.lineCap = val;
- },
- setFillStyle: function (val) {
- ctx.fillStyle = val;
- },
- setFontSize: function (val) {
- ctx.font = String(val);
- },
- setGlobalAlpha: function (val) {
- ctx.globalAlpha = val;
- },
- setLineJoin: function (val) {
- ctx.lineJoin = val;
- },
- setTextAlign: function (val) {
- ctx.textAlign = val;
- },
- setMiterLimit: function (val) {
- ctx.miterLimit = val;
- },
- setShadow: function (offsetX, offsetY, blur, color) {
- ctx.shadowOffsetX = offsetX;
- ctx.shadowOffsetY = offsetY;
- ctx.shadowBlur = blur;
- ctx.shadowColor = color;
- },
- setTextBaseline: function (val) {
- ctx.textBaseline = val;
- },
- createCircularGradient: function () {},
- draw: function () {},
- });
+ // @ts-ignore
+ return Object.assign(ctx, {
+ setStrokeStyle: function (val) {
+ ctx.strokeStyle = val;
+ },
+ setLineWidth: function (val) {
+ ctx.lineWidth = val;
+ },
+ setLineCap: function (val) {
+ ctx.lineCap = val;
+ },
+ setFillStyle: function (val) {
+ ctx.fillStyle = val;
+ },
+ setFontSize: function (val) {
+ ctx.font = String(val);
+ },
+ setGlobalAlpha: function (val) {
+ ctx.globalAlpha = val;
+ },
+ setLineJoin: function (val) {
+ ctx.lineJoin = val;
+ },
+ setTextAlign: function (val) {
+ ctx.textAlign = val;
+ },
+ setMiterLimit: function (val) {
+ ctx.miterLimit = val;
+ },
+ setShadow: function (offsetX, offsetY, blur, color) {
+ ctx.shadowOffsetX = offsetX;
+ ctx.shadowOffsetY = offsetY;
+ ctx.shadowBlur = blur;
+ ctx.shadowColor = color;
+ },
+ setTextBaseline: function (val) {
+ ctx.textBaseline = val;
+ },
+ createCircularGradient: function () { },
+ draw: function () { },
+ });
}
exports.adaptor = adaptor;
diff --git a/lib/circle/index.js b/lib/circle/index.js
index 416c0bd3..250ba1cc 100644
--- a/lib/circle/index.js
+++ b/lib/circle/index.js
@@ -1,217 +1,203 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var color_1 = require('../common/color');
-var component_1 = require('../common/component');
-var utils_1 = require('../common/utils');
-var validator_1 = require('../common/validator');
-var version_1 = require('../common/version');
-var canvas_1 = require('./canvas');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var color_1 = require("../common/color");
+var component_1 = require("../common/component");
+var utils_1 = require("../common/utils");
+var validator_1 = require("../common/validator");
+var version_1 = require("../common/version");
+var canvas_1 = require("./canvas");
function format(rate) {
- return Math.min(Math.max(rate, 0), 100);
+ return Math.min(Math.max(rate, 0), 100);
}
var PERIMETER = 2 * Math.PI;
var BEGIN_ANGLE = -Math.PI / 2;
var STEP = 1;
component_1.VantComponent({
- props: {
- text: String,
- lineCap: {
- type: String,
- value: 'round',
+ props: {
+ text: String,
+ lineCap: {
+ type: String,
+ value: 'round',
+ },
+ value: {
+ type: Number,
+ value: 0,
+ observer: 'reRender',
+ },
+ speed: {
+ type: Number,
+ value: 50,
+ },
+ size: {
+ type: Number,
+ value: 100,
+ observer: function () {
+ this.drawCircle(this.currentValue);
+ },
+ },
+ fill: String,
+ layerColor: {
+ type: String,
+ value: color_1.WHITE,
+ },
+ color: {
+ type: null,
+ value: color_1.BLUE,
+ observer: function () {
+ var _this = this;
+ this.setHoverColor().then(function () {
+ _this.drawCircle(_this.currentValue);
+ });
+ },
+ },
+ type: {
+ type: String,
+ value: '',
+ },
+ strokeWidth: {
+ type: Number,
+ value: 4,
+ },
+ clockwise: {
+ type: Boolean,
+ value: true,
+ },
},
- value: {
- type: Number,
- value: 0,
- observer: 'reRender',
+ data: {
+ hoverColor: color_1.BLUE,
},
- speed: {
- type: Number,
- value: 50,
- },
- size: {
- type: Number,
- value: 100,
- observer: function () {
- this.drawCircle(this.currentValue);
- },
- },
- fill: String,
- layerColor: {
- type: String,
- value: color_1.WHITE,
- },
- color: {
- type: null,
- value: color_1.BLUE,
- observer: function () {
- var _this = this;
- this.setHoverColor().then(function () {
- _this.drawCircle(_this.currentValue);
- });
- },
- },
- type: {
- type: String,
- value: '',
- },
- strokeWidth: {
- type: Number,
- value: 4,
- },
- clockwise: {
- type: Boolean,
- value: true,
- },
- },
- data: {
- hoverColor: color_1.BLUE,
- },
- methods: {
- getContext: function () {
- var _this = this;
- var _a = this.data,
- type = _a.type,
- size = _a.size;
- if (type === '' || !version_1.canIUseCanvas2d()) {
- var ctx = wx.createCanvasContext('van-circle', this);
- return Promise.resolve(ctx);
- }
- var dpr = utils_1.getSystemInfoSync().pixelRatio;
- return new Promise(function (resolve) {
- wx.createSelectorQuery()
- .in(_this)
- .select('#van-circle')
- .node()
- .exec(function (res) {
- var canvas = res[0].node;
- var ctx = canvas.getContext(type);
- if (!_this.inited) {
- _this.inited = true;
- canvas.width = size * dpr;
- canvas.height = size * dpr;
- ctx.scale(dpr, dpr);
+ methods: {
+ getContext: function () {
+ var _this = this;
+ var _a = this.data, type = _a.type, size = _a.size;
+ if (type === '' || !version_1.canIUseCanvas2d()) {
+ var ctx = wx.createCanvasContext('van-circle', this);
+ return Promise.resolve(ctx);
}
- resolve(canvas_1.adaptor(ctx));
- });
- });
- },
- setHoverColor: function () {
- var _this = this;
- var _a = this.data,
- color = _a.color,
- size = _a.size;
- if (validator_1.isObj(color)) {
- return this.getContext().then(function (context) {
- var LinearColor = context.createLinearGradient(size, 0, 0, 0);
- Object.keys(color)
- .sort(function (a, b) {
- return parseFloat(a) - parseFloat(b);
- })
- .map(function (key) {
- return LinearColor.addColorStop(
- parseFloat(key) / 100,
- color[key]
- );
+ var dpr = utils_1.getSystemInfoSync().pixelRatio;
+ return new Promise(function (resolve) {
+ wx.createSelectorQuery()
+ .in(_this)
+ .select('#van-circle')
+ .node()
+ .exec(function (res) {
+ var canvas = res[0].node;
+ var ctx = canvas.getContext(type);
+ if (!_this.inited) {
+ _this.inited = true;
+ canvas.width = size * dpr;
+ canvas.height = size * dpr;
+ ctx.scale(dpr, dpr);
+ }
+ resolve(canvas_1.adaptor(ctx));
+ });
});
- _this.hoverColor = LinearColor;
- });
- }
- this.hoverColor = color;
- return Promise.resolve();
- },
- presetCanvas: function (context, strokeStyle, beginAngle, endAngle, fill) {
- var _a = this.data,
- strokeWidth = _a.strokeWidth,
- lineCap = _a.lineCap,
- clockwise = _a.clockwise,
- size = _a.size;
- var position = size / 2;
- var radius = position - strokeWidth / 2;
- context.setStrokeStyle(strokeStyle);
- context.setLineWidth(strokeWidth);
- context.setLineCap(lineCap);
- context.beginPath();
- context.arc(position, position, radius, beginAngle, endAngle, !clockwise);
- context.stroke();
- if (fill) {
- context.setFillStyle(fill);
- context.fill();
- }
- },
- renderLayerCircle: function (context) {
- var _a = this.data,
- layerColor = _a.layerColor,
- fill = _a.fill;
- this.presetCanvas(context, layerColor, 0, PERIMETER, fill);
- },
- renderHoverCircle: function (context, formatValue) {
- var clockwise = this.data.clockwise;
- // 结束角度
- var progress = PERIMETER * (formatValue / 100);
- var endAngle = clockwise
- ? BEGIN_ANGLE + progress
- : 3 * Math.PI - (BEGIN_ANGLE + progress);
- this.presetCanvas(context, this.hoverColor, BEGIN_ANGLE, endAngle);
- },
- drawCircle: function (currentValue) {
- var _this = this;
- var size = this.data.size;
- this.getContext().then(function (context) {
- context.clearRect(0, 0, size, size);
- _this.renderLayerCircle(context);
- var formatValue = format(currentValue);
- if (formatValue !== 0) {
- _this.renderHoverCircle(context, formatValue);
- }
- context.draw();
- });
- },
- reRender: function () {
- var _this = this;
- // tofector 动画暂时没有想到好的解决方案
- var _a = this.data,
- value = _a.value,
- speed = _a.speed;
- if (speed <= 0 || speed > 1000) {
- this.drawCircle(value);
- return;
- }
- this.clearMockInterval();
- this.currentValue = this.currentValue || 0;
- var run = function () {
- _this.interval = setTimeout(function () {
- if (_this.currentValue !== value) {
- if (Math.abs(_this.currentValue - value) < STEP) {
- _this.currentValue = value;
- } else if (_this.currentValue < value) {
- _this.currentValue += STEP;
- } else {
- _this.currentValue -= STEP;
+ },
+ setHoverColor: function () {
+ var _this = this;
+ var _a = this.data, color = _a.color, size = _a.size;
+ if (validator_1.isObj(color)) {
+ return this.getContext().then(function (context) {
+ var LinearColor = context.createLinearGradient(size, 0, 0, 0);
+ Object.keys(color)
+ .sort(function (a, b) { return parseFloat(a) - parseFloat(b); })
+ .map(function (key) {
+ return LinearColor.addColorStop(parseFloat(key) / 100, color[key]);
+ });
+ _this.hoverColor = LinearColor;
+ });
}
- _this.drawCircle(_this.currentValue);
+ this.hoverColor = color;
+ return Promise.resolve();
+ },
+ presetCanvas: function (context, strokeStyle, beginAngle, endAngle, fill) {
+ var _a = this.data, strokeWidth = _a.strokeWidth, lineCap = _a.lineCap, clockwise = _a.clockwise, size = _a.size;
+ var position = size / 2;
+ var radius = position - strokeWidth / 2;
+ context.setStrokeStyle(strokeStyle);
+ context.setLineWidth(strokeWidth);
+ context.setLineCap(lineCap);
+ context.beginPath();
+ context.arc(position, position, radius, beginAngle, endAngle, !clockwise);
+ context.stroke();
+ if (fill) {
+ context.setFillStyle(fill);
+ context.fill();
+ }
+ },
+ renderLayerCircle: function (context) {
+ var _a = this.data, layerColor = _a.layerColor, fill = _a.fill;
+ this.presetCanvas(context, layerColor, 0, PERIMETER, fill);
+ },
+ renderHoverCircle: function (context, formatValue) {
+ var clockwise = this.data.clockwise;
+ // 结束角度
+ var progress = PERIMETER * (formatValue / 100);
+ var endAngle = clockwise
+ ? BEGIN_ANGLE + progress
+ : 3 * Math.PI - (BEGIN_ANGLE + progress);
+ this.presetCanvas(context, this.hoverColor, BEGIN_ANGLE, endAngle);
+ },
+ drawCircle: function (currentValue) {
+ var _this = this;
+ var size = this.data.size;
+ this.getContext().then(function (context) {
+ context.clearRect(0, 0, size, size);
+ _this.renderLayerCircle(context);
+ var formatValue = format(currentValue);
+ if (formatValue !== 0) {
+ _this.renderHoverCircle(context, formatValue);
+ }
+ context.draw();
+ });
+ },
+ reRender: function () {
+ var _this = this;
+ // tofector 动画暂时没有想到好的解决方案
+ var _a = this.data, value = _a.value, speed = _a.speed;
+ if (speed <= 0 || speed > 1000) {
+ this.drawCircle(value);
+ return;
+ }
+ this.clearMockInterval();
+ this.currentValue = this.currentValue || 0;
+ var run = function () {
+ _this.interval = setTimeout(function () {
+ if (_this.currentValue !== value) {
+ if (Math.abs(_this.currentValue - value) < STEP) {
+ _this.currentValue = value;
+ }
+ else if (_this.currentValue < value) {
+ _this.currentValue += STEP;
+ }
+ else {
+ _this.currentValue -= STEP;
+ }
+ _this.drawCircle(_this.currentValue);
+ run();
+ }
+ else {
+ _this.clearMockInterval();
+ }
+ }, 1000 / speed);
+ };
run();
- } else {
- _this.clearMockInterval();
- }
- }, 1000 / speed);
- };
- run();
+ },
+ clearMockInterval: function () {
+ if (this.interval) {
+ clearTimeout(this.interval);
+ this.interval = null;
+ }
+ },
},
- clearMockInterval: function () {
- if (this.interval) {
- clearTimeout(this.interval);
- this.interval = null;
- }
+ mounted: function () {
+ var _this = this;
+ this.currentValue = this.data.value;
+ this.setHoverColor().then(function () {
+ _this.drawCircle(_this.currentValue);
+ });
+ },
+ destroyed: function () {
+ this.clearMockInterval();
},
- },
- mounted: function () {
- var _this = this;
- this.currentValue = this.data.value;
- this.setHoverColor().then(function () {
- _this.drawCircle(_this.currentValue);
- });
- },
- destroyed: function () {
- this.clearMockInterval();
- },
});
diff --git a/lib/col/index.js b/lib/col/index.js
index a33c44b9..b1b265eb 100644
--- a/lib/col/index.js
+++ b/lib/col/index.js
@@ -1,11 +1,11 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var relation_1 = require('../common/relation');
-var component_1 = require('../common/component');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var relation_1 = require("../common/relation");
+var component_1 = require("../common/component");
component_1.VantComponent({
- relation: relation_1.useParent('row'),
- props: {
- span: Number,
- offset: Number,
- },
+ relation: relation_1.useParent('row'),
+ props: {
+ span: Number,
+ offset: Number,
+ },
});
diff --git a/lib/collapse-item/animate.js b/lib/collapse-item/animate.js
index 43173837..1bdeca24 100644
--- a/lib/collapse-item/animate.js
+++ b/lib/collapse-item/animate.js
@@ -1,77 +1,65 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
exports.setContentAnimate = void 0;
-var version_1 = require('../common/version');
-var utils_1 = require('../common/utils');
+var version_1 = require("../common/version");
+var utils_1 = require("../common/utils");
function useAnimate(context, expanded, mounted, height) {
- var selector = '.van-collapse-item__wrapper';
- if (expanded) {
- context.animate(
- selector,
- [
- { height: 0, ease: 'ease-in-out', offset: 0 },
- { height: height + 'px', ease: 'ease-in-out', offset: 1 },
- { height: 'auto', ease: 'ease-in-out', offset: 1 },
- ],
- mounted ? 300 : 0,
- function () {
- context.clearAnimation(selector);
- }
- );
- return;
- }
- context.animate(
- selector,
- [
- { height: height + 'px', ease: 'ease-in-out', offset: 0 },
- { height: 0, ease: 'ease-in-out', offset: 1 },
- ],
- 300,
- function () {
- context.clearAnimation(selector);
+ var selector = '.van-collapse-item__wrapper';
+ if (expanded) {
+ context.animate(selector, [
+ { height: 0, ease: 'ease-in-out', offset: 0 },
+ { height: height + "px", ease: 'ease-in-out', offset: 1 },
+ { height: "auto", ease: 'ease-in-out', offset: 1 },
+ ], mounted ? 300 : 0, function () {
+ context.clearAnimation(selector);
+ });
+ return;
}
- );
+ context.animate(selector, [
+ { height: height + "px", ease: 'ease-in-out', offset: 0 },
+ { height: 0, ease: 'ease-in-out', offset: 1 },
+ ], 300, function () {
+ context.clearAnimation(selector);
+ });
}
function useAnimation(context, expanded, mounted, height) {
- var animation = wx.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(),
+ var animation = wx.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(),
});
- return;
- }
- animation.height(height).top(0).step({ duration: 1 }).height(0).step({
- duration: 300,
- });
- context.setData({
- animation: animation.export(),
- });
}
function setContentAnimate(context, expanded, mounted) {
- utils_1
- .getRect(context, '.van-collapse-item__content')
- .then(function (rect) {
- return rect.height;
- })
- .then(function (height) {
- version_1.canIUseAnimate()
- ? useAnimate(context, expanded, mounted, height)
- : useAnimation(context, expanded, mounted, height);
+ utils_1.getRect(context, '.van-collapse-item__content')
+ .then(function (rect) { return rect.height; })
+ .then(function (height) {
+ version_1.canIUseAnimate()
+ ? useAnimate(context, expanded, mounted, height)
+ : useAnimation(context, expanded, mounted, height);
});
}
exports.setContentAnimate = setContentAnimate;
diff --git a/lib/collapse-item/index.js b/lib/collapse-item/index.js
index b30315cf..86af6f02 100644
--- a/lib/collapse-item/index.js
+++ b/lib/collapse-item/index.js
@@ -1,68 +1,61 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var relation_1 = require('../common/relation');
-var animate_1 = require('./animate');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+var animate_1 = require("./animate");
component_1.VantComponent({
- classes: ['title-class', 'content-class'],
- relation: relation_1.useParent('collapse'),
- props: {
- name: null,
- title: null,
- value: null,
- icon: String,
- label: String,
- disabled: Boolean,
- clickable: Boolean,
- border: {
- type: Boolean,
- value: true,
+ classes: ['title-class', 'content-class'],
+ relation: relation_1.useParent('collapse'),
+ props: {
+ name: null,
+ title: null,
+ value: null,
+ icon: String,
+ label: String,
+ disabled: Boolean,
+ clickable: Boolean,
+ border: {
+ type: Boolean,
+ value: true,
+ },
+ isLink: {
+ type: Boolean,
+ value: true,
+ },
},
- isLink: {
- type: Boolean,
- value: true,
+ data: {
+ expanded: false,
},
- },
- data: {
- expanded: false,
- },
- mounted: function () {
- this.updateExpanded();
- this.mounted = true;
- },
- methods: {
- updateExpanded: function () {
- if (!this.parent) {
- return;
- }
- var _a = this.parent.data,
- value = _a.value,
- accordion = _a.accordion;
- var _b = this.parent.children,
- children = _b === void 0 ? [] : _b;
- var name = this.data.name;
- var index = children.indexOf(this);
- var currentName = name == null ? index : name;
- var expanded = accordion
- ? value === currentName
- : (value || []).some(function (name) {
- return name === currentName;
- });
- if (expanded !== this.data.expanded) {
- animate_1.setContentAnimate(this, expanded, this.mounted);
- }
- this.setData({ index: index, expanded: expanded });
+ mounted: function () {
+ this.updateExpanded();
+ this.mounted = true;
},
- onClick: function () {
- if (this.data.disabled) {
- return;
- }
- var _a = this.data,
- name = _a.name,
- expanded = _a.expanded;
- var index = this.parent.children.indexOf(this);
- var currentName = name == null ? index : name;
- this.parent.switch(currentName, !expanded);
+ methods: {
+ updateExpanded: function () {
+ if (!this.parent) {
+ return;
+ }
+ var _a = this.parent.data, value = _a.value, accordion = _a.accordion;
+ var _b = this.parent.children, children = _b === void 0 ? [] : _b;
+ var name = this.data.name;
+ var index = children.indexOf(this);
+ var currentName = name == null ? index : name;
+ var expanded = accordion
+ ? value === currentName
+ : (value || []).some(function (name) { return name === currentName; });
+ if (expanded !== this.data.expanded) {
+ animate_1.setContentAnimate(this, expanded, this.mounted);
+ }
+ this.setData({ index: index, expanded: expanded });
+ },
+ onClick: function () {
+ if (this.data.disabled) {
+ return;
+ }
+ var _a = this.data, name = _a.name, expanded = _a.expanded;
+ var index = this.parent.children.indexOf(this);
+ var currentName = name == null ? index : name;
+ this.parent.switch(currentName, !expanded);
+ },
},
- },
});
diff --git a/lib/collapse/index.js b/lib/collapse/index.js
index 4e2c0973..7745f0f3 100644
--- a/lib/collapse/index.js
+++ b/lib/collapse/index.js
@@ -1,50 +1,48 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var relation_1 = require('../common/relation');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
component_1.VantComponent({
- relation: relation_1.useChildren('collapse-item'),
- props: {
- value: {
- type: null,
- observer: 'updateExpanded',
+ relation: relation_1.useChildren('collapse-item'),
+ props: {
+ value: {
+ type: null,
+ observer: 'updateExpanded',
+ },
+ accordion: {
+ type: Boolean,
+ observer: 'updateExpanded',
+ },
+ border: {
+ type: Boolean,
+ value: true,
+ },
},
- accordion: {
- type: Boolean,
- observer: 'updateExpanded',
- },
- border: {
- type: Boolean,
- value: true,
- },
- },
- methods: {
- updateExpanded: function () {
- this.children.forEach(function (child) {
- child.updateExpanded();
- });
- },
- switch: function (name, expanded) {
- var _a = this.data,
- accordion = _a.accordion,
- value = _a.value;
- var changeItem = name;
- if (!accordion) {
- name = expanded
- ? (value || []).concat(name)
- : (value || []).filter(function (activeName) {
- return activeName !== name;
+ methods: {
+ updateExpanded: function () {
+ this.children.forEach(function (child) {
+ child.updateExpanded();
});
- } else {
- name = expanded ? name : '';
- }
- if (expanded) {
- this.$emit('open', changeItem);
- } else {
- this.$emit('close', changeItem);
- }
- this.$emit('change', name);
- this.$emit('input', name);
+ },
+ switch: function (name, expanded) {
+ var _a = this.data, accordion = _a.accordion, value = _a.value;
+ var changeItem = name;
+ if (!accordion) {
+ name = expanded
+ ? (value || []).concat(name)
+ : (value || []).filter(function (activeName) { return activeName !== name; });
+ }
+ else {
+ name = expanded ? name : '';
+ }
+ if (expanded) {
+ this.$emit('open', changeItem);
+ }
+ else {
+ this.$emit('close', changeItem);
+ }
+ this.$emit('change', name);
+ this.$emit('input', name);
+ },
},
- },
});
diff --git a/lib/common/color.js b/lib/common/color.js
index 885acaa7..008a45a3 100644
--- a/lib/common/color.js
+++ b/lib/common/color.js
@@ -1,5 +1,5 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
exports.GRAY_DARK = exports.GRAY = exports.ORANGE = exports.GREEN = exports.WHITE = exports.BLUE = exports.RED = void 0;
exports.RED = '#ee0a24';
exports.BLUE = '#1989fa';
diff --git a/lib/common/component.js b/lib/common/component.js
index 2274506e..f1ab5c91 100644
--- a/lib/common/component.js
+++ b/lib/common/component.js
@@ -1,48 +1,48 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
exports.VantComponent = void 0;
-var basic_1 = require('../mixins/basic');
+var basic_1 = require("../mixins/basic");
function mapKeys(source, target, map) {
- Object.keys(map).forEach(function (key) {
- if (source[key]) {
- target[map[key]] = source[key];
- }
- });
+ Object.keys(map).forEach(function (key) {
+ if (source[key]) {
+ target[map[key]] = source[key];
+ }
+ });
}
function VantComponent(vantOptions) {
- var options = {};
- mapKeys(vantOptions, options, {
- data: 'data',
- props: 'properties',
- mixins: 'behaviors',
- methods: 'methods',
- beforeCreate: 'created',
- created: 'attached',
- mounted: 'ready',
- destroyed: 'detached',
- classes: 'externalClasses',
- });
- // add default externalClasses
- options.externalClasses = options.externalClasses || [];
- options.externalClasses.push('custom-class');
- // add default behaviors
- options.behaviors = options.behaviors || [];
- options.behaviors.push(basic_1.basic);
- // add relations
- var relation = vantOptions.relation;
- if (relation) {
- options.relations = relation.relations;
- options.behaviors.push(relation.mixin);
- }
- // map field to form-field behavior
- if (vantOptions.field) {
- options.behaviors.push('wx://form-field');
- }
- // add default options
- options.options = {
- multipleSlots: true,
- addGlobalClass: true,
- };
- Component(options);
+ var options = {};
+ mapKeys(vantOptions, options, {
+ data: 'data',
+ props: 'properties',
+ mixins: 'behaviors',
+ methods: 'methods',
+ beforeCreate: 'created',
+ created: 'attached',
+ mounted: 'ready',
+ destroyed: 'detached',
+ classes: 'externalClasses',
+ });
+ // add default externalClasses
+ options.externalClasses = options.externalClasses || [];
+ options.externalClasses.push('custom-class');
+ // add default behaviors
+ options.behaviors = options.behaviors || [];
+ options.behaviors.push(basic_1.basic);
+ // add relations
+ var relation = vantOptions.relation;
+ if (relation) {
+ options.relations = relation.relations;
+ options.behaviors.push(relation.mixin);
+ }
+ // map field to form-field behavior
+ if (vantOptions.field) {
+ options.behaviors.push('wx://form-field');
+ }
+ // add default options
+ options.options = {
+ multipleSlots: true,
+ addGlobalClass: true,
+ };
+ Component(options);
}
exports.VantComponent = VantComponent;
diff --git a/lib/common/relation.js b/lib/common/relation.js
index fcf9824c..bcf3f8a0 100644
--- a/lib/common/relation.js
+++ b/lib/common/relation.js
@@ -1,79 +1,65 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
exports.useChildren = exports.useParent = void 0;
function useParent(name, onEffect) {
- var _a;
- var path = '../' + name + '/index';
- return {
- relations:
- ((_a = {}),
- (_a[path] = {
- type: 'ancestor',
- linked: function () {
- onEffect && onEffect.call(this);
- },
- linkChanged: function () {
- onEffect && onEffect.call(this);
- },
- unlinked: function () {
- onEffect && onEffect.call(this);
- },
- }),
- _a),
- mixin: Behavior({
- created: function () {
- var _this = this;
- Object.defineProperty(this, 'parent', {
- get: function () {
- return _this.getRelationNodes(path)[0];
- },
- });
- Object.defineProperty(this, 'index', {
- // @ts-ignore
- get: function () {
- var _a, _b;
- return (_b =
- (_a = _this.parent) === null || _a === void 0
- ? void 0
- : _a.children) === null || _b === void 0
- ? void 0
- : _b.indexOf(_this);
- },
- });
- },
- }),
- };
+ var _a;
+ var path = "../" + name + "/index";
+ return {
+ relations: (_a = {},
+ _a[path] = {
+ type: 'ancestor',
+ linked: function () {
+ onEffect && onEffect.call(this);
+ },
+ linkChanged: function () {
+ onEffect && onEffect.call(this);
+ },
+ unlinked: function () {
+ onEffect && onEffect.call(this);
+ },
+ },
+ _a),
+ mixin: Behavior({
+ created: function () {
+ var _this = this;
+ Object.defineProperty(this, 'parent', {
+ get: function () { return _this.getRelationNodes(path)[0]; },
+ });
+ Object.defineProperty(this, 'index', {
+ // @ts-ignore
+ get: function () { var _a, _b; return (_b = (_a = _this.parent) === null || _a === void 0 ? void 0 : _a.children) === null || _b === void 0 ? void 0 : _b.indexOf(_this); },
+ });
+ },
+ }),
+ };
}
exports.useParent = useParent;
function useChildren(name, onEffect) {
- var _a;
- var path = '../' + name + '/index';
- return {
- relations:
- ((_a = {}),
- (_a[path] = {
- type: 'descendant',
- linked: function (target) {
- onEffect && onEffect.call(this, target);
- },
- linkChanged: function (target) {
- onEffect && onEffect.call(this, target);
- },
- unlinked: function (target) {
- onEffect && onEffect.call(this, target);
- },
- }),
- _a),
- mixin: Behavior({
- created: function () {
- var _this = this;
- Object.defineProperty(this, 'children', {
- get: function () {
- return _this.getRelationNodes(path) || [];
- },
- });
- },
- }),
- };
+ var _a;
+ var path = "../" + name + "/index";
+ return {
+ relations: (_a = {},
+ _a[path] = {
+ type: 'descendant',
+ linked: function (target) {
+ onEffect && onEffect.call(this, target);
+ },
+ linkChanged: function (target) {
+ onEffect && onEffect.call(this, target);
+ },
+ unlinked: function (target) {
+ onEffect && onEffect.call(this, target);
+ },
+ },
+ _a),
+ mixin: Behavior({
+ created: function () {
+ var _this = this;
+ Object.defineProperty(this, 'children', {
+ get: function () { return _this.getRelationNodes(path) || []; },
+ });
+ },
+ }),
+ };
}
exports.useChildren = useChildren;
diff --git a/lib/common/utils.js b/lib/common/utils.js
index e37fb2e1..5b1bd196 100644
--- a/lib/common/utils.js
+++ b/lib/common/utils.js
@@ -1,120 +1,113 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
exports.getCurrentPage = exports.toPromise = exports.groupSetData = exports.getAllRect = exports.getRect = exports.pickExclude = exports.requestAnimationFrame = exports.addUnit = exports.getSystemInfoSync = exports.nextTick = exports.range = 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 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; } });
function range(num, min, max) {
- return Math.min(Math.max(num, min), max);
+ return Math.min(Math.max(num, min), max);
}
exports.range = range;
function nextTick(cb) {
- if (version_1.canIUseNextTick()) {
- wx.nextTick(cb);
- } else {
- setTimeout(function () {
- cb();
- }, 1000 / 30);
- }
+ if (version_1.canIUseNextTick()) {
+ wx.nextTick(cb);
+ }
+ else {
+ setTimeout(function () {
+ cb();
+ }, 1000 / 30);
+ }
}
exports.nextTick = nextTick;
var systemInfo;
function getSystemInfoSync() {
- if (systemInfo == null) {
- systemInfo = wx.getSystemInfoSync();
- }
- return systemInfo;
+ if (systemInfo == null) {
+ systemInfo = wx.getSystemInfoSync();
+ }
+ return systemInfo;
}
exports.getSystemInfoSync = getSystemInfoSync;
function addUnit(value) {
- if (!validator_1.isDef(value)) {
- return undefined;
- }
- value = String(value);
- return validator_1.isNumber(value) ? value + 'px' : value;
+ if (!validator_1.isDef(value)) {
+ return undefined;
+ }
+ value = String(value);
+ return validator_1.isNumber(value) ? value + "px" : value;
}
exports.addUnit = addUnit;
function requestAnimationFrame(cb) {
- var systemInfo = getSystemInfoSync();
- if (systemInfo.platform === 'devtools') {
- return setTimeout(function () {
- cb();
- }, 1000 / 30);
- }
- return wx
- .createSelectorQuery()
- .selectViewport()
- .boundingClientRect()
- .exec(function () {
- cb();
+ var systemInfo = getSystemInfoSync();
+ if (systemInfo.platform === 'devtools') {
+ return setTimeout(function () {
+ cb();
+ }, 1000 / 30);
+ }
+ return wx
+ .createSelectorQuery()
+ .selectViewport()
+ .boundingClientRect()
+ .exec(function () {
+ cb();
});
}
exports.requestAnimationFrame = requestAnimationFrame;
function pickExclude(obj, keys) {
- if (!validator_1.isPlainObject(obj)) {
- return {};
- }
- return Object.keys(obj).reduce(function (prev, key) {
- if (!keys.includes(key)) {
- prev[key] = obj[key];
+ if (!validator_1.isPlainObject(obj)) {
+ return {};
}
- return prev;
- }, {});
+ 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) {
- wx.createSelectorQuery()
- .in(context)
- .select(selector)
- .boundingClientRect()
- .exec(function (rect) {
- if (rect === void 0) {
- rect = [];
- }
- return resolve(rect[0]);
- });
- });
+ return new Promise(function (resolve) {
+ wx.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) {
- wx.createSelectorQuery()
- .in(context)
- .selectAll(selector)
- .boundingClientRect()
- .exec(function (rect) {
- if (rect === void 0) {
- rect = [];
- }
- return resolve(rect[0]);
- });
- });
+ return new Promise(function (resolve) {
+ wx.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 (version_1.canIUseGroupSetData()) {
- context.groupSetData(cb);
- } else {
- cb();
- }
+ if (version_1.canIUseGroupSetData()) {
+ context.groupSetData(cb);
+ }
+ else {
+ cb();
+ }
}
exports.groupSetData = groupSetData;
function toPromise(promiseLike) {
- if (validator_1.isPromise(promiseLike)) {
- return promiseLike;
- }
- return Promise.resolve(promiseLike);
+ if (validator_1.isPromise(promiseLike)) {
+ return promiseLike;
+ }
+ return Promise.resolve(promiseLike);
}
exports.toPromise = toPromise;
function getCurrentPage() {
- var pages = getCurrentPages();
- return pages[pages.length - 1];
+ var pages = getCurrentPages();
+ return pages[pages.length - 1];
}
exports.getCurrentPage = getCurrentPage;
diff --git a/lib/common/validator.js b/lib/common/validator.js
index 798f0548..169e796e 100644
--- a/lib/common/validator.js
+++ b/lib/common/validator.js
@@ -1,43 +1,43 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
+"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';
+ return typeof val === 'function';
}
exports.isFunction = isFunction;
function isPlainObject(val) {
- return val !== null && typeof val === 'object' && !Array.isArray(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);
+ return isPlainObject(val) && isFunction(val.then) && isFunction(val.catch);
}
exports.isPromise = isPromise;
function isDef(value) {
- return value !== undefined && value !== null;
+ return value !== undefined && value !== null;
}
exports.isDef = isDef;
function isObj(x) {
- var type = typeof x;
- return x !== null && (type === 'object' || type === 'function');
+ var type = typeof x;
+ return x !== null && (type === 'object' || type === 'function');
}
exports.isObj = isObj;
function isNumber(value) {
- return /^\d+(\.\d+)?$/.test(value);
+ return /^\d+(\.\d+)?$/.test(value);
}
exports.isNumber = isNumber;
function isBoolean(value) {
- return typeof value === 'boolean';
+ 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);
+ return IMAGE_REGEXP.test(url);
}
exports.isImageUrl = isImageUrl;
function isVideoUrl(url) {
- return VIDEO_REGEXP.test(url);
+ return VIDEO_REGEXP.test(url);
}
exports.isVideoUrl = isVideoUrl;
diff --git a/lib/common/version.js b/lib/common/version.js
index c7dc5dbf..dbe62db6 100644
--- a/lib/common/version.js
+++ b/lib/common/version.js
@@ -1,58 +1,58 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
exports.canIUseGetUserProfile = exports.canIUseCanvas2d = exports.canIUseNextTick = exports.canIUseGroupSetData = exports.canIUseAnimate = exports.canIUseFormFieldButton = exports.canIUseModel = void 0;
-var utils_1 = require('./utils');
+var utils_1 = require("./utils");
function compareVersion(v1, v2) {
- v1 = v1.split('.');
- v2 = v2.split('.');
- var len = Math.max(v1.length, v2.length);
- while (v1.length < len) {
- v1.push('0');
- }
- while (v2.length < len) {
- v2.push('0');
- }
- for (var i = 0; i < len; i++) {
- var num1 = parseInt(v1[i], 10);
- var num2 = parseInt(v2[i], 10);
- if (num1 > num2) {
- return 1;
+ v1 = v1.split('.');
+ v2 = v2.split('.');
+ var len = Math.max(v1.length, v2.length);
+ while (v1.length < len) {
+ v1.push('0');
}
- if (num1 < num2) {
- return -1;
+ while (v2.length < len) {
+ v2.push('0');
}
- }
- return 0;
+ for (var i = 0; i < len; i++) {
+ var num1 = parseInt(v1[i], 10);
+ var num2 = parseInt(v2[i], 10);
+ if (num1 > num2) {
+ return 1;
+ }
+ if (num1 < num2) {
+ return -1;
+ }
+ }
+ return 0;
}
function gte(version) {
- var system = utils_1.getSystemInfoSync();
- return compareVersion(system.SDKVersion, version) >= 0;
+ var system = utils_1.getSystemInfoSync();
+ return compareVersion(system.SDKVersion, version) >= 0;
}
function canIUseModel() {
- return gte('2.9.3');
+ return gte('2.9.3');
}
exports.canIUseModel = canIUseModel;
function canIUseFormFieldButton() {
- return gte('2.10.3');
+ return gte('2.10.3');
}
exports.canIUseFormFieldButton = canIUseFormFieldButton;
function canIUseAnimate() {
- return gte('2.9.0');
+ return gte('2.9.0');
}
exports.canIUseAnimate = canIUseAnimate;
function canIUseGroupSetData() {
- return gte('2.4.0');
+ return gte('2.4.0');
}
exports.canIUseGroupSetData = canIUseGroupSetData;
function canIUseNextTick() {
- return wx.canIUse('nextTick');
+ return wx.canIUse('nextTick');
}
exports.canIUseNextTick = canIUseNextTick;
function canIUseCanvas2d() {
- return gte('2.9.0');
+ return gte('2.9.0');
}
exports.canIUseCanvas2d = canIUseCanvas2d;
function canIUseGetUserProfile() {
- return !!wx.getUserProfile;
+ return !!wx.getUserProfile;
}
exports.canIUseGetUserProfile = canIUseGetUserProfile;
diff --git a/lib/config-provider/index.js b/lib/config-provider/index.js
index 341d7d94..62c1d927 100644
--- a/lib/config-provider/index.js
+++ b/lib/config-provider/index.js
@@ -1,11 +1,11 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
component_1.VantComponent({
- props: {
- themeVars: {
- type: Object,
- value: {},
+ props: {
+ themeVars: {
+ type: Object,
+ value: {},
+ },
},
- },
});
diff --git a/lib/count-down/index.js b/lib/count-down/index.js
index 348d4898..64fa5fb0 100644
--- a/lib/count-down/index.js
+++ b/lib/count-down/index.js
@@ -1,103 +1,104 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var utils_1 = require('./utils');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var utils_1 = require("./utils");
function simpleTick(fn) {
- return setTimeout(fn, 30);
+ return setTimeout(fn, 30);
}
component_1.VantComponent({
- props: {
- useSlot: Boolean,
- millisecond: Boolean,
- time: {
- type: Number,
- observer: 'reset',
+ props: {
+ useSlot: Boolean,
+ millisecond: Boolean,
+ time: {
+ type: Number,
+ observer: 'reset',
+ },
+ format: {
+ type: String,
+ value: 'HH:mm:ss',
+ },
+ autoStart: {
+ type: Boolean,
+ value: true,
+ },
},
- format: {
- type: String,
- value: 'HH:mm:ss',
+ data: {
+ timeData: utils_1.parseTimeData(0),
+ formattedTime: '0',
},
- autoStart: {
- type: Boolean,
- value: true,
+ destroyed: function () {
+ clearTimeout(this.tid);
+ this.tid = null;
},
- },
- data: {
- timeData: utils_1.parseTimeData(0),
- formattedTime: '0',
- },
- destroyed: function () {
- clearTimeout(this.tid);
- this.tid = null;
- },
- methods: {
- // 开始
- start: function () {
- if (this.counting) {
- return;
- }
- this.counting = true;
- this.endTime = Date.now() + this.remain;
- this.tick();
+ methods: {
+ // 开始
+ start: function () {
+ if (this.counting) {
+ return;
+ }
+ this.counting = true;
+ this.endTime = Date.now() + this.remain;
+ this.tick();
+ },
+ // 暂停
+ pause: function () {
+ this.counting = false;
+ clearTimeout(this.tid);
+ },
+ // 重置
+ reset: function () {
+ this.pause();
+ this.remain = this.data.time;
+ this.setRemain(this.remain);
+ if (this.data.autoStart) {
+ this.start();
+ }
+ },
+ tick: function () {
+ if (this.data.millisecond) {
+ this.microTick();
+ }
+ else {
+ this.macroTick();
+ }
+ },
+ microTick: function () {
+ var _this = this;
+ this.tid = simpleTick(function () {
+ _this.setRemain(_this.getRemain());
+ if (_this.remain !== 0) {
+ _this.microTick();
+ }
+ });
+ },
+ macroTick: function () {
+ var _this = this;
+ this.tid = simpleTick(function () {
+ var remain = _this.getRemain();
+ if (!utils_1.isSameSecond(remain, _this.remain) || remain === 0) {
+ _this.setRemain(remain);
+ }
+ if (_this.remain !== 0) {
+ _this.macroTick();
+ }
+ });
+ },
+ getRemain: function () {
+ return Math.max(this.endTime - Date.now(), 0);
+ },
+ setRemain: function (remain) {
+ this.remain = remain;
+ var timeData = utils_1.parseTimeData(remain);
+ if (this.data.useSlot) {
+ this.$emit('change', timeData);
+ }
+ this.setData({
+ formattedTime: utils_1.parseFormat(this.data.format, timeData),
+ });
+ if (remain === 0) {
+ this.pause();
+ this.$emit('finish');
+ }
+ },
},
- // 暂停
- pause: function () {
- this.counting = false;
- clearTimeout(this.tid);
- },
- // 重置
- reset: function () {
- this.pause();
- this.remain = this.data.time;
- this.setRemain(this.remain);
- if (this.data.autoStart) {
- this.start();
- }
- },
- tick: function () {
- if (this.data.millisecond) {
- this.microTick();
- } else {
- this.macroTick();
- }
- },
- microTick: function () {
- var _this = this;
- this.tid = simpleTick(function () {
- _this.setRemain(_this.getRemain());
- if (_this.remain !== 0) {
- _this.microTick();
- }
- });
- },
- macroTick: function () {
- var _this = this;
- this.tid = simpleTick(function () {
- var remain = _this.getRemain();
- if (!utils_1.isSameSecond(remain, _this.remain) || remain === 0) {
- _this.setRemain(remain);
- }
- if (_this.remain !== 0) {
- _this.macroTick();
- }
- });
- },
- getRemain: function () {
- return Math.max(this.endTime - Date.now(), 0);
- },
- setRemain: function (remain) {
- this.remain = remain;
- var timeData = utils_1.parseTimeData(remain);
- if (this.data.useSlot) {
- this.$emit('change', timeData);
- }
- this.setData({
- formattedTime: utils_1.parseFormat(this.data.format, timeData),
- });
- if (remain === 0) {
- this.pause();
- this.$emit('finish');
- }
- },
- },
});
diff --git a/lib/count-down/utils.js b/lib/count-down/utils.js
index 10864a21..a7cfa5f5 100644
--- a/lib/count-down/utils.js
+++ b/lib/count-down/utils.js
@@ -1,65 +1,64 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
exports.isSameSecond = exports.parseFormat = exports.parseTimeData = void 0;
function padZero(num, targetLength) {
- if (targetLength === void 0) {
- targetLength = 2;
- }
- var str = num + '';
- while (str.length < targetLength) {
- str = '0' + str;
- }
- return str;
+ if (targetLength === void 0) { targetLength = 2; }
+ var str = num + '';
+ while (str.length < targetLength) {
+ str = '0' + str;
+ }
+ return str;
}
var SECOND = 1000;
var MINUTE = 60 * SECOND;
var HOUR = 60 * MINUTE;
var DAY = 24 * HOUR;
function parseTimeData(time) {
- var days = Math.floor(time / DAY);
- var hours = Math.floor((time % DAY) / HOUR);
- var minutes = Math.floor((time % HOUR) / MINUTE);
- var seconds = Math.floor((time % MINUTE) / SECOND);
- var milliseconds = Math.floor(time % SECOND);
- return {
- days: days,
- hours: hours,
- minutes: minutes,
- seconds: seconds,
- milliseconds: milliseconds,
- };
+ var days = Math.floor(time / DAY);
+ var hours = Math.floor((time % DAY) / HOUR);
+ var minutes = Math.floor((time % HOUR) / MINUTE);
+ var seconds = Math.floor((time % MINUTE) / SECOND);
+ var milliseconds = Math.floor(time % SECOND);
+ return {
+ days: days,
+ hours: hours,
+ minutes: minutes,
+ seconds: seconds,
+ milliseconds: milliseconds,
+ };
}
exports.parseTimeData = parseTimeData;
function parseFormat(format, timeData) {
- var days = timeData.days;
- var hours = timeData.hours,
- minutes = timeData.minutes,
- seconds = timeData.seconds,
- milliseconds = timeData.milliseconds;
- if (format.indexOf('DD') === -1) {
- hours += days * 24;
- } else {
- format = format.replace('DD', padZero(days));
- }
- if (format.indexOf('HH') === -1) {
- minutes += hours * 60;
- } else {
- format = format.replace('HH', padZero(hours));
- }
- if (format.indexOf('mm') === -1) {
- seconds += minutes * 60;
- } else {
- format = format.replace('mm', padZero(minutes));
- }
- if (format.indexOf('ss') === -1) {
- milliseconds += seconds * 1000;
- } else {
- format = format.replace('ss', padZero(seconds));
- }
- return format.replace('SSS', padZero(milliseconds, 3));
+ var days = timeData.days;
+ var hours = timeData.hours, minutes = timeData.minutes, seconds = timeData.seconds, milliseconds = timeData.milliseconds;
+ if (format.indexOf('DD') === -1) {
+ hours += days * 24;
+ }
+ else {
+ format = format.replace('DD', padZero(days));
+ }
+ if (format.indexOf('HH') === -1) {
+ minutes += hours * 60;
+ }
+ else {
+ format = format.replace('HH', padZero(hours));
+ }
+ if (format.indexOf('mm') === -1) {
+ seconds += minutes * 60;
+ }
+ else {
+ format = format.replace('mm', padZero(minutes));
+ }
+ if (format.indexOf('ss') === -1) {
+ milliseconds += seconds * 1000;
+ }
+ else {
+ format = format.replace('ss', padZero(seconds));
+ }
+ return format.replace('SSS', padZero(milliseconds, 3));
}
exports.parseFormat = parseFormat;
function isSameSecond(time1, time2) {
- return Math.floor(time1 / 1000) === Math.floor(time2 / 1000);
+ return Math.floor(time1 / 1000) === Math.floor(time2 / 1000);
}
exports.isSameSecond = isSameSecond;
diff --git a/lib/datetime-picker/index.js b/lib/datetime-picker/index.js
index 6444056a..5465adf4 100644
--- a/lib/datetime-picker/index.js
+++ b/lib/datetime-picker/index.js
@@ -1,375 +1,325 @@
-'use strict';
-var __assign =
- (this && this.__assign) ||
- function () {
- __assign =
- Object.assign ||
- function (t) {
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s)
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
+ 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);
- };
-var __spreadArray =
- (this && this.__spreadArray) ||
- function (to, from) {
+};
+var __spreadArray = (this && this.__spreadArray) || function (to, from) {
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
- to[j] = from[i];
+ to[j] = from[i];
return to;
- };
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var validator_1 = require('../common/validator');
-var shared_1 = require('../picker/shared');
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var validator_1 = require("../common/validator");
+var shared_1 = require("../picker/shared");
var currentYear = new Date().getFullYear();
function isValidDate(date) {
- return validator_1.isDef(date) && !isNaN(new Date(date).getTime());
+ return validator_1.isDef(date) && !isNaN(new Date(date).getTime());
}
function range(num, min, max) {
- return Math.min(Math.max(num, min), max);
+ return Math.min(Math.max(num, min), max);
}
function padZero(val) {
- return ('00' + val).slice(-2);
+ return ("00" + val).slice(-2);
}
function times(n, iteratee) {
- var index = -1;
- var result = Array(n < 0 ? 0 : n);
- while (++index < n) {
- result[index] = iteratee(index);
- }
- return result;
+ var index = -1;
+ var result = Array(n < 0 ? 0 : n);
+ while (++index < n) {
+ result[index] = iteratee(index);
+ }
+ return result;
}
function getTrueValue(formattedValue) {
- if (formattedValue === undefined) {
- formattedValue = '1';
- }
- while (isNaN(parseInt(formattedValue, 10))) {
- formattedValue = formattedValue.slice(1);
- }
- return parseInt(formattedValue, 10);
+ if (formattedValue === undefined) {
+ formattedValue = '1';
+ }
+ while (isNaN(parseInt(formattedValue, 10))) {
+ formattedValue = formattedValue.slice(1);
+ }
+ return parseInt(formattedValue, 10);
}
function getMonthEndDay(year, month) {
- return 32 - new Date(year, month - 1, 32).getDate();
+ return 32 - new Date(year, month - 1, 32).getDate();
}
-var defaultFormatter = function (type, value) {
- return value;
-};
+var defaultFormatter = function (type, value) { return value; };
component_1.VantComponent({
- classes: ['active-class', 'toolbar-class', 'column-class'],
- props: __assign(__assign({}, shared_1.pickerProps), {
- value: {
- type: null,
- observer: 'updateValue',
+ classes: ['active-class', 'toolbar-class', 'column-class'],
+ props: __assign(__assign({}, shared_1.pickerProps), { value: {
+ type: null,
+ observer: 'updateValue',
+ }, filter: null, type: {
+ type: String,
+ value: 'datetime',
+ observer: 'updateValue',
+ }, showToolbar: {
+ type: Boolean,
+ value: true,
+ }, formatter: {
+ type: null,
+ value: defaultFormatter,
+ }, minDate: {
+ type: Number,
+ value: new Date(currentYear - 10, 0, 1).getTime(),
+ observer: 'updateValue',
+ }, maxDate: {
+ type: Number,
+ value: new Date(currentYear + 10, 11, 31).getTime(),
+ observer: 'updateValue',
+ }, minHour: {
+ type: Number,
+ value: 0,
+ observer: 'updateValue',
+ }, maxHour: {
+ type: Number,
+ value: 23,
+ observer: 'updateValue',
+ }, minMinute: {
+ type: Number,
+ value: 0,
+ observer: 'updateValue',
+ }, maxMinute: {
+ type: Number,
+ value: 59,
+ observer: 'updateValue',
+ } }),
+ data: {
+ innerValue: Date.now(),
+ columns: [],
},
- filter: null,
- type: {
- type: String,
- value: 'datetime',
- observer: 'updateValue',
- },
- showToolbar: {
- type: Boolean,
- value: true,
- },
- formatter: {
- type: null,
- value: defaultFormatter,
- },
- minDate: {
- type: Number,
- value: new Date(currentYear - 10, 0, 1).getTime(),
- observer: 'updateValue',
- },
- maxDate: {
- type: Number,
- value: new Date(currentYear + 10, 11, 31).getTime(),
- observer: 'updateValue',
- },
- minHour: {
- type: Number,
- value: 0,
- observer: 'updateValue',
- },
- maxHour: {
- type: Number,
- value: 23,
- observer: 'updateValue',
- },
- minMinute: {
- type: Number,
- value: 0,
- observer: 'updateValue',
- },
- maxMinute: {
- type: Number,
- value: 59,
- observer: 'updateValue',
- },
- }),
- data: {
- innerValue: Date.now(),
- columns: [],
- },
- methods: {
- updateValue: function () {
- var _this = this;
- var data = this.data;
- var val = this.correctValue(data.value);
- var isEqual = val === data.innerValue;
- this.updateColumnValue(val).then(function () {
- if (!isEqual) {
- _this.$emit('input', val);
- }
- });
- },
- getPicker: function () {
- if (this.picker == null) {
- this.picker = this.selectComponent('.van-datetime-picker');
- var picker_1 = this.picker;
- var setColumnValues_1 = picker_1.setColumnValues;
- picker_1.setColumnValues = function () {
- var args = [];
- for (var _i = 0; _i < arguments.length; _i++) {
- args[_i] = arguments[_i];
- }
- return setColumnValues_1.apply(
- picker_1,
- __spreadArray(__spreadArray([], args), [false])
- );
- };
- }
- return this.picker;
- },
- updateColumns: function () {
- var _a = this.data.formatter,
- formatter = _a === void 0 ? defaultFormatter : _a;
- var results = this.getOriginColumns().map(function (column) {
- return {
- values: column.values.map(function (value) {
- return formatter(column.type, value);
- }),
- };
- });
- return this.set({ columns: results });
- },
- getOriginColumns: function () {
- var filter = this.data.filter;
- var results = this.getRanges().map(function (_a) {
- var type = _a.type,
- range = _a.range;
- var values = times(range[1] - range[0] + 1, function (index) {
- var value = range[0] + index;
- return type === 'year' ? '' + value : padZero(value);
- });
- if (filter) {
- values = filter(type, values);
- }
- return { type: type, values: values };
- });
- return results;
- },
- getRanges: function () {
- var data = this.data;
- if (data.type === 'time') {
- return [
- {
- type: 'hour',
- range: [data.minHour, data.maxHour],
- },
- {
- type: 'minute',
- range: [data.minMinute, data.maxMinute],
- },
- ];
- }
- var _a = this.getBoundary('max', data.innerValue),
- maxYear = _a.maxYear,
- maxDate = _a.maxDate,
- maxMonth = _a.maxMonth,
- maxHour = _a.maxHour,
- maxMinute = _a.maxMinute;
- var _b = this.getBoundary('min', data.innerValue),
- minYear = _b.minYear,
- minDate = _b.minDate,
- minMonth = _b.minMonth,
- minHour = _b.minHour,
- minMinute = _b.minMinute;
- var result = [
- {
- type: 'year',
- range: [minYear, maxYear],
+ methods: {
+ updateValue: function () {
+ var _this = this;
+ var data = this.data;
+ var val = this.correctValue(data.value);
+ var isEqual = val === data.innerValue;
+ this.updateColumnValue(val).then(function () {
+ if (!isEqual) {
+ _this.$emit('input', val);
+ }
+ });
},
- {
- type: 'month',
- range: [minMonth, maxMonth],
- },
- {
- type: 'day',
- range: [minDate, maxDate],
- },
- {
- type: 'hour',
- range: [minHour, maxHour],
- },
- {
- type: 'minute',
- range: [minMinute, maxMinute],
- },
- ];
- if (data.type === 'date') result.splice(3, 2);
- if (data.type === 'year-month') result.splice(2, 3);
- return result;
- },
- correctValue: function (value) {
- var data = this.data;
- // validate value
- var isDateType = data.type !== 'time';
- if (isDateType && !isValidDate(value)) {
- value = data.minDate;
- } else if (!isDateType && !value) {
- var minHour = data.minHour;
- value = padZero(minHour) + ':00';
- }
- // time type
- if (!isDateType) {
- var _a = value.split(':'),
- hour = _a[0],
- minute = _a[1];
- hour = padZero(range(hour, data.minHour, data.maxHour));
- minute = padZero(range(minute, data.minMinute, data.maxMinute));
- return hour + ':' + minute;
- }
- // date type
- value = Math.max(value, data.minDate);
- value = Math.min(value, data.maxDate);
- return value;
- },
- getBoundary: function (type, innerValue) {
- var _a;
- var value = new Date(innerValue);
- var boundary = new Date(this.data[type + 'Date']);
- var year = boundary.getFullYear();
- var month = 1;
- var date = 1;
- var hour = 0;
- var minute = 0;
- if (type === 'max') {
- month = 12;
- date = getMonthEndDay(value.getFullYear(), value.getMonth() + 1);
- hour = 23;
- minute = 59;
- }
- if (value.getFullYear() === year) {
- month = boundary.getMonth() + 1;
- if (value.getMonth() + 1 === month) {
- date = boundary.getDate();
- if (value.getDate() === date) {
- hour = boundary.getHours();
- if (value.getHours() === hour) {
- minute = boundary.getMinutes();
+ getPicker: function () {
+ if (this.picker == null) {
+ this.picker = this.selectComponent('.van-datetime-picker');
+ var picker_1 = this.picker;
+ var setColumnValues_1 = picker_1.setColumnValues;
+ picker_1.setColumnValues = function () {
+ var args = [];
+ for (var _i = 0; _i < arguments.length; _i++) {
+ args[_i] = arguments[_i];
+ }
+ return setColumnValues_1.apply(picker_1, __spreadArray(__spreadArray([], args), [false]));
+ };
}
- }
- }
- }
- return (
- (_a = {}),
- (_a[type + 'Year'] = year),
- (_a[type + 'Month'] = month),
- (_a[type + 'Date'] = date),
- (_a[type + 'Hour'] = hour),
- (_a[type + 'Minute'] = minute),
- _a
- );
+ return this.picker;
+ },
+ updateColumns: function () {
+ var _a = this.data.formatter, formatter = _a === void 0 ? defaultFormatter : _a;
+ var results = this.getOriginColumns().map(function (column) { return ({
+ values: column.values.map(function (value) { return formatter(column.type, value); }),
+ }); });
+ return this.set({ columns: results });
+ },
+ getOriginColumns: function () {
+ var filter = this.data.filter;
+ var results = this.getRanges().map(function (_a) {
+ var type = _a.type, range = _a.range;
+ var values = times(range[1] - range[0] + 1, function (index) {
+ var value = range[0] + index;
+ return type === 'year' ? "" + value : padZero(value);
+ });
+ if (filter) {
+ values = filter(type, values);
+ }
+ return { type: type, values: values };
+ });
+ return results;
+ },
+ getRanges: function () {
+ var data = this.data;
+ if (data.type === 'time') {
+ return [
+ {
+ type: 'hour',
+ range: [data.minHour, data.maxHour],
+ },
+ {
+ type: 'minute',
+ range: [data.minMinute, data.maxMinute],
+ },
+ ];
+ }
+ var _a = this.getBoundary('max', data.innerValue), maxYear = _a.maxYear, maxDate = _a.maxDate, maxMonth = _a.maxMonth, maxHour = _a.maxHour, maxMinute = _a.maxMinute;
+ var _b = this.getBoundary('min', data.innerValue), minYear = _b.minYear, minDate = _b.minDate, minMonth = _b.minMonth, minHour = _b.minHour, minMinute = _b.minMinute;
+ var result = [
+ {
+ type: 'year',
+ range: [minYear, maxYear],
+ },
+ {
+ type: 'month',
+ range: [minMonth, maxMonth],
+ },
+ {
+ type: 'day',
+ range: [minDate, maxDate],
+ },
+ {
+ type: 'hour',
+ range: [minHour, maxHour],
+ },
+ {
+ type: 'minute',
+ range: [minMinute, maxMinute],
+ },
+ ];
+ if (data.type === 'date')
+ result.splice(3, 2);
+ if (data.type === 'year-month')
+ result.splice(2, 3);
+ return result;
+ },
+ correctValue: function (value) {
+ var data = this.data;
+ // validate value
+ var isDateType = data.type !== 'time';
+ if (isDateType && !isValidDate(value)) {
+ value = data.minDate;
+ }
+ else if (!isDateType && !value) {
+ var minHour = data.minHour;
+ value = padZero(minHour) + ":00";
+ }
+ // time type
+ if (!isDateType) {
+ var _a = value.split(':'), hour = _a[0], minute = _a[1];
+ hour = padZero(range(hour, data.minHour, data.maxHour));
+ minute = padZero(range(minute, data.minMinute, data.maxMinute));
+ return hour + ":" + minute;
+ }
+ // date type
+ value = Math.max(value, data.minDate);
+ value = Math.min(value, data.maxDate);
+ return value;
+ },
+ getBoundary: function (type, innerValue) {
+ var _a;
+ var value = new Date(innerValue);
+ var boundary = new Date(this.data[type + "Date"]);
+ var year = boundary.getFullYear();
+ var month = 1;
+ var date = 1;
+ var hour = 0;
+ var minute = 0;
+ if (type === 'max') {
+ month = 12;
+ date = getMonthEndDay(value.getFullYear(), value.getMonth() + 1);
+ hour = 23;
+ minute = 59;
+ }
+ if (value.getFullYear() === year) {
+ month = boundary.getMonth() + 1;
+ if (value.getMonth() + 1 === month) {
+ date = boundary.getDate();
+ if (value.getDate() === date) {
+ hour = boundary.getHours();
+ if (value.getHours() === hour) {
+ minute = boundary.getMinutes();
+ }
+ }
+ }
+ }
+ return _a = {},
+ _a[type + "Year"] = year,
+ _a[type + "Month"] = month,
+ _a[type + "Date"] = date,
+ _a[type + "Hour"] = hour,
+ _a[type + "Minute"] = minute,
+ _a;
+ },
+ onCancel: function () {
+ this.$emit('cancel');
+ },
+ onConfirm: function () {
+ this.$emit('confirm', this.data.innerValue);
+ },
+ onChange: function () {
+ var _this = this;
+ var data = this.data;
+ var value;
+ var picker = this.getPicker();
+ var originColumns = this.getOriginColumns();
+ if (data.type === 'time') {
+ var indexes = picker.getIndexes();
+ value = +originColumns[0].values[indexes[0]] + ":" + +originColumns[1]
+ .values[indexes[1]];
+ }
+ else {
+ var indexes = picker.getIndexes();
+ var values = indexes.map(function (value, index) { return originColumns[index].values[value]; });
+ var year = getTrueValue(values[0]);
+ var month = getTrueValue(values[1]);
+ var maxDate = getMonthEndDay(year, month);
+ var date = getTrueValue(values[2]);
+ if (data.type === 'year-month') {
+ date = 1;
+ }
+ date = date > maxDate ? maxDate : date;
+ var hour = 0;
+ var minute = 0;
+ if (data.type === 'datetime') {
+ hour = getTrueValue(values[3]);
+ minute = getTrueValue(values[4]);
+ }
+ value = new Date(year, month - 1, date, hour, minute);
+ }
+ value = this.correctValue(value);
+ this.updateColumnValue(value).then(function () {
+ _this.$emit('input', value);
+ _this.$emit('change', picker);
+ });
+ },
+ updateColumnValue: function (value) {
+ var _this = this;
+ var values = [];
+ var type = this.data.type;
+ var formatter = this.data.formatter || defaultFormatter;
+ var picker = this.getPicker();
+ if (type === 'time') {
+ var pair = value.split(':');
+ values = [formatter('hour', pair[0]), formatter('minute', pair[1])];
+ }
+ else {
+ var date = new Date(value);
+ values = [
+ formatter('year', "" + date.getFullYear()),
+ formatter('month', padZero(date.getMonth() + 1)),
+ ];
+ if (type === 'date') {
+ values.push(formatter('day', padZero(date.getDate())));
+ }
+ if (type === 'datetime') {
+ values.push(formatter('day', padZero(date.getDate())), formatter('hour', padZero(date.getHours())), formatter('minute', padZero(date.getMinutes())));
+ }
+ }
+ return this.set({ innerValue: value })
+ .then(function () { return _this.updateColumns(); })
+ .then(function () { return picker.setValues(values); });
+ },
},
- onCancel: function () {
- this.$emit('cancel');
- },
- onConfirm: function () {
- this.$emit('confirm', this.data.innerValue);
- },
- onChange: function () {
- var _this = this;
- var data = this.data;
- var value;
- var picker = this.getPicker();
- var originColumns = this.getOriginColumns();
- if (data.type === 'time') {
- var indexes = picker.getIndexes();
- value =
- +originColumns[0].values[indexes[0]] +
- ':' +
- +originColumns[1].values[indexes[1]];
- } else {
- var indexes = picker.getIndexes();
- var values = indexes.map(function (value, index) {
- return originColumns[index].values[value];
- });
- var year = getTrueValue(values[0]);
- var month = getTrueValue(values[1]);
- var maxDate = getMonthEndDay(year, month);
- var date = getTrueValue(values[2]);
- if (data.type === 'year-month') {
- date = 1;
- }
- date = date > maxDate ? maxDate : date;
- var hour = 0;
- var minute = 0;
- if (data.type === 'datetime') {
- hour = getTrueValue(values[3]);
- minute = getTrueValue(values[4]);
- }
- value = new Date(year, month - 1, date, hour, minute);
- }
- value = this.correctValue(value);
- this.updateColumnValue(value).then(function () {
- _this.$emit('input', value);
- _this.$emit('change', picker);
- });
- },
- updateColumnValue: function (value) {
- var _this = this;
- var values = [];
- var type = this.data.type;
- var formatter = this.data.formatter || defaultFormatter;
- var picker = this.getPicker();
- if (type === 'time') {
- var pair = value.split(':');
- values = [formatter('hour', pair[0]), formatter('minute', pair[1])];
- } else {
- var date = new Date(value);
- values = [
- formatter('year', '' + date.getFullYear()),
- formatter('month', padZero(date.getMonth() + 1)),
- ];
- if (type === 'date') {
- values.push(formatter('day', padZero(date.getDate())));
- }
- if (type === 'datetime') {
- values.push(
- formatter('day', padZero(date.getDate())),
- formatter('hour', padZero(date.getHours())),
- formatter('minute', padZero(date.getMinutes()))
- );
- }
- }
- return this.set({ innerValue: value })
- .then(function () {
- return _this.updateColumns();
- })
- .then(function () {
- return picker.setValues(values);
+ created: function () {
+ var _this = this;
+ var innerValue = this.correctValue(this.data.value);
+ this.updateColumnValue(innerValue).then(function () {
+ _this.$emit('input', innerValue);
});
},
- },
- created: function () {
- var _this = this;
- var innerValue = this.correctValue(this.data.value);
- this.updateColumnValue(innerValue).then(function () {
- _this.$emit('input', innerValue);
- });
- },
});
diff --git a/lib/dialog/dialog.js b/lib/dialog/dialog.js
index d90d8ea4..0cba6ab4 100644
--- a/lib/dialog/dialog.js
+++ b/lib/dialog/dialog.js
@@ -1,104 +1,90 @@
-'use strict';
-var __assign =
- (this && this.__assign) ||
- function () {
- __assign =
- Object.assign ||
- function (t) {
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s)
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
+ 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 });
+};
+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: '',
+ 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 pages = getCurrentPages();
+ return pages[pages.length - 1];
}
var Dialog = function (options) {
- options = __assign(__assign({}, currentOptions), options);
- return new Promise(function (resolve, reject) {
- var context = options.context || getContext();
- var dialog = context.selectComponent(options.selector);
- delete options.context;
- delete options.selector;
- if (dialog) {
- dialog.setData(
- __assign(
- {
- callback: function (action, instance) {
- action === 'confirm' ? resolve(instance) : reject(instance);
- },
- },
- options
- )
- );
- wx.nextTick(function () {
- dialog.setData({ show: true });
- });
- queue.push(dialog);
- } else {
- console.warn(
- '未找到 van-dialog 节点,请确认 selector 及 context 是否正确'
- );
- }
- });
-};
-Dialog.alert = function (options) {
- return Dialog(options);
+ options = __assign(__assign({}, currentOptions), options);
+ return new Promise(function (resolve, reject) {
+ var context = options.context || getContext();
+ var dialog = context.selectComponent(options.selector);
+ delete options.context;
+ delete options.selector;
+ if (dialog) {
+ dialog.setData(__assign({ callback: function (action, instance) {
+ action === 'confirm' ? resolve(instance) : reject(instance);
+ } }, options));
+ wx.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));
+ return Dialog(__assign({ showCancelButton: true }, options));
};
Dialog.close = function () {
- queue.forEach(function (dialog) {
- dialog.close();
- });
- queue = [];
+ queue.forEach(function (dialog) {
+ dialog.close();
+ });
+ queue = [];
};
Dialog.stopLoading = function () {
- queue.forEach(function (dialog) {
- dialog.stopLoading();
- });
+ queue.forEach(function (dialog) {
+ dialog.stopLoading();
+ });
};
Dialog.currentOptions = currentOptions;
Dialog.defaultOptions = defaultOptions;
Dialog.setDefaultOptions = function (options) {
- currentOptions = __assign(__assign({}, currentOptions), options);
- Dialog.currentOptions = currentOptions;
+ currentOptions = __assign(__assign({}, currentOptions), options);
+ Dialog.currentOptions = currentOptions;
};
Dialog.resetDefaultOptions = function () {
- currentOptions = __assign({}, defaultOptions);
- Dialog.currentOptions = currentOptions;
+ currentOptions = __assign({}, defaultOptions);
+ Dialog.currentOptions = currentOptions;
};
Dialog.resetDefaultOptions();
exports.default = Dialog;
diff --git a/lib/dialog/index.js b/lib/dialog/index.js
index 135ce71f..c066fc11 100644
--- a/lib/dialog/index.js
+++ b/lib/dialog/index.js
@@ -1,126 +1,127 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var button_1 = require('../mixins/button');
-var color_1 = require('../common/color');
-var utils_1 = require('../common/utils');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var button_1 = require("../mixins/button");
+var color_1 = require("../common/color");
+var utils_1 = require("../common/utils");
component_1.VantComponent({
- mixins: [button_1.button],
- props: {
- show: {
- type: Boolean,
- observer: function (show) {
- !show && this.stopLoading();
- },
- },
- title: String,
- message: String,
- theme: {
- type: String,
- value: 'default',
- },
- useSlot: Boolean,
- className: String,
- customStyle: String,
- asyncClose: Boolean,
- messageAlign: String,
- beforeClose: null,
- overlayStyle: String,
- useTitleSlot: Boolean,
- showCancelButton: Boolean,
- closeOnClickOverlay: Boolean,
- confirmButtonOpenType: String,
- width: null,
- zIndex: {
- type: Number,
- value: 2000,
- },
- confirmButtonText: {
- type: String,
- value: '确认',
- },
- cancelButtonText: {
- type: String,
- value: '取消',
- },
- confirmButtonColor: {
- type: String,
- value: color_1.RED,
- },
- cancelButtonColor: {
- type: String,
- value: color_1.GRAY,
- },
- showConfirmButton: {
- type: Boolean,
- value: true,
- },
- overlay: {
- type: Boolean,
- value: true,
- },
- transition: {
- type: String,
- value: 'scale',
- },
- },
- data: {
- loading: {
- confirm: false,
- cancel: false,
- },
- callback: function () {},
- },
- methods: {
- onConfirm: function () {
- this.handleAction('confirm');
- },
- onCancel: function () {
- this.handleAction('cancel');
- },
- onClickOverlay: function () {
- this.close('overlay');
- },
- close: function (action) {
- var _this = this;
- this.setData({ show: false });
- wx.nextTick(function () {
- _this.$emit('close', action);
- var callback = _this.data.callback;
- if (callback) {
- callback(action, _this);
- }
- });
- },
- stopLoading: function () {
- this.setData({
- loading: {
- confirm: false,
- cancel: false,
+ mixins: [button_1.button],
+ props: {
+ show: {
+ type: Boolean,
+ observer: function (show) {
+ !show && this.stopLoading();
+ },
+ },
+ title: String,
+ message: String,
+ theme: {
+ type: String,
+ value: 'default',
+ },
+ useSlot: Boolean,
+ className: String,
+ customStyle: String,
+ asyncClose: Boolean,
+ messageAlign: String,
+ beforeClose: null,
+ overlayStyle: String,
+ useTitleSlot: Boolean,
+ showCancelButton: Boolean,
+ closeOnClickOverlay: Boolean,
+ confirmButtonOpenType: String,
+ width: null,
+ zIndex: {
+ type: Number,
+ value: 2000,
+ },
+ confirmButtonText: {
+ type: String,
+ value: '确认',
+ },
+ cancelButtonText: {
+ type: String,
+ value: '取消',
+ },
+ confirmButtonColor: {
+ type: String,
+ value: color_1.RED,
+ },
+ cancelButtonColor: {
+ type: String,
+ value: color_1.GRAY,
+ },
+ showConfirmButton: {
+ type: Boolean,
+ value: true,
+ },
+ overlay: {
+ type: Boolean,
+ value: true,
+ },
+ transition: {
+ type: String,
+ value: 'scale',
},
- });
},
- handleAction: function (action) {
- var _a;
- var _this = this;
- this.$emit(action, { dialog: this });
- var _b = this.data,
- asyncClose = _b.asyncClose,
- beforeClose = _b.beforeClose;
- if (!asyncClose && !beforeClose) {
- this.close(action);
- return;
- }
- this.setData(((_a = {}), (_a['loading.' + action] = true), _a));
- if (beforeClose) {
- utils_1.toPromise(beforeClose(action)).then(function (value) {
- if (value) {
- _this.close(action);
- } else {
- _this.stopLoading();
- }
- });
- }
+ data: {
+ loading: {
+ confirm: false,
+ cancel: false,
+ },
+ callback: (function () { }),
+ },
+ methods: {
+ onConfirm: function () {
+ this.handleAction('confirm');
+ },
+ onCancel: function () {
+ this.handleAction('cancel');
+ },
+ onClickOverlay: function () {
+ this.close('overlay');
+ },
+ close: function (action) {
+ var _this = this;
+ this.setData({ show: false });
+ wx.nextTick(function () {
+ _this.$emit('close', action);
+ var callback = _this.data.callback;
+ if (callback) {
+ callback(action, _this);
+ }
+ });
+ },
+ stopLoading: function () {
+ this.setData({
+ loading: {
+ confirm: false,
+ cancel: false,
+ },
+ });
+ },
+ handleAction: function (action) {
+ var _a;
+ var _this = this;
+ this.$emit(action, { dialog: this });
+ var _b = this.data, asyncClose = _b.asyncClose, beforeClose = _b.beforeClose;
+ if (!asyncClose && !beforeClose) {
+ this.close(action);
+ return;
+ }
+ this.setData((_a = {},
+ _a["loading." + action] = true,
+ _a));
+ if (beforeClose) {
+ utils_1.toPromise(beforeClose(action)).then(function (value) {
+ if (value) {
+ _this.close(action);
+ }
+ else {
+ _this.stopLoading();
+ }
+ });
+ }
+ },
},
- },
});
diff --git a/lib/divider/index.js b/lib/divider/index.js
index b643841f..4523fef1 100644
--- a/lib/divider/index.js
+++ b/lib/divider/index.js
@@ -1,14 +1,14 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
component_1.VantComponent({
- props: {
- dashed: Boolean,
- hairline: Boolean,
- contentPosition: String,
- fontSize: String,
- borderColor: String,
- textColor: String,
- customStyle: String,
- },
+ props: {
+ dashed: Boolean,
+ hairline: Boolean,
+ contentPosition: String,
+ fontSize: String,
+ borderColor: String,
+ textColor: String,
+ customStyle: String,
+ },
});
diff --git a/lib/dropdown-item/index.js b/lib/dropdown-item/index.js
index aac47c99..8a81b6aa 100644
--- a/lib/dropdown-item/index.js
+++ b/lib/dropdown-item/index.js
@@ -1,117 +1,107 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var relation_1 = require('../common/relation');
-var component_1 = require('../common/component');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var relation_1 = require("../common/relation");
+var component_1 = require("../common/component");
component_1.VantComponent({
- field: true,
- relation: relation_1.useParent('dropdown-menu', function () {
- this.updateDataFromParent();
- }),
- props: {
- value: {
- type: null,
- observer: 'rerender',
+ field: true,
+ relation: relation_1.useParent('dropdown-menu', function () {
+ this.updateDataFromParent();
+ }),
+ props: {
+ value: {
+ type: null,
+ observer: 'rerender',
+ },
+ title: {
+ type: String,
+ observer: 'rerender',
+ },
+ disabled: Boolean,
+ titleClass: {
+ type: String,
+ observer: 'rerender',
+ },
+ options: {
+ type: Array,
+ value: [],
+ observer: 'rerender',
+ },
+ popupStyle: String,
},
- title: {
- type: String,
- observer: 'rerender',
+ data: {
+ transition: true,
+ showPopup: false,
+ showWrapper: false,
+ displayTitle: '',
},
- disabled: Boolean,
- titleClass: {
- type: String,
- observer: 'rerender',
- },
- options: {
- type: Array,
- value: [],
- observer: 'rerender',
- },
- popupStyle: String,
- },
- data: {
- transition: true,
- showPopup: false,
- showWrapper: false,
- displayTitle: '',
- },
- methods: {
- rerender: function () {
- var _this = this;
- wx.nextTick(function () {
- var _a;
- (_a = _this.parent) === null || _a === void 0
- ? void 0
- : _a.updateItemListData();
- });
- },
- updateDataFromParent: function () {
- if (this.parent) {
- var _a = this.parent.data,
- overlay = _a.overlay,
- duration = _a.duration,
- activeColor = _a.activeColor,
- closeOnClickOverlay = _a.closeOnClickOverlay,
- direction = _a.direction;
- this.setData({
- overlay: overlay,
- duration: duration,
- activeColor: activeColor,
- closeOnClickOverlay: closeOnClickOverlay,
- direction: direction,
- });
- }
- },
- 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) {
- var option = event.currentTarget.dataset.option;
- var value = option.value;
- var shouldEmitChange = this.data.value !== value;
- this.setData({ showPopup: false, value: value });
- this.$emit('close');
- this.rerender();
- if (shouldEmitChange) {
- this.$emit('change', value);
- }
- },
- toggle: function (show, options) {
- var _this = this;
- var _a;
- if (options === void 0) {
- options = {};
- }
- var showPopup = this.data.showPopup;
- if (typeof show !== 'boolean') {
- show = !showPopup;
- }
- if (show === showPopup) {
- return;
- }
- this.setData({
- transition: !options.immediate,
- showPopup: show,
- });
- if (show) {
- (_a = this.parent) === null || _a === void 0
- ? void 0
- : _a.getChildWrapperStyle().then(function (wrapperStyle) {
- _this.setData({ wrapperStyle: wrapperStyle, showWrapper: true });
- _this.rerender();
+ methods: {
+ rerender: function () {
+ var _this = this;
+ wx.nextTick(function () {
+ var _a;
+ (_a = _this.parent) === null || _a === void 0 ? void 0 : _a.updateItemListData();
});
- } else {
- this.rerender();
- }
+ },
+ updateDataFromParent: function () {
+ if (this.parent) {
+ var _a = this.parent.data, overlay = _a.overlay, duration = _a.duration, activeColor = _a.activeColor, closeOnClickOverlay = _a.closeOnClickOverlay, direction = _a.direction;
+ this.setData({
+ overlay: overlay,
+ duration: duration,
+ activeColor: activeColor,
+ closeOnClickOverlay: closeOnClickOverlay,
+ direction: direction,
+ });
+ }
+ },
+ 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) {
+ var option = event.currentTarget.dataset.option;
+ var value = option.value;
+ var shouldEmitChange = this.data.value !== value;
+ this.setData({ showPopup: false, value: value });
+ this.$emit('close');
+ this.rerender();
+ if (shouldEmitChange) {
+ this.$emit('change', value);
+ }
+ },
+ toggle: function (show, options) {
+ var _this = this;
+ var _a;
+ if (options === void 0) { options = {}; }
+ var showPopup = this.data.showPopup;
+ if (typeof show !== 'boolean') {
+ show = !showPopup;
+ }
+ if (show === showPopup) {
+ return;
+ }
+ this.setData({
+ transition: !options.immediate,
+ showPopup: show,
+ });
+ if (show) {
+ (_a = this.parent) === null || _a === void 0 ? void 0 : _a.getChildWrapperStyle().then(function (wrapperStyle) {
+ _this.setData({ wrapperStyle: wrapperStyle, showWrapper: true });
+ _this.rerender();
+ });
+ }
+ else {
+ this.rerender();
+ }
+ },
},
- },
});
diff --git a/lib/dropdown-item/shared.js b/lib/dropdown-item/shared.js
index db8b17d5..c8ad2e54 100644
--- a/lib/dropdown-item/shared.js
+++ b/lib/dropdown-item/shared.js
@@ -1,2 +1,2 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
diff --git a/lib/dropdown-menu/index.js b/lib/dropdown-menu/index.js
index 9c27c647..af6f8c06 100644
--- a/lib/dropdown-menu/index.js
+++ b/lib/dropdown-menu/index.js
@@ -1,126 +1,117 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var relation_1 = require('../common/relation');
-var utils_1 = require('../common/utils');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+var utils_1 = require("../common/utils");
var ARRAY = [];
component_1.VantComponent({
- field: true,
- relation: relation_1.useChildren('dropdown-item', function () {
- this.updateItemListData();
- }),
- props: {
- activeColor: {
- type: String,
- observer: 'updateChildrenData',
+ field: true,
+ relation: relation_1.useChildren('dropdown-item', function () {
+ this.updateItemListData();
+ }),
+ props: {
+ activeColor: {
+ type: String,
+ observer: 'updateChildrenData',
+ },
+ overlay: {
+ type: Boolean,
+ value: true,
+ observer: 'updateChildrenData',
+ },
+ zIndex: {
+ type: Number,
+ value: 10,
+ },
+ duration: {
+ type: Number,
+ value: 200,
+ observer: 'updateChildrenData',
+ },
+ direction: {
+ type: String,
+ value: 'down',
+ observer: 'updateChildrenData',
+ },
+ closeOnClickOverlay: {
+ type: Boolean,
+ value: true,
+ observer: 'updateChildrenData',
+ },
+ closeOnClickOutside: {
+ type: Boolean,
+ value: true,
+ },
},
- overlay: {
- type: Boolean,
- value: true,
- observer: 'updateChildrenData',
+ data: {
+ itemListData: [],
},
- zIndex: {
- type: Number,
- value: 10,
+ beforeCreate: function () {
+ var windowHeight = utils_1.getSystemInfoSync().windowHeight;
+ this.windowHeight = windowHeight;
+ ARRAY.push(this);
},
- duration: {
- type: Number,
- value: 200,
- observer: 'updateChildrenData',
+ destroyed: function () {
+ var _this = this;
+ ARRAY = ARRAY.filter(function (item) { return item !== _this; });
},
- direction: {
- type: String,
- value: 'down',
- observer: 'updateChildrenData',
+ methods: {
+ updateItemListData: function () {
+ this.setData({
+ itemListData: this.children.map(function (child) { return child.data; }),
+ });
+ },
+ updateChildrenData: function () {
+ this.children.forEach(function (child) {
+ child.updateDataFromParent();
+ });
+ },
+ toggleItem: function (active) {
+ this.children.forEach(function (item, index) {
+ var showPopup = item.data.showPopup;
+ if (index === active) {
+ item.toggle();
+ }
+ else if (showPopup) {
+ item.toggle(false, { immediate: true });
+ }
+ });
+ },
+ close: function () {
+ this.children.forEach(function (child) {
+ child.toggle(false, { immediate: true });
+ });
+ },
+ getChildWrapperStyle: function () {
+ var _this = this;
+ var _a = this.data, zIndex = _a.zIndex, direction = _a.direction;
+ return utils_1.getRect(this, '.van-dropdown-menu').then(function (rect) {
+ var _a = rect.top, top = _a === void 0 ? 0 : _a, _b = rect.bottom, bottom = _b === void 0 ? 0 : _b;
+ var offset = direction === 'down' ? bottom : _this.windowHeight - top;
+ var wrapperStyle = "z-index: " + zIndex + ";";
+ if (direction === 'down') {
+ wrapperStyle += "top: " + utils_1.addUnit(offset) + ";";
+ }
+ else {
+ wrapperStyle += "bottom: " + utils_1.addUnit(offset) + ";";
+ }
+ return wrapperStyle;
+ });
+ },
+ onTitleTap: function (event) {
+ var _this = this;
+ var index = event.currentTarget.dataset.index;
+ var child = this.children[index];
+ if (!child.data.disabled) {
+ ARRAY.forEach(function (menuItem) {
+ if (menuItem &&
+ menuItem.data.closeOnClickOutside &&
+ menuItem !== _this) {
+ menuItem.close();
+ }
+ });
+ this.toggleItem(index);
+ }
+ },
},
- closeOnClickOverlay: {
- type: Boolean,
- value: true,
- observer: 'updateChildrenData',
- },
- closeOnClickOutside: {
- type: Boolean,
- value: true,
- },
- },
- data: {
- itemListData: [],
- },
- beforeCreate: function () {
- var windowHeight = utils_1.getSystemInfoSync().windowHeight;
- this.windowHeight = windowHeight;
- ARRAY.push(this);
- },
- destroyed: function () {
- var _this = this;
- ARRAY = ARRAY.filter(function (item) {
- return item !== _this;
- });
- },
- methods: {
- updateItemListData: function () {
- this.setData({
- itemListData: this.children.map(function (child) {
- return child.data;
- }),
- });
- },
- updateChildrenData: function () {
- this.children.forEach(function (child) {
- child.updateDataFromParent();
- });
- },
- toggleItem: function (active) {
- this.children.forEach(function (item, index) {
- var showPopup = item.data.showPopup;
- if (index === active) {
- item.toggle();
- } else if (showPopup) {
- item.toggle(false, { immediate: true });
- }
- });
- },
- close: function () {
- this.children.forEach(function (child) {
- child.toggle(false, { immediate: true });
- });
- },
- getChildWrapperStyle: function () {
- var _this = this;
- var _a = this.data,
- zIndex = _a.zIndex,
- direction = _a.direction;
- return utils_1.getRect(this, '.van-dropdown-menu').then(function (rect) {
- var _a = rect.top,
- top = _a === void 0 ? 0 : _a,
- _b = rect.bottom,
- bottom = _b === void 0 ? 0 : _b;
- var offset = direction === 'down' ? bottom : _this.windowHeight - top;
- var wrapperStyle = 'z-index: ' + zIndex + ';';
- if (direction === 'down') {
- wrapperStyle += 'top: ' + utils_1.addUnit(offset) + ';';
- } else {
- wrapperStyle += 'bottom: ' + utils_1.addUnit(offset) + ';';
- }
- return wrapperStyle;
- });
- },
- onTitleTap: function (event) {
- var _this = this;
- var index = event.currentTarget.dataset.index;
- var child = this.children[index];
- if (!child.data.disabled) {
- ARRAY.forEach(function (menuItem) {
- if (
- menuItem &&
- menuItem.data.closeOnClickOutside &&
- menuItem !== _this
- ) {
- menuItem.close();
- }
- });
- this.toggleItem(index);
- }
- },
- },
});
diff --git a/lib/empty/index.js b/lib/empty/index.js
index d5b20259..1b380681 100644
--- a/lib/empty/index.js
+++ b/lib/empty/index.js
@@ -1,12 +1,12 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
component_1.VantComponent({
- props: {
- description: String,
- image: {
- type: String,
- value: 'default',
+ props: {
+ description: String,
+ image: {
+ type: String,
+ value: 'default',
+ },
},
- },
});
diff --git a/lib/field/index.js b/lib/field/index.js
index 680bfa7d..fa5e93d0 100644
--- a/lib/field/index.js
+++ b/lib/field/index.js
@@ -1,165 +1,122 @@
-'use strict';
-var __assign =
- (this && this.__assign) ||
- function () {
- __assign =
- Object.assign ||
- function (t) {
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s)
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
+ 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 utils_1 = require('../common/utils');
-var component_1 = require('../common/component');
-var props_1 = require('./props');
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var utils_1 = require("../common/utils");
+var component_1 = require("../common/component");
+var props_1 = require("./props");
component_1.VantComponent({
- field: true,
- classes: ['input-class', 'right-icon-class', 'label-class'],
- props: __assign(
- __assign(
- __assign(__assign({}, props_1.commonProps), props_1.inputProps),
- props_1.textareaProps
- ),
- {
- size: String,
- icon: String,
- label: String,
- error: Boolean,
- center: Boolean,
- isLink: Boolean,
- leftIcon: String,
- rightIcon: String,
- autosize: null,
- required: Boolean,
- iconClass: String,
- clickable: Boolean,
- inputAlign: String,
- customStyle: String,
- errorMessage: String,
- arrowDirection: String,
- showWordLimit: Boolean,
- errorMessageAlign: String,
- readonly: {
- type: Boolean,
- observer: 'setShowClear',
- },
- clearable: {
- type: Boolean,
- observer: 'setShowClear',
- },
- clearTrigger: {
- type: String,
- value: 'focus',
- },
- border: {
- type: Boolean,
- value: true,
- },
- titleWidth: {
- type: String,
- value: '6.2em',
- },
- clearIcon: {
- type: String,
- value: 'clear',
- },
- }
- ),
- data: {
- focused: false,
- innerValue: '',
- showClear: false,
- },
- created: function () {
- this.value = this.data.value;
- this.setData({ innerValue: this.value });
- },
- methods: {
- onInput: function (event) {
- var _a = (event.detail || {}).value,
- value = _a === void 0 ? '' : _a;
- this.value = value;
- this.setShowClear();
- this.emitChange();
+ field: true,
+ classes: ['input-class', 'right-icon-class', 'label-class'],
+ props: __assign(__assign(__assign(__assign({}, props_1.commonProps), props_1.inputProps), props_1.textareaProps), { size: String, icon: String, label: String, error: Boolean, center: Boolean, isLink: Boolean, leftIcon: String, rightIcon: String, autosize: null, required: Boolean, iconClass: String, clickable: Boolean, inputAlign: String, customStyle: String, errorMessage: String, arrowDirection: String, showWordLimit: Boolean, errorMessageAlign: String, readonly: {
+ type: Boolean,
+ observer: 'setShowClear',
+ }, clearable: {
+ type: Boolean,
+ observer: 'setShowClear',
+ }, clearTrigger: {
+ type: String,
+ value: 'focus',
+ }, border: {
+ type: Boolean,
+ value: true,
+ }, titleWidth: {
+ type: String,
+ value: '6.2em',
+ }, clearIcon: {
+ type: String,
+ value: 'clear',
+ } }),
+ data: {
+ focused: false,
+ innerValue: '',
+ showClear: false,
},
- onFocus: function (event) {
- this.focused = true;
- this.setShowClear();
- this.$emit('focus', event.detail);
+ created: function () {
+ this.value = this.data.value;
+ this.setData({ innerValue: this.value });
},
- onBlur: function (event) {
- this.focused = false;
- this.setShowClear();
- this.$emit('blur', event.detail);
+ methods: {
+ onInput: function (event) {
+ var _a = (event.detail || {}).value, value = _a === void 0 ? '' : _a;
+ this.value = value;
+ this.setShowClear();
+ this.emitChange();
+ },
+ onFocus: function (event) {
+ this.focused = true;
+ this.setShowClear();
+ this.$emit('focus', event.detail);
+ },
+ onBlur: function (event) {
+ this.focused = false;
+ this.setShowClear();
+ this.$emit('blur', event.detail);
+ },
+ onClickIcon: function () {
+ this.$emit('click-icon');
+ },
+ onClickInput: function (event) {
+ this.$emit('click-input', event.detail);
+ },
+ onClear: function () {
+ var _this = this;
+ this.setData({ innerValue: '' });
+ this.value = '';
+ this.setShowClear();
+ utils_1.nextTick(function () {
+ _this.emitChange();
+ _this.$emit('clear', '');
+ });
+ },
+ onConfirm: function (event) {
+ var _a = (event.detail || {}).value, value = _a === void 0 ? '' : _a;
+ this.value = value;
+ this.setShowClear();
+ this.$emit('confirm', value);
+ },
+ setValue: function (value) {
+ this.value = value;
+ this.setShowClear();
+ if (value === '') {
+ this.setData({ innerValue: '' });
+ }
+ this.emitChange();
+ },
+ onLineChange: function (event) {
+ this.$emit('linechange', event.detail);
+ },
+ onKeyboardHeightChange: function (event) {
+ this.$emit('keyboardheightchange', event.detail);
+ },
+ emitChange: function () {
+ var _this = this;
+ this.setData({ value: this.value });
+ utils_1.nextTick(function () {
+ _this.$emit('input', _this.value);
+ _this.$emit('change', _this.value);
+ });
+ },
+ setShowClear: function () {
+ var _a = this.data, clearable = _a.clearable, readonly = _a.readonly, clearTrigger = _a.clearTrigger;
+ var _b = this, focused = _b.focused, value = _b.value;
+ var showClear = false;
+ if (clearable && !readonly) {
+ var hasValue = !!value;
+ var trigger = clearTrigger === 'always' || (clearTrigger === 'focus' && focused);
+ showClear = hasValue && trigger;
+ }
+ this.setData({ showClear: showClear });
+ },
+ noop: function () { },
},
- onClickIcon: function () {
- this.$emit('click-icon');
- },
- onClickInput: function (event) {
- this.$emit('click-input', event.detail);
- },
- onClear: function () {
- var _this = this;
- this.setData({ innerValue: '' });
- this.value = '';
- this.setShowClear();
- utils_1.nextTick(function () {
- _this.emitChange();
- _this.$emit('clear', '');
- });
- },
- onConfirm: function (event) {
- var _a = (event.detail || {}).value,
- value = _a === void 0 ? '' : _a;
- this.value = value;
- this.setShowClear();
- this.$emit('confirm', value);
- },
- setValue: function (value) {
- this.value = value;
- this.setShowClear();
- if (value === '') {
- this.setData({ innerValue: '' });
- }
- this.emitChange();
- },
- onLineChange: function (event) {
- this.$emit('linechange', event.detail);
- },
- onKeyboardHeightChange: function (event) {
- this.$emit('keyboardheightchange', event.detail);
- },
- emitChange: function () {
- var _this = this;
- this.setData({ value: this.value });
- utils_1.nextTick(function () {
- _this.$emit('input', _this.value);
- _this.$emit('change', _this.value);
- });
- },
- setShowClear: function () {
- var _a = this.data,
- clearable = _a.clearable,
- readonly = _a.readonly,
- clearTrigger = _a.clearTrigger;
- var _b = this,
- focused = _b.focused,
- value = _b.value;
- var showClear = false;
- if (clearable && !readonly) {
- var hasValue = !!value;
- var trigger =
- clearTrigger === 'always' || (clearTrigger === 'focus' && focused);
- showClear = hasValue && trigger;
- }
- this.setData({ showClear: showClear });
- },
- noop: function () {},
- },
});
diff --git a/lib/field/props.js b/lib/field/props.js
index 6ce703be..bf01165a 100644
--- a/lib/field/props.js
+++ b/lib/field/props.js
@@ -1,66 +1,66 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
+"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;
- }
+ 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,
+ 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,
+ type: {
+ type: String,
+ value: 'text',
+ },
+ password: Boolean,
+ confirmType: String,
+ confirmHold: Boolean,
};
exports.textareaProps = {
- autoHeight: Boolean,
- fixed: Boolean,
- showConfirmBar: {
- type: Boolean,
- value: true,
- },
- disableDefaultPadding: {
- type: Boolean,
- value: true,
- },
+ autoHeight: Boolean,
+ fixed: Boolean,
+ showConfirmBar: {
+ type: Boolean,
+ value: true,
+ },
+ disableDefaultPadding: {
+ type: Boolean,
+ value: true,
+ },
};
diff --git a/lib/goods-action-button/index.js b/lib/goods-action-button/index.js
index 465a79f9..df55d640 100644
--- a/lib/goods-action-button/index.js
+++ b/lib/goods-action-button/index.js
@@ -1,39 +1,38 @@
-'use strict';
-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');
+"use strict";
+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");
component_1.VantComponent({
- mixins: [link_1.link, button_1.button],
- relation: relation_1.useParent('goods-action'),
- props: {
- text: String,
- color: String,
- loading: Boolean,
- disabled: Boolean,
- plain: Boolean,
- type: {
- type: String,
- value: 'danger',
+ mixins: [link_1.link, button_1.button],
+ relation: relation_1.useParent('goods-action'),
+ props: {
+ text: String,
+ color: String,
+ loading: Boolean,
+ disabled: Boolean,
+ plain: Boolean,
+ type: {
+ type: String,
+ value: 'danger',
+ },
},
- },
- methods: {
- onClick: function (event) {
- this.$emit('click', event.detail);
- this.jumpLink();
+ methods: {
+ onClick: function (event) {
+ this.$emit('click', event.detail);
+ this.jumpLink();
+ },
+ updateStyle: function () {
+ if (this.parent == null) {
+ return;
+ }
+ var index = this.index;
+ var _a = this.parent.children, children = _a === void 0 ? [] : _a;
+ this.setData({
+ isFirst: index === 0,
+ isLast: index === children.length - 1,
+ });
+ },
},
- updateStyle: function () {
- if (this.parent == null) {
- return;
- }
- var index = this.index;
- var _a = this.parent.children,
- children = _a === void 0 ? [] : _a;
- this.setData({
- isFirst: index === 0,
- isLast: index === children.length - 1,
- });
- },
- },
});
diff --git a/lib/goods-action-icon/index.js b/lib/goods-action-icon/index.js
index 252ccbe6..71db344e 100644
--- a/lib/goods-action-icon/index.js
+++ b/lib/goods-action-icon/index.js
@@ -1,23 +1,23 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var button_1 = require('../mixins/button');
-var link_1 = require('../mixins/link');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var button_1 = require("../mixins/button");
+var link_1 = require("../mixins/link");
component_1.VantComponent({
- classes: ['icon-class', 'text-class'],
- mixins: [link_1.link, button_1.button],
- props: {
- text: String,
- dot: Boolean,
- info: String,
- icon: String,
- disabled: Boolean,
- loading: Boolean,
- },
- methods: {
- onClick: function (event) {
- this.$emit('click', event.detail);
- this.jumpLink();
+ classes: ['icon-class', 'text-class'],
+ mixins: [link_1.link, button_1.button],
+ props: {
+ text: String,
+ dot: Boolean,
+ info: String,
+ icon: String,
+ disabled: Boolean,
+ loading: Boolean,
+ },
+ methods: {
+ onClick: function (event) {
+ this.$emit('click', event.detail);
+ this.jumpLink();
+ },
},
- },
});
diff --git a/lib/goods-action/index.js b/lib/goods-action/index.js
index b58ba946..1684934b 100644
--- a/lib/goods-action/index.js
+++ b/lib/goods-action/index.js
@@ -1,17 +1,17 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var relation_1 = require('../common/relation');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
component_1.VantComponent({
- relation: relation_1.useChildren('goods-action-button', function () {
- this.children.forEach(function (item) {
- item.updateStyle();
- });
- }),
- props: {
- safeAreaInsetBottom: {
- type: Boolean,
- value: true,
+ relation: relation_1.useChildren('goods-action-button', function () {
+ this.children.forEach(function (item) {
+ item.updateStyle();
+ });
+ }),
+ props: {
+ safeAreaInsetBottom: {
+ type: Boolean,
+ value: true,
+ },
},
- },
});
diff --git a/lib/grid-item/index.js b/lib/grid-item/index.js
index bf7b27b6..0597f340 100644
--- a/lib/grid-item/index.js
+++ b/lib/grid-item/index.js
@@ -1,64 +1,54 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var relation_1 = require('../common/relation');
-var link_1 = require('../mixins/link');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+var link_1 = require("../mixins/link");
component_1.VantComponent({
- relation: relation_1.useParent('grid'),
- classes: ['content-class', 'icon-class', 'text-class'],
- mixins: [link_1.link],
- props: {
- icon: String,
- iconColor: String,
- iconPrefix: {
- type: String,
- value: 'van-icon',
+ relation: relation_1.useParent('grid'),
+ classes: ['content-class', 'icon-class', 'text-class'],
+ mixins: [link_1.link],
+ props: {
+ icon: String,
+ iconColor: String,
+ iconPrefix: {
+ type: String,
+ value: 'van-icon',
+ },
+ dot: Boolean,
+ info: null,
+ badge: null,
+ text: String,
+ useSlot: Boolean,
},
- dot: Boolean,
- info: null,
- badge: null,
- text: String,
- useSlot: Boolean,
- },
- data: {
- viewStyle: '',
- },
- mounted: function () {
- this.updateStyle();
- },
- methods: {
- updateStyle: function () {
- if (!this.parent) {
- return;
- }
- var _a = this.parent,
- data = _a.data,
- children = _a.children;
- var columnNum = data.columnNum,
- border = data.border,
- square = data.square,
- gutter = data.gutter,
- clickable = data.clickable,
- center = data.center,
- direction = data.direction,
- reverse = data.reverse,
- iconSize = data.iconSize;
- this.setData({
- center: center,
- border: border,
- square: square,
- gutter: gutter,
- clickable: clickable,
- direction: direction,
- reverse: reverse,
- iconSize: iconSize,
- index: children.indexOf(this),
- columnNum: columnNum,
- });
+ data: {
+ viewStyle: '',
},
- onClick: function () {
- this.$emit('click');
- this.jumpLink();
+ mounted: function () {
+ this.updateStyle();
+ },
+ methods: {
+ updateStyle: function () {
+ if (!this.parent) {
+ return;
+ }
+ var _a = this.parent, data = _a.data, children = _a.children;
+ var columnNum = data.columnNum, border = data.border, square = data.square, gutter = data.gutter, clickable = data.clickable, center = data.center, direction = data.direction, reverse = data.reverse, iconSize = data.iconSize;
+ this.setData({
+ center: center,
+ border: border,
+ square: square,
+ gutter: gutter,
+ clickable: clickable,
+ direction: direction,
+ reverse: reverse,
+ iconSize: iconSize,
+ index: children.indexOf(this),
+ columnNum: columnNum,
+ });
+ },
+ onClick: function () {
+ this.$emit('click');
+ this.jumpLink();
+ },
},
- },
});
diff --git a/lib/grid/index.js b/lib/grid/index.js
index 2de31e04..7ba86bba 100644
--- a/lib/grid/index.js
+++ b/lib/grid/index.js
@@ -1,57 +1,57 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var relation_1 = require('../common/relation');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
component_1.VantComponent({
- relation: relation_1.useChildren('grid-item'),
- props: {
- square: {
- type: Boolean,
- observer: 'updateChildren',
+ relation: relation_1.useChildren('grid-item'),
+ props: {
+ square: {
+ type: Boolean,
+ observer: 'updateChildren',
+ },
+ gutter: {
+ type: null,
+ value: 0,
+ observer: 'updateChildren',
+ },
+ clickable: {
+ type: Boolean,
+ observer: 'updateChildren',
+ },
+ columnNum: {
+ type: Number,
+ value: 4,
+ observer: 'updateChildren',
+ },
+ center: {
+ type: Boolean,
+ value: true,
+ observer: 'updateChildren',
+ },
+ border: {
+ type: Boolean,
+ value: true,
+ observer: 'updateChildren',
+ },
+ direction: {
+ type: String,
+ observer: 'updateChildren',
+ },
+ iconSize: {
+ type: String,
+ observer: 'updateChildren',
+ },
+ reverse: {
+ type: Boolean,
+ value: false,
+ observer: 'updateChildren',
+ },
},
- gutter: {
- type: null,
- value: 0,
- observer: 'updateChildren',
+ methods: {
+ updateChildren: function () {
+ this.children.forEach(function (child) {
+ child.updateStyle();
+ });
+ },
},
- clickable: {
- type: Boolean,
- observer: 'updateChildren',
- },
- columnNum: {
- type: Number,
- value: 4,
- observer: 'updateChildren',
- },
- center: {
- type: Boolean,
- value: true,
- observer: 'updateChildren',
- },
- border: {
- type: Boolean,
- value: true,
- observer: 'updateChildren',
- },
- direction: {
- type: String,
- observer: 'updateChildren',
- },
- iconSize: {
- type: String,
- observer: 'updateChildren',
- },
- reverse: {
- type: Boolean,
- value: false,
- observer: 'updateChildren',
- },
- },
- methods: {
- updateChildren: function () {
- this.children.forEach(function (child) {
- child.updateStyle();
- });
- },
- },
});
diff --git a/lib/icon/index.js b/lib/icon/index.js
index 28839c38..8c310e89 100644
--- a/lib/icon/index.js
+++ b/lib/icon/index.js
@@ -1,22 +1,22 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
component_1.VantComponent({
- props: {
- dot: Boolean,
- info: null,
- size: null,
- color: String,
- customStyle: String,
- classPrefix: {
- type: String,
- value: 'van-icon',
+ props: {
+ dot: Boolean,
+ info: null,
+ size: null,
+ color: String,
+ customStyle: String,
+ classPrefix: {
+ type: String,
+ value: 'van-icon',
+ },
+ name: String,
},
- name: String,
- },
- methods: {
- onClick: function () {
- this.$emit('click');
+ methods: {
+ onClick: function () {
+ this.$emit('click');
+ },
},
- },
});
diff --git a/lib/icon/index.wxss b/lib/icon/index.wxss
index b97b6e78..442556fc 100644
--- a/lib/icon/index.wxss
+++ b/lib/icon/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-icon{position:relative;font:normal normal normal 14px/1 vant-icon;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased}.van-icon,.van-icon:before{display:inline-block}.van-icon-exchange:before{content:"\e6af"}.van-icon-eye:before{content:"\e6b0"}.van-icon-enlarge:before{content:"\e6b1"}.van-icon-expand-o:before{content:"\e6b2"}.van-icon-eye-o:before{content:"\e6b3"}.van-icon-expand:before{content:"\e6b4"}.van-icon-filter-o:before{content:"\e6b5"}.van-icon-fire:before{content:"\e6b6"}.van-icon-fail:before{content:"\e6b7"}.van-icon-failure:before{content:"\e6b8"}.van-icon-fire-o:before{content:"\e6b9"}.van-icon-flag-o:before{content:"\e6ba"}.van-icon-font:before{content:"\e6bb"}.van-icon-font-o:before{content:"\e6bc"}.van-icon-gem-o:before{content:"\e6bd"}.van-icon-flower-o:before{content:"\e6be"}.van-icon-gem:before{content:"\e6bf"}.van-icon-gift-card:before{content:"\e6c0"}.van-icon-friends:before{content:"\e6c1"}.van-icon-friends-o:before{content:"\e6c2"}.van-icon-gold-coin:before{content:"\e6c3"}.van-icon-gold-coin-o:before{content:"\e6c4"}.van-icon-good-job-o:before{content:"\e6c5"}.van-icon-gift:before{content:"\e6c6"}.van-icon-gift-o:before{content:"\e6c7"}.van-icon-gift-card-o:before{content:"\e6c8"}.van-icon-good-job:before{content:"\e6c9"}.van-icon-home-o:before{content:"\e6ca"}.van-icon-goods-collect:before{content:"\e6cb"}.van-icon-graphic:before{content:"\e6cc"}.van-icon-goods-collect-o:before{content:"\e6cd"}.van-icon-hot-o:before{content:"\e6ce"}.van-icon-info:before{content:"\e6cf"}.van-icon-hotel-o:before{content:"\e6d0"}.van-icon-info-o:before{content:"\e6d1"}.van-icon-hot-sale-o:before{content:"\e6d2"}.van-icon-hot:before{content:"\e6d3"}.van-icon-like:before{content:"\e6d4"}.van-icon-idcard:before{content:"\e6d5"}.van-icon-invitation:before{content:"\e6d6"}.van-icon-like-o:before{content:"\e6d7"}.van-icon-hot-sale:before{content:"\e6d8"}.van-icon-location-o:before{content:"\e6d9"}.van-icon-location:before{content:"\e6da"}.van-icon-label:before{content:"\e6db"}.van-icon-lock:before{content:"\e6dc"}.van-icon-label-o:before{content:"\e6dd"}.van-icon-map-marked:before{content:"\e6de"}.van-icon-logistics:before{content:"\e6df"}.van-icon-manager:before{content:"\e6e0"}.van-icon-more:before{content:"\e6e1"}.van-icon-live:before{content:"\e6e2"}.van-icon-manager-o:before{content:"\e6e3"}.van-icon-medal:before{content:"\e6e4"}.van-icon-more-o:before{content:"\e6e5"}.van-icon-music-o:before{content:"\e6e6"}.van-icon-music:before{content:"\e6e7"}.van-icon-new-arrival-o:before{content:"\e6e8"}.van-icon-medal-o:before{content:"\e6e9"}.van-icon-new-o:before{content:"\e6ea"}.van-icon-free-postage:before{content:"\e6eb"}.van-icon-newspaper-o:before{content:"\e6ec"}.van-icon-new-arrival:before{content:"\e6ed"}.van-icon-minus:before{content:"\e6ee"}.van-icon-orders-o:before{content:"\e6ef"}.van-icon-new:before{content:"\e6f0"}.van-icon-paid:before{content:"\e6f1"}.van-icon-notes-o:before{content:"\e6f2"}.van-icon-other-pay:before{content:"\e6f3"}.van-icon-pause-circle:before{content:"\e6f4"}.van-icon-pause:before{content:"\e6f5"}.van-icon-pause-circle-o:before{content:"\e6f6"}.van-icon-peer-pay:before{content:"\e6f7"}.van-icon-pending-payment:before{content:"\e6f8"}.van-icon-passed:before{content:"\e6f9"}.van-icon-plus:before{content:"\e6fa"}.van-icon-phone-circle-o:before{content:"\e6fb"}.van-icon-phone-o:before{content:"\e6fc"}.van-icon-printer:before{content:"\e6fd"}.van-icon-photo-fail:before{content:"\e6fe"}.van-icon-phone:before{content:"\e6ff"}.van-icon-photo-o:before{content:"\e700"}.van-icon-play-circle:before{content:"\e701"}.van-icon-play:before{content:"\e702"}.van-icon-phone-circle:before{content:"\e703"}.van-icon-point-gift-o:before{content:"\e704"}.van-icon-point-gift:before{content:"\e705"}.van-icon-play-circle-o:before{content:"\e706"}.van-icon-shrink:before{content:"\e707"}.van-icon-photo:before{content:"\e708"}.van-icon-qr:before{content:"\e709"}.van-icon-qr-invalid:before{content:"\e70a"}.van-icon-question-o:before{content:"\e70b"}.van-icon-revoke:before{content:"\e70c"}.van-icon-replay:before{content:"\e70d"}.van-icon-service:before{content:"\e70e"}.van-icon-question:before{content:"\e70f"}.van-icon-search:before{content:"\e710"}.van-icon-refund-o:before{content:"\e711"}.van-icon-service-o:before{content:"\e712"}.van-icon-scan:before{content:"\e713"}.van-icon-share:before{content:"\e714"}.van-icon-send-gift-o:before{content:"\e715"}.van-icon-share-o:before{content:"\e716"}.van-icon-setting:before{content:"\e717"}.van-icon-points:before{content:"\e718"}.van-icon-photograph:before{content:"\e719"}.van-icon-shop:before{content:"\e71a"}.van-icon-shop-o:before{content:"\e71b"}.van-icon-shop-collect-o:before{content:"\e71c"}.van-icon-shop-collect:before{content:"\e71d"}.van-icon-smile:before{content:"\e71e"}.van-icon-shopping-cart-o:before{content:"\e71f"}.van-icon-sign:before{content:"\e720"}.van-icon-sort:before{content:"\e721"}.van-icon-star-o:before{content:"\e722"}.van-icon-smile-comment-o:before{content:"\e723"}.van-icon-stop:before{content:"\e724"}.van-icon-stop-circle-o:before{content:"\e725"}.van-icon-smile-o:before{content:"\e726"}.van-icon-star:before{content:"\e727"}.van-icon-success:before{content:"\e728"}.van-icon-stop-circle:before{content:"\e729"}.van-icon-records:before{content:"\e72a"}.van-icon-shopping-cart:before{content:"\e72b"}.van-icon-tosend:before{content:"\e72c"}.van-icon-todo-list:before{content:"\e72d"}.van-icon-thumb-circle-o:before{content:"\e72e"}.van-icon-thumb-circle:before{content:"\e72f"}.van-icon-umbrella-circle:before{content:"\e730"}.van-icon-underway:before{content:"\e731"}.van-icon-upgrade:before{content:"\e732"}.van-icon-todo-list-o:before{content:"\e733"}.van-icon-tv-o:before{content:"\e734"}.van-icon-underway-o:before{content:"\e735"}.van-icon-user-o:before{content:"\e736"}.van-icon-vip-card-o:before{content:"\e737"}.van-icon-vip-card:before{content:"\e738"}.van-icon-send-gift:before{content:"\e739"}.van-icon-wap-home:before{content:"\e73a"}.van-icon-wap-nav:before{content:"\e73b"}.van-icon-volume-o:before{content:"\e73c"}.van-icon-video:before{content:"\e73d"}.van-icon-wap-home-o:before{content:"\e73e"}.van-icon-volume:before{content:"\e73f"}.van-icon-warning:before{content:"\e740"}.van-icon-weapp-nav:before{content:"\e741"}.van-icon-wechat-pay:before{content:"\e742"}.van-icon-warning-o:before{content:"\e743"}.van-icon-wechat:before{content:"\e744"}.van-icon-setting-o:before{content:"\e745"}.van-icon-youzan-shield:before{content:"\e746"}.van-icon-warn-o:before{content:"\e747"}.van-icon-smile-comment:before{content:"\e748"}.van-icon-user-circle-o:before{content:"\e749"}.van-icon-video-o:before{content:"\e74a"}.van-icon-add-square:before{content:"\e65c"}.van-icon-add:before{content:"\e65d"}.van-icon-arrow-down:before{content:"\e65e"}.van-icon-arrow-up:before{content:"\e65f"}.van-icon-arrow:before{content:"\e660"}.van-icon-after-sale:before{content:"\e661"}.van-icon-add-o:before{content:"\e662"}.van-icon-alipay:before{content:"\e663"}.van-icon-ascending:before{content:"\e664"}.van-icon-apps-o:before{content:"\e665"}.van-icon-aim:before{content:"\e666"}.van-icon-award:before{content:"\e667"}.van-icon-arrow-left:before{content:"\e668"}.van-icon-award-o:before{content:"\e669"}.van-icon-audio:before{content:"\e66a"}.van-icon-bag-o:before{content:"\e66b"}.van-icon-balance-list:before{content:"\e66c"}.van-icon-back-top:before{content:"\e66d"}.van-icon-bag:before{content:"\e66e"}.van-icon-balance-pay:before{content:"\e66f"}.van-icon-balance-o:before{content:"\e670"}.van-icon-bar-chart-o:before{content:"\e671"}.van-icon-bars:before{content:"\e672"}.van-icon-balance-list-o:before{content:"\e673"}.van-icon-birthday-cake-o:before{content:"\e674"}.van-icon-bookmark:before{content:"\e675"}.van-icon-bill:before{content:"\e676"}.van-icon-bell:before{content:"\e677"}.van-icon-browsing-history-o:before{content:"\e678"}.van-icon-browsing-history:before{content:"\e679"}.van-icon-bookmark-o:before{content:"\e67a"}.van-icon-bulb-o:before{content:"\e67b"}.van-icon-bullhorn-o:before{content:"\e67c"}.van-icon-bill-o:before{content:"\e67d"}.van-icon-calendar-o:before{content:"\e67e"}.van-icon-brush-o:before{content:"\e67f"}.van-icon-card:before{content:"\e680"}.van-icon-cart-o:before{content:"\e681"}.van-icon-cart-circle:before{content:"\e682"}.van-icon-cart-circle-o:before{content:"\e683"}.van-icon-cart:before{content:"\e684"}.van-icon-cash-on-deliver:before{content:"\e685"}.van-icon-cash-back-record:before{content:"\e686"}.van-icon-cashier-o:before{content:"\e687"}.van-icon-chart-trending-o:before{content:"\e688"}.van-icon-certificate:before{content:"\e689"}.van-icon-chat:before{content:"\e68a"}.van-icon-clear:before{content:"\e68b"}.van-icon-chat-o:before{content:"\e68c"}.van-icon-checked:before{content:"\e68d"}.van-icon-clock:before{content:"\e68e"}.van-icon-clock-o:before{content:"\e68f"}.van-icon-close:before{content:"\e690"}.van-icon-closed-eye:before{content:"\e691"}.van-icon-circle:before{content:"\e692"}.van-icon-cluster-o:before{content:"\e693"}.van-icon-column:before{content:"\e694"}.van-icon-comment-circle-o:before{content:"\e695"}.van-icon-cluster:before{content:"\e696"}.van-icon-comment:before{content:"\e697"}.van-icon-comment-o:before{content:"\e698"}.van-icon-comment-circle:before{content:"\e699"}.van-icon-completed:before{content:"\e69a"}.van-icon-credit-pay:before{content:"\e69b"}.van-icon-coupon:before{content:"\e69c"}.van-icon-debit-pay:before{content:"\e69d"}.van-icon-coupon-o:before{content:"\e69e"}.van-icon-contact:before{content:"\e69f"}.van-icon-descending:before{content:"\e6a0"}.van-icon-desktop-o:before{content:"\e6a1"}.van-icon-diamond-o:before{content:"\e6a2"}.van-icon-description:before{content:"\e6a3"}.van-icon-delete:before{content:"\e6a4"}.van-icon-diamond:before{content:"\e6a5"}.van-icon-delete-o:before{content:"\e6a6"}.van-icon-cross:before{content:"\e6a7"}.van-icon-edit:before{content:"\e6a8"}.van-icon-ellipsis:before{content:"\e6a9"}.van-icon-down:before{content:"\e6aa"}.van-icon-discount:before{content:"\e6ab"}.van-icon-ecard-pay:before{content:"\e6ac"}.van-icon-envelop-o:before{content:"\e6ae"}.van-icon-shield-o:before{content:"\e74b"}@font-face{font-weight:400;font-style:normal;font-display:auto;font-family:vant-icon;src:url(//at.alicdn.com/t/font_2553510_3bs9b5licix.woff2?t=1626956973644) format("woff2"),url(//at.alicdn.com/t/font_2553510_3bs9b5licix.woff?t=1626956973644) format("woff"),url(//at.alicdn.com/t/font_2553510_3bs9b5licix.ttf?t=1626956973644) format("truetype")}:host{display:inline-flex;align-items:center;justify-content:center}.van-icon--image{width:1em;height:1em}.van-icon__image{width:100%;height:100%}.van-icon__info{z-index:1}
\ No newline at end of file
+@import '../common/index.wxss';.van-icon{position:relative;font:normal normal normal 14px/1 vant-icon;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased}.van-icon,.van-icon:before{display:inline-block}.van-icon-exchange:before{content:"\e6af"}.van-icon-eye:before{content:"\e6b0"}.van-icon-enlarge:before{content:"\e6b1"}.van-icon-expand-o:before{content:"\e6b2"}.van-icon-eye-o:before{content:"\e6b3"}.van-icon-expand:before{content:"\e6b4"}.van-icon-filter-o:before{content:"\e6b5"}.van-icon-fire:before{content:"\e6b6"}.van-icon-fail:before{content:"\e6b7"}.van-icon-failure:before{content:"\e6b8"}.van-icon-fire-o:before{content:"\e6b9"}.van-icon-flag-o:before{content:"\e6ba"}.van-icon-font:before{content:"\e6bb"}.van-icon-font-o:before{content:"\e6bc"}.van-icon-gem-o:before{content:"\e6bd"}.van-icon-flower-o:before{content:"\e6be"}.van-icon-gem:before{content:"\e6bf"}.van-icon-gift-card:before{content:"\e6c0"}.van-icon-friends:before{content:"\e6c1"}.van-icon-friends-o:before{content:"\e6c2"}.van-icon-gold-coin:before{content:"\e6c3"}.van-icon-gold-coin-o:before{content:"\e6c4"}.van-icon-good-job-o:before{content:"\e6c5"}.van-icon-gift:before{content:"\e6c6"}.van-icon-gift-o:before{content:"\e6c7"}.van-icon-gift-card-o:before{content:"\e6c8"}.van-icon-good-job:before{content:"\e6c9"}.van-icon-home-o:before{content:"\e6ca"}.van-icon-goods-collect:before{content:"\e6cb"}.van-icon-graphic:before{content:"\e6cc"}.van-icon-goods-collect-o:before{content:"\e6cd"}.van-icon-hot-o:before{content:"\e6ce"}.van-icon-info:before{content:"\e6cf"}.van-icon-hotel-o:before{content:"\e6d0"}.van-icon-info-o:before{content:"\e6d1"}.van-icon-hot-sale-o:before{content:"\e6d2"}.van-icon-hot:before{content:"\e6d3"}.van-icon-like:before{content:"\e6d4"}.van-icon-idcard:before{content:"\e6d5"}.van-icon-invitation:before{content:"\e6d6"}.van-icon-like-o:before{content:"\e6d7"}.van-icon-hot-sale:before{content:"\e6d8"}.van-icon-location-o:before{content:"\e6d9"}.van-icon-location:before{content:"\e6da"}.van-icon-label:before{content:"\e6db"}.van-icon-lock:before{content:"\e6dc"}.van-icon-label-o:before{content:"\e6dd"}.van-icon-map-marked:before{content:"\e6de"}.van-icon-logistics:before{content:"\e6df"}.van-icon-manager:before{content:"\e6e0"}.van-icon-more:before{content:"\e6e1"}.van-icon-live:before{content:"\e6e2"}.van-icon-manager-o:before{content:"\e6e3"}.van-icon-medal:before{content:"\e6e4"}.van-icon-more-o:before{content:"\e6e5"}.van-icon-music-o:before{content:"\e6e6"}.van-icon-music:before{content:"\e6e7"}.van-icon-new-arrival-o:before{content:"\e6e8"}.van-icon-medal-o:before{content:"\e6e9"}.van-icon-new-o:before{content:"\e6ea"}.van-icon-free-postage:before{content:"\e6eb"}.van-icon-newspaper-o:before{content:"\e6ec"}.van-icon-new-arrival:before{content:"\e6ed"}.van-icon-minus:before{content:"\e6ee"}.van-icon-orders-o:before{content:"\e6ef"}.van-icon-new:before{content:"\e6f0"}.van-icon-paid:before{content:"\e6f1"}.van-icon-notes-o:before{content:"\e6f2"}.van-icon-other-pay:before{content:"\e6f3"}.van-icon-pause-circle:before{content:"\e6f4"}.van-icon-pause:before{content:"\e6f5"}.van-icon-pause-circle-o:before{content:"\e6f6"}.van-icon-peer-pay:before{content:"\e6f7"}.van-icon-pending-payment:before{content:"\e6f8"}.van-icon-passed:before{content:"\e6f9"}.van-icon-plus:before{content:"\e6fa"}.van-icon-phone-circle-o:before{content:"\e6fb"}.van-icon-phone-o:before{content:"\e6fc"}.van-icon-printer:before{content:"\e6fd"}.van-icon-photo-fail:before{content:"\e6fe"}.van-icon-phone:before{content:"\e6ff"}.van-icon-photo-o:before{content:"\e700"}.van-icon-play-circle:before{content:"\e701"}.van-icon-play:before{content:"\e702"}.van-icon-phone-circle:before{content:"\e703"}.van-icon-point-gift-o:before{content:"\e704"}.van-icon-point-gift:before{content:"\e705"}.van-icon-play-circle-o:before{content:"\e706"}.van-icon-shrink:before{content:"\e707"}.van-icon-photo:before{content:"\e708"}.van-icon-qr:before{content:"\e709"}.van-icon-qr-invalid:before{content:"\e70a"}.van-icon-question-o:before{content:"\e70b"}.van-icon-revoke:before{content:"\e70c"}.van-icon-replay:before{content:"\e70d"}.van-icon-service:before{content:"\e70e"}.van-icon-question:before{content:"\e70f"}.van-icon-search:before{content:"\e710"}.van-icon-refund-o:before{content:"\e711"}.van-icon-service-o:before{content:"\e712"}.van-icon-scan:before{content:"\e713"}.van-icon-share:before{content:"\e714"}.van-icon-send-gift-o:before{content:"\e715"}.van-icon-share-o:before{content:"\e716"}.van-icon-setting:before{content:"\e717"}.van-icon-points:before{content:"\e718"}.van-icon-photograph:before{content:"\e719"}.van-icon-shop:before{content:"\e71a"}.van-icon-shop-o:before{content:"\e71b"}.van-icon-shop-collect-o:before{content:"\e71c"}.van-icon-shop-collect:before{content:"\e71d"}.van-icon-smile:before{content:"\e71e"}.van-icon-shopping-cart-o:before{content:"\e71f"}.van-icon-sign:before{content:"\e720"}.van-icon-sort:before{content:"\e721"}.van-icon-star-o:before{content:"\e722"}.van-icon-smile-comment-o:before{content:"\e723"}.van-icon-stop:before{content:"\e724"}.van-icon-stop-circle-o:before{content:"\e725"}.van-icon-smile-o:before{content:"\e726"}.van-icon-star:before{content:"\e727"}.van-icon-success:before{content:"\e728"}.van-icon-stop-circle:before{content:"\e729"}.van-icon-records:before{content:"\e72a"}.van-icon-shopping-cart:before{content:"\e72b"}.van-icon-tosend:before{content:"\e72c"}.van-icon-todo-list:before{content:"\e72d"}.van-icon-thumb-circle-o:before{content:"\e72e"}.van-icon-thumb-circle:before{content:"\e72f"}.van-icon-umbrella-circle:before{content:"\e730"}.van-icon-underway:before{content:"\e731"}.van-icon-upgrade:before{content:"\e732"}.van-icon-todo-list-o:before{content:"\e733"}.van-icon-tv-o:before{content:"\e734"}.van-icon-underway-o:before{content:"\e735"}.van-icon-user-o:before{content:"\e736"}.van-icon-vip-card-o:before{content:"\e737"}.van-icon-vip-card:before{content:"\e738"}.van-icon-send-gift:before{content:"\e739"}.van-icon-wap-home:before{content:"\e73a"}.van-icon-wap-nav:before{content:"\e73b"}.van-icon-volume-o:before{content:"\e73c"}.van-icon-video:before{content:"\e73d"}.van-icon-wap-home-o:before{content:"\e73e"}.van-icon-volume:before{content:"\e73f"}.van-icon-warning:before{content:"\e740"}.van-icon-weapp-nav:before{content:"\e741"}.van-icon-wechat-pay:before{content:"\e742"}.van-icon-warning-o:before{content:"\e743"}.van-icon-wechat:before{content:"\e744"}.van-icon-setting-o:before{content:"\e745"}.van-icon-youzan-shield:before{content:"\e746"}.van-icon-warn-o:before{content:"\e747"}.van-icon-smile-comment:before{content:"\e748"}.van-icon-user-circle-o:before{content:"\e749"}.van-icon-video-o:before{content:"\e74a"}.van-icon-add-square:before{content:"\e65c"}.van-icon-add:before{content:"\e65d"}.van-icon-arrow-down:before{content:"\e65e"}.van-icon-arrow-up:before{content:"\e65f"}.van-icon-arrow:before{content:"\e660"}.van-icon-after-sale:before{content:"\e661"}.van-icon-add-o:before{content:"\e662"}.van-icon-alipay:before{content:"\e663"}.van-icon-ascending:before{content:"\e664"}.van-icon-apps-o:before{content:"\e665"}.van-icon-aim:before{content:"\e666"}.van-icon-award:before{content:"\e667"}.van-icon-arrow-left:before{content:"\e668"}.van-icon-award-o:before{content:"\e669"}.van-icon-audio:before{content:"\e66a"}.van-icon-bag-o:before{content:"\e66b"}.van-icon-balance-list:before{content:"\e66c"}.van-icon-back-top:before{content:"\e66d"}.van-icon-bag:before{content:"\e66e"}.van-icon-balance-pay:before{content:"\e66f"}.van-icon-balance-o:before{content:"\e670"}.van-icon-bar-chart-o:before{content:"\e671"}.van-icon-bars:before{content:"\e672"}.van-icon-balance-list-o:before{content:"\e673"}.van-icon-birthday-cake-o:before{content:"\e674"}.van-icon-bookmark:before{content:"\e675"}.van-icon-bill:before{content:"\e676"}.van-icon-bell:before{content:"\e677"}.van-icon-browsing-history-o:before{content:"\e678"}.van-icon-browsing-history:before{content:"\e679"}.van-icon-bookmark-o:before{content:"\e67a"}.van-icon-bulb-o:before{content:"\e67b"}.van-icon-bullhorn-o:before{content:"\e67c"}.van-icon-bill-o:before{content:"\e67d"}.van-icon-calendar-o:before{content:"\e67e"}.van-icon-brush-o:before{content:"\e67f"}.van-icon-card:before{content:"\e680"}.van-icon-cart-o:before{content:"\e681"}.van-icon-cart-circle:before{content:"\e682"}.van-icon-cart-circle-o:before{content:"\e683"}.van-icon-cart:before{content:"\e684"}.van-icon-cash-on-deliver:before{content:"\e685"}.van-icon-cash-back-record:before{content:"\e686"}.van-icon-cashier-o:before{content:"\e687"}.van-icon-chart-trending-o:before{content:"\e688"}.van-icon-certificate:before{content:"\e689"}.van-icon-chat:before{content:"\e68a"}.van-icon-clear:before{content:"\e68b"}.van-icon-chat-o:before{content:"\e68c"}.van-icon-checked:before{content:"\e68d"}.van-icon-clock:before{content:"\e68e"}.van-icon-clock-o:before{content:"\e68f"}.van-icon-close:before{content:"\e690"}.van-icon-closed-eye:before{content:"\e691"}.van-icon-circle:before{content:"\e692"}.van-icon-cluster-o:before{content:"\e693"}.van-icon-column:before{content:"\e694"}.van-icon-comment-circle-o:before{content:"\e695"}.van-icon-cluster:before{content:"\e696"}.van-icon-comment:before{content:"\e697"}.van-icon-comment-o:before{content:"\e698"}.van-icon-comment-circle:before{content:"\e699"}.van-icon-completed:before{content:"\e69a"}.van-icon-credit-pay:before{content:"\e69b"}.van-icon-coupon:before{content:"\e69c"}.van-icon-debit-pay:before{content:"\e69d"}.van-icon-coupon-o:before{content:"\e69e"}.van-icon-contact:before{content:"\e69f"}.van-icon-descending:before{content:"\e6a0"}.van-icon-desktop-o:before{content:"\e6a1"}.van-icon-diamond-o:before{content:"\e6a2"}.van-icon-description:before{content:"\e6a3"}.van-icon-delete:before{content:"\e6a4"}.van-icon-diamond:before{content:"\e6a5"}.van-icon-delete-o:before{content:"\e6a6"}.van-icon-cross:before{content:"\e6a7"}.van-icon-edit:before{content:"\e6a8"}.van-icon-ellipsis:before{content:"\e6a9"}.van-icon-down:before{content:"\e6aa"}.van-icon-discount:before{content:"\e6ab"}.van-icon-ecard-pay:before{content:"\e6ac"}.van-icon-envelop-o:before{content:"\e6ae"}.van-icon-shield-o:before{content:"\e74b"}.van-icon-guide-o:before{content:"\e74c"}@font-face{font-weight:400;font-style:normal;font-display:auto;font-family:vant-icon;src:url(//at.alicdn.com/t/font_2553510_61agzg96wm8.woff2?t=1631948257467) format("woff2"),url(//at.alicdn.com/t/font_2553510_61agzg96wm8.woff?t=1631948257467) format("woff"),url(//at.alicdn.com/t/font_2553510_61agzg96wm8.ttf?t=1631948257467) format("truetype")}:host{display:inline-flex;align-items:center;justify-content:center}.van-icon--image{width:1em;height:1em}.van-icon__image{width:100%;height:100%}.van-icon__info{z-index:1}
\ No newline at end of file
diff --git a/lib/image/index.js b/lib/image/index.js
index f149bc93..990327b0 100644
--- a/lib/image/index.js
+++ b/lib/image/index.js
@@ -1,62 +1,62 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var button_1 = require('../mixins/button');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var button_1 = require("../mixins/button");
component_1.VantComponent({
- mixins: [button_1.button],
- classes: ['custom-class', 'loading-class', 'error-class', 'image-class'],
- props: {
- src: {
- type: String,
- observer: function () {
- this.setData({
- error: false,
- loading: true,
- });
- },
+ mixins: [button_1.button],
+ classes: ['custom-class', 'loading-class', 'error-class', 'image-class'],
+ props: {
+ src: {
+ type: String,
+ observer: function () {
+ this.setData({
+ error: false,
+ loading: true,
+ });
+ },
+ },
+ round: Boolean,
+ width: null,
+ height: null,
+ radius: null,
+ lazyLoad: Boolean,
+ useErrorSlot: Boolean,
+ useLoadingSlot: Boolean,
+ showMenuByLongpress: Boolean,
+ fit: {
+ type: String,
+ value: 'fill',
+ },
+ showError: {
+ type: Boolean,
+ value: true,
+ },
+ showLoading: {
+ type: Boolean,
+ value: true,
+ },
},
- round: Boolean,
- width: null,
- height: null,
- radius: null,
- lazyLoad: Boolean,
- useErrorSlot: Boolean,
- useLoadingSlot: Boolean,
- showMenuByLongpress: Boolean,
- fit: {
- type: String,
- value: 'fill',
+ data: {
+ error: false,
+ loading: true,
+ viewStyle: '',
},
- showError: {
- type: Boolean,
- value: true,
+ methods: {
+ onLoad: function (event) {
+ this.setData({
+ loading: false,
+ });
+ this.$emit('load', event.detail);
+ },
+ onError: function (event) {
+ this.setData({
+ loading: false,
+ error: true,
+ });
+ this.$emit('error', event.detail);
+ },
+ onClick: function (event) {
+ this.$emit('click', event.detail);
+ },
},
- showLoading: {
- type: Boolean,
- value: true,
- },
- },
- data: {
- error: false,
- loading: true,
- viewStyle: '',
- },
- methods: {
- onLoad: function (event) {
- this.setData({
- loading: false,
- });
- this.$emit('load', event.detail);
- },
- onError: function (event) {
- this.setData({
- loading: false,
- error: true,
- });
- this.$emit('error', event.detail);
- },
- onClick: function (event) {
- this.$emit('click', event.detail);
- },
- },
});
diff --git a/lib/index-anchor/index.js b/lib/index-anchor/index.js
index 2970257d..ff6f860e 100644
--- a/lib/index-anchor/index.js
+++ b/lib/index-anchor/index.js
@@ -1,28 +1,28 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var utils_1 = require('../common/utils');
-var component_1 = require('../common/component');
-var relation_1 = require('../common/relation');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var utils_1 = require("../common/utils");
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
component_1.VantComponent({
- relation: relation_1.useParent('index-bar'),
- props: {
- useSlot: Boolean,
- index: null,
- },
- data: {
- active: false,
- wrapperStyle: '',
- anchorStyle: '',
- },
- methods: {
- scrollIntoView: function (scrollTop) {
- var _this = this;
- utils_1.getRect(this, '.van-index-anchor-wrapper').then(function (rect) {
- wx.pageScrollTo({
- duration: 0,
- scrollTop: scrollTop + rect.top - _this.parent.data.stickyOffsetTop,
- });
- });
+ relation: relation_1.useParent('index-bar'),
+ props: {
+ useSlot: Boolean,
+ index: null,
+ },
+ data: {
+ active: false,
+ wrapperStyle: '',
+ anchorStyle: '',
+ },
+ methods: {
+ scrollIntoView: function (scrollTop) {
+ var _this = this;
+ utils_1.getRect(this, '.van-index-anchor-wrapper').then(function (rect) {
+ wx.pageScrollTo({
+ duration: 0,
+ scrollTop: scrollTop + rect.top - _this.parent.data.stickyOffsetTop,
+ });
+ });
+ },
},
- },
});
diff --git a/lib/index-bar/index.js b/lib/index-bar/index.js
index dd4315e0..941d8c59 100644
--- a/lib/index-bar/index.js
+++ b/lib/index-bar/index.js
@@ -1,281 +1,240 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var color_1 = require('../common/color');
-var component_1 = require('../common/component');
-var relation_1 = require('../common/relation');
-var utils_1 = require('../common/utils');
-var page_scroll_1 = require('../mixins/page-scroll');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var color_1 = require("../common/color");
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+var utils_1 = require("../common/utils");
+var page_scroll_1 = require("../mixins/page-scroll");
var indexList = function () {
- var indexList = [];
- var charCodeOfA = 'A'.charCodeAt(0);
- for (var i = 0; i < 26; i++) {
- indexList.push(String.fromCharCode(charCodeOfA + i));
- }
- return indexList;
+ var indexList = [];
+ var charCodeOfA = 'A'.charCodeAt(0);
+ for (var i = 0; i < 26; i++) {
+ indexList.push(String.fromCharCode(charCodeOfA + i));
+ }
+ return indexList;
};
component_1.VantComponent({
- relation: relation_1.useChildren('index-anchor', function () {
- this.updateData();
- }),
- props: {
- sticky: {
- type: Boolean,
- value: true,
- },
- zIndex: {
- type: Number,
- value: 1,
- },
- highlightColor: {
- type: String,
- value: color_1.GREEN,
- },
- stickyOffsetTop: {
- type: Number,
- value: 0,
- },
- indexList: {
- type: Array,
- value: indexList(),
- },
- },
- mixins: [
- page_scroll_1.pageScrollMixin(function (event) {
- this.scrollTop =
- (event === null || event === void 0 ? void 0 : event.scrollTop) || 0;
- this.onScroll();
+ relation: relation_1.useChildren('index-anchor', function () {
+ this.updateData();
}),
- ],
- data: {
- activeAnchorIndex: null,
- showSidebar: false,
- },
- created: function () {
- this.scrollTop = 0;
- },
- methods: {
- updateData: function () {
- var _this = this;
- wx.nextTick(function () {
- if (_this.timer != null) {
- clearTimeout(_this.timer);
- }
- _this.timer = setTimeout(function () {
- _this.setData({
- showSidebar: !!_this.children.length,
- });
- _this.setRect().then(function () {
- _this.onScroll();
- });
- }, 0);
- });
- },
- setRect: function () {
- return Promise.all([
- this.setAnchorsRect(),
- this.setListRect(),
- this.setSiderbarRect(),
- ]);
- },
- setAnchorsRect: function () {
- var _this = this;
- return Promise.all(
- this.children.map(function (anchor) {
- return utils_1
- .getRect(anchor, '.van-index-anchor-wrapper')
- .then(function (rect) {
- Object.assign(anchor, {
- height: rect.height,
- top: rect.top + _this.scrollTop,
- });
- });
- })
- );
- },
- setListRect: function () {
- var _this = this;
- return utils_1.getRect(this, '.van-index-bar').then(function (rect) {
- Object.assign(_this, {
- height: rect.height,
- top: rect.top + _this.scrollTop,
- });
- });
- },
- setSiderbarRect: function () {
- var _this = this;
- return utils_1
- .getRect(this, '.van-index-bar__sidebar')
- .then(function (res) {
- if (!utils_1.isDef(res)) {
- return;
- }
- _this.sidebar = {
- height: res.height,
- top: res.top,
- };
- });
- },
- setDiffData: function (_a) {
- var target = _a.target,
- data = _a.data;
- var diffData = {};
- Object.keys(data).forEach(function (key) {
- if (target.data[key] !== data[key]) {
- diffData[key] = data[key];
- }
- });
- if (Object.keys(diffData).length) {
- target.setData(diffData);
- }
- },
- getAnchorRect: function (anchor) {
- return utils_1
- .getRect(anchor, '.van-index-anchor-wrapper')
- .then(function (rect) {
- return {
- height: rect.height,
- top: rect.top,
- };
- });
- },
- getActiveAnchorIndex: function () {
- var _a = this,
- children = _a.children,
- scrollTop = _a.scrollTop;
- var _b = this.data,
- sticky = _b.sticky,
- stickyOffsetTop = _b.stickyOffsetTop;
- for (var i = this.children.length - 1; i >= 0; i--) {
- var preAnchorHeight = i > 0 ? children[i - 1].height : 0;
- var reachTop = sticky ? preAnchorHeight + stickyOffsetTop : 0;
- if (reachTop + scrollTop >= children[i].top) {
- return i;
- }
- }
- return -1;
- },
- onScroll: function () {
- var _this = this;
- var _a = this,
- _b = _a.children,
- children = _b === void 0 ? [] : _b,
- scrollTop = _a.scrollTop;
- if (!children.length) {
- return;
- }
- var _c = this.data,
- sticky = _c.sticky,
- stickyOffsetTop = _c.stickyOffsetTop,
- zIndex = _c.zIndex,
- highlightColor = _c.highlightColor;
- var active = this.getActiveAnchorIndex();
- this.setDiffData({
- target: this,
- data: {
- activeAnchorIndex: active,
+ props: {
+ sticky: {
+ type: Boolean,
+ value: true,
},
- });
- if (sticky) {
- var isActiveAnchorSticky_1 = false;
- if (active !== -1) {
- isActiveAnchorSticky_1 =
- children[active].top <= stickyOffsetTop + scrollTop;
- }
- children.forEach(function (item, index) {
- if (index === active) {
- var wrapperStyle = '';
- var anchorStyle =
- '\n color: ' + highlightColor + ';\n ';
- if (isActiveAnchorSticky_1) {
- wrapperStyle =
- '\n height: ' +
- children[index].height +
- 'px;\n ';
- anchorStyle =
- '\n position: fixed;\n top: ' +
- stickyOffsetTop +
- 'px;\n z-index: ' +
- zIndex +
- ';\n color: ' +
- highlightColor +
- ';\n ';
+ zIndex: {
+ type: Number,
+ value: 1,
+ },
+ highlightColor: {
+ type: String,
+ value: color_1.GREEN,
+ },
+ stickyOffsetTop: {
+ type: Number,
+ value: 0,
+ },
+ indexList: {
+ type: Array,
+ value: indexList(),
+ },
+ },
+ mixins: [
+ page_scroll_1.pageScrollMixin(function (event) {
+ this.scrollTop = (event === null || event === void 0 ? void 0 : event.scrollTop) || 0;
+ this.onScroll();
+ }),
+ ],
+ data: {
+ activeAnchorIndex: null,
+ showSidebar: false,
+ },
+ created: function () {
+ this.scrollTop = 0;
+ },
+ methods: {
+ updateData: function () {
+ var _this = this;
+ wx.nextTick(function () {
+ if (_this.timer != null) {
+ clearTimeout(_this.timer);
+ }
+ _this.timer = setTimeout(function () {
+ _this.setData({
+ showSidebar: !!_this.children.length,
+ });
+ _this.setRect().then(function () {
+ _this.onScroll();
+ });
+ }, 0);
+ });
+ },
+ setRect: function () {
+ return Promise.all([
+ this.setAnchorsRect(),
+ this.setListRect(),
+ this.setSiderbarRect(),
+ ]);
+ },
+ setAnchorsRect: function () {
+ var _this = this;
+ return Promise.all(this.children.map(function (anchor) {
+ return utils_1.getRect(anchor, '.van-index-anchor-wrapper').then(function (rect) {
+ Object.assign(anchor, {
+ height: rect.height,
+ top: rect.top + _this.scrollTop,
+ });
+ });
+ }));
+ },
+ setListRect: function () {
+ var _this = this;
+ return utils_1.getRect(this, '.van-index-bar').then(function (rect) {
+ Object.assign(_this, {
+ height: rect.height,
+ top: rect.top + _this.scrollTop,
+ });
+ });
+ },
+ setSiderbarRect: function () {
+ var _this = this;
+ return utils_1.getRect(this, '.van-index-bar__sidebar').then(function (res) {
+ if (!utils_1.isDef(res)) {
+ return;
+ }
+ _this.sidebar = {
+ height: res.height,
+ top: res.top,
+ };
+ });
+ },
+ setDiffData: function (_a) {
+ var target = _a.target, data = _a.data;
+ var diffData = {};
+ Object.keys(data).forEach(function (key) {
+ if (target.data[key] !== data[key]) {
+ diffData[key] = data[key];
+ }
+ });
+ if (Object.keys(diffData).length) {
+ target.setData(diffData);
}
- _this.setDiffData({
- target: item,
- data: {
- active: true,
- anchorStyle: anchorStyle,
- wrapperStyle: wrapperStyle,
- },
+ },
+ getAnchorRect: function (anchor) {
+ return utils_1.getRect(anchor, '.van-index-anchor-wrapper').then(function (rect) { return ({
+ height: rect.height,
+ top: rect.top,
+ }); });
+ },
+ getActiveAnchorIndex: function () {
+ var _a = this, children = _a.children, scrollTop = _a.scrollTop;
+ var _b = this.data, sticky = _b.sticky, stickyOffsetTop = _b.stickyOffsetTop;
+ for (var i = this.children.length - 1; i >= 0; i--) {
+ var preAnchorHeight = i > 0 ? children[i - 1].height : 0;
+ var reachTop = sticky ? preAnchorHeight + stickyOffsetTop : 0;
+ if (reachTop + scrollTop >= children[i].top) {
+ return i;
+ }
+ }
+ return -1;
+ },
+ onScroll: function () {
+ var _this = this;
+ var _a = this, _b = _a.children, children = _b === void 0 ? [] : _b, scrollTop = _a.scrollTop;
+ if (!children.length) {
+ return;
+ }
+ var _c = this.data, sticky = _c.sticky, stickyOffsetTop = _c.stickyOffsetTop, zIndex = _c.zIndex, highlightColor = _c.highlightColor;
+ var active = this.getActiveAnchorIndex();
+ this.setDiffData({
+ target: this,
+ data: {
+ activeAnchorIndex: active,
+ },
});
- } else if (index === active - 1) {
- var currentAnchor = children[index];
- var currentOffsetTop = currentAnchor.top;
- var targetOffsetTop =
- index === children.length - 1
- ? _this.top
- : children[index + 1].top;
- var parentOffsetHeight = targetOffsetTop - currentOffsetTop;
- var translateY = parentOffsetHeight - currentAnchor.height;
- var anchorStyle =
- '\n position: relative;\n transform: translate3d(0, ' +
- translateY +
- 'px, 0);\n z-index: ' +
- zIndex +
- ';\n color: ' +
- highlightColor +
- ';\n ';
- _this.setDiffData({
- target: item,
- data: {
- active: true,
- anchorStyle: anchorStyle,
- },
- });
- } else {
- _this.setDiffData({
- target: item,
- data: {
- active: false,
- anchorStyle: '',
- wrapperStyle: '',
- },
- });
- }
- });
- }
+ if (sticky) {
+ var isActiveAnchorSticky_1 = false;
+ if (active !== -1) {
+ isActiveAnchorSticky_1 =
+ children[active].top <= stickyOffsetTop + scrollTop;
+ }
+ children.forEach(function (item, index) {
+ if (index === active) {
+ var wrapperStyle = '';
+ var anchorStyle = "\n color: " + highlightColor + ";\n ";
+ if (isActiveAnchorSticky_1) {
+ wrapperStyle = "\n height: " + children[index].height + "px;\n ";
+ anchorStyle = "\n position: fixed;\n top: " + stickyOffsetTop + "px;\n z-index: " + zIndex + ";\n color: " + highlightColor + ";\n ";
+ }
+ _this.setDiffData({
+ target: item,
+ data: {
+ active: true,
+ anchorStyle: anchorStyle,
+ wrapperStyle: wrapperStyle,
+ },
+ });
+ }
+ else if (index === active - 1) {
+ var currentAnchor = children[index];
+ var currentOffsetTop = currentAnchor.top;
+ var targetOffsetTop = index === children.length - 1
+ ? _this.top
+ : children[index + 1].top;
+ var parentOffsetHeight = targetOffsetTop - currentOffsetTop;
+ var translateY = parentOffsetHeight - currentAnchor.height;
+ var anchorStyle = "\n position: relative;\n transform: translate3d(0, " + translateY + "px, 0);\n z-index: " + zIndex + ";\n color: " + highlightColor + ";\n ";
+ _this.setDiffData({
+ target: item,
+ data: {
+ active: true,
+ anchorStyle: anchorStyle,
+ },
+ });
+ }
+ else {
+ _this.setDiffData({
+ target: item,
+ data: {
+ active: false,
+ anchorStyle: '',
+ wrapperStyle: '',
+ },
+ });
+ }
+ });
+ }
+ },
+ onClick: function (event) {
+ this.scrollToAnchor(event.target.dataset.index);
+ },
+ onTouchMove: function (event) {
+ var sidebarLength = this.children.length;
+ var touch = event.touches[0];
+ var itemHeight = this.sidebar.height / sidebarLength;
+ var index = Math.floor((touch.clientY - this.sidebar.top) / itemHeight);
+ if (index < 0) {
+ index = 0;
+ }
+ else if (index > sidebarLength - 1) {
+ index = sidebarLength - 1;
+ }
+ this.scrollToAnchor(index);
+ },
+ onTouchStop: function () {
+ this.scrollToAnchorIndex = null;
+ },
+ scrollToAnchor: function (index) {
+ var _this = this;
+ if (typeof index !== 'number' || this.scrollToAnchorIndex === index) {
+ return;
+ }
+ this.scrollToAnchorIndex = index;
+ var anchor = this.children.find(function (item) { return item.data.index === _this.data.indexList[index]; });
+ if (anchor) {
+ anchor.scrollIntoView(this.scrollTop);
+ this.$emit('select', anchor.data.index);
+ }
+ },
},
- onClick: function (event) {
- this.scrollToAnchor(event.target.dataset.index);
- },
- onTouchMove: function (event) {
- var sidebarLength = this.children.length;
- var touch = event.touches[0];
- var itemHeight = this.sidebar.height / sidebarLength;
- var index = Math.floor((touch.clientY - this.sidebar.top) / itemHeight);
- if (index < 0) {
- index = 0;
- } else if (index > sidebarLength - 1) {
- index = sidebarLength - 1;
- }
- this.scrollToAnchor(index);
- },
- onTouchStop: function () {
- this.scrollToAnchorIndex = null;
- },
- scrollToAnchor: function (index) {
- var _this = this;
- if (typeof index !== 'number' || this.scrollToAnchorIndex === index) {
- return;
- }
- this.scrollToAnchorIndex = index;
- var anchor = this.children.find(function (item) {
- return item.data.index === _this.data.indexList[index];
- });
- if (anchor) {
- anchor.scrollIntoView(this.scrollTop);
- this.$emit('select', anchor.data.index);
- }
- },
- },
});
diff --git a/lib/info/index.js b/lib/info/index.js
index a08ad2ca..4af0e66a 100644
--- a/lib/info/index.js
+++ b/lib/info/index.js
@@ -1,10 +1,10 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
component_1.VantComponent({
- props: {
- dot: Boolean,
- info: null,
- customStyle: String,
- },
+ props: {
+ dot: Boolean,
+ info: null,
+ customStyle: String,
+ },
});
diff --git a/lib/loading/index.js b/lib/loading/index.js
index 5aa2a817..842b9318 100644
--- a/lib/loading/index.js
+++ b/lib/loading/index.js
@@ -1,18 +1,18 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
component_1.VantComponent({
- props: {
- color: String,
- vertical: Boolean,
- type: {
- type: String,
- value: 'circular',
+ props: {
+ color: String,
+ vertical: Boolean,
+ type: {
+ type: String,
+ value: 'circular',
+ },
+ size: String,
+ textSize: String,
+ },
+ data: {
+ array12: Array.from({ length: 12 }),
},
- size: String,
- textSize: String,
- },
- data: {
- array12: Array.from({ length: 12 }),
- },
});
diff --git a/lib/mixins/basic.js b/lib/mixins/basic.js
index 4505ce50..4373ad44 100644
--- a/lib/mixins/basic.js
+++ b/lib/mixins/basic.js
@@ -1,16 +1,14 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
exports.basic = void 0;
exports.basic = Behavior({
- methods: {
- $emit: function (name, detail, options) {
- this.triggerEvent(name, detail, options);
+ methods: {
+ $emit: function (name, detail, options) {
+ this.triggerEvent(name, detail, options);
+ },
+ set: function (data) {
+ this.setData(data);
+ return new Promise(function (resolve) { return wx.nextTick(resolve); });
+ },
},
- set: function (data) {
- this.setData(data);
- return new Promise(function (resolve) {
- return wx.nextTick(resolve);
- });
- },
- },
});
diff --git a/lib/mixins/button.js b/lib/mixins/button.js
index a0a6e2a9..057355f8 100644
--- a/lib/mixins/button.js
+++ b/lib/mixins/button.js
@@ -1,44 +1,44 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
exports.button = void 0;
-var version_1 = require('../common/version');
+var version_1 = require("../common/version");
exports.button = Behavior({
- externalClasses: ['hover-class'],
- properties: {
- id: String,
- lang: String,
- businessId: Number,
- sessionFrom: String,
- sendMessageTitle: String,
- sendMessagePath: String,
- sendMessageImg: String,
- showMessageCard: Boolean,
- appParameter: String,
- ariaLabel: String,
- openType: String,
- getUserProfileDesc: String,
- },
- data: {
- canIUseGetUserProfile: version_1.canIUseGetUserProfile(),
- },
- methods: {
- onGetUserInfo: function (event) {
- this.triggerEvent('getuserinfo', event.detail);
+ externalClasses: ['hover-class'],
+ properties: {
+ id: String,
+ lang: String,
+ businessId: Number,
+ sessionFrom: String,
+ sendMessageTitle: String,
+ sendMessagePath: String,
+ sendMessageImg: String,
+ showMessageCard: Boolean,
+ appParameter: String,
+ ariaLabel: String,
+ openType: String,
+ getUserProfileDesc: String,
},
- onContact: function (event) {
- this.triggerEvent('contact', event.detail);
+ data: {
+ canIUseGetUserProfile: version_1.canIUseGetUserProfile(),
},
- onGetPhoneNumber: function (event) {
- this.triggerEvent('getphonenumber', event.detail);
+ methods: {
+ onGetUserInfo: function (event) {
+ this.triggerEvent('getuserinfo', event.detail);
+ },
+ onContact: function (event) {
+ this.triggerEvent('contact', event.detail);
+ },
+ onGetPhoneNumber: function (event) {
+ this.triggerEvent('getphonenumber', event.detail);
+ },
+ onError: function (event) {
+ this.triggerEvent('error', event.detail);
+ },
+ onLaunchApp: function (event) {
+ this.triggerEvent('launchapp', event.detail);
+ },
+ onOpenSetting: function (event) {
+ this.triggerEvent('opensetting', event.detail);
+ },
},
- onError: function (event) {
- this.triggerEvent('error', event.detail);
- },
- onLaunchApp: function (event) {
- this.triggerEvent('launchapp', event.detail);
- },
- onOpenSetting: function (event) {
- this.triggerEvent('opensetting', event.detail);
- },
- },
});
diff --git a/lib/mixins/link.js b/lib/mixins/link.js
index 0c09dab0..14cb7e87 100644
--- a/lib/mixins/link.js
+++ b/lib/mixins/link.js
@@ -1,30 +1,27 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
exports.link = void 0;
exports.link = Behavior({
- properties: {
- url: String,
- linkType: {
- type: String,
- value: 'navigateTo',
+ properties: {
+ url: String,
+ linkType: {
+ type: String,
+ value: 'navigateTo',
+ },
},
- },
- methods: {
- jumpLink: function (urlKey) {
- if (urlKey === void 0) {
- urlKey = 'url';
- }
- var url = this.data[urlKey];
- if (url) {
- if (
- this.data.linkType === 'navigateTo' &&
- getCurrentPages().length > 9
- ) {
- wx.redirectTo({ url: url });
- } else {
- wx[this.data.linkType]({ url: url });
- }
- }
+ methods: {
+ jumpLink: function (urlKey) {
+ if (urlKey === void 0) { urlKey = 'url'; }
+ var url = this.data[urlKey];
+ if (url) {
+ if (this.data.linkType === 'navigateTo' &&
+ getCurrentPages().length > 9) {
+ wx.redirectTo({ url: url });
+ }
+ else {
+ wx[this.data.linkType]({ url: url });
+ }
+ }
+ },
},
- },
});
diff --git a/lib/mixins/page-scroll.js b/lib/mixins/page-scroll.js
index 5e503d6e..a681c0a5 100644
--- a/lib/mixins/page-scroll.js
+++ b/lib/mixins/page-scroll.js
@@ -1,43 +1,39 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
exports.pageScrollMixin = void 0;
-var utils_1 = require('../common/utils');
+var utils_1 = require("../common/utils");
function onPageScroll(event) {
- var _a = utils_1.getCurrentPage().vanPageScroller,
- vanPageScroller = _a === void 0 ? [] : _a;
- vanPageScroller.forEach(function (scroller) {
- if (typeof scroller === 'function') {
- // @ts-ignore
- scroller(event);
- }
- });
+ var _a = utils_1.getCurrentPage().vanPageScroller, vanPageScroller = _a === void 0 ? [] : _a;
+ vanPageScroller.forEach(function (scroller) {
+ if (typeof scroller === 'function') {
+ // @ts-ignore
+ scroller(event);
+ }
+ });
}
var pageScrollMixin = function (scroller) {
- return Behavior({
- attached: function () {
- var page = utils_1.getCurrentPage();
- if (Array.isArray(page.vanPageScroller)) {
- page.vanPageScroller.push(scroller.bind(this));
- } else {
- page.vanPageScroller =
- typeof page.onPageScroll === 'function'
- ? [page.onPageScroll.bind(page), scroller.bind(this)]
- : [scroller.bind(this)];
- }
- page.onPageScroll = onPageScroll;
- },
- detached: function () {
- var _a;
- var page = utils_1.getCurrentPage();
- if (utils_1.isDef(page)) {
- page.vanPageScroller =
- ((_a = page.vanPageScroller) === null || _a === void 0
- ? void 0
- : _a.filter(function (item) {
- return item !== scroller;
- })) || [];
- }
- },
- });
+ return Behavior({
+ attached: function () {
+ var page = utils_1.getCurrentPage();
+ if (Array.isArray(page.vanPageScroller)) {
+ page.vanPageScroller.push(scroller.bind(this));
+ }
+ else {
+ page.vanPageScroller =
+ typeof page.onPageScroll === 'function'
+ ? [page.onPageScroll.bind(page), scroller.bind(this)]
+ : [scroller.bind(this)];
+ }
+ page.onPageScroll = onPageScroll;
+ },
+ detached: function () {
+ var _a;
+ var page = utils_1.getCurrentPage();
+ if (utils_1.isDef(page)) {
+ page.vanPageScroller =
+ ((_a = page.vanPageScroller) === null || _a === void 0 ? void 0 : _a.filter(function (item) { return item !== scroller; })) || [];
+ }
+ },
+ });
};
exports.pageScrollMixin = pageScrollMixin;
diff --git a/lib/mixins/touch.js b/lib/mixins/touch.js
index 9c6da11a..d762c2c5 100644
--- a/lib/mixins/touch.js
+++ b/lib/mixins/touch.js
@@ -1,40 +1,40 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
exports.touch = void 0;
// @ts-nocheck
var MIN_DISTANCE = 10;
function getDirection(x, y) {
- if (x > y && x > MIN_DISTANCE) {
- return 'horizontal';
- }
- if (y > x && y > MIN_DISTANCE) {
- return 'vertical';
- }
- return '';
+ if (x > y && x > MIN_DISTANCE) {
+ return 'horizontal';
+ }
+ if (y > x && y > MIN_DISTANCE) {
+ return 'vertical';
+ }
+ return '';
}
exports.touch = Behavior({
- methods: {
- resetTouchStatus: function () {
- this.direction = '';
- this.deltaX = 0;
- this.deltaY = 0;
- this.offsetX = 0;
- this.offsetY = 0;
+ methods: {
+ resetTouchStatus: function () {
+ this.direction = '';
+ this.deltaX = 0;
+ this.deltaY = 0;
+ this.offsetX = 0;
+ this.offsetY = 0;
+ },
+ touchStart: function (event) {
+ this.resetTouchStatus();
+ var touch = event.touches[0];
+ this.startX = touch.clientX;
+ this.startY = touch.clientY;
+ },
+ touchMove: function (event) {
+ var touch = event.touches[0];
+ this.deltaX = touch.clientX - this.startX;
+ this.deltaY = touch.clientY - this.startY;
+ this.offsetX = Math.abs(this.deltaX);
+ this.offsetY = Math.abs(this.deltaY);
+ this.direction =
+ this.direction || getDirection(this.offsetX, this.offsetY);
+ },
},
- touchStart: function (event) {
- this.resetTouchStatus();
- var touch = event.touches[0];
- this.startX = touch.clientX;
- this.startY = touch.clientY;
- },
- touchMove: function (event) {
- var touch = event.touches[0];
- this.deltaX = touch.clientX - this.startX;
- this.deltaY = touch.clientY - this.startY;
- this.offsetX = Math.abs(this.deltaX);
- this.offsetY = Math.abs(this.deltaY);
- this.direction =
- this.direction || getDirection(this.offsetX, this.offsetY);
- },
- },
});
diff --git a/lib/mixins/transition.js b/lib/mixins/transition.js
index 9165aefc..3a90549f 100644
--- a/lib/mixins/transition.js
+++ b/lib/mixins/transition.js
@@ -1,155 +1,121 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
+"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-' +
- name +
- '-enter van-' +
- name +
- '-enter-active enter-class enter-active-class',
- 'enter-to':
- 'van-' +
- name +
- '-enter-to van-' +
- name +
- '-enter-active enter-to-class enter-active-class',
- leave:
- 'van-' +
- name +
- '-leave van-' +
- name +
- '-leave-active leave-class leave-active-class',
- 'leave-to':
- 'van-' +
- name +
- '-leave-to van-' +
- name +
- '-leave-active leave-to-class leave-active-class',
- };
-};
+var utils_1 = require("../common/utils");
+var validator_1 = require("../common/validator");
+var getClassNames = function (name) { return ({
+ enter: "van-" + name + "-enter van-" + name + "-enter-active enter-class enter-active-class",
+ 'enter-to': "van-" + name + "-enter-to van-" + name + "-enter-active enter-to-class enter-active-class",
+ leave: "van-" + name + "-leave van-" + name + "-leave-active leave-class leave-active-class",
+ 'leave-to': "van-" + name + "-leave-to van-" + name + "-leave-active leave-to-class leave-active-class",
+}); };
function transition(showDefaultValue) {
- return Behavior({
- properties: {
- 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',
- },
- },
- data: {
- type: '',
- inited: false,
- display: false,
- },
- ready: function () {
- if (this.data.show === true) {
- this.observeShow(true, false);
- }
- },
- methods: {
- observeShow: function (value, old) {
- if (value === old) {
- return;
- }
- value ? this.enter() : this.leave();
- },
- enter: function () {
- var _this = this;
- var _a = this.data,
- duration = _a.duration,
- name = _a.name;
- var classNames = getClassNames(name);
- var currentDuration = validator_1.isObj(duration)
- ? duration.enter
- : duration;
- this.status = 'enter';
- this.$emit('before-enter');
- utils_1.requestAnimationFrame(function () {
- if (_this.status !== 'enter') {
- return;
- }
- _this.$emit('enter');
- _this.setData({
- inited: true,
- display: true,
- classes: classNames.enter,
- currentDuration: currentDuration,
- });
- utils_1.requestAnimationFrame(function () {
- if (_this.status !== 'enter') {
- return;
+ return Behavior({
+ properties: {
+ 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',
+ },
+ },
+ data: {
+ type: '',
+ inited: false,
+ display: false,
+ },
+ ready: function () {
+ if (this.data.show === true) {
+ this.observeShow(true, false);
}
- _this.transitionEnded = false;
- _this.setData({ classes: classNames['enter-to'] });
- });
- });
- },
- leave: function () {
- var _this = this;
- if (!this.data.display) {
- return;
- }
- var _a = this.data,
- duration = _a.duration,
- name = _a.name;
- var classNames = getClassNames(name);
- var currentDuration = validator_1.isObj(duration)
- ? duration.leave
- : duration;
- this.status = 'leave';
- this.$emit('before-leave');
- utils_1.requestAnimationFrame(function () {
- if (_this.status !== 'leave') {
- return;
- }
- _this.$emit('leave');
- _this.setData({
- classes: classNames.leave,
- currentDuration: currentDuration,
- });
- utils_1.requestAnimationFrame(function () {
- if (_this.status !== 'leave') {
- return;
- }
- _this.transitionEnded = false;
- setTimeout(function () {
- return _this.onTransitionEnd();
- }, currentDuration);
- _this.setData({ classes: classNames['leave-to'] });
- });
- });
- },
- onTransitionEnd: function () {
- if (this.transitionEnded) {
- return;
- }
- this.transitionEnded = true;
- this.$emit('after-' + this.status);
- var _a = this.data,
- show = _a.show,
- display = _a.display;
- if (!show && display) {
- this.setData({ display: false });
- }
- },
- },
- });
+ },
+ methods: {
+ observeShow: function (value, old) {
+ if (value === old) {
+ return;
+ }
+ value ? this.enter() : this.leave();
+ },
+ enter: function () {
+ var _this = this;
+ var _a = this.data, duration = _a.duration, name = _a.name;
+ var classNames = getClassNames(name);
+ var currentDuration = validator_1.isObj(duration) ? duration.enter : duration;
+ this.status = 'enter';
+ this.$emit('before-enter');
+ utils_1.requestAnimationFrame(function () {
+ if (_this.status !== 'enter') {
+ return;
+ }
+ _this.$emit('enter');
+ _this.setData({
+ inited: true,
+ display: true,
+ classes: classNames.enter,
+ currentDuration: currentDuration,
+ });
+ utils_1.requestAnimationFrame(function () {
+ if (_this.status !== 'enter') {
+ return;
+ }
+ _this.transitionEnded = false;
+ _this.setData({ classes: classNames['enter-to'] });
+ });
+ });
+ },
+ leave: function () {
+ var _this = this;
+ if (!this.data.display) {
+ return;
+ }
+ var _a = this.data, duration = _a.duration, name = _a.name;
+ var classNames = getClassNames(name);
+ var currentDuration = validator_1.isObj(duration) ? duration.leave : duration;
+ this.status = 'leave';
+ this.$emit('before-leave');
+ utils_1.requestAnimationFrame(function () {
+ if (_this.status !== 'leave') {
+ return;
+ }
+ _this.$emit('leave');
+ _this.setData({
+ classes: classNames.leave,
+ currentDuration: currentDuration,
+ });
+ utils_1.requestAnimationFrame(function () {
+ if (_this.status !== 'leave') {
+ return;
+ }
+ _this.transitionEnded = false;
+ setTimeout(function () { return _this.onTransitionEnd(); }, currentDuration);
+ _this.setData({ classes: classNames['leave-to'] });
+ });
+ });
+ },
+ onTransitionEnd: function () {
+ if (this.transitionEnded) {
+ return;
+ }
+ this.transitionEnded = true;
+ this.$emit("after-" + this.status);
+ var _a = this.data, show = _a.show, display = _a.display;
+ if (!show && display) {
+ this.setData({ display: false });
+ }
+ },
+ },
+ });
}
exports.transition = transition;
diff --git a/lib/nav-bar/index.js b/lib/nav-bar/index.js
index d207bd03..b978da17 100644
--- a/lib/nav-bar/index.js
+++ b/lib/nav-bar/index.js
@@ -1,68 +1,68 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var utils_1 = require('../common/utils');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var utils_1 = require("../common/utils");
component_1.VantComponent({
- classes: ['title-class'],
- props: {
- title: String,
- fixed: {
- type: Boolean,
- observer: 'setHeight',
+ classes: ['title-class'],
+ props: {
+ title: String,
+ fixed: {
+ type: Boolean,
+ observer: 'setHeight',
+ },
+ placeholder: {
+ type: Boolean,
+ observer: 'setHeight',
+ },
+ leftText: String,
+ rightText: String,
+ customStyle: String,
+ leftArrow: Boolean,
+ border: {
+ type: Boolean,
+ value: true,
+ },
+ zIndex: {
+ type: Number,
+ value: 1,
+ },
+ safeAreaInsetTop: {
+ type: Boolean,
+ value: true,
+ },
},
- placeholder: {
- type: Boolean,
- observer: 'setHeight',
+ data: {
+ height: 46,
},
- leftText: String,
- rightText: String,
- customStyle: String,
- leftArrow: Boolean,
- border: {
- type: Boolean,
- value: true,
- },
- zIndex: {
- type: Number,
- value: 1,
- },
- safeAreaInsetTop: {
- type: Boolean,
- value: true,
- },
- },
- data: {
- height: 46,
- },
- created: function () {
- var statusBarHeight = utils_1.getSystemInfoSync().statusBarHeight;
- this.setData({
- statusBarHeight: statusBarHeight,
- height: 46 + statusBarHeight,
- });
- },
- mounted: function () {
- this.setHeight();
- },
- methods: {
- onClickLeft: function () {
- this.$emit('click-left');
- },
- onClickRight: function () {
- this.$emit('click-right');
- },
- setHeight: function () {
- var _this = this;
- if (!this.data.fixed || !this.data.placeholder) {
- return;
- }
- wx.nextTick(function () {
- utils_1.getRect(_this, '.van-nav-bar').then(function (res) {
- if (res && 'height' in res) {
- _this.setData({ height: res.height });
- }
+ created: function () {
+ var statusBarHeight = utils_1.getSystemInfoSync().statusBarHeight;
+ this.setData({
+ statusBarHeight: statusBarHeight,
+ height: 46 + statusBarHeight,
});
- });
},
- },
+ mounted: function () {
+ this.setHeight();
+ },
+ methods: {
+ onClickLeft: function () {
+ this.$emit('click-left');
+ },
+ onClickRight: function () {
+ this.$emit('click-right');
+ },
+ setHeight: function () {
+ var _this = this;
+ if (!this.data.fixed || !this.data.placeholder) {
+ return;
+ }
+ wx.nextTick(function () {
+ utils_1.getRect(_this, '.van-nav-bar').then(function (res) {
+ if (res && 'height' in res) {
+ _this.setData({ height: res.height });
+ }
+ });
+ });
+ },
+ },
});
diff --git a/lib/notice-bar/index.js b/lib/notice-bar/index.js
index ade8c15c..a4ca7e1e 100644
--- a/lib/notice-bar/index.js
+++ b/lib/notice-bar/index.js
@@ -1,131 +1,124 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var utils_1 = require('../common/utils');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var utils_1 = require("../common/utils");
component_1.VantComponent({
- props: {
- text: {
- type: String,
- value: '',
- observer: 'init',
+ props: {
+ text: {
+ type: String,
+ value: '',
+ observer: 'init',
+ },
+ mode: {
+ type: String,
+ value: '',
+ },
+ url: {
+ type: String,
+ value: '',
+ },
+ openType: {
+ type: String,
+ value: 'navigate',
+ },
+ delay: {
+ type: Number,
+ value: 1,
+ },
+ speed: {
+ type: Number,
+ value: 60,
+ observer: 'init',
+ },
+ scrollable: null,
+ leftIcon: {
+ type: String,
+ value: '',
+ },
+ color: String,
+ backgroundColor: String,
+ background: String,
+ wrapable: Boolean,
},
- mode: {
- type: String,
- value: '',
+ data: {
+ show: true,
},
- url: {
- type: String,
- value: '',
- },
- openType: {
- type: String,
- value: 'navigate',
- },
- delay: {
- type: Number,
- value: 1,
- },
- speed: {
- type: Number,
- value: 60,
- observer: 'init',
- },
- scrollable: null,
- leftIcon: {
- type: String,
- value: '',
- },
- color: String,
- backgroundColor: String,
- background: String,
- wrapable: Boolean,
- },
- data: {
- show: true,
- },
- created: function () {
- this.resetAnimation = wx.createAnimation({
- duration: 0,
- timingFunction: 'linear',
- });
- },
- destroyed: function () {
- this.timer && clearTimeout(this.timer);
- },
- mounted: function () {
- this.init();
- },
- methods: {
- init: function () {
- var _this = this;
- utils_1.requestAnimationFrame(function () {
- Promise.all([
- utils_1.getRect(_this, '.van-notice-bar__content'),
- utils_1.getRect(_this, '.van-notice-bar__wrap'),
- ]).then(function (rects) {
- var contentRect = rects[0],
- wrapRect = rects[1];
- var _a = _this.data,
- speed = _a.speed,
- scrollable = _a.scrollable,
- delay = _a.delay;
- if (
- contentRect == null ||
- wrapRect == null ||
- !contentRect.width ||
- !wrapRect.width ||
- scrollable === false
- ) {
- return;
- }
- if (scrollable || wrapRect.width < contentRect.width) {
- var duration =
- ((wrapRect.width + contentRect.width) / speed) * 1000;
- _this.wrapWidth = wrapRect.width;
- _this.contentWidth = contentRect.width;
- _this.duration = duration;
- _this.animation = wx.createAnimation({
- duration: duration,
- timingFunction: 'linear',
- delay: delay,
- });
- _this.scroll();
- }
+ created: function () {
+ this.resetAnimation = wx.createAnimation({
+ duration: 0,
+ timingFunction: 'linear',
});
- });
},
- scroll: function () {
- var _this = this;
- this.timer && clearTimeout(this.timer);
- this.timer = null;
- this.setData({
- animationData: this.resetAnimation
- .translateX(this.wrapWidth)
- .step()
- .export(),
- });
- utils_1.requestAnimationFrame(function () {
- _this.setData({
- animationData: _this.animation
- .translateX(-_this.contentWidth)
- .step()
- .export(),
- });
- });
- this.timer = setTimeout(function () {
- _this.scroll();
- }, this.duration);
- },
- onClickIcon: function (event) {
- if (this.data.mode === 'closeable') {
+ destroyed: function () {
this.timer && clearTimeout(this.timer);
- this.timer = null;
- this.setData({ show: false });
- this.$emit('close', event.detail);
- }
},
- onClick: function (event) {
- this.$emit('click', event);
+ mounted: function () {
+ this.init();
+ },
+ methods: {
+ init: function () {
+ var _this = this;
+ utils_1.requestAnimationFrame(function () {
+ Promise.all([
+ utils_1.getRect(_this, '.van-notice-bar__content'),
+ utils_1.getRect(_this, '.van-notice-bar__wrap'),
+ ]).then(function (rects) {
+ var contentRect = rects[0], wrapRect = rects[1];
+ var _a = _this.data, speed = _a.speed, scrollable = _a.scrollable, delay = _a.delay;
+ if (contentRect == null ||
+ wrapRect == null ||
+ !contentRect.width ||
+ !wrapRect.width ||
+ scrollable === false) {
+ return;
+ }
+ if (scrollable || wrapRect.width < contentRect.width) {
+ var duration = ((wrapRect.width + contentRect.width) / speed) * 1000;
+ _this.wrapWidth = wrapRect.width;
+ _this.contentWidth = contentRect.width;
+ _this.duration = duration;
+ _this.animation = wx.createAnimation({
+ duration: duration,
+ timingFunction: 'linear',
+ delay: delay,
+ });
+ _this.scroll();
+ }
+ });
+ });
+ },
+ scroll: function () {
+ var _this = this;
+ this.timer && clearTimeout(this.timer);
+ this.timer = null;
+ this.setData({
+ animationData: this.resetAnimation
+ .translateX(this.wrapWidth)
+ .step()
+ .export(),
+ });
+ utils_1.requestAnimationFrame(function () {
+ _this.setData({
+ animationData: _this.animation
+ .translateX(-_this.contentWidth)
+ .step()
+ .export(),
+ });
+ });
+ this.timer = setTimeout(function () {
+ _this.scroll();
+ }, this.duration);
+ },
+ onClickIcon: function (event) {
+ if (this.data.mode === 'closeable') {
+ this.timer && clearTimeout(this.timer);
+ this.timer = null;
+ this.setData({ show: false });
+ this.$emit('close', event.detail);
+ }
+ },
+ onClick: function (event) {
+ this.$emit('click', event);
+ },
},
- },
});
diff --git a/lib/notify/index.js b/lib/notify/index.js
index f2a9678c..0fdf5710 100644
--- a/lib/notify/index.js
+++ b/lib/notify/index.js
@@ -1,70 +1,68 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var color_1 = require('../common/color');
-var utils_1 = require('../common/utils');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var color_1 = require("../common/color");
+var utils_1 = require("../common/utils");
component_1.VantComponent({
- props: {
- message: String,
- background: String,
- type: {
- type: String,
- value: 'danger',
+ props: {
+ message: String,
+ background: String,
+ type: {
+ type: String,
+ value: 'danger',
+ },
+ color: {
+ type: String,
+ value: color_1.WHITE,
+ },
+ duration: {
+ type: Number,
+ value: 3000,
+ },
+ zIndex: {
+ type: Number,
+ value: 110,
+ },
+ safeAreaInsetTop: {
+ type: Boolean,
+ value: false,
+ },
+ top: null,
},
- color: {
- type: String,
- value: color_1.WHITE,
+ data: {
+ show: false,
+ onOpened: null,
+ onClose: null,
+ onClick: null,
},
- duration: {
- type: Number,
- value: 3000,
+ created: function () {
+ var statusBarHeight = utils_1.getSystemInfoSync().statusBarHeight;
+ this.setData({ statusBarHeight: statusBarHeight });
},
- zIndex: {
- type: Number,
- value: 110,
+ methods: {
+ show: function () {
+ var _this = this;
+ var _a = this.data, duration = _a.duration, onOpened = _a.onOpened;
+ clearTimeout(this.timer);
+ this.setData({ show: true });
+ wx.nextTick(onOpened);
+ if (duration > 0 && duration !== Infinity) {
+ this.timer = setTimeout(function () {
+ _this.hide();
+ }, duration);
+ }
+ },
+ hide: function () {
+ var onClose = this.data.onClose;
+ clearTimeout(this.timer);
+ this.setData({ show: false });
+ wx.nextTick(onClose);
+ },
+ onTap: function (event) {
+ var onClick = this.data.onClick;
+ if (onClick) {
+ onClick(event.detail);
+ }
+ },
},
- safeAreaInsetTop: {
- type: Boolean,
- value: false,
- },
- top: null,
- },
- data: {
- show: false,
- onOpened: null,
- onClose: null,
- onClick: null,
- },
- created: function () {
- var statusBarHeight = utils_1.getSystemInfoSync().statusBarHeight;
- this.setData({ statusBarHeight: statusBarHeight });
- },
- methods: {
- show: function () {
- var _this = this;
- var _a = this.data,
- duration = _a.duration,
- onOpened = _a.onOpened;
- clearTimeout(this.timer);
- this.setData({ show: true });
- wx.nextTick(onOpened);
- if (duration > 0 && duration !== Infinity) {
- this.timer = setTimeout(function () {
- _this.hide();
- }, duration);
- }
- },
- hide: function () {
- var onClose = this.data.onClose;
- clearTimeout(this.timer);
- this.setData({ show: false });
- wx.nextTick(onClose);
- },
- onTap: function (event) {
- var onClick = this.data.onClick;
- if (onClick) {
- onClick(event.detail);
- }
- },
- },
});
diff --git a/lib/notify/notify.js b/lib/notify/notify.js
index a789af17..1b57b1cf 100644
--- a/lib/notify/notify.js
+++ b/lib/notify/notify.js
@@ -1,64 +1,60 @@
-'use strict';
-var __assign =
- (this && this.__assign) ||
- function () {
- __assign =
- Object.assign ||
- function (t) {
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s)
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
+ 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 color_1 = require('../common/color');
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var color_1 = require("../common/color");
var defaultOptions = {
- selector: '#van-notify',
- type: 'danger',
- message: '',
- background: '',
- duration: 3000,
- zIndex: 110,
- top: 0,
- color: color_1.WHITE,
- safeAreaInsetTop: false,
- onClick: function () {},
- onOpened: function () {},
- onClose: function () {},
+ selector: '#van-notify',
+ type: 'danger',
+ message: '',
+ background: '',
+ duration: 3000,
+ zIndex: 110,
+ top: 0,
+ color: color_1.WHITE,
+ safeAreaInsetTop: false,
+ onClick: function () { },
+ onOpened: function () { },
+ onClose: function () { },
};
function parseOptions(message) {
- if (message == null) {
- return {};
- }
- return typeof message === 'string' ? { message: message } : message;
+ if (message == null) {
+ return {};
+ }
+ return typeof message === 'string' ? { message: message } : message;
}
function getContext() {
- var pages = getCurrentPages();
- return pages[pages.length - 1];
+ var pages = getCurrentPages();
+ return pages[pages.length - 1];
}
function Notify(options) {
- options = __assign(__assign({}, defaultOptions), parseOptions(options));
- var context = options.context || getContext();
- var notify = context.selectComponent(options.selector);
- delete options.context;
- delete options.selector;
- if (notify) {
- notify.setData(options);
- notify.show();
- return notify;
- }
- console.warn('未找到 van-notify 节点,请确认 selector 及 context 是否正确');
+ options = __assign(__assign({}, defaultOptions), parseOptions(options));
+ var context = options.context || getContext();
+ var notify = context.selectComponent(options.selector);
+ delete options.context;
+ delete options.selector;
+ if (notify) {
+ notify.setData(options);
+ notify.show();
+ return notify;
+ }
+ console.warn('未找到 van-notify 节点,请确认 selector 及 context 是否正确');
}
exports.default = Notify;
Notify.clear = function (options) {
- options = __assign(__assign({}, defaultOptions), parseOptions(options));
- var context = options.context || getContext();
- var notify = context.selectComponent(options.selector);
- if (notify) {
- notify.hide();
- }
+ options = __assign(__assign({}, defaultOptions), parseOptions(options));
+ var context = options.context || getContext();
+ var notify = context.selectComponent(options.selector);
+ if (notify) {
+ notify.hide();
+ }
};
diff --git a/lib/overlay/index.js b/lib/overlay/index.js
index a3e3a759..6634eb79 100644
--- a/lib/overlay/index.js
+++ b/lib/overlay/index.js
@@ -1,28 +1,28 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
component_1.VantComponent({
- props: {
- show: Boolean,
- customStyle: String,
- duration: {
- type: null,
- value: 300,
+ props: {
+ show: Boolean,
+ customStyle: String,
+ duration: {
+ type: null,
+ value: 300,
+ },
+ zIndex: {
+ type: Number,
+ value: 1,
+ },
+ lockScroll: {
+ type: Boolean,
+ value: true,
+ },
},
- zIndex: {
- type: Number,
- value: 1,
+ methods: {
+ onClick: function () {
+ this.$emit('click');
+ },
+ // for prevent touchmove
+ noop: function () { },
},
- lockScroll: {
- type: Boolean,
- value: true,
- },
- },
- methods: {
- onClick: function () {
- this.$emit('click');
- },
- // for prevent touchmove
- noop: function () {},
- },
});
diff --git a/lib/panel/index.js b/lib/panel/index.js
index 8f91b3cb..56489b5b 100644
--- a/lib/panel/index.js
+++ b/lib/panel/index.js
@@ -1,11 +1,11 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
component_1.VantComponent({
- classes: ['header-class', 'footer-class'],
- props: {
- desc: String,
- title: String,
- status: String,
- },
+ classes: ['header-class', 'footer-class'],
+ props: {
+ desc: String,
+ title: String,
+ status: String,
+ },
});
diff --git a/lib/picker-column/index.js b/lib/picker-column/index.js
index b2f0632c..b4a8d34f 100644
--- a/lib/picker-column/index.js
+++ b/lib/picker-column/index.js
@@ -1,132 +1,122 @@
-'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');
+"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;
component_1.VantComponent({
- classes: ['active-class'],
- props: {
- valueKey: String,
- className: String,
- itemHeight: Number,
- visibleItemCount: Number,
- initialOptions: {
- type: Array,
- value: [],
+ classes: ['active-class'],
+ props: {
+ valueKey: String,
+ className: String,
+ itemHeight: Number,
+ visibleItemCount: Number,
+ initialOptions: {
+ type: Array,
+ value: [],
+ },
+ defaultIndex: {
+ type: Number,
+ value: 0,
+ observer: function (value) {
+ this.setIndex(value);
+ },
+ },
},
- defaultIndex: {
- type: Number,
- value: 0,
- observer: function (value) {
- this.setIndex(value);
- },
- },
- },
- data: {
- startY: 0,
- offset: 0,
- duration: 0,
- startOffset: 0,
- options: [],
- currentIndex: 0,
- },
- created: function () {
- var _this = this;
- var _a = this.data,
- defaultIndex = _a.defaultIndex,
- initialOptions = _a.initialOptions;
- this.set({
- currentIndex: defaultIndex,
- options: initialOptions,
- }).then(function () {
- _this.setIndex(defaultIndex);
- });
- },
- methods: {
- getCount: function () {
- return this.data.options.length;
- },
- onTouchStart: function (event) {
- this.setData({
- startY: event.touches[0].clientY,
- startOffset: this.data.offset,
+ data: {
+ startY: 0,
+ offset: 0,
duration: 0,
- });
+ startOffset: 0,
+ options: [],
+ currentIndex: 0,
},
- onTouchMove: function (event) {
- var data = this.data;
- var deltaY = event.touches[0].clientY - data.startY;
- this.setData({
- offset: utils_1.range(
- data.startOffset + deltaY,
- -(this.getCount() * data.itemHeight),
- data.itemHeight
- ),
- });
+ created: function () {
+ var _this = this;
+ var _a = this.data, defaultIndex = _a.defaultIndex, initialOptions = _a.initialOptions;
+ this.set({
+ currentIndex: defaultIndex,
+ options: initialOptions,
+ }).then(function () {
+ _this.setIndex(defaultIndex);
+ });
},
- onTouchEnd: function () {
- var data = this.data;
- if (data.offset !== data.startOffset) {
- this.setData({ duration: DEFAULT_DURATION });
- var index = utils_1.range(
- Math.round(-data.offset / data.itemHeight),
- 0,
- this.getCount() - 1
- );
- this.setIndex(index, true);
- }
+ methods: {
+ getCount: function () {
+ return this.data.options.length;
+ },
+ onTouchStart: function (event) {
+ this.setData({
+ startY: event.touches[0].clientY,
+ startOffset: this.data.offset,
+ duration: 0,
+ });
+ },
+ onTouchMove: function (event) {
+ var data = this.data;
+ var deltaY = event.touches[0].clientY - data.startY;
+ this.setData({
+ offset: utils_1.range(data.startOffset + deltaY, -(this.getCount() * data.itemHeight), data.itemHeight),
+ });
+ },
+ onTouchEnd: function () {
+ var data = this.data;
+ if (data.offset !== data.startOffset) {
+ this.setData({ duration: DEFAULT_DURATION });
+ var index = 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.data;
+ var count = this.getCount();
+ index = 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 validator_1.isObj(option) && option.disabled;
+ },
+ getOptionText: function (option) {
+ var data = this.data;
+ return validator_1.isObj(option) && data.valueKey in option
+ ? option[data.valueKey]
+ : option;
+ },
+ setIndex: function (index, userAction) {
+ var _this = this;
+ var data = this.data;
+ index = this.adjustIndex(index) || 0;
+ var offset = -index * data.itemHeight;
+ if (index !== data.currentIndex) {
+ return this.set({ offset: offset, currentIndex: index }).then(function () {
+ userAction && _this.$emit('change', index);
+ });
+ }
+ return this.set({ offset: offset });
+ },
+ setValue: function (value) {
+ var options = this.data.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.data;
+ return data.options[data.currentIndex];
+ },
},
- onClickItem: function (event) {
- var index = event.currentTarget.dataset.index;
- this.setIndex(index, true);
- },
- adjustIndex: function (index) {
- var data = this.data;
- var count = this.getCount();
- index = 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 validator_1.isObj(option) && option.disabled;
- },
- getOptionText: function (option) {
- var data = this.data;
- return validator_1.isObj(option) && data.valueKey in option
- ? option[data.valueKey]
- : option;
- },
- setIndex: function (index, userAction) {
- var _this = this;
- var data = this.data;
- index = this.adjustIndex(index) || 0;
- var offset = -index * data.itemHeight;
- if (index !== data.currentIndex) {
- return this.set({ offset: offset, currentIndex: index }).then(
- function () {
- userAction && _this.$emit('change', index);
- }
- );
- }
- return this.set({ offset: offset });
- },
- setValue: function (value) {
- var options = this.data.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.data;
- return data.options[data.currentIndex];
- },
- },
});
diff --git a/lib/picker/index.js b/lib/picker/index.js
index 8e5d1174..b737ef93 100644
--- a/lib/picker/index.js
+++ b/lib/picker/index.js
@@ -1,179 +1,161 @@
-'use strict';
-var __assign =
- (this && this.__assign) ||
- function () {
- __assign =
- Object.assign ||
- function (t) {
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s)
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
+ 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');
-var shared_1 = require('./shared');
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var shared_1 = require("./shared");
component_1.VantComponent({
- classes: ['active-class', 'toolbar-class', 'column-class'],
- props: __assign(__assign({}, shared_1.pickerProps), {
- valueKey: {
- type: String,
- value: 'text',
- },
- toolbarPosition: {
- type: String,
- value: 'top',
- },
- defaultIndex: {
- type: Number,
- value: 0,
- },
- columns: {
- type: Array,
- value: [],
- observer: function (columns) {
- if (columns === void 0) {
- columns = [];
- }
- this.simple = columns.length && !columns[0].values;
- if (Array.isArray(this.children) && this.children.length) {
- this.setColumns().catch(function () {});
- }
- },
- },
- }),
- beforeCreate: function () {
- var _this = this;
- Object.defineProperty(this, 'children', {
- get: function () {
- return _this.selectAllComponents('.van-picker__column') || [];
- },
- });
- },
- methods: {
- noop: function () {},
- setColumns: function () {
- var _this = this;
- var data = this.data;
- var columns = this.simple ? [{ values: data.columns }] : data.columns;
- var stack = columns.map(function (column, index) {
- return _this.setColumnValues(index, column.values);
- });
- return Promise.all(stack);
- },
- emit: function (event) {
- var type = event.currentTarget.dataset.type;
- if (this.simple) {
- this.$emit(type, {
- value: this.getColumnValue(0),
- index: this.getColumnIndex(0),
+ classes: ['active-class', 'toolbar-class', 'column-class'],
+ props: __assign(__assign({}, shared_1.pickerProps), { valueKey: {
+ type: String,
+ value: 'text',
+ }, toolbarPosition: {
+ type: String,
+ value: 'top',
+ }, defaultIndex: {
+ type: Number,
+ value: 0,
+ }, columns: {
+ type: Array,
+ value: [],
+ observer: function (columns) {
+ if (columns === void 0) { columns = []; }
+ this.simple = columns.length && !columns[0].values;
+ if (Array.isArray(this.children) && this.children.length) {
+ this.setColumns().catch(function () { });
+ }
+ },
+ } }),
+ beforeCreate: function () {
+ var _this = this;
+ Object.defineProperty(this, 'children', {
+ get: function () { return _this.selectAllComponents('.van-picker__column') || []; },
});
- } else {
- this.$emit(type, {
- value: this.getValues(),
- index: this.getIndexes(),
- });
- }
},
- onChange: function (event) {
- if (this.simple) {
- this.$emit('change', {
- picker: this,
- value: this.getColumnValue(0),
- index: this.getColumnIndex(0),
- });
- } else {
- this.$emit('change', {
- picker: this,
- value: this.getValues(),
- index: event.currentTarget.dataset.index,
- });
- }
+ methods: {
+ noop: function () { },
+ setColumns: function () {
+ var _this = this;
+ var data = this.data;
+ var columns = this.simple ? [{ values: data.columns }] : data.columns;
+ var stack = columns.map(function (column, index) {
+ return _this.setColumnValues(index, column.values);
+ });
+ return Promise.all(stack);
+ },
+ emit: function (event) {
+ var type = event.currentTarget.dataset.type;
+ if (this.simple) {
+ this.$emit(type, {
+ value: this.getColumnValue(0),
+ index: this.getColumnIndex(0),
+ });
+ }
+ else {
+ this.$emit(type, {
+ value: this.getValues(),
+ index: this.getIndexes(),
+ });
+ }
+ },
+ onChange: function (event) {
+ if (this.simple) {
+ this.$emit('change', {
+ picker: this,
+ value: this.getColumnValue(0),
+ index: this.getColumnIndex(0),
+ });
+ }
+ else {
+ this.$emit('change', {
+ picker: this,
+ value: this.getValues(),
+ index: event.currentTarget.dataset.index,
+ });
+ }
+ },
+ // get column instance by index
+ getColumn: function (index) {
+ return this.children[index];
+ },
+ // get column value by index
+ getColumnValue: function (index) {
+ var column = this.getColumn(index);
+ return column && column.getValue();
+ },
+ // set column value by index
+ setColumnValue: function (index, value) {
+ var column = this.getColumn(index);
+ if (column == null) {
+ return Promise.reject(new Error('setColumnValue: 对应列不存在'));
+ }
+ return column.setValue(value);
+ },
+ // get column option index by column index
+ getColumnIndex: function (columnIndex) {
+ return (this.getColumn(columnIndex) || {}).data.currentIndex;
+ },
+ // set column option index by column index
+ setColumnIndex: function (columnIndex, optionIndex) {
+ var column = this.getColumn(columnIndex);
+ if (column == null) {
+ return Promise.reject(new Error('setColumnIndex: 对应列不存在'));
+ }
+ return column.setIndex(optionIndex);
+ },
+ // get options of column by index
+ getColumnValues: function (index) {
+ return (this.children[index] || {}).data.options;
+ },
+ // set options of column by index
+ setColumnValues: function (index, options, needReset) {
+ if (needReset === void 0) { needReset = true; }
+ var column = this.children[index];
+ if (column == null) {
+ return Promise.reject(new Error('setColumnValues: 对应列不存在'));
+ }
+ var isSame = JSON.stringify(column.data.options) === JSON.stringify(options);
+ if (isSame) {
+ return Promise.resolve();
+ }
+ return column.set({ options: options }).then(function () {
+ if (needReset) {
+ column.setIndex(0);
+ }
+ });
+ },
+ // get values of all columns
+ getValues: function () {
+ return this.children.map(function (child) { return child.getValue(); });
+ },
+ // set values of all columns
+ setValues: function (values) {
+ var _this = this;
+ var stack = values.map(function (value, index) {
+ return _this.setColumnValue(index, value);
+ });
+ return Promise.all(stack);
+ },
+ // get indexes of all columns
+ getIndexes: function () {
+ return this.children.map(function (child) { return child.data.currentIndex; });
+ },
+ // set indexes of all columns
+ setIndexes: function (indexes) {
+ var _this = this;
+ var stack = indexes.map(function (optionIndex, columnIndex) {
+ return _this.setColumnIndex(columnIndex, optionIndex);
+ });
+ return Promise.all(stack);
+ },
},
- // get column instance by index
- getColumn: function (index) {
- return this.children[index];
- },
- // get column value by index
- getColumnValue: function (index) {
- var column = this.getColumn(index);
- return column && column.getValue();
- },
- // set column value by index
- setColumnValue: function (index, value) {
- var column = this.getColumn(index);
- if (column == null) {
- return Promise.reject(new Error('setColumnValue: 对应列不存在'));
- }
- return column.setValue(value);
- },
- // get column option index by column index
- getColumnIndex: function (columnIndex) {
- return (this.getColumn(columnIndex) || {}).data.currentIndex;
- },
- // set column option index by column index
- setColumnIndex: function (columnIndex, optionIndex) {
- var column = this.getColumn(columnIndex);
- if (column == null) {
- return Promise.reject(new Error('setColumnIndex: 对应列不存在'));
- }
- return column.setIndex(optionIndex);
- },
- // get options of column by index
- getColumnValues: function (index) {
- return (this.children[index] || {}).data.options;
- },
- // set options of column by index
- setColumnValues: function (index, options, needReset) {
- if (needReset === void 0) {
- needReset = true;
- }
- var column = this.children[index];
- if (column == null) {
- return Promise.reject(new Error('setColumnValues: 对应列不存在'));
- }
- var isSame =
- JSON.stringify(column.data.options) === JSON.stringify(options);
- if (isSame) {
- return Promise.resolve();
- }
- return column.set({ options: options }).then(function () {
- if (needReset) {
- column.setIndex(0);
- }
- });
- },
- // get values of all columns
- getValues: function () {
- return this.children.map(function (child) {
- return child.getValue();
- });
- },
- // set values of all columns
- setValues: function (values) {
- var _this = this;
- var stack = values.map(function (value, index) {
- return _this.setColumnValue(index, value);
- });
- return Promise.all(stack);
- },
- // get indexes of all columns
- getIndexes: function () {
- return this.children.map(function (child) {
- return child.data.currentIndex;
- });
- },
- // set indexes of all columns
- setIndexes: function (indexes) {
- var _this = this;
- var stack = indexes.map(function (optionIndex, columnIndex) {
- return _this.setColumnIndex(columnIndex, optionIndex);
- });
- return Promise.all(stack);
- },
- },
});
diff --git a/lib/picker/shared.js b/lib/picker/shared.js
index 9b2ca48a..3d40a8c5 100644
--- a/lib/picker/shared.js
+++ b/lib/picker/shared.js
@@ -1,24 +1,24 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
+"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,
- },
+ title: String,
+ loading: Boolean,
+ showToolbar: Boolean,
+ cancelButtonText: {
+ type: String,
+ value: '取消',
+ },
+ confirmButtonText: {
+ type: String,
+ value: '确认',
+ },
+ visibleItemCount: {
+ type: Number,
+ value: 6,
+ },
+ itemHeight: {
+ type: Number,
+ value: 44,
+ },
};
diff --git a/lib/popup/index.js b/lib/popup/index.js
index 7d819a47..9a1976cd 100644
--- a/lib/popup/index.js
+++ b/lib/popup/index.js
@@ -1,93 +1,91 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var transition_1 = require('../mixins/transition');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var transition_1 = require("../mixins/transition");
component_1.VantComponent({
- classes: [
- 'enter-class',
- 'enter-active-class',
- 'enter-to-class',
- 'leave-class',
- 'leave-active-class',
- 'leave-to-class',
- 'close-icon-class',
- ],
- mixins: [transition_1.transition(false)],
- props: {
- round: Boolean,
- closeable: Boolean,
- customStyle: String,
- overlayStyle: String,
- transition: {
- type: String,
- observer: 'observeClass',
+ classes: [
+ 'enter-class',
+ 'enter-active-class',
+ 'enter-to-class',
+ 'leave-class',
+ 'leave-active-class',
+ 'leave-to-class',
+ 'close-icon-class',
+ ],
+ mixins: [transition_1.transition(false)],
+ props: {
+ round: Boolean,
+ closeable: Boolean,
+ customStyle: String,
+ overlayStyle: String,
+ transition: {
+ type: String,
+ observer: 'observeClass',
+ },
+ zIndex: {
+ type: Number,
+ value: 100,
+ },
+ overlay: {
+ type: Boolean,
+ value: true,
+ },
+ closeIcon: {
+ type: String,
+ value: 'cross',
+ },
+ closeIconPosition: {
+ type: String,
+ value: 'top-right',
+ },
+ closeOnClickOverlay: {
+ type: Boolean,
+ value: true,
+ },
+ position: {
+ type: String,
+ value: 'center',
+ observer: 'observeClass',
+ },
+ safeAreaInsetBottom: {
+ type: Boolean,
+ value: true,
+ },
+ safeAreaInsetTop: {
+ type: Boolean,
+ value: false,
+ },
+ lockScroll: {
+ type: Boolean,
+ value: true,
+ },
},
- zIndex: {
- type: Number,
- value: 100,
+ created: function () {
+ this.observeClass();
},
- overlay: {
- type: Boolean,
- value: true,
+ methods: {
+ onClickCloseIcon: function () {
+ this.$emit('close');
+ },
+ onClickOverlay: function () {
+ this.$emit('click-overlay');
+ if (this.data.closeOnClickOverlay) {
+ this.$emit('close');
+ }
+ },
+ observeClass: function () {
+ var _a = this.data, transition = _a.transition, position = _a.position, 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);
+ },
},
- closeIcon: {
- type: String,
- value: 'cross',
- },
- closeIconPosition: {
- type: String,
- value: 'top-right',
- },
- closeOnClickOverlay: {
- type: Boolean,
- value: true,
- },
- position: {
- type: String,
- value: 'center',
- observer: 'observeClass',
- },
- safeAreaInsetBottom: {
- type: Boolean,
- value: true,
- },
- safeAreaInsetTop: {
- type: Boolean,
- value: false,
- },
- lockScroll: {
- type: Boolean,
- value: true,
- },
- },
- created: function () {
- this.observeClass();
- },
- methods: {
- onClickCloseIcon: function () {
- this.$emit('close');
- },
- onClickOverlay: function () {
- this.$emit('click-overlay');
- if (this.data.closeOnClickOverlay) {
- this.$emit('close');
- }
- },
- observeClass: function () {
- var _a = this.data,
- transition = _a.transition,
- position = _a.position,
- 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);
- },
- },
});
diff --git a/lib/progress/index.js b/lib/progress/index.js
index f41cf4ff..5c5c01be 100644
--- a/lib/progress/index.js
+++ b/lib/progress/index.js
@@ -1,56 +1,55 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var color_1 = require('../common/color');
-var utils_1 = require('../common/utils');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var color_1 = require("../common/color");
+var utils_1 = require("../common/utils");
component_1.VantComponent({
- props: {
- inactive: Boolean,
- percentage: {
- type: Number,
- observer: 'setLeft',
+ props: {
+ inactive: Boolean,
+ percentage: {
+ type: Number,
+ observer: 'setLeft',
+ },
+ pivotText: String,
+ pivotColor: String,
+ trackColor: String,
+ showPivot: {
+ type: Boolean,
+ value: true,
+ },
+ color: {
+ type: String,
+ value: color_1.BLUE,
+ },
+ textColor: {
+ type: String,
+ value: '#fff',
+ },
+ strokeWidth: {
+ type: null,
+ value: 4,
+ },
},
- pivotText: String,
- pivotColor: String,
- trackColor: String,
- showPivot: {
- type: Boolean,
- value: true,
+ data: {
+ right: 0,
},
- color: {
- type: String,
- value: color_1.BLUE,
+ mounted: function () {
+ this.setLeft();
},
- textColor: {
- type: String,
- value: '#fff',
+ methods: {
+ setLeft: function () {
+ var _this = this;
+ Promise.all([
+ utils_1.getRect(this, '.van-progress'),
+ utils_1.getRect(this, '.van-progress__pivot'),
+ ]).then(function (_a) {
+ var portion = _a[0], pivot = _a[1];
+ if (portion && pivot) {
+ _this.setData({
+ right: (pivot.width * (_this.data.percentage - 100)) / 100,
+ });
+ }
+ });
+ },
},
- strokeWidth: {
- type: null,
- value: 4,
- },
- },
- data: {
- right: 0,
- },
- mounted: function () {
- this.setLeft();
- },
- methods: {
- setLeft: function () {
- var _this = this;
- Promise.all([
- utils_1.getRect(this, '.van-progress'),
- utils_1.getRect(this, '.van-progress__pivot'),
- ]).then(function (_a) {
- var portion = _a[0],
- pivot = _a[1];
- if (portion && pivot) {
- _this.setData({
- right: (pivot.width * (_this.data.percentage - 100)) / 100,
- });
- }
- });
- },
- },
});
diff --git a/lib/radio-group/index.js b/lib/radio-group/index.js
index cd2e0528..b491ca1f 100644
--- a/lib/radio-group/index.js
+++ b/lib/radio-group/index.js
@@ -1,26 +1,24 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var relation_1 = require('../common/relation');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
component_1.VantComponent({
- field: true,
- relation: relation_1.useChildren('radio'),
- props: {
- value: {
- type: null,
- observer: 'updateChildren',
+ field: true,
+ relation: relation_1.useChildren('radio'),
+ props: {
+ value: {
+ type: null,
+ observer: 'updateChildren',
+ },
+ direction: String,
+ disabled: {
+ type: Boolean,
+ observer: 'updateChildren',
+ },
},
- direction: String,
- disabled: {
- type: Boolean,
- observer: 'updateChildren',
+ methods: {
+ updateChildren: function () {
+ this.children.forEach(function (child) { return child.updateFromParent(); });
+ },
},
- },
- methods: {
- updateChildren: function () {
- this.children.forEach(function (child) {
- return child.updateFromParent();
- });
- },
- },
});
diff --git a/lib/radio/index.js b/lib/radio/index.js
index 9d9fc0c8..1c9f356a 100644
--- a/lib/radio/index.js
+++ b/lib/radio/index.js
@@ -1,75 +1,68 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var version_1 = require('../common/version');
-var component_1 = require('../common/component');
-var relation_1 = require('../common/relation');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var version_1 = require("../common/version");
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
component_1.VantComponent({
- field: true,
- relation: relation_1.useParent('radio-group', function () {
- this.updateFromParent();
- }),
- classes: ['icon-class', 'label-class'],
- props: {
- name: null,
- value: null,
- disabled: Boolean,
- useIconSlot: Boolean,
- checkedColor: String,
- labelPosition: {
- type: String,
- value: 'right',
+ field: true,
+ relation: relation_1.useParent('radio-group', function () {
+ this.updateFromParent();
+ }),
+ classes: ['icon-class', 'label-class'],
+ props: {
+ name: null,
+ value: null,
+ disabled: Boolean,
+ useIconSlot: Boolean,
+ checkedColor: String,
+ labelPosition: {
+ type: String,
+ value: 'right',
+ },
+ labelDisabled: Boolean,
+ shape: {
+ type: String,
+ value: 'round',
+ },
+ iconSize: {
+ type: null,
+ value: 20,
+ },
},
- labelDisabled: Boolean,
- shape: {
- type: String,
- value: 'round',
+ data: {
+ direction: '',
+ parentDisabled: false,
},
- iconSize: {
- type: null,
- value: 20,
+ methods: {
+ updateFromParent: function () {
+ if (!this.parent) {
+ return;
+ }
+ var _a = this.parent.data, value = _a.value, parentDisabled = _a.disabled, direction = _a.direction;
+ this.setData({
+ value: value,
+ direction: direction,
+ parentDisabled: parentDisabled,
+ });
+ },
+ emitChange: function (value) {
+ var instance = this.parent || this;
+ instance.$emit('input', value);
+ instance.$emit('change', value);
+ if (version_1.canIUseModel()) {
+ instance.setData({ value: value });
+ }
+ },
+ onChange: function () {
+ if (!this.data.disabled && !this.data.parentDisabled) {
+ this.emitChange(this.data.name);
+ }
+ },
+ onClickLabel: function () {
+ var _a = this.data, disabled = _a.disabled, parentDisabled = _a.parentDisabled, labelDisabled = _a.labelDisabled, name = _a.name;
+ if (!(disabled || parentDisabled) && !labelDisabled) {
+ this.emitChange(name);
+ }
+ },
},
- },
- data: {
- direction: '',
- parentDisabled: false,
- },
- methods: {
- updateFromParent: function () {
- if (!this.parent) {
- return;
- }
- var _a = this.parent.data,
- value = _a.value,
- parentDisabled = _a.disabled,
- direction = _a.direction;
- this.setData({
- value: value,
- direction: direction,
- parentDisabled: parentDisabled,
- });
- },
- emitChange: function (value) {
- var instance = this.parent || this;
- instance.$emit('input', value);
- instance.$emit('change', value);
- if (version_1.canIUseModel()) {
- instance.setData({ value: value });
- }
- },
- onChange: function () {
- if (!this.data.disabled && !this.data.parentDisabled) {
- this.emitChange(this.data.name);
- }
- },
- onClickLabel: function () {
- var _a = this.data,
- disabled = _a.disabled,
- parentDisabled = _a.parentDisabled,
- labelDisabled = _a.labelDisabled,
- name = _a.name;
- if (!(disabled || parentDisabled) && !labelDisabled) {
- this.emitChange(name);
- }
- },
- },
});
diff --git a/lib/rate/index.js b/lib/rate/index.js
index a9539582..cbbf4a79 100644
--- a/lib/rate/index.js
+++ b/lib/rate/index.js
@@ -1,102 +1,93 @@
-'use strict';
-var __assign =
- (this && this.__assign) ||
- function () {
- __assign =
- Object.assign ||
- function (t) {
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s)
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
+ 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 utils_1 = require('../common/utils');
-var component_1 = require('../common/component');
-var version_1 = require('../common/version');
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var utils_1 = require("../common/utils");
+var component_1 = require("../common/component");
+var version_1 = require("../common/version");
component_1.VantComponent({
- field: true,
- classes: ['icon-class'],
- props: {
- value: {
- type: Number,
- observer: function (value) {
- if (value !== this.data.innerValue) {
- this.setData({ innerValue: value });
- }
- },
+ field: true,
+ classes: ['icon-class'],
+ props: {
+ value: {
+ type: Number,
+ observer: function (value) {
+ if (value !== this.data.innerValue) {
+ this.setData({ innerValue: value });
+ }
+ },
+ },
+ readonly: Boolean,
+ disabled: Boolean,
+ allowHalf: Boolean,
+ size: null,
+ icon: {
+ type: String,
+ value: 'star',
+ },
+ voidIcon: {
+ type: String,
+ value: 'star-o',
+ },
+ color: String,
+ voidColor: String,
+ disabledColor: String,
+ count: {
+ type: Number,
+ value: 5,
+ observer: function (value) {
+ this.setData({ innerCountArray: Array.from({ length: value }) });
+ },
+ },
+ gutter: null,
+ touchable: {
+ type: Boolean,
+ value: true,
+ },
},
- readonly: Boolean,
- disabled: Boolean,
- allowHalf: Boolean,
- size: null,
- icon: {
- type: String,
- value: 'star',
+ data: {
+ innerValue: 0,
+ innerCountArray: Array.from({ length: 5 }),
},
- voidIcon: {
- type: String,
- value: 'star-o',
+ methods: {
+ onSelect: function (event) {
+ var _this = this;
+ var data = this.data;
+ var score = event.currentTarget.dataset.score;
+ if (!data.disabled && !data.readonly) {
+ this.setData({ innerValue: score + 1 });
+ if (version_1.canIUseModel()) {
+ this.setData({ value: score + 1 });
+ }
+ wx.nextTick(function () {
+ _this.$emit('input', score + 1);
+ _this.$emit('change', score + 1);
+ });
+ }
+ },
+ onTouchMove: function (event) {
+ var _this = this;
+ var touchable = this.data.touchable;
+ if (!touchable)
+ return;
+ var clientX = event.touches[0].clientX;
+ utils_1.getAllRect(this, '.van-rate__icon').then(function (list) {
+ var target = list
+ .sort(function (cur, next) { return cur.dataset.score - next.dataset.score; })
+ .find(function (item) { return clientX >= item.left && clientX <= item.right; });
+ if (target != null) {
+ _this.onSelect(__assign(__assign({}, event), { currentTarget: target }));
+ }
+ });
+ },
},
- color: String,
- voidColor: String,
- disabledColor: String,
- count: {
- type: Number,
- value: 5,
- observer: function (value) {
- this.setData({ innerCountArray: Array.from({ length: value }) });
- },
- },
- gutter: null,
- touchable: {
- type: Boolean,
- value: true,
- },
- },
- data: {
- innerValue: 0,
- innerCountArray: Array.from({ length: 5 }),
- },
- methods: {
- onSelect: function (event) {
- var _this = this;
- var data = this.data;
- var score = event.currentTarget.dataset.score;
- if (!data.disabled && !data.readonly) {
- this.setData({ innerValue: score + 1 });
- if (version_1.canIUseModel()) {
- this.setData({ value: score + 1 });
- }
- wx.nextTick(function () {
- _this.$emit('input', score + 1);
- _this.$emit('change', score + 1);
- });
- }
- },
- onTouchMove: function (event) {
- var _this = this;
- var touchable = this.data.touchable;
- if (!touchable) return;
- var clientX = event.touches[0].clientX;
- utils_1.getAllRect(this, '.van-rate__icon').then(function (list) {
- var target = list
- .sort(function (cur, next) {
- return cur.dataset.score - next.dataset.score;
- })
- .find(function (item) {
- return clientX >= item.left && clientX <= item.right;
- });
- if (target != null) {
- _this.onSelect(
- __assign(__assign({}, event), { currentTarget: target })
- );
- }
- });
- },
- },
});
diff --git a/lib/row/index.js b/lib/row/index.js
index a107b649..1595948c 100644
--- a/lib/row/index.js
+++ b/lib/row/index.js
@@ -1,26 +1,26 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var relation_1 = require('../common/relation');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
component_1.VantComponent({
- relation: relation_1.useChildren('col', function (target) {
- var gutter = this.data.gutter;
- if (gutter) {
- target.setData({ gutter: gutter });
- }
- }),
- props: {
- gutter: {
- type: Number,
- observer: 'setGutter',
+ relation: relation_1.useChildren('col', function (target) {
+ var gutter = this.data.gutter;
+ if (gutter) {
+ target.setData({ gutter: gutter });
+ }
+ }),
+ props: {
+ gutter: {
+ type: Number,
+ observer: 'setGutter',
+ },
},
- },
- methods: {
- setGutter: function () {
- var _this = this;
- this.children.forEach(function (col) {
- col.setData(_this.data);
- });
+ methods: {
+ setGutter: function () {
+ var _this = this;
+ this.children.forEach(function (col) {
+ col.setData(_this.data);
+ });
+ },
},
- },
});
diff --git a/lib/search/index.js b/lib/search/index.js
index 93945615..245fd57d 100644
--- a/lib/search/index.js
+++ b/lib/search/index.js
@@ -1,92 +1,92 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var version_1 = require('../common/version');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var version_1 = require("../common/version");
component_1.VantComponent({
- field: true,
- classes: ['field-class', 'input-class', 'cancel-class'],
- props: {
- label: String,
- focus: Boolean,
- error: Boolean,
- disabled: Boolean,
- readonly: Boolean,
- inputAlign: String,
- showAction: Boolean,
- useActionSlot: Boolean,
- useLeftIconSlot: Boolean,
- useRightIconSlot: Boolean,
- leftIcon: {
- type: String,
- value: 'search',
+ field: true,
+ classes: ['field-class', 'input-class', 'cancel-class'],
+ props: {
+ label: String,
+ focus: Boolean,
+ error: Boolean,
+ disabled: Boolean,
+ readonly: Boolean,
+ inputAlign: String,
+ showAction: Boolean,
+ useActionSlot: Boolean,
+ useLeftIconSlot: Boolean,
+ useRightIconSlot: Boolean,
+ leftIcon: {
+ type: String,
+ value: 'search',
+ },
+ rightIcon: String,
+ placeholder: String,
+ placeholderStyle: String,
+ actionText: {
+ type: String,
+ value: '取消',
+ },
+ background: {
+ type: String,
+ value: '#ffffff',
+ },
+ maxlength: {
+ type: Number,
+ value: -1,
+ },
+ shape: {
+ type: String,
+ value: 'square',
+ },
+ clearable: {
+ type: Boolean,
+ value: true,
+ },
+ clearTrigger: {
+ type: String,
+ value: 'focus',
+ },
+ clearIcon: {
+ type: String,
+ value: 'clear',
+ },
},
- rightIcon: String,
- placeholder: String,
- placeholderStyle: String,
- actionText: {
- type: String,
- value: '取消',
+ methods: {
+ onChange: function (event) {
+ if (version_1.canIUseModel()) {
+ this.setData({ value: event.detail });
+ }
+ this.$emit('change', event.detail);
+ },
+ onCancel: function () {
+ var _this = this;
+ /**
+ * 修复修改输入框值时,输入框失焦和赋值同时触发,赋值失效
+ * https://github.com/youzan/@vant/weapp/issues/1768
+ */
+ setTimeout(function () {
+ if (version_1.canIUseModel()) {
+ _this.setData({ value: '' });
+ }
+ _this.$emit('cancel');
+ _this.$emit('change', '');
+ }, 200);
+ },
+ onSearch: function (event) {
+ this.$emit('search', event.detail);
+ },
+ onFocus: function (event) {
+ this.$emit('focus', event.detail);
+ },
+ onBlur: function (event) {
+ this.$emit('blur', event.detail);
+ },
+ onClear: function (event) {
+ this.$emit('clear', event.detail);
+ },
+ onClickInput: function (event) {
+ this.$emit('click-input', event.detail);
+ },
},
- background: {
- type: String,
- value: '#ffffff',
- },
- maxlength: {
- type: Number,
- value: -1,
- },
- shape: {
- type: String,
- value: 'square',
- },
- clearable: {
- type: Boolean,
- value: true,
- },
- clearTrigger: {
- type: String,
- value: 'focus',
- },
- clearIcon: {
- type: String,
- value: 'clear',
- },
- },
- methods: {
- onChange: function (event) {
- if (version_1.canIUseModel()) {
- this.setData({ value: event.detail });
- }
- this.$emit('change', event.detail);
- },
- onCancel: function () {
- var _this = this;
- /**
- * 修复修改输入框值时,输入框失焦和赋值同时触发,赋值失效
- * https://github.com/youzan/@vant/weapp/issues/1768
- */
- setTimeout(function () {
- if (version_1.canIUseModel()) {
- _this.setData({ value: '' });
- }
- _this.$emit('cancel');
- _this.$emit('change', '');
- }, 200);
- },
- onSearch: function (event) {
- this.$emit('search', event.detail);
- },
- onFocus: function (event) {
- this.$emit('focus', event.detail);
- },
- onBlur: function (event) {
- this.$emit('blur', event.detail);
- },
- onClear: function (event) {
- this.$emit('clear', event.detail);
- },
- onClickInput: function (event) {
- this.$emit('click-input', event.detail);
- },
- },
});
diff --git a/lib/share-sheet/index.js b/lib/share-sheet/index.js
index 0040e147..818f8edc 100644
--- a/lib/share-sheet/index.js
+++ b/lib/share-sheet/index.js
@@ -1,57 +1,57 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
component_1.VantComponent({
- props: {
- // whether to show popup
- show: Boolean,
- // overlay custom style
- overlayStyle: String,
- // z-index
- zIndex: {
- type: Number,
- value: 100,
+ props: {
+ // whether to show popup
+ show: Boolean,
+ // overlay custom style
+ overlayStyle: String,
+ // z-index
+ zIndex: {
+ type: Number,
+ value: 100,
+ },
+ title: String,
+ cancelText: {
+ type: String,
+ value: '取消',
+ },
+ description: String,
+ options: {
+ type: Array,
+ value: [],
+ },
+ overlay: {
+ type: Boolean,
+ value: true,
+ },
+ safeAreaInsetBottom: {
+ type: Boolean,
+ value: true,
+ },
+ closeOnClickOverlay: {
+ type: Boolean,
+ value: true,
+ },
+ duration: {
+ type: null,
+ value: 300,
+ },
},
- title: String,
- cancelText: {
- type: String,
- value: '取消',
+ methods: {
+ onClickOverlay: function () {
+ this.$emit('click-overlay');
+ },
+ onCancel: function () {
+ this.onClose();
+ this.$emit('cancel');
+ },
+ onSelect: function (event) {
+ this.$emit('select', event.detail);
+ },
+ onClose: function () {
+ this.$emit('close');
+ },
},
- description: String,
- options: {
- type: Array,
- value: [],
- },
- overlay: {
- type: Boolean,
- value: true,
- },
- safeAreaInsetBottom: {
- type: Boolean,
- value: true,
- },
- closeOnClickOverlay: {
- type: Boolean,
- value: true,
- },
- duration: {
- type: null,
- value: 300,
- },
- },
- methods: {
- onClickOverlay: function () {
- this.$emit('click-overlay');
- },
- onCancel: function () {
- this.onClose();
- this.$emit('cancel');
- },
- onSelect: function (event) {
- this.$emit('select', event.detail);
- },
- onClose: function () {
- this.$emit('close');
- },
- },
});
diff --git a/lib/share-sheet/options.js b/lib/share-sheet/options.js
index f503f4c6..fbdddae6 100644
--- a/lib/share-sheet/options.js
+++ b/lib/share-sheet/options.js
@@ -1,31 +1,27 @@
-'use strict';
-var __assign =
- (this && this.__assign) ||
- function () {
- __assign =
- Object.assign ||
- function (t) {
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s)
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
+ 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');
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
component_1.VantComponent({
- props: {
- options: Array,
- showBorder: Boolean,
- },
- methods: {
- onSelect: function (event) {
- var index = event.currentTarget.dataset.index;
- var option = this.data.options[index];
- this.$emit('select', __assign(__assign({}, option), { index: index }));
+ props: {
+ options: Array,
+ showBorder: Boolean,
+ },
+ methods: {
+ onSelect: function (event) {
+ var index = event.currentTarget.dataset.index;
+ var option = this.data.options[index];
+ this.$emit('select', __assign(__assign({}, option), { index: index }));
+ },
},
- },
});
diff --git a/lib/sidebar-item/index.js b/lib/sidebar-item/index.js
index a5ed300b..290e8c00 100644
--- a/lib/sidebar-item/index.js
+++ b/lib/sidebar-item/index.js
@@ -1,32 +1,32 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var relation_1 = require('../common/relation');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
component_1.VantComponent({
- classes: ['active-class', 'disabled-class'],
- relation: relation_1.useParent('sidebar'),
- props: {
- dot: Boolean,
- badge: null,
- info: null,
- title: String,
- disabled: Boolean,
- },
- methods: {
- onClick: function () {
- var _this = this;
- var parent = this.parent;
- if (!parent || this.data.disabled) {
- return;
- }
- var index = parent.children.indexOf(this);
- parent.setActive(index).then(function () {
- _this.$emit('click', index);
- parent.$emit('change', index);
- });
+ classes: ['active-class', 'disabled-class'],
+ relation: relation_1.useParent('sidebar'),
+ props: {
+ dot: Boolean,
+ badge: null,
+ info: null,
+ title: String,
+ disabled: Boolean,
},
- setActive: function (selected) {
- return this.setData({ selected: selected });
+ methods: {
+ onClick: function () {
+ var _this = this;
+ var parent = this.parent;
+ if (!parent || this.data.disabled) {
+ return;
+ }
+ var index = parent.children.indexOf(this);
+ parent.setActive(index).then(function () {
+ _this.$emit('click', index);
+ parent.$emit('change', index);
+ });
+ },
+ setActive: function (selected) {
+ return this.setData({ selected: selected });
+ },
},
- },
});
diff --git a/lib/sidebar/index.js b/lib/sidebar/index.js
index 5265361d..aa624274 100644
--- a/lib/sidebar/index.js
+++ b/lib/sidebar/index.js
@@ -1,38 +1,36 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var relation_1 = require('../common/relation');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
component_1.VantComponent({
- relation: relation_1.useChildren('sidebar-item', function () {
- this.setActive(this.data.activeKey);
- }),
- props: {
- activeKey: {
- type: Number,
- value: 0,
- observer: 'setActive',
+ relation: relation_1.useChildren('sidebar-item', function () {
+ this.setActive(this.data.activeKey);
+ }),
+ props: {
+ activeKey: {
+ type: Number,
+ value: 0,
+ observer: 'setActive',
+ },
},
- },
- beforeCreate: function () {
- this.currentActive = -1;
- },
- methods: {
- setActive: function (activeKey) {
- var _a = this,
- children = _a.children,
- currentActive = _a.currentActive;
- if (!children.length) {
- return Promise.resolve();
- }
- this.currentActive = activeKey;
- var stack = [];
- if (currentActive !== activeKey && children[currentActive]) {
- stack.push(children[currentActive].setActive(false));
- }
- if (children[activeKey]) {
- stack.push(children[activeKey].setActive(true));
- }
- return Promise.all(stack);
+ beforeCreate: function () {
+ this.currentActive = -1;
+ },
+ methods: {
+ setActive: function (activeKey) {
+ var _a = this, children = _a.children, currentActive = _a.currentActive;
+ if (!children.length) {
+ return Promise.resolve();
+ }
+ this.currentActive = activeKey;
+ var stack = [];
+ if (currentActive !== activeKey && children[currentActive]) {
+ stack.push(children[currentActive].setActive(false));
+ }
+ if (children[activeKey]) {
+ stack.push(children[activeKey].setActive(true));
+ }
+ return Promise.all(stack);
+ },
},
- },
});
diff --git a/lib/skeleton/index.js b/lib/skeleton/index.js
index 52137fa8..a25ecdb4 100644
--- a/lib/skeleton/index.js
+++ b/lib/skeleton/index.js
@@ -1,48 +1,48 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
component_1.VantComponent({
- classes: ['avatar-class', 'title-class', 'row-class'],
- props: {
- row: {
- type: Number,
- value: 0,
- observer: function (value) {
- this.setData({ rowArray: Array.from({ length: value }) });
- },
+ classes: ['avatar-class', 'title-class', 'row-class'],
+ props: {
+ row: {
+ type: Number,
+ value: 0,
+ observer: function (value) {
+ this.setData({ rowArray: Array.from({ length: value }) });
+ },
+ },
+ title: Boolean,
+ avatar: Boolean,
+ loading: {
+ type: Boolean,
+ value: true,
+ },
+ animate: {
+ type: Boolean,
+ value: true,
+ },
+ avatarSize: {
+ type: String,
+ value: '32px',
+ },
+ avatarShape: {
+ type: String,
+ value: 'round',
+ },
+ titleWidth: {
+ type: String,
+ value: '40%',
+ },
+ rowWidth: {
+ type: null,
+ value: '100%',
+ observer: function (val) {
+ this.setData({ isArray: val instanceof Array });
+ },
+ },
},
- title: Boolean,
- avatar: Boolean,
- loading: {
- type: Boolean,
- value: true,
+ data: {
+ isArray: false,
+ rowArray: [],
},
- animate: {
- type: Boolean,
- value: true,
- },
- avatarSize: {
- type: String,
- value: '32px',
- },
- avatarShape: {
- type: String,
- value: 'round',
- },
- titleWidth: {
- type: String,
- value: '40%',
- },
- rowWidth: {
- type: null,
- value: '100%',
- observer: function (val) {
- this.setData({ isArray: val instanceof Array });
- },
- },
- },
- data: {
- isArray: false,
- rowArray: [],
- },
});
diff --git a/lib/slider/index.js b/lib/slider/index.js
index 24db03a5..7354ad8f 100644
--- a/lib/slider/index.js
+++ b/lib/slider/index.js
@@ -1,176 +1,166 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var touch_1 = require('../mixins/touch');
-var version_1 = require('../common/version');
-var utils_1 = require('../common/utils');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var touch_1 = require("../mixins/touch");
+var version_1 = require("../common/version");
+var utils_1 = require("../common/utils");
component_1.VantComponent({
- mixins: [touch_1.touch],
- props: {
- range: Boolean,
- disabled: Boolean,
- useButtonSlot: Boolean,
- activeColor: String,
- inactiveColor: String,
- max: {
- type: Number,
- value: 100,
+ mixins: [touch_1.touch],
+ props: {
+ range: Boolean,
+ disabled: Boolean,
+ useButtonSlot: Boolean,
+ activeColor: String,
+ inactiveColor: String,
+ max: {
+ type: Number,
+ value: 100,
+ },
+ min: {
+ type: Number,
+ value: 0,
+ },
+ step: {
+ type: Number,
+ value: 1,
+ },
+ value: {
+ type: null,
+ value: 0,
+ observer: function (val) {
+ if (val !== this.value) {
+ this.updateValue(val);
+ }
+ },
+ },
+ barHeight: null,
},
- min: {
- type: Number,
- value: 0,
+ created: function () {
+ this.updateValue(this.data.value);
},
- step: {
- type: Number,
- value: 1,
+ methods: {
+ onTouchStart: function (event) {
+ var _this = this;
+ if (this.data.disabled)
+ return;
+ var index = event.currentTarget.dataset.index;
+ if (typeof index === 'number') {
+ this.buttonIndex = index;
+ }
+ this.touchStart(event);
+ this.startValue = this.format(this.value);
+ this.newValue = this.value;
+ if (this.isRange(this.newValue)) {
+ this.startValue = this.newValue.map(function (val) { return _this.format(val); });
+ }
+ else {
+ this.startValue = this.format(this.newValue);
+ }
+ this.dragStatus = 'start';
+ },
+ onTouchMove: function (event) {
+ var _this = this;
+ if (this.data.disabled)
+ return;
+ if (this.dragStatus === 'start') {
+ this.$emit('drag-start');
+ }
+ this.touchMove(event);
+ this.dragStatus = 'draging';
+ utils_1.getRect(this, '.van-slider').then(function (rect) {
+ var diff = (_this.deltaX / rect.width) * _this.getRange();
+ if (_this.isRange(_this.startValue)) {
+ _this.newValue[_this.buttonIndex] =
+ _this.startValue[_this.buttonIndex] + diff;
+ }
+ else {
+ _this.newValue = _this.startValue + diff;
+ }
+ _this.updateValue(_this.newValue, false, true);
+ });
+ },
+ onTouchEnd: function () {
+ if (this.data.disabled)
+ return;
+ if (this.dragStatus === 'draging') {
+ this.updateValue(this.newValue, true);
+ this.$emit('drag-end');
+ }
+ },
+ onClick: function (event) {
+ var _this = this;
+ if (this.data.disabled)
+ return;
+ var min = this.data.min;
+ utils_1.getRect(this, '.van-slider').then(function (rect) {
+ var value = ((event.detail.x - rect.left) / rect.width) * _this.getRange() + min;
+ if (_this.isRange(_this.value)) {
+ var _a = _this.value, left = _a[0], right = _a[1];
+ var middle = (left + right) / 2;
+ if (value <= middle) {
+ _this.updateValue([value, right], true);
+ }
+ else {
+ _this.updateValue([left, value], true);
+ }
+ }
+ else {
+ _this.updateValue(value, true);
+ }
+ });
+ },
+ isRange: function (val) {
+ var range = this.data.range;
+ return range && Array.isArray(val);
+ },
+ handleOverlap: function (value) {
+ if (value[0] > value[1]) {
+ return value.slice(0).reverse();
+ }
+ return value;
+ },
+ updateValue: function (value, end, drag) {
+ var _this = this;
+ if (this.isRange(value)) {
+ value = this.handleOverlap(value).map(function (val) { return _this.format(val); });
+ }
+ else {
+ value = this.format(value);
+ }
+ this.value = value;
+ this.setData({
+ barStyle: "\n width: " + this.calcMainAxis() + ";\n left: " + (this.isRange(value) ? value[0] + "%" : 0) + ";\n " + (drag ? 'transition: none;' : '') + "\n ",
+ });
+ if (drag) {
+ this.$emit('drag', { value: value });
+ }
+ if (end) {
+ this.$emit('change', value);
+ }
+ if ((drag || end) && version_1.canIUseModel()) {
+ this.setData({ value: value });
+ }
+ },
+ getScope: function () {
+ return Number(this.data.max) - Number(this.data.min);
+ },
+ getRange: function () {
+ var _a = this.data, max = _a.max, min = _a.min;
+ return max - min;
+ },
+ // 计算选中条的长度百分比
+ calcMainAxis: function () {
+ var value = this.value;
+ var min = this.data.min;
+ var scope = this.getScope();
+ if (this.isRange(value)) {
+ return ((value[1] - value[0]) * 100) / scope + "%";
+ }
+ return ((value - Number(min)) * 100) / scope + "%";
+ },
+ format: function (value) {
+ var _a = this.data, max = _a.max, min = _a.min, step = _a.step;
+ return Math.round(Math.max(min, Math.min(value, max)) / step) * step;
+ },
},
- value: {
- type: null,
- value: 0,
- observer: function (val) {
- if (val !== this.value) {
- this.updateValue(val);
- }
- },
- },
- barHeight: null,
- },
- created: function () {
- this.updateValue(this.data.value);
- },
- methods: {
- onTouchStart: function (event) {
- var _this = this;
- if (this.data.disabled) return;
- var index = event.currentTarget.dataset.index;
- if (typeof index === 'number') {
- this.buttonIndex = index;
- }
- this.touchStart(event);
- this.startValue = this.format(this.value);
- this.newValue = this.value;
- if (this.isRange(this.newValue)) {
- this.startValue = this.newValue.map(function (val) {
- return _this.format(val);
- });
- } else {
- this.startValue = this.format(this.newValue);
- }
- this.dragStatus = 'start';
- },
- onTouchMove: function (event) {
- var _this = this;
- if (this.data.disabled) return;
- if (this.dragStatus === 'start') {
- this.$emit('drag-start');
- }
- this.touchMove(event);
- this.dragStatus = 'draging';
- utils_1.getRect(this, '.van-slider').then(function (rect) {
- var diff = (_this.deltaX / rect.width) * _this.getRange();
- if (_this.isRange(_this.startValue)) {
- _this.newValue[_this.buttonIndex] =
- _this.startValue[_this.buttonIndex] + diff;
- } else {
- _this.newValue = _this.startValue + diff;
- }
- _this.updateValue(_this.newValue, false, true);
- });
- },
- onTouchEnd: function () {
- if (this.data.disabled) return;
- if (this.dragStatus === 'draging') {
- this.updateValue(this.newValue, true);
- this.$emit('drag-end');
- }
- },
- onClick: function (event) {
- var _this = this;
- if (this.data.disabled) return;
- var min = this.data.min;
- utils_1.getRect(this, '.van-slider').then(function (rect) {
- var value =
- ((event.detail.x - rect.left) / rect.width) * _this.getRange() + min;
- if (_this.isRange(_this.value)) {
- var _a = _this.value,
- left = _a[0],
- right = _a[1];
- var middle = (left + right) / 2;
- if (value <= middle) {
- _this.updateValue([value, right], true);
- } else {
- _this.updateValue([left, value], true);
- }
- } else {
- _this.updateValue(value, true);
- }
- });
- },
- isRange: function (val) {
- var range = this.data.range;
- return range && Array.isArray(val);
- },
- handleOverlap: function (value) {
- if (value[0] > value[1]) {
- return value.slice(0).reverse();
- }
- return value;
- },
- updateValue: function (value, end, drag) {
- var _this = this;
- if (this.isRange(value)) {
- value = this.handleOverlap(value).map(function (val) {
- return _this.format(val);
- });
- } else {
- value = this.format(value);
- }
- this.value = value;
- this.setData({
- barStyle:
- '\n width: ' +
- this.calcMainAxis() +
- ';\n left: ' +
- (this.isRange(value) ? value[0] + '%' : 0) +
- ';\n ' +
- (drag ? 'transition: none;' : '') +
- '\n ',
- });
- if (drag) {
- this.$emit('drag', { value: value });
- }
- if (end) {
- this.$emit('change', value);
- }
- if ((drag || end) && version_1.canIUseModel()) {
- this.setData({ value: value });
- }
- },
- getScope: function () {
- return Number(this.data.max) - Number(this.data.min);
- },
- getRange: function () {
- var _a = this.data,
- max = _a.max,
- min = _a.min;
- return max - min;
- },
- // 计算选中条的长度百分比
- calcMainAxis: function () {
- var value = this.value;
- var min = this.data.min;
- var scope = this.getScope();
- if (this.isRange(value)) {
- return ((value[1] - value[0]) * 100) / scope + '%';
- }
- return ((value - Number(min)) * 100) / scope + '%';
- },
- format: function (value) {
- var _a = this.data,
- max = _a.max,
- min = _a.min,
- step = _a.step;
- return Math.round(Math.max(min, Math.min(value, max)) / step) * step;
- },
- },
});
diff --git a/lib/stepper/index.js b/lib/stepper/index.js
index b8b061d6..3f675061 100644
--- a/lib/stepper/index.js
+++ b/lib/stepper/index.js
@@ -1,218 +1,199 @@
-'use strict';
-var __assign =
- (this && this.__assign) ||
- function () {
- __assign =
- Object.assign ||
- function (t) {
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s)
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
+ 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');
-var validator_1 = require('../common/validator');
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var validator_1 = require("../common/validator");
var LONG_PRESS_START_TIME = 600;
var LONG_PRESS_INTERVAL = 200;
// add num and avoid float number
function add(num1, num2) {
- var cardinal = Math.pow(10, 10);
- return Math.round((num1 + num2) * cardinal) / cardinal;
+ var cardinal = Math.pow(10, 10);
+ return Math.round((num1 + num2) * cardinal) / cardinal;
}
function equal(value1, value2) {
- return String(value1) === String(value2);
+ return String(value1) === String(value2);
}
component_1.VantComponent({
- field: true,
- classes: ['input-class', 'plus-class', 'minus-class'],
- props: {
- value: {
- type: null,
- observer: 'observeValue',
+ field: true,
+ classes: ['input-class', 'plus-class', 'minus-class'],
+ props: {
+ value: {
+ type: null,
+ observer: 'observeValue',
+ },
+ integer: {
+ type: Boolean,
+ observer: 'check',
+ },
+ disabled: Boolean,
+ inputWidth: String,
+ buttonSize: String,
+ asyncChange: Boolean,
+ disableInput: Boolean,
+ decimalLength: {
+ type: Number,
+ value: null,
+ observer: 'check',
+ },
+ min: {
+ type: null,
+ value: 1,
+ observer: 'check',
+ },
+ max: {
+ type: null,
+ value: Number.MAX_SAFE_INTEGER,
+ observer: 'check',
+ },
+ step: {
+ type: null,
+ value: 1,
+ },
+ showPlus: {
+ type: Boolean,
+ value: true,
+ },
+ showMinus: {
+ type: Boolean,
+ value: true,
+ },
+ disablePlus: Boolean,
+ disableMinus: Boolean,
+ longPress: {
+ type: Boolean,
+ value: true,
+ },
+ theme: String,
},
- integer: {
- type: Boolean,
- observer: 'check',
+ data: {
+ currentValue: '',
},
- disabled: Boolean,
- inputWidth: String,
- buttonSize: String,
- asyncChange: Boolean,
- disableInput: Boolean,
- decimalLength: {
- type: Number,
- value: null,
- observer: 'check',
+ created: function () {
+ this.setData({
+ currentValue: this.format(this.data.value),
+ });
},
- min: {
- type: null,
- value: 1,
- observer: 'check',
+ methods: {
+ observeValue: function () {
+ var _a = this.data, value = _a.value, currentValue = _a.currentValue;
+ if (!equal(value, currentValue)) {
+ this.setData({ currentValue: this.format(value) });
+ }
+ },
+ check: function () {
+ var val = this.format(this.data.currentValue);
+ if (!equal(val, this.data.currentValue)) {
+ this.setData({ currentValue: val });
+ }
+ },
+ isDisabled: function (type) {
+ var _a = this.data, disabled = _a.disabled, disablePlus = _a.disablePlus, disableMinus = _a.disableMinus, currentValue = _a.currentValue, max = _a.max, min = _a.min;
+ if (type === 'plus') {
+ return disabled || disablePlus || currentValue >= max;
+ }
+ return disabled || disableMinus || currentValue <= min;
+ },
+ onFocus: function (event) {
+ this.$emit('focus', event.detail);
+ },
+ onBlur: function (event) {
+ var value = this.format(event.detail.value);
+ this.emitChange(value);
+ this.$emit('blur', __assign(__assign({}, event.detail), { value: value }));
+ },
+ // filter illegal characters
+ filter: function (value) {
+ value = String(value).replace(/[^0-9.-]/g, '');
+ if (this.data.integer && value.indexOf('.') !== -1) {
+ value = value.split('.')[0];
+ }
+ return value;
+ },
+ // limit value range
+ format: function (value) {
+ value = this.filter(value);
+ // format range
+ value = value === '' ? 0 : +value;
+ value = Math.max(Math.min(this.data.max, value), this.data.min);
+ // format decimal
+ if (validator_1.isDef(this.data.decimalLength)) {
+ value = value.toFixed(this.data.decimalLength);
+ }
+ return value;
+ },
+ onInput: function (event) {
+ var _a = (event.detail || {}).value, value = _a === void 0 ? '' : _a;
+ // allow input to be empty
+ if (value === '') {
+ return;
+ }
+ var formatted = this.filter(value);
+ // limit max decimal length
+ if (validator_1.isDef(this.data.decimalLength) && formatted.indexOf('.') !== -1) {
+ var pair = formatted.split('.');
+ formatted = pair[0] + "." + pair[1].slice(0, this.data.decimalLength);
+ }
+ this.emitChange(formatted);
+ },
+ emitChange: function (value) {
+ if (!this.data.asyncChange) {
+ this.setData({ currentValue: value });
+ }
+ this.$emit('change', value);
+ },
+ onChange: function () {
+ var type = this.type;
+ if (this.isDisabled(type)) {
+ this.$emit('overlimit', type);
+ return;
+ }
+ var diff = type === 'minus' ? -this.data.step : +this.data.step;
+ var value = this.format(add(+this.data.currentValue, diff));
+ this.emitChange(value);
+ this.$emit(type);
+ },
+ longPressStep: function () {
+ var _this = this;
+ this.longPressTimer = setTimeout(function () {
+ _this.onChange();
+ _this.longPressStep();
+ }, LONG_PRESS_INTERVAL);
+ },
+ onTap: function (event) {
+ var type = event.currentTarget.dataset.type;
+ this.type = type;
+ this.onChange();
+ },
+ onTouchStart: function (event) {
+ var _this = this;
+ if (!this.data.longPress) {
+ return;
+ }
+ clearTimeout(this.longPressTimer);
+ var type = event.currentTarget.dataset.type;
+ this.type = type;
+ this.isLongPress = false;
+ this.longPressTimer = setTimeout(function () {
+ _this.isLongPress = true;
+ _this.onChange();
+ _this.longPressStep();
+ }, LONG_PRESS_START_TIME);
+ },
+ onTouchEnd: function () {
+ if (!this.data.longPress) {
+ return;
+ }
+ clearTimeout(this.longPressTimer);
+ },
},
- max: {
- type: null,
- value: Number.MAX_SAFE_INTEGER,
- observer: 'check',
- },
- step: {
- type: null,
- value: 1,
- },
- showPlus: {
- type: Boolean,
- value: true,
- },
- showMinus: {
- type: Boolean,
- value: true,
- },
- disablePlus: Boolean,
- disableMinus: Boolean,
- longPress: {
- type: Boolean,
- value: true,
- },
- theme: String,
- },
- data: {
- currentValue: '',
- },
- created: function () {
- this.setData({
- currentValue: this.format(this.data.value),
- });
- },
- methods: {
- observeValue: function () {
- var _a = this.data,
- value = _a.value,
- currentValue = _a.currentValue;
- if (!equal(value, currentValue)) {
- this.setData({ currentValue: this.format(value) });
- }
- },
- check: function () {
- var val = this.format(this.data.currentValue);
- if (!equal(val, this.data.currentValue)) {
- this.setData({ currentValue: val });
- }
- },
- isDisabled: function (type) {
- var _a = this.data,
- disabled = _a.disabled,
- disablePlus = _a.disablePlus,
- disableMinus = _a.disableMinus,
- currentValue = _a.currentValue,
- max = _a.max,
- min = _a.min;
- if (type === 'plus') {
- return disabled || disablePlus || currentValue >= max;
- }
- return disabled || disableMinus || currentValue <= min;
- },
- onFocus: function (event) {
- this.$emit('focus', event.detail);
- },
- onBlur: function (event) {
- var value = this.format(event.detail.value);
- this.emitChange(value);
- this.$emit(
- 'blur',
- __assign(__assign({}, event.detail), { value: value })
- );
- },
- // filter illegal characters
- filter: function (value) {
- value = String(value).replace(/[^0-9.-]/g, '');
- if (this.data.integer && value.indexOf('.') !== -1) {
- value = value.split('.')[0];
- }
- return value;
- },
- // limit value range
- format: function (value) {
- value = this.filter(value);
- // format range
- value = value === '' ? 0 : +value;
- value = Math.max(Math.min(this.data.max, value), this.data.min);
- // format decimal
- if (validator_1.isDef(this.data.decimalLength)) {
- value = value.toFixed(this.data.decimalLength);
- }
- return value;
- },
- onInput: function (event) {
- var _a = (event.detail || {}).value,
- value = _a === void 0 ? '' : _a;
- // allow input to be empty
- if (value === '') {
- return;
- }
- var formatted = this.filter(value);
- // limit max decimal length
- if (
- validator_1.isDef(this.data.decimalLength) &&
- formatted.indexOf('.') !== -1
- ) {
- var pair = formatted.split('.');
- formatted = pair[0] + '.' + pair[1].slice(0, this.data.decimalLength);
- }
- this.emitChange(formatted);
- },
- emitChange: function (value) {
- if (!this.data.asyncChange) {
- this.setData({ currentValue: value });
- }
- this.$emit('change', value);
- },
- onChange: function () {
- var type = this.type;
- if (this.isDisabled(type)) {
- this.$emit('overlimit', type);
- return;
- }
- var diff = type === 'minus' ? -this.data.step : +this.data.step;
- var value = this.format(add(+this.data.currentValue, diff));
- this.emitChange(value);
- this.$emit(type);
- },
- longPressStep: function () {
- var _this = this;
- this.longPressTimer = setTimeout(function () {
- _this.onChange();
- _this.longPressStep();
- }, LONG_PRESS_INTERVAL);
- },
- onTap: function (event) {
- var type = event.currentTarget.dataset.type;
- this.type = type;
- this.onChange();
- },
- onTouchStart: function (event) {
- var _this = this;
- if (!this.data.longPress) {
- return;
- }
- clearTimeout(this.longPressTimer);
- var type = event.currentTarget.dataset.type;
- this.type = type;
- this.isLongPress = false;
- this.longPressTimer = setTimeout(function () {
- _this.isLongPress = true;
- _this.onChange();
- _this.longPressStep();
- }, LONG_PRESS_START_TIME);
- },
- onTouchEnd: function () {
- if (!this.data.longPress) {
- return;
- }
- clearTimeout(this.longPressTimer);
- },
- },
});
diff --git a/lib/steps/index.js b/lib/steps/index.js
index c41e5ade..35c92dac 100644
--- a/lib/steps/index.js
+++ b/lib/steps/index.js
@@ -1,35 +1,35 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var color_1 = require('../common/color');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var color_1 = require("../common/color");
component_1.VantComponent({
- classes: ['desc-class'],
- props: {
- icon: String,
- steps: Array,
- active: Number,
- direction: {
- type: String,
- value: 'horizontal',
+ classes: ['desc-class'],
+ props: {
+ icon: String,
+ steps: Array,
+ active: Number,
+ direction: {
+ type: String,
+ value: 'horizontal',
+ },
+ activeColor: {
+ type: String,
+ value: color_1.GREEN,
+ },
+ inactiveColor: {
+ type: String,
+ value: color_1.GRAY_DARK,
+ },
+ activeIcon: {
+ type: String,
+ value: 'checked',
+ },
+ inactiveIcon: String,
},
- activeColor: {
- type: String,
- value: color_1.GREEN,
+ methods: {
+ onClick: function (event) {
+ var index = event.currentTarget.dataset.index;
+ this.$emit('click-step', index);
+ },
},
- inactiveColor: {
- type: String,
- value: color_1.GRAY_DARK,
- },
- activeIcon: {
- type: String,
- value: 'checked',
- },
- inactiveIcon: String,
- },
- methods: {
- onClick: function (event) {
- var index = event.currentTarget.dataset.index;
- this.$emit('click-step', index);
- },
- },
});
diff --git a/lib/sticky/index.js b/lib/sticky/index.js
index 3bb20a4f..86e3f021 100644
--- a/lib/sticky/index.js
+++ b/lib/sticky/index.js
@@ -1,128 +1,124 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var utils_1 = require('../common/utils');
-var component_1 = require('../common/component');
-var validator_1 = require('../common/validator');
-var page_scroll_1 = require('../mixins/page-scroll');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var utils_1 = require("../common/utils");
+var component_1 = require("../common/component");
+var validator_1 = require("../common/validator");
+var page_scroll_1 = require("../mixins/page-scroll");
var ROOT_ELEMENT = '.van-sticky';
component_1.VantComponent({
- props: {
- zIndex: {
- type: Number,
- value: 99,
+ props: {
+ zIndex: {
+ type: Number,
+ value: 99,
+ },
+ offsetTop: {
+ type: Number,
+ value: 0,
+ observer: 'onScroll',
+ },
+ disabled: {
+ type: Boolean,
+ observer: 'onScroll',
+ },
+ container: {
+ type: null,
+ observer: 'onScroll',
+ },
+ scrollTop: {
+ type: null,
+ observer: function (val) {
+ this.onScroll({ scrollTop: val });
+ },
+ },
},
- offsetTop: {
- type: Number,
- value: 0,
- observer: 'onScroll',
+ mixins: [
+ page_scroll_1.pageScrollMixin(function (event) {
+ if (this.data.scrollTop != null) {
+ return;
+ }
+ this.onScroll(event);
+ }),
+ ],
+ data: {
+ height: 0,
+ fixed: false,
+ transform: 0,
},
- disabled: {
- type: Boolean,
- observer: 'onScroll',
+ mounted: function () {
+ this.onScroll();
},
- container: {
- type: null,
- observer: 'onScroll',
- },
- scrollTop: {
- type: null,
- observer: function (val) {
- this.onScroll({ scrollTop: val });
- },
- },
- },
- mixins: [
- page_scroll_1.pageScrollMixin(function (event) {
- if (this.data.scrollTop != null) {
- return;
- }
- this.onScroll(event);
- }),
- ],
- data: {
- height: 0,
- fixed: false,
- transform: 0,
- },
- mounted: function () {
- this.onScroll();
- },
- methods: {
- onScroll: function (_a) {
- var _this = this;
- var _b = _a === void 0 ? {} : _a,
- scrollTop = _b.scrollTop;
- var _c = this.data,
- container = _c.container,
- offsetTop = _c.offsetTop,
- disabled = _c.disabled;
- if (disabled) {
- this.setDataAfterDiff({
- fixed: false,
- transform: 0,
- });
- return;
- }
- this.scrollTop = scrollTop || this.scrollTop;
- if (typeof container === 'function') {
- Promise.all([
- utils_1.getRect(this, ROOT_ELEMENT),
- this.getContainerRect(),
- ]).then(function (_a) {
- var root = _a[0],
- container = _a[1];
- if (offsetTop + root.height > container.height + container.top) {
- _this.setDataAfterDiff({
- fixed: false,
- transform: container.height - root.height,
+ methods: {
+ onScroll: function (_a) {
+ var _this = this;
+ var _b = _a === void 0 ? {} : _a, scrollTop = _b.scrollTop;
+ var _c = this.data, container = _c.container, offsetTop = _c.offsetTop, disabled = _c.disabled;
+ if (disabled) {
+ this.setDataAfterDiff({
+ fixed: false,
+ transform: 0,
+ });
+ return;
+ }
+ this.scrollTop = scrollTop || this.scrollTop;
+ if (typeof container === 'function') {
+ Promise.all([
+ utils_1.getRect(this, ROOT_ELEMENT),
+ this.getContainerRect(),
+ ]).then(function (_a) {
+ var root = _a[0], container = _a[1];
+ if (offsetTop + root.height > container.height + container.top) {
+ _this.setDataAfterDiff({
+ fixed: false,
+ transform: container.height - root.height,
+ });
+ }
+ else if (offsetTop >= root.top) {
+ _this.setDataAfterDiff({
+ fixed: true,
+ height: root.height,
+ transform: 0,
+ });
+ }
+ else {
+ _this.setDataAfterDiff({ fixed: false, transform: 0 });
+ }
+ });
+ return;
+ }
+ utils_1.getRect(this, ROOT_ELEMENT).then(function (root) {
+ if (!validator_1.isDef(root)) {
+ return;
+ }
+ if (offsetTop >= root.top) {
+ _this.setDataAfterDiff({ fixed: true, height: root.height });
+ _this.transform = 0;
+ }
+ else {
+ _this.setDataAfterDiff({ fixed: false });
+ }
});
- } else if (offsetTop >= root.top) {
- _this.setDataAfterDiff({
- fixed: true,
- height: root.height,
- transform: 0,
+ },
+ setDataAfterDiff: function (data) {
+ var _this = this;
+ wx.nextTick(function () {
+ var diff = Object.keys(data).reduce(function (prev, key) {
+ if (data[key] !== _this.data[key]) {
+ prev[key] = data[key];
+ }
+ return prev;
+ }, {});
+ if (Object.keys(diff).length > 0) {
+ _this.setData(diff);
+ }
+ _this.$emit('scroll', {
+ scrollTop: _this.scrollTop,
+ isFixed: data.fixed || _this.data.fixed,
+ });
});
- } else {
- _this.setDataAfterDiff({ fixed: false, transform: 0 });
- }
- });
- return;
- }
- utils_1.getRect(this, ROOT_ELEMENT).then(function (root) {
- if (!validator_1.isDef(root)) {
- return;
- }
- if (offsetTop >= root.top) {
- _this.setDataAfterDiff({ fixed: true, height: root.height });
- _this.transform = 0;
- } else {
- _this.setDataAfterDiff({ fixed: false });
- }
- });
+ },
+ getContainerRect: function () {
+ var nodesRef = this.data.container();
+ return new Promise(function (resolve) { return nodesRef.boundingClientRect(resolve).exec(); });
+ },
},
- setDataAfterDiff: function (data) {
- var _this = this;
- wx.nextTick(function () {
- var diff = Object.keys(data).reduce(function (prev, key) {
- if (data[key] !== _this.data[key]) {
- prev[key] = data[key];
- }
- return prev;
- }, {});
- if (Object.keys(diff).length > 0) {
- _this.setData(diff);
- }
- _this.$emit('scroll', {
- scrollTop: _this.scrollTop,
- isFixed: data.fixed || _this.data.fixed,
- });
- });
- },
- getContainerRect: function () {
- var nodesRef = this.data.container();
- return new Promise(function (resolve) {
- return nodesRef.boundingClientRect(resolve).exec();
- });
- },
- },
});
diff --git a/lib/submit-bar/index.js b/lib/submit-bar/index.js
index 2b06332b..7f0766ae 100644
--- a/lib/submit-bar/index.js
+++ b/lib/submit-bar/index.js
@@ -1,61 +1,58 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
component_1.VantComponent({
- classes: ['bar-class', 'price-class', 'button-class'],
- props: {
- tip: {
- type: null,
- observer: 'updateTip',
+ classes: ['bar-class', 'price-class', 'button-class'],
+ props: {
+ tip: {
+ type: null,
+ observer: 'updateTip',
+ },
+ tipIcon: String,
+ type: Number,
+ price: {
+ type: null,
+ observer: 'updatePrice',
+ },
+ label: String,
+ loading: Boolean,
+ disabled: Boolean,
+ buttonText: String,
+ currency: {
+ type: String,
+ value: '¥',
+ },
+ buttonType: {
+ type: String,
+ value: 'danger',
+ },
+ decimalLength: {
+ type: Number,
+ value: 2,
+ observer: 'updatePrice',
+ },
+ suffixLabel: String,
+ safeAreaInsetBottom: {
+ type: Boolean,
+ value: true,
+ },
},
- tipIcon: String,
- type: Number,
- price: {
- type: null,
- observer: 'updatePrice',
+ methods: {
+ updatePrice: function () {
+ var _a = this.data, price = _a.price, decimalLength = _a.decimalLength;
+ var priceStrArr = typeof price === 'number' &&
+ (price / 100).toFixed(decimalLength).split('.');
+ this.setData({
+ hasPrice: typeof price === 'number',
+ integerStr: priceStrArr && priceStrArr[0],
+ decimalStr: decimalLength && priceStrArr ? "." + priceStrArr[1] : '',
+ });
+ },
+ updateTip: function () {
+ this.setData({ hasTip: typeof this.data.tip === 'string' });
+ },
+ onSubmit: function (event) {
+ this.$emit('submit', event.detail);
+ },
},
- label: String,
- loading: Boolean,
- disabled: Boolean,
- buttonText: String,
- currency: {
- type: String,
- value: '¥',
- },
- buttonType: {
- type: String,
- value: 'danger',
- },
- decimalLength: {
- type: Number,
- value: 2,
- observer: 'updatePrice',
- },
- suffixLabel: String,
- safeAreaInsetBottom: {
- type: Boolean,
- value: true,
- },
- },
- methods: {
- updatePrice: function () {
- var _a = this.data,
- price = _a.price,
- decimalLength = _a.decimalLength;
- var priceStrArr =
- typeof price === 'number' &&
- (price / 100).toFixed(decimalLength).split('.');
- this.setData({
- hasPrice: typeof price === 'number',
- integerStr: priceStrArr && priceStrArr[0],
- decimalStr: decimalLength && priceStrArr ? '.' + priceStrArr[1] : '',
- });
- },
- updateTip: function () {
- this.setData({ hasTip: typeof this.data.tip === 'string' });
- },
- onSubmit: function (event) {
- this.$emit('submit', event.detail);
- },
- },
});
diff --git a/lib/swipe-cell/index.js b/lib/swipe-cell/index.js
index bf6648af..d4858367 100644
--- a/lib/swipe-cell/index.js
+++ b/lib/swipe-cell/index.js
@@ -1,162 +1,135 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var touch_1 = require('../mixins/touch');
-var utils_1 = require('../common/utils');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var touch_1 = require("../mixins/touch");
+var utils_1 = require("../common/utils");
var THRESHOLD = 0.3;
var ARRAY = [];
component_1.VantComponent({
- props: {
- disabled: Boolean,
- leftWidth: {
- type: Number,
- value: 0,
- observer: function (leftWidth) {
- if (leftWidth === void 0) {
- leftWidth = 0;
- }
- if (this.offset > 0) {
- this.swipeMove(leftWidth);
- }
- },
+ props: {
+ disabled: Boolean,
+ leftWidth: {
+ type: Number,
+ value: 0,
+ observer: function (leftWidth) {
+ if (leftWidth === void 0) { leftWidth = 0; }
+ if (this.offset > 0) {
+ this.swipeMove(leftWidth);
+ }
+ },
+ },
+ rightWidth: {
+ type: Number,
+ value: 0,
+ observer: function (rightWidth) {
+ if (rightWidth === void 0) { rightWidth = 0; }
+ if (this.offset < 0) {
+ this.swipeMove(-rightWidth);
+ }
+ },
+ },
+ asyncClose: Boolean,
+ name: {
+ type: null,
+ value: '',
+ },
},
- rightWidth: {
- type: Number,
- value: 0,
- observer: function (rightWidth) {
- if (rightWidth === void 0) {
- rightWidth = 0;
- }
- if (this.offset < 0) {
- this.swipeMove(-rightWidth);
- }
- },
+ mixins: [touch_1.touch],
+ data: {
+ catchMove: false,
+ wrapperStyle: '',
},
- asyncClose: Boolean,
- name: {
- type: null,
- value: '',
+ created: function () {
+ this.offset = 0;
+ ARRAY.push(this);
},
- },
- mixins: [touch_1.touch],
- data: {
- catchMove: false,
- wrapperStyle: '',
- },
- created: function () {
- this.offset = 0;
- ARRAY.push(this);
- },
- destroyed: function () {
- var _this = this;
- ARRAY = ARRAY.filter(function (item) {
- return item !== _this;
- });
- },
- methods: {
- open: function (position) {
- var _a = this.data,
- leftWidth = _a.leftWidth,
- rightWidth = _a.rightWidth;
- var offset = position === 'left' ? leftWidth : -rightWidth;
- this.swipeMove(offset);
- this.$emit('open', {
- position: position,
- name: this.data.name,
- });
+ destroyed: function () {
+ var _this = this;
+ ARRAY = ARRAY.filter(function (item) { return item !== _this; });
},
- close: function () {
- this.swipeMove(0);
+ methods: {
+ open: function (position) {
+ var _a = this.data, leftWidth = _a.leftWidth, rightWidth = _a.rightWidth;
+ var offset = position === 'left' ? leftWidth : -rightWidth;
+ this.swipeMove(offset);
+ this.$emit('open', {
+ position: position,
+ name: this.data.name,
+ });
+ },
+ close: function () {
+ this.swipeMove(0);
+ },
+ swipeMove: function (offset) {
+ if (offset === void 0) { offset = 0; }
+ this.offset = utils_1.range(offset, -this.data.rightWidth, this.data.leftWidth);
+ var transform = "translate3d(" + this.offset + "px, 0, 0)";
+ var transition = this.dragging
+ ? 'none'
+ : 'transform .6s cubic-bezier(0.18, 0.89, 0.32, 1)';
+ this.setData({
+ wrapperStyle: "\n -webkit-transform: " + transform + ";\n -webkit-transition: " + transition + ";\n transform: " + transform + ";\n transition: " + transition + ";\n ",
+ });
+ },
+ swipeLeaveTransition: function () {
+ var _a = this.data, leftWidth = _a.leftWidth, rightWidth = _a.rightWidth;
+ var offset = this.offset;
+ if (rightWidth > 0 && -offset > rightWidth * THRESHOLD) {
+ this.open('right');
+ }
+ else if (leftWidth > 0 && offset > leftWidth * THRESHOLD) {
+ this.open('left');
+ }
+ else {
+ this.swipeMove(0);
+ }
+ this.setData({ catchMove: false });
+ },
+ startDrag: function (event) {
+ if (this.data.disabled) {
+ return;
+ }
+ this.startOffset = this.offset;
+ this.touchStart(event);
+ },
+ noop: function () { },
+ onDrag: function (event) {
+ var _this = this;
+ if (this.data.disabled) {
+ return;
+ }
+ this.touchMove(event);
+ if (this.direction !== 'horizontal') {
+ return;
+ }
+ this.dragging = true;
+ ARRAY.filter(function (item) { return item !== _this && item.offset !== 0; }).forEach(function (item) { return item.close(); });
+ this.setData({ catchMove: true });
+ this.swipeMove(this.startOffset + this.deltaX);
+ },
+ endDrag: function () {
+ if (this.data.disabled) {
+ return;
+ }
+ this.dragging = false;
+ this.swipeLeaveTransition();
+ },
+ onClick: function (event) {
+ var _a = event.currentTarget.dataset.key, position = _a === void 0 ? 'outside' : _a;
+ this.$emit('click', position);
+ if (!this.offset) {
+ return;
+ }
+ if (this.data.asyncClose) {
+ this.$emit('close', {
+ position: position,
+ instance: this,
+ name: this.data.name,
+ });
+ }
+ else {
+ this.swipeMove(0);
+ }
+ },
},
- swipeMove: function (offset) {
- if (offset === void 0) {
- offset = 0;
- }
- this.offset = utils_1.range(
- offset,
- -this.data.rightWidth,
- this.data.leftWidth
- );
- var transform = 'translate3d(' + this.offset + 'px, 0, 0)';
- var transition = this.dragging
- ? 'none'
- : 'transform .6s cubic-bezier(0.18, 0.89, 0.32, 1)';
- this.setData({
- wrapperStyle:
- '\n -webkit-transform: ' +
- transform +
- ';\n -webkit-transition: ' +
- transition +
- ';\n transform: ' +
- transform +
- ';\n transition: ' +
- transition +
- ';\n ',
- });
- },
- swipeLeaveTransition: function () {
- var _a = this.data,
- leftWidth = _a.leftWidth,
- rightWidth = _a.rightWidth;
- var offset = this.offset;
- if (rightWidth > 0 && -offset > rightWidth * THRESHOLD) {
- this.open('right');
- } else if (leftWidth > 0 && offset > leftWidth * THRESHOLD) {
- this.open('left');
- } else {
- this.swipeMove(0);
- }
- this.setData({ catchMove: false });
- },
- startDrag: function (event) {
- if (this.data.disabled) {
- return;
- }
- this.startOffset = this.offset;
- this.touchStart(event);
- },
- noop: function () {},
- onDrag: function (event) {
- var _this = this;
- if (this.data.disabled) {
- return;
- }
- this.touchMove(event);
- if (this.direction !== 'horizontal') {
- return;
- }
- this.dragging = true;
- ARRAY.filter(function (item) {
- return item !== _this && item.offset !== 0;
- }).forEach(function (item) {
- return item.close();
- });
- this.setData({ catchMove: true });
- this.swipeMove(this.startOffset + this.deltaX);
- },
- endDrag: function () {
- if (this.data.disabled) {
- return;
- }
- this.dragging = false;
- this.swipeLeaveTransition();
- },
- onClick: function (event) {
- var _a = event.currentTarget.dataset.key,
- position = _a === void 0 ? 'outside' : _a;
- this.$emit('click', position);
- if (!this.offset) {
- return;
- }
- if (this.data.asyncClose) {
- this.$emit('close', {
- position: position,
- instance: this,
- name: this.data.name,
- });
- } else {
- this.swipeMove(0);
- }
- },
- },
});
diff --git a/lib/switch/index.js b/lib/switch/index.js
index 8c98e99d..e032a349 100644
--- a/lib/switch/index.js
+++ b/lib/switch/index.js
@@ -1,42 +1,38 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
component_1.VantComponent({
- field: true,
- classes: ['node-class'],
- props: {
- checked: null,
- loading: Boolean,
- disabled: Boolean,
- activeColor: String,
- inactiveColor: String,
- size: {
- type: String,
- value: '30',
+ field: true,
+ classes: ['node-class'],
+ props: {
+ checked: null,
+ loading: Boolean,
+ disabled: Boolean,
+ activeColor: String,
+ inactiveColor: String,
+ size: {
+ type: String,
+ value: '30',
+ },
+ activeValue: {
+ type: null,
+ value: true,
+ },
+ inactiveValue: {
+ type: null,
+ value: false,
+ },
},
- activeValue: {
- type: null,
- value: true,
+ methods: {
+ onClick: function () {
+ var _a = this.data, activeValue = _a.activeValue, inactiveValue = _a.inactiveValue, disabled = _a.disabled, loading = _a.loading;
+ if (disabled || loading) {
+ return;
+ }
+ var checked = this.data.checked === activeValue;
+ var value = checked ? inactiveValue : activeValue;
+ this.$emit('input', value);
+ this.$emit('change', value);
+ },
},
- inactiveValue: {
- type: null,
- value: false,
- },
- },
- methods: {
- onClick: function () {
- var _a = this.data,
- activeValue = _a.activeValue,
- inactiveValue = _a.inactiveValue,
- disabled = _a.disabled,
- loading = _a.loading;
- if (disabled || loading) {
- return;
- }
- var checked = this.data.checked === activeValue;
- var value = checked ? inactiveValue : activeValue;
- this.$emit('input', value);
- this.$emit('change', value);
- },
- },
});
diff --git a/lib/tab/index.js b/lib/tab/index.js
index f8b22c34..641a2a57 100644
--- a/lib/tab/index.js
+++ b/lib/tab/index.js
@@ -1,58 +1,58 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var relation_1 = require('../common/relation');
-var component_1 = require('../common/component');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var relation_1 = require("../common/relation");
+var component_1 = require("../common/component");
component_1.VantComponent({
- relation: relation_1.useParent('tabs'),
- props: {
- dot: {
- type: Boolean,
- observer: 'update',
+ relation: relation_1.useParent('tabs'),
+ props: {
+ dot: {
+ type: Boolean,
+ observer: 'update',
+ },
+ info: {
+ type: null,
+ observer: 'update',
+ },
+ title: {
+ type: String,
+ observer: 'update',
+ },
+ disabled: {
+ type: Boolean,
+ observer: 'update',
+ },
+ titleStyle: {
+ type: String,
+ observer: 'update',
+ },
+ name: {
+ type: null,
+ value: '',
+ },
},
- info: {
- type: null,
- observer: 'update',
+ data: {
+ active: false,
},
- title: {
- type: String,
- observer: 'update',
+ methods: {
+ getComputedName: function () {
+ if (this.data.name !== '') {
+ return this.data.name;
+ }
+ return this.index;
+ },
+ updateRender: function (active, parent) {
+ var parentData = parent.data;
+ this.inited = this.inited || active;
+ this.setData({
+ active: active,
+ shouldRender: this.inited || !parentData.lazyRender,
+ shouldShow: active || parentData.animated,
+ });
+ },
+ update: function () {
+ if (this.parent) {
+ this.parent.updateTabs();
+ }
+ },
},
- disabled: {
- type: Boolean,
- observer: 'update',
- },
- titleStyle: {
- type: String,
- observer: 'update',
- },
- name: {
- type: null,
- value: '',
- },
- },
- data: {
- active: false,
- },
- methods: {
- getComputedName: function () {
- if (this.data.name !== '') {
- return this.data.name;
- }
- return this.index;
- },
- updateRender: function (active, parent) {
- var parentData = parent.data;
- this.inited = this.inited || active;
- this.setData({
- active: active,
- shouldRender: this.inited || !parentData.lazyRender,
- shouldShow: active || parentData.animated,
- });
- },
- update: function () {
- if (this.parent) {
- this.parent.updateTabs();
- }
- },
- },
});
diff --git a/lib/tabbar-item/index.js b/lib/tabbar-item/index.js
index 32dcfd6c..d8800b6e 100644
--- a/lib/tabbar-item/index.js
+++ b/lib/tabbar-item/index.js
@@ -1,58 +1,58 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var relation_1 = require('../common/relation');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
component_1.VantComponent({
- props: {
- info: null,
- name: null,
- icon: String,
- dot: Boolean,
- iconPrefix: {
- type: String,
- value: 'van-icon',
+ props: {
+ info: null,
+ name: null,
+ icon: String,
+ dot: Boolean,
+ iconPrefix: {
+ type: String,
+ value: 'van-icon',
+ },
},
- },
- relation: relation_1.useParent('tabbar'),
- data: {
- active: false,
- activeColor: '',
- inactiveColor: '',
- },
- methods: {
- onClick: function () {
- var parent = this.parent;
- if (parent) {
- var index = parent.children.indexOf(this);
- var active = this.data.name || index;
- if (active !== this.data.active) {
- parent.$emit('change', active);
- }
- }
- this.$emit('click');
+ relation: relation_1.useParent('tabbar'),
+ data: {
+ active: false,
+ activeColor: '',
+ inactiveColor: '',
},
- updateFromParent: function () {
- var parent = this.parent;
- if (!parent) {
- return;
- }
- var index = parent.children.indexOf(this);
- var parentData = parent.data;
- var data = this.data;
- var active = (data.name || index) === parentData.active;
- var patch = {};
- if (active !== data.active) {
- patch.active = active;
- }
- if (parentData.activeColor !== data.activeColor) {
- patch.activeColor = parentData.activeColor;
- }
- if (parentData.inactiveColor !== data.inactiveColor) {
- patch.inactiveColor = parentData.inactiveColor;
- }
- if (Object.keys(patch).length > 0) {
- this.setData(patch);
- }
+ methods: {
+ onClick: function () {
+ var parent = this.parent;
+ if (parent) {
+ var index = parent.children.indexOf(this);
+ var active = this.data.name || index;
+ if (active !== this.data.active) {
+ parent.$emit('change', active);
+ }
+ }
+ this.$emit('click');
+ },
+ updateFromParent: function () {
+ var parent = this.parent;
+ if (!parent) {
+ return;
+ }
+ var index = parent.children.indexOf(this);
+ var parentData = parent.data;
+ var data = this.data;
+ var active = (data.name || index) === parentData.active;
+ var patch = {};
+ if (active !== data.active) {
+ patch.active = active;
+ }
+ if (parentData.activeColor !== data.activeColor) {
+ patch.activeColor = parentData.activeColor;
+ }
+ if (parentData.inactiveColor !== data.inactiveColor) {
+ patch.inactiveColor = parentData.inactiveColor;
+ }
+ if (Object.keys(patch).length > 0) {
+ this.setData(patch);
+ }
+ },
},
- },
});
diff --git a/lib/tabbar/index.js b/lib/tabbar/index.js
index 0ed7cd88..2b87e3ad 100644
--- a/lib/tabbar/index.js
+++ b/lib/tabbar/index.js
@@ -1,70 +1,68 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var relation_1 = require('../common/relation');
-var utils_1 = require('../common/utils');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var relation_1 = require("../common/relation");
+var utils_1 = require("../common/utils");
component_1.VantComponent({
- relation: relation_1.useChildren('tabbar-item', function () {
- this.updateChildren();
- }),
- props: {
- active: {
- type: null,
- observer: 'updateChildren',
+ relation: relation_1.useChildren('tabbar-item', function () {
+ this.updateChildren();
+ }),
+ props: {
+ active: {
+ type: null,
+ observer: 'updateChildren',
+ },
+ activeColor: {
+ type: String,
+ observer: 'updateChildren',
+ },
+ inactiveColor: {
+ type: String,
+ observer: 'updateChildren',
+ },
+ fixed: {
+ type: Boolean,
+ value: true,
+ observer: 'setHeight',
+ },
+ placeholder: {
+ type: Boolean,
+ observer: 'setHeight',
+ },
+ border: {
+ type: Boolean,
+ value: true,
+ },
+ zIndex: {
+ type: Number,
+ value: 1,
+ },
+ safeAreaInsetBottom: {
+ type: Boolean,
+ value: true,
+ },
},
- activeColor: {
- type: String,
- observer: 'updateChildren',
+ data: {
+ height: 50,
},
- inactiveColor: {
- type: String,
- observer: 'updateChildren',
+ methods: {
+ updateChildren: function () {
+ var children = this.children;
+ if (!Array.isArray(children) || !children.length) {
+ return;
+ }
+ children.forEach(function (child) { return child.updateFromParent(); });
+ },
+ setHeight: function () {
+ var _this = this;
+ if (!this.data.fixed || !this.data.placeholder) {
+ return;
+ }
+ wx.nextTick(function () {
+ utils_1.getRect(_this, '.van-tabbar').then(function (res) {
+ _this.setData({ height: res.height });
+ });
+ });
+ },
},
- fixed: {
- type: Boolean,
- value: true,
- observer: 'setHeight',
- },
- placeholder: {
- type: Boolean,
- observer: 'setHeight',
- },
- border: {
- type: Boolean,
- value: true,
- },
- zIndex: {
- type: Number,
- value: 1,
- },
- safeAreaInsetBottom: {
- type: Boolean,
- value: true,
- },
- },
- data: {
- height: 50,
- },
- methods: {
- updateChildren: function () {
- var children = this.children;
- if (!Array.isArray(children) || !children.length) {
- return;
- }
- children.forEach(function (child) {
- return child.updateFromParent();
- });
- },
- setHeight: function () {
- var _this = this;
- if (!this.data.fixed || !this.data.placeholder) {
- return;
- }
- wx.nextTick(function () {
- utils_1.getRect(_this, '.van-tabbar').then(function (res) {
- _this.setData({ height: res.height });
- });
- });
- },
- },
});
diff --git a/lib/tabs/index.js b/lib/tabs/index.js
index a33f4cfe..b98b31f7 100644
--- a/lib/tabs/index.js
+++ b/lib/tabs/index.js
@@ -1,319 +1,283 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var touch_1 = require('../mixins/touch');
-var utils_1 = require('../common/utils');
-var validator_1 = require('../common/validator');
-var relation_1 = require('../common/relation');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var touch_1 = require("../mixins/touch");
+var utils_1 = require("../common/utils");
+var validator_1 = require("../common/validator");
+var relation_1 = require("../common/relation");
component_1.VantComponent({
- mixins: [touch_1.touch],
- classes: ['nav-class', 'tab-class', 'tab-active-class', 'line-class'],
- relation: relation_1.useChildren('tab', function () {
- this.updateTabs();
- }),
- props: {
- sticky: Boolean,
- border: Boolean,
- swipeable: Boolean,
- titleActiveColor: String,
- titleInactiveColor: String,
- color: String,
- animated: {
- type: Boolean,
- observer: function () {
- var _this = this;
- this.children.forEach(function (child, index) {
- return child.updateRender(index === _this.data.currentIndex, _this);
- });
- },
- },
- lineWidth: {
- type: null,
- value: 40,
- observer: 'resize',
- },
- lineHeight: {
- type: null,
- value: -1,
- },
- active: {
- type: null,
- value: 0,
- observer: function (name) {
- if (!this.skipInit) {
- this.skipInit = true;
- }
- if (name !== this.getCurrentName()) {
- this.setCurrentIndexByName(name);
- }
- },
- },
- type: {
- type: String,
- value: 'line',
- },
- ellipsis: {
- type: Boolean,
- value: true,
- },
- duration: {
- type: Number,
- value: 0.3,
- },
- zIndex: {
- type: Number,
- value: 1,
- },
- swipeThreshold: {
- type: Number,
- value: 5,
- observer: function (value) {
- this.setData({
- scrollable: this.children.length > value || !this.data.ellipsis,
- });
- },
- },
- offsetTop: {
- type: Number,
- value: 0,
- },
- lazyRender: {
- type: Boolean,
- value: true,
- },
- },
- data: {
- tabs: [],
- scrollLeft: 0,
- scrollable: false,
- currentIndex: 0,
- container: null,
- skipTransition: true,
- scrollWithAnimation: false,
- lineOffsetLeft: 0,
- },
- mounted: function () {
- var _this = this;
- utils_1.requestAnimationFrame(function () {
- _this.setData({
- container: function () {
- return _this.createSelectorQuery().select('.van-tabs');
+ mixins: [touch_1.touch],
+ classes: ['nav-class', 'tab-class', 'tab-active-class', 'line-class'],
+ relation: relation_1.useChildren('tab', function () {
+ this.updateTabs();
+ }),
+ props: {
+ sticky: Boolean,
+ border: Boolean,
+ swipeable: Boolean,
+ titleActiveColor: String,
+ titleInactiveColor: String,
+ color: String,
+ animated: {
+ type: Boolean,
+ observer: function () {
+ var _this = this;
+ this.children.forEach(function (child, index) {
+ return child.updateRender(index === _this.data.currentIndex, _this);
+ });
+ },
+ },
+ lineWidth: {
+ type: null,
+ value: 40,
+ observer: 'resize',
+ },
+ lineHeight: {
+ type: null,
+ value: -1,
+ },
+ active: {
+ type: null,
+ value: 0,
+ observer: function (name) {
+ if (!this.skipInit) {
+ this.skipInit = true;
+ }
+ if (name !== this.getCurrentName()) {
+ this.setCurrentIndexByName(name);
+ }
+ },
+ },
+ type: {
+ type: String,
+ value: 'line',
+ },
+ ellipsis: {
+ type: Boolean,
+ value: true,
+ },
+ duration: {
+ type: Number,
+ value: 0.3,
+ },
+ zIndex: {
+ type: Number,
+ value: 1,
+ },
+ swipeThreshold: {
+ type: Number,
+ value: 5,
+ observer: function (value) {
+ this.setData({
+ scrollable: this.children.length > value || !this.data.ellipsis,
+ });
+ },
+ },
+ offsetTop: {
+ type: Number,
+ value: 0,
+ },
+ lazyRender: {
+ type: Boolean,
+ value: true,
},
- });
- if (!_this.skipInit) {
- _this.resize();
- _this.scrollIntoView();
- }
- });
- },
- methods: {
- updateTabs: function () {
- var _a = this,
- _b = _a.children,
- children = _b === void 0 ? [] : _b,
- data = _a.data;
- this.setData({
- tabs: children.map(function (child) {
- return child.data;
- }),
- scrollable:
- this.children.length > data.swipeThreshold || !data.ellipsis,
- });
- this.setCurrentIndexByName(data.active || this.getCurrentName());
},
- trigger: function (eventName, child) {
- var currentIndex = this.data.currentIndex;
- var currentChild = child || this.children[currentIndex];
- if (!validator_1.isDef(currentChild)) {
- return;
- }
- this.$emit(eventName, {
- index: currentChild.index,
- name: currentChild.getComputedName(),
- title: currentChild.data.title,
- });
+ data: {
+ tabs: [],
+ scrollLeft: 0,
+ scrollable: false,
+ currentIndex: 0,
+ container: null,
+ skipTransition: true,
+ scrollWithAnimation: false,
+ lineOffsetLeft: 0,
},
- onTap: function (event) {
- var _this = this;
- var index = event.currentTarget.dataset.index;
- var child = this.children[index];
- if (child.data.disabled) {
- this.trigger('disabled', child);
- } else {
- this.setCurrentIndex(index);
- utils_1.nextTick(function () {
- _this.trigger('click');
+ mounted: function () {
+ var _this = this;
+ utils_1.requestAnimationFrame(function () {
+ _this.setData({
+ container: function () { return _this.createSelectorQuery().select('.van-tabs'); },
+ });
+ if (!_this.skipInit) {
+ _this.resize();
+ _this.scrollIntoView();
+ }
});
- }
},
- // correct the index of active tab
- setCurrentIndexByName: function (name) {
- var _a = this.children,
- children = _a === void 0 ? [] : _a;
- var matched = children.filter(function (child) {
- return child.getComputedName() === name;
- });
- if (matched.length) {
- this.setCurrentIndex(matched[0].index);
- }
+ methods: {
+ updateTabs: function () {
+ var _a = this, _b = _a.children, children = _b === void 0 ? [] : _b, data = _a.data;
+ this.setData({
+ tabs: children.map(function (child) { return child.data; }),
+ scrollable: this.children.length > data.swipeThreshold || !data.ellipsis,
+ });
+ this.setCurrentIndexByName(data.active || this.getCurrentName());
+ },
+ trigger: function (eventName, child) {
+ var currentIndex = this.data.currentIndex;
+ var currentChild = child || this.children[currentIndex];
+ if (!validator_1.isDef(currentChild)) {
+ return;
+ }
+ this.$emit(eventName, {
+ index: currentChild.index,
+ name: currentChild.getComputedName(),
+ title: currentChild.data.title,
+ });
+ },
+ onTap: function (event) {
+ var _this = this;
+ var index = event.currentTarget.dataset.index;
+ var child = this.children[index];
+ if (child.data.disabled) {
+ this.trigger('disabled', child);
+ }
+ else {
+ this.setCurrentIndex(index);
+ utils_1.nextTick(function () {
+ _this.trigger('click');
+ });
+ }
+ },
+ // correct the index of active tab
+ setCurrentIndexByName: function (name) {
+ var _a = this.children, children = _a === void 0 ? [] : _a;
+ var matched = children.filter(function (child) { return child.getComputedName() === name; });
+ if (matched.length) {
+ this.setCurrentIndex(matched[0].index);
+ }
+ },
+ setCurrentIndex: function (currentIndex) {
+ var _this = this;
+ var _a = this, data = _a.data, _b = _a.children, children = _b === void 0 ? [] : _b;
+ if (!validator_1.isDef(currentIndex) ||
+ currentIndex >= children.length ||
+ currentIndex < 0) {
+ return;
+ }
+ utils_1.groupSetData(this, function () {
+ children.forEach(function (item, index) {
+ var active = index === currentIndex;
+ if (active !== item.data.active || !item.inited) {
+ item.updateRender(active, _this);
+ }
+ });
+ });
+ if (currentIndex === data.currentIndex) {
+ return;
+ }
+ var shouldEmitChange = data.currentIndex !== null;
+ this.setData({ currentIndex: currentIndex });
+ utils_1.requestAnimationFrame(function () {
+ _this.resize();
+ _this.scrollIntoView();
+ });
+ utils_1.nextTick(function () {
+ _this.trigger('input');
+ if (shouldEmitChange) {
+ _this.trigger('change');
+ }
+ });
+ },
+ getCurrentName: function () {
+ var activeTab = this.children[this.data.currentIndex];
+ if (activeTab) {
+ return activeTab.getComputedName();
+ }
+ },
+ resize: function () {
+ var _this = this;
+ if (this.data.type !== 'line') {
+ return;
+ }
+ var _a = this.data, currentIndex = _a.currentIndex, ellipsis = _a.ellipsis, skipTransition = _a.skipTransition;
+ Promise.all([
+ utils_1.getAllRect(this, '.van-tab'),
+ utils_1.getRect(this, '.van-tabs__line'),
+ ]).then(function (_a) {
+ var _b = _a[0], rects = _b === void 0 ? [] : _b, lineRect = _a[1];
+ var rect = rects[currentIndex];
+ if (rect == null) {
+ return;
+ }
+ var lineOffsetLeft = rects
+ .slice(0, currentIndex)
+ .reduce(function (prev, curr) { return prev + curr.width; }, 0);
+ lineOffsetLeft +=
+ (rect.width - lineRect.width) / 2 + (ellipsis ? 0 : 8);
+ _this.setData({ lineOffsetLeft: lineOffsetLeft });
+ if (skipTransition) {
+ utils_1.nextTick(function () {
+ _this.setData({ skipTransition: false });
+ });
+ }
+ });
+ },
+ // scroll active tab into view
+ scrollIntoView: function () {
+ var _this = this;
+ var _a = this.data, currentIndex = _a.currentIndex, scrollable = _a.scrollable, scrollWithAnimation = _a.scrollWithAnimation;
+ if (!scrollable) {
+ return;
+ }
+ Promise.all([
+ utils_1.getAllRect(this, '.van-tab'),
+ utils_1.getRect(this, '.van-tabs__nav'),
+ ]).then(function (_a) {
+ var tabRects = _a[0], navRect = _a[1];
+ var tabRect = tabRects[currentIndex];
+ var offsetLeft = tabRects
+ .slice(0, currentIndex)
+ .reduce(function (prev, curr) { return prev + curr.width; }, 0);
+ _this.setData({
+ scrollLeft: offsetLeft - (navRect.width - tabRect.width) / 2,
+ });
+ if (!scrollWithAnimation) {
+ utils_1.nextTick(function () {
+ _this.setData({ scrollWithAnimation: true });
+ });
+ }
+ });
+ },
+ onTouchScroll: function (event) {
+ this.$emit('scroll', event.detail);
+ },
+ onTouchStart: function (event) {
+ if (!this.data.swipeable)
+ return;
+ this.touchStart(event);
+ },
+ onTouchMove: function (event) {
+ if (!this.data.swipeable)
+ return;
+ this.touchMove(event);
+ },
+ // watch swipe touch end
+ onTouchEnd: function () {
+ if (!this.data.swipeable)
+ return;
+ var _a = this, direction = _a.direction, deltaX = _a.deltaX, offsetX = _a.offsetX;
+ var minSwipeDistance = 50;
+ if (direction === 'horizontal' && offsetX >= minSwipeDistance) {
+ var index = this.getAvaiableTab(deltaX);
+ if (index !== -1) {
+ this.setCurrentIndex(index);
+ }
+ }
+ },
+ getAvaiableTab: function (direction) {
+ var _a = this.data, tabs = _a.tabs, currentIndex = _a.currentIndex;
+ var step = direction > 0 ? -1 : 1;
+ for (var i = step; currentIndex + i < tabs.length && currentIndex + i >= 0; i += step) {
+ var index = currentIndex + i;
+ if (index >= 0 &&
+ index < tabs.length &&
+ tabs[index] &&
+ !tabs[index].disabled) {
+ return index;
+ }
+ }
+ return -1;
+ },
},
- setCurrentIndex: function (currentIndex) {
- var _this = this;
- var _a = this,
- data = _a.data,
- _b = _a.children,
- children = _b === void 0 ? [] : _b;
- if (
- !validator_1.isDef(currentIndex) ||
- currentIndex >= children.length ||
- currentIndex < 0
- ) {
- return;
- }
- utils_1.groupSetData(this, function () {
- children.forEach(function (item, index) {
- var active = index === currentIndex;
- if (active !== item.data.active || !item.inited) {
- item.updateRender(active, _this);
- }
- });
- });
- if (currentIndex === data.currentIndex) {
- return;
- }
- var shouldEmitChange = data.currentIndex !== null;
- this.setData({ currentIndex: currentIndex });
- utils_1.requestAnimationFrame(function () {
- _this.resize();
- _this.scrollIntoView();
- });
- utils_1.nextTick(function () {
- _this.trigger('input');
- if (shouldEmitChange) {
- _this.trigger('change');
- }
- });
- },
- getCurrentName: function () {
- var activeTab = this.children[this.data.currentIndex];
- if (activeTab) {
- return activeTab.getComputedName();
- }
- },
- resize: function () {
- var _this = this;
- if (this.data.type !== 'line') {
- return;
- }
- var _a = this.data,
- currentIndex = _a.currentIndex,
- ellipsis = _a.ellipsis,
- skipTransition = _a.skipTransition;
- Promise.all([
- utils_1.getAllRect(this, '.van-tab'),
- utils_1.getRect(this, '.van-tabs__line'),
- ]).then(function (_a) {
- var _b = _a[0],
- rects = _b === void 0 ? [] : _b,
- lineRect = _a[1];
- var rect = rects[currentIndex];
- if (rect == null) {
- return;
- }
- var lineOffsetLeft = rects
- .slice(0, currentIndex)
- .reduce(function (prev, curr) {
- return prev + curr.width;
- }, 0);
- lineOffsetLeft +=
- (rect.width - lineRect.width) / 2 + (ellipsis ? 0 : 8);
- _this.setData({ lineOffsetLeft: lineOffsetLeft });
- if (skipTransition) {
- utils_1.nextTick(function () {
- _this.setData({ skipTransition: false });
- });
- }
- });
- },
- // scroll active tab into view
- scrollIntoView: function () {
- var _this = this;
- var _a = this.data,
- currentIndex = _a.currentIndex,
- scrollable = _a.scrollable,
- scrollWithAnimation = _a.scrollWithAnimation;
- if (!scrollable) {
- return;
- }
- Promise.all([
- utils_1.getAllRect(this, '.van-tab'),
- utils_1.getRect(this, '.van-tabs__nav'),
- ]).then(function (_a) {
- var tabRects = _a[0],
- navRect = _a[1];
- var tabRect = tabRects[currentIndex];
- var offsetLeft = tabRects
- .slice(0, currentIndex)
- .reduce(function (prev, curr) {
- return prev + curr.width;
- }, 0);
- _this.setData({
- scrollLeft: offsetLeft - (navRect.width - tabRect.width) / 2,
- });
- if (!scrollWithAnimation) {
- utils_1.nextTick(function () {
- _this.setData({ scrollWithAnimation: true });
- });
- }
- });
- },
- onTouchScroll: function (event) {
- this.$emit('scroll', event.detail);
- },
- onTouchStart: function (event) {
- if (!this.data.swipeable) return;
- this.touchStart(event);
- },
- onTouchMove: function (event) {
- if (!this.data.swipeable) return;
- this.touchMove(event);
- },
- // watch swipe touch end
- onTouchEnd: function () {
- if (!this.data.swipeable) return;
- var _a = this,
- direction = _a.direction,
- deltaX = _a.deltaX,
- offsetX = _a.offsetX;
- var minSwipeDistance = 50;
- if (direction === 'horizontal' && offsetX >= minSwipeDistance) {
- var index = this.getAvaiableTab(deltaX);
- if (index !== -1) {
- this.setCurrentIndex(index);
- }
- }
- },
- getAvaiableTab: function (direction) {
- var _a = this.data,
- tabs = _a.tabs,
- currentIndex = _a.currentIndex;
- var step = direction > 0 ? -1 : 1;
- for (
- var i = step;
- currentIndex + i < tabs.length && currentIndex + i >= 0;
- i += step
- ) {
- var index = currentIndex + i;
- if (
- index >= 0 &&
- index < tabs.length &&
- tabs[index] &&
- !tabs[index].disabled
- ) {
- return index;
- }
- }
- return -1;
- },
- },
});
diff --git a/lib/tag/index.js b/lib/tag/index.js
index b51d3fbb..b3d5d44f 100644
--- a/lib/tag/index.js
+++ b/lib/tag/index.js
@@ -1,23 +1,23 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
component_1.VantComponent({
- props: {
- size: String,
- mark: Boolean,
- color: String,
- plain: Boolean,
- round: Boolean,
- textColor: String,
- type: {
- type: String,
- value: 'default',
+ props: {
+ size: String,
+ mark: Boolean,
+ color: String,
+ plain: Boolean,
+ round: Boolean,
+ textColor: String,
+ type: {
+ type: String,
+ value: 'default',
+ },
+ closeable: Boolean,
},
- closeable: Boolean,
- },
- methods: {
- onClose: function () {
- this.$emit('close');
+ methods: {
+ onClose: function () {
+ this.$emit('close');
+ },
},
- },
});
diff --git a/lib/toast/index.js b/lib/toast/index.js
index da703bb5..56acd368 100644
--- a/lib/toast/index.js
+++ b/lib/toast/index.js
@@ -1,31 +1,31 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
component_1.VantComponent({
- props: {
- show: Boolean,
- mask: Boolean,
- message: String,
- forbidClick: Boolean,
- zIndex: {
- type: Number,
- value: 1000,
+ props: {
+ show: Boolean,
+ mask: Boolean,
+ message: String,
+ forbidClick: Boolean,
+ zIndex: {
+ type: Number,
+ value: 1000,
+ },
+ type: {
+ type: String,
+ value: 'text',
+ },
+ loadingType: {
+ type: String,
+ value: 'circular',
+ },
+ position: {
+ type: String,
+ value: 'middle',
+ },
},
- type: {
- type: String,
- value: 'text',
+ methods: {
+ // for prevent touchmove
+ noop: function () { },
},
- loadingType: {
- type: String,
- value: 'circular',
- },
- position: {
- type: String,
- value: 'middle',
- },
- },
- methods: {
- // for prevent touchmove
- noop: function () {},
- },
});
diff --git a/lib/toast/toast.js b/lib/toast/toast.js
index 20f00f7e..af8eb42c 100644
--- a/lib/toast/toast.js
+++ b/lib/toast/toast.js
@@ -1,92 +1,81 @@
-'use strict';
-var __assign =
- (this && this.__assign) ||
- function () {
- __assign =
- Object.assign ||
- function (t) {
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s)
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
+ 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 validator_1 = require('../common/validator');
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var validator_1 = require("../common/validator");
var defaultOptions = {
- type: 'text',
- mask: false,
- message: '',
- show: true,
- zIndex: 1000,
- duration: 2000,
- position: 'middle',
- forbidClick: false,
- loadingType: 'circular',
- selector: '#van-toast',
+ type: 'text',
+ mask: false,
+ message: '',
+ show: true,
+ zIndex: 1000,
+ duration: 2000,
+ position: 'middle',
+ forbidClick: false,
+ loadingType: 'circular',
+ selector: '#van-toast',
};
var queue = [];
var currentOptions = __assign({}, defaultOptions);
function parseOptions(message) {
- return validator_1.isObj(message) ? message : { message: message };
+ return validator_1.isObj(message) ? message : { message: message };
}
function getContext() {
- var pages = getCurrentPages();
- return pages[pages.length - 1];
+ var pages = getCurrentPages();
+ return pages[pages.length - 1];
}
function Toast(toastOptions) {
- var options = __assign(
- __assign({}, currentOptions),
- parseOptions(toastOptions)
- );
- var context = options.context || getContext();
- var toast = context.selectComponent(options.selector);
- if (!toast) {
- console.warn('未找到 van-toast 节点,请确认 selector 及 context 是否正确');
- return;
- }
- delete options.context;
- delete options.selector;
- toast.clear = function () {
- toast.setData({ show: false });
- if (options.onClose) {
- options.onClose();
+ var options = __assign(__assign({}, currentOptions), parseOptions(toastOptions));
+ var context = options.context || getContext();
+ var toast = context.selectComponent(options.selector);
+ if (!toast) {
+ console.warn('未找到 van-toast 节点,请确认 selector 及 context 是否正确');
+ return;
}
- };
- queue.push(toast);
- toast.setData(options);
- clearTimeout(toast.timer);
- if (options.duration != null && options.duration > 0) {
- toast.timer = setTimeout(function () {
- toast.clear();
- queue = queue.filter(function (item) {
- return item !== toast;
- });
- }, options.duration);
- }
- return toast;
+ delete options.context;
+ delete options.selector;
+ toast.clear = function () {
+ toast.setData({ show: false });
+ if (options.onClose) {
+ options.onClose();
+ }
+ };
+ queue.push(toast);
+ toast.setData(options);
+ clearTimeout(toast.timer);
+ if (options.duration != null && options.duration > 0) {
+ toast.timer = setTimeout(function () {
+ toast.clear();
+ queue = queue.filter(function (item) { return item !== toast; });
+ }, options.duration);
+ }
+ return toast;
}
-var createMethod = function (type) {
- return function (options) {
+var createMethod = function (type) { return function (options) {
return Toast(__assign({ type: type }, parseOptions(options)));
- };
-};
+}; };
Toast.loading = createMethod('loading');
Toast.success = createMethod('success');
Toast.fail = createMethod('fail');
Toast.clear = function () {
- queue.forEach(function (toast) {
- toast.clear();
- });
- queue = [];
+ queue.forEach(function (toast) {
+ toast.clear();
+ });
+ queue = [];
};
Toast.setDefaultOptions = function (options) {
- Object.assign(currentOptions, options);
+ Object.assign(currentOptions, options);
};
Toast.resetDefaultOptions = function () {
- currentOptions = __assign({}, defaultOptions);
+ currentOptions = __assign({}, defaultOptions);
};
exports.default = Toast;
diff --git a/lib/transition/index.js b/lib/transition/index.js
index f3c96e42..6b502fe3 100644
--- a/lib/transition/index.js
+++ b/lib/transition/index.js
@@ -1,15 +1,15 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
-var transition_1 = require('../mixins/transition');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var transition_1 = require("../mixins/transition");
component_1.VantComponent({
- classes: [
- 'enter-class',
- 'enter-active-class',
- 'enter-to-class',
- 'leave-class',
- 'leave-active-class',
- 'leave-to-class',
- ],
- mixins: [transition_1.transition(true)],
+ classes: [
+ 'enter-class',
+ 'enter-active-class',
+ 'enter-to-class',
+ 'leave-class',
+ 'leave-active-class',
+ 'leave-to-class',
+ ],
+ mixins: [transition_1.transition(true)],
});
diff --git a/lib/tree-select/index.js b/lib/tree-select/index.js
index 9796507e..dbb324c8 100644
--- a/lib/tree-select/index.js
+++ b/lib/tree-select/index.js
@@ -1,73 +1,70 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
-var component_1 = require('../common/component');
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
component_1.VantComponent({
- classes: [
- 'main-item-class',
- 'content-item-class',
- 'main-active-class',
- 'content-active-class',
- 'main-disabled-class',
- 'content-disabled-class',
- ],
- props: {
- items: {
- type: Array,
- observer: 'updateSubItems',
+ classes: [
+ 'main-item-class',
+ 'content-item-class',
+ 'main-active-class',
+ 'content-active-class',
+ 'main-disabled-class',
+ 'content-disabled-class',
+ ],
+ props: {
+ items: {
+ type: Array,
+ observer: 'updateSubItems',
+ },
+ activeId: null,
+ mainActiveIndex: {
+ type: Number,
+ value: 0,
+ observer: 'updateSubItems',
+ },
+ height: {
+ type: null,
+ value: 300,
+ },
+ max: {
+ type: Number,
+ value: Infinity,
+ },
+ selectedIcon: {
+ type: String,
+ value: 'success',
+ },
},
- activeId: null,
- mainActiveIndex: {
- type: Number,
- value: 0,
- observer: 'updateSubItems',
+ data: {
+ subItems: [],
},
- height: {
- type: null,
- value: 300,
+ methods: {
+ // 当一个子项被选择时
+ onSelectItem: function (event) {
+ var item = event.currentTarget.dataset.item;
+ var isArray = Array.isArray(this.data.activeId);
+ // 判断有没有超出右侧选择的最大数
+ var isOverMax = isArray && this.data.activeId.length >= this.data.max;
+ // 判断该项有没有被选中, 如果有被选中,则忽视是否超出的条件
+ var isSelected = isArray
+ ? this.data.activeId.indexOf(item.id) > -1
+ : this.data.activeId === item.id;
+ if (!item.disabled && (!isOverMax || isSelected)) {
+ this.$emit('click-item', item);
+ }
+ },
+ // 当一个导航被点击时
+ onClickNav: function (event) {
+ var index = event.detail;
+ var item = this.data.items[index];
+ if (!item.disabled) {
+ this.$emit('click-nav', { index: index });
+ }
+ },
+ // 更新子项列表
+ updateSubItems: function () {
+ var _a = this.data, items = _a.items, mainActiveIndex = _a.mainActiveIndex;
+ var _b = (items[mainActiveIndex] || {}).children, children = _b === void 0 ? [] : _b;
+ this.setData({ subItems: children });
+ },
},
- max: {
- type: Number,
- value: Infinity,
- },
- selectedIcon: {
- type: String,
- value: 'success',
- },
- },
- data: {
- subItems: [],
- },
- methods: {
- // 当一个子项被选择时
- onSelectItem: function (event) {
- var item = event.currentTarget.dataset.item;
- var isArray = Array.isArray(this.data.activeId);
- // 判断有没有超出右侧选择的最大数
- var isOverMax = isArray && this.data.activeId.length >= this.data.max;
- // 判断该项有没有被选中, 如果有被选中,则忽视是否超出的条件
- var isSelected = isArray
- ? this.data.activeId.indexOf(item.id) > -1
- : this.data.activeId === item.id;
- if (!item.disabled && (!isOverMax || isSelected)) {
- this.$emit('click-item', item);
- }
- },
- // 当一个导航被点击时
- onClickNav: function (event) {
- var index = event.detail;
- var item = this.data.items[index];
- if (!item.disabled) {
- this.$emit('click-nav', { index: index });
- }
- },
- // 更新子项列表
- updateSubItems: function () {
- var _a = this.data,
- items = _a.items,
- mainActiveIndex = _a.mainActiveIndex;
- var _b = (items[mainActiveIndex] || {}).children,
- children = _b === void 0 ? [] : _b;
- this.setData({ subItems: children });
- },
- },
});
diff --git a/lib/uploader/index.js b/lib/uploader/index.js
index ca3c43ad..f3eab245 100644
--- a/lib/uploader/index.js
+++ b/lib/uploader/index.js
@@ -1,246 +1,170 @@
-'use strict';
-var __assign =
- (this && this.__assign) ||
- function () {
- __assign =
- Object.assign ||
- function (t) {
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s)
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
+ 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');
-var utils_1 = require('./utils');
-var shared_1 = require('./shared');
-var validator_1 = require('../common/validator');
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+var component_1 = require("../common/component");
+var utils_1 = require("./utils");
+var shared_1 = require("./shared");
+var validator_1 = require("../common/validator");
component_1.VantComponent({
- props: __assign(
- __assign(
- {
- disabled: Boolean,
- multiple: Boolean,
- uploadText: String,
- useBeforeRead: Boolean,
- afterRead: null,
- beforeRead: null,
- previewSize: {
- type: null,
- value: 80,
- },
- name: {
- type: null,
- value: '',
- },
- accept: {
- type: String,
- value: 'image',
- },
- fileList: {
- type: Array,
- value: [],
- observer: 'formatFileList',
- },
- maxSize: {
- type: Number,
- value: Number.MAX_VALUE,
- },
- maxCount: {
- type: Number,
- value: 100,
- },
- deletable: {
- type: Boolean,
- value: true,
- },
- showUpload: {
- type: Boolean,
- value: true,
- },
- previewImage: {
- type: Boolean,
- value: true,
- },
- previewFullImage: {
- type: Boolean,
- value: true,
- },
- imageFit: {
- type: String,
- value: 'scaleToFill',
- },
- uploadIcon: {
- type: String,
- value: 'photograph',
- },
- },
- shared_1.chooseImageProps
- ),
- shared_1.chooseVideoProps
- ),
- data: {
- lists: [],
- isInCount: true,
- },
- methods: {
- formatFileList: function () {
- var _a = this.data,
- _b = _a.fileList,
- fileList = _b === void 0 ? [] : _b,
- maxCount = _a.maxCount;
- var lists = fileList.map(function (item) {
- return __assign(__assign({}, item), {
- isImage: utils_1.isImageFile(item),
- isVideo: utils_1.isVideoFile(item),
- deletable: validator_1.isBoolean(item.deletable)
- ? item.deletable
- : true,
- });
- });
- this.setData({ lists: lists, isInCount: lists.length < maxCount });
+ props: __assign(__assign({ disabled: Boolean, multiple: Boolean, uploadText: String, useBeforeRead: Boolean, afterRead: null, beforeRead: null, previewSize: {
+ type: null,
+ value: 80,
+ }, name: {
+ type: null,
+ value: '',
+ }, accept: {
+ type: String,
+ value: 'image',
+ }, fileList: {
+ type: Array,
+ value: [],
+ observer: 'formatFileList',
+ }, maxSize: {
+ type: Number,
+ value: Number.MAX_VALUE,
+ }, maxCount: {
+ type: Number,
+ value: 100,
+ }, deletable: {
+ type: Boolean,
+ value: true,
+ }, showUpload: {
+ type: Boolean,
+ value: true,
+ }, previewImage: {
+ type: Boolean,
+ value: true,
+ }, previewFullImage: {
+ type: Boolean,
+ value: true,
+ }, imageFit: {
+ type: String,
+ value: 'scaleToFill',
+ }, uploadIcon: {
+ type: String,
+ value: 'photograph',
+ } }, shared_1.chooseImageProps), shared_1.chooseVideoProps),
+ data: {
+ lists: [],
+ isInCount: true,
},
- getDetail: function (index) {
- return {
- name: this.data.name,
- index: index == null ? this.data.fileList.length : index,
- };
- },
- startUpload: function () {
- var _this = this;
- var _a = this.data,
- maxCount = _a.maxCount,
- multiple = _a.multiple,
- lists = _a.lists,
- disabled = _a.disabled;
- if (disabled) return;
- utils_1
- .chooseFile(
- __assign(__assign({}, this.data), {
- maxCount: maxCount - lists.length,
- })
- )
- .then(function (res) {
- _this.onBeforeRead(multiple ? res : res[0]);
- })
- .catch(function (error) {
- _this.$emit('error', error);
- });
- },
- onBeforeRead: function (file) {
- var _this = this;
- var _a = this.data,
- beforeRead = _a.beforeRead,
- useBeforeRead = _a.useBeforeRead;
- var res = true;
- if (typeof beforeRead === 'function') {
- res = beforeRead(file, this.getDetail());
- }
- if (useBeforeRead) {
- res = new Promise(function (resolve, reject) {
- _this.$emit(
- 'before-read',
- __assign(__assign({ file: file }, _this.getDetail()), {
- callback: function (ok) {
- ok ? resolve() : reject();
- },
+ methods: {
+ formatFileList: function () {
+ var _a = this.data, _b = _a.fileList, fileList = _b === void 0 ? [] : _b, maxCount = _a.maxCount;
+ var lists = fileList.map(function (item) { return (__assign(__assign({}, item), { isImage: utils_1.isImageFile(item), isVideo: utils_1.isVideoFile(item), deletable: validator_1.isBoolean(item.deletable) ? item.deletable : true })); });
+ this.setData({ lists: lists, isInCount: lists.length < maxCount });
+ },
+ getDetail: function (index) {
+ return {
+ name: this.data.name,
+ index: index == null ? this.data.fileList.length : index,
+ };
+ },
+ startUpload: function () {
+ var _this = this;
+ var _a = this.data, maxCount = _a.maxCount, multiple = _a.multiple, lists = _a.lists, disabled = _a.disabled;
+ if (disabled)
+ return;
+ utils_1.chooseFile(__assign(__assign({}, this.data), { maxCount: maxCount - lists.length }))
+ .then(function (res) {
+ _this.onBeforeRead(multiple ? res : res[0]);
})
- );
- });
- }
- if (!res) {
- return;
- }
- if (validator_1.isPromise(res)) {
- res.then(function (data) {
- return _this.onAfterRead(data || file);
- });
- } else {
- this.onAfterRead(file);
- }
- },
- onAfterRead: function (file) {
- var _a = this.data,
- maxSize = _a.maxSize,
- afterRead = _a.afterRead;
- var oversize = Array.isArray(file)
- ? file.some(function (item) {
- return item.size > maxSize;
- })
- : file.size > maxSize;
- if (oversize) {
- this.$emit('oversize', __assign({ file: file }, this.getDetail()));
- return;
- }
- if (typeof afterRead === 'function') {
- afterRead(file, this.getDetail());
- }
- this.$emit('after-read', __assign({ file: file }, this.getDetail()));
- },
- deleteItem: function (event) {
- var index = event.currentTarget.dataset.index;
- this.$emit(
- 'delete',
- __assign(__assign({}, this.getDetail(index)), {
- file: this.data.fileList[index],
- })
- );
- },
- onPreviewImage: function (event) {
- if (!this.data.previewFullImage) return;
- var index = event.currentTarget.dataset.index;
- var lists = this.data.lists;
- var item = lists[index];
- wx.previewImage({
- urls: lists
- .filter(function (item) {
- return utils_1.isImageFile(item);
- })
- .map(function (item) {
- return item.url;
- }),
- current: item.url,
- fail: function () {
- wx.showToast({ title: '预览图片失败', icon: 'none' });
+ .catch(function (error) {
+ _this.$emit('error', error);
+ });
},
- });
- },
- onPreviewVideo: function (event) {
- if (!this.data.previewFullImage) return;
- var index = event.currentTarget.dataset.index;
- var lists = this.data.lists;
- wx.previewMedia({
- sources: lists
- .filter(function (item) {
- return utils_1.isVideoFile(item);
- })
- .map(function (item) {
- return __assign(__assign({}, item), { type: 'video' });
- }),
- current: index,
- fail: function () {
- wx.showToast({ title: '预览视频失败', icon: 'none' });
+ onBeforeRead: function (file) {
+ var _this = this;
+ var _a = this.data, beforeRead = _a.beforeRead, useBeforeRead = _a.useBeforeRead;
+ var res = true;
+ if (typeof beforeRead === 'function') {
+ res = beforeRead(file, this.getDetail());
+ }
+ if (useBeforeRead) {
+ res = new Promise(function (resolve, reject) {
+ _this.$emit('before-read', __assign(__assign({ file: file }, _this.getDetail()), { callback: function (ok) {
+ ok ? resolve() : reject();
+ } }));
+ });
+ }
+ if (!res) {
+ return;
+ }
+ if (validator_1.isPromise(res)) {
+ res.then(function (data) { return _this.onAfterRead(data || file); });
+ }
+ else {
+ this.onAfterRead(file);
+ }
+ },
+ onAfterRead: function (file) {
+ var _a = this.data, maxSize = _a.maxSize, afterRead = _a.afterRead;
+ var oversize = Array.isArray(file)
+ ? file.some(function (item) { return item.size > maxSize; })
+ : file.size > maxSize;
+ if (oversize) {
+ this.$emit('oversize', __assign({ file: file }, this.getDetail()));
+ return;
+ }
+ if (typeof afterRead === 'function') {
+ afterRead(file, this.getDetail());
+ }
+ this.$emit('after-read', __assign({ file: file }, this.getDetail()));
+ },
+ deleteItem: function (event) {
+ var index = event.currentTarget.dataset.index;
+ this.$emit('delete', __assign(__assign({}, this.getDetail(index)), { file: this.data.fileList[index] }));
+ },
+ onPreviewImage: function (event) {
+ if (!this.data.previewFullImage)
+ return;
+ var index = event.currentTarget.dataset.index;
+ var lists = this.data.lists;
+ var item = lists[index];
+ wx.previewImage({
+ urls: lists.filter(function (item) { return utils_1.isImageFile(item); }).map(function (item) { return item.url; }),
+ current: item.url,
+ fail: function () {
+ wx.showToast({ title: '预览图片失败', icon: 'none' });
+ },
+ });
+ },
+ onPreviewVideo: function (event) {
+ if (!this.data.previewFullImage)
+ return;
+ var index = event.currentTarget.dataset.index;
+ var lists = this.data.lists;
+ wx.previewMedia({
+ sources: lists
+ .filter(function (item) { return utils_1.isVideoFile(item); })
+ .map(function (item) { return (__assign(__assign({}, item), { type: 'video' })); }),
+ current: index,
+ fail: function () {
+ wx.showToast({ title: '预览视频失败', icon: 'none' });
+ },
+ });
+ },
+ onPreviewFile: function (event) {
+ var index = event.currentTarget.dataset.index;
+ wx.openDocument({
+ filePath: this.data.lists[index].url,
+ showMenu: true,
+ });
+ },
+ onClickPreview: function (event) {
+ var index = event.currentTarget.dataset.index;
+ var item = this.data.lists[index];
+ this.$emit('click-preview', __assign(__assign({}, item), this.getDetail(index)));
},
- });
},
- onPreviewFile: function (event) {
- var index = event.currentTarget.dataset.index;
- wx.openDocument({
- filePath: this.data.lists[index].url,
- showMenu: true,
- });
- },
- onClickPreview: function (event) {
- var index = event.currentTarget.dataset.index;
- var item = this.data.lists[index];
- this.$emit(
- 'click-preview',
- __assign(__assign({}, item), this.getDetail(index))
- );
- },
- },
});
diff --git a/lib/uploader/shared.js b/lib/uploader/shared.js
index 94186186..c5df55ee 100644
--- a/lib/uploader/shared.js
+++ b/lib/uploader/shared.js
@@ -1,33 +1,33 @@
-'use strict';
-Object.defineProperty(exports, '__esModule', { value: true });
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
exports.chooseVideoProps = exports.chooseImageProps = void 0;
// props for choose image
exports.chooseImageProps = {
- sizeType: {
- type: Array,
- value: ['original', 'compressed'],
- },
- capture: {
- type: Array,
- value: ['album', 'camera'],
- },
+ sizeType: {
+ type: Array,
+ value: ['original', 'compressed'],
+ },
+ capture: {
+ type: Array,
+ value: ['album', 'camera'],
+ },
};
// props for choose video
exports.chooseVideoProps = {
- capture: {
- type: Array,
- value: ['album', 'camera'],
- },
- compressed: {
- type: Boolean,
- value: true,
- },
- maxDuration: {
- type: Number,
- value: 60,
- },
- camera: {
- type: String,
- value: 'back',
- },
+ capture: {
+ type: Array,
+ value: ['album', 'camera'],
+ },
+ compressed: {
+ type: Boolean,
+ value: true,
+ },
+ maxDuration: {
+ type: Number,
+ value: 60,
+ },
+ camera: {
+ type: String,
+ value: 'back',
+ },
};
diff --git a/lib/uploader/utils.js b/lib/uploader/utils.js
index d8eb8522..e584d961 100644
--- a/lib/uploader/utils.js
+++ b/lib/uploader/utils.js
@@ -1,158 +1,102 @@
-'use strict';
-var __assign =
- (this && this.__assign) ||
- function () {
- __assign =
- Object.assign ||
- function (t) {
+"use strict";
+var __assign = (this && this.__assign) || function () {
+ __assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s)
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
+ 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 });
+};
+Object.defineProperty(exports, "__esModule", { value: true });
exports.chooseFile = exports.isVideoFile = exports.isImageFile = void 0;
-var utils_1 = require('../common/utils');
-var validator_1 = require('../common/validator');
+var utils_1 = require("../common/utils");
+var validator_1 = require("../common/validator");
function isImageFile(item) {
- if (item.isImage != null) {
- return item.isImage;
- }
- if (item.type) {
- return item.type === 'image';
- }
- if (item.url) {
- return validator_1.isImageUrl(item.url);
- }
- return false;
+ if (item.isImage != null) {
+ return item.isImage;
+ }
+ if (item.type) {
+ return item.type === 'image';
+ }
+ if (item.url) {
+ return validator_1.isImageUrl(item.url);
+ }
+ return false;
}
exports.isImageFile = isImageFile;
function isVideoFile(item) {
- if (item.isVideo != null) {
- return item.isVideo;
- }
- if (item.type) {
- return item.type === 'video';
- }
- if (item.url) {
- return validator_1.isVideoUrl(item.url);
- }
- return false;
+ if (item.isVideo != null) {
+ return item.isVideo;
+ }
+ if (item.type) {
+ return item.type === 'video';
+ }
+ if (item.url) {
+ return validator_1.isVideoUrl(item.url);
+ }
+ return false;
}
exports.isVideoFile = isVideoFile;
function formatImage(res) {
- return res.tempFiles.map(function (item) {
- return __assign(__assign({}, utils_1.pickExclude(item, ['path'])), {
- type: 'image',
- url: item.path,
- thumb: item.path,
- });
- });
+ return res.tempFiles.map(function (item) { return (__assign(__assign({}, utils_1.pickExclude(item, ['path'])), { type: 'image', url: item.path, thumb: item.path })); });
}
function formatVideo(res) {
- return [
- __assign(
- __assign(
- {},
- utils_1.pickExclude(res, [
- 'tempFilePath',
- 'thumbTempFilePath',
- 'errMsg',
- ])
- ),
- { type: 'video', url: res.tempFilePath, thumb: res.thumbTempFilePath }
- ),
- ];
+ return [
+ __assign(__assign({}, utils_1.pickExclude(res, ['tempFilePath', 'thumbTempFilePath', 'errMsg'])), { type: 'video', url: res.tempFilePath, thumb: res.thumbTempFilePath }),
+ ];
}
function formatMedia(res) {
- return res.tempFiles.map(function (item) {
- return __assign(
- __assign(
- {},
- utils_1.pickExclude(item, [
- 'fileType',
- 'thumbTempFilePath',
- 'tempFilePath',
- ])
- ),
- {
- type: res.type,
- url: item.tempFilePath,
- thumb:
- res.type === 'video' ? item.thumbTempFilePath : item.tempFilePath,
- }
- );
- });
+ return res.tempFiles.map(function (item) { return (__assign(__assign({}, utils_1.pickExclude(item, ['fileType', 'thumbTempFilePath', 'tempFilePath'])), { type: res.type, url: item.tempFilePath, thumb: res.type === 'video' ? item.thumbTempFilePath : item.tempFilePath })); });
}
function formatFile(res) {
- return res.tempFiles.map(function (item) {
- return __assign(__assign({}, utils_1.pickExclude(item, ['path'])), {
- url: item.path,
- });
- });
+ return res.tempFiles.map(function (item) { return (__assign(__assign({}, utils_1.pickExclude(item, ['path'])), { url: item.path })); });
}
function chooseFile(_a) {
- var accept = _a.accept,
- multiple = _a.multiple,
- capture = _a.capture,
- compressed = _a.compressed,
- maxDuration = _a.maxDuration,
- sizeType = _a.sizeType,
- camera = _a.camera,
- maxCount = _a.maxCount;
- return new Promise(function (resolve, reject) {
- switch (accept) {
- case 'image':
- wx.chooseImage({
- count: multiple ? Math.min(maxCount, 9) : 1,
- sourceType: capture,
- sizeType: sizeType,
- success: function (res) {
- return resolve(formatImage(res));
- },
- fail: reject,
- });
- break;
- case 'media':
- wx.chooseMedia({
- count: multiple ? Math.min(maxCount, 9) : 1,
- sourceType: capture,
- maxDuration: maxDuration,
- sizeType: sizeType,
- camera: camera,
- success: function (res) {
- return resolve(formatMedia(res));
- },
- fail: reject,
- });
- break;
- case 'video':
- wx.chooseVideo({
- sourceType: capture,
- compressed: compressed,
- maxDuration: maxDuration,
- camera: camera,
- success: function (res) {
- return resolve(formatVideo(res));
- },
- fail: reject,
- });
- break;
- default:
- wx.chooseMessageFile({
- count: multiple ? maxCount : 1,
- type: accept,
- success: function (res) {
- return resolve(formatFile(res));
- },
- fail: reject,
- });
- break;
- }
- });
+ var accept = _a.accept, multiple = _a.multiple, capture = _a.capture, compressed = _a.compressed, maxDuration = _a.maxDuration, sizeType = _a.sizeType, camera = _a.camera, maxCount = _a.maxCount;
+ return new Promise(function (resolve, reject) {
+ switch (accept) {
+ case 'image':
+ wx.chooseImage({
+ count: multiple ? Math.min(maxCount, 9) : 1,
+ sourceType: capture,
+ sizeType: sizeType,
+ success: function (res) { return resolve(formatImage(res)); },
+ fail: reject,
+ });
+ break;
+ case 'media':
+ wx.chooseMedia({
+ count: multiple ? Math.min(maxCount, 9) : 1,
+ sourceType: capture,
+ maxDuration: maxDuration,
+ sizeType: sizeType,
+ camera: camera,
+ success: function (res) { return resolve(formatMedia(res)); },
+ fail: reject,
+ });
+ break;
+ case 'video':
+ wx.chooseVideo({
+ sourceType: capture,
+ compressed: compressed,
+ maxDuration: maxDuration,
+ camera: camera,
+ success: function (res) { return resolve(formatVideo(res)); },
+ fail: reject,
+ });
+ break;
+ default:
+ wx.chooseMessageFile({
+ count: multiple ? maxCount : 1,
+ type: accept,
+ success: function (res) { return resolve(formatFile(res)); },
+ fail: reject,
+ });
+ break;
+ }
+ });
}
exports.chooseFile = chooseFile;
diff --git a/package.json b/package.json
index 32a57777..53553ed1 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@vant/weapp",
- "version": "1.8.6",
+ "version": "1.8.7",
"author": "youzan",
"license": "MIT",
"miniprogram": "lib",
@@ -39,18 +39,18 @@
},
"homepage": "https://github.com/youzan/vant-weapp#readme",
"devDependencies": {
- "@vant/cli": "^3.11.2",
- "@vant/icons": "^1.6.0",
+ "@vant/cli": "^4.0.0-beta.5",
+ "@vant/icons": "^1.7.1",
"gulp": "^4.0.2",
"gulp-insert": "^0.5.0",
"gulp-less": "^5.0.0",
- "gulp-postcss": "^9.0.0",
+ "gulp-postcss": "^9.0.1",
"gulp-rename": "^2.0.0",
"miniprogram-api-typings": "^3.1.6",
- "miniprogram-ci": "^1.0.27",
+ "miniprogram-ci": "^1.6.1",
"tscpaths": "^0.0.9",
"vue": "^3.2.1",
- "@vue/compiler-sfc": "^3.2.1"
+ "@vue/compiler-sfc": "^3.2.13"
},
"browserslist": [
"Chrome >= 53",
diff --git a/yarn.lock b/yarn.lock
index 9c4883a1..dac6a6f0 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -132,52 +132,54 @@
dependencies:
"@babel/highlight" "^7.10.4"
-"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.14.5", "@babel/code-frame@^7.8.3":
+"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.10.4", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.14.5.tgz#23b08d740e83f49c5e59945fbf1b43e80bbf4edb"
integrity sha512-9pzDqyc6OLDaqe+zbACgFkb6fKMNG6CObKpnYXChRsvYGyEdc7CA2BaqeOM+vOtCS5ndmJicPJhKAwYRI6UfFw==
dependencies:
"@babel/highlight" "^7.14.5"
-"@babel/compat-data@^7.13.11", "@babel/compat-data@^7.14.5":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.14.5.tgz#8ef4c18e58e801c5c95d3c1c0f2874a2680fadea"
- integrity sha512-kixrYn4JwfAVPa0f2yfzc2AWti6WRRyO3XjWW5PJAvtE11qhSayrrcrEnee05KAtNaPC+EwehE8Qt1UedEVB8w==
+"@babel/compat-data@^7.12.1", "@babel/compat-data@^7.13.11", "@babel/compat-data@^7.15.0":
+ version "7.15.0"
+ resolved "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.15.0.tgz#2dbaf8b85334796cafbb0f5793a90a2fc010b176"
+ integrity sha512-0NqAC1IJE0S0+lL1SWFMxMkz1pKCNCjI4tr2Zx4LJSXxCLAdr6KyArnY+sno5m3yH9g737ygOyPABDsnXkpxiA==
-"@babel/core@7.4.3":
- version "7.4.3"
- resolved "https://registry.npm.taobao.org/@babel/core/download/@babel/core-7.4.3.tgz#198d6d3af4567be3989550d97e068de94503074f"
- integrity sha1-GY1tOvRWe+OYlVDZfgaN6UUDB08=
+"@babel/core@7.12.3":
+ version "7.12.3"
+ resolved "https://registry.npmjs.org/@babel/core/-/core-7.12.3.tgz#1b436884e1e3bff6fb1328dc02b208759de92ad8"
+ integrity sha512-0qXcZYKZp3/6N2jKYVxZv0aNCsxTSVCiK72DTiTYZAu7sjg73W0/aynWjMbiGd87EQL4WyA8reiJVh92AVla9g==
dependencies:
- "@babel/code-frame" "^7.0.0"
- "@babel/generator" "^7.4.0"
- "@babel/helpers" "^7.4.3"
- "@babel/parser" "^7.4.3"
- "@babel/template" "^7.4.0"
- "@babel/traverse" "^7.4.3"
- "@babel/types" "^7.4.0"
- convert-source-map "^1.1.0"
+ "@babel/code-frame" "^7.10.4"
+ "@babel/generator" "^7.12.1"
+ "@babel/helper-module-transforms" "^7.12.1"
+ "@babel/helpers" "^7.12.1"
+ "@babel/parser" "^7.12.3"
+ "@babel/template" "^7.10.4"
+ "@babel/traverse" "^7.12.1"
+ "@babel/types" "^7.12.1"
+ convert-source-map "^1.7.0"
debug "^4.1.0"
- json5 "^2.1.0"
- lodash "^4.17.11"
+ gensync "^1.0.0-beta.1"
+ json5 "^2.1.2"
+ lodash "^4.17.19"
resolve "^1.3.2"
semver "^5.4.1"
source-map "^0.5.0"
-"@babel/core@>=7.9.0", "@babel/core@^7.1.0", "@babel/core@^7.14.5", "@babel/core@^7.7.5":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.14.5.tgz#d281f46a9905f07d1b3bf71ead54d9c7d89cb1e3"
- integrity sha512-RN/AwP2DJmQTZSfiDaD+JQQ/J99KsIpOCfBE5pL+5jJSt7nI3nYGoAXZu+ffYSQ029NLs2DstZb+eR81uuARgg==
+"@babel/core@>=7.9.0", "@babel/core@^7.1.0", "@babel/core@^7.14.8", "@babel/core@^7.15.0", "@babel/core@^7.7.2", "@babel/core@^7.7.5":
+ version "7.15.5"
+ resolved "https://registry.npmjs.org/@babel/core/-/core-7.15.5.tgz#f8ed9ace730722544609f90c9bb49162dc3bf5b9"
+ integrity sha512-pYgXxiwAgQpgM1bNkZsDEq85f0ggXMA5L7c+o3tskGMh2BunCI9QUwB9Z4jpvXUOuMdyGKiGKQiRe11VS6Jzvg==
dependencies:
"@babel/code-frame" "^7.14.5"
- "@babel/generator" "^7.14.5"
- "@babel/helper-compilation-targets" "^7.14.5"
- "@babel/helper-module-transforms" "^7.14.5"
- "@babel/helpers" "^7.14.5"
- "@babel/parser" "^7.14.5"
- "@babel/template" "^7.14.5"
- "@babel/traverse" "^7.14.5"
- "@babel/types" "^7.14.5"
+ "@babel/generator" "^7.15.4"
+ "@babel/helper-compilation-targets" "^7.15.4"
+ "@babel/helper-module-transforms" "^7.15.4"
+ "@babel/helpers" "^7.15.4"
+ "@babel/parser" "^7.15.5"
+ "@babel/template" "^7.15.4"
+ "@babel/traverse" "^7.15.4"
+ "@babel/types" "^7.15.4"
convert-source-map "^1.7.0"
debug "^4.1.0"
gensync "^1.0.0-beta.2"
@@ -185,21 +187,21 @@
semver "^6.3.0"
source-map "^0.5.0"
-"@babel/generator@^7.14.5", "@babel/generator@^7.4.0":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.14.5.tgz#848d7b9f031caca9d0cd0af01b063f226f52d785"
- integrity sha512-y3rlP+/G25OIX3mYKKIOlQRcqj7YgrvHxOLbVmyLJ9bPmi5ttvUmpydVjcFjZphOktWuA7ovbx91ECloWTfjIA==
+"@babel/generator@^7.12.1", "@babel/generator@^7.15.4", "@babel/generator@^7.7.2":
+ version "7.15.4"
+ resolved "https://registry.npmjs.org/@babel/generator/-/generator-7.15.4.tgz#85acb159a267ca6324f9793986991ee2022a05b0"
+ integrity sha512-d3itta0tu+UayjEORPNz6e1T3FtvWlP5N4V5M+lhp/CxT4oAA7/NcScnpRyspUMLK6tu9MNHmQHxRykuN2R7hw==
dependencies:
- "@babel/types" "^7.14.5"
+ "@babel/types" "^7.15.4"
jsesc "^2.5.1"
source-map "^0.5.0"
-"@babel/helper-annotate-as-pure@^7.14.5":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.14.5.tgz#7bf478ec3b71726d56a8ca5775b046fc29879e61"
- integrity sha512-EivH9EgBIb+G8ij1B2jAwSH36WnGvkQSEC6CkX/6v6ZFlw5fVOHvsgGF4uiEHO2GzMvunZb6tDLQEQSdrdocrA==
+"@babel/helper-annotate-as-pure@^7.14.5", "@babel/helper-annotate-as-pure@^7.15.4":
+ version "7.15.4"
+ resolved "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.15.4.tgz#3d0e43b00c5e49fdb6c57e421601a7a658d5f835"
+ integrity sha512-QwrtdNvUNsPCj2lfNQacsGSQvGX8ee1ttrBrcozUP2Sv/jylewBP/8QFe6ZkBsC8T/GYWonNAWJV4aRR9AL2DA==
dependencies:
- "@babel/types" "^7.14.5"
+ "@babel/types" "^7.15.4"
"@babel/helper-builder-binary-assignment-operator-visitor@^7.14.5":
version "7.14.5"
@@ -209,27 +211,27 @@
"@babel/helper-explode-assignable-expression" "^7.14.5"
"@babel/types" "^7.14.5"
-"@babel/helper-compilation-targets@^7.13.0", "@babel/helper-compilation-targets@^7.14.5":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.14.5.tgz#7a99c5d0967911e972fe2c3411f7d5b498498ecf"
- integrity sha512-v+QtZqXEiOnpO6EYvlImB6zCD2Lel06RzOPzmkz/D/XgQiUu3C/Jb1LOqSt/AIA34TYi/Q+KlT8vTQrgdxkbLw==
+"@babel/helper-compilation-targets@^7.12.1", "@babel/helper-compilation-targets@^7.13.0", "@babel/helper-compilation-targets@^7.15.4":
+ version "7.15.4"
+ resolved "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.15.4.tgz#cf6d94f30fbefc139123e27dd6b02f65aeedb7b9"
+ integrity sha512-rMWPCirulnPSe4d+gwdWXLfAXTTBj8M3guAf5xFQJ0nvFY7tfNAFnWdqaHegHlgDZOCT4qvhF3BYlSJag8yhqQ==
dependencies:
- "@babel/compat-data" "^7.14.5"
+ "@babel/compat-data" "^7.15.0"
"@babel/helper-validator-option" "^7.14.5"
browserslist "^4.16.6"
semver "^6.3.0"
-"@babel/helper-create-class-features-plugin@^7.14.5", "@babel/helper-create-class-features-plugin@^7.4.0":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.14.5.tgz#8842ec495516dd1ed8f6c572be92ba78b1e9beef"
- integrity sha512-Uq9z2e7ZtcnDMirRqAGLRaLwJn+Lrh388v5ETrR3pALJnElVh2zqQmdbz4W2RUJYohAPh2mtyPUgyMHMzXMncQ==
+"@babel/helper-create-class-features-plugin@^7.12.1", "@babel/helper-create-class-features-plugin@^7.14.5", "@babel/helper-create-class-features-plugin@^7.15.4":
+ version "7.15.4"
+ resolved "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.15.4.tgz#7f977c17bd12a5fba363cb19bea090394bf37d2e"
+ integrity sha512-7ZmzFi+DwJx6A7mHRwbuucEYpyBwmh2Ca0RvI6z2+WLZYCqV0JOaLb+u0zbtmDicebgKBZgqbYfLaKNqSgv5Pw==
dependencies:
- "@babel/helper-annotate-as-pure" "^7.14.5"
- "@babel/helper-function-name" "^7.14.5"
- "@babel/helper-member-expression-to-functions" "^7.14.5"
- "@babel/helper-optimise-call-expression" "^7.14.5"
- "@babel/helper-replace-supers" "^7.14.5"
- "@babel/helper-split-export-declaration" "^7.14.5"
+ "@babel/helper-annotate-as-pure" "^7.15.4"
+ "@babel/helper-function-name" "^7.15.4"
+ "@babel/helper-member-expression-to-functions" "^7.15.4"
+ "@babel/helper-optimise-call-expression" "^7.15.4"
+ "@babel/helper-replace-supers" "^7.15.4"
+ "@babel/helper-split-export-declaration" "^7.15.4"
"@babel/helper-create-regexp-features-plugin@^7.14.5":
version "7.14.5"
@@ -260,144 +262,153 @@
dependencies:
"@babel/types" "^7.14.5"
-"@babel/helper-function-name@^7.14.5":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.14.5.tgz#89e2c474972f15d8e233b52ee8c480e2cfcd50c4"
- integrity sha512-Gjna0AsXWfFvrAuX+VKcN/aNNWonizBj39yGwUzVDVTlMYJMK2Wp6xdpy72mfArFq5uK+NOuexfzZlzI1z9+AQ==
+"@babel/helper-function-name@^7.14.5", "@babel/helper-function-name@^7.15.4":
+ version "7.15.4"
+ resolved "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.15.4.tgz#845744dafc4381a4a5fb6afa6c3d36f98a787ebc"
+ integrity sha512-Z91cOMM4DseLIGOnog+Z8OI6YseR9bua+HpvLAQ2XayUGU+neTtX+97caALaLdyu53I/fjhbeCnWnRH1O3jFOw==
dependencies:
- "@babel/helper-get-function-arity" "^7.14.5"
- "@babel/template" "^7.14.5"
- "@babel/types" "^7.14.5"
+ "@babel/helper-get-function-arity" "^7.15.4"
+ "@babel/template" "^7.15.4"
+ "@babel/types" "^7.15.4"
-"@babel/helper-get-function-arity@^7.14.5":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.14.5.tgz#25fbfa579b0937eee1f3b805ece4ce398c431815"
- integrity sha512-I1Db4Shst5lewOM4V+ZKJzQ0JGGaZ6VY1jYvMghRjqs6DWgxLCIyFt30GlnKkfUeFLpJt2vzbMVEXVSXlIFYUg==
+"@babel/helper-get-function-arity@^7.15.4":
+ version "7.15.4"
+ resolved "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.15.4.tgz#098818934a137fce78b536a3e015864be1e2879b"
+ integrity sha512-1/AlxSF92CmGZzHnC515hm4SirTxtpDnLEJ0UyEMgTMZN+6bxXKg04dKhiRx5Enel+SUA1G1t5Ed/yQia0efrA==
dependencies:
- "@babel/types" "^7.14.5"
+ "@babel/types" "^7.15.4"
-"@babel/helper-hoist-variables@^7.14.5":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.14.5.tgz#e0dd27c33a78e577d7c8884916a3e7ef1f7c7f8d"
- integrity sha512-R1PXiz31Uc0Vxy4OEOm07x0oSjKAdPPCh3tPivn/Eo8cvz6gveAeuyUUPB21Hoiif0uoPQSSdhIPS3352nvdyQ==
+"@babel/helper-hoist-variables@^7.15.4":
+ version "7.15.4"
+ resolved "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.15.4.tgz#09993a3259c0e918f99d104261dfdfc033f178df"
+ integrity sha512-VTy085egb3jUGVK9ycIxQiPbquesq0HUQ+tPO0uv5mPEBZipk+5FkRKiWq5apuyTE9FUrjENB0rCf8y+n+UuhA==
dependencies:
- "@babel/types" "^7.14.5"
+ "@babel/types" "^7.15.4"
-"@babel/helper-member-expression-to-functions@^7.14.5":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.14.5.tgz#d5c70e4ad13b402c95156c7a53568f504e2fb7b8"
- integrity sha512-UxUeEYPrqH1Q/k0yRku1JE7dyfyehNwT6SVkMHvYvPDv4+uu627VXBckVj891BO8ruKBkiDoGnZf4qPDD8abDQ==
+"@babel/helper-member-expression-to-functions@^7.15.4":
+ version "7.15.4"
+ resolved "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.15.4.tgz#bfd34dc9bba9824a4658b0317ec2fd571a51e6ef"
+ integrity sha512-cokOMkxC/BTyNP1AlY25HuBWM32iCEsLPI4BHDpJCHHm1FU2E7dKWWIXJgQgSFiu4lp8q3bL1BIKwqkSUviqtA==
dependencies:
- "@babel/types" "^7.14.5"
+ "@babel/types" "^7.15.4"
-"@babel/helper-module-imports@7.0.0":
- version "7.0.0"
- resolved "https://registry.npm.taobao.org/@babel/helper-module-imports/download/@babel/helper-module-imports-7.0.0.tgz?cache=0&sync_timestamp=1596801280465&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fhelper-module-imports%2Fdownload%2F%40babel%2Fhelper-module-imports-7.0.0.tgz#96081b7111e486da4d2cd971ad1a4fe216cc2e3d"
- integrity sha1-lggbcRHkhtpNLNlxrRpP4hbMLj0=
+"@babel/helper-module-imports@7.12.1":
+ version "7.12.1"
+ resolved "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.12.1.tgz#1644c01591a15a2f084dd6d092d9430eb1d1216c"
+ integrity sha512-ZeC1TlMSvikvJNy1v/wPIazCu3NdOwgYZLIkmIyAsGhqkNpiDoQQRmaCK8YP4Pq3GPTLPV9WXaPCJKvx06JxKA==
dependencies:
- "@babel/types" "^7.0.0"
+ "@babel/types" "^7.12.1"
-"@babel/helper-module-imports@^7.0.0", "@babel/helper-module-imports@^7.12.13", "@babel/helper-module-imports@^7.14.5":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.14.5.tgz#6d1a44df6a38c957aa7c312da076429f11b422f3"
- integrity sha512-SwrNHu5QWS84XlHwGYPDtCxcA0hrSlL2yhWYLgeOc0w7ccOl2qv4s/nARI0aYZW+bSwAL5CukeXA47B/1NKcnQ==
+"@babel/helper-module-imports@^7.0.0", "@babel/helper-module-imports@^7.12.1", "@babel/helper-module-imports@^7.12.13", "@babel/helper-module-imports@^7.14.5", "@babel/helper-module-imports@^7.15.4":
+ version "7.15.4"
+ resolved "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.15.4.tgz#e18007d230632dea19b47853b984476e7b4e103f"
+ integrity sha512-jeAHZbzUwdW/xHgHQ3QmWR4Jg6j15q4w/gCfwZvtqOxoo5DKtLHk8Bsf4c5RZRC7NmLEs+ohkdq8jFefuvIxAA==
dependencies:
- "@babel/types" "^7.14.5"
+ "@babel/types" "^7.15.4"
-"@babel/helper-module-transforms@^7.14.5":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.14.5.tgz#7de42f10d789b423eb902ebd24031ca77cb1e10e"
- integrity sha512-iXpX4KW8LVODuAieD7MzhNjmM6dzYY5tfRqT+R9HDXWl0jPn/djKmA+G9s/2C2T9zggw5tK1QNqZ70USfedOwA==
+"@babel/helper-module-transforms@^7.12.1", "@babel/helper-module-transforms@^7.14.5", "@babel/helper-module-transforms@^7.15.4":
+ version "7.15.7"
+ resolved "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.15.7.tgz#7da80c8cbc1f02655d83f8b79d25866afe50d226"
+ integrity sha512-ZNqjjQG/AuFfekFTY+7nY4RgBSklgTu970c7Rj3m/JOhIu5KPBUuTA9AY6zaKcUvk4g6EbDXdBnhi35FAssdSw==
dependencies:
- "@babel/helper-module-imports" "^7.14.5"
- "@babel/helper-replace-supers" "^7.14.5"
- "@babel/helper-simple-access" "^7.14.5"
- "@babel/helper-split-export-declaration" "^7.14.5"
- "@babel/helper-validator-identifier" "^7.14.5"
- "@babel/template" "^7.14.5"
- "@babel/traverse" "^7.14.5"
- "@babel/types" "^7.14.5"
+ "@babel/helper-module-imports" "^7.15.4"
+ "@babel/helper-replace-supers" "^7.15.4"
+ "@babel/helper-simple-access" "^7.15.4"
+ "@babel/helper-split-export-declaration" "^7.15.4"
+ "@babel/helper-validator-identifier" "^7.15.7"
+ "@babel/template" "^7.15.4"
+ "@babel/traverse" "^7.15.4"
+ "@babel/types" "^7.15.6"
-"@babel/helper-optimise-call-expression@^7.14.5":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.14.5.tgz#f27395a8619e0665b3f0364cddb41c25d71b499c"
- integrity sha512-IqiLIrODUOdnPU9/F8ib1Fx2ohlgDhxnIDU7OEVi+kAbEZcyiF7BLU8W6PfvPi9LzztjS7kcbzbmL7oG8kD6VA==
+"@babel/helper-optimise-call-expression@^7.15.4":
+ version "7.15.4"
+ resolved "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.15.4.tgz#f310a5121a3b9cc52d9ab19122bd729822dee171"
+ integrity sha512-E/z9rfbAOt1vDW1DR7k4SzhzotVV5+qMciWV6LaG1g4jeFrkDlJedjtV4h0i4Q/ITnUu+Pk08M7fczsB9GXBDw==
dependencies:
- "@babel/types" "^7.14.5"
+ "@babel/types" "^7.15.4"
"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.13.0", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.14.5.tgz#5ac822ce97eec46741ab70a517971e443a70c5a9"
integrity sha512-/37qQCE3K0vvZKwoK4XU/irIJQdIfCJuhU5eKnNxpFDsOkgFaUAwbv+RYw6eYgsC0E4hS7r5KqGULUogqui0fQ==
-"@babel/helper-remap-async-to-generator@^7.14.5":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.14.5.tgz#51439c913612958f54a987a4ffc9ee587a2045d6"
- integrity sha512-rLQKdQU+HYlxBwQIj8dk4/0ENOUEhA/Z0l4hN8BexpvmSMN9oA9EagjnhnDpNsRdWCfjwa4mn/HyBXO9yhQP6A==
+"@babel/helper-remap-async-to-generator@^7.14.5", "@babel/helper-remap-async-to-generator@^7.15.4":
+ version "7.15.4"
+ resolved "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.15.4.tgz#2637c0731e4c90fbf58ac58b50b2b5a192fc970f"
+ integrity sha512-v53MxgvMK/HCwckJ1bZrq6dNKlmwlyRNYM6ypaRTdXWGOE2c1/SCa6dL/HimhPulGhZKw9W0QhREM583F/t0vQ==
dependencies:
- "@babel/helper-annotate-as-pure" "^7.14.5"
- "@babel/helper-wrap-function" "^7.14.5"
- "@babel/types" "^7.14.5"
+ "@babel/helper-annotate-as-pure" "^7.15.4"
+ "@babel/helper-wrap-function" "^7.15.4"
+ "@babel/types" "^7.15.4"
-"@babel/helper-replace-supers@^7.14.5":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.14.5.tgz#0ecc0b03c41cd567b4024ea016134c28414abb94"
- integrity sha512-3i1Qe9/8x/hCHINujn+iuHy+mMRLoc77b2nI9TB0zjH1hvn9qGlXjWlggdwUcju36PkPCy/lpM7LLUdcTyH4Ow==
+"@babel/helper-replace-supers@^7.14.5", "@babel/helper-replace-supers@^7.15.4":
+ version "7.15.4"
+ resolved "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.15.4.tgz#52a8ab26ba918c7f6dee28628b07071ac7b7347a"
+ integrity sha512-/ztT6khaXF37MS47fufrKvIsiQkx1LBRvSJNzRqmbyeZnTwU9qBxXYLaaT/6KaxfKhjs2Wy8kG8ZdsFUuWBjzw==
dependencies:
- "@babel/helper-member-expression-to-functions" "^7.14.5"
- "@babel/helper-optimise-call-expression" "^7.14.5"
- "@babel/traverse" "^7.14.5"
- "@babel/types" "^7.14.5"
+ "@babel/helper-member-expression-to-functions" "^7.15.4"
+ "@babel/helper-optimise-call-expression" "^7.15.4"
+ "@babel/traverse" "^7.15.4"
+ "@babel/types" "^7.15.4"
-"@babel/helper-simple-access@^7.14.5":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.14.5.tgz#66ea85cf53ba0b4e588ba77fc813f53abcaa41c4"
- integrity sha512-nfBN9xvmCt6nrMZjfhkl7i0oTV3yxR4/FztsbOASyTvVcoYd0TRHh7eMLdlEcCqobydC0LAF3LtC92Iwxo0wyw==
+"@babel/helper-simple-access@^7.15.4":
+ version "7.15.4"
+ resolved "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.15.4.tgz#ac368905abf1de8e9781434b635d8f8674bcc13b"
+ integrity sha512-UzazrDoIVOZZcTeHHEPYrr1MvTR/K+wgLg6MY6e1CJyaRhbibftF6fR2KU2sFRtI/nERUZR9fBd6aKgBlIBaPg==
dependencies:
- "@babel/types" "^7.14.5"
+ "@babel/types" "^7.15.4"
-"@babel/helper-skip-transparent-expression-wrappers@^7.14.5":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.14.5.tgz#96f486ac050ca9f44b009fbe5b7d394cab3a0ee4"
- integrity sha512-dmqZB7mrb94PZSAOYtr+ZN5qt5owZIAgqtoTuqiFbHFtxgEcmQlRJVI+bO++fciBunXtB6MK7HrzrfcAzIz2NQ==
+"@babel/helper-skip-transparent-expression-wrappers@^7.14.5", "@babel/helper-skip-transparent-expression-wrappers@^7.15.4":
+ version "7.15.4"
+ resolved "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.15.4.tgz#707dbdba1f4ad0fa34f9114fc8197aec7d5da2eb"
+ integrity sha512-BMRLsdh+D1/aap19TycS4eD1qELGrCBJwzaY9IE8LrpJtJb+H7rQkPIdsfgnMtLBA6DJls7X9z93Z4U8h7xw0A==
dependencies:
- "@babel/types" "^7.14.5"
+ "@babel/types" "^7.15.4"
-"@babel/helper-split-export-declaration@^7.14.5":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.14.5.tgz#22b23a54ef51c2b7605d851930c1976dd0bc693a"
- integrity sha512-hprxVPu6e5Kdp2puZUmvOGjaLv9TCe58E/Fl6hRq4YiVQxIcNvuq6uTM2r1mT/oPskuS9CgR+I94sqAYv0NGKA==
+"@babel/helper-split-export-declaration@^7.15.4":
+ version "7.15.4"
+ resolved "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.15.4.tgz#aecab92dcdbef6a10aa3b62ab204b085f776e257"
+ integrity sha512-HsFqhLDZ08DxCpBdEVtKmywj6PQbwnF6HHybur0MAnkAKnlS6uHkwnmRIkElB2Owpfb4xL4NwDmDLFubueDXsw==
dependencies:
- "@babel/types" "^7.14.5"
+ "@babel/types" "^7.15.4"
-"@babel/helper-validator-identifier@^7.14.5":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.5.tgz#d0f0e277c512e0c938277faa85a3968c9a44c0e8"
- integrity sha512-5lsetuxCLilmVGyiLEfoHBRX8UCFD+1m2x3Rj97WrW3V7H3u4RWRXA4evMjImCsin2J2YT0QaVDGf+z8ondbAg==
+"@babel/helper-validator-identifier@^7.14.5", "@babel/helper-validator-identifier@^7.14.9", "@babel/helper-validator-identifier@^7.15.7":
+ version "7.15.7"
+ resolved "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz#220df993bfe904a4a6b02ab4f3385a5ebf6e2389"
+ integrity sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w==
-"@babel/helper-validator-option@^7.14.5":
+"@babel/helper-validator-option@^7.12.1", "@babel/helper-validator-option@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.14.5.tgz#6e72a1fff18d5dfcb878e1e62f1a021c4b72d5a3"
integrity sha512-OX8D5eeX4XwcroVW45NMvoYaIuFI+GQpA2a8Gi+X/U/cDUIRsV37qQfF905F0htTRCREQIB4KqPeaveRJUl3Ow==
-"@babel/helper-wrap-function@^7.14.5", "@babel/helper-wrap-function@^7.2.0":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.14.5.tgz#5919d115bf0fe328b8a5d63bcb610f51601f2bff"
- integrity sha512-YEdjTCq+LNuNS1WfxsDCNpgXkJaIyqco6DAelTUjT4f2KIWC1nBcaCaSdHTBqQVLnTBexBcVcFhLSU1KnYuePQ==
+"@babel/helper-wrap-function@^7.10.4", "@babel/helper-wrap-function@^7.15.4":
+ version "7.15.4"
+ resolved "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.15.4.tgz#6f754b2446cfaf3d612523e6ab8d79c27c3a3de7"
+ integrity sha512-Y2o+H/hRV5W8QhIfTpRIBwl57y8PrZt6JM3V8FOo5qarjshHItyH5lXlpMfBfmBefOqSCpKZs/6Dxqp0E/U+uw==
dependencies:
- "@babel/helper-function-name" "^7.14.5"
- "@babel/template" "^7.14.5"
- "@babel/traverse" "^7.14.5"
- "@babel/types" "^7.14.5"
+ "@babel/helper-function-name" "^7.15.4"
+ "@babel/template" "^7.15.4"
+ "@babel/traverse" "^7.15.4"
+ "@babel/types" "^7.15.4"
-"@babel/helpers@^7.14.5", "@babel/helpers@^7.4.3":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.14.5.tgz#4870f8d9a6fdbbd65e5674a3558b4ff7fef0d9b2"
- integrity sha512-xtcWOuN9VL6nApgVHtq3PPcQv5qFBJzoSZzJ/2c0QK/IP/gxVcoWSNQwFEGvmbQsuS9rhYqjILDGGXcTkA705Q==
+"@babel/helpers@7.12.1":
+ version "7.12.1"
+ resolved "https://registry.npmjs.org/@babel/helpers/-/helpers-7.12.1.tgz#8a8261c1d438ec18cb890434df4ec768734c1e79"
+ integrity sha512-9JoDSBGoWtmbay98efmT2+mySkwjzeFeAL9BuWNoVQpkPFQF8SIIFUfY5os9u8wVzglzoiPRSW7cuJmBDUt43g==
dependencies:
- "@babel/template" "^7.14.5"
- "@babel/traverse" "^7.14.5"
- "@babel/types" "^7.14.5"
+ "@babel/template" "^7.10.4"
+ "@babel/traverse" "^7.12.1"
+ "@babel/types" "^7.12.1"
+
+"@babel/helpers@^7.12.1", "@babel/helpers@^7.15.4":
+ version "7.15.4"
+ resolved "https://registry.npmjs.org/@babel/helpers/-/helpers-7.15.4.tgz#5f40f02050a3027121a3cf48d497c05c555eaf43"
+ integrity sha512-V45u6dqEJ3w2rlryYYXf6i9rQ5YMNu4FLS6ngs8ikblhu2VdR1AqAd6aJjBzmf2Qzh6KOLqKHxEN9+TFbAkAVQ==
+ dependencies:
+ "@babel/template" "^7.15.4"
+ "@babel/traverse" "^7.15.4"
+ "@babel/types" "^7.15.4"
"@babel/highlight@^7.10.4", "@babel/highlight@^7.14.5":
version "7.14.5"
@@ -408,38 +419,38 @@
chalk "^2.0.0"
js-tokens "^4.0.0"
-"@babel/parser@^7.1.0", "@babel/parser@^7.12.0", "@babel/parser@^7.13.9", "@babel/parser@^7.14.5", "@babel/parser@^7.4.3":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.14.5.tgz#4cd2f346261061b2518873ffecdf1612cb032829"
- integrity sha512-TM8C+xtH/9n1qzX+JNHi7AN2zHMTiPUtspO0ZdHflW8KaskkALhMmuMHb4bCmNdv9VAPzJX3/bXqkVLnAvsPfg==
+"@babel/parser@^7.1.0", "@babel/parser@^7.12.0", "@babel/parser@^7.12.3", "@babel/parser@^7.15.0", "@babel/parser@^7.15.4", "@babel/parser@^7.15.5", "@babel/parser@^7.7.2":
+ version "7.15.7"
+ resolved "https://registry.npmjs.org/@babel/parser/-/parser-7.15.7.tgz#0c3ed4a2eb07b165dfa85b3cc45c727334c4edae"
+ integrity sha512-rycZXvQ+xS9QyIcJ9HXeDWf1uxqlbVFAUq0Rq0dbc50Zb/+wUe/ehyfzGfm9KZZF0kBejYgxltBXocP+gKdL2g==
-"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.14.5":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.14.5.tgz#4b467302e1548ed3b1be43beae2cc9cf45e0bb7e"
- integrity sha512-ZoJS2XCKPBfTmL122iP6NM9dOg+d4lc9fFk3zxc8iDjvt8Pk4+TlsHSKhIPf6X+L5ORCdBzqMZDjL/WHj7WknQ==
+"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.15.4":
+ version "7.15.4"
+ resolved "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.15.4.tgz#dbdeabb1e80f622d9f0b583efb2999605e0a567e"
+ integrity sha512-eBnpsl9tlhPhpI10kU06JHnrYXwg3+V6CaP2idsCXNef0aeslpqyITXQ74Vfk5uHgY7IG7XP0yIH8b42KSzHog==
dependencies:
"@babel/helper-plugin-utils" "^7.14.5"
- "@babel/helper-skip-transparent-expression-wrappers" "^7.14.5"
+ "@babel/helper-skip-transparent-expression-wrappers" "^7.15.4"
"@babel/plugin-proposal-optional-chaining" "^7.14.5"
-"@babel/plugin-proposal-async-generator-functions@^7.14.5", "@babel/plugin-proposal-async-generator-functions@^7.2.0":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.14.5.tgz#4024990e3dd74181f4f426ea657769ff49a2df39"
- integrity sha512-tbD/CG3l43FIXxmu4a7RBe4zH7MLJ+S/lFowPFO7HetS2hyOZ/0nnnznegDuzFzfkyQYTxqdTH/hKmuBngaDAA==
+"@babel/plugin-proposal-async-generator-functions@^7.12.1", "@babel/plugin-proposal-async-generator-functions@^7.15.4":
+ version "7.15.4"
+ resolved "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.15.4.tgz#f82aabe96c135d2ceaa917feb9f5fca31635277e"
+ integrity sha512-2zt2g5vTXpMC3OmK6uyjvdXptbhBXfA77XGrd3gh93zwG8lZYBLOBImiGBEG0RANu3JqKEACCz5CGk73OJROBw==
dependencies:
"@babel/helper-plugin-utils" "^7.14.5"
- "@babel/helper-remap-async-to-generator" "^7.14.5"
+ "@babel/helper-remap-async-to-generator" "^7.15.4"
"@babel/plugin-syntax-async-generators" "^7.8.4"
-"@babel/plugin-proposal-class-properties@7.4.0":
- version "7.4.0"
- resolved "https://registry.npm.taobao.org/@babel/plugin-proposal-class-properties/download/@babel/plugin-proposal-class-properties-7.4.0.tgz#d70db61a2f1fd79de927eea91f6411c964e084b8"
- integrity sha1-1w22Gi8f153pJ+6pH2QRyWTghLg=
+"@babel/plugin-proposal-class-properties@7.12.1":
+ version "7.12.1"
+ resolved "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.12.1.tgz#a082ff541f2a29a4821065b8add9346c0c16e5de"
+ integrity sha512-cKp3dlQsFsEs5CWKnN7BnSHOd0EOW8EKpEjkoz1pO2E5KzIDNV9Ros1b0CnmbVgAGXJubOYVBOGCT1OmJwOI7w==
dependencies:
- "@babel/helper-create-class-features-plugin" "^7.4.0"
- "@babel/helper-plugin-utils" "^7.0.0"
+ "@babel/helper-create-class-features-plugin" "^7.12.1"
+ "@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-proposal-class-properties@^7.14.5":
+"@babel/plugin-proposal-class-properties@^7.12.1", "@babel/plugin-proposal-class-properties@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.14.5.tgz#40d1ee140c5b1e31a350f4f5eed945096559b42e"
integrity sha512-q/PLpv5Ko4dVc1LYMpCY7RVAAO4uk55qPwrIuJ5QJ8c6cVuAmhu7I/49JOppXL6gXf7ZHzpRVEUZdYoPLM04Gg==
@@ -447,33 +458,33 @@
"@babel/helper-create-class-features-plugin" "^7.14.5"
"@babel/helper-plugin-utils" "^7.14.5"
-"@babel/plugin-proposal-class-static-block@^7.14.5":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-static-block/-/plugin-proposal-class-static-block-7.14.5.tgz#158e9e10d449c3849ef3ecde94a03d9f1841b681"
- integrity sha512-KBAH5ksEnYHCegqseI5N9skTdxgJdmDoAOc0uXa+4QMYKeZD0w5IARh4FMlTNtaHhbB8v+KzMdTgxMMzsIy6Yg==
+"@babel/plugin-proposal-class-static-block@^7.15.4":
+ version "7.15.4"
+ resolved "https://registry.npmjs.org/@babel/plugin-proposal-class-static-block/-/plugin-proposal-class-static-block-7.15.4.tgz#3e7ca6128453c089e8b477a99f970c63fc1cb8d7"
+ integrity sha512-M682XWrrLNk3chXCjoPUQWOyYsB93B9z3mRyjtqqYJWDf2mfCdIYgDrA11cgNVhAQieaq6F2fn2f3wI0U4aTjA==
dependencies:
- "@babel/helper-create-class-features-plugin" "^7.14.5"
+ "@babel/helper-create-class-features-plugin" "^7.15.4"
"@babel/helper-plugin-utils" "^7.14.5"
"@babel/plugin-syntax-class-static-block" "^7.14.5"
-"@babel/plugin-proposal-decorators@7.4.0":
- version "7.4.0"
- resolved "https://registry.npm.taobao.org/@babel/plugin-proposal-decorators/download/@babel/plugin-proposal-decorators-7.4.0.tgz#8e1bfd83efa54a5f662033afcc2b8e701f4bb3a9"
- integrity sha1-jhv9g++lSl9mIDOvzCuOcB9Ls6k=
+"@babel/plugin-proposal-decorators@7.12.1":
+ version "7.12.1"
+ resolved "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.12.1.tgz#59271439fed4145456c41067450543aee332d15f"
+ integrity sha512-knNIuusychgYN8fGJHONL0RbFxLGawhXOJNLBk75TniTsZZeA+wdkDuv6wp4lGwzQEKjZi6/WYtnb3udNPmQmQ==
dependencies:
- "@babel/helper-create-class-features-plugin" "^7.4.0"
- "@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-syntax-decorators" "^7.2.0"
+ "@babel/helper-create-class-features-plugin" "^7.12.1"
+ "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/plugin-syntax-decorators" "^7.12.1"
-"@babel/plugin-proposal-do-expressions@7.2.0":
- version "7.2.0"
- resolved "https://registry.npm.taobao.org/@babel/plugin-proposal-do-expressions/download/@babel/plugin-proposal-do-expressions-7.2.0.tgz#7abf56d27125f2b040c9cb0ab03119cf117128a9"
- integrity sha1-er9W0nEl8rBAycsKsDEZzxFxKKk=
+"@babel/plugin-proposal-do-expressions@7.12.1":
+ version "7.12.1"
+ resolved "https://registry.npmjs.org/@babel/plugin-proposal-do-expressions/-/plugin-proposal-do-expressions-7.12.1.tgz#8d7f1bc532d8168147555c26e3db922cc0dfd2f8"
+ integrity sha512-bpJ6Bfrzvdzb0vG6zBSNh3HLgFKh+S2CBpNmaLRjg2u7cNkzRPIqBjVURCmpG6pvPfKyxkizwbrXwpYtW3a9cw==
dependencies:
- "@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-syntax-do-expressions" "^7.2.0"
+ "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/plugin-syntax-do-expressions" "^7.12.1"
-"@babel/plugin-proposal-dynamic-import@^7.14.5":
+"@babel/plugin-proposal-dynamic-import@^7.12.1", "@babel/plugin-proposal-dynamic-import@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.14.5.tgz#0c6617df461c0c1f8fff3b47cd59772360101d2c"
integrity sha512-ExjiNYc3HDN5PXJx+bwC50GIx/KKanX2HiggnIUAYedbARdImiCU4RhhHfdf0Kd7JNXGpsBBBCOm+bBVy3Gb0g==
@@ -481,23 +492,15 @@
"@babel/helper-plugin-utils" "^7.14.5"
"@babel/plugin-syntax-dynamic-import" "^7.8.3"
-"@babel/plugin-proposal-export-default-from@7.2.0":
- version "7.2.0"
- resolved "https://registry.npm.taobao.org/@babel/plugin-proposal-export-default-from/download/@babel/plugin-proposal-export-default-from-7.2.0.tgz#737b0da44b9254b6152fe29bb99c64e5691f6f68"
- integrity sha1-c3sNpEuSVLYVL+KbuZxk5Wkfb2g=
+"@babel/plugin-proposal-export-default-from@7.12.1":
+ version "7.12.1"
+ resolved "https://registry.npmjs.org/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.12.1.tgz#c6e62d668a8abcfe0d28b82f560395fecb611c5a"
+ integrity sha512-z5Q4Ke7j0AexQRfgUvnD+BdCSgpTEKnqQ3kskk2jWtOBulxICzd1X9BGt7kmWftxZ2W3++OZdt5gtmC8KLxdRQ==
dependencies:
- "@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-syntax-export-default-from" "^7.2.0"
+ "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/plugin-syntax-export-default-from" "^7.12.1"
-"@babel/plugin-proposal-export-namespace-from@7.2.0":
- version "7.2.0"
- resolved "https://registry.npm.taobao.org/@babel/plugin-proposal-export-namespace-from/download/@babel/plugin-proposal-export-namespace-from-7.2.0.tgz?cache=0&sync_timestamp=1602706725739&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fplugin-proposal-export-namespace-from%2Fdownload%2F%40babel%2Fplugin-proposal-export-namespace-from-7.2.0.tgz#308fd4d04ff257fc3e4be090550840eeabad5dd9"
- integrity sha1-MI/U0E/yV/w+S+CQVQhA7qutXdk=
- dependencies:
- "@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-syntax-export-namespace-from" "^7.2.0"
-
-"@babel/plugin-proposal-export-namespace-from@^7.14.5":
+"@babel/plugin-proposal-export-namespace-from@^7.12.1", "@babel/plugin-proposal-export-namespace-from@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.14.5.tgz#dbad244310ce6ccd083072167d8cea83a52faf76"
integrity sha512-g5POA32bXPMmSBu5Dx/iZGLGnKmKPc5AiY7qfZgurzrCYgIztDlHFbznSNCoQuv57YQLnQfaDi7dxCtLDIdXdA==
@@ -505,32 +508,24 @@
"@babel/helper-plugin-utils" "^7.14.5"
"@babel/plugin-syntax-export-namespace-from" "^7.8.3"
-"@babel/plugin-proposal-function-bind@7.2.0":
- version "7.2.0"
- resolved "https://registry.npm.taobao.org/@babel/plugin-proposal-function-bind/download/@babel/plugin-proposal-function-bind-7.2.0.tgz#94dc2cdc505cafc4e225c0014335a01648056bf7"
- integrity sha1-lNws3FBcr8TiJcABQzWgFkgFa/c=
+"@babel/plugin-proposal-function-bind@7.12.1":
+ version "7.12.1"
+ resolved "https://registry.npmjs.org/@babel/plugin-proposal-function-bind/-/plugin-proposal-function-bind-7.12.1.tgz#8b891b412ffbc8e8ff3fd4df67b8d4bbe5947004"
+ integrity sha512-Nic0blOXoeyuDJZJNh7kEZMqQUHakiUyxfyFMUV0Sy7DQ+Du9R7cZCUgTLnqq7Bc0Yx0iKRSe5wTmRWLKwxxpA==
dependencies:
- "@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-syntax-function-bind" "^7.2.0"
+ "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/plugin-syntax-function-bind" "^7.12.1"
-"@babel/plugin-proposal-function-sent@7.2.0":
- version "7.2.0"
- resolved "https://registry.npm.taobao.org/@babel/plugin-proposal-function-sent/download/@babel/plugin-proposal-function-sent-7.2.0.tgz#f707d78551f49162e152d477fba32357341915d1"
- integrity sha1-9wfXhVH0kWLhUtR3+6MjVzQZFdE=
+"@babel/plugin-proposal-function-sent@7.12.1":
+ version "7.12.1"
+ resolved "https://registry.npmjs.org/@babel/plugin-proposal-function-sent/-/plugin-proposal-function-sent-7.12.1.tgz#8f302aa8ab5f00af6c94a3e1108fa35d15319510"
+ integrity sha512-EXB01ACyNW0WCffP4ip40TH82X86+U0dakFZjyiMpoZ8NFmL5MMARzVBzy+Gg59B6vTgfvIhRHUhe6tNUw+vjw==
dependencies:
- "@babel/helper-plugin-utils" "^7.0.0"
- "@babel/helper-wrap-function" "^7.2.0"
- "@babel/plugin-syntax-function-sent" "^7.2.0"
+ "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-wrap-function" "^7.10.4"
+ "@babel/plugin-syntax-function-sent" "^7.12.1"
-"@babel/plugin-proposal-json-strings@7.2.0":
- version "7.2.0"
- resolved "https://registry.npm.taobao.org/@babel/plugin-proposal-json-strings/download/@babel/plugin-proposal-json-strings-7.2.0.tgz#568ecc446c6148ae6b267f02551130891e29f317"
- integrity sha1-Vo7MRGxhSK5rJn8CVREwiR4p8xc=
- dependencies:
- "@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-syntax-json-strings" "^7.2.0"
-
-"@babel/plugin-proposal-json-strings@^7.14.5", "@babel/plugin-proposal-json-strings@^7.2.0":
+"@babel/plugin-proposal-json-strings@^7.12.1", "@babel/plugin-proposal-json-strings@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.14.5.tgz#38de60db362e83a3d8c944ac858ddf9f0c2239eb"
integrity sha512-NSq2fczJYKVRIsUJyNxrVUMhB27zb7N7pOFGQOhBKJrChbGcgEAqyZrmZswkPk18VMurEeJAaICbfm57vUeTbQ==
@@ -538,15 +533,7 @@
"@babel/helper-plugin-utils" "^7.14.5"
"@babel/plugin-syntax-json-strings" "^7.8.3"
-"@babel/plugin-proposal-logical-assignment-operators@7.2.0":
- version "7.2.0"
- resolved "https://registry.npm.taobao.org/@babel/plugin-proposal-logical-assignment-operators/download/@babel/plugin-proposal-logical-assignment-operators-7.2.0.tgz?cache=0&sync_timestamp=1602706725872&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fplugin-proposal-logical-assignment-operators%2Fdownload%2F%40babel%2Fplugin-proposal-logical-assignment-operators-7.2.0.tgz#8a5cea6c42a7c87446959e02fff5fad012c56f57"
- integrity sha1-ilzqbEKnyHRGlZ4C//X60BLFb1c=
- dependencies:
- "@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-syntax-logical-assignment-operators" "^7.2.0"
-
-"@babel/plugin-proposal-logical-assignment-operators@^7.14.5":
+"@babel/plugin-proposal-logical-assignment-operators@^7.12.1", "@babel/plugin-proposal-logical-assignment-operators@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.14.5.tgz#6e6229c2a99b02ab2915f82571e0cc646a40c738"
integrity sha512-YGn2AvZAo9TwyhlLvCCWxD90Xq8xJ4aSgaX3G5D/8DW94L8aaT+dS5cSP+Z06+rCJERGSr9GxMBZ601xoc2taw==
@@ -554,15 +541,7 @@
"@babel/helper-plugin-utils" "^7.14.5"
"@babel/plugin-syntax-logical-assignment-operators" "^7.10.4"
-"@babel/plugin-proposal-nullish-coalescing-operator@7.4.3":
- version "7.4.3"
- resolved "https://registry.npm.taobao.org/@babel/plugin-proposal-nullish-coalescing-operator/download/@babel/plugin-proposal-nullish-coalescing-operator-7.4.3.tgz?cache=0&sync_timestamp=1602706726017&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fplugin-proposal-nullish-coalescing-operator%2Fdownload%2F%40babel%2Fplugin-proposal-nullish-coalescing-operator-7.4.3.tgz#df9ff90a9e3b94eb426e56be6100a85ac61a2b9f"
- integrity sha1-35/5Cp47lOtCbla+YQCoWsYaK58=
- dependencies:
- "@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-syntax-nullish-coalescing-operator" "^7.2.0"
-
-"@babel/plugin-proposal-nullish-coalescing-operator@^7.14.5":
+"@babel/plugin-proposal-nullish-coalescing-operator@^7.12.1", "@babel/plugin-proposal-nullish-coalescing-operator@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.14.5.tgz#ee38589ce00e2cc59b299ec3ea406fcd3a0fdaf6"
integrity sha512-gun/SOnMqjSb98Nkaq2rTKMwervfdAoz6NphdY0vTfuzMfryj+tDGb2n6UkDKwez+Y8PZDhE3D143v6Gepp4Hg==
@@ -570,15 +549,7 @@
"@babel/helper-plugin-utils" "^7.14.5"
"@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3"
-"@babel/plugin-proposal-numeric-separator@7.2.0":
- version "7.2.0"
- resolved "https://registry.npm.taobao.org/@babel/plugin-proposal-numeric-separator/download/@babel/plugin-proposal-numeric-separator-7.2.0.tgz?cache=0&sync_timestamp=1602706726488&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fplugin-proposal-numeric-separator%2Fdownload%2F%40babel%2Fplugin-proposal-numeric-separator-7.2.0.tgz#646854daf4cd22fd6733f6076013a936310443ac"
- integrity sha1-ZGhU2vTNIv1nM/YHYBOpNjEEQ6w=
- dependencies:
- "@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-syntax-numeric-separator" "^7.2.0"
-
-"@babel/plugin-proposal-numeric-separator@^7.14.5":
+"@babel/plugin-proposal-numeric-separator@^7.12.1", "@babel/plugin-proposal-numeric-separator@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.14.5.tgz#83631bf33d9a51df184c2102a069ac0c58c05f18"
integrity sha512-yiclALKe0vyZRZE0pS6RXgjUOt87GWv6FYa5zqj15PvhOGFO69R5DusPlgK/1K5dVnCtegTiWu9UaBSrLLJJBg==
@@ -586,18 +557,18 @@
"@babel/helper-plugin-utils" "^7.14.5"
"@babel/plugin-syntax-numeric-separator" "^7.10.4"
-"@babel/plugin-proposal-object-rest-spread@^7.14.5", "@babel/plugin-proposal-object-rest-spread@^7.4.3":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.14.5.tgz#e581d5ccdfa187ea6ed73f56c6a21c1580b90fbf"
- integrity sha512-VzMyY6PWNPPT3pxc5hi9LloKNr4SSrVCg7Yr6aZpW4Ym07r7KqSU/QXYwjXLVxqwSv0t/XSXkFoKBPUkZ8vb2A==
+"@babel/plugin-proposal-object-rest-spread@^7.12.1", "@babel/plugin-proposal-object-rest-spread@^7.15.6":
+ version "7.15.6"
+ resolved "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.15.6.tgz#ef68050c8703d07b25af402cb96cf7f34a68ed11"
+ integrity sha512-qtOHo7A1Vt+O23qEAX+GdBpqaIuD3i9VRrWgCJeq7WO6H2d14EK3q11urj5Te2MAeK97nMiIdRpwd/ST4JFbNg==
dependencies:
- "@babel/compat-data" "^7.14.5"
- "@babel/helper-compilation-targets" "^7.14.5"
+ "@babel/compat-data" "^7.15.0"
+ "@babel/helper-compilation-targets" "^7.15.4"
"@babel/helper-plugin-utils" "^7.14.5"
"@babel/plugin-syntax-object-rest-spread" "^7.8.3"
- "@babel/plugin-transform-parameters" "^7.14.5"
+ "@babel/plugin-transform-parameters" "^7.15.4"
-"@babel/plugin-proposal-optional-catch-binding@^7.14.5", "@babel/plugin-proposal-optional-catch-binding@^7.2.0":
+"@babel/plugin-proposal-optional-catch-binding@^7.12.1", "@babel/plugin-proposal-optional-catch-binding@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.14.5.tgz#939dd6eddeff3a67fdf7b3f044b5347262598c3c"
integrity sha512-3Oyiixm0ur7bzO5ybNcZFlmVsygSIQgdOa7cTfOYCMY+wEPAYhZAJxi3mixKFCTCKUhQXuCTtQ1MzrpL3WT8ZQ==
@@ -605,15 +576,7 @@
"@babel/helper-plugin-utils" "^7.14.5"
"@babel/plugin-syntax-optional-catch-binding" "^7.8.3"
-"@babel/plugin-proposal-optional-chaining@7.2.0":
- version "7.2.0"
- resolved "https://registry.npm.taobao.org/@babel/plugin-proposal-optional-chaining/download/@babel/plugin-proposal-optional-chaining-7.2.0.tgz?cache=0&sync_timestamp=1602706726346&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fplugin-proposal-optional-chaining%2Fdownload%2F%40babel%2Fplugin-proposal-optional-chaining-7.2.0.tgz#ae454f4c21c6c2ce8cb2397dc332ae8b420c5441"
- integrity sha1-rkVPTCHGws6Msjl9wzKui0IMVEE=
- dependencies:
- "@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-syntax-optional-chaining" "^7.2.0"
-
-"@babel/plugin-proposal-optional-chaining@^7.14.5":
+"@babel/plugin-proposal-optional-chaining@^7.12.1", "@babel/plugin-proposal-optional-chaining@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.14.5.tgz#fa83651e60a360e3f13797eef00b8d519695b603"
integrity sha512-ycz+VOzo2UbWNI1rQXxIuMOzrDdHGrI23fRiz/Si2R4kv2XZQ1BK8ccdHwehMKBlcH/joGW/tzrUmo67gbJHlQ==
@@ -622,15 +585,15 @@
"@babel/helper-skip-transparent-expression-wrappers" "^7.14.5"
"@babel/plugin-syntax-optional-chaining" "^7.8.3"
-"@babel/plugin-proposal-pipeline-operator@7.3.2":
- version "7.3.2"
- resolved "https://registry.npm.taobao.org/@babel/plugin-proposal-pipeline-operator/download/@babel/plugin-proposal-pipeline-operator-7.3.2.tgz#cc6be43c8455422f2faca39b9355558f0bff5a3f"
- integrity sha1-zGvkPIRVQi8vrKObk1VVjwv/Wj8=
+"@babel/plugin-proposal-pipeline-operator@7.12.1":
+ version "7.12.1"
+ resolved "https://registry.npmjs.org/@babel/plugin-proposal-pipeline-operator/-/plugin-proposal-pipeline-operator-7.12.1.tgz#4bd377bc7e5be92f22f1c08b3f3963636bd8f4a1"
+ integrity sha512-iloNp4xu8YV8e/mZgGjePg9be1VkJSxQWIplRwgQtQPtF26ar3cHXL4sV8Fujlm2mm/Tu/WiA+FU+Fp7QVP7/g==
dependencies:
- "@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-syntax-pipeline-operator" "^7.3.0"
+ "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/plugin-syntax-pipeline-operator" "^7.12.1"
-"@babel/plugin-proposal-private-methods@^7.14.5":
+"@babel/plugin-proposal-private-methods@^7.12.1", "@babel/plugin-proposal-private-methods@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.14.5.tgz#37446495996b2945f30f5be5b60d5e2aa4f5792d"
integrity sha512-838DkdUA1u+QTCplatfq4B7+1lnDa/+QMI89x5WZHBcnNv+47N8QEj2k9I2MUU9xIv8XJ4XvPCviM/Dj7Uwt9g==
@@ -638,25 +601,25 @@
"@babel/helper-create-class-features-plugin" "^7.14.5"
"@babel/helper-plugin-utils" "^7.14.5"
-"@babel/plugin-proposal-private-property-in-object@^7.14.5":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.14.5.tgz#9f65a4d0493a940b4c01f8aa9d3f1894a587f636"
- integrity sha512-62EyfyA3WA0mZiF2e2IV9mc9Ghwxcg8YTu8BS4Wss4Y3PY725OmS9M0qLORbJwLqFtGh+jiE4wAmocK2CTUK2Q==
+"@babel/plugin-proposal-private-property-in-object@^7.15.4":
+ version "7.15.4"
+ resolved "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.15.4.tgz#55c5e3b4d0261fd44fe637e3f624cfb0f484e3e5"
+ integrity sha512-X0UTixkLf0PCCffxgu5/1RQyGGbgZuKoI+vXP4iSbJSYwPb7hu06omsFGBvQ9lJEvwgrxHdS8B5nbfcd8GyUNA==
dependencies:
- "@babel/helper-annotate-as-pure" "^7.14.5"
- "@babel/helper-create-class-features-plugin" "^7.14.5"
+ "@babel/helper-annotate-as-pure" "^7.15.4"
+ "@babel/helper-create-class-features-plugin" "^7.15.4"
"@babel/helper-plugin-utils" "^7.14.5"
"@babel/plugin-syntax-private-property-in-object" "^7.14.5"
-"@babel/plugin-proposal-throw-expressions@7.2.0":
- version "7.2.0"
- resolved "https://registry.npm.taobao.org/@babel/plugin-proposal-throw-expressions/download/@babel/plugin-proposal-throw-expressions-7.2.0.tgz#2d9e452d370f139000e51db65d0a85dc60c64739"
- integrity sha1-LZ5FLTcPE5AA5R22XQqF3GDGRzk=
+"@babel/plugin-proposal-throw-expressions@7.12.1":
+ version "7.12.1"
+ resolved "https://registry.npmjs.org/@babel/plugin-proposal-throw-expressions/-/plugin-proposal-throw-expressions-7.12.1.tgz#5adf4abc7f349a2da532e663b36251f6017c4279"
+ integrity sha512-kiWkKtm05K86C+T/nUazv+/Vxu93Aulrvof/ZrxVyGoUBVsVEWDrw9iChbe8tV+aPVQcjg4FQxKW3wUF7cRcpg==
dependencies:
- "@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-syntax-throw-expressions" "^7.2.0"
+ "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/plugin-syntax-throw-expressions" "^7.12.1"
-"@babel/plugin-proposal-unicode-property-regex@^7.14.5", "@babel/plugin-proposal-unicode-property-regex@^7.4.0", "@babel/plugin-proposal-unicode-property-regex@^7.4.4":
+"@babel/plugin-proposal-unicode-property-regex@^7.12.1", "@babel/plugin-proposal-unicode-property-regex@^7.14.5", "@babel/plugin-proposal-unicode-property-regex@^7.4.4":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.14.5.tgz#0f95ee0e757a5d647f378daa0eca7e93faa8bbe8"
integrity sha512-6axIeOU5LnY471KenAB9vI8I5j7NQ2d652hIYwVyRfgaZT5UpiqFKCuVXCDMSrU+3VFafnu2c5m3lrWIlr6A5Q==
@@ -664,7 +627,7 @@
"@babel/helper-create-regexp-features-plugin" "^7.14.5"
"@babel/helper-plugin-utils" "^7.14.5"
-"@babel/plugin-syntax-async-generators@^7.2.0", "@babel/plugin-syntax-async-generators@^7.8.4":
+"@babel/plugin-syntax-async-generators@^7.8.0", "@babel/plugin-syntax-async-generators@^7.8.4":
version "7.8.4"
resolved "https://registry.npm.taobao.org/@babel/plugin-syntax-async-generators/download/@babel/plugin-syntax-async-generators-7.8.4.tgz#a983fb1aeb2ec3f6ed042a210f640e90e786fe0d"
integrity sha1-qYP7Gusuw/btBCohD2QOkOeG/g0=
@@ -678,7 +641,7 @@
dependencies:
"@babel/helper-plugin-utils" "^7.8.0"
-"@babel/plugin-syntax-class-properties@^7.12.13", "@babel/plugin-syntax-class-properties@^7.8.3":
+"@babel/plugin-syntax-class-properties@^7.12.1", "@babel/plugin-syntax-class-properties@^7.12.13", "@babel/plugin-syntax-class-properties@^7.8.3":
version "7.12.13"
resolved "https://registry.npm.taobao.org/@babel/plugin-syntax-class-properties/download/@babel/plugin-syntax-class-properties-7.12.13.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fplugin-syntax-class-properties%2Fdownload%2F%40babel%2Fplugin-syntax-class-properties-7.12.13.tgz#b5c987274c4a3a82b89714796931a6b53544ae10"
integrity sha1-tcmHJ0xKOoK4lxR5aTGmtTVErhA=
@@ -692,77 +655,63 @@
dependencies:
"@babel/helper-plugin-utils" "^7.14.5"
-"@babel/plugin-syntax-decorators@^7.2.0":
- version "7.10.4"
- resolved "https://registry.npm.taobao.org/@babel/plugin-syntax-decorators/download/@babel/plugin-syntax-decorators-7.10.4.tgz#6853085b2c429f9d322d02f5a635018cdeb2360c"
- integrity sha1-aFMIWyxCn50yLQL1pjUBjN6yNgw=
+"@babel/plugin-syntax-decorators@^7.12.1":
+ version "7.14.5"
+ resolved "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.14.5.tgz#eafb9c0cbe09c8afeb964ba3a7bbd63945a72f20"
+ integrity sha512-c4sZMRWL4GSvP1EXy0woIP7m4jkVcEuG8R1TOZxPBPtp4FSM/kiPZub9UIs/Jrb5ZAOzvTUSGYrWsrSu1JvoPw==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.14.5"
-"@babel/plugin-syntax-do-expressions@^7.2.0":
- version "7.10.4"
- resolved "https://registry.npm.taobao.org/@babel/plugin-syntax-do-expressions/download/@babel/plugin-syntax-do-expressions-7.10.4.tgz#0c7ebb749500c6bfa99a9f926db3bfd6cdbaded9"
- integrity sha1-DH67dJUAxr+pmp+SbbO/1s263tk=
+"@babel/plugin-syntax-do-expressions@^7.12.1":
+ version "7.14.5"
+ resolved "https://registry.npmjs.org/@babel/plugin-syntax-do-expressions/-/plugin-syntax-do-expressions-7.14.5.tgz#d32be33bb0ea7c16cf2265f097864c363690954a"
+ integrity sha512-IpVyxRlfFCU2emBiq2OxUX10PD6FoGZ30yWwGt1qdkIPUDhAodG5Il1LStODgATndKRhQgqT21ksqA5fd39AwA==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.14.5"
-"@babel/plugin-syntax-dynamic-import@7.2.0":
- version "7.2.0"
- resolved "https://registry.npm.taobao.org/@babel/plugin-syntax-dynamic-import/download/@babel/plugin-syntax-dynamic-import-7.2.0.tgz#69c159ffaf4998122161ad8ebc5e6d1f55df8612"
- integrity sha1-acFZ/69JmBIhYa2OvF5tH1XfhhI=
- dependencies:
- "@babel/helper-plugin-utils" "^7.0.0"
-
-"@babel/plugin-syntax-dynamic-import@^7.8.3":
+"@babel/plugin-syntax-dynamic-import@^7.8.0", "@babel/plugin-syntax-dynamic-import@^7.8.3":
version "7.8.3"
resolved "https://registry.npm.taobao.org/@babel/plugin-syntax-dynamic-import/download/@babel/plugin-syntax-dynamic-import-7.8.3.tgz#62bf98b2da3cd21d626154fc96ee5b3cb68eacb3"
integrity sha1-Yr+Ysto80h1iYVT8lu5bPLaOrLM=
dependencies:
"@babel/helper-plugin-utils" "^7.8.0"
-"@babel/plugin-syntax-export-default-from@^7.2.0":
- version "7.10.4"
- resolved "https://registry.npm.taobao.org/@babel/plugin-syntax-export-default-from/download/@babel/plugin-syntax-export-default-from-7.10.4.tgz#e5494f95006355c10292a0ff1ce42a5746002ec8"
- integrity sha1-5UlPlQBjVcECkqD/HOQqV0YALsg=
+"@babel/plugin-syntax-export-default-from@^7.12.1":
+ version "7.14.5"
+ resolved "https://registry.npmjs.org/@babel/plugin-syntax-export-default-from/-/plugin-syntax-export-default-from-7.14.5.tgz#cdfa9d43d2b2c89b6f1af3e83518e8c8b9ed0dbc"
+ integrity sha512-snWDxjuaPEobRBnhpqEfZ8RMxDbHt8+87fiEioGuE+Uc0xAKgSD8QiuL3lF93hPVQfZFAcYwrrf+H5qUhike3Q==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.14.5"
-"@babel/plugin-syntax-export-namespace-from@^7.2.0", "@babel/plugin-syntax-export-namespace-from@^7.8.3":
+"@babel/plugin-syntax-export-namespace-from@^7.8.3":
version "7.8.3"
resolved "https://registry.npm.taobao.org/@babel/plugin-syntax-export-namespace-from/download/@babel/plugin-syntax-export-namespace-from-7.8.3.tgz#028964a9ba80dbc094c915c487ad7c4e7a66465a"
integrity sha1-AolkqbqA28CUyRXEh618TnpmRlo=
dependencies:
"@babel/helper-plugin-utils" "^7.8.3"
-"@babel/plugin-syntax-function-bind@^7.2.0":
+"@babel/plugin-syntax-function-bind@^7.12.1":
+ version "7.14.5"
+ resolved "https://registry.npmjs.org/@babel/plugin-syntax-function-bind/-/plugin-syntax-function-bind-7.14.5.tgz#eb7544014fe349f48acbebc5084eeadde2efe57e"
+ integrity sha512-gstAIrKtlPwrQaRz4uK+kT7zI2p5MQqX41SeO+kZKH1XGO1jL0nLZBWznRigPpkem6LfIoG2EduQZmPBcUwEmg==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.14.5"
+
+"@babel/plugin-syntax-function-sent@^7.12.1":
+ version "7.14.5"
+ resolved "https://registry.npmjs.org/@babel/plugin-syntax-function-sent/-/plugin-syntax-function-sent-7.14.5.tgz#17bb55e9e53857af93a57000644c020962f07b32"
+ integrity sha512-FNN0Ve2/6yxCa0xMG7wUlM81t+HOPu8HNWk683Xav1B+vjHKQQujX82NEKYdDYNUX7/ky8pUCHfRUYVmigs69Q==
+ dependencies:
+ "@babel/helper-plugin-utils" "^7.14.5"
+
+"@babel/plugin-syntax-import-meta@^7.10.4", "@babel/plugin-syntax-import-meta@^7.8.3":
version "7.10.4"
- resolved "https://registry.npm.taobao.org/@babel/plugin-syntax-function-bind/download/@babel/plugin-syntax-function-bind-7.10.4.tgz#8378d94f3185ddd3008310c15fe0991cb0c85151"
- integrity sha1-g3jZTzGF3dMAgxDBX+CZHLDIUVE=
+ resolved "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz#ee601348c370fa334d2207be158777496521fd51"
+ integrity sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-syntax-function-sent@^7.2.0":
- version "7.10.4"
- resolved "https://registry.npm.taobao.org/@babel/plugin-syntax-function-sent/download/@babel/plugin-syntax-function-sent-7.10.4.tgz#b551f38b629e2e20908e53624f96f9ab300f5061"
- integrity sha1-tVHzi2KeLiCQjlNiT5b5qzAPUGE=
- dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
-
-"@babel/plugin-syntax-import-meta@7.2.0":
- version "7.2.0"
- resolved "https://registry.npm.taobao.org/@babel/plugin-syntax-import-meta/download/@babel/plugin-syntax-import-meta-7.2.0.tgz#2333ef4b875553a3bcd1e93f8ebc09f5b9213a40"
- integrity sha1-IzPvS4dVU6O80ek/jrwJ9bkhOkA=
- dependencies:
- "@babel/helper-plugin-utils" "^7.0.0"
-
-"@babel/plugin-syntax-import-meta@^7.8.3":
- version "7.10.4"
- resolved "https://registry.npm.taobao.org/@babel/plugin-syntax-import-meta/download/@babel/plugin-syntax-import-meta-7.10.4.tgz#ee601348c370fa334d2207be158777496521fd51"
- integrity sha1-7mATSMNw+jNNIge+FYd3SWUh/VE=
- dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
-
-"@babel/plugin-syntax-json-strings@^7.2.0", "@babel/plugin-syntax-json-strings@^7.8.3":
+"@babel/plugin-syntax-json-strings@^7.8.0", "@babel/plugin-syntax-json-strings@^7.8.3":
version "7.8.3"
resolved "https://registry.npm.taobao.org/@babel/plugin-syntax-json-strings/download/@babel/plugin-syntax-json-strings-7.8.3.tgz#01ca21b668cd8218c9e640cb6dd88c5412b2c96a"
integrity sha1-AcohtmjNghjJ5kDLbdiMVBKyyWo=
@@ -776,54 +725,54 @@
dependencies:
"@babel/helper-plugin-utils" "^7.12.13"
-"@babel/plugin-syntax-logical-assignment-operators@^7.10.4", "@babel/plugin-syntax-logical-assignment-operators@^7.2.0", "@babel/plugin-syntax-logical-assignment-operators@^7.8.3":
+"@babel/plugin-syntax-logical-assignment-operators@^7.10.4", "@babel/plugin-syntax-logical-assignment-operators@^7.8.3":
version "7.10.4"
resolved "https://registry.npm.taobao.org/@babel/plugin-syntax-logical-assignment-operators/download/@babel/plugin-syntax-logical-assignment-operators-7.10.4.tgz#ca91ef46303530448b906652bac2e9fe9941f699"
integrity sha1-ypHvRjA1MESLkGZSusLp/plB9pk=
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-syntax-nullish-coalescing-operator@^7.2.0", "@babel/plugin-syntax-nullish-coalescing-operator@^7.8.3":
+"@babel/plugin-syntax-nullish-coalescing-operator@^7.8.0", "@babel/plugin-syntax-nullish-coalescing-operator@^7.8.3":
version "7.8.3"
resolved "https://registry.npm.taobao.org/@babel/plugin-syntax-nullish-coalescing-operator/download/@babel/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz#167ed70368886081f74b5c36c65a88c03b66d1a9"
integrity sha1-Fn7XA2iIYIH3S1w2xlqIwDtm0ak=
dependencies:
"@babel/helper-plugin-utils" "^7.8.0"
-"@babel/plugin-syntax-numeric-separator@^7.10.4", "@babel/plugin-syntax-numeric-separator@^7.2.0", "@babel/plugin-syntax-numeric-separator@^7.8.3":
+"@babel/plugin-syntax-numeric-separator@^7.10.4", "@babel/plugin-syntax-numeric-separator@^7.8.3":
version "7.10.4"
resolved "https://registry.npm.taobao.org/@babel/plugin-syntax-numeric-separator/download/@babel/plugin-syntax-numeric-separator-7.10.4.tgz#b9b070b3e33570cd9fd07ba7fa91c0dd37b9af97"
integrity sha1-ubBws+M1cM2f0Hun+pHA3Te5r5c=
dependencies:
"@babel/helper-plugin-utils" "^7.10.4"
-"@babel/plugin-syntax-object-rest-spread@^7.2.0", "@babel/plugin-syntax-object-rest-spread@^7.8.3":
+"@babel/plugin-syntax-object-rest-spread@^7.8.0", "@babel/plugin-syntax-object-rest-spread@^7.8.3":
version "7.8.3"
resolved "https://registry.npm.taobao.org/@babel/plugin-syntax-object-rest-spread/download/@babel/plugin-syntax-object-rest-spread-7.8.3.tgz#60e225edcbd98a640332a2e72dd3e66f1af55871"
integrity sha1-YOIl7cvZimQDMqLnLdPmbxr1WHE=
dependencies:
"@babel/helper-plugin-utils" "^7.8.0"
-"@babel/plugin-syntax-optional-catch-binding@^7.2.0", "@babel/plugin-syntax-optional-catch-binding@^7.8.3":
+"@babel/plugin-syntax-optional-catch-binding@^7.8.0", "@babel/plugin-syntax-optional-catch-binding@^7.8.3":
version "7.8.3"
resolved "https://registry.npm.taobao.org/@babel/plugin-syntax-optional-catch-binding/download/@babel/plugin-syntax-optional-catch-binding-7.8.3.tgz#6111a265bcfb020eb9efd0fdfd7d26402b9ed6c1"
integrity sha1-YRGiZbz7Ag6579D9/X0mQCue1sE=
dependencies:
"@babel/helper-plugin-utils" "^7.8.0"
-"@babel/plugin-syntax-optional-chaining@^7.2.0", "@babel/plugin-syntax-optional-chaining@^7.8.3":
+"@babel/plugin-syntax-optional-chaining@^7.8.0", "@babel/plugin-syntax-optional-chaining@^7.8.3":
version "7.8.3"
resolved "https://registry.npm.taobao.org/@babel/plugin-syntax-optional-chaining/download/@babel/plugin-syntax-optional-chaining-7.8.3.tgz#4f69c2ab95167e0180cd5336613f8c5788f7d48a"
integrity sha1-T2nCq5UWfgGAzVM2YT+MV4j31Io=
dependencies:
"@babel/helper-plugin-utils" "^7.8.0"
-"@babel/plugin-syntax-pipeline-operator@^7.3.0":
- version "7.10.4"
- resolved "https://registry.npm.taobao.org/@babel/plugin-syntax-pipeline-operator/download/@babel/plugin-syntax-pipeline-operator-7.10.4.tgz#31bf327cf780dd60e0444fd98561119795247a6c"
- integrity sha1-Mb8yfPeA3WDgRE/ZhWERl5Ukemw=
+"@babel/plugin-syntax-pipeline-operator@^7.12.1":
+ version "7.15.0"
+ resolved "https://registry.npmjs.org/@babel/plugin-syntax-pipeline-operator/-/plugin-syntax-pipeline-operator-7.15.0.tgz#47ee9780aa4e10d3a848089a65c0a0b513caa5e9"
+ integrity sha512-APuEsBJFWgLasnPi3XS4o7AW24Z8hsX1odmCl9it1fpIA38E2+rSWk6zy1MpFQYKGyphlh84dJB4MtDwI0XN5w==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.14.5"
"@babel/plugin-syntax-private-property-in-object@^7.14.5":
version "7.14.5"
@@ -832,35 +781,35 @@
dependencies:
"@babel/helper-plugin-utils" "^7.14.5"
-"@babel/plugin-syntax-throw-expressions@^7.2.0":
- version "7.10.4"
- resolved "https://registry.npm.taobao.org/@babel/plugin-syntax-throw-expressions/download/@babel/plugin-syntax-throw-expressions-7.10.4.tgz#a588df9fa2203207a3ac7e35f0db3b67bf68eca3"
- integrity sha1-pYjfn6IgMgejrH418Ns7Z79o7KM=
+"@babel/plugin-syntax-throw-expressions@^7.12.1":
+ version "7.14.5"
+ resolved "https://registry.npmjs.org/@babel/plugin-syntax-throw-expressions/-/plugin-syntax-throw-expressions-7.14.5.tgz#db96785d9131fa7e7868968e8a777ac6d3eda801"
+ integrity sha512-4aFC2goA9+JceXayipcSY017nGspvcAkzR+sdsT6hN4DUuHWvM88wdjf/Nxja5sTE7oYPmfuN84ViREdgjingw==
dependencies:
- "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-plugin-utils" "^7.14.5"
-"@babel/plugin-syntax-top-level-await@^7.14.5", "@babel/plugin-syntax-top-level-await@^7.8.3":
+"@babel/plugin-syntax-top-level-await@^7.12.1", "@babel/plugin-syntax-top-level-await@^7.14.5", "@babel/plugin-syntax-top-level-await@^7.8.3":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz#c1cfdadc35a646240001f06138247b741c34d94c"
integrity sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==
dependencies:
"@babel/helper-plugin-utils" "^7.14.5"
-"@babel/plugin-syntax-typescript@^7.14.5":
+"@babel/plugin-syntax-typescript@^7.14.5", "@babel/plugin-syntax-typescript@^7.7.2":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.14.5.tgz#b82c6ce471b165b5ce420cf92914d6fb46225716"
integrity sha512-u6OXzDaIXjEstBRRoBCQ/uKQKlbuaeE5in0RvWdA4pN6AhqxTIwUsnHPU1CFZA/amYObMsuWhYfRl3Ch90HD0Q==
dependencies:
"@babel/helper-plugin-utils" "^7.14.5"
-"@babel/plugin-transform-arrow-functions@^7.14.5", "@babel/plugin-transform-arrow-functions@^7.2.0":
+"@babel/plugin-transform-arrow-functions@^7.12.1", "@babel/plugin-transform-arrow-functions@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.14.5.tgz#f7187d9588a768dd080bf4c9ffe117ea62f7862a"
integrity sha512-KOnO0l4+tD5IfOdi4x8C1XmEIRWUjNRV8wc6K2vz/3e8yAOoZZvsRXRRIF/yo/MAOFb4QjtAw9xSxMXbSMRy8A==
dependencies:
"@babel/helper-plugin-utils" "^7.14.5"
-"@babel/plugin-transform-async-to-generator@^7.14.5", "@babel/plugin-transform-async-to-generator@^7.4.0":
+"@babel/plugin-transform-async-to-generator@^7.12.1", "@babel/plugin-transform-async-to-generator@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.14.5.tgz#72c789084d8f2094acb945633943ef8443d39e67"
integrity sha512-szkbzQ0mNk0rpu76fzDdqSyPu0MuvpXgC+6rz5rpMb5OIRxdmHfQxrktL8CYolL2d8luMCZTR0DpIMIdL27IjA==
@@ -869,48 +818,48 @@
"@babel/helper-plugin-utils" "^7.14.5"
"@babel/helper-remap-async-to-generator" "^7.14.5"
-"@babel/plugin-transform-block-scoped-functions@^7.14.5", "@babel/plugin-transform-block-scoped-functions@^7.2.0":
+"@babel/plugin-transform-block-scoped-functions@^7.12.1", "@babel/plugin-transform-block-scoped-functions@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.14.5.tgz#e48641d999d4bc157a67ef336aeb54bc44fd3ad4"
integrity sha512-dtqWqdWZ5NqBX3KzsVCWfQI3A53Ft5pWFCT2eCVUftWZgjc5DpDponbIF1+c+7cSGk2wN0YK7HGL/ezfRbpKBQ==
dependencies:
"@babel/helper-plugin-utils" "^7.14.5"
-"@babel/plugin-transform-block-scoping@^7.14.5", "@babel/plugin-transform-block-scoping@^7.4.0":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.14.5.tgz#8cc63e61e50f42e078e6f09be775a75f23ef9939"
- integrity sha512-LBYm4ZocNgoCqyxMLoOnwpsmQ18HWTQvql64t3GvMUzLQrNoV1BDG0lNftC8QKYERkZgCCT/7J5xWGObGAyHDw==
+"@babel/plugin-transform-block-scoping@^7.12.1", "@babel/plugin-transform-block-scoping@^7.15.3":
+ version "7.15.3"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.15.3.tgz#94c81a6e2fc230bcce6ef537ac96a1e4d2b3afaf"
+ integrity sha512-nBAzfZwZb4DkaGtOes1Up1nOAp9TDRRFw4XBzBBSG9QK7KVFmYzgj9o9sbPv7TX5ofL4Auq4wZnxCoPnI/lz2Q==
dependencies:
"@babel/helper-plugin-utils" "^7.14.5"
-"@babel/plugin-transform-classes@^7.14.5", "@babel/plugin-transform-classes@^7.4.3":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.14.5.tgz#0e98e82097b38550b03b483f9b51a78de0acb2cf"
- integrity sha512-J4VxKAMykM06K/64z9rwiL6xnBHgB1+FVspqvlgCdwD1KUbQNfszeKVVOMh59w3sztHYIZDgnhOC4WbdEfHFDA==
+"@babel/plugin-transform-classes@^7.12.1", "@babel/plugin-transform-classes@^7.15.4":
+ version "7.15.4"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.15.4.tgz#50aee17aaf7f332ae44e3bce4c2e10534d5d3bf1"
+ integrity sha512-Yjvhex8GzBmmPQUvpXRPWQ9WnxXgAFuZSrqOK/eJlOGIXwvv8H3UEdUigl1gb/bnjTrln+e8bkZUYCBt/xYlBg==
dependencies:
- "@babel/helper-annotate-as-pure" "^7.14.5"
- "@babel/helper-function-name" "^7.14.5"
- "@babel/helper-optimise-call-expression" "^7.14.5"
+ "@babel/helper-annotate-as-pure" "^7.15.4"
+ "@babel/helper-function-name" "^7.15.4"
+ "@babel/helper-optimise-call-expression" "^7.15.4"
"@babel/helper-plugin-utils" "^7.14.5"
- "@babel/helper-replace-supers" "^7.14.5"
- "@babel/helper-split-export-declaration" "^7.14.5"
+ "@babel/helper-replace-supers" "^7.15.4"
+ "@babel/helper-split-export-declaration" "^7.15.4"
globals "^11.1.0"
-"@babel/plugin-transform-computed-properties@^7.14.5", "@babel/plugin-transform-computed-properties@^7.2.0":
+"@babel/plugin-transform-computed-properties@^7.12.1", "@babel/plugin-transform-computed-properties@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.14.5.tgz#1b9d78987420d11223d41195461cc43b974b204f"
integrity sha512-pWM+E4283UxaVzLb8UBXv4EIxMovU4zxT1OPnpHJcmnvyY9QbPPTKZfEj31EUvG3/EQRbYAGaYEUZ4yWOBC2xg==
dependencies:
"@babel/helper-plugin-utils" "^7.14.5"
-"@babel/plugin-transform-destructuring@^7.14.5", "@babel/plugin-transform-destructuring@^7.4.3":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.14.5.tgz#d32ad19ff1a6da1e861dc62720d80d9776e3bf35"
- integrity sha512-wU9tYisEbRMxqDezKUqC9GleLycCRoUsai9ddlsq54r8QRLaeEhc+d+9DqCG+kV9W2GgQjTZESPTpn5bAFMDww==
+"@babel/plugin-transform-destructuring@^7.12.1", "@babel/plugin-transform-destructuring@^7.14.7":
+ version "7.14.7"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.14.7.tgz#0ad58ed37e23e22084d109f185260835e5557576"
+ integrity sha512-0mDE99nK+kVh3xlc5vKwB6wnP9ecuSj+zQCa/n0voENtP/zymdT4HH6QEb65wjjcbqr1Jb/7z9Qp7TF5FtwYGw==
dependencies:
"@babel/helper-plugin-utils" "^7.14.5"
-"@babel/plugin-transform-dotall-regex@^7.14.5", "@babel/plugin-transform-dotall-regex@^7.4.3", "@babel/plugin-transform-dotall-regex@^7.4.4":
+"@babel/plugin-transform-dotall-regex@^7.12.1", "@babel/plugin-transform-dotall-regex@^7.14.5", "@babel/plugin-transform-dotall-regex@^7.4.4":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.14.5.tgz#2f6bf76e46bdf8043b4e7e16cf24532629ba0c7a"
integrity sha512-loGlnBdj02MDsFaHhAIJzh7euK89lBrGIdM9EAtHFo6xKygCUGuuWe07o1oZVk287amtW1n0808sQM99aZt3gw==
@@ -918,14 +867,14 @@
"@babel/helper-create-regexp-features-plugin" "^7.14.5"
"@babel/helper-plugin-utils" "^7.14.5"
-"@babel/plugin-transform-duplicate-keys@^7.14.5", "@babel/plugin-transform-duplicate-keys@^7.2.0":
+"@babel/plugin-transform-duplicate-keys@^7.12.1", "@babel/plugin-transform-duplicate-keys@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.14.5.tgz#365a4844881bdf1501e3a9f0270e7f0f91177954"
integrity sha512-iJjbI53huKbPDAsJ8EmVmvCKeeq21bAze4fu9GBQtSLqfvzj2oRuHVx4ZkDwEhg1htQ+5OBZh/Ab0XDf5iBZ7A==
dependencies:
"@babel/helper-plugin-utils" "^7.14.5"
-"@babel/plugin-transform-exponentiation-operator@^7.14.5", "@babel/plugin-transform-exponentiation-operator@^7.2.0":
+"@babel/plugin-transform-exponentiation-operator@^7.12.1", "@babel/plugin-transform-exponentiation-operator@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.14.5.tgz#5154b8dd6a3dfe6d90923d61724bd3deeb90b493"
integrity sha512-jFazJhMBc9D27o9jDnIE5ZErI0R0m7PbKXVq77FFvqFbzvTMuv8jaAwLZ5PviOLSFttqKIW0/wxNSDbjLk0tYA==
@@ -933,14 +882,14 @@
"@babel/helper-builder-binary-assignment-operator-visitor" "^7.14.5"
"@babel/helper-plugin-utils" "^7.14.5"
-"@babel/plugin-transform-for-of@^7.14.5", "@babel/plugin-transform-for-of@^7.4.3":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.14.5.tgz#dae384613de8f77c196a8869cbf602a44f7fc0eb"
- integrity sha512-CfmqxSUZzBl0rSjpoQSFoR9UEj3HzbGuGNL21/iFTmjb5gFggJp3ph0xR1YBhexmLoKRHzgxuFvty2xdSt6gTA==
+"@babel/plugin-transform-for-of@^7.12.1", "@babel/plugin-transform-for-of@^7.15.4":
+ version "7.15.4"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.15.4.tgz#25c62cce2718cfb29715f416e75d5263fb36a8c2"
+ integrity sha512-DRTY9fA751AFBDh2oxydvVm4SYevs5ILTWLs6xKXps4Re/KG5nfUkr+TdHCrRWB8C69TlzVgA9b3RmGWmgN9LA==
dependencies:
"@babel/helper-plugin-utils" "^7.14.5"
-"@babel/plugin-transform-function-name@^7.14.5", "@babel/plugin-transform-function-name@^7.4.3":
+"@babel/plugin-transform-function-name@^7.12.1", "@babel/plugin-transform-function-name@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.14.5.tgz#e81c65ecb900746d7f31802f6bed1f52d915d6f2"
integrity sha512-vbO6kv0fIzZ1GpmGQuvbwwm+O4Cbm2NrPzwlup9+/3fdkuzo1YqOZcXw26+YUJB84Ja7j9yURWposEHLYwxUfQ==
@@ -948,21 +897,21 @@
"@babel/helper-function-name" "^7.14.5"
"@babel/helper-plugin-utils" "^7.14.5"
-"@babel/plugin-transform-literals@^7.14.5", "@babel/plugin-transform-literals@^7.2.0":
+"@babel/plugin-transform-literals@^7.12.1", "@babel/plugin-transform-literals@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.14.5.tgz#41d06c7ff5d4d09e3cf4587bd3ecf3930c730f78"
integrity sha512-ql33+epql2F49bi8aHXxvLURHkxJbSmMKl9J5yHqg4PLtdE6Uc48CH1GS6TQvZ86eoB/ApZXwm7jlA+B3kra7A==
dependencies:
"@babel/helper-plugin-utils" "^7.14.5"
-"@babel/plugin-transform-member-expression-literals@^7.14.5", "@babel/plugin-transform-member-expression-literals@^7.2.0":
+"@babel/plugin-transform-member-expression-literals@^7.12.1", "@babel/plugin-transform-member-expression-literals@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.14.5.tgz#b39cd5212a2bf235a617d320ec2b48bcc091b8a7"
integrity sha512-WkNXxH1VXVTKarWFqmso83xl+2V3Eo28YY5utIkbsmXoItO8Q3aZxN4BTS2k0hz9dGUloHK26mJMyQEYfkn/+Q==
dependencies:
"@babel/helper-plugin-utils" "^7.14.5"
-"@babel/plugin-transform-modules-amd@^7.14.5", "@babel/plugin-transform-modules-amd@^7.2.0":
+"@babel/plugin-transform-modules-amd@^7.12.1", "@babel/plugin-transform-modules-amd@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.14.5.tgz#4fd9ce7e3411cb8b83848480b7041d83004858f7"
integrity sha512-3lpOU8Vxmp3roC4vzFpSdEpGUWSMsHFreTWOMMLzel2gNGfHE5UWIh/LN6ghHs2xurUp4jRFYMUIZhuFbody1g==
@@ -971,28 +920,28 @@
"@babel/helper-plugin-utils" "^7.14.5"
babel-plugin-dynamic-import-node "^2.3.3"
-"@babel/plugin-transform-modules-commonjs@^7.14.5", "@babel/plugin-transform-modules-commonjs@^7.2.0", "@babel/plugin-transform-modules-commonjs@^7.4.3":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.14.5.tgz#7aaee0ea98283de94da98b28f8c35701429dad97"
- integrity sha512-en8GfBtgnydoao2PS+87mKyw62k02k7kJ9ltbKe0fXTHrQmG6QZZflYuGI1VVG7sVpx4E1n7KBpNlPb8m78J+A==
+"@babel/plugin-transform-modules-commonjs@^7.12.1", "@babel/plugin-transform-modules-commonjs@^7.15.4", "@babel/plugin-transform-modules-commonjs@^7.2.0":
+ version "7.15.4"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.15.4.tgz#8201101240eabb5a76c08ef61b2954f767b6b4c1"
+ integrity sha512-qg4DPhwG8hKp4BbVDvX1s8cohM8a6Bvptu4l6Iingq5rW+yRUAhe/YRup/YcW2zCOlrysEWVhftIcKzrEZv3sA==
dependencies:
- "@babel/helper-module-transforms" "^7.14.5"
+ "@babel/helper-module-transforms" "^7.15.4"
"@babel/helper-plugin-utils" "^7.14.5"
- "@babel/helper-simple-access" "^7.14.5"
+ "@babel/helper-simple-access" "^7.15.4"
babel-plugin-dynamic-import-node "^2.3.3"
-"@babel/plugin-transform-modules-systemjs@^7.14.5", "@babel/plugin-transform-modules-systemjs@^7.4.0":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.14.5.tgz#c75342ef8b30dcde4295d3401aae24e65638ed29"
- integrity sha512-mNMQdvBEE5DcMQaL5LbzXFMANrQjd2W7FPzg34Y4yEz7dBgdaC+9B84dSO+/1Wba98zoDbInctCDo4JGxz1VYA==
+"@babel/plugin-transform-modules-systemjs@^7.12.1", "@babel/plugin-transform-modules-systemjs@^7.15.4":
+ version "7.15.4"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.15.4.tgz#b42890c7349a78c827719f1d2d0cd38c7d268132"
+ integrity sha512-fJUnlQrl/mezMneR72CKCgtOoahqGJNVKpompKwzv3BrEXdlPspTcyxrZ1XmDTIr9PpULrgEQo3qNKp6dW7ssw==
dependencies:
- "@babel/helper-hoist-variables" "^7.14.5"
- "@babel/helper-module-transforms" "^7.14.5"
+ "@babel/helper-hoist-variables" "^7.15.4"
+ "@babel/helper-module-transforms" "^7.15.4"
"@babel/helper-plugin-utils" "^7.14.5"
- "@babel/helper-validator-identifier" "^7.14.5"
+ "@babel/helper-validator-identifier" "^7.14.9"
babel-plugin-dynamic-import-node "^2.3.3"
-"@babel/plugin-transform-modules-umd@^7.14.5", "@babel/plugin-transform-modules-umd@^7.2.0":
+"@babel/plugin-transform-modules-umd@^7.12.1", "@babel/plugin-transform-modules-umd@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.14.5.tgz#fb662dfee697cce274a7cda525190a79096aa6e0"
integrity sha512-RfPGoagSngC06LsGUYyM9QWSXZ8MysEjDJTAea1lqRjNECE3y0qIJF/qbvJxc4oA4s99HumIMdXOrd+TdKaAAA==
@@ -1000,21 +949,21 @@
"@babel/helper-module-transforms" "^7.14.5"
"@babel/helper-plugin-utils" "^7.14.5"
-"@babel/plugin-transform-named-capturing-groups-regex@^7.14.5", "@babel/plugin-transform-named-capturing-groups-regex@^7.4.2":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.14.5.tgz#d537e8ee083ee6f6aa4f4eef9d2081d555746e4c"
- integrity sha512-+Xe5+6MWFo311U8SchgeX5c1+lJM+eZDBZgD+tvXu9VVQPXwwVzeManMMjYX6xw2HczngfOSZjoFYKwdeB/Jvw==
+"@babel/plugin-transform-named-capturing-groups-regex@^7.12.1", "@babel/plugin-transform-named-capturing-groups-regex@^7.14.9":
+ version "7.14.9"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.14.9.tgz#c68f5c5d12d2ebaba3762e57c2c4f6347a46e7b2"
+ integrity sha512-l666wCVYO75mlAtGFfyFwnWmIXQm3kSH0C3IRnJqWcZbWkoihyAdDhFm2ZWaxWTqvBvhVFfJjMRQ0ez4oN1yYA==
dependencies:
"@babel/helper-create-regexp-features-plugin" "^7.14.5"
-"@babel/plugin-transform-new-target@^7.14.5", "@babel/plugin-transform-new-target@^7.4.0":
+"@babel/plugin-transform-new-target@^7.12.1", "@babel/plugin-transform-new-target@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.14.5.tgz#31bdae8b925dc84076ebfcd2a9940143aed7dbf8"
integrity sha512-Nx054zovz6IIRWEB49RDRuXGI4Gy0GMgqG0cII9L3MxqgXz/+rgII+RU58qpo4g7tNEx1jG7rRVH4ihZoP4esQ==
dependencies:
"@babel/helper-plugin-utils" "^7.14.5"
-"@babel/plugin-transform-object-super@^7.14.5", "@babel/plugin-transform-object-super@^7.2.0":
+"@babel/plugin-transform-object-super@^7.12.1", "@babel/plugin-transform-object-super@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.14.5.tgz#d0b5faeac9e98597a161a9cf78c527ed934cdc45"
integrity sha512-MKfOBWzK0pZIrav9z/hkRqIk/2bTv9qvxHzPQc12RcVkMOzpIKnFCNYJip00ssKWYkd8Sf5g0Wr7pqJ+cmtuFg==
@@ -1022,97 +971,97 @@
"@babel/helper-plugin-utils" "^7.14.5"
"@babel/helper-replace-supers" "^7.14.5"
-"@babel/plugin-transform-parameters@^7.14.5", "@babel/plugin-transform-parameters@^7.4.3":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.14.5.tgz#49662e86a1f3ddccac6363a7dfb1ff0a158afeb3"
- integrity sha512-Tl7LWdr6HUxTmzQtzuU14SqbgrSKmaR77M0OKyq4njZLQTPfOvzblNKyNkGwOfEFCEx7KeYHQHDI0P3F02IVkA==
+"@babel/plugin-transform-parameters@^7.12.1", "@babel/plugin-transform-parameters@^7.15.4":
+ version "7.15.4"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.15.4.tgz#5f2285cc3160bf48c8502432716b48504d29ed62"
+ integrity sha512-9WB/GUTO6lvJU3XQsSr6J/WKvBC2hcs4Pew8YxZagi6GkTdniyqp8On5kqdK8MN0LMeu0mGbhPN+O049NV/9FQ==
dependencies:
"@babel/helper-plugin-utils" "^7.14.5"
-"@babel/plugin-transform-property-literals@^7.14.5", "@babel/plugin-transform-property-literals@^7.2.0":
+"@babel/plugin-transform-property-literals@^7.12.1", "@babel/plugin-transform-property-literals@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.14.5.tgz#0ddbaa1f83db3606f1cdf4846fa1dfb473458b34"
integrity sha512-r1uilDthkgXW8Z1vJz2dKYLV1tuw2xsbrp3MrZmD99Wh9vsfKoob+JTgri5VUb/JqyKRXotlOtwgu4stIYCmnw==
dependencies:
"@babel/helper-plugin-utils" "^7.14.5"
-"@babel/plugin-transform-regenerator@^7.14.5", "@babel/plugin-transform-regenerator@^7.4.3":
+"@babel/plugin-transform-regenerator@^7.12.1", "@babel/plugin-transform-regenerator@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.14.5.tgz#9676fd5707ed28f522727c5b3c0aa8544440b04f"
integrity sha512-NVIY1W3ITDP5xQl50NgTKlZ0GrotKtLna08/uGY6ErQt6VEQZXla86x/CTddm5gZdcr+5GSsvMeTmWA5Ii6pkg==
dependencies:
regenerator-transform "^0.14.2"
-"@babel/plugin-transform-reserved-words@^7.14.5", "@babel/plugin-transform-reserved-words@^7.2.0":
+"@babel/plugin-transform-reserved-words@^7.12.1", "@babel/plugin-transform-reserved-words@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.14.5.tgz#c44589b661cfdbef8d4300dcc7469dffa92f8304"
integrity sha512-cv4F2rv1nD4qdexOGsRQXJrOcyb5CrgjUH9PKrrtyhSDBNWGxd0UIitjyJiWagS+EbUGjG++22mGH1Pub8D6Vg==
dependencies:
"@babel/helper-plugin-utils" "^7.14.5"
-"@babel/plugin-transform-runtime@7.4.3":
- version "7.4.3"
- resolved "https://registry.npm.taobao.org/@babel/plugin-transform-runtime/download/@babel/plugin-transform-runtime-7.4.3.tgz?cache=0&sync_timestamp=1602706726661&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fplugin-transform-runtime%2Fdownload%2F%40babel%2Fplugin-transform-runtime-7.4.3.tgz#4d6691690ecdc9f5cb8c3ab170a1576c1f556371"
- integrity sha1-TWaRaQ7NyfXLjDqxcKFXbB9VY3E=
+"@babel/plugin-transform-runtime@7.12.1":
+ version "7.12.1"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.12.1.tgz#04b792057eb460389ff6a4198e377614ea1e7ba5"
+ integrity sha512-Ac/H6G9FEIkS2tXsZjL4RAdS3L3WHxci0usAnz7laPWUmFiGtj7tIASChqKZMHTSQTQY6xDbOq+V1/vIq3QrWg==
dependencies:
- "@babel/helper-module-imports" "^7.0.0"
- "@babel/helper-plugin-utils" "^7.0.0"
+ "@babel/helper-module-imports" "^7.12.1"
+ "@babel/helper-plugin-utils" "^7.10.4"
resolve "^1.8.1"
semver "^5.5.1"
-"@babel/plugin-transform-shorthand-properties@^7.14.5", "@babel/plugin-transform-shorthand-properties@^7.2.0":
+"@babel/plugin-transform-shorthand-properties@^7.12.1", "@babel/plugin-transform-shorthand-properties@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.14.5.tgz#97f13855f1409338d8cadcbaca670ad79e091a58"
integrity sha512-xLucks6T1VmGsTB+GWK5Pl9Jl5+nRXD1uoFdA5TSO6xtiNjtXTjKkmPdFXVLGlK5A2/or/wQMKfmQ2Y0XJfn5g==
dependencies:
"@babel/helper-plugin-utils" "^7.14.5"
-"@babel/plugin-transform-spread@^7.14.5", "@babel/plugin-transform-spread@^7.2.0":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.14.5.tgz#bd269fb4119754d2ce7f4cc39a96b4f71baae356"
- integrity sha512-/3iqoQdiWergnShZYl0xACb4ADeYCJ7X/RgmwtXshn6cIvautRPAFzhd58frQlokLO6Jb4/3JXvmm6WNTPtiTw==
+"@babel/plugin-transform-spread@^7.12.1", "@babel/plugin-transform-spread@^7.14.6":
+ version "7.14.6"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.14.6.tgz#6bd40e57fe7de94aa904851963b5616652f73144"
+ integrity sha512-Zr0x0YroFJku7n7+/HH3A2eIrGMjbmAIbJSVv0IZ+t3U2WUQUA64S/oeied2e+MaGSjmt4alzBCsK9E8gh+fag==
dependencies:
"@babel/helper-plugin-utils" "^7.14.5"
"@babel/helper-skip-transparent-expression-wrappers" "^7.14.5"
-"@babel/plugin-transform-sticky-regex@^7.14.5", "@babel/plugin-transform-sticky-regex@^7.2.0":
+"@babel/plugin-transform-sticky-regex@^7.12.1", "@babel/plugin-transform-sticky-regex@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.14.5.tgz#5b617542675e8b7761294381f3c28c633f40aeb9"
integrity sha512-Z7F7GyvEMzIIbwnziAZmnSNpdijdr4dWt+FJNBnBLz5mwDFkqIXU9wmBcWWad3QeJF5hMTkRe4dAq2sUZiG+8A==
dependencies:
"@babel/helper-plugin-utils" "^7.14.5"
-"@babel/plugin-transform-template-literals@^7.14.5", "@babel/plugin-transform-template-literals@^7.2.0":
+"@babel/plugin-transform-template-literals@^7.12.1", "@babel/plugin-transform-template-literals@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.14.5.tgz#a5f2bc233937d8453885dc736bdd8d9ffabf3d93"
integrity sha512-22btZeURqiepOfuy/VkFr+zStqlujWaarpMErvay7goJS6BWwdd6BY9zQyDLDa4x2S3VugxFb162IZ4m/S/+Gg==
dependencies:
"@babel/helper-plugin-utils" "^7.14.5"
-"@babel/plugin-transform-typeof-symbol@^7.14.5", "@babel/plugin-transform-typeof-symbol@^7.2.0":
+"@babel/plugin-transform-typeof-symbol@^7.12.1", "@babel/plugin-transform-typeof-symbol@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.14.5.tgz#39af2739e989a2bd291bf6b53f16981423d457d4"
integrity sha512-lXzLD30ffCWseTbMQzrvDWqljvZlHkXU+CnseMhkMNqU1sASnCsz3tSzAaH3vCUXb9PHeUb90ZT1BdFTm1xxJw==
dependencies:
"@babel/helper-plugin-utils" "^7.14.5"
-"@babel/plugin-transform-typescript@^7.14.5":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.14.5.tgz#5b41b59072f765bd1ec1d0b694e08c7df0f6f8a0"
- integrity sha512-cFD5PKp4b8/KkwQ7h71FdPXFvz1RgwTFF9akRZwFldb9G0AHf7CgoPx96c4Q/ZVjh6V81tqQwW5YiHws16OzPg==
+"@babel/plugin-transform-typescript@^7.14.4", "@babel/plugin-transform-typescript@^7.14.6", "@babel/plugin-transform-typescript@^7.15.0":
+ version "7.15.4"
+ resolved "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.15.4.tgz#db7a062dcf8be5fc096bc0eeb40a13fbfa1fa251"
+ integrity sha512-sM1/FEjwYjXvMwu1PJStH11kJ154zd/lpY56NQJ5qH2D0mabMv1CAy/kdvS9RP4Xgfj9fBBA3JiSLdDHgXdzOA==
dependencies:
- "@babel/helper-create-class-features-plugin" "^7.14.5"
+ "@babel/helper-create-class-features-plugin" "^7.15.4"
"@babel/helper-plugin-utils" "^7.14.5"
"@babel/plugin-syntax-typescript" "^7.14.5"
-"@babel/plugin-transform-unicode-escapes@^7.14.5":
+"@babel/plugin-transform-unicode-escapes@^7.12.1", "@babel/plugin-transform-unicode-escapes@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.14.5.tgz#9d4bd2a681e3c5d7acf4f57fa9e51175d91d0c6b"
integrity sha512-crTo4jATEOjxj7bt9lbYXcBAM3LZaUrbP2uUdxb6WIorLmjNKSpHfIybgY4B8SRpbf8tEVIWH3Vtm7ayCrKocA==
dependencies:
"@babel/helper-plugin-utils" "^7.14.5"
-"@babel/plugin-transform-unicode-regex@^7.14.5", "@babel/plugin-transform-unicode-regex@^7.4.3":
+"@babel/plugin-transform-unicode-regex@^7.12.1", "@babel/plugin-transform-unicode-regex@^7.14.5":
version "7.14.5"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.14.5.tgz#4cd09b6c8425dd81255c7ceb3fb1836e7414382e"
integrity sha512-UygduJpC5kHeCiRw/xDVzC+wj8VaYSoKl5JNVmbP7MadpNinAm3SvZCxZ42H37KZBKztz46YC73i9yV34d0Tzw==
@@ -1120,84 +1069,102 @@
"@babel/helper-create-regexp-features-plugin" "^7.14.5"
"@babel/helper-plugin-utils" "^7.14.5"
-"@babel/preset-env@7.4.3":
- version "7.4.3"
- resolved "https://registry.npm.taobao.org/@babel/preset-env/download/@babel/preset-env-7.4.3.tgz#e71e16e123dc0fbf65a52cbcbcefd072fbd02880"
- integrity sha1-5x4W4SPcD79lpSy8vO/QcvvQKIA=
+"@babel/preset-env@7.12.1":
+ version "7.12.1"
+ resolved "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.12.1.tgz#9c7e5ca82a19efc865384bb4989148d2ee5d7ac2"
+ integrity sha512-H8kxXmtPaAGT7TyBvSSkoSTUK6RHh61So05SyEbpmr0MCZrsNYn7mGMzzeYoOUCdHzww61k8XBft2TaES+xPLg==
dependencies:
- "@babel/helper-module-imports" "^7.0.0"
- "@babel/helper-plugin-utils" "^7.0.0"
- "@babel/plugin-proposal-async-generator-functions" "^7.2.0"
- "@babel/plugin-proposal-json-strings" "^7.2.0"
- "@babel/plugin-proposal-object-rest-spread" "^7.4.3"
- "@babel/plugin-proposal-optional-catch-binding" "^7.2.0"
- "@babel/plugin-proposal-unicode-property-regex" "^7.4.0"
- "@babel/plugin-syntax-async-generators" "^7.2.0"
- "@babel/plugin-syntax-json-strings" "^7.2.0"
- "@babel/plugin-syntax-object-rest-spread" "^7.2.0"
- "@babel/plugin-syntax-optional-catch-binding" "^7.2.0"
- "@babel/plugin-transform-arrow-functions" "^7.2.0"
- "@babel/plugin-transform-async-to-generator" "^7.4.0"
- "@babel/plugin-transform-block-scoped-functions" "^7.2.0"
- "@babel/plugin-transform-block-scoping" "^7.4.0"
- "@babel/plugin-transform-classes" "^7.4.3"
- "@babel/plugin-transform-computed-properties" "^7.2.0"
- "@babel/plugin-transform-destructuring" "^7.4.3"
- "@babel/plugin-transform-dotall-regex" "^7.4.3"
- "@babel/plugin-transform-duplicate-keys" "^7.2.0"
- "@babel/plugin-transform-exponentiation-operator" "^7.2.0"
- "@babel/plugin-transform-for-of" "^7.4.3"
- "@babel/plugin-transform-function-name" "^7.4.3"
- "@babel/plugin-transform-literals" "^7.2.0"
- "@babel/plugin-transform-member-expression-literals" "^7.2.0"
- "@babel/plugin-transform-modules-amd" "^7.2.0"
- "@babel/plugin-transform-modules-commonjs" "^7.4.3"
- "@babel/plugin-transform-modules-systemjs" "^7.4.0"
- "@babel/plugin-transform-modules-umd" "^7.2.0"
- "@babel/plugin-transform-named-capturing-groups-regex" "^7.4.2"
- "@babel/plugin-transform-new-target" "^7.4.0"
- "@babel/plugin-transform-object-super" "^7.2.0"
- "@babel/plugin-transform-parameters" "^7.4.3"
- "@babel/plugin-transform-property-literals" "^7.2.0"
- "@babel/plugin-transform-regenerator" "^7.4.3"
- "@babel/plugin-transform-reserved-words" "^7.2.0"
- "@babel/plugin-transform-shorthand-properties" "^7.2.0"
- "@babel/plugin-transform-spread" "^7.2.0"
- "@babel/plugin-transform-sticky-regex" "^7.2.0"
- "@babel/plugin-transform-template-literals" "^7.2.0"
- "@babel/plugin-transform-typeof-symbol" "^7.2.0"
- "@babel/plugin-transform-unicode-regex" "^7.4.3"
- "@babel/types" "^7.4.0"
- browserslist "^4.5.2"
- core-js-compat "^3.0.0"
- invariant "^2.2.2"
- js-levenshtein "^1.1.3"
+ "@babel/compat-data" "^7.12.1"
+ "@babel/helper-compilation-targets" "^7.12.1"
+ "@babel/helper-module-imports" "^7.12.1"
+ "@babel/helper-plugin-utils" "^7.10.4"
+ "@babel/helper-validator-option" "^7.12.1"
+ "@babel/plugin-proposal-async-generator-functions" "^7.12.1"
+ "@babel/plugin-proposal-class-properties" "^7.12.1"
+ "@babel/plugin-proposal-dynamic-import" "^7.12.1"
+ "@babel/plugin-proposal-export-namespace-from" "^7.12.1"
+ "@babel/plugin-proposal-json-strings" "^7.12.1"
+ "@babel/plugin-proposal-logical-assignment-operators" "^7.12.1"
+ "@babel/plugin-proposal-nullish-coalescing-operator" "^7.12.1"
+ "@babel/plugin-proposal-numeric-separator" "^7.12.1"
+ "@babel/plugin-proposal-object-rest-spread" "^7.12.1"
+ "@babel/plugin-proposal-optional-catch-binding" "^7.12.1"
+ "@babel/plugin-proposal-optional-chaining" "^7.12.1"
+ "@babel/plugin-proposal-private-methods" "^7.12.1"
+ "@babel/plugin-proposal-unicode-property-regex" "^7.12.1"
+ "@babel/plugin-syntax-async-generators" "^7.8.0"
+ "@babel/plugin-syntax-class-properties" "^7.12.1"
+ "@babel/plugin-syntax-dynamic-import" "^7.8.0"
+ "@babel/plugin-syntax-export-namespace-from" "^7.8.3"
+ "@babel/plugin-syntax-json-strings" "^7.8.0"
+ "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4"
+ "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.0"
+ "@babel/plugin-syntax-numeric-separator" "^7.10.4"
+ "@babel/plugin-syntax-object-rest-spread" "^7.8.0"
+ "@babel/plugin-syntax-optional-catch-binding" "^7.8.0"
+ "@babel/plugin-syntax-optional-chaining" "^7.8.0"
+ "@babel/plugin-syntax-top-level-await" "^7.12.1"
+ "@babel/plugin-transform-arrow-functions" "^7.12.1"
+ "@babel/plugin-transform-async-to-generator" "^7.12.1"
+ "@babel/plugin-transform-block-scoped-functions" "^7.12.1"
+ "@babel/plugin-transform-block-scoping" "^7.12.1"
+ "@babel/plugin-transform-classes" "^7.12.1"
+ "@babel/plugin-transform-computed-properties" "^7.12.1"
+ "@babel/plugin-transform-destructuring" "^7.12.1"
+ "@babel/plugin-transform-dotall-regex" "^7.12.1"
+ "@babel/plugin-transform-duplicate-keys" "^7.12.1"
+ "@babel/plugin-transform-exponentiation-operator" "^7.12.1"
+ "@babel/plugin-transform-for-of" "^7.12.1"
+ "@babel/plugin-transform-function-name" "^7.12.1"
+ "@babel/plugin-transform-literals" "^7.12.1"
+ "@babel/plugin-transform-member-expression-literals" "^7.12.1"
+ "@babel/plugin-transform-modules-amd" "^7.12.1"
+ "@babel/plugin-transform-modules-commonjs" "^7.12.1"
+ "@babel/plugin-transform-modules-systemjs" "^7.12.1"
+ "@babel/plugin-transform-modules-umd" "^7.12.1"
+ "@babel/plugin-transform-named-capturing-groups-regex" "^7.12.1"
+ "@babel/plugin-transform-new-target" "^7.12.1"
+ "@babel/plugin-transform-object-super" "^7.12.1"
+ "@babel/plugin-transform-parameters" "^7.12.1"
+ "@babel/plugin-transform-property-literals" "^7.12.1"
+ "@babel/plugin-transform-regenerator" "^7.12.1"
+ "@babel/plugin-transform-reserved-words" "^7.12.1"
+ "@babel/plugin-transform-shorthand-properties" "^7.12.1"
+ "@babel/plugin-transform-spread" "^7.12.1"
+ "@babel/plugin-transform-sticky-regex" "^7.12.1"
+ "@babel/plugin-transform-template-literals" "^7.12.1"
+ "@babel/plugin-transform-typeof-symbol" "^7.12.1"
+ "@babel/plugin-transform-unicode-escapes" "^7.12.1"
+ "@babel/plugin-transform-unicode-regex" "^7.12.1"
+ "@babel/preset-modules" "^0.1.3"
+ "@babel/types" "^7.12.1"
+ core-js-compat "^3.6.2"
semver "^5.5.0"
-"@babel/preset-env@^7.14.5":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.14.5.tgz#c0c84e763661fd0e74292c3d511cb33b0c668997"
- integrity sha512-ci6TsS0bjrdPpWGnQ+m4f+JSSzDKlckqKIJJt9UZ/+g7Zz9k0N8lYU8IeLg/01o2h8LyNZDMLGgRLDTxpudLsA==
+"@babel/preset-env@^7.15.0":
+ version "7.15.6"
+ resolved "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.15.6.tgz#0f3898db9d63d320f21b17380d8462779de57659"
+ integrity sha512-L+6jcGn7EWu7zqaO2uoTDjjMBW+88FXzV8KvrBl2z6MtRNxlsmUNRlZPaNNPUTgqhyC5DHNFk/2Jmra+ublZWw==
dependencies:
- "@babel/compat-data" "^7.14.5"
- "@babel/helper-compilation-targets" "^7.14.5"
+ "@babel/compat-data" "^7.15.0"
+ "@babel/helper-compilation-targets" "^7.15.4"
"@babel/helper-plugin-utils" "^7.14.5"
"@babel/helper-validator-option" "^7.14.5"
- "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining" "^7.14.5"
- "@babel/plugin-proposal-async-generator-functions" "^7.14.5"
+ "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining" "^7.15.4"
+ "@babel/plugin-proposal-async-generator-functions" "^7.15.4"
"@babel/plugin-proposal-class-properties" "^7.14.5"
- "@babel/plugin-proposal-class-static-block" "^7.14.5"
+ "@babel/plugin-proposal-class-static-block" "^7.15.4"
"@babel/plugin-proposal-dynamic-import" "^7.14.5"
"@babel/plugin-proposal-export-namespace-from" "^7.14.5"
"@babel/plugin-proposal-json-strings" "^7.14.5"
"@babel/plugin-proposal-logical-assignment-operators" "^7.14.5"
"@babel/plugin-proposal-nullish-coalescing-operator" "^7.14.5"
"@babel/plugin-proposal-numeric-separator" "^7.14.5"
- "@babel/plugin-proposal-object-rest-spread" "^7.14.5"
+ "@babel/plugin-proposal-object-rest-spread" "^7.15.6"
"@babel/plugin-proposal-optional-catch-binding" "^7.14.5"
"@babel/plugin-proposal-optional-chaining" "^7.14.5"
"@babel/plugin-proposal-private-methods" "^7.14.5"
- "@babel/plugin-proposal-private-property-in-object" "^7.14.5"
+ "@babel/plugin-proposal-private-property-in-object" "^7.15.4"
"@babel/plugin-proposal-unicode-property-regex" "^7.14.5"
"@babel/plugin-syntax-async-generators" "^7.8.4"
"@babel/plugin-syntax-class-properties" "^7.12.13"
@@ -1216,44 +1183,44 @@
"@babel/plugin-transform-arrow-functions" "^7.14.5"
"@babel/plugin-transform-async-to-generator" "^7.14.5"
"@babel/plugin-transform-block-scoped-functions" "^7.14.5"
- "@babel/plugin-transform-block-scoping" "^7.14.5"
- "@babel/plugin-transform-classes" "^7.14.5"
+ "@babel/plugin-transform-block-scoping" "^7.15.3"
+ "@babel/plugin-transform-classes" "^7.15.4"
"@babel/plugin-transform-computed-properties" "^7.14.5"
- "@babel/plugin-transform-destructuring" "^7.14.5"
+ "@babel/plugin-transform-destructuring" "^7.14.7"
"@babel/plugin-transform-dotall-regex" "^7.14.5"
"@babel/plugin-transform-duplicate-keys" "^7.14.5"
"@babel/plugin-transform-exponentiation-operator" "^7.14.5"
- "@babel/plugin-transform-for-of" "^7.14.5"
+ "@babel/plugin-transform-for-of" "^7.15.4"
"@babel/plugin-transform-function-name" "^7.14.5"
"@babel/plugin-transform-literals" "^7.14.5"
"@babel/plugin-transform-member-expression-literals" "^7.14.5"
"@babel/plugin-transform-modules-amd" "^7.14.5"
- "@babel/plugin-transform-modules-commonjs" "^7.14.5"
- "@babel/plugin-transform-modules-systemjs" "^7.14.5"
+ "@babel/plugin-transform-modules-commonjs" "^7.15.4"
+ "@babel/plugin-transform-modules-systemjs" "^7.15.4"
"@babel/plugin-transform-modules-umd" "^7.14.5"
- "@babel/plugin-transform-named-capturing-groups-regex" "^7.14.5"
+ "@babel/plugin-transform-named-capturing-groups-regex" "^7.14.9"
"@babel/plugin-transform-new-target" "^7.14.5"
"@babel/plugin-transform-object-super" "^7.14.5"
- "@babel/plugin-transform-parameters" "^7.14.5"
+ "@babel/plugin-transform-parameters" "^7.15.4"
"@babel/plugin-transform-property-literals" "^7.14.5"
"@babel/plugin-transform-regenerator" "^7.14.5"
"@babel/plugin-transform-reserved-words" "^7.14.5"
"@babel/plugin-transform-shorthand-properties" "^7.14.5"
- "@babel/plugin-transform-spread" "^7.14.5"
+ "@babel/plugin-transform-spread" "^7.14.6"
"@babel/plugin-transform-sticky-regex" "^7.14.5"
"@babel/plugin-transform-template-literals" "^7.14.5"
"@babel/plugin-transform-typeof-symbol" "^7.14.5"
"@babel/plugin-transform-unicode-escapes" "^7.14.5"
"@babel/plugin-transform-unicode-regex" "^7.14.5"
"@babel/preset-modules" "^0.1.4"
- "@babel/types" "^7.14.5"
+ "@babel/types" "^7.15.6"
babel-plugin-polyfill-corejs2 "^0.2.2"
babel-plugin-polyfill-corejs3 "^0.2.2"
babel-plugin-polyfill-regenerator "^0.2.2"
- core-js-compat "^3.14.0"
+ core-js-compat "^3.16.0"
semver "^6.3.0"
-"@babel/preset-modules@^0.1.4":
+"@babel/preset-modules@^0.1.3", "@babel/preset-modules@^0.1.4":
version "0.1.4"
resolved "https://registry.npm.taobao.org/@babel/preset-modules/download/@babel/preset-modules-0.1.4.tgz?cache=0&sync_timestamp=1598549925898&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fpreset-modules%2Fdownload%2F%40babel%2Fpreset-modules-0.1.4.tgz#362f2b68c662842970fdb5e254ffc8fc1c2e415e"
integrity sha1-Ni8raMZihClw/bXiVP/I/BwuQV4=
@@ -1264,52 +1231,59 @@
"@babel/types" "^7.4.4"
esutils "^2.0.2"
-"@babel/preset-typescript@^7.14.5":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.14.5.tgz#aa98de119cf9852b79511f19e7f44a2d379bcce0"
- integrity sha512-u4zO6CdbRKbS9TypMqrlGH7sd2TAJppZwn3c/ZRLeO/wGsbddxgbPDUZVNrie3JWYLQ9vpineKlsrWFvO6Pwkw==
+"@babel/preset-typescript@^7.15.0":
+ version "7.15.0"
+ resolved "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.15.0.tgz#e8fca638a1a0f64f14e1119f7fe4500277840945"
+ integrity sha512-lt0Y/8V3y06Wq/8H/u0WakrqciZ7Fz7mwPDHWUJAXlABL5hiUG42BNlRXiELNjeWjO5rWmnNKlx+yzJvxezHow==
dependencies:
"@babel/helper-plugin-utils" "^7.14.5"
"@babel/helper-validator-option" "^7.14.5"
- "@babel/plugin-transform-typescript" "^7.14.5"
+ "@babel/plugin-transform-typescript" "^7.15.0"
-"@babel/runtime@^7.0.0", "@babel/runtime@^7.7.2", "@babel/runtime@^7.8.4":
+"@babel/runtime@7.12.1":
+ version "7.12.1"
+ resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.12.1.tgz#b4116a6b6711d010b2dad3b7b6e43bf1b9954740"
+ integrity sha512-J5AIf3vPj3UwXaAzb5j1xM4WAQDX3EMgemF8rjCP3SoW09LfRKAXQKt6CoVYl230P6iWdRcBbnLDDdnqWxZSCA==
+ dependencies:
+ regenerator-runtime "^0.13.4"
+
+"@babel/runtime@^7.7.2", "@babel/runtime@^7.8.4":
version "7.13.10"
resolved "https://registry.npm.taobao.org/@babel/runtime/download/@babel/runtime-7.13.10.tgz?cache=0&sync_timestamp=1615243284383&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fruntime%2Fdownload%2F%40babel%2Fruntime-7.13.10.tgz#47d42a57b6095f4468da440388fdbad8bebf0d7d"
integrity sha1-R9QqV7YJX0Ro2kQDiP262L6/DX0=
dependencies:
regenerator-runtime "^0.13.4"
-"@babel/template@^7.0.0", "@babel/template@^7.14.5", "@babel/template@^7.3.3", "@babel/template@^7.4.0":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.14.5.tgz#a9bc9d8b33354ff6e55a9c60d1109200a68974f4"
- integrity sha512-6Z3Po85sfxRGachLULUhOmvAaOo7xCvqGQtxINai2mEGPFm6pQ4z5QInFnUrRpfoSV60BnjyF5F3c+15fxFV1g==
+"@babel/template@^7.0.0", "@babel/template@^7.10.4", "@babel/template@^7.15.4", "@babel/template@^7.3.3":
+ version "7.15.4"
+ resolved "https://registry.npmjs.org/@babel/template/-/template-7.15.4.tgz#51898d35dcf3faa670c4ee6afcfd517ee139f194"
+ integrity sha512-UgBAfEa1oGuYgDIPM2G+aHa4Nlo9Lh6mGD2bDBGMTbYnc38vulXPuC1MGjYILIEmlwl6Rd+BPR9ee3gm20CBtg==
dependencies:
"@babel/code-frame" "^7.14.5"
- "@babel/parser" "^7.14.5"
- "@babel/types" "^7.14.5"
+ "@babel/parser" "^7.15.4"
+ "@babel/types" "^7.15.4"
-"@babel/traverse@^7.0.0", "@babel/traverse@^7.1.0", "@babel/traverse@^7.13.0", "@babel/traverse@^7.14.5", "@babel/traverse@^7.4.3":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.14.5.tgz#c111b0f58afab4fea3d3385a406f692748c59870"
- integrity sha512-G3BiS15vevepdmFqmUc9X+64y0viZYygubAMO8SvBmKARuF6CPSZtH4Ng9vi/lrWlZFGe3FWdXNy835akH8Glg==
+"@babel/traverse@^7.0.0", "@babel/traverse@^7.1.0", "@babel/traverse@^7.12.1", "@babel/traverse@^7.13.0", "@babel/traverse@^7.15.4", "@babel/traverse@^7.7.2":
+ version "7.15.4"
+ resolved "https://registry.npmjs.org/@babel/traverse/-/traverse-7.15.4.tgz#ff8510367a144bfbff552d9e18e28f3e2889c22d"
+ integrity sha512-W6lQD8l4rUbQR/vYgSuCAE75ADyyQvOpFVsvPPdkhf6lATXAsQIG9YdtOcu8BB1dZ0LKu+Zo3c1wEcbKeuhdlA==
dependencies:
"@babel/code-frame" "^7.14.5"
- "@babel/generator" "^7.14.5"
- "@babel/helper-function-name" "^7.14.5"
- "@babel/helper-hoist-variables" "^7.14.5"
- "@babel/helper-split-export-declaration" "^7.14.5"
- "@babel/parser" "^7.14.5"
- "@babel/types" "^7.14.5"
+ "@babel/generator" "^7.15.4"
+ "@babel/helper-function-name" "^7.15.4"
+ "@babel/helper-hoist-variables" "^7.15.4"
+ "@babel/helper-split-export-declaration" "^7.15.4"
+ "@babel/parser" "^7.15.4"
+ "@babel/types" "^7.15.4"
debug "^4.1.0"
globals "^11.1.0"
-"@babel/types@^7.0.0", "@babel/types@^7.12.0", "@babel/types@^7.13.0", "@babel/types@^7.14.5", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.0", "@babel/types@^7.4.4":
- version "7.14.5"
- resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.14.5.tgz#3bb997ba829a2104cedb20689c4a5b8121d383ff"
- integrity sha512-M/NzBpEL95I5Hh4dwhin5JlE7EzO5PHMAuzjxss3tiOBD46KfQvVedN/3jEPZvdRvtsK2222XfdHogNIttFgcg==
+"@babel/types@^7.0.0", "@babel/types@^7.12.0", "@babel/types@^7.12.1", "@babel/types@^7.14.5", "@babel/types@^7.15.4", "@babel/types@^7.15.6", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4":
+ version "7.15.6"
+ resolved "https://registry.npmjs.org/@babel/types/-/types-7.15.6.tgz#99abdc48218b2881c058dd0a7ab05b99c9be758f"
+ integrity sha512-BPU+7QhqNjmWyDO0/vitH/CuhpV8ZmK1wpKva8nuyNF5MJfuRNWMc+hc14+u9xT93kvykMdncrJT19h74uB1Ig==
dependencies:
- "@babel/helper-validator-identifier" "^7.14.5"
+ "@babel/helper-validator-identifier" "^7.14.9"
to-fast-properties "^2.0.0"
"@bcoe/v8-coverage@^0.2.3":
@@ -1317,14 +1291,6 @@
resolved "https://registry.npm.taobao.org/@bcoe/v8-coverage/download/@bcoe/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
integrity sha1-daLotRy3WKdVPWgEpZMteqznXDk=
-"@cnakazawa/watch@^1.0.3":
- version "1.0.4"
- resolved "https://registry.npm.taobao.org/@cnakazawa/watch/download/@cnakazawa/watch-1.0.4.tgz#f864ae85004d0fcab6f50be9141c4da368d1656a"
- integrity sha1-+GSuhQBND8q29QvpFBxNo2jRZWo=
- dependencies:
- exec-sh "^0.3.2"
- minimist "^1.2.0"
-
"@docsearch/css@3.0.0-alpha.33":
version "3.0.0-alpha.33"
resolved "https://registry.npm.taobao.org/@docsearch/css/download/@docsearch/css-3.0.0-alpha.33.tgz#36c8d61ec001d678b501adf49117413dd9c41fa3"
@@ -1348,10 +1314,10 @@
"@docsearch/css" "3.0.0-alpha.33"
algoliasearch "^4.0.0"
-"@eslint/eslintrc@^0.4.2":
- version "0.4.2"
- resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.4.2.tgz#f63d0ef06f5c0c57d76c4ab5f63d3835c51b0179"
- integrity sha512-8nmGq/4ycLpIwzvhI4tNDmQztZ8sp+hI7cyG8i1nQDhkAbRzHpXPidRAHlNvCZQpJTKw5ItIpMw9RSToGF00mg==
+"@eslint/eslintrc@^0.4.3":
+ version "0.4.3"
+ resolved "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.3.tgz#9e42981ef035beb3dd49add17acb96e8ff6f394c"
+ integrity sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw==
dependencies:
ajv "^6.12.4"
debug "^4.1.1"
@@ -1363,6 +1329,20 @@
minimatch "^3.0.4"
strip-json-comments "^3.1.1"
+"@humanwhocodes/config-array@^0.5.0":
+ version "0.5.0"
+ resolved "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.5.0.tgz#1407967d4c6eecd7388f83acf1eaf4d0c6e58ef9"
+ integrity sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg==
+ dependencies:
+ "@humanwhocodes/object-schema" "^1.2.0"
+ debug "^4.1.1"
+ minimatch "^3.0.4"
+
+"@humanwhocodes/object-schema@^1.2.0":
+ version "1.2.0"
+ resolved "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.0.tgz#87de7af9c231826fdd68ac7258f77c429e0e5fcf"
+ integrity sha512-wdppn25U8z/2yiaT6YGquE6X8sSv7hNMWSXYSSU1jGv/yd6XqjXgTDJ8KP4NgjTXfJ3GbRjeeb8RTV7a/VpM+w==
+
"@iarna/toml@2.2.5":
version "2.2.5"
resolved "https://registry.npm.taobao.org/@iarna/toml/download/@iarna/toml-2.2.5.tgz#b32366c89b43c6f8cefbdefac778b9c828e3ba8c"
@@ -1384,93 +1364,94 @@
resolved "https://registry.npm.taobao.org/@istanbuljs/schema/download/@istanbuljs/schema-0.1.3.tgz?cache=0&sync_timestamp=1613227144228&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40istanbuljs%2Fschema%2Fdownload%2F%40istanbuljs%2Fschema-0.1.3.tgz#e45e384e4b8ec16bce2fd903af78450f6bf7ec98"
integrity sha1-5F44TkuOwWvOL9kDr3hFD2v37Jg=
-"@jest/console@^26.6.2":
- version "26.6.2"
- resolved "https://registry.npm.taobao.org/@jest/console/download/@jest/console-26.6.2.tgz?cache=0&sync_timestamp=1617371406720&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40jest%2Fconsole%2Fdownload%2F%40jest%2Fconsole-26.6.2.tgz#4e04bc464014358b03ab4937805ee36a0aeb98f2"
- integrity sha1-TgS8RkAUNYsDq0k3gF7jagrrmPI=
+"@jest/console@^27.2.0":
+ version "27.2.0"
+ resolved "https://registry.npmjs.org/@jest/console/-/console-27.2.0.tgz#57f702837ec52899be58c3794dce5941c77a8b63"
+ integrity sha512-35z+RqsK2CCgNxn+lWyK8X4KkaDtfL4BggT7oeZ0JffIiAiEYFYPo5B67V50ZubqDS1ehBrdCR2jduFnIrZOYw==
dependencies:
- "@jest/types" "^26.6.2"
+ "@jest/types" "^27.1.1"
"@types/node" "*"
chalk "^4.0.0"
- jest-message-util "^26.6.2"
- jest-util "^26.6.2"
+ jest-message-util "^27.2.0"
+ jest-util "^27.2.0"
slash "^3.0.0"
-"@jest/core@^26.6.3":
- version "26.6.3"
- resolved "https://registry.npm.taobao.org/@jest/core/download/@jest/core-26.6.3.tgz?cache=0&sync_timestamp=1617371409163&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40jest%2Fcore%2Fdownload%2F%40jest%2Fcore-26.6.3.tgz#7639fcb3833d748a4656ada54bde193051e45fad"
- integrity sha1-djn8s4M9dIpGVq2lS94ZMFHkX60=
+"@jest/core@^27.2.1":
+ version "27.2.1"
+ resolved "https://registry.npmjs.org/@jest/core/-/core-27.2.1.tgz#93dc50e2aaba2c944e5765cf658dcd98d804c970"
+ integrity sha512-XcGt9UgPyzylThvezwUIMCNVp8xxN78Ic3WwhJZehZt4n2hPHR6Bd85A1nKFZBeqW58Vd+Cx/LaN6YL4n58KlA==
dependencies:
- "@jest/console" "^26.6.2"
- "@jest/reporters" "^26.6.2"
- "@jest/test-result" "^26.6.2"
- "@jest/transform" "^26.6.2"
- "@jest/types" "^26.6.2"
+ "@jest/console" "^27.2.0"
+ "@jest/reporters" "^27.2.1"
+ "@jest/test-result" "^27.2.0"
+ "@jest/transform" "^27.2.1"
+ "@jest/types" "^27.1.1"
"@types/node" "*"
ansi-escapes "^4.2.1"
chalk "^4.0.0"
+ emittery "^0.8.1"
exit "^0.1.2"
graceful-fs "^4.2.4"
- jest-changed-files "^26.6.2"
- jest-config "^26.6.3"
- jest-haste-map "^26.6.2"
- jest-message-util "^26.6.2"
- jest-regex-util "^26.0.0"
- jest-resolve "^26.6.2"
- jest-resolve-dependencies "^26.6.3"
- jest-runner "^26.6.3"
- jest-runtime "^26.6.3"
- jest-snapshot "^26.6.2"
- jest-util "^26.6.2"
- jest-validate "^26.6.2"
- jest-watcher "^26.6.2"
- micromatch "^4.0.2"
+ jest-changed-files "^27.1.1"
+ jest-config "^27.2.1"
+ jest-haste-map "^27.2.0"
+ jest-message-util "^27.2.0"
+ jest-regex-util "^27.0.6"
+ jest-resolve "^27.2.0"
+ jest-resolve-dependencies "^27.2.1"
+ jest-runner "^27.2.1"
+ jest-runtime "^27.2.1"
+ jest-snapshot "^27.2.1"
+ jest-util "^27.2.0"
+ jest-validate "^27.2.0"
+ jest-watcher "^27.2.0"
+ micromatch "^4.0.4"
p-each-series "^2.1.0"
rimraf "^3.0.0"
slash "^3.0.0"
strip-ansi "^6.0.0"
-"@jest/environment@^26.6.2":
- version "26.6.2"
- resolved "https://registry.npm.taobao.org/@jest/environment/download/@jest/environment-26.6.2.tgz?cache=0&sync_timestamp=1617371407061&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40jest%2Fenvironment%2Fdownload%2F%40jest%2Fenvironment-26.6.2.tgz#ba364cc72e221e79cc8f0a99555bf5d7577cf92c"
- integrity sha1-ujZMxy4iHnnMjwqZVVv111d8+Sw=
+"@jest/environment@^27.2.0":
+ version "27.2.0"
+ resolved "https://registry.npmjs.org/@jest/environment/-/environment-27.2.0.tgz#48d1dbfa65f8e4a5a5c6cbeb9c59d1a5c2776f6b"
+ integrity sha512-iPWmQI0wRIYSZX3wKu4FXHK4eIqkfq6n1DCDJS+v3uby7SOXrHvX4eiTBuEdSvtDRMTIH2kjrSkjHf/F9JIYyQ==
dependencies:
- "@jest/fake-timers" "^26.6.2"
- "@jest/types" "^26.6.2"
+ "@jest/fake-timers" "^27.2.0"
+ "@jest/types" "^27.1.1"
"@types/node" "*"
- jest-mock "^26.6.2"
+ jest-mock "^27.1.1"
-"@jest/fake-timers@^26.6.2":
- version "26.6.2"
- resolved "https://registry.npm.taobao.org/@jest/fake-timers/download/@jest/fake-timers-26.6.2.tgz?cache=0&sync_timestamp=1617381031662&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40jest%2Ffake-timers%2Fdownload%2F%40jest%2Ffake-timers-26.6.2.tgz#459c329bcf70cee4af4d7e3f3e67848123535aad"
- integrity sha1-RZwym89wzuSvTX4/PmeEgSNTWq0=
+"@jest/fake-timers@^27.2.0":
+ version "27.2.0"
+ resolved "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-27.2.0.tgz#560841bc21ae7fbeff0cbff8de8f5cf43ad3561d"
+ integrity sha512-gSu3YHvQOoVaTWYGgHFB7IYFtcF2HBzX4l7s47VcjvkUgL4/FBnE20x7TNLa3W6ABERtGd5gStSwsA8bcn+c4w==
dependencies:
- "@jest/types" "^26.6.2"
- "@sinonjs/fake-timers" "^6.0.1"
+ "@jest/types" "^27.1.1"
+ "@sinonjs/fake-timers" "^7.0.2"
"@types/node" "*"
- jest-message-util "^26.6.2"
- jest-mock "^26.6.2"
- jest-util "^26.6.2"
+ jest-message-util "^27.2.0"
+ jest-mock "^27.1.1"
+ jest-util "^27.2.0"
-"@jest/globals@^26.6.2":
- version "26.6.2"
- resolved "https://registry.npm.taobao.org/@jest/globals/download/@jest/globals-26.6.2.tgz?cache=0&sync_timestamp=1617372642389&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40jest%2Fglobals%2Fdownload%2F%40jest%2Fglobals-26.6.2.tgz#5b613b78a1aa2655ae908eba638cc96a20df720a"
- integrity sha1-W2E7eKGqJlWukI66Y4zJaiDfcgo=
+"@jest/globals@^27.2.1":
+ version "27.2.1"
+ resolved "https://registry.npmjs.org/@jest/globals/-/globals-27.2.1.tgz#6842c70b6713fbe2fcaf89eac20d77eeeb0e282c"
+ integrity sha512-4P46Zr4cckSitsWtOMRvgMMn7mOKbBsQdYxHeGSIG3kpI4gNR2vk51balPulZHnBQCQb/XBptprtoSv1REfaew==
dependencies:
- "@jest/environment" "^26.6.2"
- "@jest/types" "^26.6.2"
- expect "^26.6.2"
+ "@jest/environment" "^27.2.0"
+ "@jest/types" "^27.1.1"
+ expect "^27.2.1"
-"@jest/reporters@^26.6.2":
- version "26.6.2"
- resolved "https://registry.npm.taobao.org/@jest/reporters/download/@jest/reporters-26.6.2.tgz?cache=0&sync_timestamp=1617372642524&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40jest%2Freporters%2Fdownload%2F%40jest%2Freporters-26.6.2.tgz#1f518b99637a5f18307bd3ecf9275f6882a667f6"
- integrity sha1-H1GLmWN6Xxgwe9Ps+SdfaIKmZ/Y=
+"@jest/reporters@^27.2.1":
+ version "27.2.1"
+ resolved "https://registry.npmjs.org/@jest/reporters/-/reporters-27.2.1.tgz#2e43361b962e26975d40eafd7b4f14c70b4fe9a0"
+ integrity sha512-ILqR+bIIBlhaHjDtQR/0Z20YkKAQVM+NVRuJLaWFCoRx/rKQQSxG01ZLiLV0MsA6wkBHf6J9fzFuXp0k5l7epw==
dependencies:
"@bcoe/v8-coverage" "^0.2.3"
- "@jest/console" "^26.6.2"
- "@jest/test-result" "^26.6.2"
- "@jest/transform" "^26.6.2"
- "@jest/types" "^26.6.2"
+ "@jest/console" "^27.2.0"
+ "@jest/test-result" "^27.2.0"
+ "@jest/transform" "^27.2.1"
+ "@jest/types" "^27.1.1"
chalk "^4.0.0"
collect-v8-coverage "^1.0.0"
exit "^0.1.2"
@@ -1481,78 +1462,75 @@
istanbul-lib-report "^3.0.0"
istanbul-lib-source-maps "^4.0.0"
istanbul-reports "^3.0.2"
- jest-haste-map "^26.6.2"
- jest-resolve "^26.6.2"
- jest-util "^26.6.2"
- jest-worker "^26.6.2"
+ jest-haste-map "^27.2.0"
+ jest-resolve "^27.2.0"
+ jest-util "^27.2.0"
+ jest-worker "^27.2.0"
slash "^3.0.0"
source-map "^0.6.0"
string-length "^4.0.1"
terminal-link "^2.0.0"
- v8-to-istanbul "^7.0.0"
- optionalDependencies:
- node-notifier "^8.0.0"
+ v8-to-istanbul "^8.0.0"
-"@jest/source-map@^26.6.2":
- version "26.6.2"
- resolved "https://registry.npm.taobao.org/@jest/source-map/download/@jest/source-map-26.6.2.tgz#29af5e1e2e324cafccc936f218309f54ab69d535"
- integrity sha1-Ka9eHi4yTK/MyTbyGDCfVKtp1TU=
+"@jest/source-map@^27.0.6":
+ version "27.0.6"
+ resolved "https://registry.npmjs.org/@jest/source-map/-/source-map-27.0.6.tgz#be9e9b93565d49b0548b86e232092491fb60551f"
+ integrity sha512-Fek4mi5KQrqmlY07T23JRi0e7Z9bXTOOD86V/uS0EIW4PClvPDqZOyFlLpNJheS6QI0FNX1CgmPjtJ4EA/2M+g==
dependencies:
callsites "^3.0.0"
graceful-fs "^4.2.4"
source-map "^0.6.0"
-"@jest/test-result@^26.6.2":
- version "26.6.2"
- resolved "https://registry.npm.taobao.org/@jest/test-result/download/@jest/test-result-26.6.2.tgz?cache=0&sync_timestamp=1617371406890&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40jest%2Ftest-result%2Fdownload%2F%40jest%2Ftest-result-26.6.2.tgz#55da58b62df134576cc95476efa5f7949e3f5f18"
- integrity sha1-VdpYti3xNFdsyVR276X3lJ4/Xxg=
+"@jest/test-result@^27.2.0":
+ version "27.2.0"
+ resolved "https://registry.npmjs.org/@jest/test-result/-/test-result-27.2.0.tgz#377b46a41a6415dd4839fd0bed67b89fecea6b20"
+ integrity sha512-JPPqn8h0RGr4HyeY1Km+FivDIjTFzDROU46iAvzVjD42ooGwYoqYO/MQTilhfajdz6jpVnnphFrKZI5OYrBONA==
dependencies:
- "@jest/console" "^26.6.2"
- "@jest/types" "^26.6.2"
+ "@jest/console" "^27.2.0"
+ "@jest/types" "^27.1.1"
"@types/istanbul-lib-coverage" "^2.0.0"
collect-v8-coverage "^1.0.0"
-"@jest/test-sequencer@^26.6.3":
- version "26.6.3"
- resolved "https://registry.npm.taobao.org/@jest/test-sequencer/download/@jest/test-sequencer-26.6.3.tgz?cache=0&sync_timestamp=1617372642899&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40jest%2Ftest-sequencer%2Fdownload%2F%40jest%2Ftest-sequencer-26.6.3.tgz#98e8a45100863886d074205e8ffdc5a7eb582b17"
- integrity sha1-mOikUQCGOIbQdCBej/3Fp+tYKxc=
+"@jest/test-sequencer@^27.2.1":
+ version "27.2.1"
+ resolved "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-27.2.1.tgz#1682cd3a16198fa358ff9565b0d2792919f36562"
+ integrity sha512-fWcEgWQXgvU4DFY5YHfQsGwqfJWyuCUzdOzLZTYtyLB3WK1mFPQGYAszM7mCEZjyVon5XRuCa+2/+hif/uMucQ==
dependencies:
- "@jest/test-result" "^26.6.2"
+ "@jest/test-result" "^27.2.0"
graceful-fs "^4.2.4"
- jest-haste-map "^26.6.2"
- jest-runner "^26.6.3"
- jest-runtime "^26.6.3"
+ jest-haste-map "^27.2.0"
+ jest-runtime "^27.2.1"
-"@jest/transform@^26.6.2":
- version "26.6.2"
- resolved "https://registry.npm.taobao.org/@jest/transform/download/@jest/transform-26.6.2.tgz?cache=0&sync_timestamp=1617372642441&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40jest%2Ftransform%2Fdownload%2F%40jest%2Ftransform-26.6.2.tgz#5ac57c5fa1ad17b2aae83e73e45813894dcf2e4b"
- integrity sha1-WsV8X6GtF7Kq6D5z5FgTiU3PLks=
+"@jest/transform@^27.2.1":
+ version "27.2.1"
+ resolved "https://registry.npmjs.org/@jest/transform/-/transform-27.2.1.tgz#743443adb84b3b7419951fc702515ce20ba6285e"
+ integrity sha512-xmB5vh81KK8DiiCMtI5vI59mP+GggNmc9BiN+fg4mKdQHV369+WuZc1Lq2xWFCOCsRPHt24D9h7Idp4YaMB1Ww==
dependencies:
"@babel/core" "^7.1.0"
- "@jest/types" "^26.6.2"
+ "@jest/types" "^27.1.1"
babel-plugin-istanbul "^6.0.0"
chalk "^4.0.0"
convert-source-map "^1.4.0"
fast-json-stable-stringify "^2.0.0"
graceful-fs "^4.2.4"
- jest-haste-map "^26.6.2"
- jest-regex-util "^26.0.0"
- jest-util "^26.6.2"
- micromatch "^4.0.2"
+ jest-haste-map "^27.2.0"
+ jest-regex-util "^27.0.6"
+ jest-util "^27.2.0"
+ micromatch "^4.0.4"
pirates "^4.0.1"
slash "^3.0.0"
source-map "^0.6.1"
write-file-atomic "^3.0.0"
-"@jest/types@^26.6.2":
- version "26.6.2"
- resolved "https://registry.npm.taobao.org/@jest/types/download/@jest/types-26.6.2.tgz?cache=0&sync_timestamp=1617381007888&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40jest%2Ftypes%2Fdownload%2F%40jest%2Ftypes-26.6.2.tgz#bef5a532030e1d88a2f5a6d933f84e97226ed48e"
- integrity sha1-vvWlMgMOHYii9abZM/hOlyJu1I4=
+"@jest/types@^27.1.1":
+ version "27.1.1"
+ resolved "https://registry.npmjs.org/@jest/types/-/types-27.1.1.tgz#77a3fc014f906c65752d12123a0134359707c0ad"
+ integrity sha512-yqJPDDseb0mXgKqmNqypCsb85C22K1aY5+LUxh7syIM9n/b0AsaltxNy+o6tt29VcfGDpYEve175bm3uOhcehA==
dependencies:
"@types/istanbul-lib-coverage" "^2.0.0"
"@types/istanbul-reports" "^3.0.0"
"@types/node" "*"
- "@types/yargs" "^15.0.0"
+ "@types/yargs" "^16.0.0"
chalk "^4.0.0"
"@jimp/bmp@^0.9.8":
@@ -1920,14 +1898,14 @@
dependencies:
"@octokit/types" "^6.0.3"
-"@octokit/core@^3.2.3":
- version "3.4.0"
- resolved "https://registry.npm.taobao.org/@octokit/core/download/@octokit/core-3.4.0.tgz#b48aa27d755b339fe7550548b340dcc2b513b742"
- integrity sha1-tIqifXVbM5/nVQVIs0DcwrUTt0I=
+"@octokit/core@^3.5.1":
+ version "3.5.1"
+ resolved "https://registry.npmjs.org/@octokit/core/-/core-3.5.1.tgz#8601ceeb1ec0e1b1b8217b960a413ed8e947809b"
+ integrity sha512-omncwpLVxMP+GLpLPgeGJBF6IWJFjXDS5flY5VbppePYX9XehevbDykRH9PdCdvqt9TS5AOTiDide7h0qrkHjw==
dependencies:
"@octokit/auth-token" "^2.4.4"
"@octokit/graphql" "^4.5.8"
- "@octokit/request" "^5.4.12"
+ "@octokit/request" "^5.6.0"
"@octokit/request-error" "^2.0.5"
"@octokit/types" "^6.0.3"
before-after-hook "^2.2.0"
@@ -1951,68 +1929,76 @@
"@octokit/types" "^6.0.3"
universal-user-agent "^6.0.0"
-"@octokit/openapi-types@^7.3.2":
- version "7.3.2"
- resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-7.3.2.tgz#065ce49b338043ec7f741316ce06afd4d459d944"
- integrity sha512-oJhK/yhl9Gt430OrZOzAl2wJqR0No9445vmZ9Ey8GjUZUpwuu/vmEFP0TDhDXdpGDoxD6/EIFHJEcY8nHXpDTA==
+"@octokit/openapi-types@^10.3.0":
+ version "10.3.0"
+ resolved "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-10.3.0.tgz#c168e6904055bf637a43c79331ad280b142c7762"
+ integrity sha512-mThN3aLK9BXPKdVUNxmQLv6nCJMmp7mrfTNvw9NevzvXhM3ObGg6NWsAfCtP6t3fCcpNhkL1fwbbm4pF55DmXg==
-"@octokit/plugin-paginate-rest@^2.6.2":
- version "2.13.3"
- resolved "https://registry.npm.taobao.org/@octokit/plugin-paginate-rest/download/@octokit/plugin-paginate-rest-2.13.3.tgz#f0f1792230805108762d87906fb02d573b9e070a"
- integrity sha1-8PF5IjCAUQh2LYeQb7AtVzueBwo=
+"@octokit/plugin-paginate-rest@^2.16.0":
+ version "2.16.3"
+ resolved "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.16.3.tgz#6dbf74a12a53e04da6ca731d4c93f20c0b5c6fe9"
+ integrity sha512-kdc65UEsqze/9fCISq6BxLzeB9qf0vKvKojIfzgwf4tEF+Wy6c9dXnPFE6vgpoDFB1Z5Jek5WFVU6vL1w22+Iw==
dependencies:
- "@octokit/types" "^6.11.0"
+ "@octokit/types" "^6.28.1"
-"@octokit/plugin-request-log@^1.0.2":
- version "1.0.3"
- resolved "https://registry.npm.taobao.org/@octokit/plugin-request-log/download/@octokit/plugin-request-log-1.0.3.tgz#70a62be213e1edc04bb8897ee48c311482f9700d"
- integrity sha1-cKYr4hPh7cBLuIl+5IwxFIL5cA0=
+"@octokit/plugin-request-log@^1.0.4":
+ version "1.0.4"
+ resolved "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-1.0.4.tgz#5e50ed7083a613816b1e4a28aeec5fb7f1462e85"
+ integrity sha512-mLUsMkgP7K/cnFEw07kWqXGF5LKrOkD+lhCrKvPHXWDywAwuDUeDwWBpc69XK3pNX0uKiVt8g5z96PJ6z9xCFA==
-"@octokit/plugin-rest-endpoint-methods@5.0.1":
- version "5.0.1"
- resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.0.1.tgz#631b8d4edc6798b03489911252a25f2a4e58c594"
- integrity sha512-vvWbPtPqLyIzJ7A4IPdTl+8IeuKAwMJ4LjvmqWOOdfSuqWQYZXq2CEd0hsnkidff2YfKlguzujHs/reBdAx8Sg==
+"@octokit/plugin-rest-endpoint-methods@^5.9.0":
+ version "5.11.0"
+ resolved "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.11.0.tgz#9751741932110ead98c631be9e530a35c175e5fe"
+ integrity sha512-K7kbhfv7ZBMQK7j/3wEA0Sr/aic2OZr6XB2qQvmJzgP0eSPsAHUxEtiYFzHuCBgtQKoygylofhv/6Q+Hw5colw==
dependencies:
- "@octokit/types" "^6.13.1"
+ "@octokit/types" "^6.29.0"
deprecation "^2.3.1"
-"@octokit/request-error@^2.0.0", "@octokit/request-error@^2.0.5":
- version "2.0.5"
- resolved "https://registry.npm.taobao.org/@octokit/request-error/download/@octokit/request-error-2.0.5.tgz#72cc91edc870281ad583a42619256b380c600143"
- integrity sha1-csyR7chwKBrVg6QmGSVrOAxgAUM=
+"@octokit/request-error@^2.0.5", "@octokit/request-error@^2.1.0":
+ version "2.1.0"
+ resolved "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.1.0.tgz#9e150357831bfc788d13a4fd4b1913d60c74d677"
+ integrity sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg==
dependencies:
"@octokit/types" "^6.0.3"
deprecation "^2.0.0"
once "^1.4.0"
-"@octokit/request@^5.3.0", "@octokit/request@^5.4.12":
- version "5.4.15"
- resolved "https://registry.npm.taobao.org/@octokit/request/download/@octokit/request-5.4.15.tgz#829da413dc7dd3aa5e2cdbb1c7d0ebe1f146a128"
- integrity sha1-gp2kE9x906peLNuxx9Dr4fFGoSg=
+"@octokit/request@^5.3.0", "@octokit/request@^5.6.0":
+ version "5.6.1"
+ resolved "https://registry.npmjs.org/@octokit/request/-/request-5.6.1.tgz#f97aff075c37ab1d427c49082fefeef0dba2d8ce"
+ integrity sha512-Ls2cfs1OfXaOKzkcxnqw5MR6drMA/zWX/LIS/p8Yjdz7QKTPQLMsB3R+OvoxE6XnXeXEE2X7xe4G4l4X0gRiKQ==
dependencies:
"@octokit/endpoint" "^6.0.1"
- "@octokit/request-error" "^2.0.0"
- "@octokit/types" "^6.7.1"
+ "@octokit/request-error" "^2.1.0"
+ "@octokit/types" "^6.16.1"
is-plain-object "^5.0.0"
node-fetch "^2.6.1"
universal-user-agent "^6.0.0"
-"@octokit/rest@18.5.3":
- version "18.5.3"
- resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-18.5.3.tgz#6a2e6006a87ebbc34079c419258dd29ec9ff659d"
- integrity sha512-KPAsUCr1DOdLVbZJgGNuE/QVLWEaVBpFQwDAz/2Cnya6uW2wJ/P5RVGk0itx7yyN1aGa8uXm2pri4umEqG1JBA==
+"@octokit/rest@18.10.0":
+ version "18.10.0"
+ resolved "https://registry.npmjs.org/@octokit/rest/-/rest-18.10.0.tgz#8a0add9611253e0e31d3ed5b4bc941a3795a7648"
+ integrity sha512-esHR5OKy38bccL/sajHqZudZCvmv4yjovMJzyXlphaUo7xykmtOdILGJ3aAm0mFHmMLmPFmDMJXf39cAjNJsrw==
dependencies:
- "@octokit/core" "^3.2.3"
- "@octokit/plugin-paginate-rest" "^2.6.2"
- "@octokit/plugin-request-log" "^1.0.2"
- "@octokit/plugin-rest-endpoint-methods" "5.0.1"
+ "@octokit/core" "^3.5.1"
+ "@octokit/plugin-paginate-rest" "^2.16.0"
+ "@octokit/plugin-request-log" "^1.0.4"
+ "@octokit/plugin-rest-endpoint-methods" "^5.9.0"
-"@octokit/types@^6.0.3", "@octokit/types@^6.11.0", "@octokit/types@^6.13.1", "@octokit/types@^6.7.1":
- version "6.16.4"
- resolved "https://registry.yarnpkg.com/@octokit/types/-/types-6.16.4.tgz#d24f5e1bacd2fe96d61854b5bda0e88cf8288dfe"
- integrity sha512-UxhWCdSzloULfUyamfOg4dJxV9B+XjgrIZscI0VCbp4eNrjmorGEw+4qdwcpTsu6DIrm9tQsFQS2pK5QkqQ04A==
+"@octokit/types@^6.0.3", "@octokit/types@^6.16.1", "@octokit/types@^6.28.1", "@octokit/types@^6.29.0":
+ version "6.29.0"
+ resolved "https://registry.npmjs.org/@octokit/types/-/types-6.29.0.tgz#0261a7f0aea05d4b348845f8d763821e5c661072"
+ integrity sha512-+6DczLm2ryGbMmJspCA26gt0OGonhCwVrp9wqku486SCo6/SjbI2ipbJm8TSKWuQ6LJgftRC+Q236v6tVgaa1w==
dependencies:
- "@octokit/openapi-types" "^7.3.2"
+ "@octokit/openapi-types" "^10.3.0"
+
+"@rollup/pluginutils@^4.1.1":
+ version "4.1.1"
+ resolved "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-4.1.1.tgz#1d4da86dd4eded15656a57d933fda2b9a08d47ec"
+ integrity sha512-clDjivHqWGXi7u+0d2r2sBi4Ie6VLEAzWMIkvJLnDmxoOhBYOTfzGbOQBA32THHm11/LiJbd01tJUpJsbshSWQ==
+ dependencies:
+ estree-walker "^2.0.1"
+ picomatch "^2.2.2"
"@sindresorhus/is@^0.14.0":
version "0.14.0"
@@ -2031,10 +2017,10 @@
dependencies:
type-detect "4.0.8"
-"@sinonjs/fake-timers@^6.0.1":
- version "6.0.1"
- resolved "https://registry.npm.taobao.org/@sinonjs/fake-timers/download/@sinonjs/fake-timers-6.0.1.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40sinonjs%2Ffake-timers%2Fdownload%2F%40sinonjs%2Ffake-timers-6.0.1.tgz#293674fccb3262ac782c7aadfdeca86b10c75c40"
- integrity sha1-KTZ0/MsyYqx4LHqt/eyoaxDHXEA=
+"@sinonjs/fake-timers@^7.0.2":
+ version "7.1.2"
+ resolved "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-7.1.2.tgz#2524eae70c4910edccf99b2f4e6efc5894aff7b5"
+ integrity sha512-iQADsW4LBMISqZ6Ci1dupJL9pprqwcVFTcOsEmQOEhW+KLCVn/Y4Jrvg2k19fIHCp+iFprriYPTdRcQR8NbUPg==
dependencies:
"@sinonjs/commons" "^1.7.0"
@@ -2067,15 +2053,20 @@
dependencies:
defer-to-connect "^2.0.0"
-"@types/anymatch@*":
- version "1.3.1"
- resolved "https://registry.npm.taobao.org/@types/anymatch/download/@types/anymatch-1.3.1.tgz#336badc1beecb9dacc38bea2cf32adf627a8421a"
- integrity sha1-M2utwb7sudrMOL6izzKt9ieoQho=
+"@tootallnate/once@1":
+ version "1.1.2"
+ resolved "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82"
+ integrity sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==
-"@types/babel__core@^7.0.0", "@types/babel__core@^7.1.7":
- version "7.1.14"
- resolved "https://registry.npm.taobao.org/@types/babel__core/download/@types/babel__core-7.1.14.tgz?cache=0&sync_timestamp=1616202313350&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fbabel__core%2Fdownload%2F%40types%2Fbabel__core-7.1.14.tgz#faaeefc4185ec71c389f4501ee5ec84b170cc402"
- integrity sha1-+q7vxBhexxw4n0UB7l7ISxcMxAI=
+"@trysound/sax@0.2.0":
+ version "0.2.0"
+ resolved "https://registry.npmjs.org/@trysound/sax/-/sax-0.2.0.tgz#cccaab758af56761eb7bf37af6f03f326dd798ad"
+ integrity sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==
+
+"@types/babel__core@^7.0.0", "@types/babel__core@^7.1.14":
+ version "7.1.16"
+ resolved "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.1.16.tgz#bc12c74b7d65e82d29876b5d0baf5c625ac58702"
+ integrity sha512-EAEHtisTMM+KaKwfWdC3oyllIqswlznXCIVCt7/oRNrh+DhgT4UEBNC/jlADNjvw7UnfbcdkGQcPVZ1xYiLcrQ==
dependencies:
"@babel/parser" "^7.1.0"
"@babel/types" "^7.0.0"
@@ -2105,14 +2096,6 @@
dependencies:
"@babel/types" "^7.3.0"
-"@types/body-parser@*":
- version "1.19.0"
- resolved "https://registry.npm.taobao.org/@types/body-parser/download/@types/body-parser-1.19.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fbody-parser%2Fdownload%2F%40types%2Fbody-parser-1.19.0.tgz#0685b3c47eb3006ffed117cdd55164b61f80538f"
- integrity sha1-BoWzxH6zAG/+0RfN1VFkth+AU48=
- dependencies:
- "@types/connect" "*"
- "@types/node" "*"
-
"@types/cacheable-request@^6.0.1":
version "6.0.1"
resolved "https://registry.npm.taobao.org/@types/cacheable-request/download/@types/cacheable-request-6.0.1.tgz#5d22f3dded1fd3a84c0bbeb5039a7419c2c91976"
@@ -2123,66 +2106,6 @@
"@types/node" "*"
"@types/responselike" "*"
-"@types/connect-history-api-fallback@*":
- version "1.3.4"
- resolved "https://registry.npm.taobao.org/@types/connect-history-api-fallback/download/@types/connect-history-api-fallback-1.3.4.tgz?cache=0&sync_timestamp=1615910664204&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fconnect-history-api-fallback%2Fdownload%2F%40types%2Fconnect-history-api-fallback-1.3.4.tgz#8c0f0e6e5d8252b699f5a662f51bdf82fd9d8bb8"
- integrity sha1-jA8Obl2CUraZ9aZi9Rvfgv2di7g=
- dependencies:
- "@types/express-serve-static-core" "*"
- "@types/node" "*"
-
-"@types/connect@*":
- version "3.4.34"
- resolved "https://registry.npm.taobao.org/@types/connect/download/@types/connect-3.4.34.tgz#170a40223a6d666006d93ca128af2beb1d9b1901"
- integrity sha1-FwpAIjptZmAG2TyhKK8r6x2bGQE=
- dependencies:
- "@types/node" "*"
-
-"@types/eslint-scope@^3.7.0":
- version "3.7.0"
- resolved "https://registry.npm.taobao.org/@types/eslint-scope/download/@types/eslint-scope-3.7.0.tgz?cache=0&sync_timestamp=1613378360649&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Feslint-scope%2Fdownload%2F%40types%2Feslint-scope-3.7.0.tgz#4792816e31119ebd506902a482caec4951fabd86"
- integrity sha1-R5KBbjERnr1QaQKkgsrsSVH6vYY=
- dependencies:
- "@types/eslint" "*"
- "@types/estree" "*"
-
-"@types/eslint@*":
- version "7.2.9"
- resolved "https://registry.npm.taobao.org/@types/eslint/download/@types/eslint-7.2.9.tgz#5d26eadbb6d04a225967176399a18eff622da982"
- integrity sha1-XSbq27bQSiJZZxdjmaGO/2ItqYI=
- dependencies:
- "@types/estree" "*"
- "@types/json-schema" "*"
-
-"@types/estree@*", "@types/estree@^0.0.48":
- version "0.0.48"
- resolved "https://registry.npmjs.org/@types/estree/-/estree-0.0.48.tgz#18dc8091b285df90db2f25aa7d906cfc394b7f74"
- integrity sha512-LfZwXoGUDo0C3me81HXgkBg5CTQYb6xzEl+fNmbO4JdRiSKQ8A0GD1OBBvKAIsbCUgoyAty7m99GqqMQe784ew==
-
-"@types/estree@^0.0.47":
- version "0.0.47"
- resolved "https://registry.npm.taobao.org/@types/estree/download/@types/estree-0.0.47.tgz?cache=0&sync_timestamp=1616657669679&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Festree%2Fdownload%2F%40types%2Festree-0.0.47.tgz#d7a51db20f0650efec24cd04994f523d93172ed4"
- integrity sha1-16Udsg8GUO/sJM0EmU9SPZMXLtQ=
-
-"@types/express-serve-static-core@*", "@types/express-serve-static-core@^4.17.18":
- version "4.17.19"
- resolved "https://registry.npm.taobao.org/@types/express-serve-static-core/download/@types/express-serve-static-core-4.17.19.tgz?cache=0&sync_timestamp=1615830555880&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fexpress-serve-static-core%2Fdownload%2F%40types%2Fexpress-serve-static-core-4.17.19.tgz#00acfc1632e729acac4f1530e9e16f6dd1508a1d"
- integrity sha1-AKz8FjLnKaysTxUw6eFvbdFQih0=
- dependencies:
- "@types/node" "*"
- "@types/qs" "*"
- "@types/range-parser" "*"
-
-"@types/express@*":
- version "4.17.11"
- resolved "https://registry.npm.taobao.org/@types/express/download/@types/express-4.17.11.tgz#debe3caa6f8e5fcda96b47bd54e2f40c4ee59545"
- integrity sha1-3r48qm+OX82pa0e9VOL0DE7llUU=
- dependencies:
- "@types/body-parser" "*"
- "@types/express-serve-static-core" "^4.17.18"
- "@types/qs" "*"
- "@types/serve-static" "*"
-
"@types/glob@^7.1.1":
version "7.1.3"
resolved "https://registry.npm.taobao.org/@types/glob/download/@types/glob-7.1.3.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fglob%2Fdownload%2F%40types%2Fglob-7.1.3.tgz#e6ba80f36b7daad2c685acd9266382e68985c183"
@@ -2198,23 +2121,11 @@
dependencies:
"@types/node" "*"
-"@types/html-minifier-terser@^5.0.0":
- version "5.1.1"
- resolved "https://registry.npm.taobao.org/@types/html-minifier-terser/download/@types/html-minifier-terser-5.1.1.tgz#3c9ee980f1a10d6021ae6632ca3e79ca2ec4fb50"
- integrity sha1-PJ7pgPGhDWAhrmYyyj55yi7E+1A=
-
"@types/http-cache-semantics@*":
version "4.0.0"
resolved "https://registry.npm.taobao.org/@types/http-cache-semantics/download/@types/http-cache-semantics-4.0.0.tgz?cache=0&sync_timestamp=1613379021587&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fhttp-cache-semantics%2Fdownload%2F%40types%2Fhttp-cache-semantics-4.0.0.tgz#9140779736aa2655635ee756e2467d787cfe8a2a"
integrity sha1-kUB3lzaqJlVjXudW4kZ9eHz+iio=
-"@types/http-proxy@^1.17.5":
- version "1.17.5"
- resolved "https://registry.npm.taobao.org/@types/http-proxy/download/@types/http-proxy-1.17.5.tgz#c203c5e6e9dc6820d27a40eb1e511c70a220423d"
- integrity sha1-wgPF5uncaCDSekDrHlEccKIgQj0=
- dependencies:
- "@types/node" "*"
-
"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0", "@types/istanbul-lib-coverage@^2.0.1":
version "2.0.3"
resolved "https://registry.npm.taobao.org/@types/istanbul-lib-coverage/download/@types/istanbul-lib-coverage-2.0.3.tgz#4ba8ddb720221f432e443bd5f9117fd22cfd4762"
@@ -2234,10 +2145,13 @@
dependencies:
"@types/istanbul-lib-report" "*"
-"@types/json-schema@*", "@types/json-schema@^7.0.4", "@types/json-schema@^7.0.5", "@types/json-schema@^7.0.6":
- version "7.0.7"
- resolved "https://registry.npm.taobao.org/@types/json-schema/download/@types/json-schema-7.0.7.tgz?cache=0&sync_timestamp=1613379029028&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fjson-schema%2Fdownload%2F%40types%2Fjson-schema-7.0.7.tgz#98a993516c859eb0d5c4c8f098317a9ea68db9ad"
- integrity sha1-mKmTUWyFnrDVxMjwmDF6nqaNua0=
+"@types/jest@^27.0.1":
+ version "27.0.2"
+ resolved "https://registry.npmjs.org/@types/jest/-/jest-27.0.2.tgz#ac383c4d4aaddd29bbf2b916d8d105c304a5fcd7"
+ integrity sha512-4dRxkS/AFX0c5XW6IPMNOydLn2tEhNhJV7DnYK+0bjoJZ+QTmfucBlihX7aoEsh/ocYtkLC73UbnBXBXIxsULA==
+ dependencies:
+ jest-diff "^27.0.0"
+ pretty-format "^27.0.0"
"@types/json-schema@^7.0.7":
version "7.0.9"
@@ -2258,11 +2172,6 @@
dependencies:
"@types/unist" "*"
-"@types/mime@^1":
- version "1.3.2"
- resolved "https://registry.npm.taobao.org/@types/mime/download/@types/mime-1.3.2.tgz?cache=0&sync_timestamp=1613379303907&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fmime%2Fdownload%2F%40types%2Fmime-1.3.2.tgz#93e25bf9ee75fe0fd80b594bc4feb0e862111b5a"
- integrity sha1-k+Jb+e51/g/YC1lLxP6w6GIRG1o=
-
"@types/minimatch@*":
version "3.0.3"
resolved "https://registry.npm.taobao.org/@types/minimatch/download/@types/minimatch-3.0.3.tgz?cache=0&sync_timestamp=1596839422048&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fminimatch%2Fdownload%2F%40types%2Fminimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d"
@@ -2288,25 +2197,10 @@
resolved "https://registry.npm.taobao.org/@types/parse-json/download/@types/parse-json-4.0.0.tgz?cache=0&sync_timestamp=1596839422794&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fparse-json%2Fdownload%2F%40types%2Fparse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0"
integrity sha1-L4u0QUNNFjs1+4/9zNcTiSf/uMA=
-"@types/prettier@^2.0.0":
- version "2.2.3"
- resolved "https://registry.npm.taobao.org/@types/prettier/download/@types/prettier-2.2.3.tgz?cache=0&sync_timestamp=1615835297466&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fprettier%2Fdownload%2F%40types%2Fprettier-2.2.3.tgz#ef65165aea2924c9359205bf748865b8881753c0"
- integrity sha1-72UWWuopJMk1kgW/dIhluIgXU8A=
-
-"@types/q@^1.5.1":
- version "1.5.4"
- resolved "https://registry.npm.taobao.org/@types/q/download/@types/q-1.5.4.tgz?cache=0&sync_timestamp=1596839554980&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fq%2Fdownload%2F%40types%2Fq-1.5.4.tgz#15925414e0ad2cd765bfef58842f7e26a7accb24"
- integrity sha1-FZJUFOCtLNdlv+9YhC9+JqesyyQ=
-
-"@types/qs@*":
- version "6.9.6"
- resolved "https://registry.npm.taobao.org/@types/qs/download/@types/qs-6.9.6.tgz#df9c3c8b31a247ec315e6996566be3171df4b3b1"
- integrity sha1-35w8izGiR+wxXmmWVmvjFx30s7E=
-
-"@types/range-parser@*":
- version "1.2.3"
- resolved "https://registry.npm.taobao.org/@types/range-parser/download/@types/range-parser-1.2.3.tgz?cache=0&sync_timestamp=1613379868458&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Frange-parser%2Fdownload%2F%40types%2Frange-parser-1.2.3.tgz#7ee330ba7caafb98090bece86a5ee44115904c2c"
- integrity sha1-fuMwunyq+5gJC+zoal7kQRWQTCw=
+"@types/prettier@^2.1.5":
+ version "2.3.2"
+ resolved "https://registry.npmjs.org/@types/prettier/-/prettier-2.3.2.tgz#fc8c2825e4ed2142473b4a81064e6e081463d1b3"
+ integrity sha512-eI5Yrz3Qv4KPUa/nSIAi0h+qX0XyewOliug5F2QAtuRg6Kjg6jfmxe1GIwoIRhZspD1A0RP8ANrPwvEXXtRFog==
"@types/responselike@*", "@types/responselike@^1.0.0":
version "1.0.0"
@@ -2315,19 +2209,6 @@
dependencies:
"@types/node" "*"
-"@types/serve-static@*":
- version "1.13.9"
- resolved "https://registry.npm.taobao.org/@types/serve-static/download/@types/serve-static-1.13.9.tgz?cache=0&sync_timestamp=1613384362265&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fserve-static%2Fdownload%2F%40types%2Fserve-static-1.13.9.tgz#aacf28a85a05ee29a11fb7c3ead935ac56f33e4e"
- integrity sha1-qs8oqFoF7imhH7fD6tk1rFbzPk4=
- dependencies:
- "@types/mime" "^1"
- "@types/node" "*"
-
-"@types/source-list-map@*":
- version "0.1.2"
- resolved "https://registry.npm.taobao.org/@types/source-list-map/download/@types/source-list-map-0.1.2.tgz?cache=0&sync_timestamp=1596840828354&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fsource-list-map%2Fdownload%2F%40types%2Fsource-list-map-0.1.2.tgz#0078836063ffaf17412349bba364087e0ac02ec9"
- integrity sha1-AHiDYGP/rxdBI0m7o2QIfgrALsk=
-
"@types/stack-utils@^2.0.0":
version "2.0.0"
resolved "https://registry.npm.taobao.org/@types/stack-utils/download/@types/stack-utils-2.0.0.tgz#7036640b4e21cc2f259ae826ce843d277dad8cff"
@@ -2343,64 +2224,20 @@
resolved "https://registry.npm.taobao.org/@types/strip-json-comments/download/@types/strip-json-comments-0.0.30.tgz#9aa30c04db212a9a0649d6ae6fd50accc40748a1"
integrity sha1-mqMMBNshKpoGSdaub9UKzMQHSKE=
-"@types/tapable@^1":
- version "1.0.7"
- resolved "https://registry.npm.taobao.org/@types/tapable/download/@types/tapable-1.0.7.tgz?cache=0&sync_timestamp=1617127562296&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Ftapable%2Fdownload%2F%40types%2Ftapable-1.0.7.tgz#545158342f949e8fd3bfd813224971ecddc3fac4"
- integrity sha1-VFFYNC+Uno/Tv9gTIklx7N3D+sQ=
-
-"@types/uglify-js@*":
- version "3.11.0"
- resolved "https://registry.npm.taobao.org/@types/uglify-js/download/@types/uglify-js-3.11.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fuglify-js%2Fdownload%2F%40types%2Fuglify-js-3.11.0.tgz#2868d405cc45cd9dc3069179052103032c33afbc"
- integrity sha1-KGjUBcxFzZ3DBpF5BSEDAywzr7w=
- dependencies:
- source-map "^0.6.1"
-
"@types/unist@*", "@types/unist@^2.0.0", "@types/unist@^2.0.2":
version "2.0.3"
resolved "https://registry.npm.taobao.org/@types/unist/download/@types/unist-2.0.3.tgz#9c088679876f374eb5983f150d4787aa6fb32d7e"
integrity sha1-nAiGeYdvN061mD8VDUeHqm+zLX4=
-"@types/webpack-dev-server@^3.11.4":
- version "3.11.4"
- resolved "https://registry.yarnpkg.com/@types/webpack-dev-server/-/webpack-dev-server-3.11.4.tgz#90d47dd660b696d409431ab8c1e9fa3615103a07"
- integrity sha512-DCKORHjqNNVuMIDWFrlljftvc9CL0+09p3l7lBpb8dRqgN5SmvkWCY4MPKxoI6wJgdRqohmoNbptkxqSKAzLRg==
- dependencies:
- "@types/connect-history-api-fallback" "*"
- "@types/express" "*"
- "@types/serve-static" "*"
- "@types/webpack" "^4"
- http-proxy-middleware "^1.0.0"
-
-"@types/webpack-sources@*":
- version "2.0.0"
- resolved "https://registry.npm.taobao.org/@types/webpack-sources/download/@types/webpack-sources-2.0.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fwebpack-sources%2Fdownload%2F%40types%2Fwebpack-sources-2.0.0.tgz#08216ab9be2be2e1499beaebc4d469cec81e82a7"
- integrity sha1-CCFqub4r4uFJm+rrxNRpzsgegqc=
- dependencies:
- "@types/node" "*"
- "@types/source-list-map" "*"
- source-map "^0.7.3"
-
-"@types/webpack@^4":
- version "4.41.27"
- resolved "https://registry.npm.taobao.org/@types/webpack/download/@types/webpack-4.41.27.tgz#f47da488c8037e7f1b2dbf2714fbbacb61ec0ffc"
- integrity sha1-9H2kiMgDfn8bLb8nFPu6y2HsD/w=
- dependencies:
- "@types/anymatch" "*"
- "@types/node" "*"
- "@types/tapable" "^1"
- "@types/uglify-js" "*"
- "@types/webpack-sources" "*"
- source-map "^0.6.0"
-
"@types/yargs-parser@*":
version "20.2.0"
resolved "https://registry.npm.taobao.org/@types/yargs-parser/download/@types/yargs-parser-20.2.0.tgz?cache=0&sync_timestamp=1613384866330&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fyargs-parser%2Fdownload%2F%40types%2Fyargs-parser-20.2.0.tgz#dd3e6699ba3237f0348cd085e4698780204842f9"
integrity sha1-3T5mmboyN/A0jNCF5GmHgCBIQvk=
-"@types/yargs@^15.0.0":
- version "15.0.13"
- resolved "https://registry.npm.taobao.org/@types/yargs/download/@types/yargs-15.0.13.tgz#34f7fec8b389d7f3c1fd08026a5763e072d3c6dc"
- integrity sha1-NPf+yLOJ1/PB/QgCaldj4HLTxtw=
+"@types/yargs@^16.0.0":
+ version "16.0.4"
+ resolved "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz#26aad98dd2c2a38e421086ea9ad42b9e51642977"
+ integrity sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==
dependencies:
"@types/yargs-parser" "*"
@@ -2473,69 +2310,58 @@
"@typescript-eslint/types" "4.29.3"
eslint-visitor-keys "^2.0.0"
-"@vant/cli@^3.11.2":
- version "3.11.3"
- resolved "https://registry.yarnpkg.com/@vant/cli/-/cli-3.11.3.tgz#556b641d13e283af4d157e00039bf558f69a026b"
- integrity sha512-63Dvw0dC0GZIQXlQglEj9TYDJS8uTXCiAlyZaxStww3aJqYIMZHNX52m9vSXq+KeheXLxrVKWQC7N8pMWxsx/g==
+"@vant/cli@^4.0.0-beta.5":
+ version "4.0.0-beta.5"
+ resolved "https://registry.npmjs.org/@vant/cli/-/cli-4.0.0-beta.5.tgz#2fa981bf07ba6b25e8c36bf9ccd2b06c6a37d37c"
+ integrity sha512-RUSi1esG60KejzlrZ2sLQABvxKID8rXIkyDeai7/BZ6R6xU+/u68cyYcfoA6rejyBfZskXPRdaXqm/PBZV8Eag==
dependencies:
- "@babel/core" "^7.14.5"
- "@babel/preset-env" "^7.14.5"
- "@babel/preset-typescript" "^7.14.5"
+ "@babel/core" "^7.15.0"
+ "@babel/preset-env" "^7.15.0"
+ "@babel/preset-typescript" "^7.15.0"
"@docsearch/css" "3.0.0-alpha.33"
"@docsearch/js" "3.0.0-alpha.33"
- "@types/webpack-dev-server" "^3.11.4"
+ "@types/jest" "^27.0.1"
"@vant/eslint-config" "^3.3.2"
- "@vant/markdown-loader" "^4.1.0"
"@vant/markdown-vetur" "^2.2.0"
"@vant/stylelint-config" "^1.4.2"
- "@vant/touch-emulator" "^1.3.0"
+ "@vant/touch-emulator" "^1.3.2"
+ "@vitejs/plugin-vue" "^1.6.0"
+ "@vitejs/plugin-vue-jsx" "^1.1.7"
"@vue/babel-plugin-jsx" "^1.0.6"
"@vue/test-utils" "2.0.0-rc.6"
- address "^1.1.2"
- autoprefixer "^9.0.0"
- babel-jest "^26.6.3"
- babel-loader "^8.2.2"
- babel-plugin-import "^1.13.3"
- chokidar "^3.5.1"
- clean-css "^4.2.3"
- commander "^6.2.1"
+ autoprefixer "^10.3.1"
+ babel-jest "^27.0.6"
+ clean-css "^5.1.5"
+ commander "^8.1.0"
consola "^2.15.3"
conventional-changelog "^3.1.24"
- css-loader "^4.0.0"
- eslint "^7.28.0"
- fast-glob "^3.2.5"
- fork-ts-checker-webpack-plugin "^6.2.10"
- gh-pages "^3.2.0"
+ eslint "^7.32.0"
+ fast-glob "^3.2.7"
+ gh-pages "^3.2.3"
hash-sum "^2.0.0"
- html-webpack-plugin "^5.3.1"
- husky "^6.0.0"
- jest "^26.6.3"
+ highlight.js "^11.2.0"
+ husky "^7.0.1"
+ jest "^27.0.6"
jest-canvas-mock "^2.3.1"
- jest-serializer-html "^7.0.0"
+ jest-serializer-html "^7.1.0"
less "^4.1.1"
- less-loader "^7.2.1"
- lint-staged "^10.5.3"
+ lint-staged "^11.1.2"
lodash "^4.17.21"
+ markdown-it-anchor "^8.3.0"
ora "^5.4.1"
- portfinder "^1.0.28"
- postcss "^7.0.36"
- postcss-load-config "^3.0.1"
- postcss-loader "^4.1.0"
- prettier "2.1.0"
- release-it "^14.8.0"
- sass "^1.34.1"
- sass-loader "^10.1.1"
- style-loader "^2.0.0"
+ postcss "^8.3.6"
+ postcss-load-config "^3.1.0"
+ prettier "^2.3.2"
+ release-it "^14.11.5"
stylelint "^13.13.1"
- ts-jest "^26.5.2"
- typescript "^4.3.2"
- vue-jest "^5.0.0-alpha.8"
- vue-loader "^16.1.2"
+ transliteration "^2.2.0"
+ ts-jest "^27.0.5"
+ typescript "^4.3.5"
+ vite "^2.5.3"
+ vite-plugin-html "^2.1.0"
+ vite-plugin-md "^0.11.0"
vue-router "^4.0.0"
- webpack "^5.38.1"
- webpack-dev-server "^3.11.2"
- webpack-merge "^5.8.0"
- webpackbar "^5.0.0-3"
+ vue3-jest "^27.0.0-alpha.2"
"@vant/eslint-config@^3.3.2":
version "3.3.2"
@@ -2550,22 +2376,10 @@
eslint-plugin-markdown "^2.2.0"
eslint-plugin-vue "^7.15.2"
-"@vant/icons@^1.6.0":
- version "1.7.0"
- resolved "https://registry.yarnpkg.com/@vant/icons/-/icons-1.7.0.tgz#02d427532a8142c35db159da9c364fe6890c3ac9"
- integrity sha512-sqKvtYcSgSd6+AU1nBPaZARn2Nzf8hi0ErLhfXVR6f+Y7R0gojGZVoxuB83yUI6+0LwbitW5IfN3E6qzEsu21Q==
-
-"@vant/markdown-loader@^4.1.0":
- version "4.1.0"
- resolved "https://registry.npm.taobao.org/@vant/markdown-loader/download/@vant/markdown-loader-4.1.0.tgz#d8568d52b33eacb252b165135749e3fba269ae86"
- integrity sha1-2FaNUrM+rLJSsWUTV0nj+6JproY=
- dependencies:
- front-matter "^4.0.2"
- highlight.js "^10.7.1"
- loader-utils "^2.0.0"
- markdown-it "^12.0.4"
- markdown-it-anchor "^7.1.0"
- transliteration "^2.2.0"
+"@vant/icons@^1.7.1":
+ version "1.7.1"
+ resolved "https://registry.npmjs.org/@vant/icons/-/icons-1.7.1.tgz#49ae420302b5581e54e6894891e5a05bc76e9f87"
+ integrity sha512-66LPEq89w4kl258nALZcRNd14eUJC8VajvTJwvZKOaZawz6CUeVZ6ybhedTUhQhRjeA8SyWD7dFt4ALf33Sabw==
"@vant/markdown-vetur@^2.2.0":
version "2.2.0"
@@ -2583,10 +2397,27 @@
stylelint-config-prettier "^8.0.1"
stylelint-config-standard "^20.0.0"
-"@vant/touch-emulator@^1.3.0":
- version "1.3.0"
- resolved "https://registry.yarnpkg.com/@vant/touch-emulator/-/touch-emulator-1.3.0.tgz#f53a7d0c5809b91d51b7fd4c24e762673bf1f679"
- integrity sha512-aiaXRMTglYP2GKVq7nRd+/x2NM3IOH+6vKjEyAeotLbRNVw61oqpPZAC95d8UqKWRN+vIdDQiPkKOJavEFZmKg==
+"@vant/touch-emulator@^1.3.2":
+ version "1.3.2"
+ resolved "https://registry.npmjs.org/@vant/touch-emulator/-/touch-emulator-1.3.2.tgz#9392c3971dd7247c2cf8e5d5aabc951e33cd5e6f"
+ integrity sha512-Om6e8kCAnmk/q8byngKreff7Hyn6XxwOGr8yedP3y3LEVoE+iyj8/+Mn+AYvGEQ00GK0MlgAfyaV4emXAYj1Hw==
+
+"@vitejs/plugin-vue-jsx@^1.1.7":
+ version "1.1.8"
+ resolved "https://registry.npmjs.org/@vitejs/plugin-vue-jsx/-/plugin-vue-jsx-1.1.8.tgz#c7b9efd94efe8801635f755b6fd0d0a3a70cf596"
+ integrity sha512-2ah1PuLf2fFdfJO91VLOPNHlNkhpOEgOY0/yNjJwhGNdWec5f2D4hrGdf4vUFIFcNw6D6SXEUhE4Fva5+TmKLA==
+ dependencies:
+ "@babel/core" "^7.14.8"
+ "@babel/plugin-syntax-import-meta" "^7.10.4"
+ "@babel/plugin-transform-typescript" "^7.14.6"
+ "@rollup/pluginutils" "^4.1.1"
+ "@vue/babel-plugin-jsx" "^1.0.6"
+ hash-sum "^2.0.0"
+
+"@vitejs/plugin-vue@^1.6.0":
+ version "1.9.0"
+ resolved "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-1.9.0.tgz#ae458a2eaac1d06efac8d71a4427d5d742466d72"
+ integrity sha512-TQB87f8baZsTZO/g7Az/dTCwV8eDxwkrP8hMl8HpwLJz/NKvmXtBqa7bYg8GKWNwqjy+pBRLdgiML+BI3HphOw==
"@vue/babel-helper-vue-transform-on@^1.0.2":
version "1.0.2"
@@ -2619,6 +2450,16 @@
estree-walker "^2.0.1"
source-map "^0.6.1"
+"@vue/compiler-core@3.2.13":
+ version "3.2.13"
+ resolved "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.2.13.tgz#901268088b98a53c43be0f02bfa0e3a389ad6bf4"
+ integrity sha512-H8MUuKVCfAT6C0vth/+1LAriKnM+RTFo/5MoFycwRPwworTvkpWq/EuGoIXdLBblo8Y2/bNsOmIBEEoOtrb/bQ==
+ dependencies:
+ "@babel/parser" "^7.15.0"
+ "@vue/shared" "3.2.13"
+ estree-walker "^2.0.2"
+ source-map "^0.6.1"
+
"@vue/compiler-dom@3.2.1":
version "3.2.1"
resolved "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.2.1.tgz#5cc68873f1928c7b9aee8c8a2846f7f362cb1ab9"
@@ -2627,36 +2468,37 @@
"@vue/compiler-core" "3.2.1"
"@vue/shared" "3.2.1"
-"@vue/compiler-sfc@^3.2.1":
- version "3.2.1"
- resolved "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.2.1.tgz#7809b298cf0fbce62a2c628b7dfc1e82dd9a3a9b"
- integrity sha512-fVLdme5RZVkBt+jxv2LCSRM72o4FX7BR2eu2FpjjEi1kEtUMKBDnjKwGWy7TyhTju0t0CocctyoM+G56vH7NpQ==
+"@vue/compiler-dom@3.2.13":
+ version "3.2.13"
+ resolved "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.2.13.tgz#028982494fb9d97807d5275b42355732686f8ed7"
+ integrity sha512-5+2dYgQyNzM97EEgbdAusUpLjulcKkvLM26jOGpd14+qwEcW/KCnns5DGjlZD/tsdEwToOoTDCm+mjx7cO/G1Q==
dependencies:
- "@babel/parser" "^7.13.9"
- "@babel/types" "^7.13.0"
- "@types/estree" "^0.0.48"
- "@vue/compiler-core" "3.2.1"
- "@vue/compiler-dom" "3.2.1"
- "@vue/compiler-ssr" "3.2.1"
- "@vue/shared" "3.2.1"
- consolidate "^0.16.0"
- estree-walker "^2.0.1"
- hash-sum "^2.0.0"
- lru-cache "^5.1.1"
+ "@vue/compiler-core" "3.2.13"
+ "@vue/shared" "3.2.13"
+
+"@vue/compiler-sfc@^3.2.13":
+ version "3.2.13"
+ resolved "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.2.13.tgz#a38475048aad9c96cf04dfe635129b417e0f9295"
+ integrity sha512-3j970d969aOILykcTstdihP33xH1Onm0wsvcl+rGv9AGxivB9xicRxBw93HCIA4dAPivr42WjHEoci9q2/85uw==
+ dependencies:
+ "@babel/parser" "^7.15.0"
+ "@vue/compiler-core" "3.2.13"
+ "@vue/compiler-dom" "3.2.13"
+ "@vue/compiler-ssr" "3.2.13"
+ "@vue/ref-transform" "3.2.13"
+ "@vue/shared" "3.2.13"
+ estree-walker "^2.0.2"
magic-string "^0.25.7"
- merge-source-map "^1.1.0"
postcss "^8.1.10"
- postcss-modules "^4.0.0"
- postcss-selector-parser "^6.0.4"
source-map "^0.6.1"
-"@vue/compiler-ssr@3.2.1":
- version "3.2.1"
- resolved "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.2.1.tgz#f900762f83482e44e9260c2322e3d332c711826c"
- integrity sha512-6YAOtQunuEyYlVSjK1F7a7BXi7rxVfiTiJ0Ro7eq0q0MNCFV9Z+sN68lfa/E4ABVb0ledEY/Rt8kL23nwCoTCQ==
+"@vue/compiler-ssr@3.2.13":
+ version "3.2.13"
+ resolved "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.2.13.tgz#98434672e0b488c2affa4b0570731d6be5cda187"
+ integrity sha512-ZbO6uDhUWTdKBRguYNEZXj2FU3nh1cudoHBiidbxj9q5J0tVT+j1PSVFAXPq6SquUBdJpa4HvGkQ5kQzv6upXg==
dependencies:
- "@vue/compiler-dom" "3.2.1"
- "@vue/shared" "3.2.1"
+ "@vue/compiler-dom" "3.2.13"
+ "@vue/shared" "3.2.13"
"@vue/reactivity@3.0.5":
version "3.0.5"
@@ -2672,6 +2514,17 @@
dependencies:
"@vue/shared" "3.2.1"
+"@vue/ref-transform@3.2.13":
+ version "3.2.13"
+ resolved "https://registry.npmjs.org/@vue/ref-transform/-/ref-transform-3.2.13.tgz#6adfce50d388cc03683d9d2ba58f3a3bde5166f4"
+ integrity sha512-q6GXHZFzXjpx1K3UFRF8fa+xSmD9xV/FjhGzTNnfrryBr8tBUNYgP2f0s5K5N+21Ay7+MlQ1XXMUp8McGvsryQ==
+ dependencies:
+ "@babel/parser" "^7.15.0"
+ "@vue/compiler-core" "3.2.13"
+ "@vue/shared" "3.2.13"
+ estree-walker "^2.0.2"
+ magic-string "^0.25.7"
+
"@vue/runtime-core@3.2.1":
version "3.2.1"
resolved "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.2.1.tgz#39641110b2f84fdda3b80b86830827b7b5ef041a"
@@ -2699,142 +2552,16 @@
resolved "https://registry.npmjs.org/@vue/shared/-/shared-3.2.1.tgz#1f1fe26fe0334404cce10740b5ffb2654f1281aa"
integrity sha512-INN92dVBNgd0TW9BqfQQKx/HWGCHhUUbAV5EZ5FgSCiEdwuZsJbGt1mdnaD9IxGhpiyOjP2ClxGG8SFp7ELcWg==
+"@vue/shared@3.2.13":
+ version "3.2.13"
+ resolved "https://registry.npmjs.org/@vue/shared/-/shared-3.2.13.tgz#c830ef966d7af12598e0ea862a55695ea589cd47"
+ integrity sha512-F/gs3kHQ8Xeo24F6EImOvBiIoYQsBjF9qoLzvk+LHxYN6ZhIDEL1NWrBFYzdFQ7NphjEYd4EvPZ+Qee+WX8P6w==
+
"@vue/test-utils@2.0.0-rc.6":
version "2.0.0-rc.6"
resolved "https://registry.yarnpkg.com/@vue/test-utils/-/test-utils-2.0.0-rc.6.tgz#d0aac24d20450d379e183f70542c0822670b8783"
integrity sha512-0cnQBVH589PwgqWpyv1fgCAz+9Ram/MsvN3ZEAEVXi1aPuhUa22EudGc0WezQ9PKwR+L40NrBmt3JBXE2tSRRQ==
-"@webassemblyjs/ast@1.11.0":
- version "1.11.0"
- resolved "https://registry.npm.taobao.org/@webassemblyjs/ast/download/@webassemblyjs/ast-1.11.0.tgz?cache=0&sync_timestamp=1610041386122&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40webassemblyjs%2Fast%2Fdownload%2F%40webassemblyjs%2Fast-1.11.0.tgz#a5aa679efdc9e51707a4207139da57920555961f"
- integrity sha1-papnnv3J5RcHpCBxOdpXkgVVlh8=
- dependencies:
- "@webassemblyjs/helper-numbers" "1.11.0"
- "@webassemblyjs/helper-wasm-bytecode" "1.11.0"
-
-"@webassemblyjs/floating-point-hex-parser@1.11.0":
- version "1.11.0"
- resolved "https://registry.npm.taobao.org/@webassemblyjs/floating-point-hex-parser/download/@webassemblyjs/floating-point-hex-parser-1.11.0.tgz?cache=0&sync_timestamp=1610041384204&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40webassemblyjs%2Ffloating-point-hex-parser%2Fdownload%2F%40webassemblyjs%2Ffloating-point-hex-parser-1.11.0.tgz#34d62052f453cd43101d72eab4966a022587947c"
- integrity sha1-NNYgUvRTzUMQHXLqtJZqAiWHlHw=
-
-"@webassemblyjs/helper-api-error@1.11.0":
- version "1.11.0"
- resolved "https://registry.npm.taobao.org/@webassemblyjs/helper-api-error/download/@webassemblyjs/helper-api-error-1.11.0.tgz?cache=0&sync_timestamp=1610041385672&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40webassemblyjs%2Fhelper-api-error%2Fdownload%2F%40webassemblyjs%2Fhelper-api-error-1.11.0.tgz#aaea8fb3b923f4aaa9b512ff541b013ffb68d2d4"
- integrity sha1-quqPs7kj9KqptRL/VBsBP/to0tQ=
-
-"@webassemblyjs/helper-buffer@1.11.0":
- version "1.11.0"
- resolved "https://registry.npm.taobao.org/@webassemblyjs/helper-buffer/download/@webassemblyjs/helper-buffer-1.11.0.tgz?cache=0&sync_timestamp=1610041385156&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40webassemblyjs%2Fhelper-buffer%2Fdownload%2F%40webassemblyjs%2Fhelper-buffer-1.11.0.tgz#d026c25d175e388a7dbda9694e91e743cbe9b642"
- integrity sha1-0CbCXRdeOIp9valpTpHnQ8vptkI=
-
-"@webassemblyjs/helper-numbers@1.11.0":
- version "1.11.0"
- resolved "https://registry.npm.taobao.org/@webassemblyjs/helper-numbers/download/@webassemblyjs/helper-numbers-1.11.0.tgz#7ab04172d54e312cc6ea4286d7d9fa27c88cd4f9"
- integrity sha1-erBBctVOMSzG6kKG19n6J8iM1Pk=
- dependencies:
- "@webassemblyjs/floating-point-hex-parser" "1.11.0"
- "@webassemblyjs/helper-api-error" "1.11.0"
- "@xtuc/long" "4.2.2"
-
-"@webassemblyjs/helper-wasm-bytecode@1.11.0":
- version "1.11.0"
- resolved "https://registry.npm.taobao.org/@webassemblyjs/helper-wasm-bytecode/download/@webassemblyjs/helper-wasm-bytecode-1.11.0.tgz?cache=0&sync_timestamp=1610041385277&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40webassemblyjs%2Fhelper-wasm-bytecode%2Fdownload%2F%40webassemblyjs%2Fhelper-wasm-bytecode-1.11.0.tgz#85fdcda4129902fe86f81abf7e7236953ec5a4e1"
- integrity sha1-hf3NpBKZAv6G+Bq/fnI2lT7FpOE=
-
-"@webassemblyjs/helper-wasm-section@1.11.0":
- version "1.11.0"
- resolved "https://registry.npm.taobao.org/@webassemblyjs/helper-wasm-section/download/@webassemblyjs/helper-wasm-section-1.11.0.tgz?cache=0&sync_timestamp=1610041387398&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40webassemblyjs%2Fhelper-wasm-section%2Fdownload%2F%40webassemblyjs%2Fhelper-wasm-section-1.11.0.tgz#9ce2cc89300262509c801b4af113d1ca25c1a75b"
- integrity sha1-nOLMiTACYlCcgBtK8RPRyiXBp1s=
- dependencies:
- "@webassemblyjs/ast" "1.11.0"
- "@webassemblyjs/helper-buffer" "1.11.0"
- "@webassemblyjs/helper-wasm-bytecode" "1.11.0"
- "@webassemblyjs/wasm-gen" "1.11.0"
-
-"@webassemblyjs/ieee754@1.11.0":
- version "1.11.0"
- resolved "https://registry.npm.taobao.org/@webassemblyjs/ieee754/download/@webassemblyjs/ieee754-1.11.0.tgz?cache=0&sync_timestamp=1610041385781&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40webassemblyjs%2Fieee754%2Fdownload%2F%40webassemblyjs%2Fieee754-1.11.0.tgz#46975d583f9828f5d094ac210e219441c4e6f5cf"
- integrity sha1-RpddWD+YKPXQlKwhDiGUQcTm9c8=
- dependencies:
- "@xtuc/ieee754" "^1.2.0"
-
-"@webassemblyjs/leb128@1.11.0":
- version "1.11.0"
- resolved "https://registry.npm.taobao.org/@webassemblyjs/leb128/download/@webassemblyjs/leb128-1.11.0.tgz?cache=0&sync_timestamp=1610041385570&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40webassemblyjs%2Fleb128%2Fdownload%2F%40webassemblyjs%2Fleb128-1.11.0.tgz#f7353de1df38aa201cba9fb88b43f41f75ff403b"
- integrity sha1-9zU94d84qiAcup+4i0P0H3X/QDs=
- dependencies:
- "@xtuc/long" "4.2.2"
-
-"@webassemblyjs/utf8@1.11.0":
- version "1.11.0"
- resolved "https://registry.npm.taobao.org/@webassemblyjs/utf8/download/@webassemblyjs/utf8-1.11.0.tgz?cache=0&sync_timestamp=1610045498791&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40webassemblyjs%2Futf8%2Fdownload%2F%40webassemblyjs%2Futf8-1.11.0.tgz#86e48f959cf49e0e5091f069a709b862f5a2cadf"
- integrity sha1-huSPlZz0ng5QkfBppwm4YvWiyt8=
-
-"@webassemblyjs/wasm-edit@1.11.0":
- version "1.11.0"
- resolved "https://registry.npm.taobao.org/@webassemblyjs/wasm-edit/download/@webassemblyjs/wasm-edit-1.11.0.tgz?cache=0&sync_timestamp=1610041387713&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40webassemblyjs%2Fwasm-edit%2Fdownload%2F%40webassemblyjs%2Fwasm-edit-1.11.0.tgz#ee4a5c9f677046a210542ae63897094c2027cb78"
- integrity sha1-7kpcn2dwRqIQVCrmOJcJTCAny3g=
- dependencies:
- "@webassemblyjs/ast" "1.11.0"
- "@webassemblyjs/helper-buffer" "1.11.0"
- "@webassemblyjs/helper-wasm-bytecode" "1.11.0"
- "@webassemblyjs/helper-wasm-section" "1.11.0"
- "@webassemblyjs/wasm-gen" "1.11.0"
- "@webassemblyjs/wasm-opt" "1.11.0"
- "@webassemblyjs/wasm-parser" "1.11.0"
- "@webassemblyjs/wast-printer" "1.11.0"
-
-"@webassemblyjs/wasm-gen@1.11.0":
- version "1.11.0"
- resolved "https://registry.npm.taobao.org/@webassemblyjs/wasm-gen/download/@webassemblyjs/wasm-gen-1.11.0.tgz?cache=0&sync_timestamp=1610041387011&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40webassemblyjs%2Fwasm-gen%2Fdownload%2F%40webassemblyjs%2Fwasm-gen-1.11.0.tgz#3cdb35e70082d42a35166988dda64f24ceb97abe"
- integrity sha1-PNs15wCC1Co1FmmI3aZPJM65er4=
- dependencies:
- "@webassemblyjs/ast" "1.11.0"
- "@webassemblyjs/helper-wasm-bytecode" "1.11.0"
- "@webassemblyjs/ieee754" "1.11.0"
- "@webassemblyjs/leb128" "1.11.0"
- "@webassemblyjs/utf8" "1.11.0"
-
-"@webassemblyjs/wasm-opt@1.11.0":
- version "1.11.0"
- resolved "https://registry.npm.taobao.org/@webassemblyjs/wasm-opt/download/@webassemblyjs/wasm-opt-1.11.0.tgz?cache=0&sync_timestamp=1610041387249&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40webassemblyjs%2Fwasm-opt%2Fdownload%2F%40webassemblyjs%2Fwasm-opt-1.11.0.tgz#1638ae188137f4bb031f568a413cd24d32f92978"
- integrity sha1-FjiuGIE39LsDH1aKQTzSTTL5KXg=
- dependencies:
- "@webassemblyjs/ast" "1.11.0"
- "@webassemblyjs/helper-buffer" "1.11.0"
- "@webassemblyjs/wasm-gen" "1.11.0"
- "@webassemblyjs/wasm-parser" "1.11.0"
-
-"@webassemblyjs/wasm-parser@1.11.0":
- version "1.11.0"
- resolved "https://registry.npm.taobao.org/@webassemblyjs/wasm-parser/download/@webassemblyjs/wasm-parser-1.11.0.tgz?cache=0&sync_timestamp=1610045501288&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40webassemblyjs%2Fwasm-parser%2Fdownload%2F%40webassemblyjs%2Fwasm-parser-1.11.0.tgz#3e680b8830d5b13d1ec86cc42f38f3d4a7700754"
- integrity sha1-PmgLiDDVsT0eyGzELzjz1KdwB1Q=
- dependencies:
- "@webassemblyjs/ast" "1.11.0"
- "@webassemblyjs/helper-api-error" "1.11.0"
- "@webassemblyjs/helper-wasm-bytecode" "1.11.0"
- "@webassemblyjs/ieee754" "1.11.0"
- "@webassemblyjs/leb128" "1.11.0"
- "@webassemblyjs/utf8" "1.11.0"
-
-"@webassemblyjs/wast-printer@1.11.0":
- version "1.11.0"
- resolved "https://registry.npm.taobao.org/@webassemblyjs/wast-printer/download/@webassemblyjs/wast-printer-1.11.0.tgz?cache=0&sync_timestamp=1610041386456&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40webassemblyjs%2Fwast-printer%2Fdownload%2F%40webassemblyjs%2Fwast-printer-1.11.0.tgz#680d1f6a5365d6d401974a8e949e05474e1fab7e"
- integrity sha1-aA0falNl1tQBl0qOlJ4FR04fq34=
- dependencies:
- "@webassemblyjs/ast" "1.11.0"
- "@xtuc/long" "4.2.2"
-
-"@xtuc/ieee754@^1.2.0":
- version "1.2.0"
- resolved "https://registry.npm.taobao.org/@xtuc/ieee754/download/@xtuc/ieee754-1.2.0.tgz#eef014a3145ae477a1cbc00cd1e552336dceb790"
- integrity sha1-7vAUoxRa5Hehy8AM0eVSM23Ot5A=
-
-"@xtuc/long@4.2.2":
- version "4.2.2"
- resolved "https://registry.npm.taobao.org/@xtuc/long/download/@xtuc/long-4.2.2.tgz#d291c6a4e97989b5c61d9acf396ae4fe133a718d"
- integrity sha1-0pHGpOl5ibXGHZrPOWrk/hM6cY0=
-
JSONStream@^1.0.4:
version "1.3.5"
resolved "https://registry.npm.taobao.org/JSONStream/download/JSONStream-1.3.5.tgz#3208c1f08d3a4d99261ab64f92302bc15e111ca0"
@@ -2848,14 +2575,6 @@ abab@^2.0.3, abab@^2.0.5:
resolved "https://registry.npm.taobao.org/abab/download/abab-2.0.5.tgz?cache=0&sync_timestamp=1599850271460&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fabab%2Fdownload%2Fabab-2.0.5.tgz#c0b678fb32d60fc1219c784d6a826fe385aeb79a"
integrity sha1-wLZ4+zLWD8EhnHhNaoJv44Wut5o=
-accepts@~1.3.4, accepts@~1.3.5, accepts@~1.3.7:
- version "1.3.7"
- resolved "https://registry.npm.taobao.org/accepts/download/accepts-1.3.7.tgz#531bc726517a3b2b41f850021c6cc15eaab507cd"
- integrity sha1-UxvHJlF6OytB+FACHGzBXqq1B80=
- dependencies:
- mime-types "~2.1.24"
- negotiator "0.6.2"
-
acorn-globals@^6.0.0:
version "6.0.0"
resolved "https://registry.npm.taobao.org/acorn-globals/download/acorn-globals-6.0.0.tgz#46cdd39f0f8ff08a876619b55f5ac8a6dc770b45"
@@ -2884,20 +2603,22 @@ acorn@^7.1.1, acorn@^7.4.0:
resolved "https://registry.npm.taobao.org/acorn/download/acorn-7.4.1.tgz?cache=0&sync_timestamp=1615305874483&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Facorn%2Fdownload%2Facorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa"
integrity sha1-/q7SVZc9LndVW4PbwIhRpsY1IPo=
-acorn@^8.1.0, acorn@^8.2.1:
- version "8.4.0"
- resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.4.0.tgz#af53266e698d7cffa416714b503066a82221be60"
- integrity sha512-ULr0LDaEqQrMFGyQ3bhJkLsbtrQ8QibAseGZeaSUiT/6zb9IvIkomWHJIvgvwad+hinRAgsI51JcWk2yvwyL+w==
+acorn@^8.2.4:
+ version "8.5.0"
+ resolved "https://registry.npmjs.org/acorn/-/acorn-8.5.0.tgz#4512ccb99b3698c752591e9bb4472e38ad43cee2"
+ integrity sha512-yXbYeFy+jUuYd3/CDcg2NkIYE991XYX/bje7LmjJigUciaeO1JR4XxXgCIV1/Zc/dRuFEyw1L0pbA+qynJkW5Q==
add-stream@^1.0.0:
version "1.0.0"
resolved "https://registry.npm.taobao.org/add-stream/download/add-stream-1.0.0.tgz#6a7990437ca736d5e1288db92bd3266d5f5cb2aa"
integrity sha1-anmQQ3ynNtXhKI25K9MmbV9csqo=
-address@^1.1.2:
- version "1.1.2"
- resolved "https://registry.npm.taobao.org/address/download/address-1.1.2.tgz?cache=0&sync_timestamp=1593529661616&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Faddress%2Fdownload%2Faddress-1.1.2.tgz#bf1116c9c758c51b7a933d296b72c221ed9428b6"
- integrity sha1-vxEWycdYxRt6kz0pa3LCIe2UKLY=
+agent-base@6:
+ version "6.0.2"
+ resolved "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz#49fff58577cfee3f37176feab4c22e00f86d7f77"
+ integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==
+ dependencies:
+ debug "4"
aggregate-error@^3.0.0:
version "3.1.0"
@@ -2907,11 +2628,6 @@ aggregate-error@^3.0.0:
clean-stack "^2.0.0"
indent-string "^4.0.0"
-ajv-errors@^1.0.0:
- version "1.0.1"
- resolved "https://registry.npm.taobao.org/ajv-errors/download/ajv-errors-1.0.1.tgz#f35986aceb91afadec4102fbd85014950cefa64d"
- integrity sha1-81mGrOuRr63sQQL72FAUlQzvpk0=
-
ajv-formats@^1.5.1:
version "1.6.1"
resolved "https://registry.yarnpkg.com/ajv-formats/-/ajv-formats-1.6.1.tgz#35c7cdcd2a12d509171c37bac32f2e8eb010a536"
@@ -2919,12 +2635,7 @@ ajv-formats@^1.5.1:
dependencies:
ajv "^7.0.0"
-ajv-keywords@^3.1.0, ajv-keywords@^3.4.1, ajv-keywords@^3.5.2:
- version "3.5.2"
- resolved "https://registry.npm.taobao.org/ajv-keywords/download/ajv-keywords-3.5.2.tgz#31f29da5ab6e00d1c2d329acf7b5929614d5014d"
- integrity sha1-MfKdpatuANHC0yms97WSlhTVAU0=
-
-ajv@^6.1.0, ajv@^6.10.0, ajv@^6.12.2, ajv@^6.12.3, ajv@^6.12.4, ajv@^6.12.5:
+ajv@^6.10.0, ajv@^6.12.3, ajv@^6.12.4:
version "6.12.6"
resolved "https://registry.npm.taobao.org/ajv/download/ajv-6.12.6.tgz?cache=0&sync_timestamp=1602353833152&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fajv%2Fdownload%2Fajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4"
integrity sha1-uvWmLoArB9l3A0WG+MO69a3ybfQ=
@@ -2974,9 +2685,9 @@ algoliasearch@^4.0.0:
"@algolia/requester-node-http" "4.8.6"
"@algolia/transporter" "4.8.6"
-alphanum-sort@^1.0.0:
+alphanum-sort@^1.0.2:
version "1.0.2"
- resolved "https://registry.npm.taobao.org/alphanum-sort/download/alphanum-sort-1.0.2.tgz#97a1119649b211ad33691d9f9f486a8ec9fbe0a3"
+ resolved "https://registry.npmjs.org/alphanum-sort/-/alphanum-sort-1.0.2.tgz#97a1119649b211ad33691d9f9f486a8ec9fbe0a3"
integrity sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM=
ansi-align@^3.0.0:
@@ -2993,17 +2704,12 @@ ansi-colors@^1.0.1:
dependencies:
ansi-wrap "^0.1.0"
-ansi-colors@^3.0.0:
- version "3.2.4"
- resolved "https://registry.npm.taobao.org/ansi-colors/download/ansi-colors-3.2.4.tgz#e3a3da4bfbae6c86a9c285625de124a234026fbf"
- integrity sha1-46PaS/uubIapwoViXeEkojQCb78=
-
ansi-colors@^4.1.1:
version "4.1.1"
resolved "https://registry.npm.taobao.org/ansi-colors/download/ansi-colors-4.1.1.tgz#cbb9ae256bf750af1eab344f229aa27fe94ba348"
integrity sha1-y7muJWv3UK8eqzRPIpqif+lLo0g=
-ansi-escapes@^4.2.1, ansi-escapes@^4.3.0, ansi-escapes@^4.3.1:
+ansi-escapes@^4.2.1, ansi-escapes@^4.3.0:
version "4.3.2"
resolved "https://registry.npm.taobao.org/ansi-escapes/download/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e"
integrity sha1-ayKR0dt9mLZSHV8e+kLQ86n+tl4=
@@ -3017,11 +2723,6 @@ ansi-gray@^0.1.1:
dependencies:
ansi-wrap "0.1.0"
-ansi-html@0.0.7:
- version "0.0.7"
- resolved "https://registry.npm.taobao.org/ansi-html/download/ansi-html-0.0.7.tgz#813584021962a9e9e6fd039f940d12f56ca7859e"
- integrity sha1-gTWEAhliqenm/QOflA0S9WynhZ4=
-
ansi-regex@^2.0.0:
version "2.1.1"
resolved "https://registry.npm.taobao.org/ansi-regex/download/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df"
@@ -3042,7 +2743,7 @@ ansi-styles@^2.2.1:
resolved "https://registry.npm.taobao.org/ansi-styles/download/ansi-styles-2.2.1.tgz?cache=0&sync_timestamp=1601839122515&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-styles%2Fdownload%2Fansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe"
integrity sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=
-ansi-styles@^3.2.0, ansi-styles@^3.2.1:
+ansi-styles@^3.2.1:
version "3.2.1"
resolved "https://registry.npm.taobao.org/ansi-styles/download/ansi-styles-3.2.1.tgz?cache=0&sync_timestamp=1601839122515&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-styles%2Fdownload%2Fansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d"
integrity sha1-QfuyAkPlCxK+DwS43tvwdSDOhB0=
@@ -3056,6 +2757,11 @@ ansi-styles@^4.0.0, ansi-styles@^4.1.0:
dependencies:
color-convert "^2.0.1"
+ansi-styles@^5.0.0:
+ version "5.2.0"
+ resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz#07449690ad45777d1924ac2abb2fc8895dba836b"
+ integrity sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==
+
ansi-wrap@0.1.0, ansi-wrap@^0.1.0:
version "0.1.0"
resolved "https://registry.npm.taobao.org/ansi-wrap/download/ansi-wrap-0.1.0.tgz#a82250ddb0015e9a27ca82e82ea603bbfa45efaf"
@@ -3074,7 +2780,7 @@ anymatch@^2.0.0:
micromatch "^3.1.4"
normalize-path "^2.1.1"
-anymatch@^3.0.3, anymatch@~3.1.1:
+anymatch@^3.0.3, anymatch@~3.1.2:
version "3.1.2"
resolved "https://registry.npm.taobao.org/anymatch/download/anymatch-3.1.2.tgz#c0557c096af32f106198f4f4e2a383537e378716"
integrity sha1-wFV8CWrzLxBhmPT04qODU343hxY=
@@ -3145,16 +2851,6 @@ array-find-index@^1.0.1:
resolved "https://registry.npm.taobao.org/array-find-index/download/array-find-index-1.0.2.tgz#df010aa1287e164bbda6f9723b0a96a1ec4187a1"
integrity sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=
-array-flatten@1.1.1:
- version "1.1.1"
- resolved "https://registry.npm.taobao.org/array-flatten/download/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2"
- integrity sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=
-
-array-flatten@^2.1.0:
- version "2.1.2"
- resolved "https://registry.npm.taobao.org/array-flatten/download/array-flatten-2.1.2.tgz#24ef80a28c1a893617e2149b0c6d0d788293b099"
- integrity sha1-JO+AoowaiTYX4hSbDG0NeIKTsJk=
-
array-ify@^1.0.0:
version "1.0.0"
resolved "https://registry.npm.taobao.org/array-ify/download/array-ify-1.0.0.tgz#9e528762b4a9066ad163a6962a364418e9626ece"
@@ -3278,17 +2974,12 @@ async-each@^1.0.1:
resolved "https://registry.npm.taobao.org/async-each/download/async-each-1.0.3.tgz#b727dbf87d7651602f06f4d4ac387f47d91b0cbf"
integrity sha1-tyfb+H12UWAvBvTUrDh/R9kbDL8=
-async-limiter@~1.0.0:
- version "1.0.1"
- resolved "https://registry.npm.taobao.org/async-limiter/download/async-limiter-1.0.1.tgz#dd379e94f0db8310b08291f9d64c3209766617fd"
- integrity sha1-3TeelPDbgxCwgpH51kwyCXZmF/0=
-
-async-retry@1.3.1:
- version "1.3.1"
- resolved "https://registry.npm.taobao.org/async-retry/download/async-retry-1.3.1.tgz#139f31f8ddce50c0870b0ba558a6079684aaed55"
- integrity sha1-E58x+N3OUMCHCwulWKYHloSq7VU=
+async-retry@1.3.3:
+ version "1.3.3"
+ resolved "https://registry.npmjs.org/async-retry/-/async-retry-1.3.3.tgz#0e7f36c04d8478e7a58bdbed80cedf977785f280"
+ integrity sha512-wfr/jstw9xNi/0teMHrRW7dsz3Lt5ARhYNZ2ewpadnhaIp5mbALhOAP+EAdsC7t4Z6wqsDVv9+W6gm1Dk9mEyw==
dependencies:
- retry "0.12.0"
+ retry "0.13.1"
async-settle@^1.0.0:
version "1.0.0"
@@ -3297,7 +2988,12 @@ async-settle@^1.0.0:
dependencies:
async-done "^1.2.2"
-async@^2.6.1, async@^2.6.2:
+async@0.9.x:
+ version "0.9.2"
+ resolved "https://registry.npmjs.org/async/-/async-0.9.2.tgz#aea74d5e61c1f899613bf64bda66d4c78f2fd17d"
+ integrity sha1-rqdNXmHB+JlhO/ZL2mbUx48v0X0=
+
+async@^2.6.1:
version "2.6.3"
resolved "https://registry.npm.taobao.org/async/download/async-2.6.3.tgz#d72625e2344a3656e3a3ad4fa749fa83299d82ff"
integrity sha1-1yYl4jRKNlbjo61Pp0n6gymdgv8=
@@ -3324,19 +3020,19 @@ atomically@^1.7.0:
resolved "https://registry.yarnpkg.com/atomically/-/atomically-1.7.0.tgz#c07a0458432ea6dbc9a3506fffa424b48bccaafe"
integrity sha512-Xcz9l0z7y9yQ9rdDaxlmaI4uJHf/T8g9hOEzJcsEqX2SjCj4J20uK7+ldkDHMbpJDK76wF7xEIgxc/vSlsfw5w==
-autoprefixer@^7.2.6:
- version "7.2.6"
- resolved "https://registry.npm.taobao.org/autoprefixer/download/autoprefixer-7.2.6.tgz#256672f86f7c735da849c4f07d008abb056067dc"
- integrity sha1-JWZy+G98c12oScTwfQCKuwVgZ9w=
+autoprefixer@^10.3.1, autoprefixer@^10.3.2:
+ version "10.3.5"
+ resolved "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.3.5.tgz#762e6c13e30c5a0e650bf81d9ffd5713f1c8f344"
+ integrity sha512-2H5kQSsyoOMdIehTzIt/sC9ZDIgWqlkG/dbevm9B9xQZ1TDPBHpNUDW5ENqqQQzuaBWEo75JkV0LJe+o5Lnr5g==
dependencies:
- browserslist "^2.11.3"
- caniuse-lite "^1.0.30000805"
+ browserslist "^4.17.1"
+ caniuse-lite "^1.0.30001259"
+ fraction.js "^4.1.1"
+ nanocolors "^0.1.5"
normalize-range "^0.1.2"
- num2fraction "^1.2.2"
- postcss "^6.0.17"
- postcss-value-parser "^3.2.3"
+ postcss-value-parser "^4.1.0"
-autoprefixer@^9.0.0, autoprefixer@^9.8.6:
+autoprefixer@^9.8.6:
version "9.8.6"
resolved "https://registry.npm.taobao.org/autoprefixer/download/autoprefixer-9.8.6.tgz#3b73594ca1bf9266320c5acf1588d74dea74210f"
integrity sha1-O3NZTKG/kmYyDFrPFYjXTep0IQ8=
@@ -3564,30 +3260,20 @@ babel-helpers@^6.24.1:
babel-runtime "^6.22.0"
babel-template "^6.24.1"
-babel-jest@^26.6.3:
- version "26.6.3"
- resolved "https://registry.npm.taobao.org/babel-jest/download/babel-jest-26.6.3.tgz?cache=0&sync_timestamp=1617371407322&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbabel-jest%2Fdownload%2Fbabel-jest-26.6.3.tgz#d87d25cb0037577a0c89f82e5755c5d293c01056"
- integrity sha1-2H0lywA3V3oMifguV1XF0pPAEFY=
+babel-jest@^27.0.6, babel-jest@^27.2.1:
+ version "27.2.1"
+ resolved "https://registry.npmjs.org/babel-jest/-/babel-jest-27.2.1.tgz#48edfa5cf8d59ab293da94321a369ccc7b67a4b1"
+ integrity sha512-kkaekSJHew1zfDW3cA2QiSBPg4uiLpiW0OwJKqFv0r2/mFgym/IBn7hxPntL6FvS66G/ROh+lz4pRiCJAH1/UQ==
dependencies:
- "@jest/transform" "^26.6.2"
- "@jest/types" "^26.6.2"
- "@types/babel__core" "^7.1.7"
+ "@jest/transform" "^27.2.1"
+ "@jest/types" "^27.1.1"
+ "@types/babel__core" "^7.1.14"
babel-plugin-istanbul "^6.0.0"
- babel-preset-jest "^26.6.2"
+ babel-preset-jest "^27.2.0"
chalk "^4.0.0"
graceful-fs "^4.2.4"
slash "^3.0.0"
-babel-loader@^8.2.2:
- version "8.2.2"
- resolved "https://registry.npm.taobao.org/babel-loader/download/babel-loader-8.2.2.tgz?cache=0&sync_timestamp=1606424705083&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbabel-loader%2Fdownload%2Fbabel-loader-8.2.2.tgz#9363ce84c10c9a40e6c753748e1441b60c8a0b81"
- integrity sha1-k2POhMEMmkDmx1N0jhRBtgyKC4E=
- dependencies:
- find-cache-dir "^3.3.1"
- loader-utils "^1.4.0"
- make-dir "^3.1.0"
- schema-utils "^2.6.5"
-
babel-messages@^6.23.0:
version "6.23.0"
resolved "https://registry.npm.taobao.org/babel-messages/download/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e"
@@ -3609,14 +3295,6 @@ babel-plugin-dynamic-import-node@^2.3.3:
dependencies:
object.assign "^4.1.0"
-babel-plugin-import@^1.13.3:
- version "1.13.3"
- resolved "https://registry.npm.taobao.org/babel-plugin-import/download/babel-plugin-import-1.13.3.tgz?cache=0&sync_timestamp=1606209871599&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbabel-plugin-import%2Fdownload%2Fbabel-plugin-import-1.13.3.tgz#9dbbba7d1ac72bd412917a830d445e00941d26d7"
- integrity sha1-nbu6fRrHK9QSkXqDDUReAJQdJtc=
- dependencies:
- "@babel/helper-module-imports" "^7.0.0"
- "@babel/runtime" "^7.0.0"
-
babel-plugin-istanbul@^6.0.0:
version "6.0.0"
resolved "https://registry.npm.taobao.org/babel-plugin-istanbul/download/babel-plugin-istanbul-6.0.0.tgz#e159ccdc9af95e0b570c75b4573b7c34d671d765"
@@ -3628,10 +3306,10 @@ babel-plugin-istanbul@^6.0.0:
istanbul-lib-instrument "^4.0.0"
test-exclude "^6.0.0"
-babel-plugin-jest-hoist@^26.6.2:
- version "26.6.2"
- resolved "https://registry.npm.taobao.org/babel-plugin-jest-hoist/download/babel-plugin-jest-hoist-26.6.2.tgz#8185bd030348d254c6d7dd974355e6a28b21e62d"
- integrity sha1-gYW9AwNI0lTG192XQ1Xmoosh5i0=
+babel-plugin-jest-hoist@^27.2.0:
+ version "27.2.0"
+ resolved "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-27.2.0.tgz#79f37d43f7e5c4fdc4b2ca3e10cc6cf545626277"
+ integrity sha512-TOux9khNKdi64mW+0OIhcmbAn75tTlzKhxmiNXevQaPbrBYK7YKjP1jl6NHTJ6XR5UgUrJbCnWlKVnJn29dfjw==
dependencies:
"@babel/template" "^7.3.3"
"@babel/types" "^7.3.3"
@@ -4064,12 +3742,12 @@ babel-preset-es2015@6.24.1:
babel-plugin-transform-es2015-unicode-regex "^6.24.1"
babel-plugin-transform-regenerator "^6.24.1"
-babel-preset-jest@^26.6.2:
- version "26.6.2"
- resolved "https://registry.npm.taobao.org/babel-preset-jest/download/babel-preset-jest-26.6.2.tgz#747872b1171df032252426586881d62d31798fee"
- integrity sha1-dHhysRcd8DIlJCZYaIHWLTF5j+4=
+babel-preset-jest@^27.2.0:
+ version "27.2.0"
+ resolved "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-27.2.0.tgz#556bbbf340608fed5670ab0ea0c8ef2449fba885"
+ integrity sha512-z7MgQ3peBwN5L5aCqBKnF6iqdlvZvFUQynEhu0J+X9nHLU72jO3iY331lcYrg+AssJ8q7xsv5/3AICzVmJ/wvg==
dependencies:
- babel-plugin-jest-hoist "^26.6.2"
+ babel-plugin-jest-hoist "^27.2.0"
babel-preset-current-node-syntax "^1.0.0"
babel-preset-stage-0@6.24.1:
@@ -4221,11 +3899,6 @@ base@^0.11.1:
mixin-deep "^1.2.0"
pascalcase "^0.1.1"
-batch@0.6.1:
- version "0.6.1"
- resolved "https://registry.npm.taobao.org/batch/download/batch-0.6.1.tgz#dc34314f4e679318093fc760272525f94bf25c16"
- integrity sha1-3DQxT05nkxgJP8dgJyUl+UvyXBY=
-
bcrypt-pbkdf@^1.0.0:
version "1.0.2"
resolved "https://registry.npm.taobao.org/bcrypt-pbkdf/download/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e"
@@ -4238,20 +3911,15 @@ before-after-hook@^2.2.0:
resolved "https://registry.npm.taobao.org/before-after-hook/download/before-after-hook-2.2.1.tgz#73540563558687586b52ed217dad6a802ab1549c"
integrity sha1-c1QFY1WGh1hrUu0hfa1qgCqxVJw=
-big.js@^5.2.2:
- version "5.2.2"
- resolved "https://registry.npm.taobao.org/big.js/download/big.js-5.2.2.tgz#65f0af382f578bcdc742bd9c281e9cb2d7768328"
- integrity sha1-ZfCvOC9Xi83HQr2cKB6cstd2gyg=
-
binary-extensions@^1.0.0:
version "1.13.1"
resolved "https://registry.npm.taobao.org/binary-extensions/download/binary-extensions-1.13.1.tgz#598afe54755b2868a5330d2aff9d4ebb53209b65"
integrity sha1-WYr+VHVbKGilMw0q/51Ou1Mgm2U=
binary-extensions@^2.0.0:
- version "2.1.0"
- resolved "https://registry.npm.taobao.org/binary-extensions/download/binary-extensions-2.1.0.tgz#30fa40c9e7fe07dbc895678cd287024dea241dd9"
- integrity sha1-MPpAyef+B9vIlWeM0ocCTeokHdk=
+ version "2.2.0"
+ resolved "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d"
+ integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==
bindings@^1.5.0:
version "1.5.0"
@@ -4269,45 +3937,12 @@ bl@^4.1.0:
inherits "^2.0.4"
readable-stream "^3.4.0"
-bluebird@^3.7.2:
- version "3.7.2"
- resolved "https://registry.npm.taobao.org/bluebird/download/bluebird-3.7.2.tgz#9f229c15be272454ffa973ace0dbee79a1b0c36f"
- integrity sha1-nyKcFb4nJFT/qXOs4NvueaGww28=
-
bmp-js@^0.1.0:
version "0.1.0"
resolved "https://registry.npm.taobao.org/bmp-js/download/bmp-js-0.1.0.tgz#e05a63f796a6c1ff25f4771ec7adadc148c07233"
integrity sha1-4Fpj95amwf8l9Hcex62twUjAcjM=
-body-parser@1.19.0:
- version "1.19.0"
- resolved "https://registry.npm.taobao.org/body-parser/download/body-parser-1.19.0.tgz#96b2709e57c9c4e09a6fd66a8fd979844f69f08a"
- integrity sha1-lrJwnlfJxOCab9Zqj9l5hE9p8Io=
- dependencies:
- bytes "3.1.0"
- content-type "~1.0.4"
- debug "2.6.9"
- depd "~1.1.2"
- http-errors "1.7.2"
- iconv-lite "0.4.24"
- on-finished "~2.3.0"
- qs "6.7.0"
- raw-body "2.4.0"
- type-is "~1.6.17"
-
-bonjour@^3.5.0:
- version "3.5.0"
- resolved "https://registry.npm.taobao.org/bonjour/download/bonjour-3.5.0.tgz#8e890a183d8ee9a2393b3844c691a42bcf7bc9f5"
- integrity sha1-jokKGD2O6aI5OzhExpGkK897yfU=
- dependencies:
- array-flatten "^2.1.0"
- deep-equal "^1.0.1"
- dns-equal "^1.0.0"
- dns-txt "^2.0.2"
- multicast-dns "^6.0.1"
- multicast-dns-service-types "^1.1.0"
-
-boolbase@^1.0.0, boolbase@~1.0.0:
+boolbase@^1.0.0:
version "1.0.0"
resolved "https://registry.npm.taobao.org/boolbase/download/boolbase-1.0.0.tgz#68dff5fbe60c51eb37725ea9e3ed310dcc1e776e"
integrity sha1-aN/1++YMUes3cl6p4+0xDcwed24=
@@ -4362,24 +3997,16 @@ browser-process-hrtime@^1.0.0:
resolved "https://registry.npm.taobao.org/browser-process-hrtime/download/browser-process-hrtime-1.0.0.tgz#3c9b4b7d782c8121e56f10106d84c0d0ffc94626"
integrity sha1-PJtLfXgsgSHlbxAQbYTA0P/JRiY=
-browserslist@^2.11.3:
- version "2.11.3"
- resolved "https://registry.npm.taobao.org/browserslist/download/browserslist-2.11.3.tgz?cache=0&sync_timestamp=1600993129773&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbrowserslist%2Fdownload%2Fbrowserslist-2.11.3.tgz#fe36167aed1bbcde4827ebfe71347a2cc70b99b2"
- integrity sha1-/jYWeu0bvN5IJ+v+cTR6LMcLmbI=
+browserslist@^4.0.0, browserslist@^4.12.0, browserslist@^4.16.0, browserslist@^4.16.6, browserslist@^4.17.0, browserslist@^4.17.1:
+ version "4.17.1"
+ resolved "https://registry.npmjs.org/browserslist/-/browserslist-4.17.1.tgz#a98d104f54af441290b7d592626dd541fa642eb9"
+ integrity sha512-aLD0ZMDSnF4lUt4ZDNgqi5BUn9BZ7YdQdI/cYlILrhdSSZJLU9aNZoD5/NBmM4SK34APB2e83MOsRt1EnkuyaQ==
dependencies:
- caniuse-lite "^1.0.30000792"
- electron-to-chromium "^1.3.30"
-
-browserslist@^4.0.0, browserslist@^4.12.0, browserslist@^4.14.5, browserslist@^4.16.6, browserslist@^4.5.2:
- version "4.16.6"
- resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.16.6.tgz#d7901277a5a88e554ed305b183ec9b0c08f66fa2"
- integrity sha512-Wspk/PqO+4W9qp5iUTJsa1B/QrYn1keNCcEP5OvP7WBwT4KaDly0uONYmC6Xa3Z5IqnUgS0KcgLYu1l74x0ZXQ==
- dependencies:
- caniuse-lite "^1.0.30001219"
- colorette "^1.2.2"
- electron-to-chromium "^1.3.723"
+ caniuse-lite "^1.0.30001259"
+ electron-to-chromium "^1.3.846"
escalade "^3.1.1"
- node-releases "^1.1.71"
+ nanocolors "^0.1.5"
+ node-releases "^1.1.76"
bs-logger@0.x:
version "0.2.6"
@@ -4405,16 +4032,11 @@ buffer-equal@^1.0.0:
resolved "https://registry.npm.taobao.org/buffer-equal/download/buffer-equal-1.0.0.tgz#59616b498304d556abd466966b22eeda3eca5fbe"
integrity sha1-WWFrSYME1Var1GaWayLu2j7KX74=
-buffer-from@1.x, buffer-from@^1.0.0:
+buffer-from@^1.0.0:
version "1.1.1"
resolved "https://registry.npm.taobao.org/buffer-from/download/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef"
integrity sha1-MnE7wCj3XAL9txDXx7zsHyxgcO8=
-buffer-indexof@^1.0.0:
- version "1.1.1"
- resolved "https://registry.npm.taobao.org/buffer-indexof/download/buffer-indexof-1.1.1.tgz#52fabcc6a606d1a00302802648ef68f639da268c"
- integrity sha1-Uvq8xqYG0aADAoAmSO9o9jnaJow=
-
buffer@^5.2.0, buffer@^5.5.0:
version "5.7.1"
resolved "https://registry.npm.taobao.org/buffer/download/buffer-5.7.1.tgz?cache=0&sync_timestamp=1606098073225&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbuffer%2Fdownload%2Fbuffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0"
@@ -4423,16 +4045,6 @@ buffer@^5.2.0, buffer@^5.5.0:
base64-js "^1.3.1"
ieee754 "^1.1.13"
-bytes@3.0.0:
- version "3.0.0"
- resolved "https://registry.npm.taobao.org/bytes/download/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048"
- integrity sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=
-
-bytes@3.1.0:
- version "3.1.0"
- resolved "https://registry.npm.taobao.org/bytes/download/bytes-3.1.0.tgz#f6cf7933a360e0588fa9fde85651cdc7f805d1f6"
- integrity sha1-9s95M6Ng4FiPqf3oVlHNx/gF0fY=
-
cache-base@^1.0.1:
version "1.0.1"
resolved "https://registry.npm.taobao.org/cache-base/download/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2"
@@ -4492,25 +4104,6 @@ call-me-maybe@^1.0.1:
resolved "https://registry.npm.taobao.org/call-me-maybe/download/call-me-maybe-1.0.1.tgz#26d208ea89e37b5cbde60250a15f031c16a4d66b"
integrity sha1-JtII6onje1y95gJQoV8DHBak1ms=
-caller-callsite@^2.0.0:
- version "2.0.0"
- resolved "https://registry.npm.taobao.org/caller-callsite/download/caller-callsite-2.0.0.tgz#847e0fce0a223750a9a027c54b33731ad3154134"
- integrity sha1-hH4PzgoiN1CpoCfFSzNzGtMVQTQ=
- dependencies:
- callsites "^2.0.0"
-
-caller-path@^2.0.0:
- version "2.0.0"
- resolved "https://registry.npm.taobao.org/caller-path/download/caller-path-2.0.0.tgz#468f83044e369ab2010fac5f06ceee15bb2cb1f4"
- integrity sha1-Ro+DBE42mrIBD6xfBs7uFbsssfQ=
- dependencies:
- caller-callsite "^2.0.0"
-
-callsites@^2.0.0:
- version "2.0.0"
- resolved "https://registry.npm.taobao.org/callsites/download/callsites-2.0.0.tgz#06eb84f00eea413da86affefacbffb36093b3c50"
- integrity sha1-BuuE8A7qQT2oav/vrL/7Ngk7PFA=
-
callsites@^3.0.0:
version "3.1.0"
resolved "https://registry.npm.taobao.org/callsites/download/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73"
@@ -4579,27 +4172,20 @@ caniuse-api@^3.0.0:
lodash.memoize "^4.1.2"
lodash.uniq "^4.5.0"
-caniuse-lite@^1.0.0, caniuse-lite@^1.0.30000792, caniuse-lite@^1.0.30000805, caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001219:
- version "1.0.30001237"
- resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001237.tgz#4b7783661515b8e7151fc6376cfd97f0e427b9e5"
- integrity sha512-pDHgRndit6p1NR2GhzMbQ6CkRrp4VKuSsqbcLeOQppYPKOYkKT/6ZvZDvKJUqcmtyWIAHuZq3SVS2vc1egCZzw==
-
-capture-exit@^2.0.0:
- version "2.0.0"
- resolved "https://registry.npm.taobao.org/capture-exit/download/capture-exit-2.0.0.tgz#fb953bfaebeb781f62898239dabb426d08a509a4"
- integrity sha1-+5U7+uvreB9iiYI52rtCbQilCaQ=
- dependencies:
- rsvp "^4.8.4"
+caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001259:
+ version "1.0.30001259"
+ resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001259.tgz#ae21691d3da9c4be6144403ac40f71d9f6efd790"
+ integrity sha512-V7mQTFhjITxuk9zBpI6nYsiTXhcPe05l+364nZjK7MFK/E7ibvYBSAXr4YcA6oPR8j3ZLM/LN+lUqUVAQEUZFg==
caseless@~0.12.0:
version "0.12.0"
resolved "https://registry.npm.taobao.org/caseless/download/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc"
integrity sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=
-chalk@4.1.1, chalk@^4.0.0, chalk@^4.1.0, chalk@^4.1.1:
- version "4.1.1"
- resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.1.tgz#c80b3fab28bf6371e6863325eee67e618b77e6ad"
- integrity sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==
+chalk@4.1.2, chalk@^4.0.0, chalk@^4.1.0, chalk@^4.1.1:
+ version "4.1.2"
+ resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01"
+ integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==
dependencies:
ansi-styles "^4.1.0"
supports-color "^7.1.0"
@@ -4615,7 +4201,7 @@ chalk@^1.1.3:
strip-ansi "^3.0.0"
supports-color "^2.0.0"
-chalk@^2.0.0, chalk@^2.1.0, chalk@^2.4.1, chalk@^2.4.2:
+chalk@^2.0.0, chalk@^2.1.0, chalk@^2.4.2:
version "2.4.2"
resolved "https://registry.npm.taobao.org/chalk/download/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424"
integrity sha1-zUJUFnelQzPPVBpJEIwUMrRMlCQ=
@@ -4649,22 +4235,22 @@ chardet@^0.7.0:
resolved "https://registry.npm.taobao.org/chardet/download/chardet-0.7.0.tgz?cache=0&sync_timestamp=1601032467034&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fchardet%2Fdownload%2Fchardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e"
integrity sha1-kAlISfCTfy7twkJdDSip5fDLrZ4=
-"chokidar@>=3.0.0 <4.0.0", chokidar@^3.4.2, chokidar@^3.5.1:
- version "3.5.1"
- resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.1.tgz#ee9ce7bbebd2b79f49f304799d5468e31e14e68a"
- integrity sha512-9+s+Od+W0VJJzawDma/gvBNQqkTiqYTWLuZoyAsivsI4AaWTCzHG06/TMjsf1cYe9Cb97UCEhjz7HvnPk2p/tw==
+"chokidar@>=3.0.0 <4.0.0", chokidar@^3.5.1:
+ version "3.5.2"
+ resolved "https://registry.npmjs.org/chokidar/-/chokidar-3.5.2.tgz#dba3976fcadb016f66fd365021d91600d01c1e75"
+ integrity sha512-ekGhOnNVPgT77r4K/U3GDhu+FQ2S8TnK/s2KbIGXi0SZWuwkZ2QNyfWdZW+TVfn84DpEP7rLeCt2UI6bJ8GwbQ==
dependencies:
- anymatch "~3.1.1"
+ anymatch "~3.1.2"
braces "~3.0.2"
- glob-parent "~5.1.0"
+ glob-parent "~5.1.2"
is-binary-path "~2.1.0"
is-glob "~4.0.1"
normalize-path "~3.0.0"
- readdirp "~3.5.0"
+ readdirp "~3.6.0"
optionalDependencies:
- fsevents "~2.3.1"
+ fsevents "~2.3.2"
-chokidar@^2.0.0, chokidar@^2.1.8:
+chokidar@^2.0.0:
version "2.1.8"
resolved "https://registry.npm.taobao.org/chokidar/download/chokidar-2.1.8.tgz?cache=0&sync_timestamp=1602585438968&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fchokidar%2Fdownload%2Fchokidar-2.1.8.tgz#804b3a7b6a99358c3c5c61e71d8728f041cff917"
integrity sha1-gEs6e2qZNYw8XGHnHYco8EHP+Rc=
@@ -4683,27 +4269,20 @@ chokidar@^2.0.0, chokidar@^2.1.8:
optionalDependencies:
fsevents "^1.2.7"
-chrome-trace-event@^1.0.2:
- version "1.0.2"
- resolved "https://registry.npm.taobao.org/chrome-trace-event/download/chrome-trace-event-1.0.2.tgz#234090ee97c7d4ad1a2c4beae27505deffc608a4"
- integrity sha1-I0CQ7pfH1K0aLEvq4nUF3v/GCKQ=
- dependencies:
- tslib "^1.9.0"
-
ci-info@^2.0.0:
version "2.0.0"
resolved "https://registry.npm.taobao.org/ci-info/download/ci-info-2.0.0.tgz#67a9e964be31a51e15e5010d58e6f12834002f46"
integrity sha1-Z6npZL4xpR4V5QENWObxKDQAL0Y=
-ci-info@^3.0.0, ci-info@^3.1.1:
+ci-info@^3.1.1:
version "3.1.1"
resolved "https://registry.npm.taobao.org/ci-info/download/ci-info-3.1.1.tgz?cache=0&sync_timestamp=1613628860338&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fci-info%2Fdownload%2Fci-info-3.1.1.tgz#9a32fcefdf7bcdb6f0a7e1c0f8098ec57897b80a"
integrity sha1-mjL87997zbbwp+HA+AmOxXiXuAo=
-cjs-module-lexer@^0.6.0:
- version "0.6.0"
- resolved "https://registry.npm.taobao.org/cjs-module-lexer/download/cjs-module-lexer-0.6.0.tgz?cache=0&sync_timestamp=1617128426018&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcjs-module-lexer%2Fdownload%2Fcjs-module-lexer-0.6.0.tgz#4186fcca0eae175970aee870b9fe2d6cf8d5655f"
- integrity sha1-QYb8yg6uF1lwruhwuf4tbPjVZV8=
+cjs-module-lexer@^1.0.0:
+ version "1.2.2"
+ resolved "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.2.tgz#9f84ba3244a512f3a54e5277e8eef4c489864e40"
+ integrity sha512-cOU9usZw8/dXIXKtwa8pM0OTJQuJkxMN6w30csNRUerHfeQ5R6U3kkU/FtJeIf3M202OHfY2U8ccInBG7/xogA==
class-utils@^0.3.5:
version "0.3.6"
@@ -4722,6 +4301,13 @@ clean-css@^4.2.1, clean-css@^4.2.3:
dependencies:
source-map "~0.6.0"
+clean-css@^5.1.5:
+ version "5.1.5"
+ resolved "https://registry.npmjs.org/clean-css/-/clean-css-5.1.5.tgz#3b0af240dcfc9a3779a08c2332df3ebd4474f232"
+ integrity sha512-9dr/cU/LjMpU57PXlSvDkVRh0rPxJBXiBtD0+SgYt8ahTCsXtfKjCkNYgIoTC6mBg8CFr5EKhW3DKCaGMUbUfQ==
+ dependencies:
+ source-map "~0.6.0"
+
clean-stack@^2.0.0:
version "2.2.0"
resolved "https://registry.npm.taobao.org/clean-stack/download/clean-stack-2.2.0.tgz#ee8472dbb129e727b31e8a10a427dee9dfe4008b"
@@ -4766,15 +4352,6 @@ cliui@^3.2.0:
strip-ansi "^3.0.1"
wrap-ansi "^2.0.0"
-cliui@^5.0.0:
- version "5.0.0"
- resolved "https://registry.npm.taobao.org/cliui/download/cliui-5.0.0.tgz?cache=0&sync_timestamp=1602718362505&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcliui%2Fdownload%2Fcliui-5.0.0.tgz#deefcfdb2e800784aa34f46fa08e06851c7bbbc5"
- integrity sha1-3u/P2y6AB4SqNPRvoI4GhRx7u8U=
- dependencies:
- string-width "^3.1.0"
- strip-ansi "^5.2.0"
- wrap-ansi "^5.1.0"
-
cliui@^6.0.0:
version "6.0.0"
resolved "https://registry.npm.taobao.org/cliui/download/cliui-6.0.0.tgz?cache=0&sync_timestamp=1602718362505&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcliui%2Fdownload%2Fcliui-6.0.0.tgz#511d702c0c4e41ca156d7d0e96021f23e13225b1"
@@ -4798,15 +4375,6 @@ clone-buffer@^1.0.0:
resolved "https://registry.npm.taobao.org/clone-buffer/download/clone-buffer-1.0.0.tgz#e3e25b207ac4e701af721e2cb5a16792cac3dc58"
integrity sha1-4+JbIHrE5wGvch4staFnksrD3Fg=
-clone-deep@^4.0.1:
- version "4.0.1"
- resolved "https://registry.npm.taobao.org/clone-deep/download/clone-deep-4.0.1.tgz#c19fd9bdbbf85942b4fd979c84dcf7d5f07c2387"
- integrity sha1-wZ/Zvbv4WUK0/ZechNz31fB8I4c=
- dependencies:
- is-plain-object "^2.0.4"
- kind-of "^6.0.2"
- shallow-clone "^3.0.0"
-
clone-regexp@^2.1.0:
version "2.2.0"
resolved "https://registry.npm.taobao.org/clone-regexp/download/clone-regexp-2.2.0.tgz#7d65e00885cd8796405c35a737e7a86b7429e36f"
@@ -4850,15 +4418,6 @@ co@^4.6.0:
resolved "https://registry.npm.taobao.org/co/download/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184"
integrity sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=
-coa@^2.0.2:
- version "2.0.2"
- resolved "https://registry.npm.taobao.org/coa/download/coa-2.0.2.tgz#43f6c21151b4ef2bf57187db0d73de229e3e7ec3"
- integrity sha1-Q/bCEVG07yv1cYfbDXPeIp4+fsM=
- dependencies:
- "@types/q" "^1.5.1"
- chalk "^2.4.1"
- q "^1.1.2"
-
code-point-at@^1.0.0:
version "1.1.0"
resolved "https://registry.npm.taobao.org/code-point-at/download/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
@@ -4886,7 +4445,7 @@ collection-visit@^1.0.0:
map-visit "^1.0.0"
object-visit "^1.0.0"
-color-convert@^1.9.0, color-convert@^1.9.1:
+color-convert@^1.9.0:
version "1.9.3"
resolved "https://registry.npm.taobao.org/color-convert/download/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8"
integrity sha1-u3GFBpDh8TZWfeYp0tVHHe2kweg=
@@ -4905,36 +4464,25 @@ color-name@1.1.3:
resolved "https://registry.npm.taobao.org/color-name/download/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25"
integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=
-color-name@^1.0.0, color-name@^1.1.4, color-name@~1.1.4:
+color-name@^1.1.4, color-name@~1.1.4:
version "1.1.4"
resolved "https://registry.npm.taobao.org/color-name/download/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2"
integrity sha1-wqCah6y95pVD3m9j+jmVyCbFNqI=
-color-string@^1.5.4:
- version "1.5.4"
- resolved "https://registry.npm.taobao.org/color-string/download/color-string-1.5.4.tgz#dd51cd25cfee953d138fe4002372cc3d0e504cb6"
- integrity sha1-3VHNJc/ulT0Tj+QAI3LMPQ5QTLY=
- dependencies:
- color-name "^1.0.0"
- simple-swizzle "^0.2.2"
-
color-support@^1.1.3:
version "1.1.3"
resolved "https://registry.npm.taobao.org/color-support/download/color-support-1.1.3.tgz#93834379a1cc9a0c61f82f52f0d04322251bd5a2"
integrity sha1-k4NDeaHMmgxh+C9S8NBDIiUb1aI=
-color@^3.0.0:
- version "3.1.3"
- resolved "https://registry.npm.taobao.org/color/download/color-3.1.3.tgz#ca67fb4e7b97d611dcde39eceed422067d91596e"
- integrity sha1-ymf7TnuX1hHc3jns7tQiBn2RWW4=
- dependencies:
- color-convert "^1.9.1"
- color-string "^1.5.4"
+colord@^2.0.1, colord@^2.6:
+ version "2.7.0"
+ resolved "https://registry.npmjs.org/colord/-/colord-2.7.0.tgz#706ea36fe0cd651b585eb142fe64b6480185270e"
+ integrity sha512-pZJBqsHz+pYyw3zpX6ZRXWoCHM1/cvFikY9TV8G3zcejCaKE0lhankoj8iScyrrePA8C7yJ5FStfA9zbcOnw7Q==
-colorette@^1.2.1, colorette@^1.2.2:
- version "1.2.2"
- resolved "https://registry.npm.taobao.org/colorette/download/colorette-1.2.2.tgz?cache=0&sync_timestamp=1614259593633&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcolorette%2Fdownload%2Fcolorette-1.2.2.tgz#cbcc79d5e99caea2dbf10eb3a26fd8b3e6acfa94"
- integrity sha1-y8x51emcrqLb8Q6zom/Ys+as+pQ=
+colorette@^1.2.1, colorette@^1.4.0:
+ version "1.4.0"
+ resolved "https://registry.npmjs.org/colorette/-/colorette-1.4.0.tgz#5190fbb87276259a86ad700bff2c6d6faa3fca40"
+ integrity sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g==
combined-stream@^1.0.6, combined-stream@^1.0.8, combined-stream@~1.0.6:
version "1.0.8"
@@ -4953,10 +4501,15 @@ commander@^4.1.1:
resolved "https://registry.npm.taobao.org/commander/download/commander-4.1.1.tgz?cache=0&sync_timestamp=1598576116597&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcommander%2Fdownload%2Fcommander-4.1.1.tgz#9fd602bd936294e9e9ef46a3f4d6964044b18068"
integrity sha1-n9YCvZNilOnp70aj9NaWQESxgGg=
-commander@^6.2.0, commander@^6.2.1:
- version "6.2.1"
- resolved "https://registry.npm.taobao.org/commander/download/commander-6.2.1.tgz?cache=0&sync_timestamp=1616364021418&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcommander%2Fdownload%2Fcommander-6.2.1.tgz#0792eb682dfbc325999bb2b84fddddba110ac73c"
- integrity sha1-B5LraC37wyWZm7K4T93duhEKxzw=
+commander@^7.2.0:
+ version "7.2.0"
+ resolved "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz#a36cb57d0b501ce108e4d20559a150a391d97ab7"
+ integrity sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==
+
+commander@^8.1.0:
+ version "8.2.0"
+ resolved "https://registry.npmjs.org/commander/-/commander-8.2.0.tgz#37fe2bde301d87d47a53adeff8b5915db1381ca8"
+ integrity sha512-LLKxDvHeL91/8MIyTAD5BFMNtoIwztGPMiM/7Bl8rIPmHCZXRxmSWr91h57dpOpnQ6jIUqEWdXE/uBYMfiVZDA==
commander@~2.11.0:
version "2.11.0"
@@ -4981,26 +4534,6 @@ component-emitter@^1.2.1:
resolved "https://registry.npm.taobao.org/component-emitter/download/component-emitter-1.3.0.tgz#16e4070fba8ae29b679f2215853ee181ab2eabc0"
integrity sha1-FuQHD7qK4ptnnyIVhT7hgasuq8A=
-compressible@~2.0.16:
- version "2.0.18"
- resolved "https://registry.npm.taobao.org/compressible/download/compressible-2.0.18.tgz#af53cca6b070d4c3c0750fbd77286a6d7cc46fba"
- integrity sha1-r1PMprBw1MPAdQ+9dyhqbXzEb7o=
- dependencies:
- mime-db ">= 1.43.0 < 2"
-
-compression@^1.7.4:
- version "1.7.4"
- resolved "https://registry.npm.taobao.org/compression/download/compression-1.7.4.tgz#95523eff170ca57c29a0ca41e6fe131f41e5bb8f"
- integrity sha1-lVI+/xcMpXwpoMpB5v4TH0Hlu48=
- dependencies:
- accepts "~1.3.5"
- bytes "3.0.0"
- compressible "~2.0.16"
- debug "2.6.9"
- on-headers "~1.0.2"
- safe-buffer "5.1.2"
- vary "~1.1.2"
-
concat-map@0.0.1:
version "0.0.1"
resolved "https://registry.npm.taobao.org/concat-map/download/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
@@ -5058,35 +4591,11 @@ confusing-browser-globals@^1.0.10:
resolved "https://registry.npm.taobao.org/confusing-browser-globals/download/confusing-browser-globals-1.0.10.tgz?cache=0&sync_timestamp=1603464100912&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fconfusing-browser-globals%2Fdownload%2Fconfusing-browser-globals-1.0.10.tgz#30d1e7f3d1b882b25ec4933d1d1adac353d20a59"
integrity sha1-MNHn89G4grJexJM9HRraw1PSClk=
-connect-history-api-fallback@^1.6.0:
- version "1.6.0"
- resolved "https://registry.npm.taobao.org/connect-history-api-fallback/download/connect-history-api-fallback-1.6.0.tgz#8b32089359308d111115d81cad3fceab888f97bc"
- integrity sha1-izIIk1kwjRERFdgcrT/Oq4iPl7w=
-
-consola@^2.15.0, consola@^2.15.3:
+consola@^2.15.3:
version "2.15.3"
resolved "https://registry.npm.taobao.org/consola/download/consola-2.15.3.tgz#2e11f98d6a4be71ff72e0bdf07bd23e12cb61550"
integrity sha1-LhH5jWpL5x/3LgvfB70j4Sy2FVA=
-consolidate@^0.16.0:
- version "0.16.0"
- resolved "https://registry.npm.taobao.org/consolidate/download/consolidate-0.16.0.tgz#a11864768930f2f19431660a65906668f5fbdc16"
- integrity sha1-oRhkdokw8vGUMWYKZZBmaPX73BY=
- dependencies:
- bluebird "^3.7.2"
-
-content-disposition@0.5.3:
- version "0.5.3"
- resolved "https://registry.npm.taobao.org/content-disposition/download/content-disposition-0.5.3.tgz#e130caf7e7279087c5616c2007d0485698984fbd"
- integrity sha1-4TDK9+cnkIfFYWwgB9BIVpiYT70=
- dependencies:
- safe-buffer "5.1.2"
-
-content-type@~1.0.4:
- version "1.0.4"
- resolved "https://registry.npm.taobao.org/content-type/download/content-type-1.0.4.tgz#e138cc75e040c727b1966fe5e5f8c9aee256fe3b"
- integrity sha1-4TjMdeBAxyexlm/l5fjJruJW/js=
-
conventional-changelog-angular@^5.0.12:
version "5.0.12"
resolved "https://registry.npm.taobao.org/conventional-changelog-angular/download/conventional-changelog-angular-5.0.12.tgz?cache=0&sync_timestamp=1604539607091&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fconventional-changelog-angular%2Fdownload%2Fconventional-changelog-angular-5.0.12.tgz#c979b8b921cbfe26402eb3da5bbfda02d865a2b9"
@@ -5234,23 +4743,13 @@ conventional-commits-parser@^3.2.0:
through2 "^4.0.0"
trim-off-newlines "^1.0.0"
-convert-source-map@^1.1.0, convert-source-map@^1.4.0, convert-source-map@^1.5.0, convert-source-map@^1.5.1, convert-source-map@^1.6.0, convert-source-map@^1.7.0:
+convert-source-map@^1.4.0, convert-source-map@^1.5.0, convert-source-map@^1.5.1, convert-source-map@^1.6.0, convert-source-map@^1.7.0:
version "1.7.0"
resolved "https://registry.npm.taobao.org/convert-source-map/download/convert-source-map-1.7.0.tgz#17a2cb882d7f77d3490585e2ce6c524424a3a442"
integrity sha1-F6LLiC1/d9NJBYXizmxSRCSjpEI=
dependencies:
safe-buffer "~5.1.1"
-cookie-signature@1.0.6:
- version "1.0.6"
- resolved "https://registry.npm.taobao.org/cookie-signature/download/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c"
- integrity sha1-4wOogrNCzD7oylE6eZmXNNqzriw=
-
-cookie@0.4.0:
- version "0.4.0"
- resolved "https://registry.npm.taobao.org/cookie/download/cookie-0.4.0.tgz#beb437e7022b3b6d49019d088665303ebe9c14ba"
- integrity sha1-vrQ35wIrO21JAZ0IhmUwPr6cFLo=
-
copy-anything@^2.0.1:
version "2.0.3"
resolved "https://registry.npm.taobao.org/copy-anything/download/copy-anything-2.0.3.tgz?cache=0&sync_timestamp=1612447113795&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcopy-anything%2Fdownload%2Fcopy-anything-2.0.3.tgz#842407ba02466b0df844819bbe3baebbe5d45d87"
@@ -5271,12 +4770,12 @@ copy-props@^2.0.1:
each-props "^1.3.0"
is-plain-object "^2.0.1"
-core-js-compat@^3.0.0, core-js-compat@^3.14.0, core-js-compat@^3.9.1:
- version "3.14.0"
- resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.14.0.tgz#b574dabf29184681d5b16357bd33d104df3d29a5"
- integrity sha512-R4NS2eupxtiJU+VwgkF9WTpnSfZW4pogwKHd8bclWU2sp93Pr5S1uYJI84cMOubJRou7bcfL0vmwtLslWN5p3A==
+core-js-compat@^3.16.0, core-js-compat@^3.6.2, core-js-compat@^3.9.1:
+ version "3.18.0"
+ resolved "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.18.0.tgz#fb360652201e8ac8da812718c008cd0482ed9b42"
+ integrity sha512-tRVjOJu4PxdXjRMEgbP7lqWy1TWJu9a01oBkn8d+dNrhgmBwdTkzhHZpVJnEmhISLdoJI1lX08rcBcHi3TZIWg==
dependencies:
- browserslist "^4.16.6"
+ browserslist "^4.17.0"
semver "7.0.0"
core-js@^2.4.0, core-js@^2.5.0:
@@ -5305,10 +4804,10 @@ cos-nodejs-sdk-v5@^2.9.12:
request "^2.88.2"
xml2js "^0.4.19"
-cosmiconfig@7.0.0, cosmiconfig@^7.0.0:
- version "7.0.0"
- resolved "https://registry.npm.taobao.org/cosmiconfig/download/cosmiconfig-7.0.0.tgz#ef9b44d773959cae63ddecd122de23853b60f8d3"
- integrity sha1-75tE13OVnK5j3ezRIt4jhTtg+NM=
+cosmiconfig@7.0.1, cosmiconfig@^7.0.0:
+ version "7.0.1"
+ resolved "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.1.tgz#714d756522cace867867ccb4474c5d01bbae5d6d"
+ integrity sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ==
dependencies:
"@types/parse-json" "^4.0.0"
import-fresh "^3.2.1"
@@ -5316,38 +4815,6 @@ cosmiconfig@7.0.0, cosmiconfig@^7.0.0:
path-type "^4.0.0"
yaml "^1.10.0"
-cosmiconfig@^5.0.0:
- version "5.2.1"
- resolved "https://registry.npm.taobao.org/cosmiconfig/download/cosmiconfig-5.2.1.tgz#040f726809c591e77a17c0a3626ca45b4f168b1a"
- integrity sha1-BA9yaAnFked6F8CjYmykW08Wixo=
- dependencies:
- import-fresh "^2.0.0"
- is-directory "^0.3.1"
- js-yaml "^3.13.1"
- parse-json "^4.0.0"
-
-cosmiconfig@^6.0.0:
- version "6.0.0"
- resolved "https://registry.npm.taobao.org/cosmiconfig/download/cosmiconfig-6.0.0.tgz#da4fee853c52f6b1e6935f41c1a2fc50bd4a9982"
- integrity sha1-2k/uhTxS9rHmk19BwaL8UL1KmYI=
- dependencies:
- "@types/parse-json" "^4.0.0"
- import-fresh "^3.1.0"
- parse-json "^5.0.0"
- path-type "^4.0.0"
- yaml "^1.7.2"
-
-cross-spawn@^6.0.0:
- version "6.0.5"
- resolved "https://registry.npm.taobao.org/cross-spawn/download/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4"
- integrity sha1-Sl7Hxk364iw6FBJNus3uhG2Ay8Q=
- dependencies:
- nice-try "^1.0.4"
- path-key "^2.0.1"
- semver "^5.5.0"
- shebang-command "^1.2.0"
- which "^1.2.9"
-
cross-spawn@^7.0.0, cross-spawn@^7.0.2, cross-spawn@^7.0.3:
version "7.0.3"
resolved "https://registry.npm.taobao.org/cross-spawn/download/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6"
@@ -5362,87 +4829,41 @@ crypto-random-string@^2.0.0:
resolved "https://registry.npm.taobao.org/crypto-random-string/download/crypto-random-string-2.0.0.tgz?cache=0&sync_timestamp=1617610467993&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcrypto-random-string%2Fdownload%2Fcrypto-random-string-2.0.0.tgz#ef2a7a966ec11083388369baa02ebead229b30d5"
integrity sha1-7yp6lm7BEIM4g2m6oC6+rSKbMNU=
-css-color-names@0.0.4, css-color-names@^0.0.4:
- version "0.0.4"
- resolved "https://registry.npm.taobao.org/css-color-names/download/css-color-names-0.0.4.tgz#808adc2e79cf84738069b646cb20ec27beb629e0"
- integrity sha1-gIrcLnnPhHOAabZGyyDsJ762KeA=
+css-color-names@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.npmjs.org/css-color-names/-/css-color-names-1.0.1.tgz#6ff7ee81a823ad46e020fa2fd6ab40a887e2ba67"
+ integrity sha512-/loXYOch1qU1biStIFsHH8SxTmOseh1IJqFvy8IujXOm1h+QjUdDhkzOrR5HG8K8mlxREj0yfi8ewCHx0eMxzA==
-css-declaration-sorter@^4.0.1:
- version "4.0.1"
- resolved "https://registry.npm.taobao.org/css-declaration-sorter/download/css-declaration-sorter-4.0.1.tgz?cache=0&sync_timestamp=1602012852731&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcss-declaration-sorter%2Fdownload%2Fcss-declaration-sorter-4.0.1.tgz#c198940f63a76d7e36c1e71018b001721054cb22"
- integrity sha1-wZiUD2OnbX42wecQGLABchBUyyI=
+css-declaration-sorter@^6.0.3:
+ version "6.1.3"
+ resolved "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-6.1.3.tgz#e9852e4cf940ba79f509d9425b137d1f94438dc2"
+ integrity sha512-SvjQjNRZgh4ULK1LDJ2AduPKUKxIqmtU7ZAyi47BTV+M90Qvxr9AB6lKlLbDUfXqI9IQeYA8LbAsCZPpJEV3aA==
dependencies:
- postcss "^7.0.1"
timsort "^0.3.0"
-css-loader@^4.0.0:
- version "4.3.0"
- resolved "https://registry.npm.taobao.org/css-loader/download/css-loader-4.3.0.tgz?cache=0&sync_timestamp=1617981471612&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcss-loader%2Fdownload%2Fcss-loader-4.3.0.tgz#c888af64b2a5b2e85462c72c0f4a85c7e2e0821e"
- integrity sha1-yIivZLKlsuhUYscsD0qFx+Lggh4=
- dependencies:
- camelcase "^6.0.0"
- cssesc "^3.0.0"
- icss-utils "^4.1.1"
- loader-utils "^2.0.0"
- postcss "^7.0.32"
- postcss-modules-extract-imports "^2.0.0"
- postcss-modules-local-by-default "^3.0.3"
- postcss-modules-scope "^2.2.0"
- postcss-modules-values "^3.0.0"
- postcss-value-parser "^4.1.0"
- schema-utils "^2.7.1"
- semver "^7.3.2"
-
-css-select-base-adapter@^0.1.1:
- version "0.1.1"
- resolved "https://registry.npm.taobao.org/css-select-base-adapter/download/css-select-base-adapter-0.1.1.tgz#3b2ff4972cc362ab88561507a95408a1432135d7"
- integrity sha1-Oy/0lyzDYquIVhUHqVQIoUMhNdc=
-
-css-select@^1.1.0:
- version "1.2.0"
- resolved "https://registry.npm.taobao.org/css-select/download/css-select-1.2.0.tgz#2b3a110539c5355f1cd8d314623e870b121ec858"
- integrity sha1-KzoRBTnFNV8c2NMUYj6HCxIeyFg=
- dependencies:
- boolbase "~1.0.0"
- css-what "2.1"
- domutils "1.5.1"
- nth-check "~1.0.1"
-
-css-select@^2.0.0:
- version "2.1.0"
- resolved "https://registry.npm.taobao.org/css-select/download/css-select-2.1.0.tgz#6a34653356635934a81baca68d0255432105dbef"
- integrity sha1-ajRlM1ZjWTSoG6ymjQJVQyEF2+8=
+css-select@^4.1.3:
+ version "4.1.3"
+ resolved "https://registry.npmjs.org/css-select/-/css-select-4.1.3.tgz#a70440f70317f2669118ad74ff105e65849c7067"
+ integrity sha512-gT3wBNd9Nj49rAbmtFHj1cljIAOLYSX1nZ8CB7TBO3INYckygm5B7LISU/szY//YmdiSLbJvDLOx9VnMVpMBxA==
dependencies:
boolbase "^1.0.0"
- css-what "^3.2.1"
- domutils "^1.7.0"
- nth-check "^1.0.2"
+ css-what "^5.0.0"
+ domhandler "^4.2.0"
+ domutils "^2.6.0"
+ nth-check "^2.0.0"
-css-tree@1.0.0-alpha.37:
- version "1.0.0-alpha.37"
- resolved "https://registry.npm.taobao.org/css-tree/download/css-tree-1.0.0-alpha.37.tgz#98bebd62c4c1d9f960ec340cf9f7522e30709a22"
- integrity sha1-mL69YsTB2flg7DQM+fdSLjBwmiI=
+css-tree@^1.1.2, css-tree@^1.1.3:
+ version "1.1.3"
+ resolved "https://registry.npmjs.org/css-tree/-/css-tree-1.1.3.tgz#eb4870fb6fd7707327ec95c2ff2ab09b5e8db91d"
+ integrity sha512-tRpdppF7TRazZrjJ6v3stzv93qxRcSsFmW6cX0Zm2NVKpxE1WV1HblnghVv9TreireHkqI/VDEsfolRF1p6y7Q==
dependencies:
- mdn-data "2.0.4"
+ mdn-data "2.0.14"
source-map "^0.6.1"
-css-tree@1.0.0-alpha.39:
- version "1.0.0-alpha.39"
- resolved "https://registry.npm.taobao.org/css-tree/download/css-tree-1.0.0-alpha.39.tgz#2bff3ffe1bb3f776cf7eefd91ee5cba77a149eeb"
- integrity sha1-K/8//huz93bPfu/ZHuXLp3oUnus=
- dependencies:
- mdn-data "2.0.6"
- source-map "^0.6.1"
-
-css-what@2.1:
- version "2.1.3"
- resolved "https://registry.npm.taobao.org/css-what/download/css-what-2.1.3.tgz?cache=0&sync_timestamp=1602570915327&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcss-what%2Fdownload%2Fcss-what-2.1.3.tgz#a6d7604573365fe74686c3f311c56513d88285f2"
- integrity sha1-ptdgRXM2X+dGhsPzEcVlE9iChfI=
-
-css-what@^3.2.1:
- version "3.4.2"
- resolved "https://registry.npm.taobao.org/css-what/download/css-what-3.4.2.tgz?cache=0&sync_timestamp=1602570915327&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcss-what%2Fdownload%2Fcss-what-3.4.2.tgz#ea7026fcb01777edbde52124e21f327e7ae950e4"
- integrity sha1-6nAm/LAXd+295SEk4h8yfnrpUOQ=
+css-what@^5.0.0:
+ version "5.0.1"
+ resolved "https://registry.npmjs.org/css-what/-/css-what-5.0.1.tgz#3efa820131f4669a8ac2408f9c32e7c7de9f4cad"
+ integrity sha512-FYDTSHb/7KXsWICVsxdmiExPjCfRC4qRFBdVwv7Ax9hMnvMmEjP9RfxTEZ3qPZGmADDn2vAKSo9UcN1jKVYscg==
css@^2.1.0:
version "2.2.4"
@@ -5464,80 +4885,62 @@ cssfontparser@^1.2.1:
resolved "https://registry.npm.taobao.org/cssfontparser/download/cssfontparser-1.2.1.tgz#f4022fc8f9700c68029d542084afbaf425a3f3e3"
integrity sha1-9AIvyPlwDGgCnVQghK+69CWj8+M=
-cssnano-preset-default@^4.0.7:
- version "4.0.7"
- resolved "https://registry.npm.taobao.org/cssnano-preset-default/download/cssnano-preset-default-4.0.7.tgz?cache=0&sync_timestamp=1599670274749&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcssnano-preset-default%2Fdownload%2Fcssnano-preset-default-4.0.7.tgz#51ec662ccfca0f88b396dcd9679cdb931be17f76"
- integrity sha1-UexmLM/KD4izltzZZ5zbkxvhf3Y=
+cssnano-preset-default@^5.1.4:
+ version "5.1.4"
+ resolved "https://registry.npmjs.org/cssnano-preset-default/-/cssnano-preset-default-5.1.4.tgz#359943bf00c5c8e05489f12dd25f3006f2c1cbd2"
+ integrity sha512-sPpQNDQBI3R/QsYxQvfB4mXeEcWuw0wGtKtmS5eg8wudyStYMgKOQT39G07EbW1LB56AOYrinRS9f0ig4Y3MhQ==
dependencies:
- css-declaration-sorter "^4.0.1"
- cssnano-util-raw-cache "^4.0.1"
- postcss "^7.0.0"
- postcss-calc "^7.0.1"
- postcss-colormin "^4.0.3"
- postcss-convert-values "^4.0.1"
- postcss-discard-comments "^4.0.2"
- postcss-discard-duplicates "^4.0.2"
- postcss-discard-empty "^4.0.1"
- postcss-discard-overridden "^4.0.1"
- postcss-merge-longhand "^4.0.11"
- postcss-merge-rules "^4.0.3"
- postcss-minify-font-values "^4.0.2"
- postcss-minify-gradients "^4.0.2"
- postcss-minify-params "^4.0.2"
- postcss-minify-selectors "^4.0.2"
- postcss-normalize-charset "^4.0.1"
- postcss-normalize-display-values "^4.0.2"
- postcss-normalize-positions "^4.0.2"
- postcss-normalize-repeat-style "^4.0.2"
- postcss-normalize-string "^4.0.2"
- postcss-normalize-timing-functions "^4.0.2"
- postcss-normalize-unicode "^4.0.1"
- postcss-normalize-url "^4.0.1"
- postcss-normalize-whitespace "^4.0.2"
- postcss-ordered-values "^4.1.2"
- postcss-reduce-initial "^4.0.3"
- postcss-reduce-transforms "^4.0.2"
- postcss-svgo "^4.0.2"
- postcss-unique-selectors "^4.0.1"
+ css-declaration-sorter "^6.0.3"
+ cssnano-utils "^2.0.1"
+ postcss-calc "^8.0.0"
+ postcss-colormin "^5.2.0"
+ postcss-convert-values "^5.0.1"
+ postcss-discard-comments "^5.0.1"
+ postcss-discard-duplicates "^5.0.1"
+ postcss-discard-empty "^5.0.1"
+ postcss-discard-overridden "^5.0.1"
+ postcss-merge-longhand "^5.0.2"
+ postcss-merge-rules "^5.0.2"
+ postcss-minify-font-values "^5.0.1"
+ postcss-minify-gradients "^5.0.2"
+ postcss-minify-params "^5.0.1"
+ postcss-minify-selectors "^5.1.0"
+ postcss-normalize-charset "^5.0.1"
+ postcss-normalize-display-values "^5.0.1"
+ postcss-normalize-positions "^5.0.1"
+ postcss-normalize-repeat-style "^5.0.1"
+ postcss-normalize-string "^5.0.1"
+ postcss-normalize-timing-functions "^5.0.1"
+ postcss-normalize-unicode "^5.0.1"
+ postcss-normalize-url "^5.0.2"
+ postcss-normalize-whitespace "^5.0.1"
+ postcss-ordered-values "^5.0.2"
+ postcss-reduce-initial "^5.0.1"
+ postcss-reduce-transforms "^5.0.1"
+ postcss-svgo "^5.0.2"
+ postcss-unique-selectors "^5.0.1"
-cssnano-util-get-arguments@^4.0.0:
- version "4.0.0"
- resolved "https://registry.npm.taobao.org/cssnano-util-get-arguments/download/cssnano-util-get-arguments-4.0.0.tgz#ed3a08299f21d75741b20f3b81f194ed49cc150f"
- integrity sha1-7ToIKZ8h11dBsg87gfGU7UnMFQ8=
+cssnano-utils@^2.0.1:
+ version "2.0.1"
+ resolved "https://registry.npmjs.org/cssnano-utils/-/cssnano-utils-2.0.1.tgz#8660aa2b37ed869d2e2f22918196a9a8b6498ce2"
+ integrity sha512-i8vLRZTnEH9ubIyfdZCAdIdgnHAUeQeByEeQ2I7oTilvP9oHO6RScpeq3GsFUVqeB8uZgOQ9pw8utofNn32hhQ==
-cssnano-util-get-match@^4.0.0:
- version "4.0.0"
- resolved "https://registry.npm.taobao.org/cssnano-util-get-match/download/cssnano-util-get-match-4.0.0.tgz#c0e4ca07f5386bb17ec5e52250b4f5961365156d"
- integrity sha1-wOTKB/U4a7F+xeUiULT1lhNlFW0=
-
-cssnano-util-raw-cache@^4.0.1:
- version "4.0.1"
- resolved "https://registry.npm.taobao.org/cssnano-util-raw-cache/download/cssnano-util-raw-cache-4.0.1.tgz#b26d5fd5f72a11dfe7a7846fb4c67260f96bf282"
- integrity sha1-sm1f1fcqEd/np4RvtMZyYPlr8oI=
+cssnano@^5.0.8:
+ version "5.0.8"
+ resolved "https://registry.npmjs.org/cssnano/-/cssnano-5.0.8.tgz#39ad166256980fcc64faa08c9bb18bb5789ecfa9"
+ integrity sha512-Lda7geZU0Yu+RZi2SGpjYuQz4HI4/1Y+BhdD0jL7NXAQ5larCzVn+PUGuZbDMYz904AXXCOgO5L1teSvgu7aFg==
dependencies:
- postcss "^7.0.0"
+ cssnano-preset-default "^5.1.4"
+ is-resolvable "^1.1.0"
+ lilconfig "^2.0.3"
+ yaml "^1.10.2"
-cssnano-util-same-parent@^4.0.0:
- version "4.0.1"
- resolved "https://registry.npm.taobao.org/cssnano-util-same-parent/download/cssnano-util-same-parent-4.0.1.tgz#574082fb2859d2db433855835d9a8456ea18bbf3"
- integrity sha1-V0CC+yhZ0ttDOFWDXZqEVuoYu/M=
-
-cssnano@4.1.10:
- version "4.1.10"
- resolved "https://registry.npm.taobao.org/cssnano/download/cssnano-4.1.10.tgz#0ac41f0b13d13d465487e111b778d42da631b8b2"
- integrity sha1-CsQfCxPRPUZUh+ERt3jULaYxuLI=
+csso@^4.2.0:
+ version "4.2.0"
+ resolved "https://registry.npmjs.org/csso/-/csso-4.2.0.tgz#ea3a561346e8dc9f546d6febedd50187cf389529"
+ integrity sha512-wvlcdIbf6pwKEk7vHj8/Bkc0B4ylXZruLvOgs9doS5eOsOpuodOV2zJChSpkp+pRpYQLQMeF04nr3Z68Sta9jA==
dependencies:
- cosmiconfig "^5.0.0"
- cssnano-preset-default "^4.0.7"
- is-resolvable "^1.0.0"
- postcss "^7.0.0"
-
-csso@^4.0.2:
- version "4.0.3"
- resolved "https://registry.npm.taobao.org/csso/download/csso-4.0.3.tgz#0d9985dc852c7cc2b2cacfbbe1079014d1a8e903"
- integrity sha1-DZmF3IUsfMKyys+74QeQFNGo6QM=
- dependencies:
- css-tree "1.0.0-alpha.39"
+ css-tree "^1.1.2"
cssom@^0.4.4:
version "0.4.4"
@@ -5609,21 +5012,21 @@ debounce-fn@^4.0.0:
dependencies:
mimic-fn "^3.0.0"
-debug@2.6.9, debug@^2.2.0, debug@^2.3.3, debug@^2.6.8, debug@^2.6.9:
+debug@4, debug@4.3.2, debug@^4.0.0, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1:
+ version "4.3.2"
+ resolved "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz#f0a49c18ac8779e31d4a0c6029dfb76873c7428b"
+ integrity sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==
+ dependencies:
+ ms "2.1.2"
+
+debug@^2.2.0, debug@^2.3.3, debug@^2.6.8, debug@^2.6.9:
version "2.6.9"
resolved "https://registry.npm.taobao.org/debug/download/debug-2.6.9.tgz?cache=0&sync_timestamp=1600502822029&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdebug%2Fdownload%2Fdebug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
integrity sha1-XRKFFd8TT/Mn6QpMk/Tgd6U2NB8=
dependencies:
ms "2.0.0"
-debug@4.3.1, debug@^4.0.0, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.2.0, debug@^4.3.1:
- version "4.3.1"
- resolved "https://registry.npm.taobao.org/debug/download/debug-4.3.1.tgz?cache=0&sync_timestamp=1607566571506&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdebug%2Fdownload%2Fdebug-4.3.1.tgz#f0d229c505e0c6d8c49ac553d1b13dc183f6b2ee"
- integrity sha1-8NIpxQXgxtjEmsVT0bE9wYP2su4=
- dependencies:
- ms "2.1.2"
-
-debug@^3.1.1, debug@^3.2.6, debug@^3.2.7:
+debug@^3.2.6, debug@^3.2.7:
version "3.2.7"
resolved "https://registry.npm.taobao.org/debug/download/debug-3.2.7.tgz?cache=0&sync_timestamp=1607566571506&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdebug%2Fdownload%2Fdebug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a"
integrity sha1-clgLfpFF+zm2Z2+cXl+xALk0F5o=
@@ -5677,18 +5080,6 @@ dedent@^0.7.0:
resolved "https://registry.npm.taobao.org/dedent/download/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c"
integrity sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw=
-deep-equal@^1.0.1:
- version "1.1.1"
- resolved "https://registry.npm.taobao.org/deep-equal/download/deep-equal-1.1.1.tgz#b5c98c942ceffaf7cb051e24e1434a25a2e6076a"
- integrity sha1-tcmMlCzv+vfLBR4k4UNKJaLmB2o=
- dependencies:
- is-arguments "^1.0.4"
- is-date-object "^1.0.1"
- is-regex "^1.0.4"
- object-is "^1.0.1"
- object-keys "^1.1.1"
- regexp.prototype.flags "^1.2.0"
-
deep-extend@^0.6.0:
version "0.6.0"
resolved "https://registry.npm.taobao.org/deep-extend/download/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac"
@@ -5711,14 +5102,6 @@ default-compare@^1.0.0:
dependencies:
kind-of "^5.0.2"
-default-gateway@^4.2.0:
- version "4.2.0"
- resolved "https://registry.npm.taobao.org/default-gateway/download/default-gateway-4.2.0.tgz?cache=0&sync_timestamp=1610365857779&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdefault-gateway%2Fdownload%2Fdefault-gateway-4.2.0.tgz#167104c7500c2115f6dd69b0a536bb8ed720552b"
- integrity sha1-FnEEx1AMIRX23WmwpTa7jtcgVSs=
- dependencies:
- execa "^1.0.0"
- ip-regex "^2.1.0"
-
default-resolution@^2.0.0:
version "2.0.0"
resolved "https://registry.npm.taobao.org/default-resolution/download/default-resolution-2.0.0.tgz#bcb82baa72ad79b426a76732f1a81ad6df26d684"
@@ -5770,29 +5153,11 @@ define-property@^2.0.2:
is-descriptor "^1.0.2"
isobject "^3.0.1"
-del@^4.1.1:
- version "4.1.1"
- resolved "https://registry.npm.taobao.org/del/download/del-4.1.1.tgz#9e8f117222ea44a31ff3a156c049b99052a9f0b4"
- integrity sha1-no8RciLqRKMf86FWwEm5kFKp8LQ=
- dependencies:
- "@types/glob" "^7.1.1"
- globby "^6.1.0"
- is-path-cwd "^2.0.0"
- is-path-in-cwd "^2.0.0"
- p-map "^2.0.0"
- pify "^4.0.1"
- rimraf "^2.6.3"
-
delayed-stream@~1.0.0:
version "1.0.0"
resolved "https://registry.npm.taobao.org/delayed-stream/download/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619"
integrity sha1-3zrhmayt+31ECqrgsp4icrJOxhk=
-depd@~1.1.2:
- version "1.1.2"
- resolved "https://registry.npm.taobao.org/depd/download/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9"
- integrity sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=
-
deprecated-obj@2.0.0:
version "2.0.0"
resolved "https://registry.npm.taobao.org/deprecated-obj/download/deprecated-obj-2.0.0.tgz#e6ba93a3989f6ed18d685e7d99fb8d469b4beffc"
@@ -5806,11 +5171,6 @@ deprecation@^2.0.0, deprecation@^2.3.1:
resolved "https://registry.npm.taobao.org/deprecation/download/deprecation-2.3.1.tgz#6368cbdb40abf3373b525ac87e4a260c3a700919"
integrity sha1-Y2jL20Cr8zc7UlrIfkomDDpwCRk=
-destroy@~1.0.4:
- version "1.0.4"
- resolved "https://registry.npm.taobao.org/destroy/download/destroy-1.0.4.tgz#978857442c44749e4206613e37946205826abd80"
- integrity sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=
-
detect-file@^1.0.0:
version "1.0.0"
resolved "https://registry.npm.taobao.org/detect-file/download/detect-file-1.0.0.tgz#f0d66d03672a825cb1b73bdb3fe62310c8e552b7"
@@ -5828,11 +5188,6 @@ detect-newline@^3.0.0:
resolved "https://registry.npm.taobao.org/detect-newline/download/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651"
integrity sha1-V29d/GOuGhkv8ZLYrTr2MImRtlE=
-detect-node@^2.0.4:
- version "2.0.5"
- resolved "https://registry.npm.taobao.org/detect-node/download/detect-node-2.0.5.tgz?cache=0&sync_timestamp=1615921320304&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdetect-node%2Fdownload%2Fdetect-node-2.0.5.tgz#9d270aa7eaa5af0b72c4c9d9b814e7f4ce738b79"
- integrity sha1-nScKp+qlrwtyxMnZuBTn9M5zi3k=
-
dezalgo@^1.0.0:
version "1.0.3"
resolved "https://registry.npm.taobao.org/dezalgo/download/dezalgo-1.0.3.tgz#7f742de066fc748bc8db820569dddce49bf0d456"
@@ -5841,15 +5196,15 @@ dezalgo@^1.0.0:
asap "^2.0.0"
wrappy "1"
-diff-sequences@^26.6.2:
- version "26.6.2"
- resolved "https://registry.npm.taobao.org/diff-sequences/download/diff-sequences-26.6.2.tgz?cache=0&sync_timestamp=1607352548704&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdiff-sequences%2Fdownload%2Fdiff-sequences-26.6.2.tgz#48ba99157de1923412eed41db6b6d4aa9ca7c0b1"
- integrity sha1-SLqZFX3hkjQS7tQdtrbUqpynwLE=
+diff-sequences@^27.0.6:
+ version "27.0.6"
+ resolved "https://registry.npmjs.org/diff-sequences/-/diff-sequences-27.0.6.tgz#3305cb2e55a033924054695cc66019fd7f8e5723"
+ integrity sha512-ag6wfpBFyNXZ0p8pcuIDS//D8H062ZQJ3fzYxjpmeKjnz8W4pekL3AI8VohmyZmsWW2PWaHgjsmqR6L13101VQ==
-diffable-html@^4.0.0:
- version "4.0.0"
- resolved "https://registry.npm.taobao.org/diffable-html/download/diffable-html-4.0.0.tgz#eb44a189785115bacd04829f31658fcd3c0ce590"
- integrity sha1-60ShiXhRFbrNBIKfMWWPzTwM5ZA=
+diffable-html@^4.1.0:
+ version "4.1.0"
+ resolved "https://registry.npmjs.org/diffable-html/-/diffable-html-4.1.0.tgz#e7a2d1de187c4e23a59751b4e4c17483a058c696"
+ integrity sha512-++kyNek+YBLH8cLXS+iTj/Hiy2s5qkRJEJ8kgu/WHbFrVY2vz9xPFUT+fii2zGF0m1CaojDlQJjkfrCt7YWM1g==
dependencies:
htmlparser2 "^3.9.2"
@@ -5867,26 +5222,6 @@ dir-glob@^3.0.1:
dependencies:
path-type "^4.0.0"
-dns-equal@^1.0.0:
- version "1.0.0"
- resolved "https://registry.npm.taobao.org/dns-equal/download/dns-equal-1.0.0.tgz#b39e7f1da6eb0a75ba9c17324b34753c47e0654d"
- integrity sha1-s55/HabrCnW6nBcySzR1PEfgZU0=
-
-dns-packet@^1.3.1:
- version "1.3.1"
- resolved "https://registry.npm.taobao.org/dns-packet/download/dns-packet-1.3.1.tgz#12aa426981075be500b910eedcd0b47dd7deda5a"
- integrity sha1-EqpCaYEHW+UAuRDu3NC0fdfe2lo=
- dependencies:
- ip "^1.1.0"
- safe-buffer "^5.0.1"
-
-dns-txt@^2.0.2:
- version "2.0.2"
- resolved "https://registry.npm.taobao.org/dns-txt/download/dns-txt-2.0.2.tgz#b91d806f5d27188e4ab3e7d107d881a1cc4642b6"
- integrity sha1-uR2Ab10nGI5Ks+fRB9iBocxGQrY=
- dependencies:
- buffer-indexof "^1.0.0"
-
doctrine@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d"
@@ -5901,13 +5236,6 @@ doctrine@^3.0.0:
dependencies:
esutils "^2.0.2"
-dom-converter@^0.2:
- version "0.2.0"
- resolved "https://registry.npm.taobao.org/dom-converter/download/dom-converter-0.2.0.tgz#6721a9daee2e293682955b6afe416771627bb768"
- integrity sha1-ZyGp2u4uKTaClVtq/kFncWJ7t2g=
- dependencies:
- utila "~0.4"
-
dom-serializer@0:
version "0.2.2"
resolved "https://registry.npm.taobao.org/dom-serializer/download/dom-serializer-0.2.2.tgz?cache=0&sync_timestamp=1600026762467&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdom-serializer%2Fdownload%2Fdom-serializer-0.2.2.tgz#1afb81f533717175d478655debc5e332d9f9bb51"
@@ -5916,6 +5244,15 @@ dom-serializer@0:
domelementtype "^2.0.1"
entities "^2.0.0"
+dom-serializer@^1.0.1:
+ version "1.3.2"
+ resolved "https://registry.npmjs.org/dom-serializer/-/dom-serializer-1.3.2.tgz#6206437d32ceefaec7161803230c7a20bc1b4d91"
+ integrity sha512-5c54Bk5Dw4qAxNOI1pFEizPSjVsx5+bpJKmL2kPn8JhBUq2q09tTCa3mjijun2NfK78NMouDYNMBkOrPZiS+ig==
+ dependencies:
+ domelementtype "^2.0.1"
+ domhandler "^4.2.0"
+ entities "^2.0.0"
+
dom-walk@^0.1.0:
version "0.1.2"
resolved "https://registry.npm.taobao.org/dom-walk/download/dom-walk-0.1.2.tgz#0c548bef048f4d1f2a97249002236060daa3fd84"
@@ -5926,10 +5263,10 @@ domelementtype@1, domelementtype@^1.3.1:
resolved "https://registry.npm.taobao.org/domelementtype/download/domelementtype-1.3.1.tgz#d048c44b37b0d10a7f2a3d5fee3f4333d790481f"
integrity sha1-0EjESzew0Qp/Kj1f7j9DM9eQSB8=
-domelementtype@^2.0.1:
- version "2.0.2"
- resolved "https://registry.npm.taobao.org/domelementtype/download/domelementtype-2.0.2.tgz#f3b6e549201e46f588b59463dd77187131fe6971"
- integrity sha1-87blSSAeRvWItZRj3XcYcTH+aXE=
+domelementtype@^2.0.1, domelementtype@^2.2.0:
+ version "2.2.0"
+ resolved "https://registry.npmjs.org/domelementtype/-/domelementtype-2.2.0.tgz#9a0b6c2782ed6a1c7323d42267183df9bd8b1d57"
+ integrity sha512-DtBMo82pv1dFtUmHyr48beiuq792Sxohr+8Hm9zoxklYPfa6n0Z3Byjj2IV7bmr2IyqClnqEQhfgHJJ5QF0R5A==
domexception@^2.0.1:
version "2.0.1"
@@ -5945,15 +5282,14 @@ domhandler@^2.3.0:
dependencies:
domelementtype "1"
-domutils@1.5.1:
- version "1.5.1"
- resolved "https://registry.npm.taobao.org/domutils/download/domutils-1.5.1.tgz?cache=0&sync_timestamp=1601761294162&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdomutils%2Fdownload%2Fdomutils-1.5.1.tgz#dcd8488a26f563d61079e48c9f7b7e32373682cf"
- integrity sha1-3NhIiib1Y9YQeeSMn3t+Mjc2gs8=
+domhandler@^4.2.0:
+ version "4.2.2"
+ resolved "https://registry.npmjs.org/domhandler/-/domhandler-4.2.2.tgz#e825d721d19a86b8c201a35264e226c678ee755f"
+ integrity sha512-PzE9aBMsdZO8TK4BnuJwH0QT41wgMbRzuZrHUcpYncEjmQazq8QEaBWgLG7ZyC/DAZKEgglpIA6j4Qn/HmxS3w==
dependencies:
- dom-serializer "0"
- domelementtype "1"
+ domelementtype "^2.2.0"
-domutils@^1.5.1, domutils@^1.7.0:
+domutils@^1.5.1:
version "1.7.0"
resolved "https://registry.npm.taobao.org/domutils/download/domutils-1.7.0.tgz?cache=0&sync_timestamp=1601761294162&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdomutils%2Fdownload%2Fdomutils-1.7.0.tgz#56ea341e834e06e6748af7a1cb25da67ea9f8c2a"
integrity sha1-Vuo0HoNOBuZ0ivehyyXaZ+qfjCo=
@@ -5961,6 +5297,15 @@ domutils@^1.5.1, domutils@^1.7.0:
dom-serializer "0"
domelementtype "1"
+domutils@^2.6.0:
+ version "2.8.0"
+ resolved "https://registry.npmjs.org/domutils/-/domutils-2.8.0.tgz#4437def5db6e2d1f5d6ee859bd95ca7d02048135"
+ integrity sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==
+ dependencies:
+ dom-serializer "^1.0.1"
+ domelementtype "^2.2.0"
+ domhandler "^4.2.0"
+
dot-case@^3.0.3:
version "3.0.3"
resolved "https://registry.npm.taobao.org/dot-case/download/dot-case-3.0.3.tgz#21d3b52efaaba2ea5fda875bb1aa8124521cf4aa"
@@ -5983,6 +5328,16 @@ dot-prop@^6.0.1:
dependencies:
is-obj "^2.0.0"
+dotenv-expand@^5.1.0:
+ version "5.1.0"
+ resolved "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-5.1.0.tgz#3fbaf020bfd794884072ea26b1e9791d45a629f0"
+ integrity sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA==
+
+dotenv@^10.0.0:
+ version "10.0.0"
+ resolved "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz#3d4227b8fb95f81096cdd2b66653fb2c7085ba81"
+ integrity sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==
+
duplexer3@^0.1.4:
version "0.1.4"
resolved "https://registry.npm.taobao.org/duplexer3/download/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2"
@@ -6014,25 +5369,27 @@ ecc-jsbn@~0.1.1:
jsbn "~0.1.0"
safer-buffer "^2.1.0"
-ee-first@1.1.1:
- version "1.1.1"
- resolved "https://registry.npm.taobao.org/ee-first/download/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d"
- integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=
+ejs@^3.1.6:
+ version "3.1.6"
+ resolved "https://registry.npmjs.org/ejs/-/ejs-3.1.6.tgz#5bfd0a0689743bb5268b3550cceeebbc1702822a"
+ integrity sha512-9lt9Zse4hPucPkoP7FHDF0LQAlGyF9JVpnClFLFH3aSSbxmyoqINRpp/9wePWJTUl4KOQwRL72Iw3InHPDkoGw==
+ dependencies:
+ jake "^10.6.1"
-electron-to-chromium@^1.3.30, electron-to-chromium@^1.3.723:
- version "1.3.752"
- resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.752.tgz#0728587f1b9b970ec9ffad932496429aef750d09"
- integrity sha512-2Tg+7jSl3oPxgsBsWKh5H83QazTkmWG/cnNwJplmyZc7KcN61+I10oUgaXSVk/NwfvN3BdkKDR4FYuRBQQ2v0A==
+electron-to-chromium@^1.3.846:
+ version "1.3.846"
+ resolved "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.846.tgz#a55fd59613dbcaed609e965e3e88f42b08c401d3"
+ integrity sha512-2jtSwgyiRzybHRxrc2nKI+39wH3AwQgn+sogQ+q814gv8hIFwrcZbV07Ea9f8AmK0ufPVZUvvAG1uZJ+obV4Jw==
email-addresses@^3.0.1:
version "3.1.0"
resolved "https://registry.npm.taobao.org/email-addresses/download/email-addresses-3.1.0.tgz#cabf7e085cbdb63008a70319a74e6136188812fb"
integrity sha1-yr9+CFy9tjAIpwMZp05hNhiIEvs=
-emittery@^0.7.1:
- version "0.7.2"
- resolved "https://registry.npm.taobao.org/emittery/download/emittery-0.7.2.tgz#25595908e13af0f5674ab419396e2fb394cdfa82"
- integrity sha1-JVlZCOE68PVnSrQZOW4vs5TN+oI=
+emittery@^0.8.1:
+ version "0.8.1"
+ resolved "https://registry.npmjs.org/emittery/-/emittery-0.8.1.tgz#bb23cc86d03b30aa75a7f734819dee2e1ba70860"
+ integrity sha512-uDfvUjVrfGJJhymx/kz6prltenw1u7WrCg1oa94zYY8xxVpLLUu045LAT0dhDZdXG58/EpPL/5kA180fQ/qudg==
emoji-regex@^7.0.1:
version "7.0.3"
@@ -6044,16 +5401,6 @@ emoji-regex@^8.0.0:
resolved "https://registry.npm.taobao.org/emoji-regex/download/emoji-regex-8.0.0.tgz?cache=0&sync_timestamp=1602593526378&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Femoji-regex%2Fdownload%2Femoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37"
integrity sha1-6Bj9ac5cz8tARZT4QpY79TFkzDc=
-emojis-list@^3.0.0:
- version "3.0.0"
- resolved "https://registry.npm.taobao.org/emojis-list/download/emojis-list-3.0.0.tgz#5570662046ad29e2e916e71aae260abdff4f6a78"
- integrity sha1-VXBmIEatKeLpFucariYKvf9Pang=
-
-encodeurl@~1.0.2:
- version "1.0.2"
- resolved "https://registry.npm.taobao.org/encodeurl/download/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59"
- integrity sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=
-
end-of-stream@^1.0.0, end-of-stream@^1.1.0:
version "1.4.4"
resolved "https://registry.npm.taobao.org/end-of-stream/download/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0"
@@ -6061,14 +5408,6 @@ end-of-stream@^1.0.0, end-of-stream@^1.1.0:
dependencies:
once "^1.4.0"
-enhanced-resolve@^5.8.0:
- version "5.8.2"
- resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.8.2.tgz#15ddc779345cbb73e97c611cd00c01c1e7bf4d8b"
- integrity sha512-F27oB3WuHDzvR2DOGNTaYy0D5o0cnrv8TeI482VM4kYgQd/FT9lUQwuNsJ0oOHtBUq7eiW5ytqzp7nBFknL+GA==
- dependencies:
- graceful-fs "^4.2.4"
- tapable "^2.2.0"
-
enquirer@^2.3.5, enquirer@^2.3.6:
version "2.3.6"
resolved "https://registry.npm.taobao.org/enquirer/download/enquirer-2.3.6.tgz#2a7fe5dd634a1e4125a975ec994ff5456dc3734d"
@@ -6092,9 +5431,9 @@ env-paths@^2.2.0:
integrity sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==
errno@^0.1.1, errno@^0.1.3:
- version "0.1.7"
- resolved "https://registry.npm.taobao.org/errno/download/errno-0.1.7.tgz#4684d71779ad39af177e3f007996f7c67c852618"
- integrity sha1-RoTXF3mtOa8Xfj8AeZb3xnyFJhg=
+ version "0.1.8"
+ resolved "https://registry.npmjs.org/errno/-/errno-0.1.8.tgz#8bb3e9c7d463be4976ff888f76b4809ebc2e811f"
+ integrity sha512-dJ6oBr5SQ1VSd9qkk7ByRgb/1SH4JZjCHSW/mr63/QcXO9zLVxvJ6Oy13nio03rxpSnVDDjFor75SjVeZWPW/A==
dependencies:
prr "~1.0.1"
@@ -6105,24 +5444,7 @@ error-ex@^1.2.0, error-ex@^1.3.1:
dependencies:
is-arrayish "^0.2.1"
-es-abstract@^1.17.0-next.1, es-abstract@^1.17.2, es-abstract@^1.17.5:
- version "1.17.7"
- resolved "https://registry.npm.taobao.org/es-abstract/download/es-abstract-1.17.7.tgz?cache=0&sync_timestamp=1601503031703&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fes-abstract%2Fdownload%2Fes-abstract-1.17.7.tgz#a4de61b2f66989fc7421676c1cb9787573ace54c"
- integrity sha1-pN5hsvZpifx0IWdsHLl4dXOs5Uw=
- dependencies:
- es-to-primitive "^1.2.1"
- function-bind "^1.1.1"
- has "^1.0.3"
- has-symbols "^1.0.1"
- is-callable "^1.2.2"
- is-regex "^1.1.1"
- object-inspect "^1.8.0"
- object-keys "^1.1.1"
- object.assign "^4.1.1"
- string.prototype.trimend "^1.0.1"
- string.prototype.trimstart "^1.0.1"
-
-es-abstract@^1.18.0-next.1, es-abstract@^1.18.0-next.2, es-abstract@^1.18.2:
+es-abstract@^1.17.5, es-abstract@^1.18.0-next.1, es-abstract@^1.18.0-next.2, es-abstract@^1.18.2:
version "1.18.5"
resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.18.5.tgz#9b10de7d4c206a3581fd5b2124233e04db49ae19"
integrity sha512-DDggyJLoS91CkJjgauM5c0yZMjiD1uK3KcaCeAmffGwZ+ODWzOkPN4QwRbsK5DOFf06fywmyLci3ZD8jLGhVYA==
@@ -6145,11 +5467,6 @@ es-abstract@^1.18.0-next.1, es-abstract@^1.18.0-next.2, es-abstract@^1.18.2:
string.prototype.trimstart "^1.0.4"
unbox-primitive "^1.0.1"
-es-module-lexer@^0.4.0:
- version "0.4.1"
- resolved "https://registry.npm.taobao.org/es-module-lexer/download/es-module-lexer-0.4.1.tgz?cache=0&sync_timestamp=1614787418359&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fes-module-lexer%2Fdownload%2Fes-module-lexer-0.4.1.tgz#dda8c6a14d8f340a24e34331e0fab0cb50438e0e"
- integrity sha1-3ajGoU2PNAok40Mx4Pqwy1BDjg4=
-
es-to-primitive@^1.2.1:
version "1.2.1"
resolved "https://registry.npm.taobao.org/es-to-primitive/download/es-to-primitive-1.2.1.tgz#e55cd4c9cdc188bcefb03b366c736323fc5c898a"
@@ -6195,6 +5512,11 @@ es6-weak-map@^2.0.1:
es6-iterator "^2.0.3"
es6-symbol "^3.1.1"
+esbuild@^0.12.17:
+ version "0.12.29"
+ resolved "https://registry.npmjs.org/esbuild/-/esbuild-0.12.29.tgz#be602db7c4dc78944a9dbde0d1ea19d36c1f882d"
+ integrity sha512-w/XuoBCSwepyiZtIRsKsetiLDUVGPVw1E/R3VTFSecIy8UR7Cq3SOtwKHJMFoVqqVG36aGkzh4e8BvpO1Fdc7g==
+
escalade@^3.1.1:
version "3.1.1"
resolved "https://registry.npm.taobao.org/escalade/download/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40"
@@ -6205,11 +5527,6 @@ escape-goat@^2.0.0:
resolved "https://registry.npm.taobao.org/escape-goat/download/escape-goat-2.1.1.tgz#1b2dc77003676c457ec760b2dc68edb648188675"
integrity sha1-Gy3HcANnbEV+x2Cy3GjttkgYhnU=
-escape-html@~1.0.3:
- version "1.0.3"
- resolved "https://registry.npm.taobao.org/escape-html/download/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988"
- integrity sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=
-
escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5:
version "1.0.5"
resolved "https://registry.npm.taobao.org/escape-string-regexp/download/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
@@ -6305,7 +5622,7 @@ eslint-plugin-vue@^7.15.2:
semver "^6.3.0"
vue-eslint-parser "^7.10.0"
-eslint-scope@5.1.1, eslint-scope@^5.1.1:
+eslint-scope@^5.1.1:
version "5.1.1"
resolved "https://registry.npm.taobao.org/eslint-scope/download/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c"
integrity sha1-54blmmbLkrP2wfsNUIqrF0hI9Iw=
@@ -6337,13 +5654,14 @@ eslint-visitor-keys@^2.0.0:
resolved "https://registry.npm.taobao.org/eslint-visitor-keys/download/eslint-visitor-keys-2.0.0.tgz?cache=0&sync_timestamp=1597435068105&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Feslint-visitor-keys%2Fdownload%2Feslint-visitor-keys-2.0.0.tgz#21fdc8fbcd9c795cc0321f0563702095751511a8"
integrity sha1-If3I+82ceVzAMh8FY3AglXUVEag=
-eslint@^7.28.0:
- version "7.28.0"
- resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.28.0.tgz#435aa17a0b82c13bb2be9d51408b617e49c1e820"
- integrity sha512-UMfH0VSjP0G4p3EWirscJEQ/cHqnT/iuH6oNZOB94nBjWbMnhGEPxsZm1eyIW0C/9jLI0Fow4W5DXLjEI7mn1g==
+eslint@^7.32.0:
+ version "7.32.0"
+ resolved "https://registry.npmjs.org/eslint/-/eslint-7.32.0.tgz#c6d328a14be3fb08c8d1d21e12c02fdb7a2a812d"
+ integrity sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA==
dependencies:
"@babel/code-frame" "7.12.11"
- "@eslint/eslintrc" "^0.4.2"
+ "@eslint/eslintrc" "^0.4.3"
+ "@humanwhocodes/config-array" "^0.5.0"
ajv "^6.10.0"
chalk "^4.0.0"
cross-spawn "^7.0.2"
@@ -6429,7 +5747,7 @@ estraverse@^5.1.0, estraverse@^5.2.0:
resolved "https://registry.npm.taobao.org/estraverse/download/estraverse-5.2.0.tgz#307df42547e6cc7324d3cf03c155d5cdb8c53880"
integrity sha1-MH30JUfmzHMk088DwVXVzbjFOIA=
-estree-walker@^2.0.1:
+estree-walker@^2.0.1, estree-walker@^2.0.2:
version "2.0.2"
resolved "https://registry.npm.taobao.org/estree-walker/download/estree-walker-2.0.2.tgz#52f010178c2a4c117a7757cfe942adb7d2da4cac"
integrity sha1-UvAQF4wqTBF6d1fP6UKtt9LaTKw=
@@ -6439,37 +5757,15 @@ esutils@^2.0.2:
resolved "https://registry.npm.taobao.org/esutils/download/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64"
integrity sha1-dNLrTeC42hKTcRkQ1Qd1ubcQ72Q=
-etag@~1.8.1:
- version "1.8.1"
- resolved "https://registry.npm.taobao.org/etag/download/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887"
- integrity sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=
-
-eventemitter3@^4.0.0, eventemitter3@^4.0.5:
+eventemitter3@^4.0.5:
version "4.0.7"
resolved "https://registry.npm.taobao.org/eventemitter3/download/eventemitter3-4.0.7.tgz?cache=0&sync_timestamp=1598517819668&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Feventemitter3%2Fdownload%2Feventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f"
integrity sha1-Lem2j2Uo1WRO9cWVJqG0oHMGFp8=
-events@^3.2.0:
- version "3.3.0"
- resolved "https://registry.npm.taobao.org/events/download/events-3.3.0.tgz#31a95ad0a924e2d2c419a813aeb2c4e878ea7400"
- integrity sha1-Mala0Kkk4tLEGagTrrLE6HjqdAA=
-
-eventsource@^1.0.7:
- version "1.1.0"
- resolved "https://registry.npm.taobao.org/eventsource/download/eventsource-1.1.0.tgz?cache=0&sync_timestamp=1616041716084&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Feventsource%2Fdownload%2Feventsource-1.1.0.tgz#00e8ca7c92109e94b0ddf32dac677d841028cfaf"
- integrity sha1-AOjKfJIQnpSw3fMtrGd9hBAoz68=
- dependencies:
- original "^1.0.0"
-
-exec-sh@^0.3.2:
- version "0.3.6"
- resolved "https://registry.npm.taobao.org/exec-sh/download/exec-sh-0.3.6.tgz#ff264f9e325519a60cb5e273692943483cca63bc"
- integrity sha1-/yZPnjJVGaYMteJzaSlDSDzKY7w=
-
-execa@5.0.0:
- version "5.0.0"
- resolved "https://registry.npm.taobao.org/execa/download/execa-5.0.0.tgz?cache=0&sync_timestamp=1606971018065&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fexeca%2Fdownload%2Fexeca-5.0.0.tgz#4029b0007998a841fbd1032e5f4de86a3c1e3376"
- integrity sha1-QCmwAHmYqEH70QMuX03oajweM3Y=
+execa@5.1.1, execa@^5.0.0:
+ version "5.1.1"
+ resolved "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd"
+ integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==
dependencies:
cross-spawn "^7.0.3"
get-stream "^6.0.0"
@@ -6481,20 +5777,7 @@ execa@5.0.0:
signal-exit "^3.0.3"
strip-final-newline "^2.0.0"
-execa@^1.0.0:
- version "1.0.0"
- resolved "https://registry.npm.taobao.org/execa/download/execa-1.0.0.tgz#c6236a5bb4df6d6f15e88e7f017798216749ddd8"
- integrity sha1-xiNqW7TfbW8V6I5/AXeYIWdJ3dg=
- dependencies:
- cross-spawn "^6.0.0"
- get-stream "^4.0.0"
- is-stream "^1.1.0"
- npm-run-path "^2.0.0"
- p-finally "^1.0.0"
- signal-exit "^3.0.0"
- strip-eof "^1.0.0"
-
-execa@^4.0.0, execa@^4.0.2, execa@^4.1.0:
+execa@^4.0.2:
version "4.1.0"
resolved "https://registry.npm.taobao.org/execa/download/execa-4.1.0.tgz?cache=0&sync_timestamp=1606971018065&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fexeca%2Fdownload%2Fexeca-4.1.0.tgz#4e5491ad1572f2f17a77d388c6c857135b22847a"
integrity sha1-TlSRrRVy8vF6d9OIxshXE1sihHo=
@@ -6546,53 +5829,17 @@ expand-tilde@^2.0.0, expand-tilde@^2.0.2:
dependencies:
homedir-polyfill "^1.0.1"
-expect@^26.6.2:
- version "26.6.2"
- resolved "https://registry.npm.taobao.org/expect/download/expect-26.6.2.tgz?cache=0&sync_timestamp=1617371995769&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fexpect%2Fdownload%2Fexpect-26.6.2.tgz#c6b996bf26bf3fe18b67b2d0f51fc981ba934417"
- integrity sha1-xrmWvya/P+GLZ7LQ9R/JgbqTRBc=
+expect@^27.2.1:
+ version "27.2.1"
+ resolved "https://registry.npmjs.org/expect/-/expect-27.2.1.tgz#5f882b308716618613f0106a488b46c303908157"
+ integrity sha512-ekOA2mBtT2phxcoPVHCXIzbJxCvRXhx2fr7m28IgGdZxUOh8UvxvoRz1FcPlfgZMpE92biHB6woIcAKXqR28hA==
dependencies:
- "@jest/types" "^26.6.2"
- ansi-styles "^4.0.0"
- jest-get-type "^26.3.0"
- jest-matcher-utils "^26.6.2"
- jest-message-util "^26.6.2"
- jest-regex-util "^26.0.0"
-
-express@^4.17.1:
- version "4.17.1"
- resolved "https://registry.npm.taobao.org/express/download/express-4.17.1.tgz?cache=0&sync_timestamp=1596722127254&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fexpress%2Fdownload%2Fexpress-4.17.1.tgz#4491fc38605cf51f8629d39c2b5d026f98a4c134"
- integrity sha1-RJH8OGBc9R+GKdOcK10Cb5ikwTQ=
- dependencies:
- accepts "~1.3.7"
- array-flatten "1.1.1"
- body-parser "1.19.0"
- content-disposition "0.5.3"
- content-type "~1.0.4"
- cookie "0.4.0"
- cookie-signature "1.0.6"
- debug "2.6.9"
- depd "~1.1.2"
- encodeurl "~1.0.2"
- escape-html "~1.0.3"
- etag "~1.8.1"
- finalhandler "~1.1.2"
- fresh "0.5.2"
- merge-descriptors "1.0.1"
- methods "~1.1.2"
- on-finished "~2.3.0"
- parseurl "~1.3.3"
- path-to-regexp "0.1.7"
- proxy-addr "~2.0.5"
- qs "6.7.0"
- range-parser "~1.2.1"
- safe-buffer "5.1.2"
- send "0.17.1"
- serve-static "1.14.1"
- setprototypeof "1.1.1"
- statuses "~1.5.0"
- type-is "~1.6.18"
- utils-merge "1.0.1"
- vary "~1.1.2"
+ "@jest/types" "^27.1.1"
+ ansi-styles "^5.0.0"
+ jest-get-type "^27.0.6"
+ jest-matcher-utils "^27.2.0"
+ jest-message-util "^27.2.0"
+ jest-regex-util "^27.0.6"
ext@^1.1.2:
version "1.4.0"
@@ -6688,17 +5935,16 @@ fast-glob@^2.2.6:
merge2 "^1.2.3"
micromatch "^3.1.10"
-fast-glob@^3.1.1, fast-glob@^3.2.2, fast-glob@^3.2.5:
- version "3.2.5"
- resolved "https://registry.npm.taobao.org/fast-glob/download/fast-glob-3.2.5.tgz?cache=0&sync_timestamp=1610876590762&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffast-glob%2Fdownload%2Ffast-glob-3.2.5.tgz#7939af2a656de79a4f1901903ee8adcaa7cb9661"
- integrity sha1-eTmvKmVt55pPGQGQPuityqfLlmE=
+fast-glob@^3.1.1, fast-glob@^3.2.2, fast-glob@^3.2.5, fast-glob@^3.2.7:
+ version "3.2.7"
+ resolved "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.7.tgz#fd6cb7a2d7e9aa7a7846111e85a196d6b2f766a1"
+ integrity sha512-rYGMRwip6lUMvYD3BTScMwT1HtAs2d71SMv66Vrxs0IekGZEjhM0pcMfjQPnknBt2zeCwQMEupiN02ZP4DiT1Q==
dependencies:
"@nodelib/fs.stat" "^2.0.2"
"@nodelib/fs.walk" "^1.2.3"
- glob-parent "^5.1.0"
+ glob-parent "^5.1.2"
merge2 "^1.3.0"
- micromatch "^4.0.2"
- picomatch "^2.2.1"
+ micromatch "^4.0.4"
fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.0.0:
version "2.1.0"
@@ -6727,13 +5973,6 @@ fastq@^1.6.0:
dependencies:
reusify "^1.0.4"
-faye-websocket@^0.11.3:
- version "0.11.3"
- resolved "https://registry.npm.taobao.org/faye-websocket/download/faye-websocket-0.11.3.tgz#5c0e9a8968e8912c286639fde977a8b209f2508e"
- integrity sha1-XA6aiWjokSwoZjn96XeosgnyUI4=
- dependencies:
- websocket-driver ">=0.5.1"
-
fb-watchman@^2.0.0:
version "2.0.1"
resolved "https://registry.npm.taobao.org/fb-watchman/download/fb-watchman-2.0.1.tgz#fc84fb39d2709cf3ff6d743706157bb5708a8a85"
@@ -6741,7 +5980,7 @@ fb-watchman@^2.0.0:
dependencies:
bser "2.1.1"
-figures@^3.0.0, figures@^3.2.0:
+figures@^3.0.0:
version "3.2.0"
resolved "https://registry.npm.taobao.org/figures/download/figures-3.2.0.tgz#625c18bd293c604dc4a8ddb2febf0c88341746af"
integrity sha1-YlwYvSk8YE3EqN2y/r8MiDQXRq8=
@@ -6765,26 +6004,25 @@ file-uri-to-path@1.0.0:
resolved "https://registry.npm.taobao.org/file-uri-to-path/download/file-uri-to-path-1.0.0.tgz#553a7b8446ff6f684359c445f1e37a05dacc33dd"
integrity sha1-VTp7hEb/b2hDWcRF8eN6BdrMM90=
-filename-reserved-regex@^1.0.0:
- version "1.0.0"
- resolved "https://registry.npm.taobao.org/filename-reserved-regex/download/filename-reserved-regex-1.0.0.tgz#e61cf805f0de1c984567d0386dc5df50ee5af7e4"
- integrity sha1-5hz4BfDeHJhFZ9A4bcXfUO5a9+Q=
-
-filenamify-url@^1.0.0:
- version "1.0.0"
- resolved "https://registry.npm.taobao.org/filenamify-url/download/filenamify-url-1.0.0.tgz#b32bd81319ef5863b73078bed50f46a4f7975f50"
- integrity sha1-syvYExnvWGO3MHi+1Q9GpPeXX1A=
+filelist@^1.0.1:
+ version "1.0.2"
+ resolved "https://registry.npmjs.org/filelist/-/filelist-1.0.2.tgz#80202f21462d4d1c2e214119b1807c1bc0380e5b"
+ integrity sha512-z7O0IS8Plc39rTCq6i6iHxk43duYOn8uFJiWSewIq0Bww1RNybVHSCjahmcC87ZqAm4OTvFzlzeGu3XAzG1ctQ==
dependencies:
- filenamify "^1.0.0"
- humanize-url "^1.0.0"
+ minimatch "^3.0.4"
-filenamify@^1.0.0:
- version "1.2.1"
- resolved "https://registry.npm.taobao.org/filenamify/download/filenamify-1.2.1.tgz?cache=0&sync_timestamp=1600940508592&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffilenamify%2Fdownload%2Ffilenamify-1.2.1.tgz#a9f2ffd11c503bed300015029272378f1f1365a5"
- integrity sha1-qfL/0RxQO+0wABUCknI3jx8TZaU=
+filename-reserved-regex@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.npmjs.org/filename-reserved-regex/-/filename-reserved-regex-2.0.0.tgz#abf73dfab735d045440abfea2d91f389ebbfa229"
+ integrity sha1-q/c9+rc10EVECr/qLZHzieu/oik=
+
+filenamify@^4.3.0:
+ version "4.3.0"
+ resolved "https://registry.npmjs.org/filenamify/-/filenamify-4.3.0.tgz#62391cb58f02b09971c9d4f9d63b3cf9aba03106"
+ integrity sha512-hcFKyUG57yWGAzu1CMt/dPzYZuv+jAJUT85bL8mrXvNe6hWj6yEHEc4EdcgiA6Z3oi1/9wXJdZPXF2dZNgwgOg==
dependencies:
- filename-reserved-regex "^1.0.0"
- strip-outer "^1.0.0"
+ filename-reserved-regex "^2.0.0"
+ strip-outer "^1.0.1"
trim-repeated "^1.0.0"
fill-range@^4.0.0:
@@ -6809,19 +6047,6 @@ filter-obj@^1.1.0:
resolved "https://registry.npm.taobao.org/filter-obj/download/filter-obj-1.1.0.tgz?cache=0&sync_timestamp=1617699897053&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffilter-obj%2Fdownload%2Ffilter-obj-1.1.0.tgz#9b311112bc6c6127a16e016c6c5d7f19e0805c5b"
integrity sha1-mzERErxsYSehbgFsbF1/GeCAXFs=
-finalhandler@~1.1.2:
- version "1.1.2"
- resolved "https://registry.npm.taobao.org/finalhandler/download/finalhandler-1.1.2.tgz#b7e7d000ffd11938d0fdb053506f6ebabe9f587d"
- integrity sha1-t+fQAP/RGTjQ/bBTUG9uur6fWH0=
- dependencies:
- debug "2.6.9"
- encodeurl "~1.0.2"
- escape-html "~1.0.3"
- on-finished "~2.3.0"
- parseurl "~1.3.3"
- statuses "~1.5.0"
- unpipe "~1.0.0"
-
find-cache-dir@^3.3.1:
version "3.3.1"
resolved "https://registry.npm.taobao.org/find-cache-dir/download/find-cache-dir-3.3.1.tgz#89b33fad4a4670daa94f855f7fbe31d6d84fe880"
@@ -6831,14 +6056,6 @@ find-cache-dir@^3.3.1:
make-dir "^3.0.2"
pkg-dir "^4.1.0"
-find-up@5.0.0:
- version "5.0.0"
- resolved "https://registry.npm.taobao.org/find-up/download/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc"
- integrity sha1-TJKBnstwg1YeT0okCoa+UZj1Nvw=
- dependencies:
- locate-path "^6.0.0"
- path-exists "^4.0.0"
-
find-up@^1.0.0:
version "1.1.2"
resolved "https://registry.npm.taobao.org/find-up/download/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f"
@@ -6931,11 +6148,6 @@ flush-write-stream@^1.0.2:
inherits "^2.0.3"
readable-stream "^2.3.6"
-follow-redirects@^1.0.0:
- version "1.13.3"
- resolved "https://registry.npm.taobao.org/follow-redirects/download/follow-redirects-1.13.3.tgz?cache=0&sync_timestamp=1614436920073&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffollow-redirects%2Fdownload%2Ffollow-redirects-1.13.3.tgz#e5598ad50174c1bc4e872301e82ac2cd97f90267"
- integrity sha1-5VmK1QF0wbxOhyMB6CrCzZf5Amc=
-
for-in@^1.0.1, for-in@^1.0.2:
version "1.0.2"
resolved "https://registry.npm.taobao.org/for-in/download/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80"
@@ -6953,25 +6165,6 @@ forever-agent@~0.6.1:
resolved "https://registry.npm.taobao.org/forever-agent/download/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91"
integrity sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=
-fork-ts-checker-webpack-plugin@^6.2.10:
- version "6.2.10"
- resolved "https://registry.yarnpkg.com/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-6.2.10.tgz#800ab1fa523c76011a3413bc4e7815e45b63e826"
- integrity sha512-HveFCHWSH2WlYU1tU3PkrupvW8lNFMTfH3Jk0TfC2mtktE9ibHGcifhCsCFvj+kqlDfNIlwmNLiNqR9jnSA7OQ==
- dependencies:
- "@babel/code-frame" "^7.8.3"
- "@types/json-schema" "^7.0.5"
- chalk "^4.1.0"
- chokidar "^3.4.2"
- cosmiconfig "^6.0.0"
- deepmerge "^4.2.2"
- fs-extra "^9.0.0"
- glob "^7.1.6"
- memfs "^3.1.2"
- minimatch "^3.0.4"
- schema-utils "2.7.0"
- semver "^7.3.2"
- tapable "^1.0.0"
-
form-data@4.0.0:
version "4.0.0"
resolved "https://registry.npm.taobao.org/form-data/download/form-data-4.0.0.tgz?cache=0&sync_timestamp=1613410812604&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fform-data%2Fdownload%2Fform-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452"
@@ -6981,6 +6174,15 @@ form-data@4.0.0:
combined-stream "^1.0.8"
mime-types "^2.1.12"
+form-data@^3.0.0:
+ version "3.0.1"
+ resolved "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz#ebd53791b78356a99af9a300d4282c4d5eb9755f"
+ integrity sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==
+ dependencies:
+ asynckit "^0.4.0"
+ combined-stream "^1.0.8"
+ mime-types "^2.1.12"
+
form-data@~2.3.2:
version "2.3.3"
resolved "https://registry.npm.taobao.org/form-data/download/form-data-2.3.3.tgz?cache=0&sync_timestamp=1613410812604&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fform-data%2Fdownload%2Fform-data-2.3.3.tgz#dcce52c05f644f298c6a7ab936bd724ceffbf3a6"
@@ -6990,10 +6192,10 @@ form-data@~2.3.2:
combined-stream "^1.0.6"
mime-types "^2.1.12"
-forwarded@~0.1.2:
- version "0.1.2"
- resolved "https://registry.npm.taobao.org/forwarded/download/forwarded-0.1.2.tgz#98c23dab1175657b8c0573e8ceccd91b0ff18c84"
- integrity sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=
+fraction.js@^4.1.1:
+ version "4.1.1"
+ resolved "https://registry.npmjs.org/fraction.js/-/fraction.js-4.1.1.tgz#ac4e520473dae67012d618aab91eda09bcb400ff"
+ integrity sha512-MHOhvvxHTfRFpF1geTK9czMIZ6xclsEor2wkIGYYq+PxcQqT7vStJqjhe6S1TenZrMZzo+wlqOufBDVepUEgPg==
fragment-cache@^0.2.1:
version "0.2.1"
@@ -7002,18 +6204,6 @@ fragment-cache@^0.2.1:
dependencies:
map-cache "^0.2.2"
-fresh@0.5.2:
- version "0.5.2"
- resolved "https://registry.npm.taobao.org/fresh/download/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7"
- integrity sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=
-
-front-matter@^4.0.2:
- version "4.0.2"
- resolved "https://registry.npm.taobao.org/front-matter/download/front-matter-4.0.2.tgz#b14e54dc745cfd7293484f3210d15ea4edd7f4d5"
- integrity sha1-sU5U3HRc/XKTSE8yENFepO3X9NU=
- dependencies:
- js-yaml "^3.13.1"
-
fs-extra@8.1.0, fs-extra@^8.1.0:
version "8.1.0"
resolved "https://registry.npm.taobao.org/fs-extra/download/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0"
@@ -7023,6 +6213,15 @@ fs-extra@8.1.0, fs-extra@^8.1.0:
jsonfile "^4.0.0"
universalify "^0.1.0"
+fs-extra@^10.0.0:
+ version "10.0.0"
+ resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-10.0.0.tgz#9ff61b655dde53fb34a82df84bb214ce802e17c1"
+ integrity sha512-C5owb14u9eJwizKGdchcDUQeFtlSHHthBk8pbX9Vc1PFZrLombudjDnNns88aYslCyF6IY5SUw3Roz6xShcEIQ==
+ dependencies:
+ graceful-fs "^4.2.0"
+ jsonfile "^6.0.1"
+ universalify "^2.0.0"
+
fs-extra@^9.0.0:
version "9.1.0"
resolved "https://registry.npm.taobao.org/fs-extra/download/fs-extra-9.1.0.tgz?cache=0&sync_timestamp=1611075495956&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffs-extra%2Fdownload%2Ffs-extra-9.1.0.tgz#5954460c764a8da2094ba3554bf839e6b9a7c86d"
@@ -7041,11 +6240,6 @@ fs-mkdirp-stream@^1.0.0:
graceful-fs "^4.1.11"
through2 "^2.0.3"
-fs-monkey@1.0.3:
- version "1.0.3"
- resolved "https://registry.npm.taobao.org/fs-monkey/download/fs-monkey-1.0.3.tgz#ae3ac92d53bb328efe0e9a1d9541f6ad8d48e2d3"
- integrity sha1-rjrJLVO7Mo7+DpodlUH2rY1I4tM=
-
fs.realpath@^1.0.0:
version "1.0.0"
resolved "https://registry.npm.taobao.org/fs.realpath/download/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
@@ -7059,10 +6253,10 @@ fsevents@^1.2.7:
bindings "^1.5.0"
nan "^2.12.1"
-fsevents@^2.1.2, fsevents@~2.3.1:
+fsevents@^2.3.2, fsevents@~2.3.2:
version "2.3.2"
- resolved "https://registry.npm.taobao.org/fsevents/download/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a"
- integrity sha1-ilJveLj99GI7cJ4Ll1xSwkwC/Ro=
+ resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a"
+ integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==
function-bind@^1.1.1:
version "1.1.1"
@@ -7074,14 +6268,7 @@ functional-red-black-tree@^1.0.1:
resolved "https://registry.npm.taobao.org/functional-red-black-tree/download/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327"
integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=
-generic-names@^2.0.1:
- version "2.0.1"
- resolved "https://registry.npm.taobao.org/generic-names/download/generic-names-2.0.1.tgz?cache=0&sync_timestamp=1603542348757&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fgeneric-names%2Fdownload%2Fgeneric-names-2.0.1.tgz#f8a378ead2ccaa7a34f0317b05554832ae41b872"
- integrity sha1-+KN46tLMqno08DF7BVVIMq5BuHI=
- dependencies:
- loader-utils "^1.1.0"
-
-gensync@^1.0.0-beta.2:
+gensync@^1.0.0-beta.1, gensync@^1.0.0-beta.2:
version "1.0.0-beta.2"
resolved "https://registry.npm.taobao.org/gensync/download/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0"
integrity sha1-MqbudsPX9S1GsrGuXZP+qFgKJeA=
@@ -7143,7 +6330,7 @@ get-stdin@^8.0.0:
resolved "https://registry.npm.taobao.org/get-stdin/download/get-stdin-8.0.0.tgz#cbad6a73feb75f6eeb22ba9e01f89aa28aa97a53"
integrity sha1-y61qc/63X27rIrqeAfiaooqpelM=
-get-stream@^4.0.0, get-stream@^4.1.0:
+get-stream@^4.1.0:
version "4.1.0"
resolved "https://registry.npm.taobao.org/get-stream/download/get-stream-4.1.0.tgz?cache=0&sync_timestamp=1597056544847&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fget-stream%2Fdownload%2Fget-stream-4.1.0.tgz#c1b255575f3dc21d59bfc79cd3d2b46b1c3a54b5"
integrity sha1-wbJVV189wh1Zv8ec09K0axw6VLU=
@@ -7174,15 +6361,15 @@ getpass@^0.1.1:
dependencies:
assert-plus "^1.0.0"
-gh-pages@^3.2.0:
- version "3.2.0"
- resolved "https://registry.yarnpkg.com/gh-pages/-/gh-pages-3.2.0.tgz#ac5f9f03dae7622740ff39613ee2cfeacabc680b"
- integrity sha512-VQTwyRtxoaId0YmDXdC/G854dojpwTuOdpZUL3PGG6WQZvSoGVD8ggedKARZltixIREMezoDywE+g3g2paLxPw==
+gh-pages@^3.2.3:
+ version "3.2.3"
+ resolved "https://registry.npmjs.org/gh-pages/-/gh-pages-3.2.3.tgz#897e5f15e111f42af57d21d430b83e5cdf29472c"
+ integrity sha512-jA1PbapQ1jqzacECfjUaO9gV8uBgU6XNMV0oXLtfCX3haGLe5Atq8BxlrADhbD6/UdG9j6tZLWAkAybndOXTJg==
dependencies:
async "^2.6.1"
commander "^2.18.0"
email-addresses "^3.0.1"
- filenamify-url "^1.0.0"
+ filenamify "^4.3.0"
find-cache-dir "^3.3.1"
fs-extra "^8.1.0"
globby "^6.1.0"
@@ -7222,10 +6409,10 @@ git-up@^4.0.0:
is-ssh "^1.3.0"
parse-url "^5.0.0"
-git-url-parse@11.4.4:
- version "11.4.4"
- resolved "https://registry.npm.taobao.org/git-url-parse/download/git-url-parse-11.4.4.tgz#5d747debc2469c17bc385719f7d0427802d83d77"
- integrity sha1-XXR968JGnBe8OFcZ99BCeALYPXc=
+git-url-parse@11.6.0:
+ version "11.6.0"
+ resolved "https://registry.npmjs.org/git-url-parse/-/git-url-parse-11.6.0.tgz#c634b8de7faa66498a2b88932df31702c67df605"
+ integrity sha512-WWUxvJs5HsyHL6L08wOusa/IXYtMuCAhrMmnTjQPpBU0TTHyDhnOATNH3xNQz7YOQUsqIIPTGr4xiVti1Hsk5g==
dependencies:
git-up "^4.0.0"
@@ -7244,7 +6431,7 @@ glob-parent@^3.1.0:
is-glob "^3.1.0"
path-dirname "^1.0.0"
-glob-parent@^5.1.0, glob-parent@^5.1.2, glob-parent@~5.1.0:
+glob-parent@^5.1.2, glob-parent@~5.1.2:
version "5.1.2"
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4"
integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==
@@ -7272,11 +6459,6 @@ glob-to-regexp@^0.3.0:
resolved "https://registry.npm.taobao.org/glob-to-regexp/download/glob-to-regexp-0.3.0.tgz#8c5a1494d2066c570cc3bfe4496175acc4d502ab"
integrity sha1-jFoUlNIGbFcMw7/kSWF1rMTVAqs=
-glob-to-regexp@^0.4.1:
- version "0.4.1"
- resolved "https://registry.npm.taobao.org/glob-to-regexp/download/glob-to-regexp-0.4.1.tgz#c75297087c851b9a578bd217dd59a92f59fe546e"
- integrity sha1-x1KXCHyFG5pXi9IX3VmpL1n+VG4=
-
glob-watcher@^5.0.3:
version "5.0.5"
resolved "https://registry.npm.taobao.org/glob-watcher/download/glob-watcher-5.0.5.tgz#aa6bce648332924d9a8489be41e3e5c52d4186dc"
@@ -7302,7 +6484,7 @@ glob@7.1.2:
once "^1.3.0"
path-is-absolute "^1.0.0"
-glob@^7.0.0, glob@^7.0.3, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6:
+glob@^7.0.0, glob@^7.0.3, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4:
version "7.1.7"
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.7.tgz#3b193e9233f01d42d0b3f78294bbeeb418f94a90"
integrity sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==
@@ -7382,10 +6564,10 @@ globals@^9.18.0:
resolved "https://registry.npm.taobao.org/globals/download/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a"
integrity sha1-qjiWs+abSH8X4x7SFD1pqOMMLYo=
-globby@11.0.3, globby@^11.0.3:
- version "11.0.3"
- resolved "https://registry.npm.taobao.org/globby/download/globby-11.0.3.tgz?cache=0&sync_timestamp=1616407139482&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fglobby%2Fdownload%2Fglobby-11.0.3.tgz#9b1f0cb523e171dd1ad8c7b2a9fb4b644b9593cb"
- integrity sha1-mx8MtSPhcd0a2MeyqftLZEuVk8s=
+globby@11.0.4, globby@^11.0.3:
+ version "11.0.4"
+ resolved "https://registry.npmjs.org/globby/-/globby-11.0.4.tgz#2cbaff77c2f2a62e71e9b2813a67b97a3a3001a5"
+ integrity sha512-9O4MVG9ioZJ08ffbcyVYyLOJLk5JQ688pJ4eMGLpdWLHq/Wr1D9BlriLQyL0E+jbkuePVZXYFj47QM/v093wHg==
dependencies:
array-union "^2.1.0"
dir-glob "^3.0.1"
@@ -7477,10 +6659,15 @@ graceful-fs@^4.0.0, graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.6,
resolved "https://registry.npm.taobao.org/graceful-fs/download/graceful-fs-4.2.6.tgz#ff040b2b0853b23c3d31027523706f1885d76bee"
integrity sha1-/wQLKwhTsjw9MQJ1I3BvGIXXa+4=
-growly@^1.3.0:
- version "1.3.0"
- resolved "https://registry.npm.taobao.org/growly/download/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081"
- integrity sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE=
+gray-matter@^4.0.3:
+ version "4.0.3"
+ resolved "https://registry.npmjs.org/gray-matter/-/gray-matter-4.0.3.tgz#e893c064825de73ea1f5f7d88c7a9f7274288798"
+ integrity sha512-5v6yZd4JK3eMI3FqqCouswVqwugaA9r4dNZB1wwcmrD02QkV5H0y7XBQW8QwQqEaZY1pM9aqORSORhJRdNK44Q==
+ dependencies:
+ js-yaml "^3.13.1"
+ kind-of "^6.0.2"
+ section-matter "^1.0.0"
+ strip-bom-string "^1.0.0"
gulp-cli@^2.2.0:
version "2.3.0"
@@ -7526,9 +6713,9 @@ gulp-less@^5.0.0:
through2 "^4.0.0"
vinyl-sourcemaps-apply "^0.2.0"
-gulp-postcss@^9.0.0:
+gulp-postcss@^9.0.1:
version "9.0.1"
- resolved "https://registry.yarnpkg.com/gulp-postcss/-/gulp-postcss-9.0.1.tgz#d43caa2f2ce1018f889f7c1296faf82e9928b66f"
+ resolved "https://registry.npmjs.org/gulp-postcss/-/gulp-postcss-9.0.1.tgz#d43caa2f2ce1018f889f7c1296faf82e9928b66f"
integrity sha512-9QUHam5JyXwGUxaaMvoFQVT44tohpEFpM8xBdPfdwTYGM0AItS1iTQz0MpsF8Jroh7GF5Jt2GVPaYgvy8qD2Fw==
dependencies:
fancy-log "^1.3.3"
@@ -7558,11 +6745,6 @@ gulplog@^1.0.0:
dependencies:
glogg "^1.0.0"
-handle-thing@^2.0.0:
- version "2.0.1"
- resolved "https://registry.npm.taobao.org/handle-thing/download/handle-thing-2.0.1.tgz#857f79ce359580c340d43081cc648970d0bb234e"
- integrity sha1-hX95zjWVgMNA1DCBzGSJcNC7I04=
-
handlebars@^4.7.6:
version "4.7.7"
resolved "https://registry.npm.taobao.org/handlebars/download/handlebars-4.7.7.tgz#9ce33416aad02dbd6c8fafa8240d5d98004945a1"
@@ -7615,12 +6797,7 @@ has-flag@^4.0.0:
resolved "https://registry.npm.taobao.org/has-flag/download/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b"
integrity sha1-lEdx/ZyByBJlxNaUGGDaBrtZR5s=
-has-symbols@^1.0.1:
- version "1.0.1"
- resolved "https://registry.npm.taobao.org/has-symbols/download/has-symbols-1.0.1.tgz#9f5214758a44196c406d9bd76cebf81ec2dd31e8"
- integrity sha1-n1IUdYpEGWxAbZvXbOv4HsLdMeg=
-
-has-symbols@^1.0.2:
+has-symbols@^1.0.1, has-symbols@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.2.tgz#165d3070c00309752a1236a479331e3ac56f1423"
integrity sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw==
@@ -7668,7 +6845,7 @@ has-yarn@^2.1.0:
resolved "https://registry.npm.taobao.org/has-yarn/download/has-yarn-2.1.0.tgz#137e11354a7b5bf11aa5cb649cf0c6f3ff2b2e77"
integrity sha1-E34RNUp7W/EapctknPDG8/8rLnc=
-has@^1.0.0, has@^1.0.3:
+has@^1.0.3:
version "1.0.3"
resolved "https://registry.npm.taobao.org/has/download/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796"
integrity sha1-ci18v8H2qoJB8W3YFOAR4fQeh5Y=
@@ -7685,15 +6862,10 @@ he@^1.2.0:
resolved "https://registry.npm.taobao.org/he/download/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f"
integrity sha1-hK5l+n6vsWX922FWauFLrwVmTw8=
-hex-color-regex@^1.1.0:
- version "1.1.0"
- resolved "https://registry.npm.taobao.org/hex-color-regex/download/hex-color-regex-1.1.0.tgz#4c06fccb4602fe2602b3c93df82d7e7dbf1a8a8e"
- integrity sha1-TAb8y0YC/iYCs8k9+C1+fb8aio4=
-
-highlight.js@^10.7.1:
- version "10.7.2"
- resolved "https://registry.npm.taobao.org/highlight.js/download/highlight.js-10.7.2.tgz#89319b861edc66c48854ed1e6da21ea89f847360"
- integrity sha1-iTGbhh7cZsSIVO0ebaIeqJ+Ec2A=
+highlight.js@^11.2.0:
+ version "11.2.0"
+ resolved "https://registry.npmjs.org/highlight.js/-/highlight.js-11.2.0.tgz#a7e3b8c1fdc4f0538b93b2dc2ddd53a40c6ab0f0"
+ integrity sha512-JOySjtOEcyG8s4MLR2MNbLUyaXqUunmSnL2kdV/KuGJOmHZuAR5xC54Ko7goAXBWNhf09Vy3B+U7vR62UZ/0iw==
home-or-tmp@^2.0.0:
version "2.0.0"
@@ -7722,31 +6894,6 @@ hosted-git-info@^4.0.1:
dependencies:
lru-cache "^6.0.0"
-hpack.js@^2.1.6:
- version "2.1.6"
- resolved "https://registry.npm.taobao.org/hpack.js/download/hpack.js-2.1.6.tgz#87774c0949e513f42e84575b3c45681fade2a0b2"
- integrity sha1-h3dMCUnlE/QuhFdbPEVoH63ioLI=
- dependencies:
- inherits "^2.0.1"
- obuf "^1.0.0"
- readable-stream "^2.0.1"
- wbuf "^1.1.0"
-
-hsl-regex@^1.0.0:
- version "1.0.0"
- resolved "https://registry.npm.taobao.org/hsl-regex/download/hsl-regex-1.0.0.tgz#d49330c789ed819e276a4c0d272dffa30b18fe6e"
- integrity sha1-1JMwx4ntgZ4nakwNJy3/owsY/m4=
-
-hsla-regex@^1.0.0:
- version "1.0.0"
- resolved "https://registry.npm.taobao.org/hsla-regex/download/hsla-regex-1.0.0.tgz#c1ce7a3168c8c6614033a4b5f7877f3b225f9c38"
- integrity sha1-wc56MWjIxmFAM6S194d/OyJfnDg=
-
-html-comment-regex@^1.1.0:
- version "1.1.2"
- resolved "https://registry.npm.taobao.org/html-comment-regex/download/html-comment-regex-1.1.2.tgz#97d4688aeb5c81886a364faa0cad1dda14d433a7"
- integrity sha1-l9RoiutcgYhqNk+qDK0d2hTUM6c=
-
html-encoding-sniffer@^2.0.1:
version "2.0.1"
resolved "https://registry.npm.taobao.org/html-encoding-sniffer/download/html-encoding-sniffer-2.0.1.tgz#42a6dc4fd33f00281176e8b23759ca4e4fa185f3"
@@ -7754,20 +6901,15 @@ html-encoding-sniffer@^2.0.1:
dependencies:
whatwg-encoding "^1.0.5"
-html-entities@^1.3.1:
- version "1.4.0"
- resolved "https://registry.npm.taobao.org/html-entities/download/html-entities-1.4.0.tgz?cache=0&sync_timestamp=1617031787889&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fhtml-entities%2Fdownload%2Fhtml-entities-1.4.0.tgz#cfbd1b01d2afaf9adca1b10ae7dffab98c71d2dc"
- integrity sha1-z70bAdKvr5rcobEK59/6uYxx0tw=
-
html-escaper@^2.0.0:
version "2.0.2"
resolved "https://registry.npm.taobao.org/html-escaper/download/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453"
integrity sha1-39YAJ9o2o238viNiYsAKWCJoFFM=
-html-minifier-terser@^5.0.1:
+html-minifier-terser@^5.1.1:
version "5.1.1"
- resolved "https://registry.npm.taobao.org/html-minifier-terser/download/html-minifier-terser-5.1.1.tgz#922e96f1f3bb60832c2634b79884096389b1f054"
- integrity sha1-ki6W8fO7YIMsJjS3mIQJY4mx8FQ=
+ resolved "https://registry.npmjs.org/html-minifier-terser/-/html-minifier-terser-5.1.1.tgz#922e96f1f3bb60832c2634b79884096389b1f054"
+ integrity sha512-ZPr5MNObqnV/T9akshPKbVgyOqLmy+Bxo7juKCfTfnjNniTAMdy4hz21YQqoofMBJD2kdREaqPPdThoR78Tgxg==
dependencies:
camel-case "^4.1.1"
clean-css "^4.2.3"
@@ -7795,18 +6937,7 @@ html-tags@^3.1.0:
resolved "https://registry.npm.taobao.org/html-tags/download/html-tags-3.1.0.tgz#7b5e6f7e665e9fb41f30007ed9e0d41e97fb2140"
integrity sha1-e15vfmZen7QfMAB+2eDUHpf7IUA=
-html-webpack-plugin@^5.3.1:
- version "5.3.1"
- resolved "https://registry.npm.taobao.org/html-webpack-plugin/download/html-webpack-plugin-5.3.1.tgz#8797327548e3de438e3494e0c6d06f181a7f20d1"
- integrity sha1-h5cydUjj3kOONJTgxtBvGBp/INE=
- dependencies:
- "@types/html-minifier-terser" "^5.0.0"
- html-minifier-terser "^5.0.1"
- lodash "^4.17.20"
- pretty-error "^2.1.1"
- tapable "^2.0.0"
-
-htmlparser2@^3.10.0, htmlparser2@^3.3.0, htmlparser2@^3.9.2:
+htmlparser2@^3.10.0, htmlparser2@^3.9.2:
version "3.10.1"
resolved "https://registry.npm.taobao.org/htmlparser2/download/htmlparser2-3.10.1.tgz#bd679dc3f59897b6a34bb10749c855bb53a9392f"
integrity sha1-vWedw/WYl7ajS7EHSchVu1OpOS8=
@@ -7823,78 +6954,14 @@ http-cache-semantics@^4.0.0:
resolved "https://registry.npm.taobao.org/http-cache-semantics/download/http-cache-semantics-4.1.0.tgz#49e91c5cbf36c9b94bcfcd71c23d5249ec74e390"
integrity sha1-SekcXL82yblLz81xwj1SSex045A=
-http-deceiver@^1.2.7:
- version "1.2.7"
- resolved "https://registry.npm.taobao.org/http-deceiver/download/http-deceiver-1.2.7.tgz#fa7168944ab9a519d337cb0bec7284dc3e723d87"
- integrity sha1-+nFolEq5pRnTN8sL7HKE3D5yPYc=
-
-http-errors@1.7.2:
- version "1.7.2"
- resolved "https://registry.npm.taobao.org/http-errors/download/http-errors-1.7.2.tgz#4f5029cf13239f31036e5b2e55292bcfbcc85c8f"
- integrity sha1-T1ApzxMjnzEDblsuVSkrz7zIXI8=
+http-proxy-agent@^4.0.1:
+ version "4.0.1"
+ resolved "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz#8a8c8ef7f5932ccf953c296ca8291b95aa74aa3a"
+ integrity sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==
dependencies:
- depd "~1.1.2"
- inherits "2.0.3"
- setprototypeof "1.1.1"
- statuses ">= 1.5.0 < 2"
- toidentifier "1.0.0"
-
-http-errors@~1.6.2:
- version "1.6.3"
- resolved "https://registry.npm.taobao.org/http-errors/download/http-errors-1.6.3.tgz#8b55680bb4be283a0b5bf4ea2e38580be1d9320d"
- integrity sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=
- dependencies:
- depd "~1.1.2"
- inherits "2.0.3"
- setprototypeof "1.1.0"
- statuses ">= 1.4.0 < 2"
-
-http-errors@~1.7.2:
- version "1.7.3"
- resolved "https://registry.npm.taobao.org/http-errors/download/http-errors-1.7.3.tgz#6c619e4f9c60308c38519498c14fbb10aacebb06"
- integrity sha1-bGGeT5xgMIw4UZSYwU+7EKrOuwY=
- dependencies:
- depd "~1.1.2"
- inherits "2.0.4"
- setprototypeof "1.1.1"
- statuses ">= 1.5.0 < 2"
- toidentifier "1.0.0"
-
-http-parser-js@>=0.5.1:
- version "0.5.3"
- resolved "https://registry.npm.taobao.org/http-parser-js/download/http-parser-js-0.5.3.tgz?cache=0&sync_timestamp=1609542336109&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fhttp-parser-js%2Fdownload%2Fhttp-parser-js-0.5.3.tgz#01d2709c79d41698bb01d4decc5e9da4e4a033d9"
- integrity sha1-AdJwnHnUFpi7AdTezF6dpOSgM9k=
-
-http-proxy-middleware@0.19.1:
- version "0.19.1"
- resolved "https://registry.npm.taobao.org/http-proxy-middleware/download/http-proxy-middleware-0.19.1.tgz#183c7dc4aa1479150306498c210cdaf96080a43a"
- integrity sha1-GDx9xKoUeRUDBkmMIQza+WCApDo=
- dependencies:
- http-proxy "^1.17.0"
- is-glob "^4.0.0"
- lodash "^4.17.11"
- micromatch "^3.1.10"
-
-http-proxy-middleware@^1.0.0:
- version "1.1.0"
- resolved "https://registry.npm.taobao.org/http-proxy-middleware/download/http-proxy-middleware-1.1.0.tgz#b896b2cc6836019af4a4f2d5f7b21b99c77ea13f"
- integrity sha1-uJayzGg2AZr0pPLV97Ibmcd+oT8=
- dependencies:
- "@types/http-proxy" "^1.17.5"
- camelcase "^6.2.0"
- http-proxy "^1.18.1"
- is-glob "^4.0.1"
- is-plain-obj "^3.0.0"
- micromatch "^4.0.2"
-
-http-proxy@^1.17.0, http-proxy@^1.18.1:
- version "1.18.1"
- resolved "https://registry.npm.taobao.org/http-proxy/download/http-proxy-1.18.1.tgz#401541f0534884bbf95260334e72f88ee3976549"
- integrity sha1-QBVB8FNIhLv5UmAzTnL4juOXZUk=
- dependencies:
- eventemitter3 "^4.0.0"
- follow-redirects "^1.0.0"
- requires-port "^1.0.0"
+ "@tootallnate/once" "1"
+ agent-base "6"
+ debug "4"
http-signature@~1.2.0:
version "1.2.0"
@@ -7913,6 +6980,14 @@ http2-wrapper@^1.0.0-beta.5.2:
quick-lru "^5.1.1"
resolve-alpn "^1.0.0"
+https-proxy-agent@^5.0.0:
+ version "5.0.0"
+ resolved "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz#e2a90542abb68a762e0a0850f6c9edadfd8506b2"
+ integrity sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA==
+ dependencies:
+ agent-base "6"
+ debug "4"
+
human-signals@^1.1.1:
version "1.1.1"
resolved "https://registry.npm.taobao.org/human-signals/download/human-signals-1.1.1.tgz#c5b1cd14f50aeae09ab6c59fe63ba3395fe4dfa3"
@@ -7923,18 +6998,10 @@ human-signals@^2.1.0:
resolved "https://registry.npm.taobao.org/human-signals/download/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0"
integrity sha1-3JH8ukLk0G5Kuu0zs+ejwC9RTqA=
-humanize-url@^1.0.0:
- version "1.0.1"
- resolved "https://registry.npm.taobao.org/humanize-url/download/humanize-url-1.0.1.tgz#f4ab99e0d288174ca4e1e50407c55fbae464efff"
- integrity sha1-9KuZ4NKIF0yk4eUEB8VfuuRk7/8=
- dependencies:
- normalize-url "^1.0.0"
- strip-url-auth "^1.0.0"
-
-husky@^6.0.0:
- version "6.0.0"
- resolved "https://registry.npm.taobao.org/husky/download/husky-6.0.0.tgz?cache=0&sync_timestamp=1617004370542&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fhusky%2Fdownload%2Fhusky-6.0.0.tgz#810f11869adf51604c32ea577edbc377d7f9319e"
- integrity sha1-gQ8RhprfUWBMMupXftvDd9f5MZ4=
+husky@^7.0.1:
+ version "7.0.2"
+ resolved "https://registry.npmjs.org/husky/-/husky-7.0.2.tgz#21900da0f30199acca43a46c043c4ad84ae88dff"
+ integrity sha512-8yKEWNX4z2YsofXAMT7KvA1g8p+GxtB1ffV8XtpAEGuXNAbCV5wdNKH+qTpw8SM9fh4aMPDR+yQuKfgnreyZlg==
iconv-lite@0.4.24, iconv-lite@^0.4.24, iconv-lite@^0.4.4:
version "0.4.24"
@@ -7943,23 +7010,6 @@ iconv-lite@0.4.24, iconv-lite@^0.4.24, iconv-lite@^0.4.4:
dependencies:
safer-buffer ">= 2.1.2 < 3"
-icss-replace-symbols@^1.1.0:
- version "1.1.0"
- resolved "https://registry.npm.taobao.org/icss-replace-symbols/download/icss-replace-symbols-1.1.0.tgz#06ea6f83679a7749e386cfe1fe812ae5db223ded"
- integrity sha1-Bupvg2ead0njhs/h/oEq5dsiPe0=
-
-icss-utils@^4.0.0, icss-utils@^4.1.1:
- version "4.1.1"
- resolved "https://registry.npm.taobao.org/icss-utils/download/icss-utils-4.1.1.tgz?cache=0&sync_timestamp=1605801375650&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ficss-utils%2Fdownload%2Ficss-utils-4.1.1.tgz#21170b53789ee27447c2f47dd683081403f9a467"
- integrity sha1-IRcLU3ie4nRHwvR91oMIFAP5pGc=
- dependencies:
- postcss "^7.0.14"
-
-icss-utils@^5.0.0:
- version "5.0.0"
- resolved "https://registry.npm.taobao.org/icss-utils/download/icss-utils-5.0.0.tgz?cache=0&sync_timestamp=1602527394710&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ficss-utils%2Fdownload%2Ficss-utils-5.0.0.tgz#03ed56c3accd32f9caaf1752ebf64ef12347bb84"
- integrity sha1-A+1Ww6zNMvnKrxdS6/ZO8SNHu4Q=
-
ieee754@^1.1.13:
version "1.2.1"
resolved "https://registry.npm.taobao.org/ieee754/download/ieee754-1.2.1.tgz?cache=0&sync_timestamp=1603838418666&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fieee754%2Fdownload%2Fieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352"
@@ -7992,15 +7042,7 @@ import-cwd@3.0.0, import-cwd@^3.0.0:
dependencies:
import-from "^3.0.0"
-import-fresh@^2.0.0:
- version "2.0.0"
- resolved "https://registry.npm.taobao.org/import-fresh/download/import-fresh-2.0.0.tgz#d81355c15612d386c61f9ddd3922d4304822a546"
- integrity sha1-2BNVwVYS04bGH53dOSLUMEgipUY=
- dependencies:
- caller-path "^2.0.0"
- resolve-from "^3.0.0"
-
-import-fresh@^3.0.0, import-fresh@^3.1.0, import-fresh@^3.2.1:
+import-fresh@^3.0.0, import-fresh@^3.2.1:
version "3.3.0"
resolved "https://registry.npm.taobao.org/import-fresh/download/import-fresh-3.3.0.tgz?cache=0&sync_timestamp=1608469472392&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fimport-fresh%2Fdownload%2Fimport-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b"
integrity sha1-NxYsJfy566oublPVtNiM4X2eDCs=
@@ -8025,14 +7067,6 @@ import-lazy@^4.0.0:
resolved "https://registry.npm.taobao.org/import-lazy/download/import-lazy-4.0.0.tgz#e8eb627483a0a43da3c03f3e35548be5cb0cc153"
integrity sha1-6OtidIOgpD2jwD8+NVSL5csMwVM=
-import-local@^2.0.0:
- version "2.0.0"
- resolved "https://registry.npm.taobao.org/import-local/download/import-local-2.0.0.tgz#55070be38a5993cf18ef6db7e961f5bee5c5a09d"
- integrity sha1-VQcL44pZk88Y72236WH1vuXFoJ0=
- dependencies:
- pkg-dir "^3.0.0"
- resolve-cwd "^2.0.0"
-
import-local@^3.0.2:
version "3.0.2"
resolved "https://registry.npm.taobao.org/import-local/download/import-local-3.0.2.tgz#a8cfd0431d1de4a2199703d003e3e62364fa6db6"
@@ -8058,11 +7092,6 @@ indent-string@^4.0.0:
resolved "https://registry.npm.taobao.org/indent-string/download/indent-string-4.0.0.tgz#624f8f4497d619b2d9768531d58f4122854d7251"
integrity sha1-Yk+PRJfWGbLZdoUx1Y9BIoVNclE=
-indexes-of@^1.0.1:
- version "1.0.1"
- resolved "https://registry.npm.taobao.org/indexes-of/download/indexes-of-1.0.1.tgz#f30f716c8e2bd346c7b67d3df3915566a7c05607"
- integrity sha1-8w9xbI4r00bHtn0985FVZqfAVgc=
-
inflight@^1.0.4:
version "1.0.6"
resolved "https://registry.npm.taobao.org/inflight/download/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9"
@@ -8071,16 +7100,11 @@ inflight@^1.0.4:
once "^1.3.0"
wrappy "1"
-inherits@2, inherits@2.0.4, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.1, inherits@~2.0.3:
+inherits@2, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.1, inherits@~2.0.3:
version "2.0.4"
resolved "https://registry.npm.taobao.org/inherits/download/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c"
integrity sha1-D6LGT5MpF8NDOg3tVTY6rjdBa3w=
-inherits@2.0.3:
- version "2.0.3"
- resolved "https://registry.npm.taobao.org/inherits/download/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de"
- integrity sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=
-
ini@2.0.0:
version "2.0.0"
resolved "https://registry.npm.taobao.org/ini/download/ini-2.0.0.tgz?cache=0&sync_timestamp=1607907801722&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fini%2Fdownload%2Fini-2.0.0.tgz#e5fd556ecdd5726be978fa1001862eacb0a94bc5"
@@ -8091,10 +7115,10 @@ ini@^1.3.2, ini@^1.3.4, ini@^1.3.5, ini@~1.3.0:
resolved "https://registry.npm.taobao.org/ini/download/ini-1.3.8.tgz?cache=0&sync_timestamp=1607907801722&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fini%2Fdownload%2Fini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c"
integrity sha1-op2kJbSIBvNHZ6Tvzjlyaa8oQyw=
-inquirer@8.1.0:
- version "8.1.0"
- resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-8.1.0.tgz#68ce5ce5376cf0e89765c993d8b7c1e62e184d69"
- integrity sha512-1nKYPoalt1vMBfCMtpomsUc32wmOoWXAoq3kM/5iTfxyQ2f/BxjixQpC+mbZ7BI0JUXHED4/XPXekDVtJNpXYw==
+inquirer@8.1.5:
+ version "8.1.5"
+ resolved "https://registry.npmjs.org/inquirer/-/inquirer-8.1.5.tgz#2dc5159203c826d654915b5fe6990fd17f54a150"
+ integrity sha512-G6/9xUqmt/r+UvufSyrPpt84NYwhKZ9jLsgMbQzlx804XErNupor8WQdBnBRrXmBfTPpuwf1sV+ss2ovjgdXIg==
dependencies:
ansi-escapes "^4.2.1"
chalk "^4.1.1"
@@ -8104,21 +7128,13 @@ inquirer@8.1.0:
figures "^3.0.0"
lodash "^4.17.21"
mute-stream "0.0.8"
- ora "^5.3.0"
+ ora "^5.4.1"
run-async "^2.4.0"
- rxjs "^6.6.6"
+ rxjs "^7.2.0"
string-width "^4.1.0"
strip-ansi "^6.0.0"
through "^2.3.6"
-internal-ip@^4.3.0:
- version "4.3.0"
- resolved "https://registry.npm.taobao.org/internal-ip/download/internal-ip-4.3.0.tgz?cache=0&sync_timestamp=1605885556992&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Finternal-ip%2Fdownload%2Finternal-ip-4.3.0.tgz#845452baad9d2ca3b69c635a137acb9a0dad0907"
- integrity sha1-hFRSuq2dLKO2nGNaE3rLmg2tCQc=
- dependencies:
- default-gateway "^4.2.0"
- ipaddr.js "^1.9.0"
-
internal-slot@^1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.3.tgz#7347e307deeea2faac2ac6205d4bc7d34967f59c"
@@ -8145,30 +7161,10 @@ invert-kv@^1.0.0:
resolved "https://registry.npm.taobao.org/invert-kv/download/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6"
integrity sha1-EEqOSqym09jNFXqO+L+rLXo//bY=
-ip-regex@^2.1.0:
- version "2.1.0"
- resolved "https://registry.npm.taobao.org/ip-regex/download/ip-regex-2.1.0.tgz#fa78bf5d2e6913c911ce9f819ee5146bb6d844e9"
- integrity sha1-+ni/XS5pE8kRzp+BnuUUa7bYROk=
-
-ip@^1.1.0, ip@^1.1.5:
- version "1.1.5"
- resolved "https://registry.npm.taobao.org/ip/download/ip-1.1.5.tgz#bdded70114290828c0a039e72ef25f5aaec4354a"
- integrity sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo=
-
-ipaddr.js@1.9.1, ipaddr.js@^1.9.0:
- version "1.9.1"
- resolved "https://registry.npm.taobao.org/ipaddr.js/download/ipaddr.js-1.9.1.tgz#bff38543eeb8984825079ff3a2a8e6cbd46781b3"
- integrity sha1-v/OFQ+64mEglB5/zoqjmy9RngbM=
-
-is-absolute-url@^2.0.0:
- version "2.1.0"
- resolved "https://registry.npm.taobao.org/is-absolute-url/download/is-absolute-url-2.1.0.tgz#50530dfb84fcc9aa7dbe7852e83a37b93b9f2aa6"
- integrity sha1-UFMN+4T8yap9vnhS6Do3uTufKqY=
-
is-absolute-url@^3.0.3:
version "3.0.3"
- resolved "https://registry.npm.taobao.org/is-absolute-url/download/is-absolute-url-3.0.3.tgz#96c6a22b6a23929b11ea0afb1836c36ad4a5d698"
- integrity sha1-lsaiK2ojkpsR6gr7GDbDatSl1pg=
+ resolved "https://registry.npmjs.org/is-absolute-url/-/is-absolute-url-3.0.3.tgz#96c6a22b6a23929b11ea0afb1836c36ad4a5d698"
+ integrity sha512-opmNIX7uFnS96NtPmhWQgQx6/NYFgsUXYMllcfzwWKUMwfo8kku1TvE6hkNcH+Q1ts5cMVrsY7j0bxXQDciu9Q==
is-absolute@^1.0.0:
version "1.0.0"
@@ -8205,23 +7201,11 @@ is-alphanumerical@^1.0.0:
is-alphabetical "^1.0.0"
is-decimal "^1.0.0"
-is-arguments@^1.0.4:
- version "1.1.0"
- resolved "https://registry.npm.taobao.org/is-arguments/download/is-arguments-1.1.0.tgz#62353031dfbee07ceb34656a6bde59efecae8dd9"
- integrity sha1-YjUwMd++4HzrNGVqa95Z7+yujdk=
- dependencies:
- call-bind "^1.0.0"
-
is-arrayish@^0.2.1:
version "0.2.1"
resolved "https://registry.npm.taobao.org/is-arrayish/download/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d"
integrity sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=
-is-arrayish@^0.3.1:
- version "0.3.2"
- resolved "https://registry.npm.taobao.org/is-arrayish/download/is-arrayish-0.3.2.tgz#4574a2ae56f7ab206896fb431eaeed066fdf8f03"
- integrity sha1-RXSirlb3qyBolvtDHq7tBm/fjwM=
-
is-bigint@^1.0.1:
version "1.0.4"
resolved "https://registry.yarnpkg.com/is-bigint/-/is-bigint-1.0.4.tgz#08147a1875bc2b32005d41ccd8291dffc6691df3"
@@ -8238,8 +7222,8 @@ is-binary-path@^1.0.0:
is-binary-path@~2.1.0:
version "2.1.0"
- resolved "https://registry.npm.taobao.org/is-binary-path/download/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09"
- integrity sha1-6h9/O4DwZCNug0cPhsCcJU+0Wwk=
+ resolved "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09"
+ integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==
dependencies:
binary-extensions "^2.0.0"
@@ -8261,17 +7245,12 @@ is-buffer@^2.0.0:
resolved "https://registry.npm.taobao.org/is-buffer/download/is-buffer-2.0.4.tgz#3e572f23c8411a5cfd9557c849e3665e0b290623"
integrity sha1-PlcvI8hBGlz9lVfISeNmXgspBiM=
-is-callable@^1.1.4, is-callable@^1.2.2:
- version "1.2.2"
- resolved "https://registry.npm.taobao.org/is-callable/download/is-callable-1.2.2.tgz#c7c6715cd22d4ddb48d3e19970223aceabb080d9"
- integrity sha1-x8ZxXNItTdtI0+GZcCI6zquwgNk=
-
-is-callable@^1.2.3:
+is-callable@^1.1.4, is-callable@^1.2.3:
version "1.2.4"
resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.4.tgz#47301d58dd0259407865547853df6d61fe471945"
integrity sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w==
-is-ci@3.0.0:
+is-ci@3.0.0, is-ci@^3.0.0:
version "3.0.0"
resolved "https://registry.npm.taobao.org/is-ci/download/is-ci-3.0.0.tgz?cache=0&sync_timestamp=1613631987391&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fis-ci%2Fdownload%2Fis-ci-3.0.0.tgz#c7e7be3c9d8eef7d0fa144390bd1e4b88dc4c994"
integrity sha1-x+e+PJ2O730PoUQ5C9HkuI3EyZQ=
@@ -8285,26 +7264,7 @@ is-ci@^2.0.0:
dependencies:
ci-info "^2.0.0"
-is-color-stop@^1.0.0:
- version "1.1.0"
- resolved "https://registry.npm.taobao.org/is-color-stop/download/is-color-stop-1.1.0.tgz#cfff471aee4dd5c9e158598fbe12967b5cdad345"
- integrity sha1-z/9HGu5N1cnhWFmPvhKWe1za00U=
- dependencies:
- css-color-names "^0.0.4"
- hex-color-regex "^1.1.0"
- hsl-regex "^1.0.0"
- hsla-regex "^1.0.0"
- rgb-regex "^1.0.1"
- rgba-regex "^1.0.0"
-
-is-core-module@^2.2.0:
- version "2.2.0"
- resolved "https://registry.npm.taobao.org/is-core-module/download/is-core-module-2.2.0.tgz?cache=0&sync_timestamp=1606411588663&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fis-core-module%2Fdownload%2Fis-core-module-2.2.0.tgz#97037ef3d52224d85163f5597b2b63d9afed981a"
- integrity sha1-lwN+89UiJNhRY/VZeytj2a/tmBo=
- dependencies:
- has "^1.0.3"
-
-is-core-module@^2.6.0:
+is-core-module@^2.2.0, is-core-module@^2.6.0:
version "2.6.0"
resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.6.0.tgz#d7553b2526fe59b92ba3e40c8df757ec8a709e19"
integrity sha512-wShG8vs60jKfPWpF2KZRaAtvt3a20OAn7+IJ6hLPECpSABLcKtFKTTI4ZtH5QcBruBHlq+WsdHWyz0BCZW7svQ==
@@ -8353,11 +7313,6 @@ is-descriptor@^1.0.0, is-descriptor@^1.0.2:
is-data-descriptor "^1.0.0"
kind-of "^6.0.2"
-is-directory@^0.3.1:
- version "0.3.1"
- resolved "https://registry.npm.taobao.org/is-directory/download/is-directory-0.3.1.tgz#61339b6f2475fc772fd9c9d83f5c8575dc154ae1"
- integrity sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE=
-
is-docker@^2.0.0:
version "2.2.1"
resolved "https://registry.npm.taobao.org/is-docker/download/is-docker-2.2.1.tgz?cache=0&sync_timestamp=1617958843085&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fis-docker%2Fdownload%2Fis-docker-2.2.1.tgz#33eeabe23cfe86f14bde4408a02c0cfb853acdaa"
@@ -8493,31 +7448,12 @@ is-obj@^2.0.0:
resolved "https://registry.npm.taobao.org/is-obj/download/is-obj-2.0.0.tgz#473fb05d973705e3fd9620545018ca8e22ef4982"
integrity sha1-Rz+wXZc3BeP9liBUUBjKjiLvSYI=
-is-path-cwd@^2.0.0:
- version "2.2.0"
- resolved "https://registry.npm.taobao.org/is-path-cwd/download/is-path-cwd-2.2.0.tgz#67d43b82664a7b5191fd9119127eb300048a9fdb"
- integrity sha1-Z9Q7gmZKe1GR/ZEZEn6zAASKn9s=
-
-is-path-in-cwd@^2.0.0:
- version "2.1.0"
- resolved "https://registry.npm.taobao.org/is-path-in-cwd/download/is-path-in-cwd-2.1.0.tgz#bfe2dca26c69f397265a4009963602935a053acb"
- integrity sha1-v+Lcomxp85cmWkAJljYCk1oFOss=
- dependencies:
- is-path-inside "^2.1.0"
-
-is-path-inside@^2.1.0:
- version "2.1.0"
- resolved "https://registry.npm.taobao.org/is-path-inside/download/is-path-inside-2.1.0.tgz?cache=0&sync_timestamp=1615183779039&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fis-path-inside%2Fdownload%2Fis-path-inside-2.1.0.tgz#7c9810587d659a40d27bcdb4d5616eab059494b2"
- integrity sha1-fJgQWH1lmkDSe8201WFuqwWUlLI=
- dependencies:
- path-is-inside "^1.0.2"
-
is-path-inside@^3.0.2:
version "3.0.3"
resolved "https://registry.npm.taobao.org/is-path-inside/download/is-path-inside-3.0.3.tgz?cache=0&sync_timestamp=1615183779039&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fis-path-inside%2Fdownload%2Fis-path-inside-3.0.3.tgz#d231362e53a07ff2b0e0ea7fed049161ffd16283"
integrity sha1-0jE2LlOgf/Kw4Op/7QSRYf/RYoM=
-is-plain-obj@^1.0.0, is-plain-obj@^1.1.0:
+is-plain-obj@^1.1.0:
version "1.1.0"
resolved "https://registry.npm.taobao.org/is-plain-obj/download/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e"
integrity sha1-caUMhCnfync8kqOQpKA7OfzVHT4=
@@ -8527,11 +7463,6 @@ is-plain-obj@^2.0.0:
resolved "https://registry.npm.taobao.org/is-plain-obj/download/is-plain-obj-2.1.0.tgz#45e42e37fccf1f40da8e5f76ee21515840c09287"
integrity sha1-ReQuN/zPH0Dajl927iFRWEDAkoc=
-is-plain-obj@^3.0.0:
- version "3.0.0"
- resolved "https://registry.npm.taobao.org/is-plain-obj/download/is-plain-obj-3.0.0.tgz#af6f2ea14ac5a646183a5bbdb5baabbc156ad9d7"
- integrity sha1-r28uoUrFpkYYOlu9tbqrvBVq2dc=
-
is-plain-object@^2.0.1, is-plain-object@^2.0.3, is-plain-object@^2.0.4:
version "2.0.4"
resolved "https://registry.npm.taobao.org/is-plain-object/download/is-plain-object-2.0.4.tgz?cache=0&sync_timestamp=1599667273698&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fis-plain-object%2Fdownload%2Fis-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677"
@@ -8544,18 +7475,10 @@ is-plain-object@^5.0.0:
resolved "https://registry.npm.taobao.org/is-plain-object/download/is-plain-object-5.0.0.tgz?cache=0&sync_timestamp=1599667273698&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fis-plain-object%2Fdownload%2Fis-plain-object-5.0.0.tgz#4427f50ab3429e9025ea7d52e9043a9ef4159344"
integrity sha1-RCf1CrNCnpAl6n1S6QQ6nvQVk0Q=
-is-potential-custom-element-name@^1.0.0:
+is-potential-custom-element-name@^1.0.1:
version "1.0.1"
- resolved "https://registry.npm.taobao.org/is-potential-custom-element-name/download/is-potential-custom-element-name-1.0.1.tgz#171ed6f19e3ac554394edf78caa05784a45bebb5"
- integrity sha1-Fx7W8Z46xVQ5Tt94yqBXhKRb67U=
-
-is-regex@^1.0.4, is-regex@^1.1.1:
- version "1.1.2"
- resolved "https://registry.npm.taobao.org/is-regex/download/is-regex-1.1.2.tgz?cache=0&sync_timestamp=1612217453411&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fis-regex%2Fdownload%2Fis-regex-1.1.2.tgz#81c8ebde4db142f2cf1c53fc86d6a45788266251"
- integrity sha1-gcjr3k2xQvLPHFP8htakV4gmYlE=
- dependencies:
- call-bind "^1.0.2"
- has-symbols "^1.0.1"
+ resolved "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz#171ed6f19e3ac554394edf78caa05784a45bebb5"
+ integrity sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==
is-regex@^1.1.3:
version "1.1.4"
@@ -8582,10 +7505,10 @@ is-relative@^1.0.0:
dependencies:
is-unc-path "^1.0.0"
-is-resolvable@^1.0.0:
+is-resolvable@^1.1.0:
version "1.1.0"
- resolved "https://registry.npm.taobao.org/is-resolvable/download/is-resolvable-1.1.0.tgz#fb18f87ce1feb925169c9a407c19318a3206ed88"
- integrity sha1-+xj4fOH+uSUWnJpAfBkxijIG7Yg=
+ resolved "https://registry.npmjs.org/is-resolvable/-/is-resolvable-1.1.0.tgz#fb18f87ce1feb925169c9a407c19318a3206ed88"
+ integrity sha512-qgDYXFSR5WvEfuS5dMj6oTMEbrrSaM0CrFk2Yiq/gXnBvD9pMa2jGXxyhGLfvhZpuMZe18CJpFxAt3CRs42NMg==
is-ssh@^1.3.0:
version "1.3.2"
@@ -8594,43 +7517,19 @@ is-ssh@^1.3.0:
dependencies:
protocols "^1.1.0"
-is-stream@^1.1.0:
- version "1.1.0"
- resolved "https://registry.npm.taobao.org/is-stream/download/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44"
- integrity sha1-EtSj3U5o4Lec6428hBc66A2RykQ=
-
is-stream@^2.0.0:
version "2.0.0"
resolved "https://registry.npm.taobao.org/is-stream/download/is-stream-2.0.0.tgz#bde9c32680d6fae04129d6ac9d921ce7815f78e3"
integrity sha1-venDJoDW+uBBKdasnZIc54FfeOM=
-is-string@^1.0.5:
- version "1.0.5"
- resolved "https://registry.npm.taobao.org/is-string/download/is-string-1.0.5.tgz#40493ed198ef3ff477b8c7f92f644ec82a5cd3a6"
- integrity sha1-QEk+0ZjvP/R3uMf5L2ROyCpc06Y=
-
-is-string@^1.0.6:
+is-string@^1.0.5, is-string@^1.0.6:
version "1.0.7"
resolved "https://registry.yarnpkg.com/is-string/-/is-string-1.0.7.tgz#0dd12bf2006f255bb58f695110eff7491eebc0fd"
integrity sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==
dependencies:
has-tostringtag "^1.0.0"
-is-svg@^3.0.0:
- version "3.0.0"
- resolved "https://registry.npm.taobao.org/is-svg/download/is-svg-3.0.0.tgz#9321dbd29c212e5ca99c4fa9794c714bcafa2f75"
- integrity sha1-kyHb0pwhLlypnE+peUxxS8r6L3U=
- dependencies:
- html-comment-regex "^1.1.0"
-
-is-symbol@^1.0.2:
- version "1.0.3"
- resolved "https://registry.npm.taobao.org/is-symbol/download/is-symbol-1.0.3.tgz#38e1014b9e6329be0de9d24a414fd7441ec61937"
- integrity sha1-OOEBS55jKb4N6dJKQU/XRB7GGTc=
- dependencies:
- has-symbols "^1.0.1"
-
-is-symbol@^1.0.3:
+is-symbol@^1.0.2, is-symbol@^1.0.3:
version "1.0.4"
resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.4.tgz#a6dac93b635b063ca6872236de88910a57af139c"
integrity sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==
@@ -8681,15 +7580,10 @@ is-windows@^1.0.1, is-windows@^1.0.2:
resolved "https://registry.npm.taobao.org/is-windows/download/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d"
integrity sha1-0YUOuXkezRjmGCzhKjDzlmNLsZ0=
-is-wsl@^1.1.0:
- version "1.1.0"
- resolved "https://registry.npm.taobao.org/is-wsl/download/is-wsl-1.1.0.tgz#1f16e4aa22b04d1336b66188a66af3c600c3a66d"
- integrity sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0=
-
-is-wsl@^2.2.0:
+is-wsl@^2.1.1:
version "2.2.0"
- resolved "https://registry.npm.taobao.org/is-wsl/download/is-wsl-2.2.0.tgz#74a4c76e77ca9fd3f932f290c17ea326cd157271"
- integrity sha1-dKTHbnfKn9P5MvKQwX6jJs0VcnE=
+ resolved "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz#74a4c76e77ca9fd3f932f290c17ea326cd157271"
+ integrity sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==
dependencies:
is-docker "^2.0.0"
@@ -8771,6 +7665,16 @@ istanbul-reports@^3.0.2:
html-escaper "^2.0.0"
istanbul-lib-report "^3.0.0"
+jake@^10.6.1:
+ version "10.8.2"
+ resolved "https://registry.npmjs.org/jake/-/jake-10.8.2.tgz#ebc9de8558160a66d82d0eadc6a2e58fbc500a7b"
+ integrity sha512-eLpKyrfG3mzvGE2Du8VoPbeSkRry093+tyNjdYaBbJS9v17knImYGNXQCUV0gLxQtF82m3E8iRb/wdSQZLoq7A==
+ dependencies:
+ async "0.9.x"
+ chalk "^2.4.2"
+ filelist "^1.0.1"
+ minimatch "^3.0.4"
+
jest-canvas-mock@^2.3.1:
version "2.3.1"
resolved "https://registry.yarnpkg.com/jest-canvas-mock/-/jest-canvas-mock-2.3.1.tgz#9535d14bc18ccf1493be36ac37dd349928387826"
@@ -8779,200 +7683,226 @@ jest-canvas-mock@^2.3.1:
cssfontparser "^1.2.1"
moo-color "^1.0.2"
-jest-changed-files@^26.6.2:
- version "26.6.2"
- resolved "https://registry.npm.taobao.org/jest-changed-files/download/jest-changed-files-26.6.2.tgz?cache=0&sync_timestamp=1617371405778&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjest-changed-files%2Fdownload%2Fjest-changed-files-26.6.2.tgz#f6198479e1cc66f22f9ae1e22acaa0b429c042d0"
- integrity sha1-9hmEeeHMZvIvmuHiKsqgtCnAQtA=
+jest-changed-files@^27.1.1:
+ version "27.1.1"
+ resolved "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-27.1.1.tgz#9b3f67a34cc58e3e811e2e1e21529837653e4200"
+ integrity sha512-5TV9+fYlC2A6hu3qtoyGHprBwCAn0AuGA77bZdUgYvVlRMjHXo063VcWTEAyx6XAZ85DYHqp0+aHKbPlfRDRvA==
dependencies:
- "@jest/types" "^26.6.2"
- execa "^4.0.0"
- throat "^5.0.0"
+ "@jest/types" "^27.1.1"
+ execa "^5.0.0"
+ throat "^6.0.1"
-jest-cli@^26.6.3:
- version "26.6.3"
- resolved "https://registry.npm.taobao.org/jest-cli/download/jest-cli-26.6.3.tgz?cache=0&sync_timestamp=1617371409762&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjest-cli%2Fdownload%2Fjest-cli-26.6.3.tgz#43117cfef24bc4cd691a174a8796a532e135e92a"
- integrity sha1-QxF8/vJLxM1pGhdKh5alMuE16So=
+jest-circus@^27.2.1:
+ version "27.2.1"
+ resolved "https://registry.npmjs.org/jest-circus/-/jest-circus-27.2.1.tgz#c5166052b328c0df932cdaf89f5982085e7b4812"
+ integrity sha512-9q/8X8DgJmW8IqXsJNnS2E28iarx990hf6D+frS3P0lB+avhFDD33alLwZzKgm45u0wvEi6iFh43WjNbp5fhjw==
dependencies:
- "@jest/core" "^26.6.3"
- "@jest/test-result" "^26.6.2"
- "@jest/types" "^26.6.2"
+ "@jest/environment" "^27.2.0"
+ "@jest/test-result" "^27.2.0"
+ "@jest/types" "^27.1.1"
+ "@types/node" "*"
+ chalk "^4.0.0"
+ co "^4.6.0"
+ dedent "^0.7.0"
+ expect "^27.2.1"
+ is-generator-fn "^2.0.0"
+ jest-each "^27.2.0"
+ jest-matcher-utils "^27.2.0"
+ jest-message-util "^27.2.0"
+ jest-runtime "^27.2.1"
+ jest-snapshot "^27.2.1"
+ jest-util "^27.2.0"
+ pretty-format "^27.2.0"
+ slash "^3.0.0"
+ stack-utils "^2.0.3"
+ throat "^6.0.1"
+
+jest-cli@^27.2.1:
+ version "27.2.1"
+ resolved "https://registry.npmjs.org/jest-cli/-/jest-cli-27.2.1.tgz#031e887245945864cc6ed8605c939f1937858c09"
+ integrity sha512-IfxuGkBZS/ogY7yFvvD1dFidzQRXlSBHtUZQ3UTIHydzNMF4/ZRTdGFso6HkbCkemwLh4hnNybONexEqWmYwjw==
+ dependencies:
+ "@jest/core" "^27.2.1"
+ "@jest/test-result" "^27.2.0"
+ "@jest/types" "^27.1.1"
chalk "^4.0.0"
exit "^0.1.2"
graceful-fs "^4.2.4"
import-local "^3.0.2"
- is-ci "^2.0.0"
- jest-config "^26.6.3"
- jest-util "^26.6.2"
- jest-validate "^26.6.2"
+ jest-config "^27.2.1"
+ jest-util "^27.2.0"
+ jest-validate "^27.2.0"
prompts "^2.0.1"
- yargs "^15.4.1"
+ yargs "^16.0.3"
-jest-config@^26.6.3:
- version "26.6.3"
- resolved "https://registry.npm.taobao.org/jest-config/download/jest-config-26.6.3.tgz?cache=0&sync_timestamp=1617372478405&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjest-config%2Fdownload%2Fjest-config-26.6.3.tgz#64f41444eef9eb03dc51d5c53b75c8c71f645349"
- integrity sha1-ZPQURO756wPcUdXFO3XIxx9kU0k=
+jest-config@^27.2.1:
+ version "27.2.1"
+ resolved "https://registry.npmjs.org/jest-config/-/jest-config-27.2.1.tgz#2e727e023fc4b77a9f067a40c5448a939aa8386b"
+ integrity sha512-BAOemP8udmFw9nkgaLAac7vXORdvrt4yrJWoh7uYb0nPZeSsu0kGwJU18SwtY4paq9fed5OgAssC3A+Bf4WMQA==
dependencies:
"@babel/core" "^7.1.0"
- "@jest/test-sequencer" "^26.6.3"
- "@jest/types" "^26.6.2"
- babel-jest "^26.6.3"
+ "@jest/test-sequencer" "^27.2.1"
+ "@jest/types" "^27.1.1"
+ babel-jest "^27.2.1"
chalk "^4.0.0"
deepmerge "^4.2.2"
glob "^7.1.1"
graceful-fs "^4.2.4"
- jest-environment-jsdom "^26.6.2"
- jest-environment-node "^26.6.2"
- jest-get-type "^26.3.0"
- jest-jasmine2 "^26.6.3"
- jest-regex-util "^26.0.0"
- jest-resolve "^26.6.2"
- jest-util "^26.6.2"
- jest-validate "^26.6.2"
- micromatch "^4.0.2"
- pretty-format "^26.6.2"
+ is-ci "^3.0.0"
+ jest-circus "^27.2.1"
+ jest-environment-jsdom "^27.2.0"
+ jest-environment-node "^27.2.0"
+ jest-get-type "^27.0.6"
+ jest-jasmine2 "^27.2.1"
+ jest-regex-util "^27.0.6"
+ jest-resolve "^27.2.0"
+ jest-runner "^27.2.1"
+ jest-util "^27.2.0"
+ jest-validate "^27.2.0"
+ micromatch "^4.0.4"
+ pretty-format "^27.2.0"
-jest-diff@^26.6.2:
- version "26.6.2"
- resolved "https://registry.npm.taobao.org/jest-diff/download/jest-diff-26.6.2.tgz?cache=0&sync_timestamp=1617371406278&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjest-diff%2Fdownload%2Fjest-diff-26.6.2.tgz#1aa7468b52c3a68d7d5c5fdcdfcd5e49bd164394"
- integrity sha1-GqdGi1LDpo19XF/c381eSb0WQ5Q=
+jest-diff@^27.0.0, jest-diff@^27.2.0:
+ version "27.2.0"
+ resolved "https://registry.npmjs.org/jest-diff/-/jest-diff-27.2.0.tgz#bda761c360f751bab1e7a2fe2fc2b0a35ce8518c"
+ integrity sha512-QSO9WC6btFYWtRJ3Hac0sRrkspf7B01mGrrQEiCW6TobtViJ9RWL0EmOs/WnBsZDsI/Y2IoSHZA2x6offu0sYw==
dependencies:
chalk "^4.0.0"
- diff-sequences "^26.6.2"
- jest-get-type "^26.3.0"
- pretty-format "^26.6.2"
+ diff-sequences "^27.0.6"
+ jest-get-type "^27.0.6"
+ pretty-format "^27.2.0"
-jest-docblock@^26.0.0:
- version "26.0.0"
- resolved "https://registry.npm.taobao.org/jest-docblock/download/jest-docblock-26.0.0.tgz?cache=0&sync_timestamp=1607352701834&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjest-docblock%2Fdownload%2Fjest-docblock-26.0.0.tgz#3e2fa20899fc928cb13bd0ff68bd3711a36889b5"
- integrity sha1-Pi+iCJn8koyxO9D/aL03EaNoibU=
+jest-docblock@^27.0.6:
+ version "27.0.6"
+ resolved "https://registry.npmjs.org/jest-docblock/-/jest-docblock-27.0.6.tgz#cc78266acf7fe693ca462cbbda0ea4e639e4e5f3"
+ integrity sha512-Fid6dPcjwepTFraz0YxIMCi7dejjJ/KL9FBjPYhBp4Sv1Y9PdhImlKZqYU555BlN4TQKaTc+F2Av1z+anVyGkA==
dependencies:
detect-newline "^3.0.0"
-jest-each@^26.6.2:
- version "26.6.2"
- resolved "https://registry.npm.taobao.org/jest-each/download/jest-each-26.6.2.tgz?cache=0&sync_timestamp=1617371405976&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjest-each%2Fdownload%2Fjest-each-26.6.2.tgz#02526438a77a67401c8a6382dfe5999952c167cb"
- integrity sha1-AlJkOKd6Z0AcimOC3+WZmVLBZ8s=
+jest-each@^27.2.0:
+ version "27.2.0"
+ resolved "https://registry.npmjs.org/jest-each/-/jest-each-27.2.0.tgz#4c531c7223de289429fc7b2473a86e653c86d61f"
+ integrity sha512-biDmmUQjg+HZOB7MfY2RHSFL3j418nMoC3TK3pGAj880fQQSxvQe1y2Wy23JJJNUlk6YXiGU0yWy86Le1HBPmA==
dependencies:
- "@jest/types" "^26.6.2"
+ "@jest/types" "^27.1.1"
chalk "^4.0.0"
- jest-get-type "^26.3.0"
- jest-util "^26.6.2"
- pretty-format "^26.6.2"
+ jest-get-type "^27.0.6"
+ jest-util "^27.2.0"
+ pretty-format "^27.2.0"
-jest-environment-jsdom@^26.6.2:
- version "26.6.2"
- resolved "https://registry.npm.taobao.org/jest-environment-jsdom/download/jest-environment-jsdom-26.6.2.tgz?cache=0&sync_timestamp=1617371407560&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjest-environment-jsdom%2Fdownload%2Fjest-environment-jsdom-26.6.2.tgz#78d09fe9cf019a357009b9b7e1f101d23bd1da3e"
- integrity sha1-eNCf6c8BmjVwCbm34fEB0jvR2j4=
+jest-environment-jsdom@^27.2.0:
+ version "27.2.0"
+ resolved "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-27.2.0.tgz#c654dfae50ca2272c2a2e2bb95ff0af298283a3c"
+ integrity sha512-wNQJi6Rd/AkUWqTc4gWhuTIFPo7tlMK0RPZXeM6AqRHZA3D3vwvTa9ktAktyVyWYmUoXdYstOfyYMG3w4jt7eA==
dependencies:
- "@jest/environment" "^26.6.2"
- "@jest/fake-timers" "^26.6.2"
- "@jest/types" "^26.6.2"
+ "@jest/environment" "^27.2.0"
+ "@jest/fake-timers" "^27.2.0"
+ "@jest/types" "^27.1.1"
"@types/node" "*"
- jest-mock "^26.6.2"
- jest-util "^26.6.2"
- jsdom "^16.4.0"
+ jest-mock "^27.1.1"
+ jest-util "^27.2.0"
+ jsdom "^16.6.0"
-jest-environment-node@^26.6.2:
- version "26.6.2"
- resolved "https://registry.npm.taobao.org/jest-environment-node/download/jest-environment-node-26.6.2.tgz?cache=0&sync_timestamp=1617371407797&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjest-environment-node%2Fdownload%2Fjest-environment-node-26.6.2.tgz#824e4c7fb4944646356f11ac75b229b0035f2b0c"
- integrity sha1-gk5Mf7SURkY1bxGsdbIpsANfKww=
+jest-environment-node@^27.2.0:
+ version "27.2.0"
+ resolved "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-27.2.0.tgz#73ef2151cb62206669becb94cd84f33276252de5"
+ integrity sha512-WbW+vdM4u88iy6Q3ftUEQOSgMPtSgjm3qixYYK2AKEuqmFO2zmACTw1vFUB0qI/QN88X6hA6ZkVKIdIWWzz+yg==
dependencies:
- "@jest/environment" "^26.6.2"
- "@jest/fake-timers" "^26.6.2"
- "@jest/types" "^26.6.2"
+ "@jest/environment" "^27.2.0"
+ "@jest/fake-timers" "^27.2.0"
+ "@jest/types" "^27.1.1"
"@types/node" "*"
- jest-mock "^26.6.2"
- jest-util "^26.6.2"
+ jest-mock "^27.1.1"
+ jest-util "^27.2.0"
-jest-get-type@^26.3.0:
- version "26.3.0"
- resolved "https://registry.npm.taobao.org/jest-get-type/download/jest-get-type-26.3.0.tgz?cache=0&sync_timestamp=1607352755729&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjest-get-type%2Fdownload%2Fjest-get-type-26.3.0.tgz#e97dc3c3f53c2b406ca7afaed4493b1d099199e0"
- integrity sha1-6X3Dw/U8K0Bsp6+u1Ek7HQmRmeA=
+jest-get-type@^27.0.6:
+ version "27.0.6"
+ resolved "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.0.6.tgz#0eb5c7f755854279ce9b68a9f1a4122f69047cfe"
+ integrity sha512-XTkK5exIeUbbveehcSR8w0bhH+c0yloW/Wpl+9vZrjzztCPWrxhHwkIFpZzCt71oRBsgxmuUfxEqOYoZI2macg==
-jest-haste-map@^26.6.2:
- version "26.6.2"
- resolved "https://registry.npm.taobao.org/jest-haste-map/download/jest-haste-map-26.6.2.tgz?cache=0&sync_timestamp=1617371405527&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjest-haste-map%2Fdownload%2Fjest-haste-map-26.6.2.tgz#dd7e60fe7dc0e9f911a23d79c5ff7fb5c2cafeaa"
- integrity sha1-3X5g/n3A6fkRoj15xf9/tcLK/qo=
+jest-haste-map@^27.2.0:
+ version "27.2.0"
+ resolved "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-27.2.0.tgz#703b3a473e3f2e27d75ab07864ffd7bbaad0d75e"
+ integrity sha512-laFet7QkNlWjwZtMGHCucLvF8o9PAh2cgePRck1+uadSM4E4XH9J4gnx4do+a6do8ZV5XHNEAXEkIoNg5XUH2Q==
dependencies:
- "@jest/types" "^26.6.2"
+ "@jest/types" "^27.1.1"
"@types/graceful-fs" "^4.1.2"
"@types/node" "*"
anymatch "^3.0.3"
fb-watchman "^2.0.0"
graceful-fs "^4.2.4"
- jest-regex-util "^26.0.0"
- jest-serializer "^26.6.2"
- jest-util "^26.6.2"
- jest-worker "^26.6.2"
- micromatch "^4.0.2"
- sane "^4.0.3"
+ jest-regex-util "^27.0.6"
+ jest-serializer "^27.0.6"
+ jest-util "^27.2.0"
+ jest-worker "^27.2.0"
+ micromatch "^4.0.4"
walker "^1.0.7"
optionalDependencies:
- fsevents "^2.1.2"
+ fsevents "^2.3.2"
-jest-jasmine2@^26.6.3:
- version "26.6.3"
- resolved "https://registry.npm.taobao.org/jest-jasmine2/download/jest-jasmine2-26.6.3.tgz?cache=0&sync_timestamp=1617371408649&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjest-jasmine2%2Fdownload%2Fjest-jasmine2-26.6.3.tgz#adc3cf915deacb5212c93b9f3547cd12958f2edd"
- integrity sha1-rcPPkV3qy1ISyTufNUfNEpWPLt0=
+jest-jasmine2@^27.2.1:
+ version "27.2.1"
+ resolved "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-27.2.1.tgz#30ee71f38670a621ecf3b6dcb89875933f780de6"
+ integrity sha512-3vytj3+S49+XYsxGJyjlchDo4xblYzjDY4XK7pV2IAdspbMFOpmeNMOeDonYuvlbUtcV8yrFLA6XtliXapDmMA==
dependencies:
"@babel/traverse" "^7.1.0"
- "@jest/environment" "^26.6.2"
- "@jest/source-map" "^26.6.2"
- "@jest/test-result" "^26.6.2"
- "@jest/types" "^26.6.2"
+ "@jest/environment" "^27.2.0"
+ "@jest/source-map" "^27.0.6"
+ "@jest/test-result" "^27.2.0"
+ "@jest/types" "^27.1.1"
"@types/node" "*"
chalk "^4.0.0"
co "^4.6.0"
- expect "^26.6.2"
+ expect "^27.2.1"
is-generator-fn "^2.0.0"
- jest-each "^26.6.2"
- jest-matcher-utils "^26.6.2"
- jest-message-util "^26.6.2"
- jest-runtime "^26.6.3"
- jest-snapshot "^26.6.2"
- jest-util "^26.6.2"
- pretty-format "^26.6.2"
- throat "^5.0.0"
+ jest-each "^27.2.0"
+ jest-matcher-utils "^27.2.0"
+ jest-message-util "^27.2.0"
+ jest-runtime "^27.2.1"
+ jest-snapshot "^27.2.1"
+ jest-util "^27.2.0"
+ pretty-format "^27.2.0"
+ throat "^6.0.1"
-jest-leak-detector@^26.6.2:
- version "26.6.2"
- resolved "https://registry.npm.taobao.org/jest-leak-detector/download/jest-leak-detector-26.6.2.tgz?cache=0&sync_timestamp=1617381031236&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjest-leak-detector%2Fdownload%2Fjest-leak-detector-26.6.2.tgz#7717cf118b92238f2eba65054c8a0c9c653a91af"
- integrity sha1-dxfPEYuSI48uumUFTIoMnGU6ka8=
+jest-leak-detector@^27.2.0:
+ version "27.2.0"
+ resolved "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-27.2.0.tgz#9a7ca2dad1a21c4e49ad2a8ad7f1214ffdb86a28"
+ integrity sha512-e91BIEmbZw5+MHkB4Hnrq7S86coTxUMCkz4n7DLmQYvl9pEKmRx9H/JFH87bBqbIU5B2Ju1soKxRWX6/eGFGpA==
dependencies:
- jest-get-type "^26.3.0"
- pretty-format "^26.6.2"
+ jest-get-type "^27.0.6"
+ pretty-format "^27.2.0"
-jest-matcher-utils@^26.6.2:
- version "26.6.2"
- resolved "https://registry.npm.taobao.org/jest-matcher-utils/download/jest-matcher-utils-26.6.2.tgz#8e6fd6e863c8b2d31ac6472eeb237bc595e53e7a"
- integrity sha1-jm/W6GPIstMaxkcu6yN7xZXlPno=
+jest-matcher-utils@^27.2.0:
+ version "27.2.0"
+ resolved "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-27.2.0.tgz#b4d224ab88655d5fab64b96b989ac349e2f5da43"
+ integrity sha512-F+LG3iTwJ0gPjxBX6HCyrARFXq6jjiqhwBQeskkJQgSLeF1j6ui1RTV08SR7O51XTUhtc8zqpDj8iCG4RGmdKw==
dependencies:
chalk "^4.0.0"
- jest-diff "^26.6.2"
- jest-get-type "^26.3.0"
- pretty-format "^26.6.2"
+ jest-diff "^27.2.0"
+ jest-get-type "^27.0.6"
+ pretty-format "^27.2.0"
-jest-message-util@^26.6.2:
- version "26.6.2"
- resolved "https://registry.npm.taobao.org/jest-message-util/download/jest-message-util-26.6.2.tgz?cache=0&sync_timestamp=1617371992921&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjest-message-util%2Fdownload%2Fjest-message-util-26.6.2.tgz#58173744ad6fc0506b5d21150b9be56ef001ca07"
- integrity sha1-WBc3RK1vwFBrXSEVC5vlbvABygc=
+jest-message-util@^27.2.0:
+ version "27.2.0"
+ resolved "https://registry.npmjs.org/jest-message-util/-/jest-message-util-27.2.0.tgz#2f65c71df55267208686b1d7514e18106c91ceaf"
+ integrity sha512-y+sfT/94CiP8rKXgwCOzO1mUazIEdEhrLjuiu+RKmCP+8O/TJTSne9dqQRbFIHBtlR2+q7cddJlWGir8UATu5w==
dependencies:
- "@babel/code-frame" "^7.0.0"
- "@jest/types" "^26.6.2"
+ "@babel/code-frame" "^7.12.13"
+ "@jest/types" "^27.1.1"
"@types/stack-utils" "^2.0.0"
chalk "^4.0.0"
graceful-fs "^4.2.4"
- micromatch "^4.0.2"
- pretty-format "^26.6.2"
+ micromatch "^4.0.4"
+ pretty-format "^27.2.0"
slash "^3.0.0"
- stack-utils "^2.0.2"
+ stack-utils "^2.0.3"
-jest-mock@^26.6.2:
- version "26.6.2"
- resolved "https://registry.npm.taobao.org/jest-mock/download/jest-mock-26.6.2.tgz?cache=0&sync_timestamp=1617381030788&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjest-mock%2Fdownload%2Fjest-mock-26.6.2.tgz#d6cb712b041ed47fe0d9b6fc3474bc6543feb302"
- integrity sha1-1stxKwQe1H/g2bb8NHS8ZUP+swI=
+jest-mock@^27.1.1:
+ version "27.1.1"
+ resolved "https://registry.npmjs.org/jest-mock/-/jest-mock-27.1.1.tgz#c7a2e81301fdcf3dab114931d23d89ec9d0c3a82"
+ integrity sha512-SClsFKuYBf+6SSi8jtAYOuPw8DDMsTElUWEae3zq7vDhH01ayVSIHUSIa8UgbDOUalCFp6gNsaikN0rbxN4dbw==
dependencies:
- "@jest/types" "^26.6.2"
+ "@jest/types" "^27.1.1"
"@types/node" "*"
jest-pnp-resolver@^1.2.2:
@@ -8980,184 +7910,196 @@ jest-pnp-resolver@^1.2.2:
resolved "https://registry.npm.taobao.org/jest-pnp-resolver/download/jest-pnp-resolver-1.2.2.tgz#b704ac0ae028a89108a4d040b3f919dfddc8e33c"
integrity sha1-twSsCuAoqJEIpNBAs/kZ393I4zw=
-jest-regex-util@^26.0.0:
- version "26.0.0"
- resolved "https://registry.npm.taobao.org/jest-regex-util/download/jest-regex-util-26.0.0.tgz?cache=0&sync_timestamp=1607352728942&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjest-regex-util%2Fdownload%2Fjest-regex-util-26.0.0.tgz#d25e7184b36e39fd466c3bc41be0971e821fee28"
- integrity sha1-0l5xhLNuOf1GbDvEG+CXHoIf7ig=
+jest-regex-util@^27.0.6:
+ version "27.0.6"
+ resolved "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-27.0.6.tgz#02e112082935ae949ce5d13b2675db3d8c87d9c5"
+ integrity sha512-SUhPzBsGa1IKm8hx2F4NfTGGp+r7BXJ4CulsZ1k2kI+mGLG+lxGrs76veN2LF/aUdGosJBzKgXmNCw+BzFqBDQ==
-jest-resolve-dependencies@^26.6.3:
- version "26.6.3"
- resolved "https://registry.npm.taobao.org/jest-resolve-dependencies/download/jest-resolve-dependencies-26.6.3.tgz?cache=0&sync_timestamp=1617371408370&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjest-resolve-dependencies%2Fdownload%2Fjest-resolve-dependencies-26.6.3.tgz#6680859ee5d22ee5dcd961fe4871f59f4c784fb6"
- integrity sha1-ZoCFnuXSLuXc2WH+SHH1n0x4T7Y=
+jest-resolve-dependencies@^27.2.1:
+ version "27.2.1"
+ resolved "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-27.2.1.tgz#239be969ece749d4dc2e1efcf3d2b86c99525c2e"
+ integrity sha512-9bKEwmz4YshGPjGZAVZOVw6jt7pq2/FjWJmyhnWhvDuiRCHVZBcJhycinX+e/EJ7jafsq26bTpzBIQas3xql1g==
dependencies:
- "@jest/types" "^26.6.2"
- jest-regex-util "^26.0.0"
- jest-snapshot "^26.6.2"
+ "@jest/types" "^27.1.1"
+ jest-regex-util "^27.0.6"
+ jest-snapshot "^27.2.1"
-jest-resolve@^26.6.2:
- version "26.6.2"
- resolved "https://registry.npm.taobao.org/jest-resolve/download/jest-resolve-26.6.2.tgz#a3ab1517217f469b504f1b56603c5bb541fbb507"
- integrity sha1-o6sVFyF/RptQTxtWYDxbtUH7tQc=
+jest-resolve@^27.2.0:
+ version "27.2.0"
+ resolved "https://registry.npmjs.org/jest-resolve/-/jest-resolve-27.2.0.tgz#f5d053693ab3806ec2f778e6df8b0aa4cfaef95f"
+ integrity sha512-v09p9Ib/VtpHM6Cz+i9lEAv1Z/M5NVxsyghRHRMEUOqwPQs3zwTdwp1xS3O/k5LocjKiGS0OTaJoBSpjbM2Jlw==
dependencies:
- "@jest/types" "^26.6.2"
+ "@jest/types" "^27.1.1"
chalk "^4.0.0"
+ escalade "^3.1.1"
graceful-fs "^4.2.4"
+ jest-haste-map "^27.2.0"
jest-pnp-resolver "^1.2.2"
- jest-util "^26.6.2"
- read-pkg-up "^7.0.1"
- resolve "^1.18.1"
+ jest-util "^27.2.0"
+ jest-validate "^27.2.0"
+ resolve "^1.20.0"
slash "^3.0.0"
-jest-runner@^26.6.3:
- version "26.6.3"
- resolved "https://registry.npm.taobao.org/jest-runner/download/jest-runner-26.6.3.tgz?cache=0&sync_timestamp=1617371409419&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjest-runner%2Fdownload%2Fjest-runner-26.6.3.tgz#2d1fed3d46e10f233fd1dbd3bfaa3fe8924be159"
- integrity sha1-LR/tPUbhDyM/0dvTv6o/6JJL4Vk=
+jest-runner@^27.2.1:
+ version "27.2.1"
+ resolved "https://registry.npmjs.org/jest-runner/-/jest-runner-27.2.1.tgz#3443b1fc08b8a50f305dfc2d41dd2badf335843b"
+ integrity sha512-USHitkUUzcB3Y5mRdzlp+KHgRRR2VsXDq5OeATuDmq1qXfT/RwwnQykUhn+KVx3FotxK3pID74UY7o6HYIR8vA==
dependencies:
- "@jest/console" "^26.6.2"
- "@jest/environment" "^26.6.2"
- "@jest/test-result" "^26.6.2"
- "@jest/types" "^26.6.2"
+ "@jest/console" "^27.2.0"
+ "@jest/environment" "^27.2.0"
+ "@jest/test-result" "^27.2.0"
+ "@jest/transform" "^27.2.1"
+ "@jest/types" "^27.1.1"
"@types/node" "*"
chalk "^4.0.0"
- emittery "^0.7.1"
+ emittery "^0.8.1"
exit "^0.1.2"
graceful-fs "^4.2.4"
- jest-config "^26.6.3"
- jest-docblock "^26.0.0"
- jest-haste-map "^26.6.2"
- jest-leak-detector "^26.6.2"
- jest-message-util "^26.6.2"
- jest-resolve "^26.6.2"
- jest-runtime "^26.6.3"
- jest-util "^26.6.2"
- jest-worker "^26.6.2"
+ jest-docblock "^27.0.6"
+ jest-environment-jsdom "^27.2.0"
+ jest-environment-node "^27.2.0"
+ jest-haste-map "^27.2.0"
+ jest-leak-detector "^27.2.0"
+ jest-message-util "^27.2.0"
+ jest-resolve "^27.2.0"
+ jest-runtime "^27.2.1"
+ jest-util "^27.2.0"
+ jest-worker "^27.2.0"
source-map-support "^0.5.6"
- throat "^5.0.0"
+ throat "^6.0.1"
-jest-runtime@^26.6.3:
- version "26.6.3"
- resolved "https://registry.npm.taobao.org/jest-runtime/download/jest-runtime-26.6.3.tgz?cache=0&sync_timestamp=1617371408085&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjest-runtime%2Fdownload%2Fjest-runtime-26.6.3.tgz#4f64efbcfac398331b74b4b3c82d27d401b8fa2b"
- integrity sha1-T2TvvPrDmDMbdLSzyC0n1AG4+is=
+jest-runtime@^27.2.1:
+ version "27.2.1"
+ resolved "https://registry.npmjs.org/jest-runtime/-/jest-runtime-27.2.1.tgz#db506f679356f5b94b7be20e770f2541b7c2b339"
+ integrity sha512-QJNnwL4iteDE/Jq4TfQK7AjhPoUZflBKTtUIkRnFYFkTAZTP/o8k7ekaROiVjmo+NYop5+DQPqX6pz4vWbZSOQ==
dependencies:
- "@jest/console" "^26.6.2"
- "@jest/environment" "^26.6.2"
- "@jest/fake-timers" "^26.6.2"
- "@jest/globals" "^26.6.2"
- "@jest/source-map" "^26.6.2"
- "@jest/test-result" "^26.6.2"
- "@jest/transform" "^26.6.2"
- "@jest/types" "^26.6.2"
- "@types/yargs" "^15.0.0"
+ "@jest/console" "^27.2.0"
+ "@jest/environment" "^27.2.0"
+ "@jest/fake-timers" "^27.2.0"
+ "@jest/globals" "^27.2.1"
+ "@jest/source-map" "^27.0.6"
+ "@jest/test-result" "^27.2.0"
+ "@jest/transform" "^27.2.1"
+ "@jest/types" "^27.1.1"
+ "@types/yargs" "^16.0.0"
chalk "^4.0.0"
- cjs-module-lexer "^0.6.0"
+ cjs-module-lexer "^1.0.0"
collect-v8-coverage "^1.0.0"
+ execa "^5.0.0"
exit "^0.1.2"
glob "^7.1.3"
graceful-fs "^4.2.4"
- jest-config "^26.6.3"
- jest-haste-map "^26.6.2"
- jest-message-util "^26.6.2"
- jest-mock "^26.6.2"
- jest-regex-util "^26.0.0"
- jest-resolve "^26.6.2"
- jest-snapshot "^26.6.2"
- jest-util "^26.6.2"
- jest-validate "^26.6.2"
+ jest-haste-map "^27.2.0"
+ jest-message-util "^27.2.0"
+ jest-mock "^27.1.1"
+ jest-regex-util "^27.0.6"
+ jest-resolve "^27.2.0"
+ jest-snapshot "^27.2.1"
+ jest-util "^27.2.0"
+ jest-validate "^27.2.0"
slash "^3.0.0"
strip-bom "^4.0.0"
- yargs "^15.4.1"
+ yargs "^16.0.3"
-jest-serializer-html@^7.0.0:
- version "7.0.0"
- resolved "https://registry.npm.taobao.org/jest-serializer-html/download/jest-serializer-html-7.0.0.tgz#9db553a69dea3498412a44c80d74a3770ff62936"
- integrity sha1-nbVTpp3qNJhBKkTIDXSjdw/2KTY=
+jest-serializer-html@^7.1.0:
+ version "7.1.0"
+ resolved "https://registry.npmjs.org/jest-serializer-html/-/jest-serializer-html-7.1.0.tgz#0cfea8a03b9b82bc420fd2cb969bd76713a87c08"
+ integrity sha512-xYL2qC7kmoYHJo8MYqJkzrl/Fdlx+fat4U1AqYg+kafqwcKPiMkOcjWHPKhueuNEgr+uemhGc+jqXYiwCyRyLA==
dependencies:
- diffable-html "^4.0.0"
+ diffable-html "^4.1.0"
-jest-serializer@^26.6.2:
- version "26.6.2"
- resolved "https://registry.npm.taobao.org/jest-serializer/download/jest-serializer-26.6.2.tgz?cache=0&sync_timestamp=1607352842215&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjest-serializer%2Fdownload%2Fjest-serializer-26.6.2.tgz#d139aafd46957d3a448f3a6cdabe2919ba0742d1"
- integrity sha1-0Tmq/UaVfTpEjzps2r4pGboHQtE=
+jest-serializer@^27.0.6:
+ version "27.0.6"
+ resolved "https://registry.npmjs.org/jest-serializer/-/jest-serializer-27.0.6.tgz#93a6c74e0132b81a2d54623251c46c498bb5bec1"
+ integrity sha512-PtGdVK9EGC7dsaziskfqaAPib6wTViY3G8E5wz9tLVPhHyiDNTZn/xjZ4khAw+09QkoOVpn7vF5nPSN6dtBexA==
dependencies:
"@types/node" "*"
graceful-fs "^4.2.4"
-jest-snapshot@^26.6.2:
- version "26.6.2"
- resolved "https://registry.npm.taobao.org/jest-snapshot/download/jest-snapshot-26.6.2.tgz#f3b0af1acb223316850bd14e1beea9837fb39c84"
- integrity sha1-87CvGssiMxaFC9FOG+6pg3+znIQ=
+jest-snapshot@^27.2.1:
+ version "27.2.1"
+ resolved "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-27.2.1.tgz#385accf3bb71ac84e9a6bda4fc9bb458d53abb35"
+ integrity sha512-8CTg2YrgZuQbPHW7G0YvLTj4yTRXLmSeEO+ka3eC5lbu5dsTRyoDNS1L7x7EFUTyYQhFH9HQG1/TNlbUgR9Lug==
dependencies:
+ "@babel/core" "^7.7.2"
+ "@babel/generator" "^7.7.2"
+ "@babel/parser" "^7.7.2"
+ "@babel/plugin-syntax-typescript" "^7.7.2"
+ "@babel/traverse" "^7.7.2"
"@babel/types" "^7.0.0"
- "@jest/types" "^26.6.2"
+ "@jest/transform" "^27.2.1"
+ "@jest/types" "^27.1.1"
"@types/babel__traverse" "^7.0.4"
- "@types/prettier" "^2.0.0"
+ "@types/prettier" "^2.1.5"
+ babel-preset-current-node-syntax "^1.0.0"
chalk "^4.0.0"
- expect "^26.6.2"
+ expect "^27.2.1"
graceful-fs "^4.2.4"
- jest-diff "^26.6.2"
- jest-get-type "^26.3.0"
- jest-haste-map "^26.6.2"
- jest-matcher-utils "^26.6.2"
- jest-message-util "^26.6.2"
- jest-resolve "^26.6.2"
+ jest-diff "^27.2.0"
+ jest-get-type "^27.0.6"
+ jest-haste-map "^27.2.0"
+ jest-matcher-utils "^27.2.0"
+ jest-message-util "^27.2.0"
+ jest-resolve "^27.2.0"
+ jest-util "^27.2.0"
natural-compare "^1.4.0"
- pretty-format "^26.6.2"
+ pretty-format "^27.2.0"
semver "^7.3.2"
-jest-util@^26.1.0, jest-util@^26.6.2:
- version "26.6.2"
- resolved "https://registry.npm.taobao.org/jest-util/download/jest-util-26.6.2.tgz?cache=0&sync_timestamp=1617371405266&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjest-util%2Fdownload%2Fjest-util-26.6.2.tgz#907535dbe4d5a6cb4c47ac9b926f6af29576cbc1"
- integrity sha1-kHU12+TVpstMR6ybkm9q8pV2y8E=
+jest-util@^27.0.0, jest-util@^27.2.0:
+ version "27.2.0"
+ resolved "https://registry.npmjs.org/jest-util/-/jest-util-27.2.0.tgz#bfccb85cfafae752257319e825a5b8d4ada470dc"
+ integrity sha512-T5ZJCNeFpqcLBpx+Hl9r9KoxBCUqeWlJ1Htli+vryigZVJ1vuLB9j35grEBASp4R13KFkV7jM52bBGnArpJN6A==
dependencies:
- "@jest/types" "^26.6.2"
+ "@jest/types" "^27.1.1"
"@types/node" "*"
chalk "^4.0.0"
graceful-fs "^4.2.4"
- is-ci "^2.0.0"
- micromatch "^4.0.2"
+ is-ci "^3.0.0"
+ picomatch "^2.2.3"
-jest-validate@^26.6.2:
- version "26.6.2"
- resolved "https://registry.npm.taobao.org/jest-validate/download/jest-validate-26.6.2.tgz?cache=0&sync_timestamp=1617371406531&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjest-validate%2Fdownload%2Fjest-validate-26.6.2.tgz#23d380971587150467342911c3d7b4ac57ab20ec"
- integrity sha1-I9OAlxWHFQRnNCkRw9e0rFerIOw=
+jest-validate@^27.2.0:
+ version "27.2.0"
+ resolved "https://registry.npmjs.org/jest-validate/-/jest-validate-27.2.0.tgz#b7535f12d95dd3b4382831f4047384ca098642ab"
+ integrity sha512-uIEZGkFKk3+4liA81Xu0maG5aGDyPLdp+4ed244c+Ql0k3aLWQYcMbaMLXOIFcb83LPHzYzqQ8hwNnIxTqfAGQ==
dependencies:
- "@jest/types" "^26.6.2"
- camelcase "^6.0.0"
+ "@jest/types" "^27.1.1"
+ camelcase "^6.2.0"
chalk "^4.0.0"
- jest-get-type "^26.3.0"
+ jest-get-type "^27.0.6"
leven "^3.1.0"
- pretty-format "^26.6.2"
+ pretty-format "^27.2.0"
-jest-watcher@^26.6.2:
- version "26.6.2"
- resolved "https://registry.npm.taobao.org/jest-watcher/download/jest-watcher-26.6.2.tgz?cache=0&sync_timestamp=1617372477311&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjest-watcher%2Fdownload%2Fjest-watcher-26.6.2.tgz#a5b683b8f9d68dbcb1d7dae32172d2cca0592975"
- integrity sha1-pbaDuPnWjbyx19rjIXLSzKBZKXU=
+jest-watcher@^27.2.0:
+ version "27.2.0"
+ resolved "https://registry.npmjs.org/jest-watcher/-/jest-watcher-27.2.0.tgz#dc2eef4c13c6d41cebf3f1fc5f900a54b51c2ea0"
+ integrity sha512-SjRWhnr+qO8aBsrcnYIyF+qRxNZk6MZH8TIDgvi+VlsyrvOyqg0d+Rm/v9KHiTtC9mGGeFi9BFqgavyWib6xLg==
dependencies:
- "@jest/test-result" "^26.6.2"
- "@jest/types" "^26.6.2"
+ "@jest/test-result" "^27.2.0"
+ "@jest/types" "^27.1.1"
"@types/node" "*"
ansi-escapes "^4.2.1"
chalk "^4.0.0"
- jest-util "^26.6.2"
+ jest-util "^27.2.0"
string-length "^4.0.1"
-jest-worker@^26.6.2:
- version "26.6.2"
- resolved "https://registry.npm.taobao.org/jest-worker/download/jest-worker-26.6.2.tgz?cache=0&sync_timestamp=1617371299312&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjest-worker%2Fdownload%2Fjest-worker-26.6.2.tgz#7f72cbc4d643c365e27b9fd775f9d0eaa9c7a8ed"
- integrity sha1-f3LLxNZDw2Xie5/XdfnQ6qnHqO0=
+jest-worker@^27.2.0:
+ version "27.2.0"
+ resolved "https://registry.npmjs.org/jest-worker/-/jest-worker-27.2.0.tgz#11eef39f1c88f41384ca235c2f48fe50bc229bc0"
+ integrity sha512-laB0ZVIBz+voh/QQy9dmUuuDsadixeerrKqyVpgPz+CCWiOYjOBabUXHIXZhsdvkWbLqSHbgkAHWl5cg24Q6RA==
dependencies:
"@types/node" "*"
merge-stream "^2.0.0"
- supports-color "^7.0.0"
+ supports-color "^8.0.0"
-jest@^26.6.3:
- version "26.6.3"
- resolved "https://registry.npm.taobao.org/jest/download/jest-26.6.3.tgz#40e8fdbe48f00dfa1f0ce8121ca74b88ac9148ef"
- integrity sha1-QOj9vkjwDfofDOgSHKdLiKyRSO8=
+jest@^27.0.6:
+ version "27.2.1"
+ resolved "https://registry.npmjs.org/jest/-/jest-27.2.1.tgz#9263102056fe152fd2478d181cf9bbbd2a6a8da4"
+ integrity sha512-0MyvNS7J1HbkeotYaqKNGioN+p1/AAPtI1Z8iwMtCBE+PwBT+M4l25D9Pve8/KdhktYLgZaGyyj9CoDytD+R2Q==
dependencies:
- "@jest/core" "^26.6.3"
+ "@jest/core" "^27.2.1"
import-local "^3.0.2"
- jest-cli "^26.6.3"
+ jest-cli "^27.2.1"
jimp@^0.9.3:
version "0.9.8"
@@ -9176,11 +8118,6 @@ jpeg-js@^0.3.4:
resolved "https://registry.npm.taobao.org/jpeg-js/download/jpeg-js-0.3.7.tgz#471a89d06011640592d314158608690172b1028d"
integrity sha1-RxqJ0GARZAWS0xQVhghpAXKxAo0=
-js-levenshtein@^1.1.3:
- version "1.1.6"
- resolved "https://registry.npm.taobao.org/js-levenshtein/download/js-levenshtein-1.1.6.tgz#c6cee58eb3550372df8deb85fad5ce66ce01d59d"
- integrity sha1-xs7ljrNVA3LfjeuF+tXOZs4B1Z0=
-
"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0:
version "4.0.0"
resolved "https://registry.npm.taobao.org/js-tokens/download/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
@@ -9204,13 +8141,13 @@ jsbn@~0.1.0:
resolved "https://registry.npm.taobao.org/jsbn/download/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513"
integrity sha1-peZUwuWi3rXyAdls77yoDA7y9RM=
-jsdom@^16.4.0:
- version "16.5.2"
- resolved "https://registry.npm.taobao.org/jsdom/download/jsdom-16.5.2.tgz?cache=0&sync_timestamp=1616953117067&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjsdom%2Fdownload%2Fjsdom-16.5.2.tgz#583fac89a0aea31dbf6237e7e4bedccd9beab472"
- integrity sha1-WD+siaCuox2/Yjfn5L7czZvqtHI=
+jsdom@^16.6.0:
+ version "16.7.0"
+ resolved "https://registry.npmjs.org/jsdom/-/jsdom-16.7.0.tgz#918ae71965424b197c819f8183a754e18977b710"
+ integrity sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==
dependencies:
abab "^2.0.5"
- acorn "^8.1.0"
+ acorn "^8.2.4"
acorn-globals "^6.0.0"
cssom "^0.4.4"
cssstyle "^2.3.0"
@@ -9218,12 +8155,13 @@ jsdom@^16.4.0:
decimal.js "^10.2.1"
domexception "^2.0.1"
escodegen "^2.0.0"
+ form-data "^3.0.0"
html-encoding-sniffer "^2.0.1"
- is-potential-custom-element-name "^1.0.0"
+ http-proxy-agent "^4.0.1"
+ https-proxy-agent "^5.0.0"
+ is-potential-custom-element-name "^1.0.1"
nwsapi "^2.2.0"
parse5 "6.0.1"
- request "^2.88.2"
- request-promise-native "^1.0.9"
saxes "^5.0.1"
symbol-tree "^3.2.4"
tough-cookie "^4.0.0"
@@ -9233,7 +8171,7 @@ jsdom@^16.4.0:
whatwg-encoding "^1.0.5"
whatwg-mimetype "^2.3.0"
whatwg-url "^8.5.0"
- ws "^7.4.4"
+ ws "^7.4.6"
xml-name-validator "^3.0.0"
jsesc@^1.3.0:
@@ -9261,7 +8199,7 @@ json-buffer@3.0.1:
resolved "https://registry.npm.taobao.org/json-buffer/download/json-buffer-3.0.1.tgz#9338802a30d3b6605fbe0613e094008ca8c05a13"
integrity sha1-kziAKjDTtmBfvgYT4JQAjKjAWhM=
-json-parse-better-errors@^1.0.1, json-parse-better-errors@^1.0.2:
+json-parse-better-errors@^1.0.1:
version "1.0.2"
resolved "https://registry.npm.taobao.org/json-parse-better-errors/download/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9"
integrity sha1-u4Z8+zRQ5pEHwTHRxRS6s9yLyqk=
@@ -9301,12 +8239,7 @@ json-stringify-safe@^5.0.1, json-stringify-safe@~5.0.1:
resolved "https://registry.npm.taobao.org/json-stringify-safe/download/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb"
integrity sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=
-json3@^3.3.3:
- version "3.3.3"
- resolved "https://registry.npm.taobao.org/json3/download/json3-3.3.3.tgz#7fc10e375fc5ae42c4705a5cc0aa6f62be305b81"
- integrity sha1-f8EON1/FrkLEcFpcwKpvYr4wW4E=
-
-json5@2.x, json5@^2.1.0, json5@^2.1.2, json5@^2.2.0:
+json5@2.x, json5@^2.1.2, json5@^2.2.0:
version "2.2.0"
resolved "https://registry.npm.taobao.org/json5/download/json5-2.2.0.tgz?cache=0&sync_timestamp=1612146079519&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjson5%2Fdownload%2Fjson5-2.2.0.tgz#2dfefe720c6ba525d9ebd909950f0515316c89a3"
integrity sha1-Lf7+cgxrpSXZ69kJlQ8FFTFsiaM=
@@ -9318,13 +8251,6 @@ json5@^0.5.1:
resolved "https://registry.npm.taobao.org/json5/download/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821"
integrity sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=
-json5@^1.0.1:
- version "1.0.1"
- resolved "https://registry.npm.taobao.org/json5/download/json5-1.0.1.tgz#779fb0018604fa854eacbf6252180d83543e3dbe"
- integrity sha1-d5+wAYYE+oVOrL9iUhgNg1Q+Pb4=
- dependencies:
- minimist "^1.2.0"
-
jsonfile@^4.0.0:
version "4.0.0"
resolved "https://registry.npm.taobao.org/jsonfile/download/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb"
@@ -9390,11 +8316,6 @@ keyv@^4.0.0:
dependencies:
json-buffer "3.0.1"
-killable@^1.0.1:
- version "1.0.1"
- resolved "https://registry.npm.taobao.org/killable/download/killable-1.0.1.tgz#4c8ce441187a061c7474fb87ca08e2a638194892"
- integrity sha1-TIzkQRh6Bhx0dPuHygjipjgZSJI=
-
kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0:
version "3.2.2"
resolved "https://registry.npm.taobao.org/kind-of/download/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64"
@@ -9424,11 +8345,6 @@ kleur@^3.0.3:
resolved "https://registry.npm.taobao.org/kleur/download/kleur-3.0.3.tgz?cache=0&sync_timestamp=1611347662017&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fkleur%2Fdownload%2Fkleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e"
integrity sha1-p5yezIbuHOP6YgbRIWxQHxR/wH4=
-klona@^2.0.4:
- version "2.0.4"
- resolved "https://registry.npm.taobao.org/klona/download/klona-2.0.4.tgz?cache=0&sync_timestamp=1600226636423&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fklona%2Fdownload%2Fklona-2.0.4.tgz#7bb1e3affb0cb8624547ef7e8f6708ea2e39dfc0"
- integrity sha1-e7Hjr/sMuGJFR+9+j2cI6i4538A=
-
known-css-properties@^0.21.0:
version "0.21.0"
resolved "https://registry.npm.taobao.org/known-css-properties/download/known-css-properties-0.21.0.tgz#15fbd0bbb83447f3ce09d8af247ed47c68ede80d"
@@ -9470,15 +8386,6 @@ lead@^1.0.0:
dependencies:
flush-write-stream "^1.0.2"
-less-loader@^7.2.1:
- version "7.3.0"
- resolved "https://registry.npm.taobao.org/less-loader/download/less-loader-7.3.0.tgz?cache=0&sync_timestamp=1617983537032&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fless-loader%2Fdownload%2Fless-loader-7.3.0.tgz#f9d6d36d18739d642067a05fb5bd70c8c61317e5"
- integrity sha1-+dbTbRhznWQgZ6Bftb1wyMYTF+U=
- dependencies:
- klona "^2.0.4"
- loader-utils "^2.0.0"
- schema-utils "^3.0.0"
-
"less@^3.7.1 || ^4.0.0", less@^4.1.1:
version "4.1.1"
resolved "https://registry.yarnpkg.com/less/-/less-4.1.1.tgz#15bf253a9939791dc690888c3ff424f3e6c7edba"
@@ -9555,36 +8462,33 @@ linkify-it@^3.0.1:
dependencies:
uc.micro "^1.0.1"
-lint-staged@^10.5.3:
- version "10.5.4"
- resolved "https://registry.npm.taobao.org/lint-staged/download/lint-staged-10.5.4.tgz#cd153b5f0987d2371fc1d2847a409a2fe705b665"
- integrity sha1-zRU7XwmH0jcfwdKEekCaL+cFtmU=
+lint-staged@^11.1.2:
+ version "11.1.2"
+ resolved "https://registry.npmjs.org/lint-staged/-/lint-staged-11.1.2.tgz#4dd78782ae43ee6ebf2969cad9af67a46b33cd90"
+ integrity sha512-6lYpNoA9wGqkL6Hew/4n1H6lRqF3qCsujVT0Oq5Z4hiSAM7S6NksPJ3gnr7A7R52xCtiZMcEUNNQ6d6X5Bvh9w==
dependencies:
- chalk "^4.1.0"
+ chalk "^4.1.1"
cli-truncate "^2.1.0"
- commander "^6.2.0"
+ commander "^7.2.0"
cosmiconfig "^7.0.0"
- debug "^4.2.0"
- dedent "^0.7.0"
+ debug "^4.3.1"
enquirer "^2.3.6"
- execa "^4.1.0"
- listr2 "^3.2.2"
- log-symbols "^4.0.0"
- micromatch "^4.0.2"
+ execa "^5.0.0"
+ listr2 "^3.8.2"
+ log-symbols "^4.1.0"
+ micromatch "^4.0.4"
normalize-path "^3.0.0"
please-upgrade-node "^3.2.0"
string-argv "0.3.1"
stringify-object "^3.3.0"
-listr2@^3.2.2:
- version "3.6.2"
- resolved "https://registry.npm.taobao.org/listr2/download/listr2-3.6.2.tgz#7260159f9108523eaa430d4a674db65b6c2d08cc"
- integrity sha1-cmAVn5EIUj6qQw1KZ022W2wtCMw=
+listr2@^3.8.2:
+ version "3.12.1"
+ resolved "https://registry.npmjs.org/listr2/-/listr2-3.12.1.tgz#75e515b86c66b60baf253542cc0dced6b60fedaf"
+ integrity sha512-oB1DlXlCzGPbvWhqYBZUQEPJKqsmebQWofXG6Mpbe3uIvoNl8mctBEojyF13ZyqwQ91clCWXpwsWp+t98K4FOQ==
dependencies:
- chalk "^4.1.0"
cli-truncate "^2.1.0"
- figures "^3.2.0"
- indent-string "^4.0.0"
+ colorette "^1.4.0"
log-update "^4.0.0"
p-map "^4.0.0"
rxjs "^6.6.7"
@@ -9626,29 +8530,6 @@ load-json-file@^4.0.0:
pify "^3.0.0"
strip-bom "^3.0.0"
-loader-runner@^4.2.0:
- version "4.2.0"
- resolved "https://registry.npm.taobao.org/loader-runner/download/loader-runner-4.2.0.tgz?cache=0&sync_timestamp=1610027852811&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Floader-runner%2Fdownload%2Floader-runner-4.2.0.tgz#d7022380d66d14c5fb1d496b89864ebcfd478384"
- integrity sha1-1wIjgNZtFMX7HUlriYZOvP1Hg4Q=
-
-loader-utils@^1.1.0, loader-utils@^1.4.0:
- version "1.4.0"
- resolved "https://registry.npm.taobao.org/loader-utils/download/loader-utils-1.4.0.tgz#c579b5e34cb34b1a74edc6c1fb36bfa371d5a613"
- integrity sha1-xXm140yzSxp07cbB+za/o3HVphM=
- dependencies:
- big.js "^5.2.2"
- emojis-list "^3.0.0"
- json5 "^1.0.1"
-
-loader-utils@^2.0.0:
- version "2.0.0"
- resolved "https://registry.npm.taobao.org/loader-utils/download/loader-utils-2.0.0.tgz#e4cace5b816d425a166b5f097e10cd12b36064b0"
- integrity sha1-5MrOW4FtQloWa18JfhDNErNgZLA=
- dependencies:
- big.js "^5.2.2"
- emojis-list "^3.0.0"
- json5 "^2.1.2"
-
locate-path@^2.0.0:
version "2.0.0"
resolved "https://registry.npm.taobao.org/locate-path/download/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e"
@@ -9672,18 +8553,6 @@ locate-path@^5.0.0:
dependencies:
p-locate "^4.1.0"
-locate-path@^6.0.0:
- version "6.0.0"
- resolved "https://registry.npm.taobao.org/locate-path/download/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286"
- integrity sha1-VTIeswn+u8WcSAHZMackUqaB0oY=
- dependencies:
- p-locate "^5.0.0"
-
-lodash.camelcase@^4.3.0:
- version "4.3.0"
- resolved "https://registry.npm.taobao.org/lodash.camelcase/download/lodash.camelcase-4.3.0.tgz#b28aa6288a2b9fc651035c7711f65ab6190331a6"
- integrity sha1-soqmKIorn8ZRA1x3EfZathkDMaY=
-
lodash.clonedeep@^4.5.0:
version "4.5.0"
resolved "https://registry.npm.taobao.org/lodash.clonedeep/download/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef"
@@ -9719,12 +8588,12 @@ lodash.uniq@^4.5.0:
resolved "https://registry.npm.taobao.org/lodash.uniq/download/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773"
integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=
-lodash@4.17.21, lodash@4.x, lodash@^4.17.11, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.17.4, lodash@^4.7.0:
+lodash@4.17.21, lodash@4.x, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.17.4, lodash@^4.7.0:
version "4.17.21"
resolved "https://registry.npm.taobao.org/lodash/download/lodash-4.17.21.tgz?cache=0&sync_timestamp=1613835817439&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Flodash%2Fdownload%2Flodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
integrity sha1-Z5WRxWTDv/quhFTPCz3zcMPWkRw=
-log-symbols@^4.0.0, log-symbols@^4.1.0:
+log-symbols@^4.1.0:
version "4.1.0"
resolved "https://registry.npm.taobao.org/log-symbols/download/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503"
integrity sha1-P727lbRoOsn8eFER55LlWNSr1QM=
@@ -9742,11 +8611,6 @@ log-update@^4.0.0:
slice-ansi "^4.0.0"
wrap-ansi "^6.2.0"
-loglevel@^1.6.8:
- version "1.7.1"
- resolved "https://registry.npm.taobao.org/loglevel/download/loglevel-1.7.1.tgz?cache=0&sync_timestamp=1606314029553&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Floglevel%2Fdownload%2Floglevel-1.7.1.tgz#005fde2f5e6e47068f935ff28573e125ef72f197"
- integrity sha1-AF/eL15uRwaPk1/yhXPhJe9y8Zc=
-
longest-streak@^2.0.0:
version "2.0.4"
resolved "https://registry.npm.taobao.org/longest-streak/download/longest-streak-2.0.4.tgz?cache=0&sync_timestamp=1615193347799&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Flongest-streak%2Fdownload%2Flongest-streak-2.0.4.tgz#b8599957da5b5dab64dee3fe316fa774597d90e4"
@@ -9789,13 +8653,6 @@ lowercase-keys@^2.0.0:
resolved "https://registry.npm.taobao.org/lowercase-keys/download/lowercase-keys-2.0.0.tgz#2603e78b7b4b0006cbca2fbcc8a3202558ac9479"
integrity sha1-JgPni3tLAAbLyi+8yKMgJVislHk=
-lru-cache@^5.1.1:
- version "5.1.1"
- resolved "https://registry.npm.taobao.org/lru-cache/download/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920"
- integrity sha1-HaJ+ZxAnGUdpXa9oSOhH8B2EuSA=
- dependencies:
- yallist "^3.0.2"
-
lru-cache@^6.0.0:
version "6.0.0"
resolved "https://registry.npm.taobao.org/lru-cache/download/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94"
@@ -9803,10 +8660,10 @@ lru-cache@^6.0.0:
dependencies:
yallist "^4.0.0"
-macos-release@^2.2.0:
- version "2.4.1"
- resolved "https://registry.npm.taobao.org/macos-release/download/macos-release-2.4.1.tgz#64033d0ec6a5e6375155a74b1a1eba8e509820ac"
- integrity sha1-ZAM9Dsal5jdRVadLGh66jlCYIKw=
+macos-release@^2.5.0:
+ version "2.5.0"
+ resolved "https://registry.npmjs.org/macos-release/-/macos-release-2.5.0.tgz#067c2c88b5f3fb3c56a375b2ec93826220fa1ff2"
+ integrity sha512-EIgv+QZ9r+814gjJj0Bt5vSLJLzswGmSUbUpbi9AIr/fsN2IWFBl2NucV9PAiek+U1STK468tEkxmVYUtuAN3g==
magic-string@^0.25.7:
version "0.25.7"
@@ -9871,15 +8728,15 @@ map-visit@^1.0.0:
dependencies:
object-visit "^1.0.0"
-markdown-it-anchor@^7.1.0:
- version "7.1.0"
- resolved "https://registry.npm.taobao.org/markdown-it-anchor/download/markdown-it-anchor-7.1.0.tgz#30fb21497bf59e83ff4d1ddc052d821962e2489e"
- integrity sha1-MPshSXv1noP/TR3cBS2CGWLiSJ4=
+markdown-it-anchor@^8.3.0:
+ version "8.3.1"
+ resolved "https://registry.npmjs.org/markdown-it-anchor/-/markdown-it-anchor-8.3.1.tgz#b48a2097c89f82e1625db772b8a6a03e9e637cdc"
+ integrity sha512-i12nPHfLM5uKQXVkzyJt5tZ7DetcYqZoCeiUc9OPqhAhqAR6SOswqMgzqEvDyT5BK6DOc8MmV78VjzCsYM5J5g==
-markdown-it@^12.0.4:
- version "12.0.4"
- resolved "https://registry.npm.taobao.org/markdown-it/download/markdown-it-12.0.4.tgz?cache=0&sync_timestamp=1608478454399&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmarkdown-it%2Fdownload%2Fmarkdown-it-12.0.4.tgz#eec8247d296327eac3ba9746bdeec9cfcc751e33"
- integrity sha1-7sgkfSljJ+rDupdGve7Jz8x1HjM=
+markdown-it@^12.2.0:
+ version "12.2.0"
+ resolved "https://registry.npmjs.org/markdown-it/-/markdown-it-12.2.0.tgz#091f720fd5db206f80de7a8d1f1a7035fd0d38db"
+ integrity sha512-Wjws+uCrVQRqOoJvze4HCqkKl1AsSh95iFAeQDwnyfxM09divCBSXlDR1uTvyUP3Grzpn4Ru8GeCxYPM8vkCQg==
dependencies:
argparse "^2.0.1"
entities "~2.1.0"
@@ -9930,37 +8787,20 @@ mdast-util-to-string@^2.0.0:
resolved "https://registry.npm.taobao.org/mdast-util-to-string/download/mdast-util-to-string-2.0.0.tgz#b8cfe6a713e1091cb5b728fc48885a4767f8b97b"
integrity sha1-uM/mpxPhCRy1tyj8SIhaR2f4uXs=
-mdn-data@2.0.4:
- version "2.0.4"
- resolved "https://registry.npm.taobao.org/mdn-data/download/mdn-data-2.0.4.tgz#699b3c38ac6f1d728091a64650b65d388502fd5b"
- integrity sha1-aZs8OKxvHXKAkaZGULZdOIUC/Vs=
-
-mdn-data@2.0.6:
- version "2.0.6"
- resolved "https://registry.npm.taobao.org/mdn-data/download/mdn-data-2.0.6.tgz#852dc60fcaa5daa2e8cf6c9189c440ed3e042978"
- integrity sha1-hS3GD8ql2qLoz2yRicRA7T4EKXg=
+mdn-data@2.0.14:
+ version "2.0.14"
+ resolved "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.14.tgz#7113fc4281917d63ce29b43446f701e68c25ba50"
+ integrity sha512-dn6wd0uw5GsdswPFfsgMp5NSB0/aDe6fK94YJV/AJDYXL6HVLWBsxeq7js7Ad+mU2K9LAlwpk6kN2D5mwCPVow==
mdurl@^1.0.1:
version "1.0.1"
resolved "https://registry.npm.taobao.org/mdurl/download/mdurl-1.0.1.tgz#fe85b2ec75a59037f2adfec100fd6c601761152e"
integrity sha1-/oWy7HWlkDfyrf7BAP1sYBdhFS4=
-media-typer@0.3.0:
- version "0.3.0"
- resolved "https://registry.npm.taobao.org/media-typer/download/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748"
- integrity sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=
-
-memfs@^3.1.2:
- version "3.2.2"
- resolved "https://registry.npm.taobao.org/memfs/download/memfs-3.2.2.tgz?cache=0&sync_timestamp=1617600238024&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmemfs%2Fdownload%2Fmemfs-3.2.2.tgz#5de461389d596e3f23d48bb7c2afb6161f4df40e"
- integrity sha1-XeRhOJ1Zbj8j1Iu3wq+2Fh9N9A4=
- dependencies:
- fs-monkey "1.0.3"
-
-memory-fs@^0.4.1:
- version "0.4.1"
- resolved "https://registry.npm.taobao.org/memory-fs/download/memory-fs-0.4.1.tgz#3a9a20b8462523e447cfbc7e8bb80ed667bfc552"
- integrity sha1-OpoguEYlI+RHz7x+i7gO1me/xVI=
+memory-fs@^0.5.0:
+ version "0.5.0"
+ resolved "https://registry.npmjs.org/memory-fs/-/memory-fs-0.5.0.tgz#324c01288b88652966d161db77838720845a8e3c"
+ integrity sha512-jA0rdU5KoQMC0e6ppoNRtpp6vjFq6+NY7r8hywnC7V+1Xj/MtHwGIbB1QaK/dunyjWteJzmkpd7ooeWg10T7GA==
dependencies:
errno "^0.1.3"
readable-stream "^2.0.1"
@@ -10016,18 +8856,6 @@ meow@^9.0.0:
type-fest "^0.18.0"
yargs-parser "^20.2.3"
-merge-descriptors@1.0.1:
- version "1.0.1"
- resolved "https://registry.npm.taobao.org/merge-descriptors/download/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61"
- integrity sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=
-
-merge-source-map@^1.1.0:
- version "1.1.0"
- resolved "https://registry.npm.taobao.org/merge-source-map/download/merge-source-map-1.1.0.tgz#2fdde7e6020939f70906a68f2d7ae685e4c8c646"
- integrity sha1-L93n5gIJOfcJBqaPLXrmheTIxkY=
- dependencies:
- source-map "^0.6.1"
-
merge-stream@^2.0.0:
version "2.0.0"
resolved "https://registry.npm.taobao.org/merge-stream/download/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60"
@@ -10038,11 +8866,6 @@ merge2@^1.2.3, merge2@^1.3.0:
resolved "https://registry.npm.taobao.org/merge2/download/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae"
integrity sha1-Q2iJL4hekHRVpv19xVwMnUBJkK4=
-methods@~1.1.2:
- version "1.1.2"
- resolved "https://registry.npm.taobao.org/methods/download/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee"
- integrity sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=
-
micromark@~2.11.0:
version "2.11.4"
resolved "https://registry.npm.taobao.org/micromark/download/micromark-2.11.4.tgz#d13436138eea826383e822449c9a5c50ee44665a"
@@ -10070,7 +8893,7 @@ micromatch@^3.0.4, micromatch@^3.1.10, micromatch@^3.1.4:
snapdragon "^0.8.1"
to-regex "^3.0.2"
-micromatch@^4.0.2, micromatch@^4.0.4:
+micromatch@^4.0.4:
version "4.0.4"
resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.4.tgz#896d519dfe9db25fce94ceb7a500919bf881ebf9"
integrity sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==
@@ -10078,28 +8901,23 @@ micromatch@^4.0.2, micromatch@^4.0.4:
braces "^3.0.1"
picomatch "^2.2.3"
-mime-db@1.47.0, "mime-db@>= 1.43.0 < 2":
- version "1.47.0"
- resolved "https://registry.npm.taobao.org/mime-db/download/mime-db-1.47.0.tgz?cache=0&sync_timestamp=1617306025156&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmime-db%2Fdownload%2Fmime-db-1.47.0.tgz#8cb313e59965d3c05cfbf898915a267af46a335c"
- integrity sha1-jLMT5Zll08Bc+/iYkVomevRqM1w=
+mime-db@1.49.0:
+ version "1.49.0"
+ resolved "https://registry.npmjs.org/mime-db/-/mime-db-1.49.0.tgz#f3dfde60c99e9cf3bc9701d687778f537001cbed"
+ integrity sha512-CIc8j9URtOVApSFCQIF+VBkX1RwXp/oMMOrqdyXSBXq5RWNEsRfyj1kiRnQgmNXmHxPoFIxOroKA3zcU9P+nAA==
-mime-types@2.1.30, mime-types@^2.1.12, mime-types@^2.1.24, mime-types@^2.1.27, mime-types@~2.1.17, mime-types@~2.1.19, mime-types@~2.1.24:
- version "2.1.30"
- resolved "https://registry.npm.taobao.org/mime-types/download/mime-types-2.1.30.tgz#6e7be8b4c479825f85ed6326695db73f9305d62d"
- integrity sha1-bnvotMR5gl+F7WMmaV23P5MF1i0=
+mime-types@2.1.32, mime-types@^2.1.12, mime-types@^2.1.24, mime-types@~2.1.19:
+ version "2.1.32"
+ resolved "https://registry.npmjs.org/mime-types/-/mime-types-2.1.32.tgz#1d00e89e7de7fe02008db61001d9e02852670fd5"
+ integrity sha512-hJGaVS4G4c9TSMYh2n6SQAGrC4RnfU+daP8G7cSCmaqNjiOoUY0VHCMS42pxnQmVF1GWwFhbHWn3RIxCqTmZ9A==
dependencies:
- mime-db "1.47.0"
+ mime-db "1.49.0"
-mime@1.6.0, mime@^1.3.4, mime@^1.4.1:
+mime@^1.3.4, mime@^1.4.1:
version "1.6.0"
resolved "https://registry.npm.taobao.org/mime/download/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1"
integrity sha1-Ms2eXGRVO9WNGaVor0Uqz/BJgbE=
-mime@^2.4.4:
- version "2.4.6"
- resolved "https://registry.npm.taobao.org/mime/download/mime-2.4.6.tgz#e5b407c90db442f2beb5b162373d07b69affa4d1"
- integrity sha1-5bQHyQ20QvK+tbFiNz0Htpr/pNE=
-
mimic-fn@^2.1.0:
version "2.1.0"
resolved "https://registry.npm.taobao.org/mimic-fn/download/mimic-fn-2.1.0.tgz?cache=0&sync_timestamp=1596093972239&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmimic-fn%2Fdownload%2Fmimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b"
@@ -10132,11 +8950,6 @@ min-indent@^1.0.0:
resolved "https://registry.npm.taobao.org/min-indent/download/min-indent-1.0.1.tgz#a63f681673b30571fbe8bc25686ae746eefa9869"
integrity sha1-pj9oFnOzBXH76LwlaGrnRu76mGk=
-minimalistic-assert@^1.0.0:
- version "1.0.1"
- resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7"
- integrity sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==
-
minimatch@3.0.4, minimatch@^3.0.4:
version "3.0.4"
resolved "https://registry.npm.taobao.org/minimatch/download/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"
@@ -10153,7 +8966,7 @@ minimist-options@4.1.0:
is-plain-obj "^1.1.0"
kind-of "^6.0.3"
-minimist@^1.1.1, minimist@^1.1.3, minimist@^1.2.0, minimist@^1.2.5:
+minimist@^1.1.3, minimist@^1.2.0, minimist@^1.2.5:
version "1.2.5"
resolved "https://registry.npm.taobao.org/minimist/download/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602"
integrity sha1-Z9ZgFLZqaoqqDAg8X9WN9OTpdgI=
@@ -10163,40 +8976,36 @@ miniprogram-api-typings@^3.1.6:
resolved "https://registry.yarnpkg.com/miniprogram-api-typings/-/miniprogram-api-typings-3.4.3.tgz#c88cc624973322d990353d94ae765db90938d132"
integrity sha512-wdBZG2IImFjkTFv66r225455J+//gn4c7Ja99aC3mVV0AqTRl45FwAFA7ur9KZd2j+ORGtyK1ldBT49rXpVE2w==
-miniprogram-ci@^1.0.27:
- version "1.2.3"
- resolved "https://registry.yarnpkg.com/miniprogram-ci/-/miniprogram-ci-1.2.3.tgz#400aa00673d89ed6ce532c2ecbdd400c0364bc18"
- integrity sha512-JRxNr8UtZuS2p2ly0H0xpr/einml3scJiSau+bKUNq8TkwkoLwjG3/yKt1KZs2MDAUIpgZWDCu88SUYkiJasjA==
+miniprogram-ci@^1.6.1:
+ version "1.6.1"
+ resolved "https://registry.npmjs.org/miniprogram-ci/-/miniprogram-ci-1.6.1.tgz#8ba9a982faf73be455197d41d21c9a66d8ed6e2c"
+ integrity sha512-ZQ2XtEeIQlRjYKzRqMDptfSqIhYQ2EfVSoCTnUTJ4yxA3lqgeo8C6RWWCTKX9+49zm21XCTEFCCoWvTVLKK38Q==
dependencies:
- "@babel/core" "7.4.3"
- "@babel/helper-module-imports" "7.0.0"
- "@babel/plugin-proposal-class-properties" "7.4.0"
- "@babel/plugin-proposal-decorators" "7.4.0"
- "@babel/plugin-proposal-do-expressions" "7.2.0"
- "@babel/plugin-proposal-export-default-from" "7.2.0"
- "@babel/plugin-proposal-export-namespace-from" "7.2.0"
- "@babel/plugin-proposal-function-bind" "7.2.0"
- "@babel/plugin-proposal-function-sent" "7.2.0"
- "@babel/plugin-proposal-json-strings" "7.2.0"
- "@babel/plugin-proposal-logical-assignment-operators" "7.2.0"
- "@babel/plugin-proposal-nullish-coalescing-operator" "7.4.3"
- "@babel/plugin-proposal-numeric-separator" "7.2.0"
- "@babel/plugin-proposal-optional-chaining" "7.2.0"
- "@babel/plugin-proposal-pipeline-operator" "7.3.2"
- "@babel/plugin-proposal-throw-expressions" "7.2.0"
- "@babel/plugin-syntax-dynamic-import" "7.2.0"
- "@babel/plugin-syntax-import-meta" "7.2.0"
- "@babel/plugin-transform-runtime" "7.4.3"
- "@babel/preset-env" "7.4.3"
+ "@babel/core" "7.12.3"
+ "@babel/helper-module-imports" "7.12.1"
+ "@babel/helpers" "7.12.1"
+ "@babel/plugin-proposal-class-properties" "7.12.1"
+ "@babel/plugin-proposal-decorators" "7.12.1"
+ "@babel/plugin-proposal-do-expressions" "7.12.1"
+ "@babel/plugin-proposal-export-default-from" "7.12.1"
+ "@babel/plugin-proposal-function-bind" "7.12.1"
+ "@babel/plugin-proposal-function-sent" "7.12.1"
+ "@babel/plugin-proposal-pipeline-operator" "7.12.1"
+ "@babel/plugin-proposal-throw-expressions" "7.12.1"
+ "@babel/plugin-transform-runtime" "7.12.1"
+ "@babel/plugin-transform-typescript" "^7.14.4"
+ "@babel/preset-env" "7.12.1"
+ "@babel/runtime" "7.12.1"
"@vue/reactivity" "3.0.5"
acorn "^6.1.1"
- autoprefixer "^7.2.6"
+ autoprefixer "^10.3.2"
babel-code-frame "6.26.0"
babel-core "6.26.0"
babel-preset-es2015 "6.24.1"
babel-preset-stage-0 "6.24.1"
+ chokidar "^3.5.1"
cos-nodejs-sdk-v5 "^2.9.12"
- cssnano "4.1.10"
+ cssnano "^5.0.8"
eventemitter3 "^4.0.5"
fs-extra "8.1.0"
get-proxy "^2.1.0"
@@ -10205,15 +9014,18 @@ miniprogram-ci@^1.0.27:
jimp "^0.9.3"
jsonschema "^1.2.5"
jszip "^3.4.0"
+ less "^4.1.1"
lodash "^4.17.15"
+ memory-fs "^0.5.0"
minimatch "3.0.4"
moment-timezone "^0.5.31"
- postcss "^7.0.27"
+ postcss "^8.3.6"
qrcode-reader "^1.0.4"
qrcode-terminal "^0.12.0"
read-package-tree "5.2.1"
request "^2.81.2"
rimraf "^3.0.2"
+ sass "^1.35.2"
source-map "0.6.1"
terser "4.8.0"
tslib "1.10.0"
@@ -10229,12 +9041,7 @@ mixin-deep@^1.2.0:
for-in "^1.0.2"
is-extendable "^1.0.1"
-mkdirp@1.x:
- version "1.0.4"
- resolved "https://registry.npm.taobao.org/mkdirp/download/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e"
- integrity sha1-PrXtYmInVteaXw4qIh3+utdcL34=
-
-mkdirp@^0.5.1, mkdirp@^0.5.5, mkdirp@~0.5.1:
+mkdirp@^0.5.1:
version "0.5.5"
resolved "https://registry.npm.taobao.org/mkdirp/download/mkdirp-0.5.5.tgz#d91cefd62d1436ca0f41620e251288d420099def"
integrity sha1-2Rzv1i0UNsoPQWIOJRKI1CAJne8=
@@ -10270,29 +9077,11 @@ ms@2.0.0:
resolved "https://registry.npm.taobao.org/ms/download/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8"
integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=
-ms@2.1.1:
- version "2.1.1"
- resolved "https://registry.npm.taobao.org/ms/download/ms-2.1.1.tgz?cache=0&sync_timestamp=1607433872491&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fms%2Fdownload%2Fms-2.1.1.tgz#30a5864eb3ebb0a66f2ebe6d727af06a09d86e0a"
- integrity sha1-MKWGTrPrsKZvLr5tcnrwagnYbgo=
-
ms@2.1.2, ms@^2.1.1:
version "2.1.2"
resolved "https://registry.npm.taobao.org/ms/download/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009"
integrity sha1-0J0fNXtEP0kzgqjrPM0YOHKuYAk=
-multicast-dns-service-types@^1.1.0:
- version "1.1.0"
- resolved "https://registry.npm.taobao.org/multicast-dns-service-types/download/multicast-dns-service-types-1.1.0.tgz#899f11d9686e5e05cb91b35d5f0e63b773cfc901"
- integrity sha1-iZ8R2WhuXgXLkbNdXw5jt3PPyQE=
-
-multicast-dns@^6.0.1:
- version "6.2.3"
- resolved "https://registry.npm.taobao.org/multicast-dns/download/multicast-dns-6.2.3.tgz#a0ec7bd9055c4282f790c3c82f4e28db3b31b229"
- integrity sha1-oOx72QVcQoL3kMPIL04o2zsxsik=
- dependencies:
- dns-packet "^1.3.1"
- thunky "^1.0.2"
-
mute-stdout@^1.0.0:
version "1.0.1"
resolved "https://registry.npm.taobao.org/mute-stdout/download/mute-stdout-1.0.1.tgz#acb0300eb4de23a7ddeec014e3e96044b3472331"
@@ -10308,10 +9097,15 @@ nan@^2.12.1:
resolved "https://registry.npm.taobao.org/nan/download/nan-2.14.2.tgz?cache=0&sync_timestamp=1602591646310&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fnan%2Fdownload%2Fnan-2.14.2.tgz#f5376400695168f4cc694ac9393d0c9585eeea19"
integrity sha1-9TdkAGlRaPTMaUrJOT0MlYXu6hk=
-nanoid@^3.1.22:
- version "3.1.22"
- resolved "https://registry.npm.taobao.org/nanoid/download/nanoid-3.1.22.tgz#b35f8fb7d151990a8aebd5aa5015c03cf726f844"
- integrity sha1-s1+Pt9FRmQqK69WqUBXAPPcm+EQ=
+nanocolors@^0.1.5:
+ version "0.1.6"
+ resolved "https://registry.npmjs.org/nanocolors/-/nanocolors-0.1.6.tgz#bc2350d3edfdbfadd7ac018c855ae7c13905a6ad"
+ integrity sha512-2pvTw6vYRaBLGir2xR7MxaJtyWkrn+C53EpW8yPotG+pdAwBvt0Xwk4VJ6VHLY0aLthVZPvDfm9TdZvrvAm5UQ==
+
+nanoid@^3.1.25:
+ version "3.1.25"
+ resolved "https://registry.npmjs.org/nanoid/-/nanoid-3.1.25.tgz#09ca32747c0e543f0e1814b7d3793477f9c8e152"
+ integrity sha512-rdwtIXaXCLFAQbnfqDRnI6jaRHp9fTcYBjtFKE8eezcZ7LuLjhUaQGNeMXf1HmRoCH32CLz6XwX0TtxEOS/A3Q==
nanomatch@^1.2.9:
version "1.2.13"
@@ -10344,26 +9138,23 @@ needle@^2.5.2:
iconv-lite "^0.4.4"
sax "^1.2.4"
-negotiator@0.6.2:
- version "0.6.2"
- resolved "https://registry.npm.taobao.org/negotiator/download/negotiator-0.6.2.tgz#feacf7ccf525a77ae9634436a64883ffeca346fb"
- integrity sha1-/qz3zPUlp3rpY0Q2pkiD/+yjRvs=
-
-neo-async@^2.6.0, neo-async@^2.6.2:
+neo-async@^2.6.0:
version "2.6.2"
resolved "https://registry.npm.taobao.org/neo-async/download/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f"
integrity sha1-tKr7k+OustgXTKU88WOrfXMIMF8=
+new-github-release-url@1.0.0:
+ version "1.0.0"
+ resolved "https://registry.npmjs.org/new-github-release-url/-/new-github-release-url-1.0.0.tgz#493847e6fecce39c247e9d89929be773d2e7f777"
+ integrity sha512-dle7yf655IMjyFUqn6Nxkb18r4AOAkzRcgcZv6WZ0IqrOH4QCEZ8Sm6I7XX21zvHdBeeMeTkhR9qT2Z0EJDx6A==
+ dependencies:
+ type-fest "^0.4.1"
+
next-tick@~1.0.0:
version "1.0.0"
resolved "https://registry.npm.taobao.org/next-tick/download/next-tick-1.0.0.tgz#ca86d1fe8828169b0120208e3dc8424b9db8342c"
integrity sha1-yobR/ogoFpsBICCOPchCS524NCw=
-nice-try@^1.0.4:
- version "1.0.5"
- resolved "https://registry.npm.taobao.org/nice-try/download/nice-try-1.0.5.tgz?cache=0&sync_timestamp=1602353330797&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fnice-try%2Fdownload%2Fnice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366"
- integrity sha1-ozeKdpbOfSI+iPybdkvX7xCJ42Y=
-
no-case@^2.2.0:
version "2.3.2"
resolved "https://registry.npm.taobao.org/no-case/download/no-case-2.3.2.tgz#60b813396be39b3f1288a4c1ed5d1e7d28b464ac"
@@ -10384,11 +9175,6 @@ node-fetch@^2.6.1:
resolved "https://registry.npm.taobao.org/node-fetch/download/node-fetch-2.6.1.tgz?cache=0&sync_timestamp=1599309667528&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fnode-fetch%2Fdownload%2Fnode-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052"
integrity sha1-BFvTI2Mfdu0uK1VXM5RBa2OaAFI=
-node-forge@^0.10.0:
- version "0.10.0"
- resolved "https://registry.npm.taobao.org/node-forge/download/node-forge-0.10.0.tgz?cache=0&sync_timestamp=1599010719234&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fnode-forge%2Fdownload%2Fnode-forge-0.10.0.tgz#32dea2afb3e9926f02ee5ce8794902691a676bf3"
- integrity sha1-Mt6ir7Ppkm8C7lzoeUkCaRpna/M=
-
node-int64@^0.4.0:
version "0.4.0"
resolved "https://registry.npm.taobao.org/node-int64/download/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b"
@@ -10399,22 +9185,10 @@ node-modules-regexp@^1.0.0:
resolved "https://registry.npm.taobao.org/node-modules-regexp/download/node-modules-regexp-1.0.0.tgz#8d9dbe28964a4ac5712e9131642107c71e90ec40"
integrity sha1-jZ2+KJZKSsVxLpExZCEHxx6Q7EA=
-node-notifier@^8.0.0:
- version "8.0.2"
- resolved "https://registry.npm.taobao.org/node-notifier/download/node-notifier-8.0.2.tgz?cache=0&sync_timestamp=1615493879484&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fnode-notifier%2Fdownload%2Fnode-notifier-8.0.2.tgz#f3167a38ef0d2c8a866a83e318c1ba0efeb702c5"
- integrity sha1-8xZ6OO8NLIqGaoPjGMG6Dv63AsU=
- dependencies:
- growly "^1.3.0"
- is-wsl "^2.2.0"
- semver "^7.3.2"
- shellwords "^0.1.1"
- uuid "^8.3.0"
- which "^2.0.2"
-
-node-releases@^1.1.71:
- version "1.1.73"
- resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.73.tgz#dd4e81ddd5277ff846b80b52bb40c49edf7a7b20"
- integrity sha512-uW7fodD6pyW2FZNZnp/Z3hvWKeEW1Y8R1+1CnErE8cXFXzl5blBOoVB41CvMer6P6Q0S5FXDwcHgFd1Wj0U9zg==
+node-releases@^1.1.76:
+ version "1.1.76"
+ resolved "https://registry.npmjs.org/node-releases/-/node-releases-1.1.76.tgz#df245b062b0cafbd5282ab6792f7dccc2d97f36e"
+ integrity sha512-9/IECtNr8dXNmPWmFXepT0/7o5eolGesHUa3mtr0KlgnCvnZxwh2qensKL42JJY2vQKC3nIBXetFAqR+PW1CmA==
normalize-package-data@^2.0.0, normalize-package-data@^2.3.0, normalize-package-data@^2.3.2, normalize-package-data@^2.3.4, normalize-package-data@^2.5.0:
version "2.5.0"
@@ -10458,17 +9232,7 @@ normalize-selector@^0.2.0:
resolved "https://registry.npm.taobao.org/normalize-selector/download/normalize-selector-0.2.0.tgz#d0b145eb691189c63a78d201dc4fdb1293ef0c03"
integrity sha1-0LFF62kRicY6eNIB3E/bEpPvDAM=
-normalize-url@^1.0.0:
- version "1.9.1"
- resolved "https://registry.npm.taobao.org/normalize-url/download/normalize-url-1.9.1.tgz#2cc0d66b31ea23036458436e3620d85954c66c3c"
- integrity sha1-LMDWazHqIwNkWENuNiDYWVTGbDw=
- dependencies:
- object-assign "^4.0.1"
- prepend-http "^1.0.0"
- query-string "^4.1.0"
- sort-keys "^1.0.0"
-
-normalize-url@^3.0.0, normalize-url@^3.3.0:
+normalize-url@^3.3.0:
version "3.3.0"
resolved "https://registry.npm.taobao.org/normalize-url/download/normalize-url-3.3.0.tgz?cache=0&sync_timestamp=1617786343734&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fnormalize-url%2Fdownload%2Fnormalize-url-3.3.0.tgz#b2e1c4dc4f7c6d57743df733a4f5978d18650559"
integrity sha1-suHE3E98bVd0PfczpPWXjRhlBVk=
@@ -10478,6 +9242,11 @@ normalize-url@^4.1.0:
resolved "https://registry.npm.taobao.org/normalize-url/download/normalize-url-4.5.0.tgz?cache=0&sync_timestamp=1617786343734&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fnormalize-url%2Fdownload%2Fnormalize-url-4.5.0.tgz#453354087e6ca96957bd8f5baf753f5982142129"
integrity sha1-RTNUCH5sqWlXvY9br3U/WYIUISk=
+normalize-url@^6.0.1:
+ version "6.1.0"
+ resolved "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz#40d0885b535deffe3f3147bec877d05fe4c5668a"
+ integrity sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==
+
now-and-later@^2.0.0:
version "2.0.1"
resolved "https://registry.npm.taobao.org/now-and-later/download/now-and-later-2.0.1.tgz#8e579c8685764a7cc02cb680380e94f43ccb1f7c"
@@ -10498,13 +9267,6 @@ npm-normalize-package-bin@^1.0.0:
resolved "https://registry.npm.taobao.org/npm-normalize-package-bin/download/npm-normalize-package-bin-1.0.1.tgz#6e79a41f23fd235c0623218228da7d9c23b8f6e2"
integrity sha1-bnmkHyP9I1wGIyGCKNp9nCO49uI=
-npm-run-path@^2.0.0:
- version "2.0.2"
- resolved "https://registry.npm.taobao.org/npm-run-path/download/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f"
- integrity sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=
- dependencies:
- path-key "^2.0.0"
-
npm-run-path@^4.0.0, npm-run-path@^4.0.1:
version "4.0.1"
resolved "https://registry.npm.taobao.org/npm-run-path/download/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea"
@@ -10512,12 +9274,12 @@ npm-run-path@^4.0.0, npm-run-path@^4.0.1:
dependencies:
path-key "^3.0.0"
-nth-check@^1.0.2, nth-check@~1.0.1:
- version "1.0.2"
- resolved "https://registry.npm.taobao.org/nth-check/download/nth-check-1.0.2.tgz#b2bd295c37e3dd58a3bf0700376663ba4d9cf05c"
- integrity sha1-sr0pXDfj3VijvwcAN2Zjuk2c8Fw=
+nth-check@^2.0.0:
+ version "2.0.1"
+ resolved "https://registry.npmjs.org/nth-check/-/nth-check-2.0.1.tgz#2efe162f5c3da06a28959fbd3db75dbeea9f0fc2"
+ integrity sha512-it1vE95zF6dTT9lBsYbxvqh0Soy4SPowchj0UBGj/V6cTPnXXtQOPUbhZ6CmGzAD/rW22LQK6E96pcdJXk4A4w==
dependencies:
- boolbase "~1.0.0"
+ boolbase "^1.0.0"
num2fraction@^1.2.2:
version "1.2.2"
@@ -10539,7 +9301,7 @@ oauth-sign@~0.9.0:
resolved "https://registry.npm.taobao.org/oauth-sign/download/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455"
integrity sha1-R6ewFrqmi1+g7PPe4IqFxnmsZFU=
-object-assign@^4.0.1, object-assign@^4.1.0:
+object-assign@^4.0.1:
version "4.1.1"
resolved "https://registry.npm.taobao.org/object-assign/download/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"
integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=
@@ -10553,24 +9315,11 @@ object-copy@^0.1.0:
define-property "^0.2.5"
kind-of "^3.0.3"
-object-inspect@^1.11.0:
+object-inspect@^1.11.0, object-inspect@^1.9.0:
version "1.11.0"
resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.11.0.tgz#9dceb146cedd4148a0d9e51ab88d34cf509922b1"
integrity sha512-jp7ikS6Sd3GxQfZJPyH3cjcbJF6GZPClgdV+EFygjFLQ5FmW/dRUnTd9PQ9k0JhoNDabWFbpF1yCdSWCC6gexg==
-object-inspect@^1.8.0, object-inspect@^1.9.0:
- version "1.9.0"
- resolved "https://registry.npm.taobao.org/object-inspect/download/object-inspect-1.9.0.tgz?cache=0&sync_timestamp=1606804292445&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fobject-inspect%2Fdownload%2Fobject-inspect-1.9.0.tgz#c90521d74e1127b67266ded3394ad6116986533a"
- integrity sha1-yQUh104RJ7ZyZt7TOUrWEWmGUzo=
-
-object-is@^1.0.1:
- version "1.1.5"
- resolved "https://registry.npm.taobao.org/object-is/download/object-is-1.1.5.tgz?cache=0&sync_timestamp=1613858223300&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fobject-is%2Fdownload%2Fobject-is-1.1.5.tgz#b9deeaa5fc7f1846a0faecdceec138e5778f53ac"
- integrity sha1-ud7qpfx/GEag+uzc7sE45XePU6w=
- dependencies:
- call-bind "^1.0.2"
- define-properties "^1.1.3"
-
object-keys@^1.0.12, object-keys@^1.1.1:
version "1.1.1"
resolved "https://registry.npm.taobao.org/object-keys/download/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e"
@@ -10583,7 +9332,7 @@ object-visit@^1.0.0:
dependencies:
isobject "^3.0.0"
-object.assign@^4.0.4, object.assign@^4.1.0, object.assign@^4.1.1, object.assign@^4.1.2:
+object.assign@^4.0.4, object.assign@^4.1.0, object.assign@^4.1.2:
version "4.1.2"
resolved "https://registry.npm.taobao.org/object.assign/download/object.assign-4.1.2.tgz?cache=0&sync_timestamp=1604115167242&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fobject.assign%2Fdownload%2Fobject.assign-4.1.2.tgz#0ed54a342eceb37b38ff76eb831a0e788cb63940"
integrity sha1-DtVKNC7Os3s4/3brgxoOeIy2OUA=
@@ -10612,14 +9361,6 @@ object.entries@^1.1.2:
es-abstract "^1.17.5"
has "^1.0.3"
-object.getownpropertydescriptors@^2.1.0:
- version "2.1.0"
- resolved "https://registry.npm.taobao.org/object.getownpropertydescriptors/download/object.getownpropertydescriptors-2.1.0.tgz#369bf1f9592d8ab89d712dced5cb81c7c5352649"
- integrity sha1-Npvx+VktiridcS3O1cuBx8U1Jkk=
- dependencies:
- define-properties "^1.1.3"
- es-abstract "^1.17.0-next.1"
-
object.map@^1.0.0:
version "1.0.1"
resolved "https://registry.npm.taobao.org/object.map/download/object.map-1.0.1.tgz#cf83e59dc8fcc0ad5f4250e1f78b3b81bd801d37"
@@ -10643,16 +9384,6 @@ object.reduce@^1.0.0:
for-own "^1.0.0"
make-iterator "^1.0.0"
-object.values@^1.1.0:
- version "1.1.1"
- resolved "https://registry.npm.taobao.org/object.values/download/object.values-1.1.1.tgz#68a99ecde356b7e9295a3c5e0ce31dc8c953de5e"
- integrity sha1-aKmezeNWt+kpWjxeDOMdyMlT3l4=
- dependencies:
- define-properties "^1.1.3"
- es-abstract "^1.17.0-next.1"
- function-bind "^1.1.1"
- has "^1.0.3"
-
object.values@^1.1.4:
version "1.1.4"
resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.4.tgz#0d273762833e816b693a637d30073e7051535b30"
@@ -10662,28 +9393,11 @@ object.values@^1.1.4:
define-properties "^1.1.3"
es-abstract "^1.18.2"
-obuf@^1.0.0, obuf@^1.1.2:
- version "1.1.2"
- resolved "https://registry.npm.taobao.org/obuf/download/obuf-1.1.2.tgz#09bea3343d41859ebd446292d11c9d4db619084e"
- integrity sha1-Cb6jND1BhZ69RGKS0RydTbYZCE4=
-
omggif@^1.0.9:
version "1.0.10"
resolved "https://registry.npm.taobao.org/omggif/download/omggif-1.0.10.tgz#ddaaf90d4a42f532e9e7cb3a95ecdd47f17c7b19"
integrity sha1-3ar5DUpC9TLp58s6lezdR/F8exk=
-on-finished@~2.3.0:
- version "2.3.0"
- resolved "https://registry.npm.taobao.org/on-finished/download/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947"
- integrity sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=
- dependencies:
- ee-first "1.1.1"
-
-on-headers@~1.0.2:
- version "1.0.2"
- resolved "https://registry.npm.taobao.org/on-headers/download/on-headers-1.0.2.tgz#772b0ae6aaa525c399e489adfad90c403eb3c28f"
- integrity sha1-dysK5qqlJcOZ5Imt+tkMQD6zwo8=
-
once@^1.3.0, once@^1.3.1, once@^1.3.2, once@^1.4.0:
version "1.4.0"
resolved "https://registry.npm.taobao.org/once/download/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
@@ -10698,12 +9412,13 @@ onetime@^5.1.0, onetime@^5.1.2:
dependencies:
mimic-fn "^2.1.0"
-opn@^5.5.0:
- version "5.5.0"
- resolved "https://registry.npm.taobao.org/opn/download/opn-5.5.0.tgz#fc7164fab56d235904c51c3b27da6758ca3b9bfc"
- integrity sha1-/HFk+rVtI1kExRw7J9pnWMo7m/w=
+open@7.4.2:
+ version "7.4.2"
+ resolved "https://registry.npmjs.org/open/-/open-7.4.2.tgz#b8147e26dcf3e426316c730089fd71edd29c2321"
+ integrity sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==
dependencies:
- is-wsl "^1.1.0"
+ is-docker "^2.0.0"
+ is-wsl "^2.1.1"
optionator@^0.8.1:
version "0.8.3"
@@ -10729,22 +9444,7 @@ optionator@^0.9.1:
type-check "^0.4.0"
word-wrap "^1.2.3"
-ora@5.4.0:
- version "5.4.0"
- resolved "https://registry.npm.taobao.org/ora/download/ora-5.4.0.tgz?cache=0&sync_timestamp=1615981780743&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fora%2Fdownload%2Fora-5.4.0.tgz#42eda4855835b9cd14d33864c97a3c95a3f56bf4"
- integrity sha1-Qu2khVg1uc0U0zhkyXo8laP1a/Q=
- dependencies:
- bl "^4.1.0"
- chalk "^4.1.0"
- cli-cursor "^3.1.0"
- cli-spinners "^2.5.0"
- is-interactive "^1.0.0"
- is-unicode-supported "^0.1.0"
- log-symbols "^4.1.0"
- strip-ansi "^6.0.0"
- wcwidth "^1.0.1"
-
-ora@^5.3.0, ora@^5.4.1:
+ora@5.4.1, ora@^5.4.1:
version "5.4.1"
resolved "https://registry.yarnpkg.com/ora/-/ora-5.4.1.tgz#1b2678426af4ac4a509008e5e4ac9e9959db9e18"
integrity sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==
@@ -10766,13 +9466,6 @@ ordered-read-streams@^1.0.0:
dependencies:
readable-stream "^2.0.1"
-original@^1.0.0:
- version "1.0.2"
- resolved "https://registry.npm.taobao.org/original/download/original-1.0.2.tgz#e442a61cffe1c5fd20a65f3261c26663b303f25f"
- integrity sha1-5EKmHP/hxf0gpl8yYcJmY7MD8l8=
- dependencies:
- url-parse "^1.4.3"
-
os-homedir@^1.0.0:
version "1.0.2"
resolved "https://registry.npm.taobao.org/os-homedir/download/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3"
@@ -10785,12 +9478,12 @@ os-locale@^1.4.0:
dependencies:
lcid "^1.0.0"
-os-name@4.0.0:
- version "4.0.0"
- resolved "https://registry.npm.taobao.org/os-name/download/os-name-4.0.0.tgz#6c05c09c41c15848ea74658d12c9606f0f286599"
- integrity sha1-bAXAnEHBWEjqdGWNEslgbw8oZZk=
+os-name@4.0.1:
+ version "4.0.1"
+ resolved "https://registry.npmjs.org/os-name/-/os-name-4.0.1.tgz#32cee7823de85a8897647ba4d76db46bf845e555"
+ integrity sha512-xl9MAoU97MH1Xt5K9ERft2YfCAoaO6msy1OBA0ozxEC0x0TmIoE6K3QvgJMMZA9yKGLmHXNY/YZoDbiGDj4zYw==
dependencies:
- macos-release "^2.2.0"
+ macos-release "^2.5.0"
windows-release "^4.0.0"
os-tmpdir@^1.0.1, os-tmpdir@~1.0.2:
@@ -10813,11 +9506,6 @@ p-each-series@^2.1.0:
resolved "https://registry.npm.taobao.org/p-each-series/download/p-each-series-2.2.0.tgz#105ab0357ce72b202a8a8b94933672657b5e2a9a"
integrity sha1-EFqwNXznKyAqiouUkzZyZXteKpo=
-p-finally@^1.0.0:
- version "1.0.0"
- resolved "https://registry.npm.taobao.org/p-finally/download/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae"
- integrity sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=
-
p-limit@^1.1.0:
version "1.3.0"
resolved "https://registry.npm.taobao.org/p-limit/download/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8"
@@ -10832,13 +9520,6 @@ p-limit@^2.0.0, p-limit@^2.2.0:
dependencies:
p-try "^2.0.0"
-p-limit@^3.0.2, p-limit@^3.1.0:
- version "3.1.0"
- resolved "https://registry.npm.taobao.org/p-limit/download/p-limit-3.1.0.tgz?cache=0&sync_timestamp=1606288352885&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fp-limit%2Fdownload%2Fp-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b"
- integrity sha1-4drMvnjQ0TiMoYxk/qOOPlfjcGs=
- dependencies:
- yocto-queue "^0.1.0"
-
p-locate@^2.0.0:
version "2.0.0"
resolved "https://registry.npm.taobao.org/p-locate/download/p-locate-2.0.0.tgz?cache=0&sync_timestamp=1597081605529&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fp-locate%2Fdownload%2Fp-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43"
@@ -10860,18 +9541,6 @@ p-locate@^4.1.0:
dependencies:
p-limit "^2.2.0"
-p-locate@^5.0.0:
- version "5.0.0"
- resolved "https://registry.npm.taobao.org/p-locate/download/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834"
- integrity sha1-g8gxXGeFAF470CGDlBHJ4RDm2DQ=
- dependencies:
- p-limit "^3.0.2"
-
-p-map@^2.0.0:
- version "2.1.0"
- resolved "https://registry.npm.taobao.org/p-map/download/p-map-2.1.0.tgz#310928feef9c9ecc65b68b17693018a665cea175"
- integrity sha1-MQko/u+cnsxltosXaTAYpmXOoXU=
-
p-map@^4.0.0:
version "4.0.0"
resolved "https://registry.npm.taobao.org/p-map/download/p-map-4.0.0.tgz#bb2f95a5eda2ec168ec9274e06a747c3e2904d2b"
@@ -10879,13 +9548,6 @@ p-map@^4.0.0:
dependencies:
aggregate-error "^3.0.0"
-p-retry@^3.0.1:
- version "3.0.1"
- resolved "https://registry.npm.taobao.org/p-retry/download/p-retry-3.0.1.tgz?cache=0&sync_timestamp=1617001968077&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fp-retry%2Fdownload%2Fp-retry-3.0.1.tgz#316b4c8893e2c8dc1cfa891f406c4b422bebf328"
- integrity sha1-MWtMiJPiyNwc+okfQGxLQivr8yg=
- dependencies:
- retry "^0.12.0"
-
p-try@^1.0.0:
version "1.0.0"
resolved "https://registry.npm.taobao.org/p-try/download/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3"
@@ -11042,11 +9704,6 @@ parse5@6.0.1:
resolved "https://registry.npm.taobao.org/parse5/download/parse5-6.0.1.tgz#e1a1c085c569b3dc08321184f19a39cc27f7c30b"
integrity sha1-4aHAhcVps9wIMhGE8Zo5zCf3wws=
-parseurl@~1.3.2, parseurl@~1.3.3:
- version "1.3.3"
- resolved "https://registry.npm.taobao.org/parseurl/download/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4"
- integrity sha1-naGee+6NEt/wUT7Vt2lXeTvC6NQ=
-
pascal-case@^3.1.1:
version "3.1.1"
resolved "https://registry.npm.taobao.org/pascal-case/download/pascal-case-3.1.1.tgz#5ac1975133ed619281e88920973d2cd1f279de5f"
@@ -11087,16 +9744,6 @@ path-is-absolute@^1.0.0, path-is-absolute@^1.0.1:
resolved "https://registry.npm.taobao.org/path-is-absolute/download/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f"
integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18=
-path-is-inside@^1.0.2:
- version "1.0.2"
- resolved "https://registry.npm.taobao.org/path-is-inside/download/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53"
- integrity sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=
-
-path-key@^2.0.0, path-key@^2.0.1:
- version "2.0.1"
- resolved "https://registry.npm.taobao.org/path-key/download/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40"
- integrity sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=
-
path-key@^3.0.0, path-key@^3.1.0:
version "3.1.1"
resolved "https://registry.npm.taobao.org/path-key/download/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375"
@@ -11119,11 +9766,6 @@ path-root@^0.1.1:
dependencies:
path-root-regex "^0.1.0"
-path-to-regexp@0.1.7:
- version "0.1.7"
- resolved "https://registry.npm.taobao.org/path-to-regexp/download/path-to-regexp-0.1.7.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpath-to-regexp%2Fdownload%2Fpath-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c"
- integrity sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=
-
path-type@^1.0.0:
version "1.1.0"
resolved "https://registry.npm.taobao.org/path-type/download/path-type-1.1.0.tgz#59c44f7ee491da704da415da5a4070ba4f8fe441"
@@ -11155,7 +9797,7 @@ phin@^2.9.1:
resolved "https://registry.npm.taobao.org/phin/download/phin-2.9.3.tgz#f9b6ac10a035636fb65dfc576aaaa17b8743125c"
integrity sha1-+basEKA1Y2+2XfxXaqqhe4dDElw=
-picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.3:
+picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.2, picomatch@^2.2.3:
version "2.3.0"
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.0.tgz#f1f061de8f6a4bf022892e2d128234fb98302972"
integrity sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==
@@ -11208,13 +9850,6 @@ pkg-dir@^2.0.0:
dependencies:
find-up "^2.1.0"
-pkg-dir@^3.0.0:
- version "3.0.0"
- resolved "https://registry.npm.taobao.org/pkg-dir/download/pkg-dir-3.0.0.tgz#2749020f239ed990881b1f71210d51eb6523bea3"
- integrity sha1-J0kCDyOe2ZCIGx9xIQ1R62UjvqM=
- dependencies:
- find-up "^3.0.0"
-
pkg-dir@^4.1.0, pkg-dir@^4.2.0:
version "4.2.0"
resolved "https://registry.npm.taobao.org/pkg-dir/download/pkg-dir-4.2.0.tgz#f099133df7ede422e81d1d8448270eeb3e4261f3"
@@ -11258,75 +9893,55 @@ pngjs@^3.0.0, pngjs@^3.3.3:
resolved "https://registry.npm.taobao.org/pngjs/download/pngjs-3.4.0.tgz#99ca7d725965fb655814eaf65f38f12bbdbf555f"
integrity sha1-mcp9clll+2VYFOr2XzjxK72/VV8=
-portfinder@^1.0.26, portfinder@^1.0.28:
- version "1.0.28"
- resolved "https://registry.npm.taobao.org/portfinder/download/portfinder-1.0.28.tgz#67c4622852bd5374dd1dd900f779f53462fac778"
- integrity sha1-Z8RiKFK9U3TdHdkA93n1NGL6x3g=
- dependencies:
- async "^2.6.2"
- debug "^3.1.1"
- mkdirp "^0.5.5"
-
posix-character-classes@^0.1.0:
version "0.1.1"
resolved "https://registry.npm.taobao.org/posix-character-classes/download/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab"
integrity sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=
-postcss-calc@^7.0.1:
- version "7.0.5"
- resolved "https://registry.npm.taobao.org/postcss-calc/download/postcss-calc-7.0.5.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpostcss-calc%2Fdownload%2Fpostcss-calc-7.0.5.tgz#f8a6e99f12e619c2ebc23cf6c486fdc15860933e"
- integrity sha1-+KbpnxLmGcLrwjz2xIb9wVhgkz4=
+postcss-calc@^8.0.0:
+ version "8.0.0"
+ resolved "https://registry.npmjs.org/postcss-calc/-/postcss-calc-8.0.0.tgz#a05b87aacd132740a5db09462a3612453e5df90a"
+ integrity sha512-5NglwDrcbiy8XXfPM11F3HeC6hoT9W7GUH/Zi5U/p7u3Irv4rHhdDcIZwG0llHXV4ftsBjpfWMXAnXNl4lnt8g==
dependencies:
- postcss "^7.0.27"
postcss-selector-parser "^6.0.2"
postcss-value-parser "^4.0.2"
-postcss-colormin@^4.0.3:
- version "4.0.3"
- resolved "https://registry.npm.taobao.org/postcss-colormin/download/postcss-colormin-4.0.3.tgz?cache=0&sync_timestamp=1599670279589&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpostcss-colormin%2Fdownload%2Fpostcss-colormin-4.0.3.tgz#ae060bce93ed794ac71264f08132d550956bd381"
- integrity sha1-rgYLzpPteUrHEmTwgTLVUJVr04E=
+postcss-colormin@^5.2.0:
+ version "5.2.0"
+ resolved "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-5.2.0.tgz#2b620b88c0ff19683f3349f4cf9e24ebdafb2c88"
+ integrity sha512-+HC6GfWU3upe5/mqmxuqYZ9B2Wl4lcoUUNkoaX59nEWV4EtADCMiBqui111Bu8R8IvaZTmqmxrqOAqjbHIwXPw==
dependencies:
- browserslist "^4.0.0"
- color "^3.0.0"
- has "^1.0.0"
- postcss "^7.0.0"
- postcss-value-parser "^3.0.0"
+ browserslist "^4.16.6"
+ caniuse-api "^3.0.0"
+ colord "^2.0.1"
+ postcss-value-parser "^4.1.0"
-postcss-convert-values@^4.0.1:
- version "4.0.1"
- resolved "https://registry.npm.taobao.org/postcss-convert-values/download/postcss-convert-values-4.0.1.tgz?cache=0&sync_timestamp=1599671991018&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpostcss-convert-values%2Fdownload%2Fpostcss-convert-values-4.0.1.tgz#ca3813ed4da0f812f9d43703584e449ebe189a7f"
- integrity sha1-yjgT7U2g+BL51DcDWE5Enr4Ymn8=
+postcss-convert-values@^5.0.1:
+ version "5.0.1"
+ resolved "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-5.0.1.tgz#4ec19d6016534e30e3102fdf414e753398645232"
+ integrity sha512-C3zR1Do2BkKkCgC0g3sF8TS0koF2G+mN8xxayZx3f10cIRmTaAnpgpRQZjNekTZxM2ciSPoh2IWJm0VZx8NoQg==
dependencies:
- postcss "^7.0.0"
- postcss-value-parser "^3.0.0"
+ postcss-value-parser "^4.1.0"
-postcss-discard-comments@^4.0.2:
- version "4.0.2"
- resolved "https://registry.npm.taobao.org/postcss-discard-comments/download/postcss-discard-comments-4.0.2.tgz?cache=0&sync_timestamp=1599670279858&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpostcss-discard-comments%2Fdownload%2Fpostcss-discard-comments-4.0.2.tgz#1fbabd2c246bff6aaad7997b2b0918f4d7af4033"
- integrity sha1-H7q9LCRr/2qq15l7KwkY9NevQDM=
- dependencies:
- postcss "^7.0.0"
+postcss-discard-comments@^5.0.1:
+ version "5.0.1"
+ resolved "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-5.0.1.tgz#9eae4b747cf760d31f2447c27f0619d5718901fe"
+ integrity sha512-lgZBPTDvWrbAYY1v5GYEv8fEO/WhKOu/hmZqmCYfrpD6eyDWWzAOsl2rF29lpvziKO02Gc5GJQtlpkTmakwOWg==
-postcss-discard-duplicates@^4.0.2:
- version "4.0.2"
- resolved "https://registry.npm.taobao.org/postcss-discard-duplicates/download/postcss-discard-duplicates-4.0.2.tgz?cache=0&sync_timestamp=1599670279970&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpostcss-discard-duplicates%2Fdownload%2Fpostcss-discard-duplicates-4.0.2.tgz#3fe133cd3c82282e550fc9b239176a9207b784eb"
- integrity sha1-P+EzzTyCKC5VD8myORdqkge3hOs=
- dependencies:
- postcss "^7.0.0"
+postcss-discard-duplicates@^5.0.1:
+ version "5.0.1"
+ resolved "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-5.0.1.tgz#68f7cc6458fe6bab2e46c9f55ae52869f680e66d"
+ integrity sha512-svx747PWHKOGpAXXQkCc4k/DsWo+6bc5LsVrAsw+OU+Ibi7klFZCyX54gjYzX4TH+f2uzXjRviLARxkMurA2bA==
-postcss-discard-empty@^4.0.1:
- version "4.0.1"
- resolved "https://registry.npm.taobao.org/postcss-discard-empty/download/postcss-discard-empty-4.0.1.tgz?cache=0&sync_timestamp=1599670280078&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpostcss-discard-empty%2Fdownload%2Fpostcss-discard-empty-4.0.1.tgz#c8c951e9f73ed9428019458444a02ad90bb9f765"
- integrity sha1-yMlR6fc+2UKAGUWERKAq2Qu592U=
- dependencies:
- postcss "^7.0.0"
+postcss-discard-empty@^5.0.1:
+ version "5.0.1"
+ resolved "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-5.0.1.tgz#ee136c39e27d5d2ed4da0ee5ed02bc8a9f8bf6d8"
+ integrity sha512-vfU8CxAQ6YpMxV2SvMcMIyF2LX1ZzWpy0lqHDsOdaKKLQVQGVP1pzhrI9JlsO65s66uQTfkQBKBD/A5gp9STFw==
-postcss-discard-overridden@^4.0.1:
- version "4.0.1"
- resolved "https://registry.npm.taobao.org/postcss-discard-overridden/download/postcss-discard-overridden-4.0.1.tgz?cache=0&sync_timestamp=1599670280175&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpostcss-discard-overridden%2Fdownload%2Fpostcss-discard-overridden-4.0.1.tgz#652aef8a96726f029f5e3e00146ee7a4e755ff57"
- integrity sha1-ZSrvipZybwKfXj4AFG7npOdV/1c=
- dependencies:
- postcss "^7.0.0"
+postcss-discard-overridden@^5.0.1:
+ version "5.0.1"
+ resolved "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-5.0.1.tgz#454b41f707300b98109a75005ca4ab0ff2743ac6"
+ integrity sha512-Y28H7y93L2BpJhrdUR2SR2fnSsT+3TVx1NmVQLbcnZWwIUpJ7mfcTC6Za9M2PG6w8j7UQRfzxqn8jU2VwFxo3Q==
postcss-html@^0.36.0:
version "0.36.0"
@@ -11342,277 +9957,165 @@ postcss-less@^3.1.4:
dependencies:
postcss "^7.0.14"
-postcss-load-config@^3.0.0, postcss-load-config@^3.0.1:
+postcss-load-config@^3.0.0, postcss-load-config@^3.1.0:
version "3.1.0"
- resolved "https://registry.yarnpkg.com/postcss-load-config/-/postcss-load-config-3.1.0.tgz#d39c47091c4aec37f50272373a6a648ef5e97829"
+ resolved "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-3.1.0.tgz#d39c47091c4aec37f50272373a6a648ef5e97829"
integrity sha512-ipM8Ds01ZUophjDTQYSVP70slFSYg3T0/zyfII5vzhN6V57YSxMgG5syXuwi5VtS8wSf3iL30v0uBdoIVx4Q0g==
dependencies:
import-cwd "^3.0.0"
lilconfig "^2.0.3"
yaml "^1.10.2"
-postcss-loader@^4.1.0:
- version "4.2.0"
- resolved "https://registry.npm.taobao.org/postcss-loader/download/postcss-loader-4.2.0.tgz?cache=0&sync_timestamp=1615479643882&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpostcss-loader%2Fdownload%2Fpostcss-loader-4.2.0.tgz#f6993ea3e0f46600fb3ee49bbd010448123a7db4"
- integrity sha1-9pk+o+D0ZgD7PuSbvQEESBI6fbQ=
- dependencies:
- cosmiconfig "^7.0.0"
- klona "^2.0.4"
- loader-utils "^2.0.0"
- schema-utils "^3.0.0"
- semver "^7.3.4"
-
postcss-media-query-parser@^0.2.3:
version "0.2.3"
resolved "https://registry.npm.taobao.org/postcss-media-query-parser/download/postcss-media-query-parser-0.2.3.tgz#27b39c6f4d94f81b1a73b8f76351c609e5cef244"
integrity sha1-J7Ocb02U+Bsac7j3Y1HGCeXO8kQ=
-postcss-merge-longhand@^4.0.11:
- version "4.0.11"
- resolved "https://registry.npm.taobao.org/postcss-merge-longhand/download/postcss-merge-longhand-4.0.11.tgz?cache=0&sync_timestamp=1599672054080&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpostcss-merge-longhand%2Fdownload%2Fpostcss-merge-longhand-4.0.11.tgz#62f49a13e4a0ee04e7b98f42bb16062ca2549e24"
- integrity sha1-YvSaE+Sg7gTnuY9CuxYGLKJUniQ=
+postcss-merge-longhand@^5.0.2:
+ version "5.0.2"
+ resolved "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-5.0.2.tgz#277ada51d9a7958e8ef8cf263103c9384b322a41"
+ integrity sha512-BMlg9AXSI5G9TBT0Lo/H3PfUy63P84rVz3BjCFE9e9Y9RXQZD3+h3YO1kgTNsNJy7bBc1YQp8DmSnwLIW5VPcw==
dependencies:
- css-color-names "0.0.4"
- postcss "^7.0.0"
- postcss-value-parser "^3.0.0"
- stylehacks "^4.0.0"
+ css-color-names "^1.0.1"
+ postcss-value-parser "^4.1.0"
+ stylehacks "^5.0.1"
-postcss-merge-rules@^4.0.3:
- version "4.0.3"
- resolved "https://registry.npm.taobao.org/postcss-merge-rules/download/postcss-merge-rules-4.0.3.tgz?cache=0&sync_timestamp=1599672054551&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpostcss-merge-rules%2Fdownload%2Fpostcss-merge-rules-4.0.3.tgz#362bea4ff5a1f98e4075a713c6cb25aefef9a650"
- integrity sha1-NivqT/Wh+Y5AdacTxsslrv75plA=
+postcss-merge-rules@^5.0.2:
+ version "5.0.2"
+ resolved "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-5.0.2.tgz#d6e4d65018badbdb7dcc789c4f39b941305d410a"
+ integrity sha512-5K+Md7S3GwBewfB4rjDeol6V/RZ8S+v4B66Zk2gChRqLTCC8yjnHQ601omj9TKftS19OPGqZ/XzoqpzNQQLwbg==
dependencies:
- browserslist "^4.0.0"
+ browserslist "^4.16.6"
caniuse-api "^3.0.0"
- cssnano-util-same-parent "^4.0.0"
- postcss "^7.0.0"
- postcss-selector-parser "^3.0.0"
- vendors "^1.0.0"
+ cssnano-utils "^2.0.1"
+ postcss-selector-parser "^6.0.5"
+ vendors "^1.0.3"
-postcss-minify-font-values@^4.0.2:
- version "4.0.2"
- resolved "https://registry.npm.taobao.org/postcss-minify-font-values/download/postcss-minify-font-values-4.0.2.tgz?cache=0&sync_timestamp=1599670280674&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpostcss-minify-font-values%2Fdownload%2Fpostcss-minify-font-values-4.0.2.tgz#cd4c344cce474343fac5d82206ab2cbcb8afd5a6"
- integrity sha1-zUw0TM5HQ0P6xdgiBqssvLiv1aY=
+postcss-minify-font-values@^5.0.1:
+ version "5.0.1"
+ resolved "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-5.0.1.tgz#a90cefbfdaa075bd3dbaa1b33588bb4dc268addf"
+ integrity sha512-7JS4qIsnqaxk+FXY1E8dHBDmraYFWmuL6cgt0T1SWGRO5bzJf8sUoelwa4P88LEWJZweHevAiDKxHlofuvtIoA==
dependencies:
- postcss "^7.0.0"
- postcss-value-parser "^3.0.0"
+ postcss-value-parser "^4.1.0"
-postcss-minify-gradients@^4.0.2:
- version "4.0.2"
- resolved "https://registry.npm.taobao.org/postcss-minify-gradients/download/postcss-minify-gradients-4.0.2.tgz?cache=0&sync_timestamp=1599670213021&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpostcss-minify-gradients%2Fdownload%2Fpostcss-minify-gradients-4.0.2.tgz#93b29c2ff5099c535eecda56c4aa6e665a663471"
- integrity sha1-k7KcL/UJnFNe7NpWxKpuZlpmNHE=
+postcss-minify-gradients@^5.0.2:
+ version "5.0.2"
+ resolved "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-5.0.2.tgz#7c175c108f06a5629925d698b3c4cf7bd3864ee5"
+ integrity sha512-7Do9JP+wqSD6Prittitt2zDLrfzP9pqKs2EcLX7HJYxsxCOwrrcLt4x/ctQTsiOw+/8HYotAoqNkrzItL19SdQ==
dependencies:
- cssnano-util-get-arguments "^4.0.0"
- is-color-stop "^1.0.0"
- postcss "^7.0.0"
- postcss-value-parser "^3.0.0"
+ colord "^2.6"
+ cssnano-utils "^2.0.1"
+ postcss-value-parser "^4.1.0"
-postcss-minify-params@^4.0.2:
- version "4.0.2"
- resolved "https://registry.npm.taobao.org/postcss-minify-params/download/postcss-minify-params-4.0.2.tgz#6b9cef030c11e35261f95f618c90036d680db874"
- integrity sha1-a5zvAwwR41Jh+V9hjJADbWgNuHQ=
+postcss-minify-params@^5.0.1:
+ version "5.0.1"
+ resolved "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-5.0.1.tgz#371153ba164b9d8562842fdcd929c98abd9e5b6c"
+ integrity sha512-4RUC4k2A/Q9mGco1Z8ODc7h+A0z7L7X2ypO1B6V8057eVK6mZ6xwz6QN64nHuHLbqbclkX1wyzRnIrdZehTEHw==
dependencies:
- alphanum-sort "^1.0.0"
- browserslist "^4.0.0"
- cssnano-util-get-arguments "^4.0.0"
- postcss "^7.0.0"
- postcss-value-parser "^3.0.0"
+ alphanum-sort "^1.0.2"
+ browserslist "^4.16.0"
+ cssnano-utils "^2.0.1"
+ postcss-value-parser "^4.1.0"
uniqs "^2.0.0"
-postcss-minify-selectors@^4.0.2:
- version "4.0.2"
- resolved "https://registry.npm.taobao.org/postcss-minify-selectors/download/postcss-minify-selectors-4.0.2.tgz#e2e5eb40bfee500d0cd9243500f5f8ea4262fbd8"
- integrity sha1-4uXrQL/uUA0M2SQ1APX46kJi+9g=
+postcss-minify-selectors@^5.1.0:
+ version "5.1.0"
+ resolved "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-5.1.0.tgz#4385c845d3979ff160291774523ffa54eafd5a54"
+ integrity sha512-NzGBXDa7aPsAcijXZeagnJBKBPMYLaJJzB8CQh6ncvyl2sIndLVWfbcDi0SBjRWk5VqEjXvf8tYwzoKf4Z07og==
dependencies:
- alphanum-sort "^1.0.0"
- has "^1.0.0"
- postcss "^7.0.0"
- postcss-selector-parser "^3.0.0"
+ alphanum-sort "^1.0.2"
+ postcss-selector-parser "^6.0.5"
-postcss-modules-extract-imports@^2.0.0:
- version "2.0.0"
- resolved "https://registry.npm.taobao.org/postcss-modules-extract-imports/download/postcss-modules-extract-imports-2.0.0.tgz?cache=0&sync_timestamp=1602588202058&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpostcss-modules-extract-imports%2Fdownload%2Fpostcss-modules-extract-imports-2.0.0.tgz#818719a1ae1da325f9832446b01136eeb493cd7e"
- integrity sha1-gYcZoa4doyX5gyRGsBE27rSTzX4=
+postcss-normalize-charset@^5.0.1:
+ version "5.0.1"
+ resolved "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-5.0.1.tgz#121559d1bebc55ac8d24af37f67bd4da9efd91d0"
+ integrity sha512-6J40l6LNYnBdPSk+BHZ8SF+HAkS4q2twe5jnocgd+xWpz/mx/5Sa32m3W1AA8uE8XaXN+eg8trIlfu8V9x61eg==
+
+postcss-normalize-display-values@^5.0.1:
+ version "5.0.1"
+ resolved "https://registry.npmjs.org/postcss-normalize-display-values/-/postcss-normalize-display-values-5.0.1.tgz#62650b965981a955dffee83363453db82f6ad1fd"
+ integrity sha512-uupdvWk88kLDXi5HEyI9IaAJTE3/Djbcrqq8YgjvAVuzgVuqIk3SuJWUisT2gaJbZm1H9g5k2w1xXilM3x8DjQ==
dependencies:
- postcss "^7.0.5"
-
-postcss-modules-extract-imports@^3.0.0:
- version "3.0.0"
- resolved "https://registry.npm.taobao.org/postcss-modules-extract-imports/download/postcss-modules-extract-imports-3.0.0.tgz?cache=0&sync_timestamp=1602588267459&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpostcss-modules-extract-imports%2Fdownload%2Fpostcss-modules-extract-imports-3.0.0.tgz#cda1f047c0ae80c97dbe28c3e76a43b88025741d"
- integrity sha1-zaHwR8CugMl9vijD52pDuIAldB0=
-
-postcss-modules-local-by-default@^3.0.3:
- version "3.0.3"
- resolved "https://registry.npm.taobao.org/postcss-modules-local-by-default/download/postcss-modules-local-by-default-3.0.3.tgz#bb14e0cc78279d504dbdcbfd7e0ca28993ffbbb0"
- integrity sha1-uxTgzHgnnVBNvcv9fgyiiZP/u7A=
- dependencies:
- icss-utils "^4.1.1"
- postcss "^7.0.32"
- postcss-selector-parser "^6.0.2"
+ cssnano-utils "^2.0.1"
postcss-value-parser "^4.1.0"
-postcss-modules-local-by-default@^4.0.0:
- version "4.0.0"
- resolved "https://registry.npm.taobao.org/postcss-modules-local-by-default/download/postcss-modules-local-by-default-4.0.0.tgz?cache=0&sync_timestamp=1602587552751&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpostcss-modules-local-by-default%2Fdownload%2Fpostcss-modules-local-by-default-4.0.0.tgz#ebbb54fae1598eecfdf691a02b3ff3b390a5a51c"
- integrity sha1-67tU+uFZjuz99pGgKz/zs5ClpRw=
+postcss-normalize-positions@^5.0.1:
+ version "5.0.1"
+ resolved "https://registry.npmjs.org/postcss-normalize-positions/-/postcss-normalize-positions-5.0.1.tgz#868f6af1795fdfa86fbbe960dceb47e5f9492fe5"
+ integrity sha512-rvzWAJai5xej9yWqlCb1OWLd9JjW2Ex2BCPzUJrbaXmtKtgfL8dBMOOMTX6TnvQMtjk3ei1Lswcs78qKO1Skrg==
dependencies:
- icss-utils "^5.0.0"
- postcss-selector-parser "^6.0.2"
postcss-value-parser "^4.1.0"
-postcss-modules-scope@^2.2.0:
- version "2.2.0"
- resolved "https://registry.npm.taobao.org/postcss-modules-scope/download/postcss-modules-scope-2.2.0.tgz#385cae013cc7743f5a7d7602d1073a89eaae62ee"
- integrity sha1-OFyuATzHdD9afXYC0Qc6iequYu4=
+postcss-normalize-repeat-style@^5.0.1:
+ version "5.0.1"
+ resolved "https://registry.npmjs.org/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-5.0.1.tgz#cbc0de1383b57f5bb61ddd6a84653b5e8665b2b5"
+ integrity sha512-syZ2itq0HTQjj4QtXZOeefomckiV5TaUO6ReIEabCh3wgDs4Mr01pkif0MeVwKyU/LHEkPJnpwFKRxqWA/7O3w==
dependencies:
- postcss "^7.0.6"
- postcss-selector-parser "^6.0.0"
+ cssnano-utils "^2.0.1"
+ postcss-value-parser "^4.1.0"
-postcss-modules-scope@^3.0.0:
- version "3.0.0"
- resolved "https://registry.npm.taobao.org/postcss-modules-scope/download/postcss-modules-scope-3.0.0.tgz?cache=0&sync_timestamp=1602594980328&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpostcss-modules-scope%2Fdownload%2Fpostcss-modules-scope-3.0.0.tgz#9ef3151456d3bbfa120ca44898dfca6f2fa01f06"
- integrity sha1-nvMVFFbTu/oSDKRImN/Kby+gHwY=
+postcss-normalize-string@^5.0.1:
+ version "5.0.1"
+ resolved "https://registry.npmjs.org/postcss-normalize-string/-/postcss-normalize-string-5.0.1.tgz#d9eafaa4df78c7a3b973ae346ef0e47c554985b0"
+ integrity sha512-Ic8GaQ3jPMVl1OEn2U//2pm93AXUcF3wz+OriskdZ1AOuYV25OdgS7w9Xu2LO5cGyhHCgn8dMXh9bO7vi3i9pA==
dependencies:
- postcss-selector-parser "^6.0.4"
+ postcss-value-parser "^4.1.0"
-postcss-modules-values@^3.0.0:
- version "3.0.0"
- resolved "https://registry.npm.taobao.org/postcss-modules-values/download/postcss-modules-values-3.0.0.tgz?cache=0&sync_timestamp=1602586308035&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpostcss-modules-values%2Fdownload%2Fpostcss-modules-values-3.0.0.tgz#5b5000d6ebae29b4255301b4a3a54574423e7f10"
- integrity sha1-W1AA1uuuKbQlUwG0o6VFdEI+fxA=
+postcss-normalize-timing-functions@^5.0.1:
+ version "5.0.1"
+ resolved "https://registry.npmjs.org/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-5.0.1.tgz#8ee41103b9130429c6cbba736932b75c5e2cb08c"
+ integrity sha512-cPcBdVN5OsWCNEo5hiXfLUnXfTGtSFiBU9SK8k7ii8UD7OLuznzgNRYkLZow11BkQiiqMcgPyh4ZqXEEUrtQ1Q==
dependencies:
- icss-utils "^4.0.0"
- postcss "^7.0.6"
+ cssnano-utils "^2.0.1"
+ postcss-value-parser "^4.1.0"
-postcss-modules-values@^4.0.0:
- version "4.0.0"
- resolved "https://registry.npm.taobao.org/postcss-modules-values/download/postcss-modules-values-4.0.0.tgz?cache=0&sync_timestamp=1602586308035&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpostcss-modules-values%2Fdownload%2Fpostcss-modules-values-4.0.0.tgz#d7c5e7e68c3bb3c9b27cbf48ca0bb3ffb4602c9c"
- integrity sha1-18Xn5ow7s8myfL9Iyguz/7RgLJw=
+postcss-normalize-unicode@^5.0.1:
+ version "5.0.1"
+ resolved "https://registry.npmjs.org/postcss-normalize-unicode/-/postcss-normalize-unicode-5.0.1.tgz#82d672d648a411814aa5bf3ae565379ccd9f5e37"
+ integrity sha512-kAtYD6V3pK0beqrU90gpCQB7g6AOfP/2KIPCVBKJM2EheVsBQmx/Iof+9zR9NFKLAx4Pr9mDhogB27pmn354nA==
dependencies:
- icss-utils "^5.0.0"
+ browserslist "^4.16.0"
+ postcss-value-parser "^4.1.0"
-postcss-modules@^4.0.0:
- version "4.0.0"
- resolved "https://registry.npm.taobao.org/postcss-modules/download/postcss-modules-4.0.0.tgz?cache=0&sync_timestamp=1606641094666&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpostcss-modules%2Fdownload%2Fpostcss-modules-4.0.0.tgz#2bc7f276ab88f3f1b0fadf6cbd7772d43b5f3b9b"
- integrity sha1-K8fydquI8/Gw+t9svXdy1DtfO5s=
+postcss-normalize-url@^5.0.2:
+ version "5.0.2"
+ resolved "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-5.0.2.tgz#ddcdfb7cede1270740cf3e4dfc6008bd96abc763"
+ integrity sha512-k4jLTPUxREQ5bpajFQZpx8bCF2UrlqOTzP9kEqcEnOfwsRshWs2+oAFIHfDQB8GO2PaUaSE0NlTAYtbluZTlHQ==
dependencies:
- generic-names "^2.0.1"
- icss-replace-symbols "^1.1.0"
- lodash.camelcase "^4.3.0"
- postcss-modules-extract-imports "^3.0.0"
- postcss-modules-local-by-default "^4.0.0"
- postcss-modules-scope "^3.0.0"
- postcss-modules-values "^4.0.0"
- string-hash "^1.1.1"
+ is-absolute-url "^3.0.3"
+ normalize-url "^6.0.1"
+ postcss-value-parser "^4.1.0"
-postcss-normalize-charset@^4.0.1:
- version "4.0.1"
- resolved "https://registry.npm.taobao.org/postcss-normalize-charset/download/postcss-normalize-charset-4.0.1.tgz?cache=0&sync_timestamp=1599670280944&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpostcss-normalize-charset%2Fdownload%2Fpostcss-normalize-charset-4.0.1.tgz#8b35add3aee83a136b0471e0d59be58a50285dd4"
- integrity sha1-izWt067oOhNrBHHg1ZvlilAoXdQ=
+postcss-normalize-whitespace@^5.0.1:
+ version "5.0.1"
+ resolved "https://registry.npmjs.org/postcss-normalize-whitespace/-/postcss-normalize-whitespace-5.0.1.tgz#b0b40b5bcac83585ff07ead2daf2dcfbeeef8e9a"
+ integrity sha512-iPklmI5SBnRvwceb/XH568yyzK0qRVuAG+a1HFUsFRf11lEJTiQQa03a4RSCQvLKdcpX7XsI1Gen9LuLoqwiqA==
dependencies:
- postcss "^7.0.0"
+ postcss-value-parser "^4.1.0"
-postcss-normalize-display-values@^4.0.2:
- version "4.0.2"
- resolved "https://registry.npm.taobao.org/postcss-normalize-display-values/download/postcss-normalize-display-values-4.0.2.tgz?cache=0&sync_timestamp=1599672317574&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpostcss-normalize-display-values%2Fdownload%2Fpostcss-normalize-display-values-4.0.2.tgz#0dbe04a4ce9063d4667ed2be476bb830c825935a"
- integrity sha1-Db4EpM6QY9RmftK+R2u4MMglk1o=
+postcss-ordered-values@^5.0.2:
+ version "5.0.2"
+ resolved "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-5.0.2.tgz#1f351426977be00e0f765b3164ad753dac8ed044"
+ integrity sha512-8AFYDSOYWebJYLyJi3fyjl6CqMEG/UVworjiyK1r573I56kb3e879sCJLGvR3merj+fAdPpVplXKQZv+ey6CgQ==
dependencies:
- cssnano-util-get-match "^4.0.0"
- postcss "^7.0.0"
- postcss-value-parser "^3.0.0"
+ cssnano-utils "^2.0.1"
+ postcss-value-parser "^4.1.0"
-postcss-normalize-positions@^4.0.2:
- version "4.0.2"
- resolved "https://registry.npm.taobao.org/postcss-normalize-positions/download/postcss-normalize-positions-4.0.2.tgz?cache=0&sync_timestamp=1599670281223&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpostcss-normalize-positions%2Fdownload%2Fpostcss-normalize-positions-4.0.2.tgz#05f757f84f260437378368a91f8932d4b102917f"
- integrity sha1-BfdX+E8mBDc3g2ipH4ky1LECkX8=
+postcss-reduce-initial@^5.0.1:
+ version "5.0.1"
+ resolved "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-5.0.1.tgz#9d6369865b0f6f6f6b165a0ef5dc1a4856c7e946"
+ integrity sha512-zlCZPKLLTMAqA3ZWH57HlbCjkD55LX9dsRyxlls+wfuRfqCi5mSlZVan0heX5cHr154Dq9AfbH70LyhrSAezJw==
dependencies:
- cssnano-util-get-arguments "^4.0.0"
- has "^1.0.0"
- postcss "^7.0.0"
- postcss-value-parser "^3.0.0"
-
-postcss-normalize-repeat-style@^4.0.2:
- version "4.0.2"
- resolved "https://registry.npm.taobao.org/postcss-normalize-repeat-style/download/postcss-normalize-repeat-style-4.0.2.tgz#c4ebbc289f3991a028d44751cbdd11918b17910c"
- integrity sha1-xOu8KJ85kaAo1EdRy90RkYsXkQw=
- dependencies:
- cssnano-util-get-arguments "^4.0.0"
- cssnano-util-get-match "^4.0.0"
- postcss "^7.0.0"
- postcss-value-parser "^3.0.0"
-
-postcss-normalize-string@^4.0.2:
- version "4.0.2"
- resolved "https://registry.npm.taobao.org/postcss-normalize-string/download/postcss-normalize-string-4.0.2.tgz?cache=0&sync_timestamp=1599672318066&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpostcss-normalize-string%2Fdownload%2Fpostcss-normalize-string-4.0.2.tgz#cd44c40ab07a0c7a36dc5e99aace1eca4ec2690c"
- integrity sha1-zUTECrB6DHo23F6Zqs4eyk7CaQw=
- dependencies:
- has "^1.0.0"
- postcss "^7.0.0"
- postcss-value-parser "^3.0.0"
-
-postcss-normalize-timing-functions@^4.0.2:
- version "4.0.2"
- resolved "https://registry.npm.taobao.org/postcss-normalize-timing-functions/download/postcss-normalize-timing-functions-4.0.2.tgz#8e009ca2a3949cdaf8ad23e6b6ab99cb5e7d28d9"
- integrity sha1-jgCcoqOUnNr4rSPmtquZy159KNk=
- dependencies:
- cssnano-util-get-match "^4.0.0"
- postcss "^7.0.0"
- postcss-value-parser "^3.0.0"
-
-postcss-normalize-unicode@^4.0.1:
- version "4.0.1"
- resolved "https://registry.npm.taobao.org/postcss-normalize-unicode/download/postcss-normalize-unicode-4.0.1.tgz#841bd48fdcf3019ad4baa7493a3d363b52ae1cfb"
- integrity sha1-hBvUj9zzAZrUuqdJOj02O1KuHPs=
- dependencies:
- browserslist "^4.0.0"
- postcss "^7.0.0"
- postcss-value-parser "^3.0.0"
-
-postcss-normalize-url@^4.0.1:
- version "4.0.1"
- resolved "https://registry.npm.taobao.org/postcss-normalize-url/download/postcss-normalize-url-4.0.1.tgz#10e437f86bc7c7e58f7b9652ed878daaa95faae1"
- integrity sha1-EOQ3+GvHx+WPe5ZS7YeNqqlfquE=
- dependencies:
- is-absolute-url "^2.0.0"
- normalize-url "^3.0.0"
- postcss "^7.0.0"
- postcss-value-parser "^3.0.0"
-
-postcss-normalize-whitespace@^4.0.2:
- version "4.0.2"
- resolved "https://registry.npm.taobao.org/postcss-normalize-whitespace/download/postcss-normalize-whitespace-4.0.2.tgz#bf1d4070fe4fcea87d1348e825d8cc0c5faa7d82"
- integrity sha1-vx1AcP5Pzqh9E0joJdjMDF+qfYI=
- dependencies:
- postcss "^7.0.0"
- postcss-value-parser "^3.0.0"
-
-postcss-ordered-values@^4.1.2:
- version "4.1.2"
- resolved "https://registry.npm.taobao.org/postcss-ordered-values/download/postcss-ordered-values-4.1.2.tgz#0cf75c820ec7d5c4d280189559e0b571ebac0eee"
- integrity sha1-DPdcgg7H1cTSgBiVWeC1ceusDu4=
- dependencies:
- cssnano-util-get-arguments "^4.0.0"
- postcss "^7.0.0"
- postcss-value-parser "^3.0.0"
-
-postcss-reduce-initial@^4.0.3:
- version "4.0.3"
- resolved "https://registry.npm.taobao.org/postcss-reduce-initial/download/postcss-reduce-initial-4.0.3.tgz#7fd42ebea5e9c814609639e2c2e84ae270ba48df"
- integrity sha1-f9QuvqXpyBRgljniwuhK4nC6SN8=
- dependencies:
- browserslist "^4.0.0"
+ browserslist "^4.16.0"
caniuse-api "^3.0.0"
- has "^1.0.0"
- postcss "^7.0.0"
-postcss-reduce-transforms@^4.0.2:
- version "4.0.2"
- resolved "https://registry.npm.taobao.org/postcss-reduce-transforms/download/postcss-reduce-transforms-4.0.2.tgz#17efa405eacc6e07be3414a5ca2d1074681d4e29"
- integrity sha1-F++kBerMbge+NBSlyi0QdGgdTik=
+postcss-reduce-transforms@^5.0.1:
+ version "5.0.1"
+ resolved "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-5.0.1.tgz#93c12f6a159474aa711d5269923e2383cedcf640"
+ integrity sha512-a//FjoPeFkRuAguPscTVmRQUODP+f3ke2HqFNgGPwdYnpeC29RZdCBvGRGTsKpMURb/I3p6jdKoBQ2zI+9Q7kA==
dependencies:
- cssnano-util-get-match "^4.0.0"
- has "^1.0.0"
- postcss "^7.0.0"
- postcss-value-parser "^3.0.0"
+ cssnano-utils "^2.0.1"
+ postcss-value-parser "^4.1.0"
postcss-resolve-nested-selector@^0.1.1:
version "0.1.1"
@@ -11641,16 +10144,7 @@ postcss-scss@^2.1.1:
dependencies:
postcss "^7.0.6"
-postcss-selector-parser@^3.0.0:
- version "3.1.2"
- resolved "https://registry.npm.taobao.org/postcss-selector-parser/download/postcss-selector-parser-3.1.2.tgz?cache=0&sync_timestamp=1601045367941&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpostcss-selector-parser%2Fdownload%2Fpostcss-selector-parser-3.1.2.tgz#b310f5c4c0fdaf76f94902bbaa30db6aa84f5270"
- integrity sha1-sxD1xMD9r3b5SQK7qjDbaqhPUnA=
- dependencies:
- dot-prop "^5.2.0"
- indexes-of "^1.0.1"
- uniq "^1.0.1"
-
-postcss-selector-parser@^6.0.0, postcss-selector-parser@^6.0.2, postcss-selector-parser@^6.0.4, postcss-selector-parser@^6.0.5:
+postcss-selector-parser@^6.0.2, postcss-selector-parser@^6.0.4, postcss-selector-parser@^6.0.5:
version "6.0.6"
resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-6.0.6.tgz#2c5bba8174ac2f6981ab631a42ab0ee54af332ea"
integrity sha512-9LXrvaaX3+mcv5xkg5kFwqSzSH1JIObIx51PrndZwlmznwXRfxMddDvo9gve3gVR8ZTKgoFDdWkbRFmEhT4PMg==
@@ -11658,50 +10152,34 @@ postcss-selector-parser@^6.0.0, postcss-selector-parser@^6.0.2, postcss-selector
cssesc "^3.0.0"
util-deprecate "^1.0.2"
-postcss-svgo@^4.0.2:
- version "4.0.2"
- resolved "https://registry.npm.taobao.org/postcss-svgo/download/postcss-svgo-4.0.2.tgz?cache=0&sync_timestamp=1599670277721&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpostcss-svgo%2Fdownload%2Fpostcss-svgo-4.0.2.tgz#17b997bc711b333bab143aaed3b8d3d6e3d38258"
- integrity sha1-F7mXvHEbMzurFDqu07jT1uPTglg=
+postcss-svgo@^5.0.2:
+ version "5.0.2"
+ resolved "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-5.0.2.tgz#bc73c4ea4c5a80fbd4b45e29042c34ceffb9257f"
+ integrity sha512-YzQuFLZu3U3aheizD+B1joQ94vzPfE6BNUcSYuceNxlVnKKsOtdo6hL9/zyC168Q8EwfLSgaDSalsUGa9f2C0A==
dependencies:
- is-svg "^3.0.0"
- postcss "^7.0.0"
- postcss-value-parser "^3.0.0"
- svgo "^1.0.0"
+ postcss-value-parser "^4.1.0"
+ svgo "^2.3.0"
postcss-syntax@^0.36.2:
version "0.36.2"
resolved "https://registry.npm.taobao.org/postcss-syntax/download/postcss-syntax-0.36.2.tgz#f08578c7d95834574e5593a82dfbfa8afae3b51c"
integrity sha1-8IV4x9lYNFdOVZOoLfv6ivrjtRw=
-postcss-unique-selectors@^4.0.1:
- version "4.0.1"
- resolved "https://registry.npm.taobao.org/postcss-unique-selectors/download/postcss-unique-selectors-4.0.1.tgz?cache=0&sync_timestamp=1599670277944&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpostcss-unique-selectors%2Fdownload%2Fpostcss-unique-selectors-4.0.1.tgz#9446911f3289bfd64c6d680f073c03b1f9ee4bac"
- integrity sha1-lEaRHzKJv9ZMbWgPBzwDsfnuS6w=
+postcss-unique-selectors@^5.0.1:
+ version "5.0.1"
+ resolved "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-5.0.1.tgz#3be5c1d7363352eff838bd62b0b07a0abad43bfc"
+ integrity sha512-gwi1NhHV4FMmPn+qwBNuot1sG1t2OmacLQ/AX29lzyggnjd+MnVD5uqQmpXO3J17KGL2WAxQruj1qTd3H0gG/w==
dependencies:
- alphanum-sort "^1.0.0"
- postcss "^7.0.0"
+ alphanum-sort "^1.0.2"
+ postcss-selector-parser "^6.0.5"
uniqs "^2.0.0"
-postcss-value-parser@^3.0.0, postcss-value-parser@^3.2.3:
- version "3.3.1"
- resolved "https://registry.npm.taobao.org/postcss-value-parser/download/postcss-value-parser-3.3.1.tgz#9ff822547e2893213cf1c30efa51ac5fd1ba8281"
- integrity sha1-n/giVH4okyE88cMO+lGsX9G6goE=
-
postcss-value-parser@^4.0.2, postcss-value-parser@^4.1.0:
version "4.1.0"
resolved "https://registry.npm.taobao.org/postcss-value-parser/download/postcss-value-parser-4.1.0.tgz#443f6a20ced6481a2bda4fa8532a6e55d789a2cb"
integrity sha1-RD9qIM7WSBor2k+oUypuVdeJoss=
-postcss@^6.0.17:
- version "6.0.23"
- resolved "https://registry.npm.taobao.org/postcss/download/postcss-6.0.23.tgz#61c82cc328ac60e677645f979054eb98bc0e3324"
- integrity sha1-YcgswyisYOZ3ZF+XkFTrmLwOMyQ=
- dependencies:
- chalk "^2.4.1"
- source-map "^0.6.1"
- supports-color "^5.4.0"
-
-postcss@^7.0.0, postcss@^7.0.1, postcss@^7.0.14, postcss@^7.0.2, postcss@^7.0.21, postcss@^7.0.26, postcss@^7.0.27, postcss@^7.0.32, postcss@^7.0.35, postcss@^7.0.36, postcss@^7.0.5, postcss@^7.0.6:
+postcss@^7.0.14, postcss@^7.0.2, postcss@^7.0.21, postcss@^7.0.26, postcss@^7.0.32, postcss@^7.0.35, postcss@^7.0.6:
version "7.0.36"
resolved "https://registry.yarnpkg.com/postcss/-/postcss-7.0.36.tgz#056f8cffa939662a8f5905950c07d5285644dfcb"
integrity sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==
@@ -11710,14 +10188,14 @@ postcss@^7.0.0, postcss@^7.0.1, postcss@^7.0.14, postcss@^7.0.2, postcss@^7.0.21
source-map "^0.6.1"
supports-color "^6.1.0"
-postcss@^8.1.10:
- version "8.2.9"
- resolved "https://registry.npm.taobao.org/postcss/download/postcss-8.2.9.tgz?cache=0&sync_timestamp=1617137694969&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpostcss%2Fdownload%2Fpostcss-8.2.9.tgz#fd95ff37b5cee55c409b3fdd237296ab4096fba3"
- integrity sha1-/ZX/N7XO5VxAmz/dI3KWq0CW+6M=
+postcss@^8.1.10, postcss@^8.3.6:
+ version "8.3.7"
+ resolved "https://registry.npmjs.org/postcss/-/postcss-8.3.7.tgz#ec88563588c8da8e58e7226f7633b51ae221eeda"
+ integrity sha512-9SaY7nnyQ63/WittqZYAvkkYPyKxchMKH71UDzeTmWuLSvxTRpeEeABZAzlCi55cuGcoFyoV/amX2BdsafQidQ==
dependencies:
- colorette "^1.2.2"
- nanoid "^3.1.22"
- source-map "^0.6.1"
+ nanocolors "^0.1.5"
+ nanoid "^3.1.25"
+ source-map-js "^0.6.2"
preact@^10.0.0:
version "10.5.13"
@@ -11734,37 +10212,24 @@ prelude-ls@~1.1.2:
resolved "https://registry.npm.taobao.org/prelude-ls/download/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=
-prepend-http@^1.0.0:
- version "1.0.4"
- resolved "https://registry.npm.taobao.org/prepend-http/download/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc"
- integrity sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw=
-
prepend-http@^2.0.0:
version "2.0.0"
resolved "https://registry.npm.taobao.org/prepend-http/download/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897"
integrity sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=
-prettier@2.1.0:
- version "2.1.0"
- resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.1.0.tgz#5a9789f767a243118c60f3e56d95cb6544914fbb"
- integrity sha512-lz28cCbA1cDFHVuY8vvj6QuqOwIpyIfPUYkSl8AZ/vxH8qBXMMjE2knfLHCrZCmUsK/H1bg1P0tOo0dJkTJHvw==
+prettier@^2.3.2:
+ version "2.4.1"
+ resolved "https://registry.npmjs.org/prettier/-/prettier-2.4.1.tgz#671e11c89c14a4cfc876ce564106c4a6726c9f5c"
+ integrity sha512-9fbDAXSBcc6Bs1mZrDYb3XKzDLm4EXXL9sC1LqKP5rZkT6KRr/rf9amVUcODVXgguK/isJz0d0hP72WeaKWsvA==
-pretty-error@^2.1.1:
- version "2.1.1"
- resolved "https://registry.npm.taobao.org/pretty-error/download/pretty-error-2.1.1.tgz#5f4f87c8f91e5ae3f3ba87ab4cf5e03b1a17f1a3"
- integrity sha1-X0+HyPkeWuPzuoerTPXgOxoX8aM=
+pretty-format@^27.0.0, pretty-format@^27.2.0:
+ version "27.2.0"
+ resolved "https://registry.npmjs.org/pretty-format/-/pretty-format-27.2.0.tgz#ee37a94ce2a79765791a8649ae374d468c18ef19"
+ integrity sha512-KyJdmgBkMscLqo8A7K77omgLx5PWPiXJswtTtFV7XgVZv2+qPk6UivpXXO+5k6ZEbWIbLoKdx1pZ6ldINzbwTA==
dependencies:
- renderkid "^2.0.1"
- utila "~0.4"
-
-pretty-format@^26.6.2:
- version "26.6.2"
- resolved "https://registry.npm.taobao.org/pretty-format/download/pretty-format-26.6.2.tgz?cache=0&sync_timestamp=1617372028294&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpretty-format%2Fdownload%2Fpretty-format-26.6.2.tgz#e35c2705f14cb7fe2fe94fa078345b444120fc93"
- integrity sha1-41wnBfFMt/4v6U+geDRbREEg/JM=
- dependencies:
- "@jest/types" "^26.6.2"
+ "@jest/types" "^27.1.1"
ansi-regex "^5.0.0"
- ansi-styles "^4.0.0"
+ ansi-styles "^5.0.0"
react-is "^17.0.1"
pretty-hrtime@^1.0.0:
@@ -11772,11 +10237,6 @@ pretty-hrtime@^1.0.0:
resolved "https://registry.npm.taobao.org/pretty-hrtime/download/pretty-hrtime-1.0.3.tgz#b7e3ea42435a4c9b2759d99e0f201eb195802ee1"
integrity sha1-t+PqQkNaTJsnWdmeDyAesZWALuE=
-pretty-time@^1.1.0:
- version "1.1.0"
- resolved "https://registry.npm.taobao.org/pretty-time/download/pretty-time-1.1.0.tgz#ffb7429afabb8535c346a34e41873adf3d74dd0e"
- integrity sha1-/7dCmvq7hTXDRqNOQYc63z103Q4=
-
private@^0.1.6, private@^0.1.7, private@^0.1.8:
version "0.1.8"
resolved "https://registry.npm.taobao.org/private/download/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff"
@@ -11815,14 +10275,6 @@ protocols@^1.1.0, protocols@^1.4.0:
resolved "https://registry.npm.taobao.org/protocols/download/protocols-1.4.8.tgz#48eea2d8f58d9644a4a32caae5d5db290a075ce8"
integrity sha1-SO6i2PWNlkSkoyyq5dXbKQoHXOg=
-proxy-addr@~2.0.5:
- version "2.0.6"
- resolved "https://registry.npm.taobao.org/proxy-addr/download/proxy-addr-2.0.6.tgz#fdc2336505447d3f2f2c638ed272caf614bbb2bf"
- integrity sha1-/cIzZQVEfT8vLGOO0nLK9hS7sr8=
- dependencies:
- forwarded "~0.1.2"
- ipaddr.js "1.9.1"
-
prr@~1.0.1:
version "1.0.1"
resolved "https://registry.npm.taobao.org/prr/download/prr-1.0.1.tgz#d3fc114ba06995a45ec6893f484ceb1d78f5f476"
@@ -11858,11 +10310,6 @@ pumpify@^1.3.5:
inherits "^2.0.3"
pump "^2.0.0"
-punycode@1.3.2:
- version "1.3.2"
- resolved "https://registry.npm.taobao.org/punycode/download/punycode-1.3.2.tgz#9653a036fb7c1ee42342f2325cceefea3926c48d"
- integrity sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=
-
punycode@^2.1.0, punycode@^2.1.1:
version "2.1.1"
resolved "https://registry.npm.taobao.org/punycode/download/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec"
@@ -11875,7 +10322,7 @@ pupa@^2.1.1:
dependencies:
escape-goat "^2.0.0"
-q@^1.1.2, q@^1.5.1:
+q@^1.5.1:
version "1.5.1"
resolved "https://registry.npm.taobao.org/q/download/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7"
integrity sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=
@@ -11890,11 +10337,6 @@ qrcode-terminal@^0.12.0:
resolved "https://registry.npm.taobao.org/qrcode-terminal/download/qrcode-terminal-0.12.0.tgz#bb5b699ef7f9f0505092a3748be4464fe71b5819"
integrity sha1-u1tpnvf58FBQkqN0i+RGT+cbWBk=
-qs@6.7.0:
- version "6.7.0"
- resolved "https://registry.npm.taobao.org/qs/download/qs-6.7.0.tgz?cache=0&sync_timestamp=1616385328325&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fqs%2Fdownload%2Fqs-6.7.0.tgz#41dc1a015e3d581f1621776be31afb2876a9b1bc"
- integrity sha1-QdwaAV49WB8WIXdr4xr7KHapsbw=
-
qs@^6.9.4:
version "6.10.1"
resolved "https://registry.npm.taobao.org/qs/download/qs-6.10.1.tgz?cache=0&sync_timestamp=1616385328325&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fqs%2Fdownload%2Fqs-6.10.1.tgz#4931482fa8d647a5aab799c5271d2133b981fb6a"
@@ -11907,14 +10349,6 @@ qs@~6.5.2:
resolved "https://registry.npm.taobao.org/qs/download/qs-6.5.2.tgz?cache=0&sync_timestamp=1616385328325&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fqs%2Fdownload%2Fqs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36"
integrity sha1-yzroBuh0BERYTvFUzo7pjUA/PjY=
-query-string@^4.1.0:
- version "4.3.4"
- resolved "https://registry.npm.taobao.org/query-string/download/query-string-4.3.4.tgz?cache=0&sync_timestamp=1601654371023&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fquery-string%2Fdownload%2Fquery-string-4.3.4.tgz#bbb693b9ca915c232515b228b1a02b609043dbeb"
- integrity sha1-u7aTucqRXCMlFbIosaArYJBD2+s=
- dependencies:
- object-assign "^4.1.0"
- strict-uri-encode "^1.0.0"
-
query-string@^6.13.8:
version "6.14.1"
resolved "https://registry.npm.taobao.org/query-string/download/query-string-6.14.1.tgz#7ac2dca46da7f309449ba0f86b1fd28255b0c86a"
@@ -11925,16 +10359,6 @@ query-string@^6.13.8:
split-on-first "^1.0.0"
strict-uri-encode "^2.0.0"
-querystring@0.2.0:
- version "0.2.0"
- resolved "https://registry.npm.taobao.org/querystring/download/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620"
- integrity sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=
-
-querystringify@^2.1.1:
- version "2.2.0"
- resolved "https://registry.npm.taobao.org/querystringify/download/querystringify-2.2.0.tgz?cache=0&sync_timestamp=1597687052330&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fquerystringify%2Fdownload%2Fquerystringify-2.2.0.tgz#3345941b4153cb9d082d8eee4cda2016a9aef7f6"
- integrity sha1-M0WUG0FTy50ILY7uTNogFqmu9/Y=
-
quick-lru@^4.0.1:
version "4.0.1"
resolved "https://registry.npm.taobao.org/quick-lru/download/quick-lru-4.0.1.tgz#5b8878f113a58217848c6482026c73e1ba57727f"
@@ -11945,28 +10369,6 @@ quick-lru@^5.1.1:
resolved "https://registry.npm.taobao.org/quick-lru/download/quick-lru-5.1.1.tgz?cache=0&sync_timestamp=1610610431807&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fquick-lru%2Fdownload%2Fquick-lru-5.1.1.tgz#366493e6b3e42a3a6885e2e99d18f80fb7a8c932"
integrity sha1-NmST5rPkKjpoheLpnRj4D7eoyTI=
-randombytes@^2.1.0:
- version "2.1.0"
- resolved "https://registry.npm.taobao.org/randombytes/download/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a"
- integrity sha1-32+ENy8CcNxlzfYpE0mrekc9Tyo=
- dependencies:
- safe-buffer "^5.1.0"
-
-range-parser@^1.2.1, range-parser@~1.2.1:
- version "1.2.1"
- resolved "https://registry.npm.taobao.org/range-parser/download/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031"
- integrity sha1-PPNwI9GZ4cJNGlW4SADC8+ZGgDE=
-
-raw-body@2.4.0:
- version "2.4.0"
- resolved "https://registry.npm.taobao.org/raw-body/download/raw-body-2.4.0.tgz#a1ce6fb9c9bc356ca52e89256ab59059e13d0332"
- integrity sha1-oc5vucm8NWylLoklarWQWeE9AzI=
- dependencies:
- bytes "3.1.0"
- http-errors "1.7.2"
- iconv-lite "0.4.24"
- unpipe "1.0.0"
-
rc@^1.2.8:
version "1.2.8"
resolved "https://registry.npm.taobao.org/rc/download/rc-1.2.8.tgz?cache=0&sync_timestamp=1593529723659&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Frc%2Fdownload%2Frc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed"
@@ -12056,7 +10458,7 @@ read-pkg@^5.2.0:
parse-json "^5.0.0"
type-fest "^0.6.0"
-readable-stream@3, readable-stream@^3.0.0, readable-stream@^3.0.6, readable-stream@^3.1.1, readable-stream@^3.4.0:
+readable-stream@3, readable-stream@^3.0.0, readable-stream@^3.1.1, readable-stream@^3.4.0:
version "3.6.0"
resolved "https://registry.npm.taobao.org/readable-stream/download/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198"
integrity sha1-M3u9o63AcGvT4CRCaihtS0sskZg=
@@ -12107,10 +10509,10 @@ readdirp@^2.2.1:
micromatch "^3.1.10"
readable-stream "^2.0.2"
-readdirp@~3.5.0:
- version "3.5.0"
- resolved "https://registry.npm.taobao.org/readdirp/download/readdirp-3.5.0.tgz?cache=0&sync_timestamp=1602584394621&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Freaddirp%2Fdownload%2Freaddirp-3.5.0.tgz#9ba74c019b15d365278d2e91bb8c48d7b4d42c9e"
- integrity sha1-m6dMAZsV02UnjS6Ru4xI17TULJ4=
+readdirp@~3.6.0:
+ version "3.6.0"
+ resolved "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7"
+ integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==
dependencies:
picomatch "^2.2.1"
@@ -12183,14 +10585,6 @@ regex-not@^1.0.0, regex-not@^1.0.2:
extend-shallow "^3.0.2"
safe-regex "^1.1.0"
-regexp.prototype.flags@^1.2.0:
- version "1.3.1"
- resolved "https://registry.npm.taobao.org/regexp.prototype.flags/download/regexp.prototype.flags-1.3.1.tgz?cache=0&sync_timestamp=1610725764337&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fregexp.prototype.flags%2Fdownload%2Fregexp.prototype.flags-1.3.1.tgz#7ef352ae8d159e758c0eadca6f8fcb4eef07be26"
- integrity sha1-fvNSro0VnnWMDq3Kb4/LTu8HviY=
- dependencies:
- call-bind "^1.0.2"
- define-properties "^1.1.3"
-
regexpp@^3.1.0:
version "3.1.0"
resolved "https://registry.npm.taobao.org/regexpp/download/regexpp-3.1.0.tgz#206d0ad0a5648cffbdb8ae46438f3dc51c9f78e2"
@@ -12260,31 +10654,32 @@ relateurl@^0.2.7:
resolved "https://registry.npm.taobao.org/relateurl/download/relateurl-0.2.7.tgz#54dbf377e51440aca90a4cd274600d3ff2d888a9"
integrity sha1-VNvzd+UUQKypCkzSdGANP/LYiKk=
-release-it@^14.8.0:
- version "14.9.0"
- resolved "https://registry.yarnpkg.com/release-it/-/release-it-14.9.0.tgz#7ac6ef284c9067c14313c64275e2e4b31fe9a9e1"
- integrity sha512-Pn9GH60jKkL+dUkVxCyyiIhA9oySu/Q+8F9aExCggcppxfZbhRCxMgmk/iFh+/oejdzQq9zCZSudA2CmWOSKxQ==
+release-it@^14.11.5:
+ version "14.11.6"
+ resolved "https://registry.npmjs.org/release-it/-/release-it-14.11.6.tgz#a285eaac25f9f3a6d47e688911e539af53a74446"
+ integrity sha512-6BNcuzFZHThBUBJ/xYw/bxZ+58CAwrwf1zgmjq2Ibl3nlDZbjphHG6iqxkJu7mZ8TIWs6NjloEAhqpjeXoN//Q==
dependencies:
"@iarna/toml" "2.2.5"
- "@octokit/rest" "18.5.3"
- async-retry "1.3.1"
- chalk "4.1.1"
- cosmiconfig "7.0.0"
- debug "4.3.1"
+ "@octokit/rest" "18.10.0"
+ async-retry "1.3.3"
+ chalk "4.1.2"
+ cosmiconfig "7.0.1"
+ debug "4.3.2"
deprecated-obj "2.0.0"
- execa "5.0.0"
- find-up "5.0.0"
+ execa "5.1.1"
form-data "4.0.0"
- git-url-parse "11.4.4"
- globby "11.0.3"
+ git-url-parse "11.6.0"
+ globby "11.0.4"
got "11.8.2"
import-cwd "3.0.0"
- inquirer "8.1.0"
+ inquirer "8.1.5"
is-ci "3.0.0"
lodash "4.17.21"
- mime-types "2.1.30"
- ora "5.4.0"
- os-name "4.0.0"
+ mime-types "2.1.32"
+ new-github-release-url "1.0.0"
+ open "7.4.2"
+ ora "5.4.1"
+ os-name "4.0.1"
parse-json "5.2.0"
semver "7.3.5"
shelljs "0.8.4"
@@ -12292,7 +10687,7 @@ release-it@^14.8.0:
url-join "4.0.1"
uuid "8.3.2"
yaml "1.10.2"
- yargs-parser "20.2.7"
+ yargs-parser "20.2.9"
remark-parse@^9.0.0:
version "9.0.0"
@@ -12339,17 +10734,6 @@ remove-trailing-separator@^1.0.1, remove-trailing-separator@^1.1.0:
resolved "https://registry.npm.taobao.org/remove-trailing-separator/download/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef"
integrity sha1-wkvOKig62tW8P1jg1IJJuSN52O8=
-renderkid@^2.0.1:
- version "2.0.3"
- resolved "https://registry.npm.taobao.org/renderkid/download/renderkid-2.0.3.tgz#380179c2ff5ae1365c522bf2fcfcff01c5b74149"
- integrity sha1-OAF5wv9a4TZcUivy/Pz/AcW3QUk=
- dependencies:
- css-select "^1.1.0"
- dom-converter "^0.2"
- htmlparser2 "^3.3.0"
- strip-ansi "^3.0.0"
- utila "^0.4.0"
-
repeat-element@^1.1.2:
version "1.1.3"
resolved "https://registry.npm.taobao.org/repeat-element/download/repeat-element-1.1.3.tgz#782e0d825c0c5a3bb39731f84efee6b742e6b1ce"
@@ -12391,22 +10775,6 @@ replace-homedir@^1.0.0:
is-absolute "^1.0.0"
remove-trailing-separator "^1.1.0"
-request-promise-core@1.1.4:
- version "1.1.4"
- resolved "https://registry.npm.taobao.org/request-promise-core/download/request-promise-core-1.1.4.tgz#3eedd4223208d419867b78ce815167d10593a22f"
- integrity sha1-Pu3UIjII1BmGe3jOgVFn0QWToi8=
- dependencies:
- lodash "^4.17.19"
-
-request-promise-native@^1.0.9:
- version "1.0.9"
- resolved "https://registry.npm.taobao.org/request-promise-native/download/request-promise-native-1.0.9.tgz#e407120526a5efdc9a39b28a5679bf47b9d9dc28"
- integrity sha1-5AcSBSal79yaObKKVnm/R7nZ3Cg=
- dependencies:
- request-promise-core "1.1.4"
- stealthy-require "^1.1.1"
- tough-cookie "^2.3.3"
-
request@^2.81.2, request@^2.88.2:
version "2.88.2"
resolved "https://registry.npm.taobao.org/request/download/request-2.88.2.tgz#d73c918731cb5a87da047e207234146f664d12b3"
@@ -12453,23 +10821,11 @@ require-main-filename@^2.0.0:
resolved "https://registry.npm.taobao.org/require-main-filename/download/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b"
integrity sha1-0LMp7MfMD2Fkn2IhW+aa9UqomJs=
-requires-port@^1.0.0:
- version "1.0.0"
- resolved "https://registry.npm.taobao.org/requires-port/download/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff"
- integrity sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=
-
resolve-alpn@^1.0.0:
version "1.0.0"
resolved "https://registry.npm.taobao.org/resolve-alpn/download/resolve-alpn-1.0.0.tgz#745ad60b3d6aff4b4a48e01b8c0bdc70959e0e8c"
integrity sha1-dFrWCz1q/0tKSOAbjAvccJWeDow=
-resolve-cwd@^2.0.0:
- version "2.0.0"
- resolved "https://registry.npm.taobao.org/resolve-cwd/download/resolve-cwd-2.0.0.tgz#00a9f7387556e27038eae232caa372a6a59b665a"
- integrity sha1-AKn3OHVW4nA46uIyyqNypqWbZlo=
- dependencies:
- resolve-from "^3.0.0"
-
resolve-cwd@^3.0.0:
version "3.0.0"
resolved "https://registry.npm.taobao.org/resolve-cwd/download/resolve-cwd-3.0.0.tgz#0f0075f1bb2544766cf73ba6a6e2adfebcb13f2d"
@@ -12485,11 +10841,6 @@ resolve-dir@^1.0.0, resolve-dir@^1.0.1:
expand-tilde "^2.0.0"
global-modules "^1.0.0"
-resolve-from@^3.0.0:
- version "3.0.0"
- resolved "https://registry.npm.taobao.org/resolve-from/download/resolve-from-3.0.0.tgz#b22c7af7d9d6881bc8b6e653335eebcb0a188748"
- integrity sha1-six699nWiBvItuZTM17rywoYh0g=
-
resolve-from@^4.0.0:
version "4.0.0"
resolved "https://registry.npm.taobao.org/resolve-from/download/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6"
@@ -12512,7 +10863,7 @@ resolve-url@^0.2.1:
resolved "https://registry.npm.taobao.org/resolve-url/download/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a"
integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=
-resolve@^1.1.6, resolve@^1.1.7, resolve@^1.10.0, resolve@^1.14.2, resolve@^1.18.1, resolve@^1.20.0, resolve@^1.3.2, resolve@^1.4.0, resolve@^1.8.1:
+resolve@^1.1.6, resolve@^1.1.7, resolve@^1.10.0, resolve@^1.14.2, resolve@^1.20.0, resolve@^1.3.2, resolve@^1.4.0, resolve@^1.8.1:
version "1.20.0"
resolved "https://registry.npm.taobao.org/resolve/download/resolve-1.20.0.tgz#629a013fb3f70755d6f0b7935cc1c2c5378b1975"
integrity sha1-YpoBP7P3B1XW8LeTXMHCxTeLGXU=
@@ -12547,33 +10898,16 @@ ret@~0.1.10:
resolved "https://registry.npm.taobao.org/ret/download/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc"
integrity sha1-uKSCXVvbH8P29Twrwz+BOIaBx7w=
-retry@0.12.0, retry@^0.12.0:
- version "0.12.0"
- resolved "https://registry.npm.taobao.org/retry/download/retry-0.12.0.tgz#1b42a6266a21f07421d1b0b54b7dc167b01c013b"
- integrity sha1-G0KmJmoh8HQh0bC1S33BZ7AcATs=
+retry@0.13.1:
+ version "0.13.1"
+ resolved "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz#185b1587acf67919d63b357349e03537b2484658"
+ integrity sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==
reusify@^1.0.4:
version "1.0.4"
resolved "https://registry.npm.taobao.org/reusify/download/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76"
integrity sha1-kNo4Kx4SbvwCFG6QhFqI2xKSXXY=
-rgb-regex@^1.0.1:
- version "1.0.1"
- resolved "https://registry.npm.taobao.org/rgb-regex/download/rgb-regex-1.0.1.tgz#c0e0d6882df0e23be254a475e8edd41915feaeb1"
- integrity sha1-wODWiC3w4jviVKR16O3UGRX+rrE=
-
-rgba-regex@^1.0.0:
- version "1.0.0"
- resolved "https://registry.npm.taobao.org/rgba-regex/download/rgba-regex-1.0.0.tgz#43374e2e2ca0968b0ef1523460b7d730ff22eeb3"
- integrity sha1-QzdOLiyglosO8VI0YLfXMP8i7rM=
-
-rimraf@^2.6.3:
- version "2.7.1"
- resolved "https://registry.npm.taobao.org/rimraf/download/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec"
- integrity sha1-NXl/E6f9rcVmFCwp1PB8ytSD4+w=
- dependencies:
- glob "^7.1.3"
-
rimraf@^3.0.0, rimraf@^3.0.2:
version "3.0.2"
resolved "https://registry.npm.taobao.org/rimraf/download/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a"
@@ -12581,10 +10915,12 @@ rimraf@^3.0.0, rimraf@^3.0.2:
dependencies:
glob "^7.1.3"
-rsvp@^4.8.4:
- version "4.8.5"
- resolved "https://registry.npm.taobao.org/rsvp/download/rsvp-4.8.5.tgz#c8f155311d167f68f21e168df71ec5b083113734"
- integrity sha1-yPFVMR0Wf2jyHhaN9x7FsIMRNzQ=
+rollup@^2.38.5:
+ version "2.57.0"
+ resolved "https://registry.npmjs.org/rollup/-/rollup-2.57.0.tgz#c1694475eb22e1022477c0f4635fd0ac80713173"
+ integrity sha512-bKQIh1rWKofRee6mv8SrF2HdP6pea5QkwBZSMImJysFj39gQuiV8MEPBjXOCpzk3wSYp63M2v2wkWBmFC8O/rg==
+ optionalDependencies:
+ fsevents "~2.3.2"
run-async@^2.4.0:
version "2.4.1"
@@ -12596,23 +10932,30 @@ run-parallel@^1.1.9:
resolved "https://registry.npm.taobao.org/run-parallel/download/run-parallel-1.1.9.tgz#c9dd3a7cf9f4b2c4b6244e173a6ed866e61dd679"
integrity sha1-yd06fPn0ssS2JE4XOm7YZuYd1nk=
-rxjs@^6.6.6, rxjs@^6.6.7:
+rxjs@^6.6.7:
version "6.6.7"
resolved "https://registry.npm.taobao.org/rxjs/download/rxjs-6.6.7.tgz#90ac018acabf491bf65044235d5863c4dab804c9"
integrity sha1-kKwBisq/SRv2UEQjXVhjxNq4BMk=
dependencies:
tslib "^1.9.0"
-safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1:
- version "5.1.2"
- resolved "https://registry.npm.taobao.org/safe-buffer/download/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d"
- integrity sha1-mR7GnSluAxN0fVm9/St0XDX4go0=
+rxjs@^7.2.0:
+ version "7.3.0"
+ resolved "https://registry.npmjs.org/rxjs/-/rxjs-7.3.0.tgz#39fe4f3461dc1e50be1475b2b85a0a88c1e938c6"
+ integrity sha512-p2yuGIg9S1epc3vrjKf6iVb3RCaAYjYskkO+jHIaV0IjOPlJop4UnodOoFb2xeNwlguqLYvGw1b1McillYb5Gw==
+ dependencies:
+ tslib "~2.1.0"
-safe-buffer@>=5.1.0, safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.2, safe-buffer@~5.2.0:
+safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.2, safe-buffer@~5.2.0:
version "5.2.1"
resolved "https://registry.npm.taobao.org/safe-buffer/download/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6"
integrity sha1-Hq+fqb2x/dTsdfWPnNtOa3gn7sY=
+safe-buffer@~5.1.0, safe-buffer@~5.1.1:
+ version "5.1.2"
+ resolved "https://registry.npm.taobao.org/safe-buffer/download/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d"
+ integrity sha1-mR7GnSluAxN0fVm9/St0XDX4go0=
+
safe-regex@^1.1.0:
version "1.1.0"
resolved "https://registry.npm.taobao.org/safe-regex/download/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e"
@@ -12625,40 +10968,14 @@ safe-regex@^1.1.0:
resolved "https://registry.npm.taobao.org/safer-buffer/download/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a"
integrity sha1-RPoWGwGHuVSd2Eu5GAL5vYOFzWo=
-sane@^4.0.3:
- version "4.1.0"
- resolved "https://registry.npm.taobao.org/sane/download/sane-4.1.0.tgz#ed881fd922733a6c461bc189dc2b6c006f3ffded"
- integrity sha1-7Ygf2SJzOmxGG8GJ3CtsAG8//e0=
- dependencies:
- "@cnakazawa/watch" "^1.0.3"
- anymatch "^2.0.0"
- capture-exit "^2.0.0"
- exec-sh "^0.3.2"
- execa "^1.0.0"
- fb-watchman "^2.0.0"
- micromatch "^3.1.4"
- minimist "^1.1.1"
- walker "~1.0.5"
-
-sass-loader@^10.1.1:
- version "10.1.1"
- resolved "https://registry.npm.taobao.org/sass-loader/download/sass-loader-10.1.1.tgz#4ddd5a3d7638e7949065dd6e9c7c04037f7e663d"
- integrity sha1-Td1aPXY455SQZd1unHwEA39+Zj0=
- dependencies:
- klona "^2.0.4"
- loader-utils "^2.0.0"
- neo-async "^2.6.2"
- schema-utils "^3.0.0"
- semver "^7.3.2"
-
-sass@^1.34.1:
- version "1.34.1"
- resolved "https://registry.yarnpkg.com/sass/-/sass-1.34.1.tgz#30f45c606c483d47b634f1e7371e13ff773c96ef"
- integrity sha512-scLA7EIZM+MmYlej6sdVr0HRbZX5caX5ofDT9asWnUJj21oqgsC+1LuNfm0eg+vM0fCTZHhwImTiCU0sx9h9CQ==
+sass@^1.35.2:
+ version "1.42.1"
+ resolved "https://registry.npmjs.org/sass/-/sass-1.42.1.tgz#5ab17bebc1cb1881ad2e0c9a932c66ad64e441e2"
+ integrity sha512-/zvGoN8B7dspKc5mC6HlaygyCBRvnyzzgD5khiaCfglWztY99cYoiTUksVx11NlnemrcfH5CEaCpsUKoW0cQqg==
dependencies:
chokidar ">=3.0.0 <4.0.0"
-sax@>=0.6.0, sax@^1.2.4, sax@~1.2.4:
+sax@>=0.6.0, sax@^1.2.4:
version "1.2.4"
resolved "https://registry.npm.taobao.org/sax/download/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9"
integrity sha1-KBYjTiN4vdxOU1T6tcqold9xANk=
@@ -12670,53 +10987,13 @@ saxes@^5.0.1:
dependencies:
xmlchars "^2.2.0"
-schema-utils@2.7.0:
- version "2.7.0"
- resolved "https://registry.npm.taobao.org/schema-utils/download/schema-utils-2.7.0.tgz?cache=0&sync_timestamp=1601922425223&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fschema-utils%2Fdownload%2Fschema-utils-2.7.0.tgz#17151f76d8eae67fbbf77960c33c676ad9f4efc7"
- integrity sha1-FxUfdtjq5n+793lgwzxnatn078c=
- dependencies:
- "@types/json-schema" "^7.0.4"
- ajv "^6.12.2"
- ajv-keywords "^3.4.1"
-
-schema-utils@^1.0.0:
+section-matter@^1.0.0:
version "1.0.0"
- resolved "https://registry.npm.taobao.org/schema-utils/download/schema-utils-1.0.0.tgz?cache=0&sync_timestamp=1601922425223&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fschema-utils%2Fdownload%2Fschema-utils-1.0.0.tgz#0b79a93204d7b600d4b2850d1f66c2a34951c770"
- integrity sha1-C3mpMgTXtgDUsoUNH2bCo0lRx3A=
+ resolved "https://registry.npmjs.org/section-matter/-/section-matter-1.0.0.tgz#e9041953506780ec01d59f292a19c7b850b84167"
+ integrity sha512-vfD3pmTzGpufjScBh50YHKzEu2lxBWhVEHsNGoEXmCmn2hKGfeNLYMzCJpe8cD7gqX7TJluOVpBkAequ6dgMmA==
dependencies:
- ajv "^6.1.0"
- ajv-errors "^1.0.0"
- ajv-keywords "^3.1.0"
-
-schema-utils@^2.6.5, schema-utils@^2.7.1:
- version "2.7.1"
- resolved "https://registry.npm.taobao.org/schema-utils/download/schema-utils-2.7.1.tgz?cache=0&sync_timestamp=1601922425223&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fschema-utils%2Fdownload%2Fschema-utils-2.7.1.tgz#1ca4f32d1b24c590c203b8e7a50bf0ea4cd394d7"
- integrity sha1-HKTzLRskxZDCA7jnpQvw6kzTlNc=
- dependencies:
- "@types/json-schema" "^7.0.5"
- ajv "^6.12.4"
- ajv-keywords "^3.5.2"
-
-schema-utils@^3.0.0:
- version "3.0.0"
- resolved "https://registry.npm.taobao.org/schema-utils/download/schema-utils-3.0.0.tgz?cache=0&sync_timestamp=1601922425223&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fschema-utils%2Fdownload%2Fschema-utils-3.0.0.tgz#67502f6aa2b66a2d4032b4279a2944978a0913ef"
- integrity sha1-Z1AvaqK2ai1AMrQnmilEl4oJE+8=
- dependencies:
- "@types/json-schema" "^7.0.6"
- ajv "^6.12.5"
- ajv-keywords "^3.5.2"
-
-select-hose@^2.0.0:
- version "2.0.0"
- resolved "https://registry.npm.taobao.org/select-hose/download/select-hose-2.0.0.tgz#625d8658f865af43ec962bfc376a37359a4994ca"
- integrity sha1-Yl2GWPhlr0Psliv8N2o3NZpJlMo=
-
-selfsigned@^1.10.8:
- version "1.10.8"
- resolved "https://registry.npm.taobao.org/selfsigned/download/selfsigned-1.10.8.tgz?cache=0&sync_timestamp=1600187989135&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fselfsigned%2Fdownload%2Fselfsigned-1.10.8.tgz#0d17208b7d12c33f8eac85c41835f27fc3d81a30"
- integrity sha1-DRcgi30Swz+OrIXEGDXyf8PYGjA=
- dependencies:
- node-forge "^0.10.0"
+ extend-shallow "^2.0.1"
+ kind-of "^6.0.0"
semver-compare@^1.0.0:
version "1.0.0"
@@ -12759,55 +11036,6 @@ semver@^6.0.0, semver@^6.1.1, semver@^6.1.2, semver@^6.2.0, semver@^6.3.0:
resolved "https://registry.npm.taobao.org/semver/download/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d"
integrity sha1-7gpkyK9ejO6mdoexM3YeG+y9HT0=
-send@0.17.1:
- version "0.17.1"
- resolved "https://registry.npm.taobao.org/send/download/send-0.17.1.tgz#c1d8b059f7900f7466dd4938bdc44e11ddb376c8"
- integrity sha1-wdiwWfeQD3Rm3Uk4vcROEd2zdsg=
- dependencies:
- debug "2.6.9"
- depd "~1.1.2"
- destroy "~1.0.4"
- encodeurl "~1.0.2"
- escape-html "~1.0.3"
- etag "~1.8.1"
- fresh "0.5.2"
- http-errors "~1.7.2"
- mime "1.6.0"
- ms "2.1.1"
- on-finished "~2.3.0"
- range-parser "~1.2.1"
- statuses "~1.5.0"
-
-serialize-javascript@^5.0.1:
- version "5.0.1"
- resolved "https://registry.npm.taobao.org/serialize-javascript/download/serialize-javascript-5.0.1.tgz?cache=0&sync_timestamp=1599741180858&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fserialize-javascript%2Fdownload%2Fserialize-javascript-5.0.1.tgz#7886ec848049a462467a97d3d918ebb2aaf934f4"
- integrity sha1-eIbshIBJpGJGepfT2Rjrsqr5NPQ=
- dependencies:
- randombytes "^2.1.0"
-
-serve-index@^1.9.1:
- version "1.9.1"
- resolved "https://registry.npm.taobao.org/serve-index/download/serve-index-1.9.1.tgz#d3768d69b1e7d82e5ce050fff5b453bea12a9239"
- integrity sha1-03aNabHn2C5c4FD/9bRTvqEqkjk=
- dependencies:
- accepts "~1.3.4"
- batch "0.6.1"
- debug "2.6.9"
- escape-html "~1.0.3"
- http-errors "~1.6.2"
- mime-types "~2.1.17"
- parseurl "~1.3.2"
-
-serve-static@1.14.1:
- version "1.14.1"
- resolved "https://registry.npm.taobao.org/serve-static/download/serve-static-1.14.1.tgz#666e636dc4f010f7ef29970a88a674320898b2f9"
- integrity sha1-Zm5jbcTwEPfvKZcKiKZ0MgiYsvk=
- dependencies:
- encodeurl "~1.0.2"
- escape-html "~1.0.3"
- parseurl "~1.3.3"
- send "0.17.1"
-
set-blocking@^2.0.0:
version "2.0.0"
resolved "https://registry.npm.taobao.org/set-blocking/download/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7"
@@ -12828,30 +11056,6 @@ set-value@^2.0.0, set-value@^2.0.1:
is-plain-object "^2.0.3"
split-string "^3.0.1"
-setprototypeof@1.1.0:
- version "1.1.0"
- resolved "https://registry.npm.taobao.org/setprototypeof/download/setprototypeof-1.1.0.tgz#d0bd85536887b6fe7c0d818cb962d9d91c54e656"
- integrity sha1-0L2FU2iHtv58DYGMuWLZ2RxU5lY=
-
-setprototypeof@1.1.1:
- version "1.1.1"
- resolved "https://registry.npm.taobao.org/setprototypeof/download/setprototypeof-1.1.1.tgz#7e95acb24aa92f5885e0abef5ba131330d4ae683"
- integrity sha1-fpWsskqpL1iF4KvvW6ExMw1K5oM=
-
-shallow-clone@^3.0.0:
- version "3.0.1"
- resolved "https://registry.npm.taobao.org/shallow-clone/download/shallow-clone-3.0.1.tgz#8f2981ad92531f55035b01fb230769a40e02efa3"
- integrity sha1-jymBrZJTH1UDWwH7IwdppA4C76M=
- dependencies:
- kind-of "^6.0.2"
-
-shebang-command@^1.2.0:
- version "1.2.0"
- resolved "https://registry.npm.taobao.org/shebang-command/download/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea"
- integrity sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=
- dependencies:
- shebang-regex "^1.0.0"
-
shebang-command@^2.0.0:
version "2.0.0"
resolved "https://registry.npm.taobao.org/shebang-command/download/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea"
@@ -12859,11 +11063,6 @@ shebang-command@^2.0.0:
dependencies:
shebang-regex "^3.0.0"
-shebang-regex@^1.0.0:
- version "1.0.0"
- resolved "https://registry.npm.taobao.org/shebang-regex/download/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3"
- integrity sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=
-
shebang-regex@^3.0.0:
version "3.0.0"
resolved "https://registry.npm.taobao.org/shebang-regex/download/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172"
@@ -12878,11 +11077,6 @@ shelljs@0.8.4, shelljs@^0.8.3:
interpret "^1.0.0"
rechoir "^0.6.2"
-shellwords@^0.1.1:
- version "0.1.1"
- resolved "https://registry.npm.taobao.org/shellwords/download/shellwords-0.1.1.tgz#d6b9181c1a48d397324c84871efbcfc73fc0654b"
- integrity sha1-1rkYHBpI05cyTISHHvvPxz/AZUs=
-
side-channel@^1.0.4:
version "1.0.4"
resolved "https://registry.npm.taobao.org/side-channel/download/side-channel-1.0.4.tgz#efce5c8fdc104ee751b25c58d4290011fa5ea2cf"
@@ -12897,13 +11091,6 @@ signal-exit@^3.0.0, signal-exit@^3.0.2, signal-exit@^3.0.3:
resolved "https://registry.npm.taobao.org/signal-exit/download/signal-exit-3.0.3.tgz?cache=0&sync_timestamp=1593529702917&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsignal-exit%2Fdownload%2Fsignal-exit-3.0.3.tgz#a1410c2edd8f077b08b4e253c8eacfcaf057461c"
integrity sha1-oUEMLt2PB3sItOJTyOrPyvBXRhw=
-simple-swizzle@^0.2.2:
- version "0.2.2"
- resolved "https://registry.npm.taobao.org/simple-swizzle/download/simple-swizzle-0.2.2.tgz#a4da6b635ffcccca33f70d17cb92592de95e557a"
- integrity sha1-pNprY1/8zMoz9w0Xy5JZLeleVXo=
- dependencies:
- is-arrayish "^0.3.1"
-
sisteransi@^1.0.5:
version "1.0.5"
resolved "https://registry.npm.taobao.org/sisteransi/download/sisteransi-1.0.5.tgz#134d681297756437cc05ca01370d3a7a571075ed"
@@ -12972,38 +11159,10 @@ snapdragon@^0.8.1:
source-map-resolve "^0.5.0"
use "^3.1.0"
-sockjs-client@^1.5.0:
- version "1.5.1"
- resolved "https://registry.npm.taobao.org/sockjs-client/download/sockjs-client-1.5.1.tgz#256908f6d5adfb94dabbdbd02c66362cca0f9ea6"
- integrity sha1-JWkI9tWt+5Tau9vQLGY2LMoPnqY=
- dependencies:
- debug "^3.2.6"
- eventsource "^1.0.7"
- faye-websocket "^0.11.3"
- inherits "^2.0.4"
- json3 "^3.3.3"
- url-parse "^1.5.1"
-
-sockjs@^0.3.21:
- version "0.3.21"
- resolved "https://registry.npm.taobao.org/sockjs/download/sockjs-0.3.21.tgz#b34ffb98e796930b60a0cfa11904d6a339a7d417"
- integrity sha1-s0/7mOeWkwtgoM+hGQTWozmn1Bc=
- dependencies:
- faye-websocket "^0.11.3"
- uuid "^3.4.0"
- websocket-driver "^0.7.4"
-
-sort-keys@^1.0.0:
- version "1.1.2"
- resolved "https://registry.npm.taobao.org/sort-keys/download/sort-keys-1.1.2.tgz#441b6d4d346798f1b4e49e8920adfba0e543f9ad"
- integrity sha1-RBttTTRnmPG05J6JIK37oOVD+a0=
- dependencies:
- is-plain-obj "^1.0.0"
-
-source-list-map@^2.0.1:
- version "2.0.1"
- resolved "https://registry.npm.taobao.org/source-list-map/download/source-list-map-2.0.1.tgz#3993bd873bfc48479cca9ea3a547835c7c154b34"
- integrity sha1-OZO9hzv8SEecyp6jpUeDXHwVSzQ=
+source-map-js@^0.6.2:
+ version "0.6.2"
+ resolved "https://registry.npmjs.org/source-map-js/-/source-map-js-0.6.2.tgz#0bb5de631b41cfbda6cfba8bd05a80efdfd2385e"
+ integrity sha512-/3GptzWzu0+0MBQFrDKzw/DvvMTUORvgY6k6jd/VS6iCR4RDTKWH6v6WPwQoUO8667uQEf9Oe38DxAYWY5F/Ug==
source-map-resolve@^0.5.0, source-map-resolve@^0.5.2:
version "0.5.3"
@@ -13023,7 +11182,7 @@ source-map-support@^0.4.15:
dependencies:
source-map "^0.5.6"
-source-map-support@^0.5.6, source-map-support@~0.5.12, source-map-support@~0.5.19:
+source-map-support@^0.5.6, source-map-support@~0.5.12:
version "0.5.19"
resolved "https://registry.npm.taobao.org/source-map-support/download/source-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61"
integrity sha1-qYti+G3K9PZzmWSMCFKRq56P7WE=
@@ -13036,6 +11195,11 @@ source-map-url@^0.4.0:
resolved "https://registry.npm.taobao.org/source-map-url/download/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3"
integrity sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=
+source-map@0.5.6:
+ version "0.5.6"
+ resolved "https://registry.npmjs.org/source-map/-/source-map-0.5.6.tgz#75ce38f52bf0733c5a7f0c118d81334a2bb5f412"
+ integrity sha1-dc449SvwczxafwwRjYEzSiu19BI=
+
source-map@0.6.1, source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.0, source-map@~0.6.1:
version "0.6.1"
resolved "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
@@ -13046,7 +11210,7 @@ source-map@^0.5.0, source-map@^0.5.1, source-map@^0.5.6, source-map@^0.5.7, sour
resolved "https://registry.npm.taobao.org/source-map/download/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc"
integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=
-source-map@^0.7.3, source-map@~0.7.2:
+source-map@^0.7.3:
version "0.7.3"
resolved "https://registry.npm.taobao.org/source-map/download/source-map-0.7.3.tgz#5302f8169031735226544092e64981f751750383"
integrity sha1-UwL4FpAxc1ImVECS5kmB91F1A4M=
@@ -13087,29 +11251,6 @@ spdx-license-ids@^3.0.0:
resolved "https://registry.npm.taobao.org/spdx-license-ids/download/spdx-license-ids-3.0.6.tgz?cache=0&sync_timestamp=1600284742389&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fspdx-license-ids%2Fdownload%2Fspdx-license-ids-3.0.6.tgz#c80757383c28abf7296744998cbc106ae8b854ce"
integrity sha1-yAdXODwoq/cpZ0SZjLwQaui4VM4=
-spdy-transport@^3.0.0:
- version "3.0.0"
- resolved "https://registry.npm.taobao.org/spdy-transport/download/spdy-transport-3.0.0.tgz#00d4863a6400ad75df93361a1608605e5dcdcf31"
- integrity sha1-ANSGOmQArXXfkzYaFghgXl3NzzE=
- dependencies:
- debug "^4.1.0"
- detect-node "^2.0.4"
- hpack.js "^2.1.6"
- obuf "^1.1.2"
- readable-stream "^3.0.6"
- wbuf "^1.7.3"
-
-spdy@^4.0.2:
- version "4.0.2"
- resolved "https://registry.npm.taobao.org/spdy/download/spdy-4.0.2.tgz#b74f466203a3eda452c02492b91fb9e84a27677b"
- integrity sha1-t09GYgOj7aRSwCSSuR+56EonZ3s=
- dependencies:
- debug "^4.1.0"
- handle-thing "^2.0.0"
- http-deceiver "^1.2.7"
- select-hose "^2.0.0"
- spdy-transport "^3.0.0"
-
specificity@^0.4.1:
version "0.4.1"
resolved "https://registry.npm.taobao.org/specificity/download/specificity-0.4.1.tgz#aab5e645012db08ba182e151165738d00887b019"
@@ -13171,10 +11312,10 @@ stack-trace@0.0.10:
resolved "https://registry.npm.taobao.org/stack-trace/download/stack-trace-0.0.10.tgz#547c70b347e8d32b4e108ea1a2a159e5fdde19c0"
integrity sha1-VHxws0fo0ytOEI6hoqFZ5f3eGcA=
-stack-utils@^2.0.2:
- version "2.0.3"
- resolved "https://registry.npm.taobao.org/stack-utils/download/stack-utils-2.0.3.tgz#cd5f030126ff116b78ccb3c027fe302713b61277"
- integrity sha1-zV8DASb/EWt4zLPAJ/4wJxO2Enc=
+stack-utils@^2.0.3:
+ version "2.0.5"
+ resolved "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.5.tgz#d25265fca995154659dbbfba3b49254778d2fdd5"
+ integrity sha512-xrQcmYhOsn/1kX+Vraq+7j4oE2j/6BFscZ0etmYg81xuM8Gq0022Pxb8+IqgOFUIaxHs0KaSb7T1+OegiNrNFA==
dependencies:
escape-string-regexp "^2.0.0"
@@ -13186,23 +11327,6 @@ static-extend@^0.1.1:
define-property "^0.2.5"
object-copy "^0.1.0"
-"statuses@>= 1.4.0 < 2", "statuses@>= 1.5.0 < 2", statuses@~1.5.0:
- version "1.5.0"
- resolved "https://registry.npm.taobao.org/statuses/download/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c"
- integrity sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=
-
-std-env@^2.2.1:
- version "2.3.0"
- resolved "https://registry.npm.taobao.org/std-env/download/std-env-2.3.0.tgz#66d4a4a4d5224242ed8e43f5d65cfa9095216eee"
- integrity sha1-ZtSkpNUiQkLtjkP11lz6kJUhbu4=
- dependencies:
- ci-info "^3.0.0"
-
-stealthy-require@^1.1.1:
- version "1.1.1"
- resolved "https://registry.npm.taobao.org/stealthy-require/download/stealthy-require-1.1.1.tgz#35b09875b4ff49f26a777e509b3090a3226bf24b"
- integrity sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks=
-
stream-exhaust@^1.0.1:
version "1.0.2"
resolved "https://registry.npm.taobao.org/stream-exhaust/download/stream-exhaust-1.0.2.tgz#acdac8da59ef2bc1e17a2c0ccf6c320d120e555d"
@@ -13220,11 +11344,6 @@ streamqueue@0.0.6:
dependencies:
readable-stream "^1.0.26-2"
-strict-uri-encode@^1.0.0:
- version "1.1.0"
- resolved "https://registry.npm.taobao.org/strict-uri-encode/download/strict-uri-encode-1.1.0.tgz#279b225df1d582b1f54e65addd4352e18faa0713"
- integrity sha1-J5siXfHVgrH1TmWt3UNS4Y+qBxM=
-
strict-uri-encode@^2.0.0:
version "2.0.0"
resolved "https://registry.npm.taobao.org/strict-uri-encode/download/strict-uri-encode-2.0.0.tgz#b9c7330c7042862f6b142dc274bbcc5866ce3546"
@@ -13235,11 +11354,6 @@ string-argv@0.3.1:
resolved "https://registry.npm.taobao.org/string-argv/download/string-argv-0.3.1.tgz#95e2fbec0427ae19184935f816d74aaa4c5c19da"
integrity sha1-leL77AQnrhkYSTX4FtdKqkxcGdo=
-string-hash@^1.1.1:
- version "1.1.3"
- resolved "https://registry.npm.taobao.org/string-hash/download/string-hash-1.1.3.tgz#e8aafc0ac1855b4666929ed7dd1275df5d6c811b"
- integrity sha1-6Kr8CsGFW0Zmkp7X3RJ1311sgRs=
-
string-length@^4.0.1:
version "4.0.2"
resolved "https://registry.npm.taobao.org/string-length/download/string-length-4.0.2.tgz#a8a8dc7bd5c1a82b9b3c8b87e125f66871b6e57a"
@@ -13257,7 +11371,7 @@ string-width@^1.0.1, string-width@^1.0.2:
is-fullwidth-code-point "^1.0.0"
strip-ansi "^3.0.0"
-string-width@^3.0.0, string-width@^3.1.0:
+string-width@^3.0.0:
version "3.1.0"
resolved "https://registry.npm.taobao.org/string-width/download/string-width-3.1.0.tgz#22767be21b62af1081574306f69ac51b62203961"
integrity sha1-InZ74htirxCBV0MG9prFG2IgOWE=
@@ -13275,14 +11389,6 @@ string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2
is-fullwidth-code-point "^3.0.0"
strip-ansi "^6.0.0"
-string.prototype.trimend@^1.0.1:
- version "1.0.1"
- resolved "https://registry.npm.taobao.org/string.prototype.trimend/download/string.prototype.trimend-1.0.1.tgz#85812a6b847ac002270f5808146064c995fb6913"
- integrity sha1-hYEqa4R6wAInD1gIFGBkyZX7aRM=
- dependencies:
- define-properties "^1.1.3"
- es-abstract "^1.17.5"
-
string.prototype.trimend@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.4.tgz#e75ae90c2942c63504686c18b287b4a0b1a45f80"
@@ -13291,14 +11397,6 @@ string.prototype.trimend@^1.0.4:
call-bind "^1.0.2"
define-properties "^1.1.3"
-string.prototype.trimstart@^1.0.1:
- version "1.0.1"
- resolved "https://registry.npm.taobao.org/string.prototype.trimstart/download/string.prototype.trimstart-1.0.1.tgz#14af6d9f34b053f7cfc89b72f8f2ee14b9039a54"
- integrity sha1-FK9tnzSwU/fPyJty+PLuFLkDmlQ=
- dependencies:
- define-properties "^1.1.3"
- es-abstract "^1.17.5"
-
string.prototype.trimstart@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.4.tgz#b36399af4ab2999b4c9c648bd7a3fb2bb26feeed"
@@ -13342,7 +11440,7 @@ strip-ansi@^3.0.0, strip-ansi@^3.0.1:
dependencies:
ansi-regex "^2.0.0"
-strip-ansi@^5.0.0, strip-ansi@^5.1.0, strip-ansi@^5.2.0:
+strip-ansi@^5.1.0:
version "5.2.0"
resolved "https://registry.npm.taobao.org/strip-ansi/download/strip-ansi-5.2.0.tgz#8c9a536feb6afc962bdfa5b104a5091c1ad9c0ae"
integrity sha1-jJpTb+tq/JYr36WxBKUJHBrZwK4=
@@ -13356,6 +11454,11 @@ strip-ansi@^6.0.0:
dependencies:
ansi-regex "^5.0.0"
+strip-bom-string@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.npmjs.org/strip-bom-string/-/strip-bom-string-1.0.0.tgz#e5211e9224369fbb81d633a2f00044dc8cedad92"
+ integrity sha1-5SEekiQ2n7uB1jOi8ABE3IztrZI=
+
strip-bom@^2.0.0:
version "2.0.0"
resolved "https://registry.npm.taobao.org/strip-bom/download/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e"
@@ -13373,11 +11476,6 @@ strip-bom@^4.0.0:
resolved "https://registry.npm.taobao.org/strip-bom/download/strip-bom-4.0.0.tgz#9c3505c1db45bcedca3d9cf7a16f5c5aa3901878"
integrity sha1-nDUFwdtFvO3KPZz3oW9cWqOQGHg=
-strip-eof@^1.0.0:
- version "1.0.0"
- resolved "https://registry.npm.taobao.org/strip-eof/download/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf"
- integrity sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=
-
strip-final-newline@^2.0.0:
version "2.0.0"
resolved "https://registry.npm.taobao.org/strip-final-newline/download/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad"
@@ -13407,39 +11505,25 @@ strip-json-comments@^3.1.0, strip-json-comments@^3.1.1:
resolved "https://registry.npm.taobao.org/strip-json-comments/download/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006"
integrity sha1-MfEoGzgyYwQ0gxwxDAHMzajL4AY=
-strip-outer@^1.0.0:
+strip-outer@^1.0.1:
version "1.0.1"
- resolved "https://registry.npm.taobao.org/strip-outer/download/strip-outer-1.0.1.tgz#b2fd2abf6604b9d1e6013057195df836b8a9d631"
- integrity sha1-sv0qv2YEudHmATBXGV34Nrip1jE=
+ resolved "https://registry.npmjs.org/strip-outer/-/strip-outer-1.0.1.tgz#b2fd2abf6604b9d1e6013057195df836b8a9d631"
+ integrity sha512-k55yxKHwaXnpYGsOzg4Vl8+tDrWylxDEpknGjhTiZB8dFRU5rTo9CAzeycivxV3s+zlTKwrs6WxMxR95n26kwg==
dependencies:
escape-string-regexp "^1.0.2"
-strip-url-auth@^1.0.0:
- version "1.0.1"
- resolved "https://registry.npm.taobao.org/strip-url-auth/download/strip-url-auth-1.0.1.tgz#22b0fa3a41385b33be3f331551bbb837fa0cd7ae"
- integrity sha1-IrD6OkE4WzO+PzMVUbu4N/oM164=
-
-style-loader@^2.0.0:
- version "2.0.0"
- resolved "https://registry.npm.taobao.org/style-loader/download/style-loader-2.0.0.tgz#9669602fd4690740eaaec137799a03addbbc393c"
- integrity sha1-lmlgL9RpB0DqrsE3eZoDrdu8OTw=
- dependencies:
- loader-utils "^2.0.0"
- schema-utils "^3.0.0"
-
style-search@^0.1.0:
version "0.1.0"
resolved "https://registry.npm.taobao.org/style-search/download/style-search-0.1.0.tgz#7958c793e47e32e07d2b5cafe5c0bf8e12e77902"
integrity sha1-eVjHk+R+MuB9K1yv5cC/jhLneQI=
-stylehacks@^4.0.0:
- version "4.0.3"
- resolved "https://registry.npm.taobao.org/stylehacks/download/stylehacks-4.0.3.tgz?cache=0&sync_timestamp=1599670278425&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fstylehacks%2Fdownload%2Fstylehacks-4.0.3.tgz#6718fcaf4d1e07d8a1318690881e8d96726a71d5"
- integrity sha1-Zxj8r00eB9ihMYaQiB6NlnJqcdU=
+stylehacks@^5.0.1:
+ version "5.0.1"
+ resolved "https://registry.npmjs.org/stylehacks/-/stylehacks-5.0.1.tgz#323ec554198520986806388c7fdaebc38d2c06fb"
+ integrity sha512-Es0rVnHIqbWzveU1b24kbw92HsebBepxfcqe5iix7t9j0PQqhs0IxXVXv0pY2Bxa08CgMkzD6OWql7kbGOuEdA==
dependencies:
- browserslist "^4.0.0"
- postcss "^7.0.0"
- postcss-selector-parser "^3.0.0"
+ browserslist "^4.16.0"
+ postcss-selector-parser "^6.0.4"
stylelint-config-prettier@^8.0.1:
version "8.0.2"
@@ -13524,7 +11608,7 @@ supports-color@^2.0.0:
resolved "https://registry.npm.taobao.org/supports-color/download/supports-color-2.0.0.tgz?cache=0&sync_timestamp=1598611849430&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsupports-color%2Fdownload%2Fsupports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7"
integrity sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=
-supports-color@^5.3.0, supports-color@^5.4.0:
+supports-color@^5.3.0:
version "5.5.0"
resolved "https://registry.npm.taobao.org/supports-color/download/supports-color-5.5.0.tgz?cache=0&sync_timestamp=1598611849430&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsupports-color%2Fdownload%2Fsupports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f"
integrity sha1-4uaaRKyHcveKHsCzW2id9lMO/I8=
@@ -13545,6 +11629,13 @@ supports-color@^7.0.0, supports-color@^7.1.0:
dependencies:
has-flag "^4.0.0"
+supports-color@^8.0.0:
+ version "8.1.1"
+ resolved "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c"
+ integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==
+ dependencies:
+ has-flag "^4.0.0"
+
supports-hyperlinks@^2.0.0:
version "2.2.0"
resolved "https://registry.npm.taobao.org/supports-hyperlinks/download/supports-hyperlinks-2.2.0.tgz#4f77b42488765891774b70c79babd87f9bd594bb"
@@ -13566,24 +11657,18 @@ svg-tags@^1.0.0:
resolved "https://registry.npm.taobao.org/svg-tags/download/svg-tags-1.0.0.tgz#58f71cee3bd519b59d4b2a843b6c7de64ac04764"
integrity sha1-WPcc7jvVGbWdSyqEO2x95krAR2Q=
-svgo@^1.0.0:
- version "1.3.2"
- resolved "https://registry.npm.taobao.org/svgo/download/svgo-1.3.2.tgz#b6dc511c063346c9e415b81e43401145b96d4167"
- integrity sha1-ttxRHAYzRsnkFbgeQ0ARRbltQWc=
+svgo@^2.3.0:
+ version "2.6.1"
+ resolved "https://registry.npmjs.org/svgo/-/svgo-2.6.1.tgz#60b613937e0081028cffc2369090e366b08f1f0e"
+ integrity sha512-SDo274ymyG1jJ3HtCr3hkfwS8NqWdF0fMr6xPlrJ5y2QMofsQxIEFWgR1epwb197teKGgnZbzozxvJyIeJpE2Q==
dependencies:
- chalk "^2.4.1"
- coa "^2.0.2"
- css-select "^2.0.0"
- css-select-base-adapter "^0.1.1"
- css-tree "1.0.0-alpha.37"
- csso "^4.0.2"
- js-yaml "^3.13.1"
- mkdirp "~0.5.1"
- object.values "^1.1.0"
- sax "~1.2.4"
+ "@trysound/sax" "0.2.0"
+ colorette "^1.4.0"
+ commander "^7.2.0"
+ css-select "^4.1.3"
+ css-tree "^1.1.3"
+ csso "^4.2.0"
stable "^0.1.8"
- unquote "~1.1.1"
- util.promisify "~1.0.0"
symbol-tree@^3.2.4:
version "3.2.4"
@@ -13602,16 +11687,6 @@ table@^6.0.9, table@^6.6.0:
string-width "^4.2.0"
strip-ansi "^6.0.0"
-tapable@^1.0.0:
- version "1.1.3"
- resolved "https://registry.npm.taobao.org/tapable/download/tapable-1.1.3.tgz?cache=0&sync_timestamp=1600381262449&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ftapable%2Fdownload%2Ftapable-1.1.3.tgz#a1fccc06b58db61fd7a45da2da44f5f3a3e67ba2"
- integrity sha1-ofzMBrWNth/XpF2i2kT186Pme6I=
-
-tapable@^2.0.0, tapable@^2.1.1, tapable@^2.2.0:
- version "2.2.0"
- resolved "https://registry.npm.taobao.org/tapable/download/tapable-2.2.0.tgz?cache=0&sync_timestamp=1607088902003&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ftapable%2Fdownload%2Ftapable-2.2.0.tgz#5c373d281d9c672848213d0e037d1c4165ab426b"
- integrity sha1-XDc9KB2cZyhIIT0OA30cQWWrQms=
-
terminal-link@^2.0.0:
version "2.1.1"
resolved "https://registry.npm.taobao.org/terminal-link/download/terminal-link-2.1.1.tgz#14a64a27ab3c0df933ea546fba55f2d078edc994"
@@ -13620,18 +11695,6 @@ terminal-link@^2.0.0:
ansi-escapes "^4.2.1"
supports-hyperlinks "^2.0.0"
-terser-webpack-plugin@^5.1.1:
- version "5.1.1"
- resolved "https://registry.npm.taobao.org/terser-webpack-plugin/download/terser-webpack-plugin-5.1.1.tgz?cache=0&sync_timestamp=1610194199773&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fterser-webpack-plugin%2Fdownload%2Fterser-webpack-plugin-5.1.1.tgz#7effadee06f7ecfa093dbbd3e9ab23f5f3ed8673"
- integrity sha1-fv+t7gb37PoJPbvT6asj9fPthnM=
- dependencies:
- jest-worker "^26.6.2"
- p-limit "^3.1.0"
- schema-utils "^3.0.0"
- serialize-javascript "^5.0.1"
- source-map "^0.6.1"
- terser "^5.5.1"
-
terser@4.8.0, terser@^4.6.3:
version "4.8.0"
resolved "https://registry.npm.taobao.org/terser/download/terser-4.8.0.tgz#63056343d7c70bb29f3af665865a46fe03a0df17"
@@ -13641,15 +11704,6 @@ terser@4.8.0, terser@^4.6.3:
source-map "~0.6.1"
source-map-support "~0.5.12"
-terser@^5.5.1:
- version "5.6.1"
- resolved "https://registry.npm.taobao.org/terser/download/terser-5.6.1.tgz?cache=0&sync_timestamp=1616002501787&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fterser%2Fdownload%2Fterser-5.6.1.tgz#a48eeac5300c0a09b36854bf90d9c26fb201973c"
- integrity sha1-pI7qxTAMCgmzaFS/kNnCb7IBlzw=
- dependencies:
- commander "^2.20.0"
- source-map "~0.7.2"
- source-map-support "~0.5.19"
-
test-exclude@^6.0.0:
version "6.0.0"
resolved "https://registry.npm.taobao.org/test-exclude/download/test-exclude-6.0.0.tgz#04a8698661d805ea6fa293b6cb9e63ac044ef15e"
@@ -13669,10 +11723,10 @@ text-table@^0.2.0:
resolved "https://registry.npm.taobao.org/text-table/download/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4"
integrity sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=
-throat@^5.0.0:
- version "5.0.0"
- resolved "https://registry.npm.taobao.org/throat/download/throat-5.0.0.tgz#c5199235803aad18754a667d659b5e72ce16764b"
- integrity sha1-xRmSNYA6rRh1SmZ9ZZtecs4Wdks=
+throat@^6.0.1:
+ version "6.0.1"
+ resolved "https://registry.npmjs.org/throat/-/throat-6.0.1.tgz#d514fedad95740c12c2d7fc70ea863eb51ade375"
+ integrity sha512-8hmiGIJMDlwjg7dlJ4yKGLK8EsYqKgPWbG3b4wjJddKNwc7N7Dpn08Df4szr/sZdMVeOstrdYSsqzX6BYbcB+w==
through2-filter@^3.0.0:
version "3.0.0"
@@ -13702,11 +11756,6 @@ through@2, "through@>=2.2.7 <3", through@^2.3.6, through@^2.3.8:
resolved "https://registry.npm.taobao.org/through/download/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5"
integrity sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=
-thunky@^1.0.2:
- version "1.1.0"
- resolved "https://registry.npm.taobao.org/thunky/download/thunky-1.1.0.tgz#5abaf714a9405db0504732bbccd2cedd9ef9537d"
- integrity sha1-Wrr3FKlAXbBQRzK7zNLO3Z75U30=
-
time-stamp@^1.0.0:
version "1.1.0"
resolved "https://registry.npm.taobao.org/time-stamp/download/time-stamp-1.1.0.tgz#764a5a11af50561921b133f3b44e618687e0f5c3"
@@ -13801,19 +11850,6 @@ to-through@^2.0.0:
dependencies:
through2 "^2.0.3"
-toidentifier@1.0.0:
- version "1.0.0"
- resolved "https://registry.npm.taobao.org/toidentifier/download/toidentifier-1.0.0.tgz#7e1be3470f1e77948bc43d94a3c8f4d7752ba553"
- integrity sha1-fhvjRw8ed5SLxD2Uo8j013UrpVM=
-
-tough-cookie@^2.3.3, tough-cookie@~2.5.0:
- version "2.5.0"
- resolved "https://registry.npm.taobao.org/tough-cookie/download/tough-cookie-2.5.0.tgz#cd9fb2a0aa1d5a12b473bd9fb96fa3dcff65ade2"
- integrity sha1-zZ+yoKodWhK0c72fuW+j3P9lreI=
- dependencies:
- psl "^1.1.28"
- punycode "^2.1.1"
-
tough-cookie@^4.0.0:
version "4.0.0"
resolved "https://registry.npm.taobao.org/tough-cookie/download/tough-cookie-4.0.0.tgz#d822234eeca882f991f0f908824ad2622ddbece4"
@@ -13823,6 +11859,14 @@ tough-cookie@^4.0.0:
punycode "^2.1.1"
universalify "^0.1.2"
+tough-cookie@~2.5.0:
+ version "2.5.0"
+ resolved "https://registry.npm.taobao.org/tough-cookie/download/tough-cookie-2.5.0.tgz#cd9fb2a0aa1d5a12b473bd9fb96fa3dcff65ade2"
+ integrity sha1-zZ+yoKodWhK0c72fuW+j3P9lreI=
+ dependencies:
+ psl "^1.1.28"
+ punycode "^2.1.1"
+
tr46@^2.0.2:
version "2.0.2"
resolved "https://registry.npm.taobao.org/tr46/download/tr46-2.0.2.tgz#03273586def1595ae08fedb38d7733cee91d2479"
@@ -13869,19 +11913,17 @@ trough@^1.0.0:
resolved "https://registry.npm.taobao.org/trough/download/trough-1.0.5.tgz#b8b639cefad7d0bb2abd37d433ff8293efa5f406"
integrity sha1-uLY5zvrX0LsqvTfUM/+Ck++l9AY=
-ts-jest@^26.5.2:
- version "26.5.4"
- resolved "https://registry.npm.taobao.org/ts-jest/download/ts-jest-26.5.4.tgz#207f4c114812a9c6d5746dd4d1cdf899eafc9686"
- integrity sha1-IH9MEUgSqcbVdG3U0c34mer8loY=
+ts-jest@^27.0.5:
+ version "27.0.5"
+ resolved "https://registry.npmjs.org/ts-jest/-/ts-jest-27.0.5.tgz#0b0604e2271167ec43c12a69770f0bb65ad1b750"
+ integrity sha512-lIJApzfTaSSbtlksfFNHkWOzLJuuSm4faFAfo5kvzOiRAuoN4/eKxVJ2zEAho8aecE04qX6K1pAzfH5QHL1/8w==
dependencies:
bs-logger "0.x"
- buffer-from "1.x"
fast-json-stable-stringify "2.x"
- jest-util "^26.1.0"
+ jest-util "^27.0.0"
json5 "2.x"
lodash "4.x"
make-error "1.x"
- mkdirp "1.x"
semver "7.x"
yargs-parser "20.x"
@@ -13922,6 +11964,11 @@ tslib@^1.10.0, tslib@^1.8.1, tslib@^1.9.0:
resolved "https://registry.npm.taobao.org/tslib/download/tslib-1.14.1.tgz?cache=0&sync_timestamp=1602286603545&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ftslib%2Fdownload%2Ftslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"
integrity sha1-zy04vcNKE0vK8QkcQfZhni9nLQA=
+tslib@~2.1.0:
+ version "2.1.0"
+ resolved "https://registry.npmjs.org/tslib/-/tslib-2.1.0.tgz#da60860f1c2ecaa5703ab7d39bc05b6bf988b97a"
+ integrity sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==
+
tsutils@^3.21.0:
version "3.21.0"
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623"
@@ -13975,6 +12022,11 @@ type-fest@^0.21.3:
resolved "https://registry.npm.taobao.org/type-fest/download/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37"
integrity sha1-0mCiSwGYQ24TP6JqUkptZfo7Ljc=
+type-fest@^0.4.1:
+ version "0.4.1"
+ resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.4.1.tgz#8bdf77743385d8a4f13ba95f610f5ccd68c728f8"
+ integrity sha512-IwzA/LSfD2vC1/YDYMv/zHP4rDF1usCwllsDpbolT3D4fUepIO7f9K70jjmUewU/LmGUKJcwcVtDCpnKk4BPMw==
+
type-fest@^0.6.0:
version "0.6.0"
resolved "https://registry.npm.taobao.org/type-fest/download/type-fest-0.6.0.tgz?cache=0&sync_timestamp=1602623985002&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ftype-fest%2Fdownload%2Ftype-fest-0.6.0.tgz#8d2a2370d3df886eb5c90ada1c5bf6188acf838b"
@@ -13985,14 +12037,6 @@ type-fest@^0.8.1:
resolved "https://registry.npm.taobao.org/type-fest/download/type-fest-0.8.1.tgz?cache=0&sync_timestamp=1602623985002&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ftype-fest%2Fdownload%2Ftype-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d"
integrity sha1-CeJJ696FHTseSNJ8EFREZn8XuD0=
-type-is@~1.6.17, type-is@~1.6.18:
- version "1.6.18"
- resolved "https://registry.npm.taobao.org/type-is/download/type-is-1.6.18.tgz#4e552cd05df09467dcbc4ef739de89f2cf37c131"
- integrity sha1-TlUs0F3wlGfcvE73Od6J8s83wTE=
- dependencies:
- media-typer "0.3.0"
- mime-types "~2.1.24"
-
type@^1.0.1:
version "1.2.0"
resolved "https://registry.npm.taobao.org/type/download/type-1.2.0.tgz?cache=0&sync_timestamp=1598016767827&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ftype%2Fdownload%2Ftype-1.2.0.tgz#848dd7698dafa3e54a6c479e759c4bc3f18847a0"
@@ -14015,10 +12059,10 @@ typedarray@^0.0.6:
resolved "https://registry.npm.taobao.org/typedarray/download/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
-typescript@^4.3.2:
- version "4.3.2"
- resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.2.tgz#399ab18aac45802d6f2498de5054fcbbe716a805"
- integrity sha512-zZ4hShnmnoVnAHpVHWpTcxdv7dWP60S2FsydQLV8V5PbS3FifjWFFRiHSWpDJahly88PRyV5teTSLoq4eG7mKw==
+typescript@^4.3.5:
+ version "4.4.3"
+ resolved "https://registry.npmjs.org/typescript/-/typescript-4.4.3.tgz#bdc5407caa2b109efd4f82fe130656f977a29324"
+ integrity sha512-4xfscpisVgqqDfPaJo5vkd+Qd/ItkoagnHpufr+i2QCHBsNYp+G7UAoyFl8aPtx879u38wPV65rZ8qbGZijalA==
uc.micro@^1.0.1, uc.micro@^1.0.5:
version "1.0.6"
@@ -14119,11 +12163,6 @@ union-value@^1.0.0:
is-extendable "^0.1.1"
set-value "^2.0.1"
-uniq@^1.0.1:
- version "1.0.1"
- resolved "https://registry.npm.taobao.org/uniq/download/uniq-1.0.1.tgz#b31c5ae8254844a3a8281541ce2b04b865a734ff"
- integrity sha1-sxxa6CVIRKOoKBVBzisEuGWnNP8=
-
uniqs@^2.0.0:
version "2.0.0"
resolved "https://registry.npm.taobao.org/uniqs/download/uniqs-2.0.0.tgz#ffede4b36b25290696e6e165d4a59edb998e6b02"
@@ -14178,16 +12217,6 @@ universalify@^2.0.0:
resolved "https://registry.npm.taobao.org/universalify/download/universalify-2.0.0.tgz?cache=0&sync_timestamp=1603180042770&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Funiversalify%2Fdownload%2Funiversalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717"
integrity sha1-daSYTv7cSwiXXFrrc/Uw0C3yVxc=
-unpipe@1.0.0, unpipe@~1.0.0:
- version "1.0.0"
- resolved "https://registry.npm.taobao.org/unpipe/download/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec"
- integrity sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=
-
-unquote@~1.1.1:
- version "1.1.1"
- resolved "https://registry.npm.taobao.org/unquote/download/unquote-1.1.1.tgz#8fded7324ec6e88a0ff8b905e7c098cdc086d544"
- integrity sha1-j97XMk7G6IoP+LkF58CYzcCG1UQ=
-
unset-value@^1.0.0:
version "1.0.0"
resolved "https://registry.npm.taobao.org/unset-value/download/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559"
@@ -14250,22 +12279,6 @@ url-parse-lax@^3.0.0:
dependencies:
prepend-http "^2.0.0"
-url-parse@^1.4.3, url-parse@^1.5.1:
- version "1.5.1"
- resolved "https://registry.npm.taobao.org/url-parse/download/url-parse-1.5.1.tgz?cache=0&sync_timestamp=1613659753482&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Furl-parse%2Fdownload%2Furl-parse-1.5.1.tgz#d5fa9890af8a5e1f274a2c98376510f6425f6e3b"
- integrity sha1-1fqYkK+KXh8nSiyYN2UQ9kJfbjs=
- dependencies:
- querystringify "^2.1.1"
- requires-port "^1.0.0"
-
-url@^0.11.0:
- version "0.11.0"
- resolved "https://registry.npm.taobao.org/url/download/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1"
- integrity sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=
- dependencies:
- punycode "1.3.2"
- querystring "0.2.0"
-
use@^3.1.0:
version "3.1.1"
resolved "https://registry.npm.taobao.org/use/download/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f"
@@ -14283,32 +12296,12 @@ util-deprecate@^1.0.1, util-deprecate@^1.0.2, util-deprecate@~1.0.1:
resolved "https://registry.npm.taobao.org/util-deprecate/download/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=
-util.promisify@~1.0.0:
- version "1.0.1"
- resolved "https://registry.npm.taobao.org/util.promisify/download/util.promisify-1.0.1.tgz#6baf7774b80eeb0f7520d8b81d07982a59abbaee"
- integrity sha1-a693dLgO6w91INi4HQeYKlmruu4=
- dependencies:
- define-properties "^1.1.3"
- es-abstract "^1.17.2"
- has-symbols "^1.0.1"
- object.getownpropertydescriptors "^2.1.0"
-
-utila@^0.4.0, utila@~0.4:
- version "0.4.0"
- resolved "https://registry.npm.taobao.org/utila/download/utila-0.4.0.tgz#8a16a05d445657a3aea5eecc5b12a4fa5379772c"
- integrity sha1-ihagXURWV6Oupe7MWxKk+lN5dyw=
-
-utils-merge@1.0.1:
- version "1.0.1"
- resolved "https://registry.npm.taobao.org/utils-merge/download/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713"
- integrity sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=
-
-uuid@8.3.2, uuid@^8.3.0:
+uuid@8.3.2:
version "8.3.2"
resolved "https://registry.npm.taobao.org/uuid/download/uuid-8.3.2.tgz?cache=0&sync_timestamp=1607458532020&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fuuid%2Fdownload%2Fuuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
integrity sha1-gNW1ztJxu5r2xEXyGhoExgbO++I=
-uuid@^3.3.2, uuid@^3.4.0:
+uuid@^3.3.2:
version "3.4.0"
resolved "https://registry.npm.taobao.org/uuid/download/uuid-3.4.0.tgz?cache=0&sync_timestamp=1601826420899&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fuuid%2Fdownload%2Fuuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee"
integrity sha1-sj5DWK+oogL+ehAK8fX4g/AgB+4=
@@ -14318,10 +12311,10 @@ v8-compile-cache@^2.0.3, v8-compile-cache@^2.3.0:
resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee"
integrity sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==
-v8-to-istanbul@^7.0.0:
- version "7.1.1"
- resolved "https://registry.npm.taobao.org/v8-to-istanbul/download/v8-to-istanbul-7.1.1.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fv8-to-istanbul%2Fdownload%2Fv8-to-istanbul-7.1.1.tgz#04bfd1026ba4577de5472df4f5e89af49de5edda"
- integrity sha1-BL/RAmukV33lRy309eia9J3l7do=
+v8-to-istanbul@^8.0.0:
+ version "8.0.0"
+ resolved "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-8.0.0.tgz#4229f2a99e367f3f018fa1d5c2b8ec684667c69c"
+ integrity sha512-LkmXi8UUNxnCC+JlH7/fsfsKr5AU110l+SYGJimWNkWhxbN5EyeOtm1MJ0hhvqMMOhGwBj1Fp70Yv9i+hX0QAg==
dependencies:
"@types/istanbul-lib-coverage" "^2.0.1"
convert-source-map "^1.6.0"
@@ -14347,15 +12340,10 @@ value-or-function@^3.0.0:
resolved "https://registry.npm.taobao.org/value-or-function/download/value-or-function-3.0.0.tgz#1c243a50b595c1be54a754bfece8563b9ff8d813"
integrity sha1-HCQ6ULWVwb5Up1S/7OhWO5/42BM=
-vary@~1.1.2:
- version "1.1.2"
- resolved "https://registry.npm.taobao.org/vary/download/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc"
- integrity sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=
-
-vendors@^1.0.0:
+vendors@^1.0.3:
version "1.0.4"
- resolved "https://registry.npm.taobao.org/vendors/download/vendors-1.0.4.tgz#e2b800a53e7a29b93506c3cf41100d16c4c4ad8e"
- integrity sha1-4rgApT56Kbk1BsPPQRANFsTErY4=
+ resolved "https://registry.npmjs.org/vendors/-/vendors-1.0.4.tgz#e2b800a53e7a29b93506c3cf41100d16c4c4ad8e"
+ integrity sha512-/juG65kTL4Cy2su4P8HjtkTxk6VmJDiOPBufWniqQ6wknac6jNiXS9vU+hO3wgusiyqWlzTbVHi0dyJqRONg3w==
verror@1.10.0:
version "1.10.0"
@@ -14440,6 +12428,39 @@ vinyl@^2.0.0:
remove-trailing-separator "^1.0.1"
replace-ext "^1.0.0"
+vite-plugin-html@^2.1.0:
+ version "2.1.0"
+ resolved "https://registry.npmjs.org/vite-plugin-html/-/vite-plugin-html-2.1.0.tgz#77b6ee11d9cdbdf766b5731fd416bacf26744fce"
+ integrity sha512-xdyHA/LdtmQtVTpPVqmrJaO/iuwx0k/r2M0BFnfYBloLCvp9FeCW/fR3yucQePRzE19bU72QldBE6EB1toZACw==
+ dependencies:
+ "@rollup/pluginutils" "^4.1.1"
+ dotenv "^10.0.0"
+ dotenv-expand "^5.1.0"
+ ejs "^3.1.6"
+ fs-extra "^10.0.0"
+ html-minifier-terser "^5.1.1"
+
+vite-plugin-md@^0.11.0:
+ version "0.11.1"
+ resolved "https://registry.npmjs.org/vite-plugin-md/-/vite-plugin-md-0.11.1.tgz#bc40455eb56767395e9ccf46ef4a50e8c0d2b748"
+ integrity sha512-nS+VmwFpUv+RiUcHntMPGXb8QxdJupW7q4AtqWpdpkAmTgI/HRilLRFtBIPxt4d+ZVtuMFrG3l1TG/hTUgghUg==
+ dependencies:
+ "@rollup/pluginutils" "^4.1.1"
+ gray-matter "^4.0.3"
+ markdown-it "^12.2.0"
+
+vite@^2.5.3:
+ version "2.5.10"
+ resolved "https://registry.npmjs.org/vite/-/vite-2.5.10.tgz#c598e3b5a7e1956ffc52eb3b3420d177fc2ed2a5"
+ integrity sha512-0ObiHTi5AHyXdJcvZ67HMsDgVpjT5RehvVKv6+Q0jFZ7zDI28PF5zK9mYz2avxdA+4iJMdwCz6wnGNnn4WX5Gg==
+ dependencies:
+ esbuild "^0.12.17"
+ postcss "^8.3.6"
+ resolve "^1.20.0"
+ rollup "^2.38.5"
+ optionalDependencies:
+ fsevents "~2.3.2"
+
vue-eslint-parser@^7.10.0:
version "7.10.0"
resolved "https://registry.yarnpkg.com/vue-eslint-parser/-/vue-eslint-parser-7.10.0.tgz#ea4e4b10fd10aa35c8a79ac783488d8abcd29be8"
@@ -14453,31 +12474,23 @@ vue-eslint-parser@^7.10.0:
lodash "^4.17.21"
semver "^6.3.0"
-vue-jest@^5.0.0-alpha.8:
- version "5.0.0-alpha.8"
- resolved "https://registry.npm.taobao.org/vue-jest/download/vue-jest-5.0.0-alpha.8.tgz?cache=0&sync_timestamp=1615007283594&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fvue-jest%2Fdownload%2Fvue-jest-5.0.0-alpha.8.tgz#45b12335dbb73c9ab8309f1e24b2fc8781d519f9"
- integrity sha1-RbEjNdu3PJq4MJ8eJLL8h4HVGfk=
+vue-router@^4.0.0:
+ version "4.0.6"
+ resolved "https://registry.npm.taobao.org/vue-router/download/vue-router-4.0.6.tgz#91750db507d26642f225b0ec6064568e5fe448d6"
+ integrity sha1-kXUNtQfSZkLyJbDsYGRWjl/kSNY=
+
+vue3-jest@^27.0.0-alpha.2:
+ version "27.0.0-alpha.2"
+ resolved "https://registry.npmjs.org/vue3-jest/-/vue3-jest-27.0.0-alpha.2.tgz#c9935bcf8146443265d16e71b8ee8d3d313e1478"
+ integrity sha512-1UkRp+DLFWZQ6fFRQe4T3jpY/Rd+6zjwuLlnMNTbP8PgDrcykSS8aZaYZqFhNG6ECZ6qmV1F2jXcg9lMGRzLuw==
dependencies:
"@babel/plugin-transform-modules-commonjs" "^7.2.0"
chalk "^2.1.0"
convert-source-map "^1.6.0"
extract-from-css "^0.4.4"
+ source-map "0.5.6"
tsconfig "^7.0.0"
-vue-loader@^16.1.2:
- version "16.2.0"
- resolved "https://registry.npm.taobao.org/vue-loader/download/vue-loader-16.2.0.tgz#046a53308dd47e58efe20ddec1edec027ce3b46e"
- integrity sha1-BGpTMI3Ufljv4g3ewe3sAnzjtG4=
- dependencies:
- chalk "^4.1.0"
- hash-sum "^2.0.0"
- loader-utils "^2.0.0"
-
-vue-router@^4.0.0:
- version "4.0.6"
- resolved "https://registry.npm.taobao.org/vue-router/download/vue-router-4.0.6.tgz#91750db507d26642f225b0ec6064568e5fe448d6"
- integrity sha1-kXUNtQfSZkLyJbDsYGRWjl/kSNY=
-
vue@^3.2.1:
version "3.2.1"
resolved "https://registry.npmjs.org/vue/-/vue-3.2.1.tgz#30dde152f2fdad0669ea9854d5a90a00ef96974b"
@@ -14501,28 +12514,13 @@ w3c-xmlserializer@^2.0.0:
dependencies:
xml-name-validator "^3.0.0"
-walker@^1.0.7, walker@~1.0.5:
+walker@^1.0.7:
version "1.0.7"
resolved "https://registry.npm.taobao.org/walker/download/walker-1.0.7.tgz#2f7f9b8fd10d677262b18a884e28d19618e028fb"
integrity sha1-L3+bj9ENZ3JisYqITijRlhjgKPs=
dependencies:
makeerror "1.0.x"
-watchpack@^2.2.0:
- version "2.2.0"
- resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-2.2.0.tgz#47d78f5415fe550ecd740f99fe2882323a58b1ce"
- integrity sha512-up4YAn/XHgZHIxFBVCdlMiWDj6WaLKpwVeGQk2I5thdYxF/KmF0aaz6TfJZ/hfl1h/XlcDr7k1KH7ThDagpFaA==
- dependencies:
- glob-to-regexp "^0.4.1"
- graceful-fs "^4.1.2"
-
-wbuf@^1.1.0, wbuf@^1.7.3:
- version "1.7.3"
- resolved "https://registry.npm.taobao.org/wbuf/download/wbuf-1.7.3.tgz#c1d8d149316d3ea852848895cb6a0bfe887b87df"
- integrity sha1-wdjRSTFtPqhShIiVy2oL/oh7h98=
- dependencies:
- minimalistic-assert "^1.0.0"
-
wcwidth@^1.0.1:
version "1.0.1"
resolved "https://registry.npm.taobao.org/wcwidth/download/wcwidth-1.0.1.tgz#f0b0dcf915bc5ff1528afadb2c0e17b532da2fe8"
@@ -14540,137 +12538,6 @@ webidl-conversions@^6.1.0:
resolved "https://registry.npm.taobao.org/webidl-conversions/download/webidl-conversions-6.1.0.tgz#9111b4d7ea80acd40f5270d666621afa78b69514"
integrity sha1-kRG01+qArNQPUnDWZmIa+ni2lRQ=
-webpack-dev-middleware@^3.7.2:
- version "3.7.3"
- resolved "https://registry.npm.taobao.org/webpack-dev-middleware/download/webpack-dev-middleware-3.7.3.tgz?cache=0&sync_timestamp=1610718844043&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fwebpack-dev-middleware%2Fdownload%2Fwebpack-dev-middleware-3.7.3.tgz#0639372b143262e2b84ab95d3b91a7597061c2c5"
- integrity sha1-Bjk3KxQyYuK4SrldO5GnWXBhwsU=
- dependencies:
- memory-fs "^0.4.1"
- mime "^2.4.4"
- mkdirp "^0.5.1"
- range-parser "^1.2.1"
- webpack-log "^2.0.0"
-
-webpack-dev-server@^3.11.2:
- version "3.11.2"
- resolved "https://registry.yarnpkg.com/webpack-dev-server/-/webpack-dev-server-3.11.2.tgz#695ebced76a4929f0d5de7fd73fafe185fe33708"
- integrity sha512-A80BkuHRQfCiNtGBS1EMf2ChTUs0x+B3wGDFmOeT4rmJOHhHTCH2naNxIHhmkr0/UillP4U3yeIyv1pNp+QDLQ==
- dependencies:
- ansi-html "0.0.7"
- bonjour "^3.5.0"
- chokidar "^2.1.8"
- compression "^1.7.4"
- connect-history-api-fallback "^1.6.0"
- debug "^4.1.1"
- del "^4.1.1"
- express "^4.17.1"
- html-entities "^1.3.1"
- http-proxy-middleware "0.19.1"
- import-local "^2.0.0"
- internal-ip "^4.3.0"
- ip "^1.1.5"
- is-absolute-url "^3.0.3"
- killable "^1.0.1"
- loglevel "^1.6.8"
- opn "^5.5.0"
- p-retry "^3.0.1"
- portfinder "^1.0.26"
- schema-utils "^1.0.0"
- selfsigned "^1.10.8"
- semver "^6.3.0"
- serve-index "^1.9.1"
- sockjs "^0.3.21"
- sockjs-client "^1.5.0"
- spdy "^4.0.2"
- strip-ansi "^3.0.1"
- supports-color "^6.1.0"
- url "^0.11.0"
- webpack-dev-middleware "^3.7.2"
- webpack-log "^2.0.0"
- ws "^6.2.1"
- yargs "^13.3.2"
-
-webpack-log@^2.0.0:
- version "2.0.0"
- resolved "https://registry.npm.taobao.org/webpack-log/download/webpack-log-2.0.0.tgz#5b7928e0637593f119d32f6227c1e0ac31e1b47f"
- integrity sha1-W3ko4GN1k/EZ0y9iJ8HgrDHhtH8=
- dependencies:
- ansi-colors "^3.0.0"
- uuid "^3.3.2"
-
-webpack-merge@^5.8.0:
- version "5.8.0"
- resolved "https://registry.yarnpkg.com/webpack-merge/-/webpack-merge-5.8.0.tgz#2b39dbf22af87776ad744c390223731d30a68f61"
- integrity sha512-/SaI7xY0831XwP6kzuwhKWVKDP9t1QY1h65lAFLbZqMPIuYcD9QAW4u9STIbU9kaJbPBB/geU/gLr1wDjOhQ+Q==
- dependencies:
- clone-deep "^4.0.1"
- wildcard "^2.0.0"
-
-webpack-sources@^2.3.0:
- version "2.3.0"
- resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-2.3.0.tgz#9ed2de69b25143a4c18847586ad9eccb19278cfa"
- integrity sha512-WyOdtwSvOML1kbgtXbTDnEW0jkJ7hZr/bDByIwszhWd/4XX1A3XMkrbFMsuH4+/MfLlZCUzlAdg4r7jaGKEIgQ==
- dependencies:
- source-list-map "^2.0.1"
- source-map "^0.6.1"
-
-webpack@^5.38.1:
- version "5.38.1"
- resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.38.1.tgz#5224c7f24c18e729268d3e3bc97240d6e880258e"
- integrity sha512-OqRmYD1OJbHZph6RUMD93GcCZy4Z4wC0ele4FXyYF0J6AxO1vOSuIlU1hkS/lDlR9CDYBz64MZRmdbdnFFoT2g==
- dependencies:
- "@types/eslint-scope" "^3.7.0"
- "@types/estree" "^0.0.47"
- "@webassemblyjs/ast" "1.11.0"
- "@webassemblyjs/wasm-edit" "1.11.0"
- "@webassemblyjs/wasm-parser" "1.11.0"
- acorn "^8.2.1"
- browserslist "^4.14.5"
- chrome-trace-event "^1.0.2"
- enhanced-resolve "^5.8.0"
- es-module-lexer "^0.4.0"
- eslint-scope "5.1.1"
- events "^3.2.0"
- glob-to-regexp "^0.4.1"
- graceful-fs "^4.2.4"
- json-parse-better-errors "^1.0.2"
- loader-runner "^4.2.0"
- mime-types "^2.1.27"
- neo-async "^2.6.2"
- schema-utils "^3.0.0"
- tapable "^2.1.1"
- terser-webpack-plugin "^5.1.1"
- watchpack "^2.2.0"
- webpack-sources "^2.3.0"
-
-webpackbar@^5.0.0-3:
- version "5.0.0-3"
- resolved "https://registry.npm.taobao.org/webpackbar/download/webpackbar-5.0.0-3.tgz#f4f96c8fb13001b2bb1348252db4c980ab93aaac"
- integrity sha1-9Plsj7EwAbK7E0glLbTJgKuTqqw=
- dependencies:
- ansi-escapes "^4.3.1"
- chalk "^4.1.0"
- consola "^2.15.0"
- figures "^3.2.0"
- pretty-time "^1.1.0"
- std-env "^2.2.1"
- text-table "^0.2.0"
- wrap-ansi "^7.0.0"
-
-websocket-driver@>=0.5.1, websocket-driver@^0.7.4:
- version "0.7.4"
- resolved "https://registry.npm.taobao.org/websocket-driver/download/websocket-driver-0.7.4.tgz#89ad5295bbf64b480abcba31e4953aca706f5760"
- integrity sha1-ia1Slbv2S0gKvLox5JU6ynBvV2A=
- dependencies:
- http-parser-js ">=0.5.1"
- safe-buffer ">=5.1.0"
- websocket-extensions ">=0.1.1"
-
-websocket-extensions@>=0.1.1:
- version "0.1.4"
- resolved "https://registry.npm.taobao.org/websocket-extensions/download/websocket-extensions-0.1.4.tgz#7f8473bc839dfd87608adb95d7eb075211578a42"
- integrity sha1-f4RzvIOd/YdgituV1+sHUhFXikI=
-
whatwg-encoding@^1.0.5:
version "1.0.5"
resolved "https://registry.npm.taobao.org/whatwg-encoding/download/whatwg-encoding-1.0.5.tgz#5abacf777c32166a51d085d6b4f3e7d27113ddb0"
@@ -14713,14 +12580,14 @@ which-module@^2.0.0:
resolved "https://registry.npm.taobao.org/which-module/download/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a"
integrity sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=
-which@^1.2.14, which@^1.2.9, which@^1.3.1:
+which@^1.2.14, which@^1.3.1:
version "1.3.1"
resolved "https://registry.npm.taobao.org/which/download/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a"
integrity sha1-pFBD1U9YBTFtqNYvn1CRjT2nCwo=
dependencies:
isexe "^2.0.0"
-which@^2.0.1, which@^2.0.2:
+which@^2.0.1:
version "2.0.2"
resolved "https://registry.npm.taobao.org/which/download/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1"
integrity sha1-fGqN0KY2oDJ+ELWckobu6T8/UbE=
@@ -14734,11 +12601,6 @@ widest-line@^3.1.0:
dependencies:
string-width "^4.0.0"
-wildcard@^2.0.0:
- version "2.0.0"
- resolved "https://registry.npm.taobao.org/wildcard/download/wildcard-2.0.0.tgz#a77d20e5200c6faaac979e4b3aadc7b3dd7f8fec"
- integrity sha1-p30g5SAMb6qsl55LOq3Hs91/j+w=
-
windows-release@^4.0.0:
version "4.0.0"
resolved "https://registry.npm.taobao.org/windows-release/download/windows-release-4.0.0.tgz#4725ec70217d1bf6e02c7772413b29cdde9ec377"
@@ -14764,15 +12626,6 @@ wrap-ansi@^2.0.0:
string-width "^1.0.1"
strip-ansi "^3.0.1"
-wrap-ansi@^5.1.0:
- version "5.1.0"
- resolved "https://registry.npm.taobao.org/wrap-ansi/download/wrap-ansi-5.1.0.tgz#1fd1f67235d5b6d0fee781056001bfb694c03b09"
- integrity sha1-H9H2cjXVttD+54EFYAG/tpTAOwk=
- dependencies:
- ansi-styles "^3.2.0"
- string-width "^3.0.0"
- strip-ansi "^5.0.0"
-
wrap-ansi@^6.2.0:
version "6.2.0"
resolved "https://registry.npm.taobao.org/wrap-ansi/download/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53"
@@ -14806,17 +12659,10 @@ write-file-atomic@^3.0.0, write-file-atomic@^3.0.3:
signal-exit "^3.0.2"
typedarray-to-buffer "^3.1.5"
-ws@^6.2.1:
- version "6.2.1"
- resolved "https://registry.npm.taobao.org/ws/download/ws-6.2.1.tgz?cache=0&sync_timestamp=1615063662500&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fws%2Fdownload%2Fws-6.2.1.tgz#442fdf0a47ed64f59b6a5d8ff130f4748ed524fb"
- integrity sha1-RC/fCkftZPWbal2P8TD0dI7VJPs=
- dependencies:
- async-limiter "~1.0.0"
-
-ws@^7.4.4:
- version "7.4.4"
- resolved "https://registry.npm.taobao.org/ws/download/ws-7.4.4.tgz?cache=0&sync_timestamp=1615063662500&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fws%2Fdownload%2Fws-7.4.4.tgz#383bc9742cb202292c9077ceab6f6047b17f2d59"
- integrity sha1-ODvJdCyyAikskHfOq29gR7F/LVk=
+ws@^7.4.6:
+ version "7.5.5"
+ resolved "https://registry.npmjs.org/ws/-/ws-7.5.5.tgz#8b4bc4af518cfabd0473ae4f99144287b33eb881"
+ integrity sha512-BAkMFcAzl8as1G/hArkxOxq3G7pjUqQ3gzYbLL0/5zNkph70e+lCoxBGnm6AW1+/aiNeV4fnKqZ8m4GZewmH2w==
wxml-minifier@0.0.1:
version "0.0.1"
@@ -14888,25 +12734,20 @@ y18n@^5.0.5:
resolved "https://registry.npm.taobao.org/y18n/download/y18n-5.0.8.tgz?cache=0&sync_timestamp=1617822642544&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fy18n%2Fdownload%2Fy18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55"
integrity sha1-f0k00PfKjFb5UxSTndzS3ZHOHVU=
-yallist@^3.0.2:
- version "3.1.1"
- resolved "https://registry.npm.taobao.org/yallist/download/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd"
- integrity sha1-27fa+b/YusmrRev2ArjLrQ1dCP0=
-
yallist@^4.0.0:
version "4.0.0"
resolved "https://registry.npm.taobao.org/yallist/download/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72"
integrity sha1-m7knkNnA7/7GO+c1GeEaNQGaOnI=
-yaml@1.10.2, yaml@^1.10.0, yaml@^1.10.2, yaml@^1.7.2:
+yaml@1.10.2, yaml@^1.10.0, yaml@^1.10.2:
version "1.10.2"
resolved "https://registry.npm.taobao.org/yaml/download/yaml-1.10.2.tgz#2301c5ffbf12b467de8da2333a459e29e7920e4b"
integrity sha1-IwHF/78StGfejaIzOkWeKeeSDks=
-yargs-parser@20.2.7, yargs-parser@20.x, yargs-parser@^20.2.2, yargs-parser@^20.2.3:
- version "20.2.7"
- resolved "https://registry.npm.taobao.org/yargs-parser/download/yargs-parser-20.2.7.tgz#61df85c113edfb5a7a4e36eb8aa60ef423cbc90a"
- integrity sha1-Yd+FwRPt+1p6TjbriqYO9CPLyQo=
+yargs-parser@20.2.9, yargs-parser@20.x, yargs-parser@^20.2.2, yargs-parser@^20.2.3:
+ version "20.2.9"
+ resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz#2eb7dc3b0289718fc295f362753845c41a0c94ee"
+ integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==
yargs-parser@5.0.0-security.0:
version "5.0.0-security.0"
@@ -14916,14 +12757,6 @@ yargs-parser@5.0.0-security.0:
camelcase "^3.0.0"
object.assign "^4.1.0"
-yargs-parser@^13.1.2:
- version "13.1.2"
- resolved "https://registry.npm.taobao.org/yargs-parser/download/yargs-parser-13.1.2.tgz?cache=0&sync_timestamp=1602702741386&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs-parser%2Fdownload%2Fyargs-parser-13.1.2.tgz#130f09702ebaeef2650d54ce6e3e5706f7a4fb38"
- integrity sha1-Ew8JcC667vJlDVTObj5XBvek+zg=
- dependencies:
- camelcase "^5.0.0"
- decamelize "^1.2.0"
-
yargs-parser@^18.1.2:
version "18.1.3"
resolved "https://registry.npm.taobao.org/yargs-parser/download/yargs-parser-18.1.3.tgz?cache=0&sync_timestamp=1602702741386&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs-parser%2Fdownload%2Fyargs-parser-18.1.3.tgz#be68c4975c6b2abf469236b0c870362fab09a7b0"
@@ -14932,23 +12765,7 @@ yargs-parser@^18.1.2:
camelcase "^5.0.0"
decamelize "^1.2.0"
-yargs@^13.3.2:
- version "13.3.2"
- resolved "https://registry.npm.taobao.org/yargs/download/yargs-13.3.2.tgz?cache=0&sync_timestamp=1600660007533&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs%2Fdownload%2Fyargs-13.3.2.tgz#ad7ffefec1aa59565ac915f82dccb38a9c31a2dd"
- integrity sha1-rX/+/sGqWVZayRX4Lcyzipwxot0=
- dependencies:
- cliui "^5.0.0"
- find-up "^3.0.0"
- get-caller-file "^2.0.1"
- require-directory "^2.1.1"
- require-main-filename "^2.0.0"
- set-blocking "^2.0.0"
- string-width "^3.0.0"
- which-module "^2.0.0"
- y18n "^4.0.0"
- yargs-parser "^13.1.2"
-
-yargs@^15.0.2, yargs@^15.4.1:
+yargs@^15.0.2:
version "15.4.1"
resolved "https://registry.npm.taobao.org/yargs/download/yargs-15.4.1.tgz?cache=0&sync_timestamp=1617506342166&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs%2Fdownload%2Fyargs-15.4.1.tgz#0d87a16de01aee9d8bec2bfbf74f67851730f4f8"
integrity sha1-DYehbeAa7p2L7Cv7909nhRcw9Pg=
@@ -14965,7 +12782,7 @@ yargs@^15.0.2, yargs@^15.4.1:
y18n "^4.0.0"
yargs-parser "^18.1.2"
-yargs@^16.1.0:
+yargs@^16.0.3, yargs@^16.1.0:
version "16.2.0"
resolved "https://registry.npm.taobao.org/yargs/download/yargs-16.2.0.tgz?cache=0&sync_timestamp=1617506342166&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs%2Fdownload%2Fyargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66"
integrity sha1-HIK/D2tqZur85+8w43b0mhJHf2Y=
@@ -14997,11 +12814,6 @@ yargs@^7.1.0:
y18n "^3.2.1"
yargs-parser "5.0.0-security.0"
-yocto-queue@^0.1.0:
- version "0.1.0"
- resolved "https://registry.npm.taobao.org/yocto-queue/download/yocto-queue-0.1.0.tgz?cache=0&sync_timestamp=1606290282107&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyocto-queue%2Fdownload%2Fyocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b"
- integrity sha1-ApTrPe4FAo0x7hpfosVWpqrxChs=
-
zwitch@^1.0.0:
version "1.0.5"
resolved "https://registry.npm.taobao.org/zwitch/download/zwitch-1.0.5.tgz?cache=0&sync_timestamp=1617357655901&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fzwitch%2Fdownload%2Fzwitch-1.0.5.tgz#d11d7381ffed16b742f6af7b3f223d5cd9fe9920"