vue-finder-senior 2.7.2 → 2.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -1
- package/package.json +1 -1
package/README.md
CHANGED
@@ -117,13 +117,14 @@ To customize or update the styles, simply find the appropriate BEM class in the
|
|
117
117
|
| theme | string | system | optional - default theme, options: "system","light","dark" |
|
118
118
|
| max-file-size | string | 10mb | optional - client side max file upload |
|
119
119
|
| max-height | string | 600px | optional - max height of the component |
|
120
|
+
| menu | array | [] | optional - customize right click menu(自定义右键菜单) |
|
120
121
|
| features | array | _null_ | optional - array of the enabled features |
|
121
122
|
| path | string | _null_ | optional - initial directory, example: 'media://public' |
|
122
123
|
| persist | boolean | false | optional - keep current directory on page refresh |
|
123
124
|
| full-screen | boolean | false | optional - start in full screen mode |
|
124
125
|
| select-button | object | _object_ | optional - adds select button in status bar, see example |
|
125
126
|
| loading-indicator | string | circular | optional - style of loading indicator: "circular", "linear" |
|
126
|
-
| onError |
|
127
|
+
| onError | function | _function_ | optional - a callback to implement custom error handling |
|
127
128
|
|
128
129
|
|
129
130
|
### Events
|
@@ -190,6 +191,30 @@ Alternatively, you can use the select event to get the selected items.
|
|
190
191
|
}
|
191
192
|
</script>
|
192
193
|
```
|
194
|
+
Customize right-click menu.
|
195
|
+
```vue
|
196
|
+
<vue-finder
|
197
|
+
id='my_vuefinder'
|
198
|
+
:request="request"
|
199
|
+
:menu="menu"
|
200
|
+
/>
|
201
|
+
|
202
|
+
<script setup>
|
203
|
+
// other codes
|
204
|
+
|
205
|
+
const menu = [
|
206
|
+
{
|
207
|
+
index: 2, // position (菜单位置 越大越往下)
|
208
|
+
label: "设置为数据集", // 显示名称,如果需要使用多语言,需要显示英文,然后到对应的语言包(例如zhCN.js)添加对应关系
|
209
|
+
show: (app, option) => true, // 右键时是否展示 返回值为true/false
|
210
|
+
handler: (app, option) => {console.log("设置为数据集", app, option)} // 菜单点击后方法回调
|
211
|
+
}
|
212
|
+
]
|
213
|
+
|
214
|
+
</script>
|
215
|
+
|
216
|
+
```
|
217
|
+
|
193
218
|
|
194
219
|
### Features
|
195
220
|
- Multi adapter/storage (see https://github.com/thephpleague/flysystem)
|
package/package.json
CHANGED