diff --git a/package.json b/package.json index 5af2250f7454b3ffd49a68a1b6b4e885324f03d8..a31392245a2803fc743e9d843f99af18c19dd7c8 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "build": "vite build", "preview": "vite preview", "lint": "eslint --ext .js,vue --ignore-pattern '!.*ignore' .", - "lint:fix": "eslint --fix && prettier --config .prettierrc --write ." + "lint:fix": "prettier --config .prettierrc --write . && yarn lint --fix" }, "dependencies": { "@element-plus/icons-vue": "^2.0.10", diff --git a/src/App.vue b/src/App.vue index f6e0918041a751e1095167cf48b6513d23b16669..cdc9df6ce6ad1cdf6a7768c5943df78bf3363521 100644 --- a/src/App.vue +++ b/src/App.vue @@ -79,6 +79,8 @@ const info = reactive({ ], }); +const aFileList = ref([]); + const { options: btnsOption, currentValue: btnsCurrentValue } = toRefs(btns); const { title: cardTitle, icon: cardIcon } = toRefs(card); @@ -220,10 +222,14 @@ const { title: cardTitle, icon: cardIcon } = toRefs(card); + v-model="aFileList" + :el-attrs="{ + multiple: false, + drag: true, + }" + :auto="false" + :custom-tips="true" + :file-types="['zip', 'tgz', 'tar', 'gz']" /> diff --git a/src/bg-ui/bg-detail-table.vue b/src/bg-ui/bg-detail-table.vue index 129d6242b4282691f223d0b5dba0449a288290bd..006a975a55576c448b674eb9c38773eb67528c18 100644 --- a/src/bg-ui/bg-detail-table.vue +++ b/src/bg-ui/bg-detail-table.vue @@ -18,17 +18,13 @@ v-if="!item.urls" :title="item.info" :style="item.url ? { color: '#515fe7', cursor: 'pointer' } : ''" - @click="down_file(item.url)" - >{{ item.info }} + @click="down_file(item.url)">{{ item.info }} {{ helper.downloadFileFormatNew(it) }}、 + @click="down_file(it)">{{ helper.downloadFileFormatNew(it) }}、 @@ -43,6 +39,7 @@ diff --git a/src/bg-ui/bg-nav-list.vue b/src/bg-ui/bg-nav-list.vue index 89a944a48f46c7fbadfc554a15d9ca7ee5d1b22a..77645879113dea5335f50b96a9579ceb8536900c 100644 --- a/src/bg-ui/bg-nav-list.vue +++ b/src/bg-ui/bg-nav-list.vue @@ -81,7 +81,7 @@ const props = defineProps({ }, highlightParentRule: { type: Function, - default: () => null, + default: () => {}, }, }); diff --git a/src/bg-ui/bg-nav.vue b/src/bg-ui/bg-nav.vue index 1f18e4c4c8b8bdc6cef938fd1417085ca155c88d..b26a2a284b18231d4d6c95c6101f1dd87e6918d3 100644 --- a/src/bg-ui/bg-nav.vue +++ b/src/bg-ui/bg-nav.vue @@ -27,7 +27,7 @@ const props = defineProps({ }, // 导航列表 [ { name: "xxx", path: "xxx" } ] highlightParentRule: { type: Function, - default: () => null, + default: () => {}, }, }); diff --git a/src/bg-ui/bg-rich-text.vue b/src/bg-ui/bg-rich-text.vue index 83812cd6be03cfbe89b929ad8ebbf20cfb2cf327..3876373efe78274135149d60372b9ebe0d0e97b1 100644 --- a/src/bg-ui/bg-rich-text.vue +++ b/src/bg-ui/bg-rich-text.vue @@ -18,8 +18,10 @@