Skip to content

JEditTable下使用slot模式下,JSearchSelectTag无法选中。 #1095

Closed
@kaybinwong

Description

@kaybinwong
版本号:

2.1.4

问题描述:

JEditTable下使用slot模式下,JSearchSelectTag无法选中。前端不是很熟,是不是绑定的事?

截图&代码:
<j-editable-table
              :ref="refKeys[0]"
              :loading="poBillDetailTable.loading"
              :columns="poBillDetailTable.columns"
              :dataSource="poBillDetailTable.dataSource"
              :maxHeight="300"
              :rowNumber="true"
              :rowSelection="true"
              :actionButton="true"
              @valueChange="handleValueChange">
              <template v-slot:goodsId="props">
                <j-search-select-tag placeholder="请选择商品" dict="erp_goods,name,id" @change="handleChange(props)" :async="true"/>
              </template>
          </j-editable-table>

image

友情提示: 未按格式要求发帖,会直接删掉。

Activity

sjlei

sjlei commented on May 8, 2020

@sjlei

你并没有绑定值所以选不上,建议使用双向数据绑定(v-model)
使用slot的控件的值是不受JEditableTable管理的,需要你自己手动管理,可参考下面的截图

image

image

image

kaybinwong

kaybinwong commented on May 9, 2020

@kaybinwong
Author

感谢你的回答, 这样的确能实现,但是有没有办法让je管理slot的空间的值呢?这样使用起来才能无缝使用

sjlei

sjlei commented on May 12, 2020

@sjlei

感谢你的回答, 这样的确能实现,但是有没有办法让je管理slot的空间的值呢?这样使用起来才能无缝使用

目前是没有这个功能的,但是有这个计划,以后会添加的

guaicaiboshi

guaicaiboshi commented on Jul 28, 2021

@guaicaiboshi

请问这样的话,这个值怎么对应的上是哪个控件的呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @guaicaiboshi@zhangdaiscott@kaybinwong@sjlei

        Issue actions

          JEditTable下使用slot模式下,JSearchSelectTag无法选中。 · Issue #1095 · jeecgboot/JeecgBoot