Open XaoflySho opened 2 years ago
Translation of this issue:
2.15.6
Windows 10/Chrome 94.0.4606.81
2.6.14
https://codepen.io/zlucy/pen/gOxLoBE
<el-time-picker
is-range name=\"picker\"
id=\"picker\" v-model=\"value1\"
Range separator = \"to\" Start placeholder = \"start time\"
End placeholder = \"end time\" Placeholder = \"select time range\" >
Add the name and ID attributes to the time picker.
After parsing, the name and ID are split.
< div class = \"El date editor El range editor El input_inner El date editor -- timerange\" name = \"picker\" id = \"picker\" > < I class = \"El input_icon El range_icon El icon time\" > < / I > < input autocomplete = \"off\" placeholder = \"start time\" name = \"P\" class = \"El range input\" > < span class = \"El range separator\" > to < / span > < input autocomplete = \"off\" placeholder = \"end time\" name=\"i\" class=\"el-range-input\"><i class=\"el-inputicon el-rangeclose-icon\">
< div class = \"El date editor El range editor El input_inner El date editor -- timerange\" > < I class = \"El input_icon El range_icon El icon time\" > < / I > < input autocomplete = \"off\" placeholder = \"start time\" name = \"P\" id = \"P\" class = \"El range input\" > < span class = \"El range separator\" > to < / span > < input autocomplete = \"off\" placeholder = \"end time\" name = \"I\" id = \"I\" class=\"el-range-input\"><i class=\"el-inputicon el-rangeclose-icon\">
Element UI version
2.15.6
OS/Browsers version
Windows 10/Chrome 94.0.4606.81
Vue version
2.6.14
Reproduction Link
https://codepen.io/zlucy/pen/gOxLoBE
Steps to reproduce
为 time picker 添加 name 和 id 属性。 解析后,name 和 id 被拆分。
What is Expected?
What is actually happening?