Commit 839bc90e authored by TtTao's avatar TtTao

初始化:cli项目

parent 79dcd5d4
[*]
#缩进风格:空格
indent_style = tab
#缩进大小2
indent_size = 4
#换行符lf
end_of_line = lf
#字符集utf-8
charset = utf-8
unpackage
node_modules
uview-ui
MIT License
Copyright (c) 2020 www.uviewui.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
\ No newline at end of file
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="shortcut icon" type="image/x-icon" href="https://cdn.uviewui.com/uview/common/favicon.ico">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>
<%= htmlWebpackPlugin.options.title %>
</title>
<!-- 正式发布的时候使用,开发期间不启用。↓ -->
<script src="/static/common/js/touch-emulator.js"></script>
<script>
TouchEmulator();
</script>
<style>
::-webkit-scrollbar{
display: none;
}
</style>
<!-- 正式发布的时候使用,开发期间不启用。↑ -->
<script>
document.addEventListener('DOMContentLoaded', function() {
document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px'
})
</script>
<link rel="stylesheet" href="<%= BASE_URL %>static/index.css" />
</head>
<body>
<!-- 该文件为 H5 平台的模板 HTML,并非应用入口。 -->
<!-- 请勿在此文件编写页面代码或直接运行此文件。 -->
<!-- 详见文档:https://uniapp.dcloud.io/collocation/manifest?id=h5-template -->
<noscript>
<strong>本站点必须要开启JavaScript才能运行</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
<script>
/*BAIDU_STAT*/
</script>
</body>
</html>
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
color: subColor color: subColor
}" @tap="rightClick"> }" @tap="rightClick">
{{subTitle}} {{subTitle}}
<view class="u-section__right-info__icon-arrow u-flex"> <view class="u-section__right-info__icon-arrow u-flex" v-if="arrow">
<u-icon name="arrow-right" size="24" :color="subColor"></u-icon> <u-icon name="arrow-right" size="24" :color="subColor"></u-icon>
</view> </view>
</view> </view>
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
* @property {String} title 左边主标题 * @property {String} title 左边主标题
* @property {String} sub-title 右边副标题(默认更多) * @property {String} sub-title 右边副标题(默认更多)
* @property {Boolean} right 是否显示右边的内容(默认true) * @property {Boolean} right 是否显示右边的内容(默认true)
* @property {Boolean} arrow 是否显示右边箭头(默认true)
* @property {Boolean} showLine 是否显示左边的竖条(默认true) * @property {Boolean} showLine 是否显示左边的竖条(默认true)
* @property {String Number} font-size 主标题的字体大小(默认28) * @property {String Number} font-size 主标题的字体大小(默认28)
* @property {Boolean} bold 主标题是否加粗(默认true) * @property {Boolean} bold 主标题是否加粗(默认true)
...@@ -85,7 +86,12 @@ ...@@ -85,7 +86,12 @@
lineColor: { lineColor: {
type: String, type: String,
default: '' default: ''
} },
// 是否显示右边箭头
arrow: {
type: Boolean,
default: true
},
}, },
computed: { computed: {
// 左边竖条的样式 // 左边竖条的样式
......
module.exports = {
// 配置路径别名
configureWebpack: {
devServer: {
disableHostCheck: true
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment