This commit is contained in:
syuilo
2020-11-28 12:15:22 +09:00
parent f4e02d4a4c
commit ab50d5ef20
5 changed files with 45 additions and 77 deletions

View File

@ -1,4 +1,5 @@
declare module '*.vue' {
import Vue from 'vue';
export default Vue;
import { defineComponent } from 'vue';
const component: ReturnType<typeof defineComponent>;
export default component;
}

View File

@ -150,10 +150,10 @@ export default defineComponent({
});
</script>
<style vars="{ transformOrigin }">
<style>
.modal-popup-content-enter-active, .modal-popup-content-leave-active,
.modal-content-enter-from, .modal-content-leave-to {
transform-origin: var(--transformOrigin);
transform-origin: v-bind(transformOrigin);
}
</style>

View File

@ -74,29 +74,29 @@ export default defineComponent({
});
</script>
<style lang="scss" scoped vars="{ height }">
<style lang="scss" scoped>
.fdidabkb {
text-align: center;
> .back {
height: var(--height);
width: var(--height);
height: v-bind(height);
width: v-bind(height);
}
> .action {
height: var(--height);
width: var(--height);
height: v-bind(height);
width: v-bind(height);
}
> .titleContainer {
width: calc(100% - (var(--height) * 2));
width: calc(100% - (v-bind(height) * 2));
> .title {
height: var(--height);
height: v-bind(height);
> .avatar {
$size: 32px;
margin: calc((var(--height) - #{$size}) / 2) 8px calc((var(--height) - #{$size}) / 2) 0;
margin: calc((v-bind(height) - #{$size}) / 2) 8px calc((v-bind(height) - #{$size}) / 2) 0;
pointer-events: none;
}
}