chore: 更新依赖

This commit is contained in:
Hooray Hu
2023-07-04 15:28:52 +08:00
parent d502b58649
commit 24e922077f
20 changed files with 467 additions and 463 deletions
+12 -12
View File
@@ -18,13 +18,13 @@
"release": "bumpp"
},
"dependencies": {
"@vueuse/core": "^10.2.0",
"@vueuse/integrations": "^10.2.0",
"@vueuse/core": "^10.2.1",
"@vueuse/integrations": "^10.2.1",
"axios": "^1.4.0",
"dayjs": "^1.11.8",
"dayjs": "^1.11.9",
"element-plus": "^2.3.7",
"eruda": "^3.0.0",
"hotkeys-js": "^3.10.2",
"hotkeys-js": "^3.10.4",
"lodash-es": "^4.17.21",
"mitt": "^3.0.0",
"mockjs": "^1.1.0",
@@ -38,7 +38,7 @@
"vue-router": "^4.2.2"
},
"devDependencies": {
"@antfu/eslint-config": "^0.39.5",
"@antfu/eslint-config": "^0.39.6",
"@iconify-json/ep": "^1.1.11",
"@iconify/vue": "^4.1.1",
"@types/nprogress": "^0.2.0",
@@ -50,25 +50,25 @@
"autoprefixer": "^10.4.14",
"bumpp": "^9.1.1",
"cz-git": "^1.6.1",
"eslint": "^8.43.0",
"eslint": "^8.44.0",
"esno": "^0.16.3",
"fs-extra": "^11.1.1",
"http-server": "^14.1.1",
"lint-staged": "^13.2.2",
"lint-staged": "^13.2.3",
"npm-run-all": "^4.1.5",
"plop": "^3.1.2",
"postcss-html": "^1.5.0",
"sass": "^1.63.6",
"simple-git-hooks": "^2.8.1",
"stylelint": "^15.8.0",
"stylelint": "^15.9.0",
"stylelint-config-standard": "^33.0.0",
"stylelint-config-standard-scss": "^9.0.0",
"stylelint-config-standard-scss": "^10.0.0",
"stylelint-config-standard-vue": "^1.0.0",
"stylelint-scss": "^5.0.1",
"stylelint-stylistic": "^0.4.2",
"svgo": "^3.0.2",
"terser": "^5.18.1",
"typescript": "^5.0.4",
"terser": "^5.18.2",
"typescript": "^5.1.6",
"unplugin-auto-import": "^0.16.4",
"unplugin-vue-components": "^0.25.1",
"vite": "^4.3.9",
@@ -80,7 +80,7 @@
"vite-plugin-svg-icons": "^2.0.1",
"vite-plugin-vue-inspector": "^3.4.2",
"vite-plugin-vue-meta-layouts": "^0.2.2",
"vue-tsc": "^1.6.5"
"vue-tsc": "^1.8.3"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged",
+394 -389
View File
File diff suppressed because it is too large Load Diff
+4 -4
View File
@@ -1,12 +1,12 @@
<script setup lang="ts">
const props = defineProps<{
value: string | string[]
}>()
defineOptions({
name: 'Auth',
})
const props = defineProps<{
value: string | string[]
}>()
function check() {
return useAuth().auth(props.value)
}
+4 -4
View File
@@ -1,12 +1,12 @@
<script setup lang="ts">
const props = defineProps<{
value: string[]
}>()
defineOptions({
name: 'AuthAll',
})
const props = defineProps<{
value: string[]
}>()
function check() {
return useAuth().authAll(props.value)
}
+4 -4
View File
@@ -2,6 +2,10 @@
import type { UploadProps, UploadUserFile } from 'element-plus'
import { ElMessage } from 'element-plus'
defineOptions({
name: 'FileUpload',
})
const props = withDefaults(
defineProps<{
action: UploadProps['action']
@@ -32,10 +36,6 @@ const emits = defineEmits<{
]
}>()
defineOptions({
name: 'FileUpload',
})
const beforeUpload: UploadProps['beforeUpload'] = (file) => {
const fileName = file.name.split('.')
const fileExt = fileName.at(-1) ?? ''
+2 -2
View File
@@ -1,10 +1,10 @@
<script setup lang="ts">
const isBottom = ref(false)
defineOptions({
name: 'FixedActionBar',
})
const isBottom = ref(false)
onMounted(() => {
onScroll()
window.addEventListener('scroll', onScroll)
+4 -4
View File
@@ -1,4 +1,8 @@
<script setup lang="ts">
defineOptions({
name: 'ImagePreview',
})
const props = withDefaults(
defineProps<{
src: string
@@ -11,10 +15,6 @@ const props = withDefaults(
},
)
defineOptions({
name: 'ImagePreview',
})
const realWidth = computed(() => {
return typeof props.width === 'string' ? props.width : `${props.width}px`
})
+4 -4
View File
@@ -2,6 +2,10 @@
import type { UploadProps } from 'element-plus'
import { ElMessage } from 'element-plus'
defineOptions({
name: 'ImageUpload',
})
const props = withDefaults(
defineProps<{
action: UploadProps['action']
@@ -37,10 +41,6 @@ const emits = defineEmits<{
]
}>()
defineOptions({
name: 'ImageUpload',
})
const uploadData = ref({
imageViewerVisible: false,
progress: {
+4 -4
View File
@@ -2,6 +2,10 @@
import type { UploadProps } from 'element-plus'
import { ElMessage } from 'element-plus'
defineOptions({
name: 'ImagesUpload',
})
const props = withDefaults(
defineProps<{
action: UploadProps['action']
@@ -39,10 +43,6 @@ const emits = defineEmits<{
]
}>()
defineOptions({
name: 'ImagesUpload',
})
const uploadData = ref({
dialogImageIndex: 0,
imageViewerVisible: false,
+1 -1
View File
@@ -6,7 +6,7 @@ defineOptions({
const router = useRouter()
const data = ref({
inter: NaN,
inter: Number.NaN,
countdown: 5,
})
+4 -4
View File
@@ -1,4 +1,8 @@
<script setup lang="ts">
defineOptions({
name: 'PageHeader',
})
withDefaults(
defineProps<{
title: string
@@ -9,10 +13,6 @@ withDefaults(
},
)
defineOptions({
name: 'PageHeader',
})
const slots = useSlots()
</script>
+4 -4
View File
@@ -1,4 +1,8 @@
<script setup lang="ts">
defineOptions({
name: 'PageMain',
})
const props = withDefaults(
defineProps<{
title?: string
@@ -12,10 +16,6 @@ const props = withDefaults(
},
)
defineOptions({
name: 'PageMain',
})
const titleSlot = !!useSlots().title
const collaspeData = ref(props.collaspe)
+4 -4
View File
@@ -2,6 +2,10 @@
// 行政区划数据来源于 https://github.com/modood/Administrative-divisions-of-China
import pcasRaw from './pcas-code.json'
defineOptions({
name: 'PcasCascader',
})
const props = withDefaults(
defineProps<{
modelValue: string[] | {
@@ -28,10 +32,6 @@ const emits = defineEmits<{
]
}>()
defineOptions({
name: 'PcasCascader',
})
interface pcasItem {
code: string
name: string
+4 -4
View File
@@ -1,4 +1,8 @@
<script setup lang="ts">
defineOptions({
name: 'SearchBar',
})
const props = withDefaults(
defineProps<{
fold?: boolean
@@ -21,10 +25,6 @@ const emits = defineEmits<{
]
}>()
defineOptions({
name: 'SearchBar',
})
const isFold = ref(props.fold)
watch(() => props.fold, (value) => {
+4 -4
View File
@@ -1,6 +1,10 @@
<script setup lang="ts">
import { Icon } from '@iconify/vue'
defineOptions({
name: 'SvgIcon',
})
const props = defineProps<{
name: string
flip?: 'horizontal' | 'vertical' | 'both'
@@ -9,10 +13,6 @@ const props = defineProps<{
size?: string | number
}>()
defineOptions({
name: 'SvgIcon',
})
const style = computed(() => {
const transform = []
if (props.flip) {
+4 -4
View File
@@ -1,4 +1,8 @@
<script setup lang="ts">
defineOptions({
name: 'Trend',
})
const props = withDefaults(
defineProps<{
value: string
@@ -15,10 +19,6 @@ const props = withDefaults(
},
)
defineOptions({
name: 'Trend',
})
const isUp = computed(() => {
let isUp = props.type === 'up'
if (props.reverse) {
+4 -4
View File
@@ -2,6 +2,10 @@
import imgLogo from '@/assets/images/logo.png'
import useSettingsStore from '@/store/modules/settings'
defineOptions({
name: 'Logo',
})
withDefaults(
defineProps<{
showLogo?: boolean
@@ -13,10 +17,6 @@ withDefaults(
},
)
defineOptions({
name: 'Logo',
})
const settingsStore = useSettingsStore()
const title = ref(import.meta.env.VITE_APP_TITLE)
+4 -4
View File
@@ -3,6 +3,10 @@ import { resolveRoutePath } from '@/utils'
import useSettingsStore from '@/store/modules/settings'
import type { Menu } from '#/global'
defineOptions({
name: 'SidebarItem',
})
const props = withDefaults(
defineProps<{
item: Menu.recordRaw
@@ -13,10 +17,6 @@ const props = withDefaults(
},
)
defineOptions({
name: 'SidebarItem',
})
const settingsStore = useSettingsStore()
const hasChildren = computed(() => {
+1 -1
View File
@@ -10,7 +10,7 @@ meta:
const router = useRouter()
const data = ref({
inter: NaN,
inter: Number.NaN,
countdown: 5,
})
+1 -2
View File
@@ -6,7 +6,6 @@ meta:
</route>
<script setup lang="ts">
import type { UploadProps } from 'element-plus'
import { ElMessage } from 'element-plus'
defineOptions({
@@ -23,7 +22,7 @@ const form = ref({
wechat: '',
})
const handleSuccess: UploadProps['onSuccess'] = (res) => {
function handleSuccess(res: any) {
if (res.error === '') {
form.value.headimg = res.data.path
}