We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db79834 commit ae713d4Copy full SHA for ae713d4
packages/components/indexes/_example/base/index.js
@@ -1,6 +1,6 @@
1
Page({
2
data: {
3
- defaultCurrent: 'B',
+ current: 'B',
4
indexList: [],
5
list: [
6
{
@@ -104,7 +104,9 @@ Page({
104
105
onChange(e) {
106
const { index } = e.detail;
107
-
+ this.setData({
108
+ current: index,
109
+ });
110
console.log('change:', index);
111
},
112
packages/components/indexes/_example/base/index.wxml
@@ -2,7 +2,7 @@
<t-navbar title="TDesign" leftArrow />
</view>
<t-indexes
- current="{{defaultCurrent}}"
+ current="{{current}}"
index-list="{{indexList}}"
7
sticky-offset="{{stickyOffset}}"
8
bind:select="onSelect"
0 commit comments