diff --git a/package.json b/package.json index 00e3fc5b..961e61f9 100644 --- a/package.json +++ b/package.json @@ -41,11 +41,7 @@ "@babel/runtime": "7.18.9", "axios": "0.18.0", "clipboard": "1.7.1", - "codemirror": "5.39.2", - "dropzone": "5.2.0", - "echarts": "4.1.0", "element-ui": "2.15.9", - "fuse.js": "3.4.2", "js-cookie": "2.2.1", "jsonlint": "1.6.3", "localforage": "1.10.0", @@ -56,13 +52,11 @@ "normalize.css": "7.0.0", "nprogress": "0.2.0", "numeral": "2.0.6", - "sortablejs": "1.7.0", "tiptap": "1.32.2", "tiptap-extensions": "1.35.2", "vue": "2.7.8", "vue-i18n": "8.27.2", "vue-router": "3.5.4", - "vuedraggable": "2.24.3", "vuex": "3.0.1" }, "devDependencies": { diff --git a/src/components/element-ui/BackToTop/index.vue b/src/components/element-ui/BackToTop/index.vue deleted file mode 100644 index 12ea3ea8..00000000 --- a/src/components/element-ui/BackToTop/index.vue +++ /dev/null @@ -1,116 +0,0 @@ - - - - - 回到顶部 - - - - - - - - - - - diff --git a/src/components/element-ui/Breadcrumb/index.vue b/src/components/element-ui/Breadcrumb/index.vue deleted file mode 100644 index a4e171df..00000000 --- a/src/components/element-ui/Breadcrumb/index.vue +++ /dev/null @@ -1,72 +0,0 @@ - - - - - {{ - generateTitle(item.meta.title) }} - {{ generateTitle(item.meta.title) }} - - - - - - - - diff --git a/src/components/element-ui/Charts/keyboard.vue b/src/components/element-ui/Charts/keyboard.vue deleted file mode 100644 index fd116904..00000000 --- a/src/components/element-ui/Charts/keyboard.vue +++ /dev/null @@ -1,156 +0,0 @@ - - - - - diff --git a/src/components/element-ui/Charts/lineMarker.vue b/src/components/element-ui/Charts/lineMarker.vue deleted file mode 100644 index fb6f7ec5..00000000 --- a/src/components/element-ui/Charts/lineMarker.vue +++ /dev/null @@ -1,227 +0,0 @@ - - - - - diff --git a/src/components/element-ui/Charts/mixChart.vue b/src/components/element-ui/Charts/mixChart.vue deleted file mode 100644 index b7397032..00000000 --- a/src/components/element-ui/Charts/mixChart.vue +++ /dev/null @@ -1,271 +0,0 @@ - - - - - diff --git a/src/components/element-ui/Charts/mixins/resize.js b/src/components/element-ui/Charts/mixins/resize.js deleted file mode 100644 index cc7b8399..00000000 --- a/src/components/element-ui/Charts/mixins/resize.js +++ /dev/null @@ -1,32 +0,0 @@ -import { debounce } from '@/utils' - -export default { - data: function() { - return { - sidebarElm: null - } - }, - mounted() { - this.__resizeHandler = debounce(() => { - if (this.chart) { - this.chart.resize() - } - }, 100) - window.addEventListener('resize', this.__resizeHandler) - - this.sidebarElm = document.getElementsByClassName('sidebar-container')[0] - this.sidebarElm && this.sidebarElm.addEventListener('transitionend', this.sidebarResizeHandler) - }, - beforeDestroy() { - window.removeEventListener('resize', this.__resizeHandler) - - this.sidebarElm && this.sidebarElm.removeEventListener('transitionend', this.sidebarResizeHandler) - }, - methods: { - sidebarResizeHandler(e) { - if (e.propertyName === 'width') { - this.__resizeHandler() - } - } - } -} diff --git a/src/components/element-ui/DndList/index.vue b/src/components/element-ui/DndList/index.vue deleted file mode 100644 index 7587daa7..00000000 --- a/src/components/element-ui/DndList/index.vue +++ /dev/null @@ -1,157 +0,0 @@ - - - - {{ list1Title }} - - - {{ element.id }}[{{ element.author }}] {{ element.title }} - - - - - - - - - - {{ list2Title }} - - - {{ element.id }} [{{ element.author }}] {{ element.title }} - - - - - - - - - diff --git a/src/components/element-ui/DragSelect/index.vue b/src/components/element-ui/DragSelect/index.vue deleted file mode 100644 index 513be006..00000000 --- a/src/components/element-ui/DragSelect/index.vue +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - diff --git a/src/components/element-ui/Dropzone/index.vue b/src/components/element-ui/Dropzone/index.vue deleted file mode 100644 index 187f7f70..00000000 --- a/src/components/element-ui/Dropzone/index.vue +++ /dev/null @@ -1,297 +0,0 @@ - - - - - - - - - diff --git a/src/components/element-ui/ErrorLog/index.vue b/src/components/element-ui/ErrorLog/index.vue deleted file mode 100644 index 793d4e24..00000000 --- a/src/components/element-ui/ErrorLog/index.vue +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - - - Msg: - {{ scope.row.err.message }} - - - - Info: - {{ scope.row.vm.$vnode.tag }} error in {{ scope.row.info }} - - - - Url: - {{ scope.row.url }} - - - - - - {{ scope.row.err.stack }} - - - - - - - - - - - diff --git a/src/components/element-ui/GithubCorner/index.vue b/src/components/element-ui/GithubCorner/index.vue deleted file mode 100644 index b5da8874..00000000 --- a/src/components/element-ui/GithubCorner/index.vue +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - diff --git a/src/components/element-ui/HeaderSearch/index.vue b/src/components/element-ui/HeaderSearch/index.vue deleted file mode 100644 index fdee688a..00000000 --- a/src/components/element-ui/HeaderSearch/index.vue +++ /dev/null @@ -1,187 +0,0 @@ - - - - - - - - - - - - diff --git a/src/components/element-ui/ImageCropper/index.vue b/src/components/element-ui/ImageCropper/index.vue deleted file mode 100644 index 007c12aa..00000000 --- a/src/components/element-ui/ImageCropper/index.vue +++ /dev/null @@ -1,1420 +0,0 @@ - - - - - - - - - - - - - - - {{ lang.hint }} - {{ lang.noSupported }} - - - - {{ errorMsg }} - - - {{ lang.btn.off }} - - - - - - - - - - - - - - - - - - - - ↺ - ↻ - - - - - - - {{ lang.preview }} - - - - {{ lang.preview }} - - - - - - {{ lang.btn.back }} - {{ lang.btn.save }} - - - - - - {{ lang.loading }} - - - - - {{ errorMsg }} - - - {{ lang.success }} - - - - {{ lang.btn.back }} - {{ lang.btn.close }} - - - - - - - - - - - - diff --git a/src/components/element-ui/ImageCropper/utils/data2blob.js b/src/components/element-ui/ImageCropper/utils/data2blob.js deleted file mode 100755 index 9c47f8af..00000000 --- a/src/components/element-ui/ImageCropper/utils/data2blob.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * database64文件格式转换为2进制 - * - * @param {[String]} data dataURL 的格式为 “data:image/png;base64,****”,逗号之前都是一些说明性的文字,我们只需要逗号之后的就行了 - * @param {[String]} mime [description] - * @return {[blob]} [description] - */ -export default function(data, mime) { - data = data.split(',')[1] - data = window.atob(data) - var ia = new Uint8Array(data.length) - for (var i = 0; i < data.length; i++) { - ia[i] = data.charCodeAt(i) - } - // canvas.toDataURL 返回的默认格式就是 image/png - return new Blob([ia], { - type: mime - }) -} diff --git a/src/components/element-ui/ImageCropper/utils/effectRipple.js b/src/components/element-ui/ImageCropper/utils/effectRipple.js deleted file mode 100755 index 46a01640..00000000 --- a/src/components/element-ui/ImageCropper/utils/effectRipple.js +++ /dev/null @@ -1,39 +0,0 @@ -/** - * 点击波纹效果 - * - * @param {[event]} e [description] - * @param {[Object]} arg_opts [description] - * @return {[bollean]} [description] - */ -export default function(e, arg_opts) { - var opts = Object.assign({ - ele: e.target, // 波纹作用元素 - type: 'hit', // hit点击位置扩散center中心点扩展 - bgc: 'rgba(0, 0, 0, 0.15)' // 波纹颜色 - }, arg_opts) - var target = opts.ele - if (target) { - var rect = target.getBoundingClientRect() - var ripple = target.querySelector('.e-ripple') - if (!ripple) { - ripple = document.createElement('span') - ripple.className = 'e-ripple' - ripple.style.height = ripple.style.width = Math.max(rect.width, rect.height) + 'px' - target.appendChild(ripple) - } else { - ripple.className = 'e-ripple' - } - switch (opts.type) { - case 'center': - ripple.style.top = (rect.height / 2 - ripple.offsetHeight / 2) + 'px' - ripple.style.left = (rect.width / 2 - ripple.offsetWidth / 2) + 'px' - break - default: - ripple.style.top = (e.pageY - rect.top - ripple.offsetHeight / 2 - document.body.scrollTop) + 'px' - ripple.style.left = (e.pageX - rect.left - ripple.offsetWidth / 2 - document.body.scrollLeft) + 'px' - } - ripple.style.backgroundColor = opts.bgc - ripple.className = 'e-ripple z-active' - return false - } -} diff --git a/src/components/element-ui/ImageCropper/utils/language.js b/src/components/element-ui/ImageCropper/utils/language.js deleted file mode 100755 index 727872d9..00000000 --- a/src/components/element-ui/ImageCropper/utils/language.js +++ /dev/null @@ -1,232 +0,0 @@ -export default { - zh: { - hint: '点击,或拖动图片至此处', - loading: '正在上传……', - noSupported: '浏览器不支持该功能,请使用IE10以上或其他现在浏览器!', - success: '上传成功', - fail: '图片上传失败', - preview: '头像预览', - btn: { - off: '取消', - close: '关闭', - back: '上一步', - save: '保存' - }, - error: { - onlyImg: '仅限图片格式', - outOfSize: '单文件大小不能超过 ', - lowestPx: '图片最低像素为(宽*高):' - } - }, - 'zh-tw': { - hint: '點擊,或拖動圖片至此處', - loading: '正在上傳……', - noSupported: '瀏覽器不支持該功能,請使用IE10以上或其他現代瀏覽器!', - success: '上傳成功', - fail: '圖片上傳失敗', - preview: '頭像預覽', - btn: { - off: '取消', - close: '關閉', - back: '上一步', - save: '保存' - }, - error: { - onlyImg: '僅限圖片格式', - outOfSize: '單文件大小不能超過 ', - lowestPx: '圖片最低像素為(寬*高):' - } - }, - en: { - hint: 'Click or drag the file here to upload', - loading: 'Uploading…', - noSupported: 'Browser is not supported, please use IE10+ or other browsers', - success: 'Upload success', - fail: 'Upload failed', - preview: 'Preview', - btn: { - off: 'Cancel', - close: 'Close', - back: 'Back', - save: 'Save' - }, - error: { - onlyImg: 'Image only', - outOfSize: 'Image exceeds size limit: ', - lowestPx: 'Image\'s size is too low. Expected at least: ' - } - }, - ro: { - hint: 'Atinge sau trage fișierul aici', - loading: 'Se încarcă', - noSupported: 'Browser-ul tău nu suportă acest feature. Te rugăm încearcă cu alt browser.', - success: 'S-a încărcat cu succes', - fail: 'A apărut o problemă la încărcare', - preview: 'Previzualizează', - - btn: { - off: 'Anulează', - close: 'Închide', - back: 'Înapoi', - save: 'Salvează' - }, - - error: { - onlyImg: 'Doar imagini', - outOfSize: 'Imaginea depășește limita de: ', - loewstPx: 'Imaginea este prea mică; Minim: ' - } - }, - ru: { - hint: 'Нажмите, или перетащите файл в это окно', - loading: 'Загружаю……', - noSupported: 'Ваш браузер не поддерживается, пожалуйста, используйте IE10 + или другие браузеры', - success: 'Загрузка выполнена успешно', - fail: 'Ошибка загрузки', - preview: 'Предпросмотр', - btn: { - off: 'Отменить', - close: 'Закрыть', - back: 'Назад', - save: 'Сохранить' - }, - error: { - onlyImg: 'Только изображения', - outOfSize: 'Изображение превышает предельный размер: ', - lowestPx: 'Минимальный размер изображения: ' - } - }, - 'pt-br': { - hint: 'Clique ou arraste o arquivo aqui para carregar', - loading: 'Carregando…', - noSupported: 'Browser não suportado, use o IE10+ ou outro browser', - success: 'Sucesso ao carregar imagem', - fail: 'Falha ao carregar imagem', - preview: 'Pré-visualizar', - btn: { - off: 'Cancelar', - close: 'Fechar', - back: 'Voltar', - save: 'Salvar' - }, - error: { - onlyImg: 'Apenas imagens', - outOfSize: 'A imagem excede o limite de tamanho: ', - lowestPx: 'O tamanho da imagem é muito pequeno. Tamanho mínimo: ' - } - }, - fr: { - hint: 'Cliquez ou glissez le fichier ici.', - loading: 'Téléchargement…', - noSupported: 'Votre navigateur n\'est pas supporté. Utilisez IE10 + ou un autre navigateur s\'il vous plaît.', - success: 'Téléchargement réussit', - fail: 'Téléchargement echoué', - preview: 'Aperçu', - btn: { - off: 'Annuler', - close: 'Fermer', - back: 'Retour', - save: 'Enregistrer' - }, - error: { - onlyImg: 'Image uniquement', - outOfSize: 'L\'image sélectionnée dépasse la taille maximum: ', - lowestPx: 'L\'image sélectionnée est trop petite. Dimensions attendues: ' - } - }, - nl: { - hint: 'Klik hier of sleep een afbeelding in dit vlak', - loading: 'Uploaden…', - noSupported: 'Je browser wordt helaas niet ondersteund. Gebruik IE10+ of een andere browser.', - success: 'Upload succesvol', - fail: 'Upload mislukt', - preview: 'Voorbeeld', - btn: { - off: 'Annuleren', - close: 'Sluiten', - back: 'Terug', - save: 'Opslaan' - }, - error: { - onlyImg: 'Alleen afbeeldingen', - outOfSize: 'De afbeelding is groter dan: ', - lowestPx: 'De afbeelding is te klein! Minimale afmetingen: ' - } - }, - tr: { - hint: 'Tıkla veya yüklemek istediğini buraya sürükle', - loading: 'Yükleniyor…', - noSupported: 'Tarayıcı desteklenmiyor, lütfen IE10+ veya farklı tarayıcı kullanın', - success: 'Yükleme başarılı', - fail: 'Yüklemede hata oluştu', - preview: 'Önizle', - btn: { - off: 'İptal', - close: 'Kapat', - back: 'Geri', - save: 'Kaydet' - }, - error: { - onlyImg: 'Sadece resim', - outOfSize: 'Resim yükleme limitini aşıyor: ', - lowestPx: 'Resmin boyutu çok küçük. En az olması gereken: ' - } - }, - 'es-MX': { - hint: 'Selecciona o arrastra una imagen', - loading: 'Subiendo...', - noSupported: 'Tu navegador no es soportado, porfavor usa IE10+ u otros navegadores mas recientes', - success: 'Subido exitosamente', - fail: 'Sucedió un error', - preview: 'Vista previa', - btn: { - off: 'Cancelar', - close: 'Cerrar', - back: 'Atras', - save: 'Guardar' - }, - error: { - onlyImg: 'Unicamente imagenes', - outOfSize: 'La imagen excede el tamaño maximo:', - lowestPx: 'La imagen es demasiado pequeño. Se espera por lo menos:' - } - }, - de: { - hint: 'Klick hier oder zieh eine Datei hier rein zum Hochladen', - loading: 'Hochladen…', - noSupported: 'Browser wird nicht unterstützt, bitte verwende IE10+ oder andere Browser', - success: 'Upload erfolgreich', - fail: 'Upload fehlgeschlagen', - preview: 'Vorschau', - btn: { - off: 'Abbrechen', - close: 'Schließen', - back: 'Zurück', - save: 'Speichern' - }, - error: { - onlyImg: 'Nur Bilder', - outOfSize: 'Das Bild ist zu groß: ', - lowestPx: 'Das Bild ist zu klein. Mindestens: ' - } - }, - ja: { - hint: 'クリック・ドラッグしてファイルをアップロード', - loading: 'アップロード中...', - noSupported: 'このブラウザは対応されていません。IE10+かその他の主要ブラウザをお使いください。', - success: 'アップロード成功', - fail: 'アップロード失敗', - preview: 'プレビュー', - btn: { - off: 'キャンセル', - close: '閉じる', - back: '戻る', - save: '保存' - }, - error: { - onlyImg: '画像のみ', - outOfSize: '画像サイズが上限を超えています。上限: ', - lowestPx: '画像が小さすぎます。最小サイズ: ' - } - } -} diff --git a/src/components/element-ui/ImageCropper/utils/mimes.js b/src/components/element-ui/ImageCropper/utils/mimes.js deleted file mode 100755 index e20c085c..00000000 --- a/src/components/element-ui/ImageCropper/utils/mimes.js +++ /dev/null @@ -1,7 +0,0 @@ -export default { - 'jpg': 'image/jpeg', - 'png': 'image/png', - 'gif': 'image/gif', - 'svg': 'image/svg+xml', - 'psd': 'image/photoshop' -} diff --git a/src/components/element-ui/JsonEditor/index.vue b/src/components/element-ui/JsonEditor/index.vue deleted file mode 100644 index b44a4a2c..00000000 --- a/src/components/element-ui/JsonEditor/index.vue +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - - - diff --git a/src/components/element-ui/Kanban/index.vue b/src/components/element-ui/Kanban/index.vue deleted file mode 100644 index dadeb648..00000000 --- a/src/components/element-ui/Kanban/index.vue +++ /dev/null @@ -1,89 +0,0 @@ - - - - {{ headerText }} - - - - {{ element.name }} {{ element.id }} - - - - - - - diff --git a/src/components/element-ui/MDinput/index.vue b/src/components/element-ui/MDinput/index.vue deleted file mode 100644 index 3db8cfc3..00000000 --- a/src/components/element-ui/MDinput/index.vue +++ /dev/null @@ -1,354 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/components/element-ui/Pagination/index.vue b/src/components/element-ui/Pagination/index.vue deleted file mode 100644 index 8d104e84..00000000 --- a/src/components/element-ui/Pagination/index.vue +++ /dev/null @@ -1,100 +0,0 @@ - - - - - - - - - diff --git a/src/components/element-ui/PanThumb/index.vue b/src/components/element-ui/PanThumb/index.vue deleted file mode 100644 index ec549f43..00000000 --- a/src/components/element-ui/PanThumb/index.vue +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - - - - - - - - - diff --git a/src/components/element-ui/Share/dropdownMenu.vue b/src/components/element-ui/Share/dropdownMenu.vue deleted file mode 100644 index 8b78e7bd..00000000 --- a/src/components/element-ui/Share/dropdownMenu.vue +++ /dev/null @@ -1,100 +0,0 @@ - - - - {{ title }} - - {{ item.title }} - {{ item.title }} - - - - - - - - diff --git a/src/components/element-ui/SizeSelect/index.vue b/src/components/element-ui/SizeSelect/index.vue deleted file mode 100644 index 3527a768..00000000 --- a/src/components/element-ui/SizeSelect/index.vue +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - {{ - item.label }} - - - - - diff --git a/src/components/element-ui/Sticky/index.vue b/src/components/element-ui/Sticky/index.vue deleted file mode 100644 index 3e4ce8e4..00000000 --- a/src/components/element-ui/Sticky/index.vue +++ /dev/null @@ -1,88 +0,0 @@ - - - - - sticky - - - - - - diff --git a/src/components/element-ui/TextHoverEffect/Mallki.vue b/src/components/element-ui/TextHoverEffect/Mallki.vue deleted file mode 100644 index 4ea29fc2..00000000 --- a/src/components/element-ui/TextHoverEffect/Mallki.vue +++ /dev/null @@ -1,113 +0,0 @@ - - - {{ text }} - - - - - - - - diff --git a/src/components/element-ui/ThemePicker/index.vue b/src/components/element-ui/ThemePicker/index.vue deleted file mode 100644 index ff6fbf21..00000000 --- a/src/components/element-ui/ThemePicker/index.vue +++ /dev/null @@ -1,148 +0,0 @@ - - - - - - - diff --git a/src/components/element-ui/TreeTable/eval.js b/src/components/element-ui/TreeTable/eval.js deleted file mode 100644 index d9b89e1c..00000000 --- a/src/components/element-ui/TreeTable/eval.js +++ /dev/null @@ -1,29 +0,0 @@ -/** -* @Author: jianglei -* @Date: 2017-10-12 12:06:49 -*/ -'use strict' -import Vue from 'vue' -export default function treeToArray(data, expandAll, parent = null, level = null) { - let tmp = [] - Array.from(data).forEach(function(record) { - if (record._expanded === undefined) { - Vue.set(record, '_expanded', expandAll) - } - let _level = 1 - if (level !== undefined && level !== null) { - _level = level + 1 - } - Vue.set(record, '_level', _level) - // 如果有父元素 - if (parent) { - Vue.set(record, 'parent', parent) - } - tmp.push(record) - if (record.children && record.children.length > 0) { - const children = treeToArray(record.children, expandAll, record, _level) - tmp = tmp.concat(children) - } - }) - return tmp -} diff --git a/src/components/element-ui/TreeTable/index.vue b/src/components/element-ui/TreeTable/index.vue deleted file mode 100644 index a48765c8..00000000 --- a/src/components/element-ui/TreeTable/index.vue +++ /dev/null @@ -1,127 +0,0 @@ - - - - - - - - - - {{ scope.$index }} - - - - - - - - - - - - {{ scope.row[column.value] }} - - - - - - - - - - diff --git a/src/components/element-ui/TreeTable/readme.md b/src/components/element-ui/TreeTable/readme.md deleted file mode 100644 index 5b598e11..00000000 --- a/src/components/element-ui/TreeTable/readme.md +++ /dev/null @@ -1,89 +0,0 @@ -## 写在前面 -此组件仅提供一个创建TreeTable的解决思路 - -## prop说明 -#### *data* - **必填** - - 原始数据,要求是一个数组或者对象 - ```javascript - [{ - key1: value1, - key2: value2, - children: [{ - key1: value1 - }, - { - key1: value1 - }] - }, - { - key1: value1 - }] - ``` - 或者 - ```javascript - { - key1: value1, - key2: value2, - children: [{ - key1: value1 - }, - { - key1: value1 - }] - } - ``` - -#### columns - 列属性,要求是一个数组 - - 1. text: 显示在表头的文字 - 2. value: 对应data的key。treeTable将显示相应的value - 3. width: 每列的宽度,为一个数字(可选) - - 如果你想要每个字段都有自定义的样式或者嵌套其他组件,columns可不提供,直接像在el-table一样写即可,如果没有自定义内容,提供columns将更加的便捷方便 - - 如果你有几个字段是需要自定义的,几个不需要,那么可以将不需要自定义的字段放入columns,将需要自定义的内容放入到slot中,详情见后文 - ```javascript - [{ - value:string, - text:string, - width:number - },{ - value:string, - text:string, - width:number - }] - ``` - -#### expandAll - 是否默认全部展开,boolean值,默认为false - -#### evalFunc - 解析函数,function,非必须 - - 如果不提供,将使用默认的[evalFunc](./eval.js) - - 如果提供了evalFunc,那么会用提供的evalFunc去解析data,并返回treeTable渲染所需要的值。如何编写一个evalFunc,请参考[*eval.js*](https://github.com/PanJiaChen/vue-element-admin/blob/master/src/components/TreeTable/eval.js)或[*customEval.js*](https://github.com/PanJiaChen/vue-element-admin/blob/master/src/views/table/treeTable/customEval.js) - -#### evalArgs - 解析函数的参数,是一个数组 - - **请注意,自定义的解析函数参数第一个为this.data,第二个参数为, this.expandAll,你不需要在evalArgs填写。一定记住,这两个参数是强制性的,并且位置不可颠倒** *this.data为需要解析的数据,this.expandAll为是否默认展开* - - 如你的解析函数需要的参数为`(this.data, this.expandAll,1,2,3,4)`,那么你只需要将`[1,2,3,4]`赋值给`evalArgs`就可以了 - - 如果你的解析函数参数只有`(this.data, this.expandAll)`,那么就可以不用填写evalArgs了 - - 具体可参考[*customEval.js*](https://github.com/PanJiaChen/vue-element-admin/blob/master/src/views/table/treeTable/customEval.js)的函数参数和[customTreeTable](https://github.com/PanJiaChen/vue-element-admin/blob/master/src/views/table/treeTable/customTreeTable.vue)的`evalArgs`属性值 - - ## slot - 这是一个自定义列的插槽。 - - 默认情况下,treeTable只有一行行展示数据的功能。但是一般情况下,我们会要给行加上一个操作按钮或者根据当行数据展示不同的样式,这时我们就需要自定义列了。请参考[customTreeTable](https://github.com/PanJiaChen/vue-element-admin/blob/master/src/views/table/treeTable/customTreeTable.vue),[实例效果](https://panjiachen.github.io/vue-element-admin/#/table/tree-table) - - `slot`和`columns属性`可同时存在,columns里面的数据列会在slot自定义列的左边展示 - - ## 其他 - 如果有其他的需求,请参考[el-table](http://element-cn.eleme.io/#/en-US/component/table)的api自行修改index.vue diff --git a/src/components/element-ui/Upload/singleImage.vue b/src/components/element-ui/Upload/singleImage.vue deleted file mode 100644 index 89a1bfa4..00000000 --- a/src/components/element-ui/Upload/singleImage.vue +++ /dev/null @@ -1,132 +0,0 @@ - - - - - 将文件拖到此处,或点击上传 - - - - - - - - - - - - - - - diff --git a/src/components/element-ui/Upload/singleImage2.vue b/src/components/element-ui/Upload/singleImage2.vue deleted file mode 100644 index 96c4402b..00000000 --- a/src/components/element-ui/Upload/singleImage2.vue +++ /dev/null @@ -1,127 +0,0 @@ - - - - - Drag或点击上传 - - - - - - - - - - - - - - - diff --git a/src/components/element-ui/Upload/singleImage3.vue b/src/components/element-ui/Upload/singleImage3.vue deleted file mode 100644 index efa5b2d2..00000000 --- a/src/components/element-ui/Upload/singleImage3.vue +++ /dev/null @@ -1,154 +0,0 @@ - - - - - 将文件拖到此处,或点击上传 - - - - - - - - - - - - - - - - - - - - - - - diff --git a/yarn.lock b/yarn.lock index 2762ba70..16e3f613 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3092,11 +3092,6 @@ code-point-at@^1.0.0: resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" integrity sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA== -codemirror@5.39.2: - version "5.39.2" - resolved "https://registry.yarnpkg.com/codemirror/-/codemirror-5.39.2.tgz#778aa13b55ebf280745c309cb1b148e3fc06f698" - integrity sha512-mchBy0kQ1Wggi+e58SmoLgKO4nG7s/BqNg6/6TRbhsnXI/KRG+fKAvRQ1LLhZZ6ZtUoDQ0dl5aMhE+IkSRh60Q== - collect-v8-coverage@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz#cc2c8e94fc18bbdffe64d6534570c8a673b27f59" @@ -4062,11 +4057,6 @@ dot-prop@^5.2.0: dependencies: is-obj "^2.0.0" -dropzone@5.2.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/dropzone/-/dropzone-5.2.0.tgz#2fdf6ac6472f4c62d03d3e9fc22aaa0229d299de" - integrity sha512-q19hPFZ5arNoc7RoEyEo53rZF+UNLQETjxlJFUUYKoSj9gREDR3eee13Ua6E+CE3rqszy0bB44leX+Yo5RCWVw== - duplexer@^0.1.1: version "0.1.2" resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.2.tgz#3abe43aef3835f8ae077d136ddce0f276b0400e6" @@ -4090,13 +4080,6 @@ ecc-jsbn@~0.1.1: jsbn "~0.1.0" safer-buffer "^2.1.0" -echarts@4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/echarts/-/echarts-4.1.0.tgz#d588c95f73c1a9928b9c73d5b769751c3185bcdc" - integrity sha512-gP1e1fNnAj9KJpTDLXV21brklbfJlqeINmpQDJCDta9TX3cPoqyQOiDVcEPzbOVHqgBRgTOwNxC5iGwJ89014A== - dependencies: - zrender "4.0.4" - editorconfig@^0.15.3: version "0.15.3" resolved "https://registry.yarnpkg.com/editorconfig/-/editorconfig-0.15.3.tgz#bef84c4e75fb8dcb0ce5cee8efd51c15999befc5" @@ -5084,11 +5067,6 @@ functions-have-names@^1.2.2: resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834" integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== -fuse.js@3.4.2: - version "3.4.2" - resolved "https://registry.yarnpkg.com/fuse.js/-/fuse.js-3.4.2.tgz#d7a638c436ecd7b9c4c0051478c09594eb956212" - integrity sha512-WVbrm+cAxPtyMqdtL7cYhR7aZJPhtOfjNClPya8GKMVukKDYs7pEnPINeRVX1C9WmWgU8MdYGYbUPAP2AJXdoQ== - gauge@^3.0.0: version "3.0.2" resolved "https://registry.yarnpkg.com/gauge/-/gauge-3.0.2.tgz#03bf4441c044383908bcfa0656ad91803259b395" @@ -10285,16 +10263,6 @@ socks@^2.6.2: ip "^2.0.0" smart-buffer "^4.2.0" -sortablejs@1.10.2: - version "1.10.2" - resolved "https://registry.yarnpkg.com/sortablejs/-/sortablejs-1.10.2.tgz#6e40364d913f98b85a14f6678f92b5c1221f5290" - integrity sha512-YkPGufevysvfwn5rfdlGyrGjt7/CRHwvRPogD/lC+TnvcN29jDpCifKP+rBqf+LRldfXSTh+0CGLcSg0VIxq3A== - -sortablejs@1.7.0: - version "1.7.0" - resolved "https://registry.yarnpkg.com/sortablejs/-/sortablejs-1.7.0.tgz#80a2b2370abd568e1cec8c271131ef30a904fa28" - integrity sha512-4z/P2iyY/BElEvKALqpng7wlgdP9pww+r7i7/uUXwX2pDHGLcKMsXsl2NDgZnFinrV4kOLHKLfx89LeCqSxHkQ== - source-list-map@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-2.0.1.tgz#3993bd873bfc48479cca9ea3a547835c7c154b34" @@ -11609,13 +11577,6 @@ vue@2.7.8: "@vue/compiler-sfc" "2.7.8" csstype "^3.1.0" -vuedraggable@2.24.3: - version "2.24.3" - resolved "https://registry.yarnpkg.com/vuedraggable/-/vuedraggable-2.24.3.tgz#43c93849b746a24ce503e123d5b259c701ba0d19" - integrity sha512-6/HDXi92GzB+Hcs9fC6PAAozK1RLt1ewPTLjK0anTYguXLAeySDmcnqE8IC0xa7shvSzRjQXq3/+dsZ7ETGF3g== - dependencies: - sortablejs "1.10.2" - vuex@3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/vuex/-/vuex-3.0.1.tgz#e761352ebe0af537d4bb755a9b9dc4be3df7efd2" @@ -12126,8 +12087,3 @@ yargs@^17.2.1: string-width "^4.2.3" y18n "^5.0.5" yargs-parser "^21.0.0" - -zrender@4.0.4: - version "4.0.4" - resolved "https://registry.yarnpkg.com/zrender/-/zrender-4.0.4.tgz#910e60d888f00c9599073f23758dd23345fe48fd" - integrity sha512-03Vd/BDl/cPXp8E61f5+Xbgr/a4vDyFA+uUtUc1s+5KgcPbyY2m+78R/9LQwkR6QwFYHG8qk25Q8ESGs/qpkZw==