From 8a78ba06557f66179b58ff87b2495586b5558227 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BC=A0=E7=A3=8A?= <1633537611@qq.com>
Date: Fri, 30 Jun 2023 19:14:24 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0previewImage=E3=80=81transiti?=
=?UTF-8?q?on=E3=80=81transform=E7=A4=BA=E4=BE=8B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages.json | 17 +++
pages/API/preview-image/preview-image.uvue | 111 ++++++++++++++++
pages/CSS/transform/transform.uvue | 36 ++++++
pages/CSS/transition/transition.uvue | 142 +++++++++++++++++++++
pages/tabBar/API/API.uvue | 5 +
pages/tabBar/CSS/CSS.uvue | 25 +++-
6 files changed, 330 insertions(+), 6 deletions(-)
create mode 100644 pages/API/preview-image/preview-image.uvue
create mode 100644 pages/CSS/transform/transform.uvue
create mode 100644 pages/CSS/transition/transition.uvue
diff --git a/pages.json b/pages.json
index 5707ae6d..3bee9201 100644
--- a/pages.json
+++ b/pages.json
@@ -416,6 +416,16 @@
"style": {
"navigationBarTitleText": "text-decoration-line"
}
+ },{
+ "path": "pages/CSS/transition/transition",
+ "style": {
+ "navigationBarTitleText": "Transition"
+ }
+ },{
+ "path": "pages/CSS/transform/transform",
+ "style": {
+ "navigationBarTitleText": "Transform"
+ }
}, {
"path": "pages/API/request/request",
"style": {
@@ -486,6 +496,13 @@
"enablePullDownRefresh": false
}
+ }, {
+ "path": "pages/API/preview-image/preview-image",
+ "style": {
+ "navigationBarTitleText": "图片预览",
+ "enablePullDownRefresh": false
+ }
+
}
],
"globalStyle": {
diff --git a/pages/API/preview-image/preview-image.uvue b/pages/API/preview-image/preview-image.uvue
new file mode 100644
index 00000000..91d94059
--- /dev/null
+++ b/pages/API/preview-image/preview-image.uvue
@@ -0,0 +1,111 @@
+
+
+
+ 图片指示器样式
+
+
+ {{item.name}}
+
+
+
+
+
+ 循环播放
+
+
+
+ 点击图片开始预览
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/CSS/transform/transform.uvue b/pages/CSS/transform/transform.uvue
new file mode 100644
index 00000000..284581d6
--- /dev/null
+++ b/pages/CSS/transform/transform.uvue
@@ -0,0 +1,36 @@
+
+
+ translateX(120%)
+ translateY(-30rpx)
+ translate(120%,50%)
+ scaleX(0.8)
+ scaleY(0.8)
+ scale(0.8,0.8)
+ rotate(20deg)
+ rotateX(50deg)
+ rotateY(50deg)
+ rotateZ(50deg)
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/CSS/transition/transition.uvue b/pages/CSS/transition/transition.uvue
new file mode 100644
index 00000000..b79445df
--- /dev/null
+++ b/pages/CSS/transition/transition.uvue
@@ -0,0 +1,142 @@
+
+
+
+ 点击修改宽度
+
+
+
+ 点击修改Margin
+
+
+
+ 点击修改Padding
+
+
+
+
+
+ 点击修改Background
+
+
+
+ 点击修改Transform
+
+
+
+ 点击修改Border
+
+
+
+ 点击修改Position
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/tabBar/API/API.uvue b/pages/tabBar/API/API.uvue
index 49b6784c..3e0b1cc5 100644
--- a/pages/tabBar/API/API.uvue
+++ b/pages/tabBar/API/API.uvue
@@ -270,6 +270,11 @@
name: "图片",
url: "image",
},
+ {
+ name: "图片预览",
+ url: "preview-image",
+ enable: true
+ },
// #ifndef MP-LARK
{
name: "音频",
diff --git a/pages/tabBar/CSS/CSS.uvue b/pages/tabBar/CSS/CSS.uvue
index 50b2d724..4cde7563 100644
--- a/pages/tabBar/CSS/CSS.uvue
+++ b/pages/tabBar/CSS/CSS.uvue
@@ -5,19 +5,16 @@
uni-app x目前已支持的CSS属性,展示样式仅供参考,文档详见:
-
+
{{item.name}}
-
+
- {{page.name}}
+ {{page.name}}
@@ -298,6 +295,22 @@
url: 'pages/CSS/text/text-decoration-line'
}
] as Page[]
+ }, {
+ id: 'animate',
+ name: '动画',
+ open: false,
+ pages: [
+ {
+ name: 'transition',
+ enable: true,
+ url: 'pages/CSS/transition/transition'
+ },
+ {
+ name: 'transform',
+ enable: true,
+ url: 'pages/CSS/transform/transform'
+ }
+ ] as Page[]
}
] as ListItem[],
arrowUpIcon: '/static/icons/arrow-up.png',
--
GitLab