feat:初始提交uni-app项目
This commit is contained in:
38
unpackage/dist/dev/mp-weixin/components/custom-nav-bar/custom-nav-bar.js
vendored
Normal file
38
unpackage/dist/dev/mp-weixin/components/custom-nav-bar/custom-nav-bar.js
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const utils_system = require("../../utils/system.js");
|
||||
if (!Array) {
|
||||
const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
|
||||
_easycom_uni_icons2();
|
||||
}
|
||||
const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
|
||||
if (!Math) {
|
||||
_easycom_uni_icons();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "custom-nav-bar",
|
||||
props: {
|
||||
title: {
|
||||
type: String,
|
||||
default: "壁纸"
|
||||
}
|
||||
},
|
||||
setup(__props) {
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.unref(utils_system.getStatusBarHeight)() + "px",
|
||||
b: common_vendor.t(__props.title),
|
||||
c: common_vendor.p({
|
||||
type: "search",
|
||||
size: "18",
|
||||
color: "#888"
|
||||
}),
|
||||
d: common_vendor.unref(utils_system.getTitleBarHeight)() + "px",
|
||||
e: common_vendor.unref(utils_system.getNavBarHeight)() + "px"
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-412fc155"]]);
|
||||
wx.createComponent(Component);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/custom-nav-bar/custom-nav-bar.js.map
|
||||
6
unpackage/dist/dev/mp-weixin/components/custom-nav-bar/custom-nav-bar.json
vendored
Normal file
6
unpackage/dist/dev/mp-weixin/components/custom-nav-bar/custom-nav-bar.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/components/custom-nav-bar/custom-nav-bar.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/components/custom-nav-bar/custom-nav-bar.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="layout data-v-412fc155"><view class="navbar data-v-412fc155"><view class="statusBar data-v-412fc155" style="{{'height:' + a}}"></view><view class="titleBar data-v-412fc155" style="{{'height:' + d}}"><view class="title data-v-412fc155">{{b}}</view><navigator url="/pages/search/search" class="search data-v-412fc155"><uni-icons wx:if="{{c}}" class="icon data-v-412fc155" u-i="412fc155-0" bind:__l="__l" u-p="{{c}}"></uni-icons><text class="text data-v-412fc155">搜索</text></navigator></view></view><view class="fill data-v-412fc155" style="{{'height:' + e}}"></view></view>
|
||||
60
unpackage/dist/dev/mp-weixin/components/custom-nav-bar/custom-nav-bar.wxss
vendored
Normal file
60
unpackage/dist/dev/mp-weixin/components/custom-nav-bar/custom-nav-bar.wxss
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.layout .navbar.data-v-412fc155 {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
z-index: 10;
|
||||
background: linear-gradient(to bottom, transparent 0%, #fff 400rpx), linear-gradient(to right, #beecd8 20%, #F4E2D8);
|
||||
}
|
||||
.layout .navbar .titleBar.data-v-412fc155 {
|
||||
display: flex;
|
||||
padding: 0 30rpx;
|
||||
align-items: center;
|
||||
}
|
||||
.layout .navbar .titleBar .title.data-v-412fc155 {
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
color: #000;
|
||||
}
|
||||
.layout .navbar .titleBar .search.data-v-412fc155 {
|
||||
width: 200rpx;
|
||||
height: 50rpx;
|
||||
border-radius: 60rpx;
|
||||
background: rgba(255, 255, 255, 0.4);
|
||||
margin-left: 30rpx;
|
||||
color: #999;
|
||||
font-size: 28rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.layout .navbar .titleBar .search .icon.data-v-412fc155 {
|
||||
margin-left: 5rpx;
|
||||
}
|
||||
.layout .navbar .titleBar .search .text.data-v-412fc155 {
|
||||
padding-left: 10rpx;
|
||||
}
|
||||
Reference in New Issue
Block a user