mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
Poprawki select boxa
This commit is contained in:
@@ -34,10 +34,8 @@ import { Component, Vue, Prop, Emit } from "vue-property-decorator";
|
||||
|
||||
@Component
|
||||
export default class SelectBox extends Vue {
|
||||
@Prop({ required: true }) title!: string;
|
||||
@Prop({ required: true }) itemList!: { id: string | number; value: string }[];
|
||||
@Prop({ default: 0 }) defaultItemIndex!: number;
|
||||
@Prop() bgColor!: string;
|
||||
|
||||
boxVisible = false;
|
||||
|
||||
@@ -99,6 +97,8 @@ export default class SelectBox extends Vue {
|
||||
position: relative;
|
||||
margin: 0 auto;
|
||||
|
||||
height: 100%;
|
||||
|
||||
min-width: 10em;
|
||||
|
||||
background: #333;
|
||||
@@ -111,6 +111,8 @@ export default class SelectBox extends Vue {
|
||||
top: 100%;
|
||||
left: 0;
|
||||
|
||||
height: auto;
|
||||
|
||||
z-index: 10;
|
||||
|
||||
width: 100%;
|
||||
@@ -167,7 +169,7 @@ label {
|
||||
background: #555;
|
||||
}
|
||||
|
||||
padding: 0.25em 0;
|
||||
padding: 0.75em 0;
|
||||
|
||||
width: 100%;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user