xiaohuoni = xiaohu + oni 小虎是我初中开始用的笔名,oni 是一个拟声词,替代一种不常见的少数名族方言,是“心中的太阳”的意思。是我的乳名。
-
狂热户外爱好者
-
alita 的作者。
-
umi 核心开发成员。
-
辅助维护 antd、ant-design-pro和 dumi,主要是帮忙做一点答疑工作、文档维护和简单 Issues 关闭。
-
有任何问题,可添加本人微信咨询。 yu_xiaohu
antd@4, how to use `generatePicker` (or `generateCalendar`) helps to create Picker components
xiaohuoni = xiaohu + oni 小虎是我初中开始用的笔名,oni 是一个拟声词,替代一种不常见的少数名族方言,是“心中的太阳”的意思。是我的乳名。
狂热户外爱好者
alita 的作者。
umi 核心开发成员。
辅助维护 antd、ant-design-pro和 dumi,主要是帮忙做一点答疑工作、文档维护和简单 Issues 关闭。
有任何问题,可添加本人微信咨询。 yu_xiaohu
按照 #27 设置中文后,组件popup中仍为默认的英文
代码如下,报错见附2
// 我这边的时间格式如下:
// let startTime = "2020-12-07 12:00:00"
// let endTime = "2020-12-09 12:00:00"
import { Form } from 'antd';
import { DatePicker } from '@/components/Datetime'; // 此处按照官方方式书写,写法图见附1
import format from 'dayjs';
const { RangePicker } = DatePicker;
<Form
labelCol={labelCol}
wrapperCol={wrapperCol}
form={form}
name="form_in_modal"
initialValues={{
start_end:
startTime && endTime
? [
format(startTime, 'YYYY-MM-DD HH:mm:ss'),
format(endTime, 'YYYY-MM-DD HH:mm:ss'),
]
: [],
}}
>
<Form.Item
name="start_end"
label="开始结束"
rules={[
{ type: 'array' as const, required: true, message: '请选择时间' },
]}
>
<RangePicker
showTime={{ format: 'HH:mm:ss' }}
format="YYYY-MM-DD HH:mm:ss"
/>
</Form.Item>
</Form>
附1: DatePicker
版本是4.0.4
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.