forked from p96170835/amis
添加城市选择器
This commit is contained in:
parent
a0a4c7198a
commit
a4a3dd2b5c
|
@ -993,6 +993,14 @@ export default {
|
|||
{
|
||||
type: "divider"
|
||||
},
|
||||
{
|
||||
type: "city",
|
||||
name: "city",
|
||||
label: "城市选择器"
|
||||
},
|
||||
{
|
||||
type: "divider"
|
||||
},
|
||||
{
|
||||
type: "matrix",
|
||||
name: "matrix",
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
.#{$ns}CityPicker {
|
||||
.#{$ns}Select + .#{$ns}Select {
|
||||
margin-left: $gap-xs;
|
||||
}
|
||||
|
||||
&-input {
|
||||
outline: none;
|
||||
vertical-align: middle;
|
||||
margin-left: $gap-xs;
|
||||
border: $Form-input-borderWidth solid $Form-input-borderColor;
|
||||
border-radius: $Form-input-borderRadius;
|
||||
// height: $Form-input-height;
|
||||
line-height: $Form-input-lineHeight;
|
||||
padding: $Form-input-paddingY $Form-input-paddingX;
|
||||
font-size: $Form-input-fontSize;
|
||||
|
||||
&::placeholder {
|
||||
color: $Form-input-placeholderColor;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
border-color: $Form-input-onFocused-borderColor;
|
||||
box-shadow: $Form-input-boxShadow;
|
||||
|
||||
@if $Form-input-onFocused-bg !=$Form-input-bg {
|
||||
background-color: $Form-input-onFocused-bg;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -114,6 +114,7 @@
|
|||
|
||||
&-arrow {
|
||||
margin-right: $gap-xs;
|
||||
margin-left: $gap-xs;
|
||||
width: px2rem(20px);
|
||||
text-align: center;
|
||||
display: flex;
|
||||
|
@ -152,6 +153,7 @@
|
|||
&-menu {
|
||||
max-height: px2rem(300px);
|
||||
overflow: auto;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
&-option {
|
||||
|
|
|
@ -440,6 +440,7 @@ $TagControl-sugTip-color: $primary;
|
|||
@import "../components/form/text";
|
||||
@import "../components/form/textarea";
|
||||
@import "../components/form/checks";
|
||||
@import "../components/form/city";
|
||||
@import "../components/form/switch";
|
||||
@import "../components/form/number";
|
||||
@import "../components/form/select";
|
||||
|
|
|
@ -67,6 +67,7 @@ $Form-input-borderColor: #cfdadd;
|
|||
@import "../components/form/text";
|
||||
@import "../components/form/textarea";
|
||||
@import "../components/form/checks";
|
||||
@import "../components/form/city";
|
||||
@import "../components/form/switch";
|
||||
@import "../components/form/number";
|
||||
@import "../components/form/select";
|
||||
|
|
Loading…
Reference in New Issue