feat: 添加常用函数
This commit is contained in:
+39
@@ -2,6 +2,7 @@
|
||||
import { onLaunch, onShow, onHide } from '@dcloudio/uni-app'
|
||||
|
||||
onLaunch(() => {
|
||||
uni.showModal({ title: '提示', content: 'App Launch' })
|
||||
console.log('App Launch')
|
||||
})
|
||||
onShow(() => {
|
||||
@@ -72,4 +73,42 @@ image {
|
||||
view {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
uni-modal {
|
||||
.uni-modal {
|
||||
@apply max-w-345 rounded-16;
|
||||
}
|
||||
|
||||
.uni-modal__hd {
|
||||
@apply p-0;
|
||||
}
|
||||
|
||||
.uni-modal__title {
|
||||
@apply p-16 text-left text-16 font-600;
|
||||
}
|
||||
|
||||
.uni-modal__bd {
|
||||
@apply mb-16 px-16 pt-0 text-left text-14 font-medium text-#666;
|
||||
}
|
||||
|
||||
.uni-modal__btn {
|
||||
@apply px-16 py-8 flex-none rounded-full shadow-none text-14;
|
||||
|
||||
&::after {
|
||||
content: none;
|
||||
}
|
||||
|
||||
&.uni-modal__btn_primary {
|
||||
@apply ml-8 bg-gray-200 !text-black;
|
||||
}
|
||||
}
|
||||
|
||||
.uni-modal__ft {
|
||||
@apply justify-end p-16 leading-normal;
|
||||
|
||||
&::after {
|
||||
content: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user