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
08b7c520
Commit
08b7c520
authored
May 20, 2024
by
pangchong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 优化组件
parent
0ce0284b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
src/components/global-icon/global-icon.vue
+1
-1
src/components/global-page/global-page.vue
+3
-1
src/pages/panel/assessment-records/edit.vue
+1
-1
No files found.
src/components/global-icon/global-icon.vue
View file @
08b7c520
...
@@ -14,7 +14,7 @@ const ps = defineProps({
...
@@ -14,7 +14,7 @@ const ps = defineProps({
default
:
'#4E5969'
default
:
'#4E5969'
},
},
size
:
{
size
:
{
type
:
Number
,
type
:
[
Number
,
String
]
,
default
:
32
default
:
32
}
}
})
})
...
...
src/components/global-page/global-page.vue
View file @
08b7c520
...
@@ -90,7 +90,7 @@ const ps = defineProps({
...
@@ -90,7 +90,7 @@ const ps = defineProps({
}
}
})
})
const
complete
=
(
data
)
=>
{
const
complete
=
(
data
)
=>
{
paging
.
value
?.
complete
(
data
||
[]
)
paging
.
value
?.
complete
(
data
||
true
)
}
}
// 获取屏幕边界到安全区域距离
// 获取屏幕边界到安全区域距离
const
{
safeAreaInsets
}
=
uni
.
getSystemInfoSync
()
const
{
safeAreaInsets
}
=
uni
.
getSystemInfoSync
()
...
@@ -104,6 +104,8 @@ const query = (pageIndex, pageSize) => {
...
@@ -104,6 +104,8 @@ const query = (pageIndex, pageSize) => {
setTimeout
(()
=>
{
setTimeout
(()
=>
{
complete
([
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
,
12
])
complete
([
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
,
12
])
},
500
)
},
500
)
}
else
{
complete
()
}
}
}
}
//返回
//返回
...
...
src/pages/panel/assessment-records/edit.vue
View file @
08b7c520
<
template
>
<
template
>
<global-page
title=
"考核记录登记"
refresherEnabled
>
<global-page
title=
"考核记录登记"
>
<view
class=
"content"
>
<view
class=
"content"
>
<view
class=
"form"
>
<view
class=
"form"
>
<view
class=
"form-item"
>
<view
class=
"form-item"
>
...
...
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