tdesign-miniprogram icon indicating copy to clipboard operation
tdesign-miniprogram copied to clipboard

[功能] 目前小程序的开发工具,实在太共苦了。希望在 视图组件里面传递对象减少代码量

Open githublaohu opened this issue 1 year ago • 6 comments

这个功能解决了什么问题

  1. 开发速度
  2. 维护成本
  3. 可高的可读性,同时损失了 wxml 的可读性。

你建议的方案是什么

支持 对象参数,60来个组件维护成本有点大,还希望目前的vue 以及 同时能支持

githublaohu avatar Jul 10 '24 23:07 githublaohu

👋 @githublaohu,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

github-actions[bot] avatar Jul 10 '24 23:07 github-actions[bot]

@githublaohu 能举个具体例子吗?

jarmywang avatar Jul 11 '24 02:07 jarmywang

这个看起来是小程序开发工具需要解决的问题吧

uyarn avatar Jul 11 '24 03:07 uyarn

#`<t-pull-down-refresh value="{{enable}}" loadingProps="{{loadingProps}}" loadingTexts="{{['下拉刷新', '松手刷新', '正在刷新', '刷新完成']}}" bind:refresh="onRefresh" bind:scroll="onScroll"

`

这里至少有5个参数。可以的话,我希望值传递一个就行了。 正常情况下,这里至少有 7 8个参数,是在太多了。一个页面有非常多的标签。也有非常多的功能。

` class PullDownRefresh{ refresh; scroll; value; loadingProps loadingTexts..... }

const pullDownRefresh = new PullDownRefresh(); `

这样就干净多了。

githublaohu avatar Jul 11 '24 03:07 githublaohu

@jarmywang

githublaohu avatar Jul 13 '24 04:07 githublaohu

`<t-pull-down-refresh value="{{enable}}" loadingProps="{{loadingProps}}" loadingTexts="{{['下拉刷新', '松手刷新', '正在刷新', '刷新完成']}}" bind:refresh="onRefresh" bind:scroll="onScroll"

`

这里至少有5个参数。可以的话,我希望值传递一个就行了。 正常情况下,这里至少有 7 8个参数,是在太多了。一个页面有非常多的标签。也有非常多的功能。

` class PullDownRefresh{ refresh; scroll; value; loadingProps loadingTexts..... }

const pullDownRefresh = new PullDownRefresh();

`

这样就干净多了。

githublaohu avatar Jul 13 '24 13:07 githublaohu