Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MiniprogramTemplate
Project
Project
Details
Activity
Releases
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
谢卓城
MiniprogramTemplate
Commits
9e502756
Commit
9e502756
authored
Mar 31, 2021
by
谢卓城
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善:1.打包忽略文件.
parent
04f73af2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
14 deletions
+18
-14
index.js
src/components/navigationbar/index.js
+12
-13
project.config.json
src/project.config.json
+6
-1
No files found.
src/components/navigationbar/index.js
View file @
9e502756
...
...
@@ -14,16 +14,16 @@ Component({
leftIcon
:
String
,
titleOpcity
:
{
type
:
Number
,
value
:
1
value
:
1
,
},
opcity
:
{
type
:
Number
,
value
:
0
value
:
0
,
},
iconOpcity
:
{
type
:
Number
,
value
:
0
}
value
:
0
,
}
,
},
externalClasses
:
[
"super-class"
],
data
:
{
...
...
@@ -32,14 +32,13 @@ Component({
navBarHeight
:
0
,
// 导航栏高度 = navBar + 状态栏高度
menuBotton
:
0
,
// 胶囊距底部间距(保持底部间距一致)
menuRight
:
0
,
// 胶囊距右方间距(方保持左、右间距一致)
menuHeight
:
0
// 胶囊高度(自定义内容可与胶囊高度保证一致)
menuHeight
:
0
,
// 胶囊高度(自定义内容可与胶囊高度保证一致)
},
pageLifetimes
:
{
// 组件所在页面的生命周期函数
show
:
function
()
{
show
:
function
()
{
this
.
setNavBarInfo
();
}
}
,
},
methods
:
{
/**
...
...
@@ -52,14 +51,14 @@ Component({
menuHeight
:
app
.
globalData
.
menuHeight
,
// 胶囊高度(自定义内容可与胶囊高度保证一致)
navBar
:
app
.
globalData
.
customBarHeight
-
app
.
globalData
.
statusBarHeight
,
navBarHeight
:
app
.
globalData
.
customBarHeight
,
top
:
app
.
globalData
.
menuBottonTop
top
:
app
.
globalData
.
menuBottonTop
,
});
},
// 这里是一个自定义方法
tagAction
(
e
)
{
console
.
log
(
e
);
var
eventOption
=
{
};
// 触发事件的选项
var
eventOption
=
{};
// 触发事件的选项
this
.
triggerEvent
(
"tagClick"
,
eventOption
);
}
}
}
,
}
,
});
src/project.config.json
View file @
9e502756
{
"description"
:
"项目配置文件"
,
"packOptions"
:
{
"ignore"
:
[]
"ignore"
:
[
{
"type"
:
"folder"
,
"value"
:
"miniprogram_npm/nmaxios/README.md"
}
]
},
"setting"
:
{
"urlCheck"
:
true
,
...
...
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