(vue)文本间空格占位符_Vue库,用于使用占位符的富文本

(vue)文本间空格占位符

用于丰富内容字符串的Vue组件 (Vue component for rich content strings)

This library provides a simple vue component to render text with rich placeholder replacements. The parameters that are replaced can either be a string or an object that allows rendering any Vue component into the text. Placeholders are wrapped in brackets, like {placeholder}.

该库提供了一个简单的vue组件,以使用丰富的占位符替换来呈现文本。 替换的参数可以是字符串,也可以是允许将任何Vue组件呈现到文本中的对象。 占位符用方括号括起来,例如{placeholder}。

View Documentation 查看文档 View Github 查看Github

安装 (Installation)

npm install --save @juliushaertl/vue-richtext

用法 (Usage)

  • Input string: The file {file} was added by {username}

    输入字符串: The file {file} was added by {username}

  • Arguments:

    参数:

    • 'MyDocument''MyDocument'
    • { component: User, props: { username: 'Jane Doe' }{ component: User, props: { username: 'Jane Doe' }

翻译自: https://vuejsexamples.com/vue-library-for-rich-text-using-placeholders/

(vue)文本间空格占位符

你可能感兴趣的:((vue)文本间空格占位符_Vue库,用于使用占位符的富文本)