首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >用于FilePond Vue的图像叠加插件

用于FilePond Vue的图像叠加插件
EN

Stack Overflow用户
提问于 2020-01-06 14:13:02
回答 1查看 453关注 0票数 0

我想要图像上的检查按钮,但我找不到属性。

我设置了imagePreviewMarkupShow = true,但它没有工作。

这里的包裹

我的模板

代码语言:javascript
复制
    <template>
        <div id="app">
             <file-pond
            name="test"
            ref="pond"
            max-files="4"
            label-idle="Drop files here..."
            :allow-multiple="true"
            accepted-file-types="image/jpeg, image/png"
            :files="myFiles"
            v-on:init="handleFilePondInit"
            allowImagePreview ="false"
            />

        </div>
    </template>

我的脚本

代码语言:javascript
复制
    import  vueFilePond from 'vue-filepond';
    import 'filepond/dist/filepond.min.css';
    import 'filepond-plugin-image-preview/dist/filepond-plugin-image-preview.min.css';
    import FilePondPluginFileValidateType from 'filepond-plugin-file-validate-type';
    import FilePondPluginImagePreview from 'filepond-plugin-image-preview';

    import FilePondPluginImageOverlay from 'filepond-plugin-image-overlay';
    // Create component
    const FilePond = vueFilePond(FilePondPluginFileValidateType, FilePondPluginImagePreview,FilePondPluginImageOverlay);

    export default {
         name: 'app',
        data: function() {
            return { myFiles: [] };
        },
        methods: {

            handleFilePondInit: function() {
                console.log('FilePond has initialized');
    // this.$refs.pond.getFiles();
                // FilePond instance methods are available on `this.$refs.pond`
            }
        },
        components: {
            FilePond
        }
    };

我该怎么加那个按钮?

EN

回答 1

Stack Overflow用户

发布于 2020-01-16 11:28:17

我也在努力解决这个问题。

解决方案是导入CSS。

代码语言:javascript
复制
import 'filepond-plugin-image-overlay/dist/filepond-plugin-image-overlay.min.css'

吉特卜没有提到这一点。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59613612

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档