fix: 移除小程序不稳定错误组件依赖
This commit is contained in:
1 parent
38eb3962b2
commit
0fd6c664bf
14 files changed
+42
-45
No files matched your search
@@ -1,11 +0,0 @@
|
||||
Component({
|
||||
properties: {
|
||||
message: { type: String, value: "暂时无法加载内容" },
|
||||
actionText: { type: String, value: "重新加载" },
|
||||
},
|
||||
methods: {
|
||||
retry() {
|
||||
this.triggerEvent("retry");
|
||||
},
|
||||
},
|
||||
});
|
||||
@@ -1 +0,0 @@
|
||||
{ "component": true }
|
||||
@@ -1 +0,0 @@
|
||||
<view class="error"><text class="message">{{message}}</text><button class="retry" bindtap="retry">{{actionText}}</button></view>
|
||||
@@ -1,20 +0,0 @@
|
||||
.error {
|
||||
padding: 72rpx 32rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
color: var(--brand-color-muted);
|
||||
}
|
||||
.message {
|
||||
margin-bottom: 24rpx;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.retry {
|
||||
margin: 0;
|
||||
padding: 0 28rpx;
|
||||
color: var(--brand-color-primary);
|
||||
background: var(--brand-color-subtle);
|
||||
border-radius: 999rpx;
|
||||
font-size: 26rpx;
|
||||
line-height: 68rpx;
|
||||
}
|
||||
Reference in new issue
Block a user