mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
chore: add src-next folder
This commit is contained in:
parent
34c594fd79
commit
18a3e80864
@ -1,4 +1,4 @@
|
|||||||
import { on, off } from '../utils/dom/event';
|
import { on, off } from '../../src/utils/dom/event';
|
||||||
import {
|
import {
|
||||||
Ref,
|
Ref,
|
||||||
watch,
|
watch,
|
@ -39,10 +39,10 @@ export function useTouch() {
|
|||||||
|
|
||||||
function move(event: TouchEvent) {
|
function move(event: TouchEvent) {
|
||||||
const touch = event.touches[0];
|
const touch = event.touches[0];
|
||||||
deltaX.value = touch.clientX - this.startX;
|
deltaX.value = touch.clientX - startX.value;
|
||||||
deltaY.value = touch.clientY - this.startY;
|
deltaY.value = touch.clientY - startY.value;
|
||||||
offsetX.value = Math.abs(this.deltaX);
|
offsetX.value = Math.abs(deltaX.value);
|
||||||
offsetY.value = Math.abs(this.deltaY);
|
offsetY.value = Math.abs(deltaY.value);
|
||||||
|
|
||||||
if (!direction.value) {
|
if (!direction.value) {
|
||||||
direction.value = getDirection(offsetX.value, offsetY.value);
|
direction.value = getDirection(offsetX.value, offsetY.value);
|
@ -14,6 +14,7 @@
|
|||||||
"include": [
|
"include": [
|
||||||
"types/**/*",
|
"types/**/*",
|
||||||
"src/**/*",
|
"src/**/*",
|
||||||
|
"src-next/**/*"
|
||||||
],
|
],
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"**/*.spec.ts",
|
"**/*.spec.ts",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
name: 'vant',
|
name: 'vant',
|
||||||
build: {
|
build: {
|
||||||
srcDir: 'src-v3',
|
srcDir: 'src-next',
|
||||||
skipInstall: ['lazyload'],
|
skipInstall: ['lazyload'],
|
||||||
site: {
|
site: {
|
||||||
publicPath: 'https://b.yzcdn.cn/vant/',
|
publicPath: 'https://b.yzcdn.cn/vant/',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user