Evan You
9 years ago
6 changed files with 29 additions and 33 deletions
@ -1,8 +1,6 @@ |
|||
import { addProp } from '../../helpers' |
|||
|
|||
export function text (el, dir) { |
|||
if (!dir.value) return |
|||
if (!el.props) el.props = [] |
|||
el.props.push({ |
|||
name: 'textContent', |
|||
value: `__toString__(${dir.value})` |
|||
}) |
|||
addProp(el, 'textContent', `__toString__(${dir.value})`) |
|||
} |
|||
|
Loading…
Reference in new issue