UNPKG

vxe-pc-ui

Version:
34 lines (33 loc) 791 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getLimitSizeOptions = getLimitSizeOptions; exports.getWidgetVxeUploadFileConfig = void 0; var _util = require("../render/util"); function getLimitSizeOptions() { const sizeOpts = [{ label: '无限制', value: '' }]; const sizeList = [1, 2, 5, 10, 20, 50, 100, 200, 500]; sizeList.forEach(num => { sizeOpts.push({ label: `${num}M`, value: num }); }); return sizeOpts; } const getWidgetVxeUploadFileConfig = () => { return { title: _util.handleGetFormDesignWidgetName, icon: 'vxe-icon-file', options: { limitCount: '', limitSize: 100, multiple: false } }; }; exports.getWidgetVxeUploadFileConfig = getWidgetVxeUploadFileConfig;