diff --git a/pages.json b/pages.json
index 5707ae6dd2b5926de2734a4402a7c62c7ffdbc3e..4da23805d96e6030ee138cc8d0d62378d498eb93 100644
--- a/pages.json
+++ b/pages.json
@@ -84,7 +84,25 @@
"style": {
"navigationBarTitleText": "image"
}
- },
+ },
+ {
+ "path": "pages/component/image/image-format",
+ "style": {
+ "navigationBarTitleText": "image-format"
+ }
+ },
+ {
+ "path": "pages/component/image/image-mode",
+ "style": {
+ "navigationBarTitleText": "image-mode"
+ }
+ },
+ {
+ "path": "pages/component/image/image-path",
+ "style": {
+ "navigationBarTitleText": "image-path"
+ }
+ },
{
"path": "pages/component/web-view/web-view",
"style": {
@@ -416,6 +434,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 +514,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 0000000000000000000000000000000000000000..91d94059924b80fd96793a6635673c7afd219944
--- /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 0000000000000000000000000000000000000000..284581d60d2f835c351972b9ce50f07a225ab8df
--- /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 0000000000000000000000000000000000000000..b79445df65cb11a7b0b20cd08e49f54a28a6e190
--- /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/component/image/image-format.uvue b/pages/component/image/image-format.uvue
new file mode 100644
index 0000000000000000000000000000000000000000..35f263067ceb64dffe013c3184aca55fbb21ba1e
--- /dev/null
+++ b/pages/component/image/image-format.uvue
@@ -0,0 +1,64 @@
+
+
+
+
+
+ 支持的图片格式示例
+
+
+ {{item.format}}
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/component/image/image-mode.uvue b/pages/component/image/image-mode.uvue
new file mode 100644
index 0000000000000000000000000000000000000000..4861b947cb711a9f7e02fe6fcb38b850a30561c5
--- /dev/null
+++ b/pages/component/image/image-mode.uvue
@@ -0,0 +1,102 @@
+
+
+
+
+
+ 支持的图片缩放模式示例
+
+
+ {{item.mode}}: {{item.description}}
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/component/image/image-path.uvue b/pages/component/image/image-path.uvue
new file mode 100644
index 0000000000000000000000000000000000000000..fec25fef8d5c8cb1372e2da3009cafd7fc9afacb
--- /dev/null
+++ b/pages/component/image/image-path.uvue
@@ -0,0 +1,60 @@
+
+
+
+
+
+ 支持的图片路径示例
+
+
+ {{item.description}}
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/component/image/image.uvue b/pages/component/image/image.uvue
index 2a7b10858e2c0300710ffa5dc8c8a4c7be6b9747..de72914fe37ffdaafa1d89fea43cff078f7db68a 100644
--- a/pages/component/image/image.uvue
+++ b/pages/component/image/image.uvue
@@ -1,44 +1,58 @@
-
-
-
-
-
- 示例1
-
-
- 本地图片
-
-
-
-
-
-
-
- 示例2
-
-
- 网络图片
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/tabBar/API/API.uvue b/pages/tabBar/API/API.uvue
index 49b6784c39b16836c90a47a661a0d16d32e3ca13..3e0b1cc58cceda39d5306df4ad4851c7fdd2da5f 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 50b2d72417f0bc648e8d80e1a7e724796c3f3436..4cde75639b70d740422c56757df59003b83d055e 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',
diff --git a/static/shuijiao.jpg b/static/shuijiao.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..b654b9cd54d3065bfdacaa29924485d58bf7b281
Binary files /dev/null and b/static/shuijiao.jpg differ