Skip to content

Commit a47b2bf

Browse files
author
Yoshimasa Obayashi
authored
docs: update faq of en-US, syncing with zh-CN (#1801)
1 parent 2beccb5 commit a47b2bf

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docs/vue/faq.en-US.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Second, if you don't use the form's automatic check/collection feature, ie you d
2222

2323
### How to modify the default theme of Ant Design Vue?
2424

25-
See [Customize Theme](/docs/vue/customize-theme/)
25+
See [Customize Theme](/docs/vue/customize-theme/).
2626

2727
### How to optimize momentjs bundle size with webpack?
2828

@@ -42,8 +42,17 @@ Yes, ant-design-vue is designed to develop a complete background application, we
4242

4343
Or, follow the instructions in [How to avoid modifying global styles?](docs/react/customize-theme#How-to-avoid-modifying-global-styles-?)
4444

45+
### `ant-design-vue` makes only poor user experience on mobile.
46+
47+
`ant-design-vue` is not designed for mobile.
48+
4549
### When I set `mode` to DatePicker/RangePicker, I cannot select year or month anymore?
4650

4751
In a real world development, you may need a YearPicker, MonthRangePicker or WeekRangePicker. You are trying to add `mode` to DatePicker/RangePicker expected to implement those pickers. However, the DatePicker/RangePicker cannot be selected and the panels won't close now.
4852

4953
That is because `<DatePicker mode="year" />` do not equal to `YearPicker`, `<RangePicker mode="month" />` do not equal to `MonthRangePicker` either. The `mode` property was added to support [showing time picker panel in DatePicker](https://github.com/ant-design/ant-design/issues/5190), which simply control the displayed panel and won't change the original date picking behavior of `DatePicker/RangePicker` (for instance you still need to click date cell to finish selection in a DatePicker, whatever the `mode` is).
54+
55+
##### Solution
56+
57+
The following articles are the implementation articles of the react version, the ideas are the same.
58+
In [one article](https://juejin.im/post/5cf65c366fb9a07eca6968f9) or [another article](https://www.cnblogs.com/zyl-Tara/p/10197177.html) approach, using methods `mode` and `panelChange` to encapsulate a component such as `YearPicker`. We plan to add more date related components directly in [email protected] to support these needs.

0 commit comments

Comments
 (0)