Skip to content

Commit

Permalink
update: 重构uni-ui工程,优化 uni-card uni-list
Browse files Browse the repository at this point in the history
  • Loading branch information
mehaotian committed Sep 14, 2021
1 parent a8b81c3 commit 2ebb077
Show file tree
Hide file tree
Showing 246 changed files with 8,477 additions and 14,560 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
node_modules/
.project
unpackage/
package/
temps/example_temps/
.DS_Store
dist/
.project
.DS_Store
8 changes: 8 additions & 0 deletions .hbuilderx/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
{
"launchtype" : "remote"
},
"h5" :
{
"launchtype" : "remote"
},
"mp-weixin" :
{
"launchtype" : "remote"
},
"provider" : "aliyun",
"type" : "uniCloud"
}
Expand Down
28 changes: 4 additions & 24 deletions App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,9 @@ export default {
};
</script>

<style lang="scss">
/* #ifndef APP-NVUE */
page {
background-color: #efeff4;
}
/* #endif */
/* #ifdef H5 */
// @media screen and (min-width: 768px) {
// body{
// overflow-y: scroll;
// }
// }
.uni-app--showleftwindow .hideOnPc {
display: none !important;
<style lang="scss">
@import '@/uni_modules/uni-ui-scss';
page {
background-color: #f5f5f5;
}
.uni-app--showleftwindow uni-page-body {
background-color: #F5F5F5 !important;
min-height: 100% !important;
}
/* #endif */
</style>
1 change: 1 addition & 0 deletions common/uni-base.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$uni-test:red;
96 changes: 0 additions & 96 deletions common/uni-nvue.scss
Original file line number Diff line number Diff line change
@@ -1,96 +0,0 @@
/* 头条小程序组件内不能引入字体 */
/* #ifdef MP-TOUTIAO */
@font-face {
font-family: uniicons;
font-weight: normal;
font-style: normal;
src: url('~@/static/uni.ttf') format('truetype');
}
/* #endif */

/* #ifndef APP-NVUE */
page {
display: flex;
flex-direction: column;
box-sizing: border-box;
background-color: #efeff4;
min-height: 100%;
height: auto;
}

view {
font-size: 14px;
line-height: inherit;
}

.example {
padding: 0 15px 15px;
}

.example-info {
padding: 15px;
color: #3b4144;
background: #ffffff;
}

.example-body {
/* #ifndef APP-NVUE */
display: flex;
/* #endif */
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
padding: 0;
font-size: 14px;
background-color: #ffffff;
}
/* #endif */
.example {
padding: 0 15px;
}

.example-info {
/* #ifndef APP-NVUE */
display: block;
/* #endif */
padding: 15px;
color: #3b4144;
background-color: #ffffff;
font-size: 14px;
line-height: 20px;
}

.example-info-text {
font-size: 14px;
line-height: 20px;
color: #3b4144;
}


.example-body {
flex-direction: column;
padding: 15px;
background-color: #ffffff;
}

.word-btn-white{
font-size: 18px;
color:#FFFFFF;
}

.word-btn {
/* #ifndef APP-NVUE */
display: flex;
/* #endif */
flex-direction: row;
align-items: center;
justify-content: center;
border-radius: 6px;
height: 48px;
margin: 15px;
background-color: #007AFF;
}

.word-btn--hover {
background-color: #4ca2ff;
}
Loading

0 comments on commit 2ebb077

Please sign in to comment.