{"id":13495305,"url":"https://github.com/hql7/wl-explorer","last_synced_at":"2026-01-22T19:43:04.886Z","repository":{"id":35946983,"uuid":"219917050","full_name":"hql7/wl-explorer","owner":"hql7","description":"用于vue框架的文件管理器插件，云盘、网盘。File manager plug-in for vue framework, cloud disk.  ","archived":false,"fork":false,"pushed_at":"2022-12-13T13:11:14.000Z","size":9959,"stargazers_count":271,"open_issues_count":31,"forks_count":100,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-10-04T05:26:40.075Z","etag":null,"topics":["cloud-disk","explorer","file-manager","skydrive","vue","wl-explorer"],"latest_commit_sha":null,"homepage":"http://wlui.com.cn/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hql7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-06T05:13:52.000Z","updated_at":"2025-09-12T07:19:55.000Z","dependencies_parsed_at":"2023-01-16T09:46:23.335Z","dependency_job_id":null,"html_url":"https://github.com/hql7/wl-explorer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hql7/wl-explorer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hql7%2Fwl-explorer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hql7%2Fwl-explorer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hql7%2Fwl-explorer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hql7%2Fwl-explorer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hql7","download_url":"https://codeload.github.com/hql7/wl-explorer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hql7%2Fwl-explorer/sbom","scorecard":{"id":470319,"data":{"date":"2025-08-11","repo":{"name":"github.com/hql7/wl-explorer","commit":"b404d249a3972e320c88b4ffa931ab3e08ebc085"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 1/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"109 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-whgm-jr23-g3j9","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-4w2v-q235-vp99","Warn: Project is vulnerable to: GHSA-cph5-m8f7-6c5x","Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5","Warn: Project is vulnerable to: GHSA-257v-vj4p-3w2h","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-3wcq-x3mq-6r9p","Warn: Project is vulnerable to: GHSA-phwq-j96m-2c2q","Warn: Project is vulnerable to: GHSA-ghr5-ch3p-vcr6","Warn: Project is vulnerable to: GHSA-r9p9-mrjm-926w","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-6h5x-7c5m-7cr7","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-74fj-2j2h-c42q","Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-7wwv-vh3v-89cq","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-pfq8-rq6v-vf5m","Warn: Project is vulnerable to: GHSA-c7qv-q95q-8v27","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-7r28-3m3f-r2pr","Warn: Project is vulnerable to: GHSA-r8j5-h5cx-65gg","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-92xj-mqp7-vmcj","Warn: Project is vulnerable to: GHSA-wxgw-qj99-44c2","Warn: Project is vulnerable to: GHSA-5rrq-pxf6-6jx5","Warn: Project is vulnerable to: GHSA-8fr3-hfg3-gpgp","Warn: Project is vulnerable to: GHSA-gf8q-jrpm-jvxq","Warn: Project is vulnerable to: GHSA-2r2c-g63r-vccr","Warn: Project is vulnerable to: GHSA-cfm4-qjh2-4765","Warn: Project is vulnerable to: GHSA-x4jg-mjrx-434g","Warn: Project is vulnerable to: GHSA-r8f7-9pfq-mjmv","Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-566m-qj78-rww5","Warn: Project is vulnerable to: GHSA-hwj9-h5mp-3pm3","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-7mwh-4pqv-wmr8","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-g4rg-993r-mgx7","Warn: Project is vulnerable to: GHSA-vx3p-948g-6vhq","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-9m6j-fcg5-2442","Warn: Project is vulnerable to: GHSA-hh27-ffr2-f2jc","Warn: Project is vulnerable to: GHSA-rqff-837h-mm52","Warn: Project is vulnerable to: GHSA-8v38-pw62-9cw2","Warn: Project is vulnerable to: GHSA-hgjh-723h-mx2j","Warn: Project is vulnerable to: GHSA-jf5r-8hm2-f872","Warn: Project is vulnerable to: GHSA-pp7m-6j83-m7r6","Warn: Project is vulnerable to: GHSA-5j4c-8p2g-v4jx","Warn: Project is vulnerable to: GHSA-g3ch-rx76-35fx","Warn: Project is vulnerable to: GHSA-wr3j-pwj9-hqq6","Warn: Project is vulnerable to: GHSA-4v9v-hfq4-rm2v","Warn: Project is vulnerable to: GHSA-9jgg-88mc-972h","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-h6q6-9hqw-rwfv","Warn: Project is vulnerable to: GHSA-5fg8-2547-mr8q","Warn: Project is vulnerable to: GHSA-crh6-fp67-6883","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T13:44:10.137Z","repository_id":35946983,"created_at":"2025-08-19T13:44:10.138Z","updated_at":"2025-08-19T13:44:10.138Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28669535,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T19:36:09.361Z","status":"ssl_error","status_checked_at":"2026-01-22T19:36:05.567Z","response_time":144,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloud-disk","explorer","file-manager","skydrive","vue","wl-explorer"],"created_at":"2024-07-31T19:01:33.362Z","updated_at":"2026-01-22T19:43:04.867Z","avatar_url":"https://github.com/hql7.png","language":"JavaScript","readme":"# wl-explorer\n\n## 简介\n\n用于vue框架的文件管理器插件，云盘。File manager plug-in for vue framework, cloud disk.  \n\n一个基于Vue和ElementUi的文件管理器插件，提供类似某云盘操作台的功能。\n\n此组件较为复杂，并且有些设定可能太贴合原来的项目。初次使用建议clone项目做对照，另有q群回复比较及时：1058847321\n\n### 提供的功能\n1. 文件夹的编辑，新增，移动，删除，下载\n\n2. 文件上传、下载、预览，移动\n\n3. 类似windows文件管理器的文件夹路径搜索，历史记录快捷键\n\n4. 表格模式、图标模式切换等\n\n## [在线访问](http://wlui.com.cn/ui/explorer) \n\n### 启动\n```\n1. 克隆示例项目\ngit clone git@github.com:hql7/wl-explorer.git\n\n2. 下载依赖并运行示例项目\nnpm install\nnpm run serve\n\n3. 在你的项目上引入wl-explorer\nnpm i wl-explorer -S\n// main.js中\nimport wlExplorer from \"wl-explorer\";`\nimport \"wl-explorer/lib/wl-explorer.css\"\nVue.use(wlExplorer);\n\n4. 运行你的项目，并对照git@github.com:hql7/wl-explorer.git项目示例\n``` \n\u003e 另一个选择\n```\n1. 克隆集成了wl-explorer组件的wl-admin后台管理系统模板项目\ngit clone git@github.com:hql7/wl-admin.git\n\n2. 下载依赖并运行示例项目\nnpm install\nnpm run serve\n\n3. 在src/views/ui/explorer文件夹下查看mock数据方案的npm install wlExplorer 示例\n```\n\n## 快速上手\n`npm i wl-explorer -S`\n\n``` jsvascript\nimport wlExplorer from \"wl-explorer\";`\nimport \"wl-explorer/lib/wl-explorer.css\"\nVue.use(wlExplorer);\n```\n``` template\n   \u003cwlExplorer\n      ref=\"wl-explorer-cpt\"\n      :headerDropdown=\"headerHandle\"\n      :columns=\"file_table_columns\"\n      :all-path=\"all_folder_list\"\n      :is-folder-fn=\"isFolderFn\"\n      :folderType=\"rource_type\"\n      :data=\"file_table_data\"\n      :props=\"explorer_prop\"\n      @handleFolder=\"handleFolder\"\n      @search=\"fileSearch\"\n      @del=\"fileDel\"\n      @closeFade=\"closeOtherLayout(fade)\"\n    \u003e\u003c/wlExplorer\u003e\n```\n``` jsvascript\n  内容较多，如下\n```\n见github [app.vue](https://github.com/hql7/wl-explorer/blob/master/src/App.vue)\n\n\n\u003c!-- ## 演示效果\n  ![image](./src/assets/explorer-demo.gif)\n --\u003e\n## 文档\n###  Attributes\n| 序号 | 参数 | 说明 | 类型 | 默认值 |\n| ---- | ---- | ---- | ---- | ---- |\n| 1 | headerDropdown | 头部更多操作自定义菜单,item必须包括字段：name:String菜单名，command:Fn此菜单指令，可选字段disabled:Boolean是否禁用，divided:Boolean是否显示分割线，icon:String图标 | Array | - | \n| 2 | showCheckbox | 是否显示复选框列 | Boolean | true |\n| 3 | showIndex | 是否显示序号列 | Boolean | true |\n| 4 | showBorder | 表格是否显示边框 | Boolean | true |\n| 5 | data | 列表数据【当前只支持一维数据，每次传入当前文件夹数据，但是组件内会记录并更新已经得到数据的文件夹历史，并不过度依赖请求】| Array | - |\n| 6 | columns | 文件列表表头数据 | Array | [所有el-table提供的Table-column Attributes](https://element.eleme.cn/#/zh-CN/component/table) |\n| 7 | props | 配置项（非常重要，尤其是其中path*参数，是使8.allPath生效的关键属性） | Object | 详见下方props |\n| 8 | allPath | 所有文件路径列表,用于快速访问、移动、上传、新建时 | Array | - |\n| 9 | isFolderFn | 判断是否文件夹函数function(row)参数是当前行数据，函数应返回Boolean值 | Function | - |\n| 10 | isLockFn | 判断是否锁定文件夹函数function(row)参数是当前行数据，函数应返回Boolean值 | Function | - |\n| 11 | useUpload | 是否使用自带上传组件【如需要自定义上传组件，在组件内部写dom即可。不具名solt】 | Boolean | true |\n| 12 | uploadUrl | 上传文件地址 | String | - |\n| 13 | uploadReg | 是否校验上传文件，开启则需要使用uploadRegFuc函数 | Boolean | false |\n| 14 | uploadHeaders | 上传头信息 | Object | - |\n| 15 | uploadOptions | 上传参数 | Object | - |\n| 16 | uploadLimit | 最大上传个数 | Number | - |\n| 17 | usePreview | 是否使用自带预览组件【如需要自定义预览组件，在组件内部写dom即可。不具名solt】| Boolean | true | \n| 18 | previewType | 预览文件类型，'img','video','audio','iframe'(包括txt、html、pdf) | String | img |\n| 19 | previewOptions | 文件预览地址或配置项，除video外只需`{String}文件链接地址`即可，video时见video.js配置项{sources: [{type: \"video/mp4\",src: ''}]} | Object/String | - |\n| 20 | splicOptions | 废弃，合并入props拼接路径配置项，{Splic: 要拼接的字段, Connector: '\\\\', // 连接符； Id: \"Id\", // 数据源匹配字段；Parents: \"Parents\", // 所有父节点自增id以上到下排列逗号分隔；IdentityId: \"IdentityId\", // 当前自增id} | Object | `{ Splic: 'Name', Connector: '\\\\',  Id: \"Id\",  Parents: \"Parents\", IdentityId: \"IdentityId\", }` |\n\n### props\n| 序号 | 参数 | 说明 | 默认字段 | 字段值类型 |\n| ---- | ---- | ---- | ---- | ---- |\n| 1 | isFolder | 用于有布尔值字段表示数据是否文件夹类型的情况,当使用isFolderFn函数时，此参数会被忽略 | isFolder | Boolean |\n| 2 | isLock | 用于有布尔值字段表示数据是否锁定文件类型的情况,当使用isLockFn函数时，此参数被忽略 | isLock | Boolean |\n| 3 | name | 用于显示名称列的字段 | name | String |\n| 4 | suffix | 用于判断后缀或显示文件类型列的字段 | suffix | String| \n| 5 | match | 用于设定文件路径输入框自动补全的匹配字段,如下面`splic`字段值为false时使用 | name | String |\n| 6 |  splic | 【特殊字段】配置项中只有此参数为字段值，其他均为字段key，即props里必有一个splic参数表示是否需要将路径名拼接为`父路径\\父路径\\当前路径`的形式 | Boolean | true |\n| 7 | pathName | 路径数据中表示名称的字段 | name | String |\n| 8 | pathId | 路径数据中表示id字段 | id | String |\n| 9 | pathPid | 路径数据中表示parentId的字段 | pid | String | \n| 10 | pathChildren | 路径数据中表示children字段 | children | String |\n| 11 | pathDisabled | 路径数据中表示禁用字段 | disabled | String | \n| 12 | pathConnector | 路径父子数据拼接连接符,默认为'\\' | '\\\\' | String |\n| 13 | pathParents | 路径数据所有直系祖先节点自增长identityId逗号拼接 | parents | String |\n| 14 | pathIdentityId | 路径数据自增长id | identityId | String |\n| 15 | size | 设置内部组件大小，同elementui | medium | String |\n\n\u003e path*字段是allPath生效的关键参数，但是比较晦涩难以理解，建议辅以public/data/file-list-all.json数据结构理解，这些path*字段只是为了支持在此数据结构下的自定义字段名\n\n### Events\n\n| 序号 | 事件名称 | 说明 | 回调参数 |\n| ---- | ---- | ---- | ---- |\n| 1 | handleFolder | 文件夹新增或编辑 | function(act,type,file)依次为当前选择文件夹、类型`edit`,`add`、当前的路径信息 | \n| 2 | del | 删除 | function(data)依次为要删除的数据 | \n| 3 | search | 获取数据 | function(path, true)依次为当前路径对象、是否需要更新数据（不需要表示存在历史数据） |\n| 4 | download | 下载文件或文件夹 | function(data, cb)依次为选中数据，请求成功后的下载回调函数，使用时将接口设为blob格式，将带请求头的返回值放进cb(res)即可 |\n| 5 | move | 移动 | function(to, data, load)依次为移动的目标，要移动的数据，防抖变量。在时间的最上部设置load为true可以防抖+loading效果，请求结束需要手动设置为fasle | \n| 6 | closeFade | 关闭其他弹出框 | 为防止弹出框覆盖，应在接收到此函数时关闭外部页面上其他遮罩性的dom | \n| 7 | showUpload | 打开上传界面 | 不使用自带上传时调用 |\n| 8 | uploadBefore | 上传前回调 | function(file, path)依次为上传文件，当前路径对象。可此函数里调整上传接口参数 |\n| 9 | upload | 上传事件 | function(data, cb)依次为当前路径对象，必须执行的上传回调，最迟应在此函数调整上传参数，后调用cb()上传 |\n| 10 | uploadSuccess | 上传成功回调 | function(res)依次为接口返回数据，当接口返回列表行实体时，会自动处理逻辑并更新当前数据及历史数据【建议】，当成共不反回数据时，应请求接口更新数据，但是如上传路径非当前路径则历史数据需要手动调用方法更新 | \n| 11 | uploadError | 上传失败回调 | function(err)依次为错误信息 |\n| 12 | preview | 预览事件 | function(data, cb)依次为当前选中预览的数据、打开预览组件的回调，应在此处更新预览参数后调用cb()打开预览 |\n\n### Form Methods\n| 方法名 | 说明 | 参数 |\n| ---- | ---- | ---- |\n| updateHistoryData | 更新历史数据，插件有历史时优先使用历史数据，因此非当前路径已经记录历史数据的且数据发生变动时，需手动调用添加 | function(item, val, update) 依次为：发生数据变动的路径信息`Object`（至少存在你`参数7 props里的pathId字段`用于在历史里匹配）；变动后的列表数据`Array`（主要用于新增文件夹或自定义上传时选择了非当前路径时的手动更新，【删除会自动处理】）；是否覆盖性更新`Boolean`（默认为false，当时false时执行数组合并，true时为完整数据覆盖）|\n\n### Slot\n| 序号 | name | 说明 |\n| ---- | ---- | ---- |\n| 1 | header-btn | 头部自定义操作按钮，位置在更多操作按钮前 | \n| 2 | header-dropdown | 头部更多操作slot，建议使用`参数1`的形式 |\n| 3 | table-column-top | 自定义列，位置在`参数6`前,建议使用`参数6`的形式，可以formatter自定义dom |\n| 4 | table-column-bottom | 自定义列，位置在`参数6`后,建议使用`参数6`的形式，可以formatter自定义dom |\n| 5 | main | 在路径操作栏下的列表区 |\n| 6 | - | 不具名slot，可以写任何dom模块 |\n\n## 版本记录\n\n\u003e 0.2.1 修复allPath不传时的报错\n\n\u003e 0.2.0 修复平铺模式checkbox选中仍隐藏问题\n\n\u003e 0.1.8 修复上传文件的路径问题\n\n\u003e 0.1.7 修复文件路径拼接逻辑未采用splicOptions参数的错误，并将splicOptions废弃，合并入props，所有带path前缀的字段\n\n\u003e 0.1.6 修改debounce为throttle\n\n\u003e 0.1.5 增加size参数管理组件内小组件大小\n\n\u003e 0.1.4 修复图标模式，名称字段未使用props配置的错误\n\n\u003e 0.1.2 修复部分未按照props设置而写死字段的代码；修复updateHistoryData手动更新历史记录函数缺失问题\n\n\u003e 0.1.1 优化内置预览组件参数缺省时的错误；文档增加`方法`的说明；优化主slot在列表区的错误，并在列表区增加name为`main`的slot；\n\n\u003e 0.1.0 wl-explorer第一个版本发布\n\n\u003e 0.0.1 初次发布，部分功能未解耦，待续\n\n\u003c!-- \n  \u003cvideo src=\"src/assets/explorer-demo.mp4\" controls=\"controls\" width=\"500\" height=\"300\"\u003e您的浏览器不支持播放该视频！\u003c/video\u003e --\u003e\n\n## 待续\n1.  优化预览组件\n\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhql7%2Fwl-explorer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhql7%2Fwl-explorer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhql7%2Fwl-explorer/lists"}