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

日期选择器格式化 #451

Merged
merged 1 commit into from
Aug 28, 2023
Merged

日期选择器格式化 #451

merged 1 commit into from
Aug 28, 2023

Conversation

uncle-lv
Copy link
Contributor

格式化日期选择器的显示和上传

layer_input.layer = {
    'params': [
        {
            'type': 'date',
            'key': 'date',
            'label': '日期',
            # 日期显示格式
            'format': 'yyyy 年 MM 月 dd 日',
            # 日期上传格式
            'value_format': 'yyyy-MM-dd',
        },
    ],
}

更多内容详见element-ui文档

@Bisns
Copy link

Bisns commented Jul 13, 2023

可以帮我看看这个吗? 日期设置默认值,没有动态更新
#466

@uncle-lv
Copy link
Contributor Author

可以帮我看看这个吗? 日期设置默认值,没有动态更新 #466

能提供一个最小化的demo吗

@newpanjing newpanjing merged commit b3bd304 into newpanjing:dev Aug 28, 2023
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.

3 participants