【问题标题】:In svelte-filepond, how to pass parameters to plugins?在 svelte-filepond 中,如何将参数传递给插件?
【发布时间】:2021-08-19 09:25:54
【问题描述】:

在 svelte-filepond 中,如何将参数传递给插件? filepond 本身只有一个分析器here,但在 svelte-filepond 文档中没有提到任何内容(不是在 filepond 文档本身中,这很奇怪)。

【问题讨论】:

标签: svelte filepond


【解决方案1】:

好的,这很简单:传递给组件的所有属性都用作插件的属性,例如:

<Pond imageValidateSizeMaxWidth={100} .../>

将设置FilePondPluginImageValidateSize 插件的imageValidateSizeMaxWidth 属性。

【讨论】:

    猜你喜欢
    • 2020-02-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-12-18
    • 2014-03-21
    • 2021-05-14
    • 1970-01-01
    • 2016-11-20
    相关资源
    最近更新 更多