mirror of
https://github.com/zclzone/vue-naive-admin.git
synced 2025-05-01 14:49:00 +08:00
Compare commits
3 Commits
1e1704a12d
...
1a1bf4489b
Author | SHA1 | Date | |
---|---|---|---|
|
1a1bf4489b | ||
|
304b74bb49 | ||
|
07754975da |
@ -41,7 +41,6 @@
|
|||||||
"glob": "^11.0.0",
|
"glob": "^11.0.0",
|
||||||
"lint-staged": "^15.2.10",
|
"lint-staged": "^15.2.10",
|
||||||
"rollup-plugin-visualizer": "^5.12.0",
|
"rollup-plugin-visualizer": "^5.12.0",
|
||||||
"sass": "^1.79.3",
|
|
||||||
"simple-git-hooks": "^2.11.1",
|
"simple-git-hooks": "^2.11.1",
|
||||||
"taze": "^0.16.9",
|
"taze": "^0.16.9",
|
||||||
"unocss": "^0.62.4",
|
"unocss": "^0.62.4",
|
||||||
|
11
pnpm-lock.yaml
generated
11
pnpm-lock.yaml
generated
@ -90,9 +90,6 @@ importers:
|
|||||||
rollup-plugin-visualizer:
|
rollup-plugin-visualizer:
|
||||||
specifier: ^5.12.0
|
specifier: ^5.12.0
|
||||||
version: 5.12.0(rollup@4.20.0)
|
version: 5.12.0(rollup@4.20.0)
|
||||||
sass:
|
|
||||||
specifier: ^1.79.3
|
|
||||||
version: 1.79.3
|
|
||||||
simple-git-hooks:
|
simple-git-hooks:
|
||||||
specifier: ^2.11.1
|
specifier: ^2.11.1
|
||||||
version: 2.11.1
|
version: 2.11.1
|
||||||
@ -4753,6 +4750,7 @@ snapshots:
|
|||||||
chokidar@4.0.1:
|
chokidar@4.0.1:
|
||||||
dependencies:
|
dependencies:
|
||||||
readdirp: 4.0.1
|
readdirp: 4.0.1
|
||||||
|
optional: true
|
||||||
|
|
||||||
chownr@2.0.0: {}
|
chownr@2.0.0: {}
|
||||||
|
|
||||||
@ -5498,7 +5496,8 @@ snapshots:
|
|||||||
|
|
||||||
ignore@5.3.2: {}
|
ignore@5.3.2: {}
|
||||||
|
|
||||||
immutable@4.3.7: {}
|
immutable@4.3.7:
|
||||||
|
optional: true
|
||||||
|
|
||||||
import-fresh@3.3.0:
|
import-fresh@3.3.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -6336,7 +6335,8 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
picomatch: 2.3.1
|
picomatch: 2.3.1
|
||||||
|
|
||||||
readdirp@4.0.1: {}
|
readdirp@4.0.1:
|
||||||
|
optional: true
|
||||||
|
|
||||||
refa@0.12.1:
|
refa@0.12.1:
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -6418,6 +6418,7 @@ snapshots:
|
|||||||
chokidar: 4.0.1
|
chokidar: 4.0.1
|
||||||
immutable: 4.3.7
|
immutable: 4.3.7
|
||||||
source-map-js: 1.2.1
|
source-map-js: 1.2.1
|
||||||
|
optional: true
|
||||||
|
|
||||||
scslre@0.3.0:
|
scslre@0.3.0:
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -69,6 +69,13 @@ const props = defineProps({
|
|||||||
isPagination: {
|
isPagination: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true,
|
default: true,
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* @isShowSizePicker 是否显示每页条数选择
|
||||||
|
*/
|
||||||
|
isShowSizePicker: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
},
|
},
|
||||||
scrollX: {
|
scrollX: {
|
||||||
type: Number,
|
type: Number,
|
||||||
@ -116,6 +123,16 @@ const pagination = reactive({
|
|||||||
prefix({ itemCount }) {
|
prefix({ itemCount }) {
|
||||||
return `共 ${itemCount} 条数据`
|
return `共 ${itemCount} 条数据`
|
||||||
},
|
},
|
||||||
|
pageSizes: [10, 20, 50, 100],
|
||||||
|
showSizePicker: props.isShowSizePicker,
|
||||||
|
onChange: (page) => {
|
||||||
|
pagination.page = page
|
||||||
|
},
|
||||||
|
onUpdatePageSize: (pageSize) => {
|
||||||
|
pagination.pageSize = pageSize
|
||||||
|
pagination.page = 1
|
||||||
|
handleQuery()
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
// 是否展开
|
// 是否展开
|
||||||
|
@ -59,7 +59,7 @@ function handleMenuSelect(key, item) {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style>
|
||||||
.side-menu:not(.n-menu--collapsed) {
|
.side-menu:not(.n-menu--collapsed) {
|
||||||
.n-menu-item-content {
|
.n-menu-item-content {
|
||||||
&::before {
|
&::before {
|
||||||
|
@ -74,7 +74,7 @@ async function handleContextMenu(e, tagItem) {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped>
|
||||||
:deep(.n-tabs) {
|
:deep(.n-tabs) {
|
||||||
.n-tabs-tab {
|
.n-tabs-tab {
|
||||||
padding-left: 16px;
|
padding-left: 16px;
|
||||||
|
@ -15,8 +15,8 @@ import { setupDirectives } from './directives'
|
|||||||
import { setupRouter } from './router'
|
import { setupRouter } from './router'
|
||||||
import { setupStore } from './store'
|
import { setupStore } from './store'
|
||||||
import { setupNaiveDiscreteApi } from './utils'
|
import { setupNaiveDiscreteApi } from './utils'
|
||||||
import '@/styles/global.scss'
|
|
||||||
import '@/styles/reset.css'
|
import '@/styles/reset.css'
|
||||||
|
import '@/styles/global.css'
|
||||||
import 'uno.css'
|
import 'uno.css'
|
||||||
|
|
||||||
async function bootstrap() {
|
async function bootstrap() {
|
||||||
|
@ -26,12 +26,12 @@ body {
|
|||||||
|
|
||||||
.fade-slide-enter-from {
|
.fade-slide-enter-from {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transform: translateX(-30px);
|
transform: translateX(-2%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.fade-slide-leave-to {
|
.fade-slide-leave-to {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transform: translateX(30px);
|
transform: translateX(2%);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 自定义滚动条样式 */
|
/* 自定义滚动条样式 */
|
Loading…
x
Reference in New Issue
Block a user