0
点赞
收藏
分享

微信扫一扫

ant-design-vue 中v-decorator设置默认值

yeamy 2022-02-18 阅读 132

必须在form表单中才会生效

例如:

   <a-form  :form="form">
          <a-row class="listPageTit" type="flex" justify="space-between">
            <a-col :span="6">
              <a-form-item >
                <a-select
                  v-decorator="['test', { initialValue: 0 }]"
                >
                  <a-select-option
                    :value="item.id"
                    v-for="item in List"
                    :key="item.id"
                    >{{ item.name }}</a-select-option
                  >
                </a-select>
              </a-form-item>
            </a-col>
          </a-row>
        </a-form>


举报

相关推荐

0 条评论