Pārlūkot izejas kodu

DatePicker: input display style changes to block, fixed #2018

qingwei.li 8 gadi atpakaļ
vecāks
revīzija
b3095a703c

+ 7 - 0
examples/docs/en-US/date-picker.md

@@ -1,3 +1,10 @@
+<style>
+  .demo-date-picker .el-input {
+    width: 180px;
+    margin: auto;
+  }
+</style>
+
 <script>
   module.exports = {
     data() {

+ 7 - 0
examples/docs/en-US/datetime-picker.md

@@ -1,3 +1,10 @@
+<style>
+  .demo-datetime-picker .el-input {
+    width: 180px;
+    margin: auto;
+  }
+</style>
+
 <script>
   module.exports = {
     data() {

+ 7 - 0
examples/docs/en-US/time-picker.md

@@ -1,3 +1,10 @@
+<style>
+  .demo-time-picker .el-input {
+    width: 180px;
+    display: inline-block;
+  }
+</style>
+
 ## TimePicker
 
 Use Time Picker for time input.

+ 7 - 0
examples/docs/zh-CN/date-picker.md

@@ -1,3 +1,10 @@
+<style>
+  .demo-date-picker .el-input {
+    width: 180px;
+    margin: auto;
+  }
+</style>
+
 <script>
   module.exports = {
     data() {

+ 7 - 0
examples/docs/zh-CN/datetime-picker.md

@@ -1,3 +1,10 @@
+<style>
+  .demo-datetime-picker .el-input {
+    width: 180px;
+    margin: auto;
+  }
+</style>
+
 <script>
   module.exports = {
     data() {

+ 4 - 0
examples/docs/zh-CN/time-picker.md

@@ -1,4 +1,8 @@
 <style>
+  .demo-time-picker .el-input {
+    width: 180px;
+    display: inline-block;
+  }
   .demo-box {
     .el-date-editor + .el-date-editor {
       margin-left: 10px;

+ 0 - 3
packages/theme-default/src/date-picker/picker.css

@@ -3,9 +3,6 @@
 
 @component-namespace el {
   @b date-editor {
-    position: relative;
-    display: inline-block;
-
     .el-picker-panel {
       position: absolute;
       min-width: 180px;