diff --git a/dist/btn/index.wxss b/dist/btn/index.wxss
index e4bf4478..7e945c87 100644
--- a/dist/btn/index.wxss
+++ b/dist/btn/index.wxss
@@ -133,8 +133,9 @@
opacity: 1 ! important;
}
-/* ::last-child */
-.zan-btn--last-child {
+/* :last-child */
+.zan-btn--last-child,
+.zan-btn:last-child {
margin-bottom: 0;
margin-right: 0;
}
diff --git a/dist/cell/index.wxss b/dist/cell/index.wxss
index 0b64fca8..387480ef 100644
--- a/dist/cell/index.wxss
+++ b/dist/cell/index.wxss
@@ -25,7 +25,8 @@
color: #666;
}
-.zan-cell--last-child::after {
+.zan-cell--last-child::after,
+.zan-cell:last-child::after {
display: none;
}
diff --git a/example/btn/index.wxml b/example/btn/index.wxml
index 7006b5c3..4967a4d2 100644
--- a/example/btn/index.wxml
+++ b/example/btn/index.wxml
@@ -8,7 +8,7 @@
-
+
@@ -39,7 +39,7 @@
-
+
@@ -49,7 +49,7 @@
-
+
diff --git a/example/cell/index.wxml b/example/cell/index.wxml
index 6272b0f3..d779392c 100644
--- a/example/cell/index.wxml
+++ b/example/cell/index.wxml
@@ -3,27 +3,27 @@
CELL
-
+
单行列表
-
+
单行列表
详细信息
-
+
单行列表
-
+
单行列表
详细信息
@@ -36,7 +36,7 @@
多行列表
-
+
多行列表
@@ -50,7 +50,7 @@
多行列表
详细信息
-
+
多行列表
详细信息
@@ -65,7 +65,7 @@
多行列表
-
+
多行列表
@@ -80,7 +80,7 @@
多行列表
详细信息
-
+
多行列表
详细信息
diff --git a/package.json b/package.json
new file mode 100644
index 00000000..a735562a
--- /dev/null
+++ b/package.json
@@ -0,0 +1,22 @@
+{
+ "name": "zanui-weapp",
+ "version": "2.0.0",
+ "description": "高颜值、好用、易扩展的小程序 UI 库,Powered by 有赞",
+ "main": "app.js",
+ "directories": {
+ "example": "example"
+ },
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+ssh://git@github.com/youzan/zanui-weapp.git"
+ },
+ "author": "youzan",
+ "license": "ISC",
+ "bugs": {
+ "url": "https://github.com/youzan/zanui-weapp/issues"
+ },
+ "homepage": "https://github.com/youzan/zanui-weapp#readme"
+}