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 {
|
||||
Ref,
|
||||
watch,
|
@ -39,10 +39,10 @@ export function useTouch() {
|
||||
|
||||
function move(event: TouchEvent) {
|
||||
const touch = event.touches[0];
|
||||
deltaX.value = touch.clientX - this.startX;
|
||||
deltaY.value = touch.clientY - this.startY;
|
||||
offsetX.value = Math.abs(this.deltaX);
|
||||
offsetY.value = Math.abs(this.deltaY);
|
||||
deltaX.value = touch.clientX - startX.value;
|
||||
deltaY.value = touch.clientY - startY.value;
|
||||
offsetX.value = Math.abs(deltaX.value);
|
||||
offsetY.value = Math.abs(deltaY.value);
|
||||
|
||||
if (!direction.value) {
|
||||
direction.value = getDirection(offsetX.value, offsetY.value);
|
@ -14,6 +14,7 @@
|
||||
"include": [
|
||||
"types/**/*",
|
||||
"src/**/*",
|
||||
"src-next/**/*"
|
||||
],
|
||||
"exclude": [
|
||||
"**/*.spec.ts",
|
||||
|
@ -1,7 +1,7 @@
|
||||
module.exports = {
|
||||
name: 'vant',
|
||||
build: {
|
||||
srcDir: 'src-v3',
|
||||
srcDir: 'src-next',
|
||||
skipInstall: ['lazyload'],
|
||||
site: {
|
||||
publicPath: 'https://b.yzcdn.cn/vant/',
|
||||
|
Loading…
x
Reference in New Issue
Block a user