How could I use const in vue template? : <p>I tried to defined a const in a <code>*.vue</code> file </p>

<pre><code>&lt;script&gt;
    export const CREATE_ACTION = 1
    export const UPDATE_ACTION = 2
&lt;script&gt;
</code></pre>

<p>and use them in template</p>

<pre><code>&lt;template&gt;
    ...
    &lt;select :disabled="mode === UPDATE_ACTION"&gt;
    ....
&lt;/template&gt;
</code></pre>

<p>but it seems not work. So, how could I use const in vue template?</p>
