Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wx-boss
Project
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
姜雷
wx-boss
Commits
182543ec
Commit
182543ec
authored
Nov 11, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test'
parents
2c81b80e
460b6bf4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
AreaSelect.js
miniprogram/pages/components/AreaSelect/AreaSelect.js
+3
-3
AreaSelect.ts
miniprogram/pages/components/AreaSelect/AreaSelect.ts
+1
-1
AreaSelect.wxml
miniprogram/pages/components/AreaSelect/AreaSelect.wxml
+1
-1
No files found.
miniprogram/pages/components/AreaSelect/AreaSelect.js
View file @
182543ec
...
...
@@ -116,11 +116,11 @@ Component({
}
else
{
this
.
setData
({
selected
:
this
.
data
.
range
[
value
].
id
,
selected
:
this
.
data
.
filterList
[
value
].
id
,
selectedIndex
:
value
,
});
}
},
},
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQXJlYVNlbGVjdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIkFyZWFTZWxlY3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSw0Q0FBNEM7QUFHNUMsU0FBUyxDQUFDO0lBQ1IsVUFBVSxFQUFFO1FBQ1YsV0FBVyxFQUFFO1lBQ1gsSUFBSSxFQUFFLE1BQU07WUFDWixLQUFLLEVBQUUsS0FBSztTQUNiO1FBQ0QsS0FB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XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBmaWx0ZXJMaXN0ID0gdGhpcy5kYXRhLnJhbmdlO1xuICAgICAgfVxuICAgICAgdGhpcy5zZXREYXRhKHtcbiAgICAgICAgZmlsdGVyTGlzdCxcbiAgICAgIH0pO1xuICAgIH0sXG4gICAgYmluZFBpY2tlckNoYW5nZSgpIHtcbiAgICAgIGxldCB2YWx1ZSA9IHRoaXMuZGF0YS5zZWxlY3RlZDtcbiAgICAgIHRoaXMuc2V0RGF0YSEoe1xuICAgICAgICBzaG93UGlja2VyVmlldzogZmFsc2UsXG4gICAgICB9KTtcbiAgICAgIHRoaXMudHJpZ2dlckV2ZW50KCdjaGFuZ2UnLCB7IHZhbHVlIH0sIHt9KTtcbiAgICB9LFxuICAgIHNlbGVjdGVkSGFuZGxlKGUpIHtcbiAgICAgIGNvbnN0IHsgdmFsdWUgfSA9IGUuY3VycmVudFRhcmdldC5kYXRhc2V0O1xuICAgICAgY29uc29sZS5sb2coZSwgdmFsdWUpO1xuICAgICAgaWYgKHRoaXMuZGF0YS5zZWxlY3RlZEluZGV4ID09PSB2YWx1ZSkge1xuICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgIHNlbGVjdGVkOiAnJyxcbiAgICAgICAgICBzZWxlY3RlZEluZGV4OiAnJyxcbiAgICAgICAgfSk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICB0aGlzLnNldERhdGEoe1xuICAgICAgICAgIHNlbGVjdGVkOiB0aGlzLmRhdGEucmFuZ2VbdmFsdWVdLmlkLFxuICAgICAgICAgIHNlbGVjdGVkSW5kZXg6IHZhbHVlLFxuICAgICAgICB9KTtcbiAgICAgIH1cbiAgICB9LFxuICB9LFxufSk7XG4iXX0=
\ No newline at end of file
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQXJlYVNlbGVjdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIkFyZWFTZWxlY3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mRleDogdmFsdWUsXG4gICAgICAgIH0pO1xuICAgICAgfVxuICAgIH0sXG4gIH0sXG59KTtcbiJdfQ==
\ No newline at end of file
miniprogram/pages/components/AreaSelect/AreaSelect.ts
View file @
182543ec
...
...
@@ -111,7 +111,7 @@ Component({
});
}
else
{
this
.
setData
({
selected
:
this
.
data
.
range
[
value
].
id
,
selected
:
this
.
data
.
filterList
[
value
].
id
,
selectedIndex
:
value
,
});
}
...
...
miniprogram/pages/components/AreaSelect/AreaSelect.wxml
View file @
182543ec
...
...
@@ -5,7 +5,7 @@
<!-- </picker> -->
<view class="areaselect-picker" bindtap="inputClickHandle">
<view wx:if="{{mode === 'page' && selected}}" class="select-value">{{showText}}</view>
<view wx:elif="{{selected}}" class="select-value">{{
range
[selectedIndex][rangeKey]}}</view>
<view wx:elif="{{selected}}" class="select-value">{{
filterList
[selectedIndex][rangeKey]}}</view>
<view wx:else class="select-placeholder">{{placeholder}}</view>
<image class="select-icon" src="../../../images/btn_xiala@2x.png" mode="aspectFill" />
</view>
...
...
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