Skip to content

Conversation

tronsha
Copy link
Collaborator

@tronsha tronsha commented Jul 30, 2020

This example works:

<template>
    <div :style="'fontSize: ' + (size + 10) + 'px'"></div> 
</template>

<script>
export default {
  props: {
    size: {
      type: number,
      required: true,
    },
  },
};
</script>
<div style="{{ 'fontSize: ' ~ (size + 10) ~ 'px' }};"></div>

But this example doesn't work correct:

<template>
    <div :style="'fontSize: ' + (foo.size + 10) + 'px'"></div> 
</template>

<script>
export default {
  props: {
    foo: {
      type: object,
      required: true,
    },
  },
};
</script>
<div style="{{ 'fontSize: ' ~ (foo.size ~ 10) ~ 'px' }};"></div>

@tronsha tronsha requested a review from Macavity July 30, 2020 09:13
@tronsha tronsha changed the title Adds partially concat support Adds partial concat support Jul 30, 2020
@tronsha tronsha changed the title Adds partial concat support Adds partially concat support Jul 30, 2020
@tronsha tronsha merged commit d1e463a into Paneon:master Jul 30, 2020
@tronsha tronsha deleted the feature/concat branch December 29, 2020 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants