From cc45ec0b525761b64699309adb3dc7b9bb951aed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=80=9A=E7=AA=97=E5=90=AC=E9=9B=A8=E4=B8=BF=E9=86=89?= =?UTF-8?q?=E6=97=A0=E5=BF=83?= <994039348@qq.com> Date: Wed, 9 Aug 2023 10:47:37 +0800 Subject: [PATCH] =?UTF-8?q?[docs]=20=E4=BC=98=E5=8C=96=20`move`=20?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=E6=96=B9=E6=B3=95=E6=96=87=E6=A1=A3=E6=BC=94?= =?UTF-8?q?=E7=A4=BA=E5=8A=A8=E7=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + packages/mixte/src/move/demo/move.vue | 97 ++++++++++++++++++++------- packages/unocss.config.ts | 2 +- pnpm-lock.yaml | 7 ++ 4 files changed, 81 insertions(+), 26 deletions(-) diff --git a/package.json b/package.json index 0ab6c795..811bd9d0 100644 --- a/package.json +++ b/package.json @@ -46,6 +46,7 @@ "eslint": "^8.46.0", "fast-glob": "^3.3.1", "fs-extra": "^11.1.1", + "gsap": "^3.12.2", "jsdom": "^22.1.0", "lint-staged": "^13.2.3", "magic-string": "^0.30.2", diff --git a/packages/mixte/src/move/demo/move.vue b/packages/mixte/src/move/demo/move.vue index 971df1be..b1e9bc1a 100644 --- a/packages/mixte/src/move/demo/move.vue +++ b/packages/mixte/src/move/demo/move.vue @@ -1,22 +1,21 @@ - - - - {{ num }} - - - + + + {{ num }} + + - from: - to: + from: + to: - 移动 + 移动 from @@ -24,17 +23,19 @@ diff --git a/packages/unocss.config.ts b/packages/unocss.config.ts index 36f470f4..125c913a 100644 --- a/packages/unocss.config.ts +++ b/packages/unocss.config.ts @@ -8,7 +8,7 @@ export default defineConfig({ 'm-box-b': 'flex-(~ items-center justify-center) rounded b-(1 solid neutral-3)', // 按钮 - 'm-btn': 'm-box flex-none bg-teal-5 c-white rounded-1 p-(1.5 x-3) active:bg-teal-6/90 disabled:cursor-not-allowed', + 'm-btn': 'm-box flex-none bg-teal-5 c-white rounded-1 p-(1.5 x-3) hover:bg-teal-5/80 active:bg-teal-6/90 disabled:cursor-not-allowed', // 输入框 'm-input': 'lh-none b-(1 solid neutral-3 rounded-1) p-(2 x-3)', diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 29305a3f..f62682c3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -53,6 +53,9 @@ importers: fs-extra: specifier: ^11.1.1 version: 11.1.1 + gsap: + specifier: ^3.12.2 + version: 3.12.2 jsdom: specifier: ^22.1.0 version: 22.1.0 @@ -3316,6 +3319,10 @@ packages: resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} dev: true + /gsap@3.12.2: + resolution: {integrity: sha512-EkYnpG8qHgYBFAwsgsGEqvT1WUidX0tt/ijepx7z8EUJHElykg91RvW1XbkT59T0gZzzszOpjQv7SE41XuIXyQ==} + dev: true + /gzip-size@6.0.0: resolution: {integrity: sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==} engines: {node: '>=10'}