framework7io / framework7-vue

Deprecated! Build full featured iOS & Android apps using Framework7 & Vue
http://framework7.io/vue/
MIT License
674 stars 151 forks source link

About responsive in smart select #406

Closed panhaoyu closed 5 years ago

panhaoyu commented 6 years ago

Sorry I'm new in f7vue and I'm not sure weather it's a bug. Here's a screenshot. image

From the screen, we can see, I've already changed the value at elsewhere, but the value in the component didn't changed.

image

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):

What you did

      <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.

Expected Behavior

The value should change with the value

Actual Behavior

Didn't change.