mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-04 03:58:11 +00:00
chore(stock): stock tab design
This commit is contained in:
@@ -1,18 +1,20 @@
|
|||||||
<template>
|
<template>
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" v-model="model" />
|
<input type="checkbox" :data-disabled="disabled" :disabled="disabled" v-model="model" />
|
||||||
<div><slot /></div>
|
<div><slot /></div>
|
||||||
</label>
|
</label>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
const model = defineModel();
|
const model = defineModel();
|
||||||
|
|
||||||
|
defineProps({
|
||||||
|
disabled: Boolean,
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
label {
|
label {
|
||||||
cursor: pointer;
|
|
||||||
|
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
transition: color 200ms;
|
transition: color 200ms;
|
||||||
}
|
}
|
||||||
@@ -20,6 +22,7 @@ label {
|
|||||||
div {
|
div {
|
||||||
padding: 0.25em 0.5em;
|
padding: 0.25em 0.5em;
|
||||||
color: white;
|
color: white;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
background-color: #222;
|
background-color: #222;
|
||||||
border-radius: 0.25em;
|
border-radius: 0.25em;
|
||||||
@@ -54,5 +57,16 @@ input {
|
|||||||
content: '\2714';
|
content: '\2714';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:disabled {
|
||||||
|
user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
|
||||||
|
+ div {
|
||||||
|
opacity: 0.55;
|
||||||
|
cursor: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
<h2>{{ $t('stocklist.title') }}</h2>
|
<h2>{{ $t('stocklist.title') }}</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="tab_content">
|
||||||
<div class="stock_actions">
|
<div class="stock_actions">
|
||||||
<button class="btn btn--image" @click="clickFileInput">
|
<button class="btn btn--image" @click="clickFileInput">
|
||||||
<input type="file" @change="uploadStock" ref="conFile" accept=".con,.txt" />
|
<input type="file" @change="uploadStock" ref="conFile" accept=".con,.txt" />
|
||||||
@@ -105,12 +106,14 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div></div>
|
||||||
|
|
||||||
<div class="stock_spawn-settings">
|
<div class="stock_spawn-settings">
|
||||||
<Checkbox v-if="store.stockSupportsColdStart" v-model="store.isColdStart">
|
<Checkbox :disabled="!store.stockSupportsColdStart" v-model="store.isColdStart">
|
||||||
{{ $t('stocklist.coldstart-info') }}
|
{{ $t('stocklist.coldstart-info') }}
|
||||||
</Checkbox>
|
</Checkbox>
|
||||||
|
|
||||||
<Checkbox v-if="store.stockSupportsDoubleManning" v-model="store.isDoubleManned">
|
<Checkbox :disabled="!store.stockSupportsDoubleManning" v-model="store.isDoubleManned">
|
||||||
{{ $t('stocklist.doublemanning-info') }}
|
{{ $t('stocklist.doublemanning-info') }}
|
||||||
</Checkbox>
|
</Checkbox>
|
||||||
</div>
|
</div>
|
||||||
@@ -220,6 +223,7 @@
|
|||||||
</transition-group>
|
</transition-group>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -520,11 +524,10 @@ export default defineComponent({
|
|||||||
@import '../../styles/global';
|
@import '../../styles/global';
|
||||||
@import '../../styles/tab.scss';
|
@import '../../styles/tab.scss';
|
||||||
|
|
||||||
.stock-list-tab {
|
.tab_content {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 0.5em;
|
gap: 0.5em;
|
||||||
position: relative;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.warning {
|
.warning {
|
||||||
|
|||||||
@@ -97,6 +97,7 @@ const allowDrop = (e: DragEvent) => {
|
|||||||
display: flex;
|
display: flex;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
background-color: #353a57;
|
background-color: #353a57;
|
||||||
|
min-height: 100px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.thumbnail-item {
|
.thumbnail-item {
|
||||||
|
|||||||
Reference in New Issue
Block a user