Comments (7)
👋 @guluuwater,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。
from tdesign-miniprogram.
我懂你的意思了。
你的 format 函数里会依赖异步的数据。
那你可以再获取数据之后,再重复设置一下 format
from tdesign-miniprogram.
我懂你的意思了。 你的 format 函数里会依赖异步的数据。 那你可以再获取数据之后,再重复设置一下 format
请问您说的重置一下是什么意思?可以给个实例代码吗?谢谢
from tdesign-miniprogram.
我懂你的意思了。 你的 format 函数里会依赖异步的数据。 那你可以再获取数据之后,再重复设置一下 format
请问您说的重置一下是什么意思?可以给个实例代码吗?谢谢
就是重新setData(format: () => {})
from tdesign-miniprogram.
请问这个问题最后是怎么解决的?
from tdesign-miniprogram.
请问这个问题最后是怎么解决的?
根据前面老哥的提示,我是这样整的,你可以参考下:
1、data中正常定义format,可以让他什么也不做,只返回day
data: {
format(day) { return day }
}
2、从服务端拿到数据后的处理方式:
fetchData() {
// 获取数据
...
this.setData({
format: function(day) {
// 对指定的day进行处理
...
// 处理后返回
return day;
}
})
}
from tdesign-miniprogram.
我试了,达不到预期的效果,照着样例的写法,把format的内容写到按钮里面,点击按钮,调用成功,没有提示错误,但是样式没有任何变化。
from tdesign-miniprogram.
Related Issues (20)
- [Cascader ] 级联组件picker事件能不能返回label HOT 2
- [Tabs] 当设置tabs的字体后,底部滚动条位置有偏移 HOT 2
- [Demo][Slider] 在 Demo 里的 Slider 没有留够左右边距,会和 Android 系统手势边衬区发生冲突,导致滑动被 Android 系统误判为返回手势 HOT 1
- [icon] 1.4.0版本由于size没有默认值无法给name直接传图片链接的问题 HOT 2
- [ActionSheet]遮罩残留导致遮挡 HOT 1
- [t-upload] 照片上传组件时能不能增加缩放和裁剪功能? HOT 1
- [NavBar] 微信 8049 新增了“相关服务由 xxx 提供”的提示,会遮挡标题栏,需要开发者手动适配 HOT 1
- [PullDownRefresh 下拉刷新] 当下拉刷新与SwipeCell 滑动操作一起使用时,会同时触发刷新和滑动 HOT 1
- [Progress] 环形整体大小改变不了 HOT 9
- [tdesign] 突然整个tdesign都不能正常解析路径,进行编译了, HOT 3
- t-input 不能实现双向绑定 页面值无法更改 HOT 2
- [t-tabs] StickyProps offsetTop属性未生效 HOT 2
- [Upload 上传] 点击文件上传无任何响应 HOT 2
- [t-tab-bar-item] slot="icon" 是识别不到吗 HOT 2
- [DateTimePicker] 希望能加上日期旁边显示周几的功能。(PS:show-week参数在【开发中】,已经过去好久了😂) HOT 1
- [indexes] 卡顿,多次触发 HOT 1
- [Collapse 折叠面板] 在开发工具里面能正常操作,但是上真机后点击之后并没有将折叠的内容出现 HOT 1
- [Dialog] 偶发现出现画面跳转再返回后,弹窗关闭但遮罩层还在的现象 HOT 1
- [calendar] 渲染超过1年的数据,在真机上10s以上才能展示出日历,性能非常差 HOT 1
- [按钮] 新建项目直接引入组件会报错。 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tdesign-miniprogram.