-
Notifications
You must be signed in to change notification settings - Fork 124
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
feat(Calendar): new component #188
Conversation
src/Calendar/index.axml
Outdated
<view class="amd-calendar-default-title"> | ||
<text>日期选择</text> | ||
<image onTap="onClose" src="https://gw.alipayobjects.com/mdn/rms_6d74f8/afts/img/A*8wn2TKSKSSUAAAAAAAAAAAAAARQnAQ" class="amd-calendar-default-title-close" /> | ||
</view> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
只能是弹出式?怎么满足类似12306的场景(平铺式)需求?
082bcdb
to
bbdfeb3
Compare
defdbee
to
56c531b
Compare
src/Calendar/index.md
Outdated
|
||
| 属性 | 类型 | 必填 | 默认值 | 说明 | | ||
| -----|-----|-----|-----|----- | | ||
| startDate | string | 否 | - | 日历开始时间 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
startDate,endDate, selectDate等感觉是Date类型更好一点
| holidayList | {name: string; range: [string, string]; type: 'holiday' | 'work'; day: string}[] | 否 | - | 节假日信息 | | ||
| showConfirmButton | boolean | 否 | true | 是否展示确认按钮 | | ||
| showResetButton | boolean | 否 | false | 是否展示重置按钮 | | ||
| showlunar | boolean | 否 | false | 是否展示农历 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
showlunar 建议改成showLunar
src/Calendar/index.md
Outdated
| startDate | string | 否 | - | 日历开始时间 | | ||
| endDate | string | 否 | - | 日历结束时间 | | ||
| selectDate | string | 否 | - | 默认选择日期 | | ||
| selectRange | [string, string] | 否 | - | 默认选择范围 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
| 事件名 | 说明 | 类型 | | ||
| -----|-----|-----| | ||
| onClose | 点击关闭按钮回调 | (void) => void | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onChange缺失
src/Calendar/index.md
Outdated
| showConfirmButton | boolean | 否 | true | 是否展示确认按钮 | | ||
| showResetButton | boolean | 否 | false | 是否展示重置按钮 | | ||
| showlunar | boolean | 否 | false | 是否展示农历 | | ||
| titleShow | boolean | 否 | - | 是否展示标题 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
建议改成showTitle
src/Calendar/index.axml
Outdated
</view> | ||
<view class="amd-calendar-button-wrapper" a:if="{{showConfirmButton}}"> | ||
<view class="amd-calendar-botton-inner-cancel" a:if="{{showCancelButton}}" onTap="onCancel">重 置</view> | ||
<view class="amd-calendar-botton-inner-check" onTap="onCheck">确 认</view> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
未选择状态确定按钮给个状态?现在点不动也没有反馈
No description provided.