diff --git a/dist/example/index.html b/dist/example/index.html index b155854..3e1e975 100644 --- a/dist/example/index.html +++ b/dist/example/index.html @@ -412,7 +412,7 @@
- 国家/地区 +
diff --git a/src/example/snapshot/cell.png b/src/example/snapshot/cell.png index 138cab5..e4d55c2 100644 Binary files a/src/example/snapshot/cell.png and b/src/example/snapshot/cell.png differ diff --git a/src/style/base/variable/weui_cell.less b/src/style/base/variable/weui_cell.less index 30110ad..3302cd3 100644 --- a/src/style/base/variable/weui_cell.less +++ b/src/style/base/variable/weui_cell.less @@ -6,6 +6,7 @@ @weuiCellHeight: 44px; @weuiCellFontSize:17px; @weuiCellTipsFontSize:14px; +@weuiCellLabelWidth:105px; @weuiCellLineHeight: unit((@weuiCellHeight - 2 * @weuiCellGapV) / @weuiCellFontSize); // 高度为44px,减去上下padding的行高 @weuiCellsMarginTop:unit(20 / @weuiCellFontSize, em); \ No newline at end of file diff --git a/src/style/widget/weui_cell/weui_form/weui_form_common.less b/src/style/widget/weui_cell/weui_form/weui_form_common.less index 0c6d9b1..e9a2cb7 100644 --- a/src/style/widget/weui_cell/weui_form/weui_form_common.less +++ b/src/style/widget/weui_cell/weui_form/weui_form_common.less @@ -2,7 +2,7 @@ .weui_label{ display:block; - width:3em; + width:@weuiCellLabelWidth; } .weui_input { width: 100%; @@ -60,9 +60,6 @@ color:@globalWarnColor; .weui_icon_warn{display:inline-block;} } - .weui_cell_hd { - padding-right: .3em; - } .weui_cell_ft{font-size:0;} .weui_icon_warn{ display:none; diff --git a/src/style/widget/weui_cell/weui_form/weui_select.less b/src/style/widget/weui_cell/weui_form/weui_select.less index 03c1f44..14b5bc6 100644 --- a/src/style/widget/weui_cell/weui_form/weui_select.less +++ b/src/style/widget/weui_cell/weui_form/weui_select.less @@ -29,6 +29,7 @@ width: 100%; font-size: inherit; height: @weuiCellHeight; + line-height: @weuiCellHeight; position: relative; z-index: 1; padding-left: @weuiCellGapH; diff --git a/src/style/widget/weui_cell/weui_form/weui_select_after.less b/src/style/widget/weui_cell/weui_form/weui_select_after.less index b316cb6..636d05a 100644 --- a/src/style/widget/weui_cell/weui_form/weui_select_after.less +++ b/src/style/widget/weui_cell/weui_form/weui_select_after.less @@ -3,4 +3,7 @@ .weui_select_after { padding-left:@weuiCellGapH; + .weui_select { + padding-left:0; + } } \ No newline at end of file diff --git a/src/style/widget/weui_cell/weui_form/weui_select_before.less b/src/style/widget/weui_cell/weui_form/weui_select_before.less index ee6e5cc..36bd739 100644 --- a/src/style/widget/weui_cell/weui_form/weui_select_before.less +++ b/src/style/widget/weui_cell/weui_form/weui_select_before.less @@ -3,7 +3,10 @@ .weui_select_before { padding-right:@weuiCellGapH; - .weui_select{width:auto;} + .weui_select { + width:@weuiCellLabelWidth; + box-sizing: border-box; + } .weui_cell_hd { position:relative; &:after {