Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

功能建议 #2

Open
jacky8466 opened this issue Apr 5, 2022 · 4 comments
Open

功能建议 #2

jacky8466 opened this issue Apr 5, 2022 · 4 comments

Comments

@jacky8466
Copy link

1、新增、编辑、删除操作建议放在表格头部,以tools插槽的方式自定义样式等。
2、希望支持数据格式化方法,类似formatter(value,index,row){}方式格式化数据展示。

@zouzhibin
Copy link
Owner

1、新增、编辑、删除操作建议放在表格头部,以tools插槽的方式自定义样式等。 2、希望支持数据格式化方法,类似formatter(value,index,row){}方式格式化数据展示。

感谢你的建议:已经支持数据格式化方法 增加 formatter(value,index,row){}方法

@jxfsuda
Copy link

jxfsuda commented Jun 2, 2022

我觉得slot要好点, js里面混写标签,感觉蛮难受, 以下是我想自定义表头,需求需要里面花花绿绿,还要有按钮动态固定某一列.
同理, 数据行里面也要.
再接着问:
有没有合并列. 子表收缩/展开功能

 <slot name="header" :item="item" :index="index" v-if="$slots.header"></slot>
						  <template v-else>
							  <template v-if="item.type==='selection'">
							    <view class="checkbox-item">
							      <tableCheckbox
							          :indeterminate="indeterminate" :checked="checkedAll" @checkboxSelected="checkboxSelectedAll"></tableCheckbox>
							    </view>
							  </template>
							  <template v-else>
							    {{ item.label }}
							    <view class="sorter-table" v-if="item.sorter">
							      <view :class="['sorter-table-icon',item.sorterMode==='_asc'&&`sorting${item.sorterMode||''}`]"></view>
							      <view :class="['sorter-table-icon',item.sorterMode==='_desc'&&`sorting${item.sorterMode||''}`]"></view>
							    </view>
							  </template>
						  </template> 

@kaimzhou
Copy link

希望支持单元合并~

@wenqing-SG
Copy link

喜欢单击行可以有column参数

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants