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

Feature component calendar customize the cell #633

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from

Conversation

hnliyuan
Copy link

FixBug:
在支持多选且支持validDates。多选时不应该跨越不可选日期。
支持自定义扩展文本

@hnliyuan
Copy link
Author

有人帮我看一下这个PR, 顺便告诉我哪里需要修改吗? 第一次PR交给了Taro

@koppthe
Copy link
Collaborator

koppthe commented Jun 18, 2019

为什么要在 UI 组件嵌入业务逻辑?

@hnliyuan
Copy link
Author

为什么要在 UI 组件嵌入业务逻辑?
其实我想解决2个问题
第一个,使用的validDates+日期多选的情况下 原来是有错误的。 它可以横跨可选和不可选的日期。
第二个, 由于无法自定义cell, 可我的场景需要自定义cell的内容,我只能改原来的样式,再通过传参实现

@hnliyuan
Copy link
Author

为什么要在 UI 组件嵌入业务逻辑?

第三: 我在展示页做了一个相关业务的example。

不知道你所说的涉及到业务是关于哪块呢?

@koppthe
Copy link
Collaborator

koppthe commented Jun 18, 2019

你需要的是支持自定义 cell 内容,但 PR 的内容是将「日期+价格」这种特定业务场景加了进来。
组件支持自定义内容的功能,我们会抽一个版本统一处理,不止是日历组件,其他组件也有类似的场景

@hnliyuan
Copy link
Author

你需要的是支持自定义 cell 内容,但 PR 的内容是将「日期+价格」这种特定业务场景加了进来。
组件支持自定义内容的功能,我们会抽一个版本统一处理,不止是日历组件,其他组件也有类似的场景

既然taro有自己的开发计划,我问一个题外话。
我现在想把我fork出来的分支用于我自己的项目,可是我安装之后对比安装官方方式。 官方的文件精简的多, 而我自己安装就会原原本本把所有内容都下载到node_modules 。 且并不可用。
我感觉到是有一步操作没做,请问我应该如何实施 ?

@cca313
Copy link

cca313 commented Jul 6, 2019

@koppthe 请问现在有计划在哪个版本对自定义cell做处理吗

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

Successfully merging this pull request may close these issues.

None yet

3 participants