chore(components): simplify code; make scss explicit
This commit is contained in:
parent
574fc5e535
commit
ee22e02617
|
@ -119,7 +119,7 @@ const attributes = computed(() =>
|
||||||
</Layout>
|
</Layout>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style module>
|
<style module lang="scss">
|
||||||
.card {
|
.card {
|
||||||
--fw-card-padding: v-bind("'small' in props ? '16px' : '24px'");
|
--fw-card-padding: v-bind("'small' in props ? '16px' : '24px'");
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@ const attributes = computed(() => ({
|
||||||
</component>
|
</component>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style module>
|
<style module lang="scss">
|
||||||
.layout {
|
.layout {
|
||||||
transition: all .15s;
|
transition: all .15s;
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ import { useRoute } from 'vue-router'
|
||||||
const isCollapsed = ref(true)
|
const isCollapsed = ref(true)
|
||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
watch(() => route.path, () => ( isCollapsed.value = true ))
|
watch(() => route.path, () => isCollapsed.value = true)
|
||||||
|
|
||||||
const searchQuery = ref('')
|
const searchQuery = ref('')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue