no message
This commit is contained in:
44
unpackage/dist/dev/mp-alipay/components/search/search.acss
vendored
Normal file
44
unpackage/dist/dev/mp-alipay/components/search/search.acss
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
.Fixed {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
padding: 0 30rpx;
|
||||
z-index: 99;
|
||||
}
|
||||
.search {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.search_left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
justify-content: start;
|
||||
font-weight: bold;
|
||||
font-size: 40rpx;
|
||||
color: #232323;
|
||||
height: 86rpx;
|
||||
}
|
||||
.search_left_img {
|
||||
width: 36rpx;
|
||||
height: 36rpx;
|
||||
margin-right: 15rpx;
|
||||
}
|
||||
.search .opacityLeft {
|
||||
background: rgba(255, 255, 255, 0.27);
|
||||
border-radius: 10rpx 10rpx 10rpx 10rpx;
|
||||
padding: 0 10rpx;
|
||||
}
|
||||
.search_right {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
justify-content: start;
|
||||
height: 86rpx;
|
||||
background: #ffffff;
|
||||
box-shadow: inset 0rpx 0rpx 22rpx 2rpx #f9fbff;
|
||||
border-radius: 20rpx 20rpx 20rpx 20rpx;
|
||||
}
|
||||
1
unpackage/dist/dev/mp-alipay/components/search/search.axml
vendored
Normal file
1
unpackage/dist/dev/mp-alipay/components/search/search.axml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="{{f}}"><view style="{{'height:' + a}}"></view><view style="height:44px"></view><view class="search"><view class="search_right p30"><up-input onChange="{{b}}" onConfirm="{{c}}" u-i="030144b5-0" onVI="__l" onUpdateModelValue="{{d}}" u-p="{{e}}"></up-input></view></view></view>
|
||||
48
unpackage/dist/dev/mp-alipay/components/search/search.js
vendored
Normal file
48
unpackage/dist/dev/mp-alipay/components/search/search.js
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
if (!Array) {
|
||||
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
|
||||
_easycom_up_input2();
|
||||
}
|
||||
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
|
||||
if (!Math) {
|
||||
_easycom_up_input();
|
||||
}
|
||||
const _sfc_main = {
|
||||
__name: "search",
|
||||
props: {
|
||||
Fixed: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
emits: ["change", "search"],
|
||||
setup(__props, { emit: __emit }) {
|
||||
let value = common_vendor.ref("");
|
||||
const statusBarHeight = common_vendor.index.getSystemInfoSync().statusBarHeight + "px";
|
||||
const emits = __emit;
|
||||
let change = (e) => {
|
||||
emits("change", e);
|
||||
};
|
||||
let confirm = (e) => {
|
||||
emits("search", e);
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: statusBarHeight,
|
||||
b: common_vendor.o(common_vendor.unref(change)),
|
||||
c: common_vendor.o(common_vendor.unref(confirm)),
|
||||
d: common_vendor.o(($event) => common_vendor.isRef(value) ? value.value = $event : value = $event),
|
||||
e: common_vendor.p({
|
||||
placeholder: "查找地点、电站",
|
||||
confirmType: "search",
|
||||
suffixIcon: "/static/icon/search.png",
|
||||
border: "none",
|
||||
modelValue: common_vendor.unref(value)
|
||||
}),
|
||||
f: common_vendor.n(__props.Fixed ? "Fixed" : "")
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
my.createComponent(_sfc_main);
|
||||
7
unpackage/dist/dev/mp-alipay/components/search/search.json
vendored
Normal file
7
unpackage/dist/dev/mp-alipay/components/search/search.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"styleIsolation": "apply-shared",
|
||||
"usingComponents": {
|
||||
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user