chore: prettier all ts code
This commit is contained in:
@@ -17,7 +17,7 @@ function getElement(selector: string | GetContainer): Element | null {
|
||||
export function PortalMixin({ ref, afterPortal }: PortalMixinOptions) {
|
||||
return Vue.extend({
|
||||
props: {
|
||||
getContainer: [String, Function] as (PropType<string | GetContainer>),
|
||||
getContainer: [String, Function] as PropType<string | GetContainer>,
|
||||
},
|
||||
|
||||
watch: {
|
||||
@@ -33,7 +33,7 @@ export function PortalMixin({ ref, afterPortal }: PortalMixinOptions) {
|
||||
methods: {
|
||||
portal() {
|
||||
const { getContainer } = this;
|
||||
const el = ref ? this.$refs[ref] as HTMLElement : this.$el;
|
||||
const el = ref ? (this.$refs[ref] as HTMLElement) : this.$el;
|
||||
|
||||
let container;
|
||||
if (getContainer) {
|
||||
|
||||
Reference in New Issue
Block a user