Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mocp-uniapp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pangchong
mocp-uniapp
Commits
9e805166
Commit
9e805166
authored
May 15, 2024
by
pangchong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 提交
parent
2bbea434
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
src/components/custom-button/custom-button.vue
+2
-1
src/pages/panel/app-center/index.vue
+8
-4
No files found.
src/components/custom-button/custom-button.vue
View file @
9e805166
<
template
>
<
template
>
<button
:class=
"getClass"
:style=
"
getS
tyle"
:loading=
"loading"
:disabled=
"disabled"
>
<button
:class=
"getClass"
:style=
"
s
tyle"
:loading=
"loading"
:disabled=
"disabled"
>
<slot></slot>
<slot></slot>
</button>
</button>
</
template
>
</
template
>
...
@@ -57,6 +57,7 @@ const getSize = computed(() => {
...
@@ -57,6 +57,7 @@ const getSize = computed(() => {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.global-button
{
.global-button
{
padding
:
0
32
rpx
;
padding
:
0
32
rpx
;
margin
:
0
;
height
:
v-bind
(
getSize
);
height
:
v-bind
(
getSize
);
line-height
:
v-bind
(
getSize
);
line-height
:
v-bind
(
getSize
);
font-size
:
28
rpx
;
font-size
:
28
rpx
;
...
...
src/pages/panel/app-center/index.vue
View file @
9e805166
...
@@ -4,14 +4,14 @@
...
@@ -4,14 +4,14 @@
<uni-icons
type=
"left"
size=
"16"
></uni-icons>
<uni-icons
type=
"left"
size=
"16"
></uni-icons>
</
template
>
</
template
>
<
template
#
right
>
<
template
#
right
>
<custom-button
type=
"primary"
>
保存
</custom-button>
<custom-button
type=
"primary"
size=
"small"
>
保存
</custom-button>
</
template
>
</
template
>
</custom-navbar>
</custom-navbar>
<view
class=
"content"
>
<view
class=
"content"
>
<view
class=
"card"
>
<view
class=
"card"
>
<view
class=
"card-title"
>
<view
class=
"card-title"
>
<view
class=
"card-title-txt"
>
首页应用
</view>
<view
class=
"card-title-txt"
>
首页应用
</view>
<custom-button
type=
"primary"
class=
"card-title-button"
>
编辑
</custom-button>
<custom-button
type=
"primary"
size=
"small"
class=
"card-title-button"
>
编辑
</custom-button>
</view>
</view>
<view
class=
"menu-list"
>
<view
class=
"menu-list"
>
<menu-item
class=
"menu-item"
v-for=
"item in menuList"
:data=
"item"
:key=
"item.id"
></menu-item>
<menu-item
class=
"menu-item"
v-for=
"item in menuList"
:data=
"item"
:key=
"item.id"
></menu-item>
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
</view>
</view>
<view
class=
"card"
>
<view
class=
"card"
>
<view
class=
"card-title"
>
<view
class=
"card-title"
>
<view
class=
"card-title-txt"
>
首页
应用
</view>
<view
class=
"card-title-txt"
>
全部
应用
</view>
</view>
</view>
<view
class=
"menu-list"
>
<view
class=
"menu-list"
>
<menu-item
class=
"menu-item"
v-for=
"item in menuList"
:data=
"item"
:key=
"item.id"
></menu-item>
<menu-item
class=
"menu-item"
v-for=
"item in menuList"
:data=
"item"
:key=
"item.id"
></menu-item>
...
@@ -38,9 +38,13 @@ import { menuList } from '../constants/data.config'
...
@@ -38,9 +38,13 @@ import { menuList } from '../constants/data.config'
.card
{
.card
{
border-radius
:
12
rpx
;
border-radius
:
12
rpx
;
background
:
#fff
;
background
:
#fff
;
padding
:
32
rpx
0
0
0
;
margin-bottom
:
16
rpx
;
.card-title
{
.card-title
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
padding
:
0
16
rpx
;
margin-bottom
:
14
rpx
;
.card-title-txt
{
.card-title-txt
{
font-size
:
34
rpx
;
font-size
:
34
rpx
;
color
:
#1d2129
;
color
:
#1d2129
;
...
@@ -54,7 +58,7 @@ import { menuList } from '../constants/data.config'
...
@@ -54,7 +58,7 @@ import { menuList } from '../constants/data.config'
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
.menu-item
{
.menu-item
{
width
:
25%
;
width
:
25%
;
margin
-bottom
:
48
rpx
;
margin
:
14
rpx
0
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment