Closed panhaoyu closed 5 years ago
Sorry I'm new in f7vue and I'm not sure weather it's a bug. Here's a screenshot.
From the screen, we can see, I've already changed the value at elsewhere, but the value in the component didn't changed.
From this screen we can see it more clearly, the inner value is different with the outer one.
I'm a little busy these days, or I'll learn the source code myself.
And thanks for your contribution.
By the way, the smart select is really really a useful component, maybe we can make it better? At least better documentation?
This is a (multiple allowed):
[x] bug
[ ] enhancement
[ ] feature-discussion (RFC)
Framework7 Version: 2.2.1
Framework7-Vue Version: 2.0.7
Platform and Target: PC Chrome
Live Link or JSFiddle: sorry I'm new in f7vue
<f7-list-item smart-select title="课程" :smart-select-params="{ closeOnSelect: true, openIn: 'sheet'}"> <select name="task" @change="chooseTask"> <option v-if="choose.taskId===-1" selected>无课程</option> <option v-for="task in tasks" :key="task.id" :value="task.id" :selected="choose.taskId===task.id"> {{task.task}} </option> <option :value="-2">新建课程</option> </select> </f7-list-item>
Sorry about the chinese code, but I don't think it matters.
The value should change with the value
Didn't change.
Sorry I'm new in f7vue and I'm not sure weather it's a bug. Here's a screenshot.
From the screen, we can see, I've already changed the value at elsewhere, but the value in the component didn't changed.
From this screen we can see it more clearly, the inner value is different with the outer one.
I'm a little busy these days, or I'll learn the source code myself.
And thanks for your contribution.
By the way, the smart select is really really a useful component, maybe we can make it better? At least better documentation?
This is a (multiple allowed):
[x] bug
[ ] enhancement
[ ] feature-discussion (RFC)
Framework7 Version: 2.2.1
Framework7-Vue Version: 2.0.7
Platform and Target: PC Chrome
Live Link or JSFiddle: sorry I'm new in f7vue
What you did
Sorry about the chinese code, but I don't think it matters.
Expected Behavior
The value should change with the value
Actual Behavior
Didn't change.