Compare commits

...

No commits in common. "main" and "gh-pages" have entirely different histories.

1595 changed files with 640 additions and 88296 deletions

View File

@ -1,19 +0,0 @@
root = true
[*]
charset=utf-8
end_of_line=lf
insert_final_newline=true
indent_style=space
indent_size=2
max_line_length = 100
[*.{yml,yaml,json}]
indent_style = space
indent_size = 2
[*.md]
trim_trailing_whitespace = false
[Makefile]
indent_style = tab

8
.env
View File

@ -1,8 +0,0 @@
# port
VITE_PORT = 3100
# spa-title
VITE_GLOB_APP_TITLE = Vben Admin
# spa shortname
VITE_GLOB_APP_SHORT_NAME = vue_vben_admin

View File

@ -1,22 +0,0 @@
# Whether to open mock
VITE_USE_MOCK = true
# public path
VITE_PUBLIC_PATH = /
# Cross-domain proxy, you can configure multiple
# Please note that no line breaks
VITE_PROXY = [["/basic-api","http://localhost:3000"],["/upload","http://localhost:3300/upload"]]
# VITE_PROXY=[["/api","https://vvbin.cn/test"]]
# Delete console
VITE_DROP_CONSOLE = false
# Basic interface address SPA
VITE_GLOB_API_URL=/basic-api
# File upload address optional
VITE_GLOB_UPLOAD_URL=/upload
# Interface prefix
VITE_GLOB_API_URL_PREFIX=

View File

@ -1,35 +0,0 @@
# Whether to open mock
VITE_USE_MOCK = true
# public path
VITE_PUBLIC_PATH = /
# Delete console
VITE_DROP_CONSOLE = true
# Whether to enable gzip or brotli compression
# Optional: gzip | brotli | none
# If you need multiple forms, you can use `,` to separate
VITE_BUILD_COMPRESS = 'none'
# Whether to delete origin files when using compress, default false
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
# Basic interface address SPA
VITE_GLOB_API_URL=/basic-api
# File upload address optional
# It can be forwarded by nginx or write the actual address directly
VITE_GLOB_UPLOAD_URL=/upload
# Interface prefix
VITE_GLOB_API_URL_PREFIX=
# Whether to enable image compression
VITE_USE_IMAGEMIN= true
# use pwa
VITE_USE_PWA = false
# Is it compatible with older browsers
VITE_LEGACY = false

View File

@ -1,36 +0,0 @@
NODE_ENV=production
# Whether to open mock
VITE_USE_MOCK = true
# public path
VITE_PUBLIC_PATH = /
# Delete console
VITE_DROP_CONSOLE = true
# Whether to enable gzip or brotli compression
# Optional: gzip | brotli | none
# If you need multiple forms, you can use `,` to separate
VITE_BUILD_COMPRESS = 'none'
# Whether to delete origin files when using compress, default false
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
# Basic interface address SPA
VITE_GLOB_API_URL=/basic-api
# File upload address optional
# It can be forwarded by nginx or write the actual address directly
VITE_GLOB_UPLOAD_URL=/upload
# Interface prefix
VITE_GLOB_API_URL_PREFIX=
# Whether to enable image compression
VITE_USE_IMAGEMIN= true
# use pwa
VITE_USE_PWA = false
# Is it compatible with older browsers
VITE_LEGACY = false

View File

@ -1,15 +0,0 @@
*.sh
node_modules
*.md
*.woff
*.ttf
.vscode
.idea
dist
/public
/docs
.husky
.local
/bin
Dockerfile

View File

@ -1,79 +0,0 @@
// @ts-check
const { defineConfig } = require('eslint-define-config');
module.exports = defineConfig({
root: true,
env: {
browser: true,
node: true,
es6: true,
},
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
ecmaVersion: 2020,
sourceType: 'module',
jsxPragma: 'React',
ecmaFeatures: {
jsx: true,
},
},
extends: [
'plugin:vue/vue3-recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:prettier/recommended',
'plugin:jest/recommended',
],
rules: {
'vue/script-setup-uses-vars': 'error',
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-empty-function': 'off',
'vue/custom-event-name-casing': 'off',
'no-use-before-define': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
},
],
'no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
},
],
'space-before-function-paren': 'off',
'vue/attributes-order': 'off',
'vue/one-component-per-file': 'off',
'vue/html-closing-bracket-newline': 'off',
'vue/max-attributes-per-line': 'off',
'vue/multiline-html-element-content-newline': 'off',
'vue/singleline-html-element-content-newline': 'off',
'vue/attribute-hyphenation': 'off',
'vue/require-default-prop': 'off',
'vue/html-self-closing': [
'error',
{
html: {
void: 'always',
normal: 'never',
component: 'always',
},
svg: 'always',
math: 'always',
},
],
'vue/multi-word-component-names': 'off'
},
});

View File

@ -1,39 +0,0 @@
---
name: 🐛 Bug report
about: Create a report to help us improve
title: ''
labels: 'bug: pending triage'
assignees: ''
---
<!--
抱歉,您遇到了一个错误。感谢您抽出宝贵的时间进行举报!
请尽可能填写以下模板。
Ouch, sorry youve run into a bug. Thank for taking the time to report it!
Please fill in as much of the template below as youre able.
P.S. have you seen our support and contributing docs?
-->
**⚠️ IMPORTANT ⚠️ Please check the following list before proceeding. If you ignore this issue template, your issue will be directly closed.**
- [ ] Read [the docs](https://anncwb.github.io/vue-vben-admin-doc/).
- [ ] Make sure the code is up to date. (Some bugs have been fixed in the latest code)
- [ ] This is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/anncwb/vue-vben-admin/discussions) or join our [Discord](https://discord.gg/8GuAdwDhj6) Chat Server.
### Describe the bug
A clear and concise description of what the bug is..
### Reproduction
Please describe the steps of the problem in detail to ensure that we can restore the correct problem
## System Info
- Operating System:
- Node version:
- Package manager (npm/yarn/pnpm) and version:

View File

@ -1,32 +0,0 @@
---
name: 🚀 Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''
---
<!--
感谢您提出使这个项目更好的想法!
请尽可能填写以下模板。
Thank you for suggesting an idea to make this project better!
Please fill in as much of the template below as youre able.
-->
### Subject of the feature
Describe your issue here.
### Problem
If the feature requests relates to a problem, please describe the problem you are trying to solve here.
### Expected behaviour
What should happen? Please describe the desired behaviour.
### Alternatives
What are the alternative solutions? Please describe what else you have considered?

View File

@ -1,28 +0,0 @@
---
name: 🐛 Bug 报告
about: 向我们报告一个Bug以帮助我们改进
title: ''
labels: 'bug: pending triage'
assignees: ''
---
**⚠️ 重要 ⚠️ 在进一步操作之前,请检查下列选项。如果您忽视此模板或者没有提供关键信息,您的 Issue 将直接被关闭**
- [ ] 已阅读 [文档](https://anncwb.github.io/vue-vben-admin-doc/).
- [ ] 确保您的代码已是最新或者所报告的 Bug 在最新版本中可以重现. (部分 Bug 可能已经在最近的代码中修复)
- [ ] 已在 Issues 中搜索了相关的关键词
- [ ] 不是 ant design vue 组件库的 Bug
### 描述 Bug
请清晰地描述此 Bug 的具体表现。
### 复现 Bug
请描述在演示页面中复现 Bug 的详细步骤,以确保我们可以理解并定位问题。部分 Bug 如果未在 Demo 中涉及,请务必提供关键代码
## 系统信息
- 操作系统:
- Node 版本:
- 包管理器 (npm/yarn/pnpm) 及其版本:

View File

@ -1,8 +0,0 @@
blank_issues_enabled: false
contact_links:
- name: Discord Chat
url: https://discord.gg/8GuAdwDhj6
about: Ask questions and discuss with other Vben users in real time.
- name: Questions & Discussions
url: https://github.com/anncwb/vue-vben-admin/discussions
about: Use GitHub discussions for message-board style questions and discussions.

View File

@ -1,89 +0,0 @@
## Git Commit Message Convention
> This is adapted from [Angular's commit convention](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular).
#### TL;DR:
Messages must be matched by the following regex:
```js
/^(revert: )?(feat|fix|docs|style|refactor|perf|test|workflow|build|ci|chore|types|wip): .{1,50}/;
```
#### Examples
Appears under "Features" header, `dev` subheader:
```
feat(dev): add 'comments' option
```
Appears under "Bug Fixes" header, `dev` subheader, with a link to issue #28:
```
fix(dev): fix dev error
close #28
```
Appears under "Performance Improvements" header, and under "Breaking Changes" with the breaking change explanation:
```
perf(build): remove 'foo' option
BREAKING CHANGE: The 'foo' option has been removed.
```
The following commit and commit `667ecc1` do not appear in the changelog if they are under the same release. If not, the revert commit appears under the "Reverts" header.
```
revert: feat(compiler): add 'comments' option
This reverts commit 667ecc1654a317a13331b17617d973392f415f02.
```
### Full Message Format
A commit message consists of a **header**, **body** and **footer**. The header has a **type**, **scope** and **subject**:
```
<type>(<scope>): <subject>
<BLANK LINE>
<body>
<BLANK LINE>
<footer>
```
The **header** is mandatory and the **scope** of the header is optional.
### Revert
If the commit reverts a previous commit, it should begin with `revert: `, followed by the header of the reverted commit. In the body, it should say: `This reverts commit <hash>.`, where the hash is the SHA of the commit being reverted.
### Type
If the prefix is `feat`, `fix` or `perf`, it will appear in the changelog. However, if there is any [BREAKING CHANGE](#footer), the commit will always appear in the changelog.
Other prefixes are up to your discretion. Suggested prefixes are `docs`, `chore`, `style`, `refactor`, and `test` for non-changelog related tasks.
### Scope
The scope could be anything specifying the place of the commit change. For example `dev`, `build`, `workflow`, `cli` etc...
### Subject
The subject contains a succinct description of the change:
- use the imperative, present tense: "change" not "changed" nor "changes"
- don't capitalize the first letter
- no dot (.) at the end
### Body
Just as in the **subject**, use the imperative, present tense: "change" not "changed" nor "changes". The body should include the motivation for the change and contrast this with previous behavior.
### Footer
The footer should contain any information about **Breaking Changes** and is also the place to reference GitHub issues that this commit **Closes**.
**Breaking Changes** should start with the word `BREAKING CHANGE:` with a space or two newlines. The rest of the commit message is then used for this.

View File

@ -1,5 +0,0 @@
# Contributing Guide
1. Make sure you put things in the right category!
2. Always add your items to the end of a list. To be fair, the order is first-come-first-serve.
3. If you think something belongs in the wrong category, or think there needs to be a new category, feel free to edit things too.

View File

@ -1,34 +0,0 @@
### `General`
> ✏️ Mark the necessary items without changing the structure of the PR template.
- [ ] Pull request template structure not broken
### `Type`
> What types of changes does your code introduce?
> 👉 _Put an `x` in the boxes that apply_
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update
### `Checklist`
> Check all checkboxes - this will indicate that you have done everything in accordance with the rules in [CONTRIBUTING](contributing.md).
> 👉 _Put an `x` in the boxes that apply._
- [ ] My code follows the style guidelines of this project
- [ ] Is the code format correct
- [ ] Is the git submission information standard?
- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream modules

View File

@ -1,118 +0,0 @@
name: deploy
on:
push:
branches:
- main
jobs:
# push-to-ftp:
# if: "contains(github.event.head_commit.message, '[deploy]')"
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# - name: Sed Config Base
# shell: bash
# run: |
# sed -i 's#VITE_PUBLIC_PATH\s*=.*#VITE_PUBLIC_PATH = /next/#g' ./.env.production
# sed -i "s#VITE_BUILD_COMPRESS\s*=.*#VITE_BUILD_COMPRESS = 'gzip'#g" ./.env.production
# cat ./.env.production
# - name: use Node.js 14
# uses: actions/setup-node@v2.1.2
# with:
# node-version: '14.x'
# - name: Get yarn cache
# id: yarn-cache
# run: echo "::set-output name=dir::$(yarn cache dir)"
# - name: Cache dependencies
# uses: actions/cache@v2
# with:
# path: ${{ steps.yarn-cache.outputs.dir }}
# key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
# restore-keys: |
# ${{ runner.os }}-yarn-
# - name: Build
# run: |
# yarn install
# yarn run build
# - name: Deploy
# uses: SamKirkland/FTP-Deploy-Action@2.0.0
# env:
# FTP_SERVER: ${{ secrets.FTP_SERVER }}
# FTP_USERNAME: ${{ secrets.FTP_USERNAME }}
# FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
# METHOD: sftp
# PORT: ${{ secrets.FTP_PORT }}
# LOCAL_DIR: dist
# REMOTE_DIR: /srv/www/vben-admin
# ARGS: --delete --verbose --parallel=80
push-to-gh-pages:
if: "contains(github.event.head_commit.message, '[release]')"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Sed Config Base
shell: bash
run: |
sed -i 's#VITE_PUBLIC_PATH\s*=.*#VITE_PUBLIC_PATH = /vue-vben-admin/#g' ./.env.production
sed -i "s#VITE_BUILD_COMPRESS\s*=.*#VITE_BUILD_COMPRESS = 'gzip'#g" ./.env.production
cat ./.env.production
- name: use Node.js 16
uses: actions/setup-node@v2.1.2
with:
node-version: '16.x'
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Set SSH Environment
env:
DOCS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
run: |
mkdir -p ~/.ssh/
echo "$ACTIONS_DEPLOY_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan github.com > ~/.ssh/known_hosts
chmod 700 ~/.ssh && chmod 600 ~/.ssh/*
git config --local user.email "vbenadmin@163.com"
git config --local user.name "vbenAdmin"
- name: Delete gh-pages branch
run: |
git push origin --delete gh-pages
- name: Build
run: |
yarn install
yarn run build
touch dist/.nojekyll
cp dist/index.html dist/404.html
- name: Deploy
uses: peaceiris/actions-gh-pages@v2.5.0
env:
ACTIONS_DEPLOY_KEY: ${{secrets.ACTIONS_DEPLOY_KEY}}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./dist
with:
forceOrphan: true

View File

@ -1,56 +0,0 @@
name: schedule-push-to-ftp
# Timed deployment project
on:
push:
schedule:
- cron: '0 20 * * *'
jobs:
schedule-push-to-ftp:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Sed Config Base
shell: bash
run: |
sed -i 's#VITE_PUBLIC_PATH\s*=.*#VITE_PUBLIC_PATH = /next/#g' ./.env.production
sed -i "s#VITE_BUILD_COMPRESS\s*=.*#VITE_BUILD_COMPRESS = 'gzip'#g" ./.env.production
sed -i "s#VITE_DROP_CONSOLE\s*=.*#VITE_DROP_CONSOLE = true#g" ./.env.production
cat ./.env.production
- name: use Node.js 16
uses: actions/setup-node@v2.1.2
with:
node-version: '16.x'
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Build
run: |
yarn install
yarn run build
- name: Deploy
uses: SamKirkland/FTP-Deploy-Action@2.0.0
env:
FTP_SERVER: ${{ secrets.FTP_SERVER }}
FTP_USERNAME: ${{ secrets.FTP_USERNAME }}
FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }}
METHOD: sftp
PORT: ${{ secrets.FTP_PORT }}
LOCAL_DIR: dist
REMOTE_DIR: /srv/www/vben-admin
ARGS: --delete --verbose --parallel=80

View File

@ -1,17 +0,0 @@
name: Issue Close Require
on:
schedule:
- cron: '0 0 * * *'
jobs:
close-issues:
runs-on: ubuntu-latest
steps:
- name: need reproduction
uses: actions-cool/issues-helper@v2.1.1
with:
actions: 'close-issues'
token: ${{ secrets.OPER_TOKEN }}
labels: 'need reproduction'
inactive-day: 3

View File

@ -1,29 +0,0 @@
name: Issue Labeled
on:
issues:
types: [labeled]
jobs:
reply-labeled:
runs-on: ubuntu-latest
steps:
- name: remove pending
if: github.event.label.name == 'enhancement' || github.event.label.name == 'bug'
uses: actions-cool/issues-helper@v2.1.1
with:
actions: 'remove-labels'
token: ${{ secrets.OPER_TOKEN }}
issue-number: ${{ github.event.issue.number }}
labels: 'bug: pending triage'
- name: need reproduction
if: github.event.label.name == 'need reproduction'
uses: actions-cool/issues-helper@v2.1.1
with:
actions: 'create-comment, remove-labels'
token: ${{ secrets.OPER_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
Hello @${{ github.event.issue.user.login }}. Please provide the complete reproduction steps and code. Issues labeled by `need reproduction` will be closed if no activities in 3 days.
labels: 'bug: pending triage'

View File

@ -1,24 +0,0 @@
name: Create Release
on:
push:
tags:
- v*
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Create Release for Tag
id: release_tag
uses: yyx990803/release-tag@master
env:
GITHUB_TOKEN: ${{ secrets.OPER_TOKEN }}
with:
tag_name: ${{ github.ref }}
body: |
Please refer to [CHANGELOG.md](https://github.com/anncwb/vue-vben-admin/blob/main/CHANGELOG.md) for details.

29
.gitignore vendored
View File

@ -1,29 +0,0 @@
node_modules
.DS_Store
dist
.npmrc
.cache
tests/server/static
tests/server/static/upload
.local
# local env files
.env.local
.env.*.local
.eslintcache
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# Editor directories and files
.idea
# .vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

View File

@ -1,6 +0,0 @@
ports:
- port: 3344
onOpen: open-preview
tasks:
- init: pnpm install
command: pnpm run dev

View File

@ -1,6 +0,0 @@
#!/bin/sh
# shellcheck source=./_/husky.sh
. "$(dirname "$0")/_/husky.sh"
npx --no-install commitlint --edit "$1"

View File

@ -1,9 +0,0 @@
#!/bin/sh
command_exists () {
command -v "$1" >/dev/null 2>&1
}
# Workaround for Windows 10, Git Bash and Yarn
if command_exists winpty && test -t 1; then
exec < /dev/tty
fi

View File

@ -1,8 +0,0 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
. "$(dirname "$0")/common.sh"
[ -n "$CI" ] && exit 0
# Format and submit code according to lintstagedrc.js configuration
npm run lint:lint-staged

0
.nojekyll Normal file
View File

View File

@ -1,9 +0,0 @@
/dist/*
.local
.output.js
/node_modules/**
**/*.svg
**/*.sh
/public/*

View File

@ -1,3 +0,0 @@
/dist/*
/public/*
public/*

View File

@ -1,13 +0,0 @@
{
"recommendations": [
"johnsoncodehk.volar",
"dbaeumer.vscode-eslint",
"stylelint.vscode-stylelint",
"esbenp.prettier-vscode",
"mrmlnc.vscode-less",
"lokalise.i18n-ally",
"antfu.iconify",
"mikestead.dotenv",
"heybourn.headwind"
]
}

13
.vscode/launch.json vendored
View File

@ -1,13 +0,0 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome",
"url": "http://localhost:3100",
"webRoot": "${workspaceFolder}/src",
"sourceMaps": true
}
]
}

143
.vscode/settings.json vendored
View File

@ -1,143 +0,0 @@
{
"typescript.tsdk": "./node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"volar.tsPlugin": true,
"volar.tsPluginStatus": false,
//===========================================
//============= Editor ======================
//===========================================
"editor.tabSize": 2,
"editor.defaultFormatter": "esbenp.prettier-vscode",
//===========================================
//============= files =======================
//===========================================
"files.eol": "\n",
"search.exclude": {
"**/node_modules": true,
"**/*.log": true,
"**/*.log*": true,
"**/bower_components": true,
"**/dist": true,
"**/elehukouben": true,
"**/.git": true,
"**/.gitignore": true,
"**/.svn": true,
"**/.DS_Store": true,
"**/.idea": true,
"**/.vscode": false,
"**/yarn.lock": true,
"**/tmp": true,
"out": true,
"dist": true,
"node_modules": true,
"CHANGELOG.md": true,
"examples": true,
"res": true,
"screenshots": true,
"yarn-error.log": true,
"**/.yarn": true
},
"files.exclude": {
"**/.cache": true,
"**/.editorconfig": true,
"**/.eslintcache": true,
"**/bower_components": true,
"**/.idea": true,
"**/tmp": true,
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true
},
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/.vscode/**": true,
"**/node_modules/**": true,
"**/tmp/**": true,
"**/bower_components/**": true,
"**/dist/**": true,
"**/yarn.lock": true
},
"stylelint.enable": true,
"stylelint.packageManager": "yarn",
"path-intellisense.mappings": {
"/@/": "${workspaceRoot}/src"
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[less]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[scss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"[vue]": {
"editor.codeActionsOnSave": {
"source.fixAll.eslint": false
}
},
"i18n-ally.localesPaths": ["src/locales/lang"],
"i18n-ally.keystyle": "nested",
"i18n-ally.sortKeys": true,
"i18n-ally.namespace": true,
"i18n-ally.pathMatcher": "{locale}/{namespaces}.{ext}",
"i18n-ally.enabledParsers": ["ts"],
"i18n-ally.sourceLanguage": "en",
"i18n-ally.displayLanguage": "zh-CN",
"i18n-ally.enabledFrameworks": ["vue", "react"],
"cSpell.words": [
"vben",
"windi",
"browserslist",
"tailwindcss",
"esnext",
"antv",
"tinymce",
"qrcode",
"sider",
"pinia",
"sider",
"nprogress",
"INTLIFY",
"stylelint",
"esno",
"vitejs",
"sortablejs",
"mockjs",
"codemirror",
"iconify",
"commitlint",
"vditor",
"echarts",
"cropperjs",
"logicflow",
"vueuse",
"zxcvbn",
"lintstagedrc",
"brotli",
"tailwindcss",
"sider",
"pnpm"
]
}

1
404.html Normal file
View File

@ -0,0 +1 @@
<!DOCTYPE html><html lang=en><head><script src="/vue-vben-admin/_app.config.js?v=2.0.1-1614099743992"></script><meta charset=UTF-8><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><meta name=renderer content=webkit><meta name=viewport content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=0"><title>Vben Admin</title><link rel=icon href=/vue-vben-admin/favicon.ico><script type=module crossorigin src=/vue-vben-admin/assets/index.8a947221.js></script><link rel=modulepreload href=/vue-vben-admin/assets/vendor.3b1829c7.js><link rel=stylesheet href=/vue-vben-admin/assets/index.04731d6f.css><link rel=stylesheet href=/vue-vben-admin/assets/vendor.4a5fa02d.css></head><body><div id=app><style>.app-loading{display:flex;width:100%;height:100%;justify-content:center;align-items:center;flex-direction:column;background:#f4f7f9}.app-loading .app-loading-wrap{position:absolute;top:50%;left:50%;display:flex;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0);justify-content:center;align-items:center;flex-direction:column}.app-loading .dots{display:flex;padding:98px;justify-content:center;align-items:center}.app-loading .app-loading-title{display:flex;margin-top:30px;font-size:30px;color:rgba(0,0,0,.85);justify-content:center;align-items:center}.app-loading .app-loading-logo{display:block;width:90px;margin:0 auto;margin-bottom:20px}.dot{position:relative;display:inline-block;width:48px;height:48px;margin-top:30px;font-size:32px;transform:rotate(45deg);box-sizing:border-box;animation:antRotate 1.2s infinite linear}.dot i{position:absolute;display:block;width:20px;height:20px;background-color:#0065cc;border-radius:100%;opacity:.3;transform:scale(.75);animation:antSpinMove 1s infinite linear alternate;transform-origin:50% 50%}.dot i:nth-child(1){top:0;left:0}.dot i:nth-child(2){top:0;right:0;-webkit-animation-delay:.4s;animation-delay:.4s}.dot i:nth-child(3){right:0;bottom:0;-webkit-animation-delay:.8s;animation-delay:.8s}.dot i:nth-child(4){bottom:0;left:0;-webkit-animation-delay:1.2s;animation-delay:1.2s}@keyframes antRotate{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}@-webkit-keyframes antRotate{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}@keyframes antSpinMove{to{opacity:1}}@-webkit-keyframes antSpinMove{to{opacity:1}}</style><div class=app-loading><div class=app-loading-wrap><img src=/vue-vben-admin/resource/img/logo.png class=app-loading-logo alt=Logo><div class=app-loading-dots><span class="dot dot-spin"><i></i><i></i><i></i><i></i></span></div><div class=app-loading-title>Vben Admin</div></div></div></div></body></html>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

21
LICENSE
View File

@ -1,21 +0,0 @@
MIT License
Copyright (c) 2020-present, Vben
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

169
README.md
View File

@ -1,169 +0,0 @@
<div align="center"> <a href="https://github.com/anncwb/vue-vben-admin"> <img alt="VbenAdmin Logo" width="200" height="200" src="https://anncwb.github.io/anncwb/images/logo.png"> </a> <br> <br>
[![license](https://img.shields.io/github/license/anncwb/vue-vben-admin.svg)](LICENSE)
<h1>Vue vben admin</h1>
</div>
**English** | [中文](./README.zh-CN.md)
## Introduction
Vue Vben Admin is a free and open source middle and back-end template. Using the latest `vue3`, `vite2`, `TypeScript` and other mainstream technology development, the out-of-the-box middle and back-end front-end solutions can also be used for learning reference.
## Feature
- **State of The Art Development**Use front-end front-end technology development such as Vue3/vite2
- **TypeScript**: Application-level JavaScript language
- **Theming**: Configurable themes
- **International**Built-in complete internationalization program
- **Mock Server** Built-in mock data scheme
- **Authority** Built-in complete dynamic routing permission generation scheme.
- **Component** Multiple commonly used components are encapsulated twice
## 预览
- [vue-vben-admin](https://vvbin.cn/next/) - Full version Chinese site
- [vue-vben-admin-gh-pages](https://anncwb.github.io/vue-vben-admin/) - Full version of the github site
- [vben-admin-thin-next](https://vvbin.cn/thin/next/) - Simplified Chinese site
- [vben-admin-thin-gh-pages](https://anncwb.github.io/vben-admin-thin-next/) -Simplified github site
Test account: vben/123456
<p align="center">
<img alt="VbenAdmin Logo" width="100%" src="https://anncwb.github.io/anncwb/images/preview1.png">
<img alt="VbenAdmin Logo" width="100%" src="https://anncwb.github.io/anncwb/images/preview2.png">
<img alt="VbenAdmin Logo" width="100%" src="https://anncwb.github.io/anncwb/images/preview3.png">
</p>
### Use Gitpod
Open the project in Gitpod (free online dev environment for GitHub) and start coding immediately.
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/anncwb/vue-vben-admin)
## Documentation
[Document](https://vvbin.cn/doc-next/)
## Preparation
- [node](http://nodejs.org/) and [git](https://git-scm.com/) - Project development environment
- [Vite](https://vitejs.dev/) - Familiar with vite features
- [Vue3](https://v3.vuejs.org/) - Familiar with Vue basic syntax
- [TypeScript](https://www.typescriptlang.org/) - Familiar with the basic syntax of `TypeScript`
- [Es6+](http://es6.ruanyifeng.com/) - Familiar with es6 basic syntax
- [Vue-Router-Next](https://next.router.vuejs.org/) - Familiar with the basic use of vue-router
- [Ant-Design-Vue](https://2x.antdv.com/docs/vue/introduce-cn/) - ui basic use
- [Mock.js](https://github.com/nuysoft/Mock) - mockjs basic syntax
## Install and use
- Get the project code
```bash
git clone https://github.com/anncwb/vue-vben-admin.git
```
- Installation dependencies
```bash
cd vue-vben-admin
pnpm install
```
- run
```bash
pnpm serve
```
- build
```bash
pnpm build
```
## Change Log
[CHANGELOG](./CHANGELOG.zh_CN.md)
## Project
- [vue-vben-admin](https://github.com/anncwb/vue-vben-admin) - full version
- [vue-vben-admin-thin-next](https://github.com/anncwb/vben-admin-thin-next) - Simplified version
## How to contribute
You are very welcome to join[Raise an issue](https://github.com/anncwb/vue-vben-admin/issues/new/choose) Or submit a Pull Request。
**Pull Request:**
1. Fork code!
2. Create your own branch: `git checkout -b feat/xxxx`
3. Submit your changes: `git commit -am 'feat(function): add xxxxx'`
4. Push your branch: `git push origin feat/xxxx`
5. submit`pull request`
## Git Contribution submission specification
- reference [vue](https://github.com/vuejs/vue/blob/dev/.github/COMMIT_CONVENTION.md) specification ([Angular](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular))
- `feat` Add new features
- `fix` Fix the problem/BUG
- `style` The code style is related and does not affect the running result
- `perf` Optimization/performance improvement
- `refactor` Refactor
- `revert` Undo edit
- `test` Test related
- `docs` Documentation/notes
- `chore` Dependency update/scaffolding configuration modification etc.
- `workflow` Workflow improvements
- `ci` Continuous integration
- `types` Type definition file changes
- `wip` In development
## Related warehouse
If these plugins are helpful to you, you can give a star support
- [vite-plugin-mock](https://github.com/anncwb/vite-plugin-mock) - Used for local and development environment data mock
- [vite-plugin-html](https://github.com/anncwb/vite-plugin-html) - Used for html template conversion and compression
- [vite-plugin-style-import](https://github.com/anncwb/vite-plugin-style-import) - Used for component library style introduction on demand
- [vite-plugin-theme](https://github.com/anncwb/vite-plugin-theme) - Used for online switching of theme colors and other color-related configurations
- [vite-plugin-imagemin](https://github.com/anncwb/vite-plugin-imagemin) - Used to pack compressed image resources
- [vite-plugin-compression](https://github.com/anncwb/vite-plugin-compression) - Used to pack input .gz|.brotil files
- [vite-plugin-svg-icons](https://github.com/anncwb/vite-plugin-svg-icons) - Used to quickly generate svg sprite
## Browser support
The `Chrome 80+` browser is recommended for local development
Support modern browsers, not IE
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt=" Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>IE | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt=" Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari |
| :-: | :-: | :-: | :-: | :-: |
| not support | last 2 versions | last 2 versions | last 2 versions | last 2 versions |
## Maintainer
[@Vben](https://github.com/anncwb)
## Donate
If you think this project is helpful to you, you can help the author buy a cup of coffee to show your support!
![donate](https://anncwb.github.io/anncwb/images/sponsor.png)
<a style="display: block;width: 100px;height: 50px;line-height: 50px; color: #fff;text-align: center; background: #408aed;border-radius: 4px;" href="https://www.paypal.com/paypalme/cvvben">Paypal Me</a>
## Discord
- [github discussions](https://github.com/anncwb/vue-vben-admin/discussions)
- [Discord](https://discord.gg/8GuAdwDhj6)
## License
[MIT © Vben-2020](./LICENSE)

View File

@ -1,175 +0,0 @@
<div align="center"> <a href="https://github.com/anncwb/vue-vben-admin"> <img alt="VbenAdmin Logo" width="200" height="200" src="https://anncwb.github.io/anncwb/images/logo.png"> </a> <br> <br>
[![license](https://img.shields.io/github/license/anncwb/vue-vben-admin.svg)](LICENSE)
<h1>Vue vben admin</h1>
</div>
**中文** | [English](./README.md)
## 简介
Vue Vben Admin 是一个免费开源的中后台模版。使用了最新的`vue3`,`vite2`,`TypeScript`等主流技术开发,开箱即用的中后台前端解决方案,也可用于学习参考。
## 特性
- **最新技术栈**:使用 Vue3/vite2 等前端前沿技术开发
- **TypeScript**: 应用程序级 JavaScript 的语言
- **主题**:可配置的主题
- **国际化**:内置完善的国际化方案
- **Mock 数据** 内置 Mock 数据方案
- **权限** 内置完善的动态路由权限生成方案
- **组件** 二次封装了多个常用的组件
## 预览
- [vue-vben-admin](https://vvbin.cn/next/) - 完整版中文站点
- [vue-vben-admin-gh-pages](https://anncwb.github.io/vue-vben-admin/) - 完整版 github 站点
- [vben-admin-thin-next](https://vvbin.cn/thin/next/) - 简化版中文站点
- [vben-admin-thin-gh-pages](https://anncwb.github.io/vben-admin-thin-next/) - 简化版 github 站点
测试账号: vben/123456
<p align="center">
<img alt="VbenAdmin Logo" width="100%" src="https://anncwb.github.io/anncwb/images/preview1.png">
<img alt="VbenAdmin Logo" width="100%" src="https://anncwb.github.io/anncwb/images/preview2.png">
<img alt="VbenAdmin Logo" width="100%" src="https://anncwb.github.io/anncwb/images/preview3.png">
</p>
### 使用 Gitpod
在 Gitpod适用于 GitHub 的免费在线开发环境)中打开项目,并立即开始编码.
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/anncwb/vue-vben-admin)
## 文档
[文档地址](https://vvbin.cn/doc-next/)
## 准备
- [node](http://nodejs.org/) 和 [git](https://git-scm.com/) -项目开发环境
- [Vite](https://vitejs.dev/) - 熟悉 vite 特性
- [Vue3](https://v3.vuejs.org/) - 熟悉 Vue 基础语法
- [TypeScript](https://www.typescriptlang.org/) - 熟悉`TypeScript`基本语法
- [Es6+](http://es6.ruanyifeng.com/) - 熟悉 es6 基本语法
- [Vue-Router-Next](https://next.router.vuejs.org/) - 熟悉 vue-router 基本使用
- [Ant-Design-Vue](https://2x.antdv.com/docs/vue/introduce-cn/) - ui 基本使用
- [Mock.js](https://github.com/nuysoft/Mock) - mockjs 基本语法
## 安装使用
- 获取项目代码
```bash
git clone https://github.com/anncwb/vue-vben-admin.git
```
- 安装依赖
```bash
cd vue-vben-admin
pnpm install
```
- 运行
```bash
pnpm serve
```
- 打包
```bash
pnpm build
```
## 更新日志
[CHANGELOG](./CHANGELOG.zh_CN.md)
## 项目地址
- [vue-vben-admin](https://github.com/anncwb/vue-vben-admin) - 完整版
- [vue-vben-admin-thin-next](https://github.com/anncwb/vben-admin-thin-next) - 简化版
## 如何贡献
非常欢迎你的加入![提一个 Issue](https://github.com/anncwb/vue-vben-admin/issues/new/choose) 或者提交一个 Pull Request。
**Pull Request:**
1. Fork 代码!
2. 创建自己的分支: `git checkout -b feat/xxxx`
3. 提交你的修改: `git commit -am 'feat(function): add xxxxx'`
4. 推送您的分支: `git push origin feat/xxxx`
5. 提交`pull request`
## Git 贡献提交规范
- 参考 [vue](https://github.com/vuejs/vue/blob/dev/.github/COMMIT_CONVENTION.md) 规范 ([Angular](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular))
- `feat` 增加新功能
- `fix` 修复问题/BUG
- `style` 代码风格相关无影响运行结果的
- `perf` 优化/性能提升
- `refactor` 重构
- `revert` 撤销修改
- `test` 测试相关
- `docs` 文档/注释
- `chore` 依赖更新/脚手架配置修改等
- `workflow` 工作流改进
- `ci` 持续集成
- `types` 类型定义文件更改
- `wip` 开发中
## 浏览器支持
本地开发推荐使用`Chrome 80+` 浏览器
支持现代浏览器, 不支持 IE
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt=" Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>IE | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt=" Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari |
| :-: | :-: | :-: | :-: | :-: |
| not support | last 2 versions | last 2 versions | last 2 versions | last 2 versions |
## 相关仓库
如果这些插件对你有帮助,可以给一个 star 支持下
- [vite-plugin-mock](https://github.com/anncwb/vite-plugin-mock) - 用于本地及开发环境数据 mock
- [vite-plugin-html](https://github.com/anncwb/vite-plugin-html) - 用于 html 模版转换及压缩
- [vite-plugin-style-import](https://github.com/anncwb/vite-plugin-style-import) - 用于组件库样式按需引入
- [vite-plugin-theme](https://github.com/anncwb/vite-plugin-theme) - 用于在线切换主题色等颜色相关配置
- [vite-plugin-imagemin](https://github.com/anncwb/vite-plugin-imagemin) - 用于打包压缩图片资源
- [vite-plugin-compression](https://github.com/anncwb/vite-plugin-compression) - 用于打包输出.gz|.brotil 文件
- [vite-plugin-svg-icons](https://github.com/anncwb/vite-plugin-svg-icons) - 用于快速生成 svg 雪碧图
## 后台整合示例
- [lamp-cloud](https://github.com/zuihou/lamp-cloud) - 基于 SpringCloud Alibaba 的微服务中后台快速开发平台
- [matecloud](https://github.com/matevip/matecloud) - MateCloud 微服务脚手架,基于 Spring Cloud 2020.0.3、SpringBoot 2.5.3 的全开源平台
## 维护者
[@Vben](https://github.com/anncwb)
## 捐赠
如果你觉得这个项目对你有帮助,你可以帮作者买一杯咖啡表示支持!
![donate](https://anncwb.github.io/anncwb/images/sponsor.png)
<a style="display: block;width: 100px;height: 50px;line-height: 50px; color: #fff;text-align: center; background: #408aed;border-radius: 4px;" href="https://www.paypal.com/paypalme/cvvben">Paypal Me</a>
## 交流
`Vue-vben-Admin` 是完全开源免费的项目,在帮助开发者更方便地进行中大型管理系统开发,同时也提供 QQ 交流群使用问题欢迎在群内提问。
- QQ 群 `569291866`
## License
[MIT © Vben-2020](./LICENSE)

1
_app.config.js Normal file
View File

@ -0,0 +1 @@
window.__PRODUCTION__VUE_VBEN_ADMIN_2X__CONF__={"VITE_GLOB_APP_TITLE":"VbenAdmin","VITE_GLOB_APP_SHORT_NAME":"vue_vben_admin_2x","VITE_GLOB_API_URL":"/api","VITE_GLOB_UPLOAD_URL":"/upload","VITE_GLOB_API_URL_PREFIX":""};Object.freeze(window.__PRODUCTION__VUE_VBEN_ADMIN_2X__CONF__);Object.defineProperty(window,"__PRODUCTION__VUE_VBEN_ADMIN_2X__CONF__",{configurable:false,writable:false,});

View File

@ -0,0 +1 @@
import{d as t,aO as e,r as a,o as i,f as s,br as o,g as r,F as l,aP as n,s as d,q as m,t as p}from"./index.8a947221.js";import{L as c}from"./index.c7769756.js";import"./index.6f85517b.js";import"./index.81c9b1dc.js";import"./index.b59597c9.js";import{d as j}from"./ScrollContainer.7c8aaa6b.js";import{c as f}from"./data.a32591d5.js";import"./vendor.3b1829c7.js";import"./SearchOutlined.b19280fd.js";import"./toString.861a9ae4.js";import"./isArray.e55f5dd2.js";import"./_baseClone.91fce584.js";import"./_Uint8Array.b1ff6412.js";import"./identity.e5918e80.js";import"./_baseSlice.6f42b8d2.js";import"./CheckOutlined.af985792.js";import"./DownOutlined.e3879b2b.js";import"./LeftOutlined.081aa009.js";import"./RightOutlined.d3306906.js";import"./DoubleLeftOutlined.6a700560.js";import"./DoubleRightOutlined.9ab318aa.js";import"./zh_CN.8094f4d6.js";import"./responsiveObserve.c545f1cc.js";import"./index.02b8894f.js";import"./domUtils.e0b91801.js";/* empty css */import"./useTimeout.4ab89dd3.js";import"./useScrollTo.a0f2ab62.js";var b=t({components:{CollapseContainer:j,List:c,ListItem:c.Item,ListItemMeta:c.Item.Meta,Icon:e},setup:()=>({list:f})});const u=o("data-v-53e6fb4d"),x=u(((t,e,o,c,j,f)=>{const b=a("Icon"),x=a("a-button"),v=a("ListItemMeta"),_=a("ListItem"),I=a("List"),L=a("CollapseContainer");return i(),s(L,{title:"账号绑定",canExpan:!1},{default:u((()=>[r(I,null,{default:u((()=>[(i(!0),s(l,null,n(t.list,(t=>(i(),s(_,{key:t.key},{default:u((()=>[r(v,null,{avatar:u((()=>[t.avatar?(i(),s(b,{key:0,class:"avatar",icon:t.avatar,color:t.color},null,8,["icon","color"])):d("",!0)])),title:u((()=>[m(p(t.title)+" ",1),t.extra?(i(),s(x,{key:0,type:"link",size:"small",class:"extra"},{default:u((()=>[m(p(t.extra),1)])),_:2},1024)):d("",!0)])),description:u((()=>[r("div",null,p(t.description),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1})}));b.render=x,b.__scopeId="data-v-53e6fb4d";export default b;

Binary file not shown.

View File

@ -0,0 +1 @@
.avatar[data-v-53e6fb4d]{font-size:40px!important}.extra[data-v-53e6fb4d]{float:right;margin-top:10px;margin-right:30px;cursor:pointer}

View File

@ -0,0 +1 @@
import{_ as s}from"./ScrollContainer.7c8aaa6b.js";import{_ as o}from"./index.ee861045.js";import{d as r,h as t,j as l,dg as a,dh as e,r as i,o as n,f as c,g as d,F as p,aP as m,t as u,br as f,q as j}from"./index.8a947221.js";import"./index.02b8894f.js";import"./domUtils.e0b91801.js";import"./RightOutlined.d3306906.js";/* empty css */import"./useTimeout.4ab89dd3.js";import"./useScrollTo.a0f2ab62.js";import"./index.2698f41d.js";import"./index.d94421bb.js";import"./EllipsisOutlined.0ca49394.js";import"./types.31046b05.js";import"./isEqual.563532de.js";import"./_Uint8Array.b1ff6412.js";import"./isArray.e55f5dd2.js";import"./toInteger.a25ecc80.js";import"./DownOutlined.e3879b2b.js";import"./index.c32e09a2.js";import"./usePageContext.5206dcb7.js";import"./transButton.249d7b30.js";import"./ArrowLeftOutlined.5c44f118.js";import"./vendor.3b1829c7.js";var b=r({components:{ScrollContainer:s,PageWrapper:o},setup(){const s=t(null),o=()=>{const o=l(s);if(!o)throw new Error("scroll is Null");return o};return{scrollTo:function(s){o().scrollTo(s)},scrollRef:s,scrollBottom:function(){o().scrollBottom()}}}});const x=f("data-v-331a2139");a("data-v-331a2139");const _={class:"my-4"},C=j(" 滚动到100px位置 "),g=j(" 滚动到800px位置 "),v=j(" 滚动到顶部 "),T=j(" 滚动到底部 "),y={class:"scroll-wrap"},k={class:"p-3"};e();const w=x(((s,o,r,t,l,a)=>{const e=i("a-button"),f=i("ScrollContainer"),j=i("PageWrapper");return n(),c(j,{title:"滚动组件函数示例",content:"基于el-scrollbar"},{default:x((()=>[d("div",_,[d(e,{onClick:o[1]||(o[1]=o=>s.scrollTo(100)),class:"mr-2"},{default:x((()=>[C])),_:1}),d(e,{onClick:o[2]||(o[2]=o=>s.scrollTo(800)),class:"mr-2"},{default:x((()=>[g])),_:1}),d(e,{onClick:o[3]||(o[3]=o=>s.scrollTo(0)),class:"mr-2"},{default:x((()=>[v])),_:1}),d(e,{onClick:o[4]||(o[4]=o=>s.scrollBottom()),class:"mr-2"},{default:x((()=>[T])),_:1})]),d("div",y,[d(f,{class:"mt-4",ref:"scrollRef"},{default:x((()=>[d("ul",k,[(n(),c(p,null,m(100,(s=>d("li",{key:s,class:"p-2",style:{border:"1px solid #eee"}},u(s),1))),64))])])),_:1},512)])])),_:1})}));b.render=w,b.__scopeId="data-v-331a2139";export default b;

Binary file not shown.

View File

@ -0,0 +1 @@
.scroll-wrap[data-v-331a2139]{width:50%;height:300px;background:#fff}

View File

@ -0,0 +1 @@
import{B as e,t}from"./data.6dc17073.js";import{d as a}from"./ScrollContainer.7c8aaa6b.js";import{d as n,h as s,n as l,j as o,r,o as d,f as i,p as c,g as p,q as u}from"./index.8a947221.js";import{_ as f}from"./index.ee861045.js";import"./index.02b8894f.js";import"./domUtils.e0b91801.js";import"./RightOutlined.d3306906.js";/* empty css */import"./useTimeout.4ab89dd3.js";import"./useScrollTo.a0f2ab62.js";import"./vendor.3b1829c7.js";import"./index.2698f41d.js";import"./index.d94421bb.js";import"./EllipsisOutlined.0ca49394.js";import"./types.31046b05.js";import"./isEqual.563532de.js";import"./_Uint8Array.b1ff6412.js";import"./isArray.e55f5dd2.js";import"./toInteger.a25ecc80.js";import"./DownOutlined.e3879b2b.js";import"./index.c32e09a2.js";import"./usePageContext.5206dcb7.js";import"./transButton.249d7b30.js";import"./ArrowLeftOutlined.5c44f118.js";var m=n({components:{BasicTree:e,CollapseContainer:a,PageWrapper:f},setup(){const e=s(null),{createMessage:a}=l();function n(){const t=o(e);if(!t)throw new Error("tree is null!");return t}return{treeData:t,treeRef:e,handleLevel:function(e){n().filterByLevel(e)},handleSetCheckData:function(){n().setCheckedKeys(["0-0"])},handleGetCheckData:function(){const e=n().getCheckedKeys();a.success(JSON.stringify(e))},handleSetSelectData:function(){n().setSelectedKeys(["0-0"])},handleGetSelectData:function(){const e=n().getSelectedKeys();a.success(JSON.stringify(e))},handleSetExpandData:function(){n().setExpandedKeys(["0-0"])},handleGetExpandData:function(){const e=n().getExpandedKeys();a.success(JSON.stringify(e))},appendNodeByKey:function(e=null){n().insertNodeByKey({parentKey:e,node:{title:"新增节点",key:"2-2-2"},push:"push"})},deleteNodeByKey:function(e){n().deleteNodeByKey(e)},updateNodeByKey:function(e){n().updateNodeByKey(e,{title:"parent2-new"})}}}});const y={class:"mb-4"},C=u(" 显示到第2级 "),h=u(" 显示到第1级 "),k=u(" 设置勾选数据 "),j=u(" 获取勾选数据 "),b=u(" 设置选中数据 "),D=u(" 获取选中数据 "),K=u(" 设置展开数据 "),S=u(" 获取展开数据 "),x={class:"mb-4"},B=u(" 添加根节点 "),_=u(" 添加在parent3内添加节点 "),g=u(" 删除parent3节点 "),N=u(" 更新parent2节点 ");m.render=function(e,t,a,n,s,l){const o=r("a-button"),u=r("BasicTree"),f=r("CollapseContainer"),m=r("PageWrapper");return d(),i(m,{title:"Tree函数操作示例",contentBackground:"",contentClass:"p-4"},{default:c((()=>[p("div",y,[p(o,{onClick:t[1]||(t[1]=t=>e.handleLevel(2)),class:"mr-2"},{default:c((()=>[C])),_:1}),p(o,{onClick:t[2]||(t[2]=t=>e.handleLevel(1)),class:"mr-2"},{default:c((()=>[h])),_:1}),p(o,{onClick:e.handleSetCheckData,class:"mr-2"},{default:c((()=>[k])),_:1},8,["onClick"]),p(o,{onClick:e.handleGetCheckData,class:"mr-2"},{default:c((()=>[j])),_:1},8,["onClick"]),p(o,{onClick:e.handleSetSelectData,class:"mr-2"},{default:c((()=>[b])),_:1},8,["onClick"]),p(o,{onClick:e.handleGetSelectData,class:"mr-2"},{default:c((()=>[D])),_:1},8,["onClick"]),p(o,{onClick:e.handleSetExpandData,class:"mr-2"},{default:c((()=>[K])),_:1},8,["onClick"]),p(o,{onClick:e.handleGetExpandData,class:"mr-2"},{default:c((()=>[S])),_:1},8,["onClick"])]),p("div",x,[p(o,{onClick:t[3]||(t[3]=t=>e.appendNodeByKey(null)),class:"mr-2"},{default:c((()=>[B])),_:1}),p(o,{onClick:t[4]||(t[4]=t=>e.appendNodeByKey("2-2")),class:"mr-2"},{default:c((()=>[_])),_:1}),p(o,{onClick:t[5]||(t[5]=t=>e.deleteNodeByKey("2-2")),class:"mr-2"},{default:c((()=>[g])),_:1}),p(o,{onClick:t[6]||(t[6]=t=>e.updateNodeByKey("1-1")),class:"mr-2"},{default:c((()=>[N])),_:1})]),p(f,{title:"函数操作",class:"mr-4",canExpan:!1,style:{width:"33%"}},{default:c((()=>[p(u,{treeData:e.treeData,ref:"treeRef",checkable:!0},null,8,["treeData"])])),_:1})])),_:1})};export default m;

Binary file not shown.

View File

@ -0,0 +1 @@
import{f as e}from"./BasicForm.205370b0.js";import{u as o}from"./useForm.5e8ab938.js";import{d as t}from"./ScrollContainer.7c8aaa6b.js";import{_ as i}from"./index.ee861045.js";import{d as s,r as p,o as l,f as n,p as r,g as a}from"./index.8a947221.js";import"./index.f1773ae9.js";import"./_baseClone.91fce584.js";import"./_Uint8Array.b1ff6412.js";import"./isArray.e55f5dd2.js";import"./index.b59597c9.js";import"./responsiveObserve.c545f1cc.js";import"./vendor.3b1829c7.js";import"./findIndex.07496caf.js";import"./isEqual.563532de.js";import"./identity.e5918e80.js";import"./toString.861a9ae4.js";import"./_baseProperty.0fd6dbfc.js";import"./toInteger.a25ecc80.js";import"./index.4c43253e.js";import"./index.2c4e33f6.js";import"./SearchOutlined.b19280fd.js";import"./EyeOutlined.3f7d1401.js";import"./index.6f85517b.js";import"./_baseSlice.6f42b8d2.js";import"./CheckOutlined.af985792.js";import"./DownOutlined.e3879b2b.js";import"./index.aad67b3f.js";import"./index.36897cf3.js";import"./index.c47a44f7.js";import"./UpOutlined.66b37b38.js";import"./index.c8ff2abb.js";import"./RightOutlined.d3306906.js";import"./RedoOutlined.58d0f99d.js";import"./index.d94421bb.js";import"./EllipsisOutlined.0ca49394.js";import"./types.31046b05.js";import"./Tree.00294558.js";import"./util.2d6868a4.js";import"./useFormItem.cfc17307.js";import"./isEqual.222c6e0f.js";import"./_baseIsEqual.97cc6b34.js";import"./get.b2e237e3.js";/* empty css */import"./uuid.03279e2e.js";import"./index.831f8df6.js";import"./DeleteOutlined.ce0659f5.js";import"./index.a5da0e53.js";import"./useModal.b05e4604.js";import"./useTimeout.4ab89dd3.js";import"./useWindowSizeFn.0acae6c2.js";import"./FullscreenOutlined.88a165f5.js";import"./index.6704907b.js";import"./Dropdown.16737c14.js";import"./index.cdde649d.js";import"./LeftOutlined.081aa009.js";import"./download.93ef06c4.js";import"./domUtils.e0b91801.js";import"./uniqBy.5d345c52.js";import"./index.02b8894f.js";import"./useScrollTo.a0f2ab62.js";import"./index.2698f41d.js";import"./index.c32e09a2.js";import"./usePageContext.5206dcb7.js";import"./transButton.249d7b30.js";import"./ArrowLeftOutlined.5c44f118.js";var d=s({components:{BasicForm:e,CollapseContainer:t,PageWrapper:i},setup(){const[e]=o({labelWidth:120,schemas:[{field:"field1",component:"Input",label:"字段1",colProps:{span:8},componentProps:{placeholder:"自定义placeholder",onChange:e=>{}}},{field:"field2",component:"Input",label:"字段2",colProps:{span:8}},{field:"field3",component:"DatePicker",label:"字段3",colProps:{span:8}},{field:"field4",component:"Select",label:"字段4",colProps:{span:8},componentProps:{options:[{label:"选项1",value:"1",key:"1"},{label:"选项2",value:"2",key:"2"}]}},{field:"field5",component:"CheckboxGroup",label:"字段5",colProps:{span:8},componentProps:{options:[{label:"选项1",value:"1"},{label:"选项2",value:"2"}]}}],actionColOptions:{span:24},compact:!0,showAdvancedButton:!0}),[t]=o({labelWidth:120,schemas:[{field:"field1",component:"Input",label:"字段1",colProps:{span:8},componentProps:{placeholder:"自定义placeholder",onChange:e=>{}}},{field:"field2",component:"Input",label:"字段2",colProps:{span:8}},{field:"field3",component:"DatePicker",label:"字段3",colProps:{span:8}},{field:"field4",component:"Select",label:"字段4",colProps:{span:8},componentProps:{options:[{label:"选项1",value:"1",key:"1"},{label:"选项2",value:"2",key:"2"}]}},{field:"field5",component:"CheckboxGroup",label:"字段5",colProps:{span:8},componentProps:{options:[{label:"选项1",value:"1"},{label:"选项2",value:"2"}]}},{field:"field10",component:"Input",label:"字段10",colProps:{span:8}},{field:"field11",component:"Input",label:"字段11",colProps:{span:8}},{field:"field12",component:"Input",label:"字段12",colProps:{span:8}},{field:"field13",component:"Input",label:"字段13",colProps:{span:8}}],actionColOptions:{span:24},compact:!0,showAdvancedButton:!0});return{register:e,register1:t}}});d.render=function(e,o,t,i,s,d){const m=p("BasicForm"),c=p("CollapseContainer"),f=p("PageWrapper");return l(),n(f,{title:"可折叠表单示例"},{default:r((()=>[a(c,{title:"基础收缩示例"},{default:r((()=>[a(m,{onRegister:e.register},null,8,["onRegister"])])),_:1}),a(c,{title:"超过3行自动收起",class:"mt-4"},{default:r((()=>[a(m,{onRegister:e.register1},null,8,["onRegister"])])),_:1})])),_:1})};export default d;

Binary file not shown.

View File

@ -0,0 +1 @@
import{u as t}from"./useECharts.b40ed75c.js";import{b as a}from"./props.f48aca0b.js";import{d as e,h as i,a3 as r,o,f as s}from"./index.8a947221.js";import"./useTimeout.4ab89dd3.js";import"./vendor.3b1829c7.js";var n=e({name:"AnalysisLine",props:a,setup(){const a=i(null),{setOptions:e}=t(a);return r((()=>{e({tooltip:{trigger:"axis",backgroundColor:"rgba(0, 0, 0, .6)",axisPointer:{type:"shadow"}},legend:{itemWidth:15,right:10,data:["产品一","产品二","产品三"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",axisTick:{inside:!0},data:["付费用户","免费用户","自主"]}],yAxis:[{type:"value",axisTick:{inside:!0}}],series:[{name:"产品一",type:"bar",itemStyle:{color:"#3ca0f6"},data:[3200,3320,3010],animationDuration:4e3},{name:"产品二",type:"bar",itemStyle:{color:"#7dd9b9"},data:[1200,2600,1010],animationDuration:4e3},{name:"产品三",type:"bar",itemStyle:{color:"#e6a23c"},data:[862,2500,964],animationDuration:4e3}]})})),{chartRef:a}}});n.render=function(t,a,e,i,r,n){return o(),s("div",{ref:"chartRef",style:{height:t.height,width:t.width}},null,4)};export default n;

Binary file not shown.

View File

@ -0,0 +1 @@
import{u as t}from"./useECharts.b40ed75c.js";import{b as e}from"./props.f48aca0b.js";import{d as i,h as a,a3 as r,o,f as n}from"./index.8a947221.js";import"./useTimeout.4ab89dd3.js";import"./vendor.3b1829c7.js";var s=i({name:"AnalysisLine",props:e,setup(){const e=a(null),{setOptions:i}=t(e);return r((()=>{i({tooltip:{trigger:"axis",padding:3,backgroundColor:"rgba(0, 0, 0, .6)",borderColor:"#777",borderWidth:1},legend:{icon:"rect",itemWidth:15,itemHeight:4,left:80,top:0,orient:"horizontal",data:["产品一","产品二"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,axisTick:{inside:!0},data:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},yAxis:{type:"value",axisTick:{inside:!0}},series:[{name:"产品一",type:"line",itemStyle:{color:"#5B8FF9"},data:[330,132,101,134,90,230,210,150,232,234,230,400],animationDuration:4e3},{name:"产品二",type:"line",itemStyle:{color:"#55D187"},data:[220,182,191,234,290,330,310,330,232,201,330,190],animationDuration:4e3}]})})),{chartRef:e}}});s.render=function(t,e,i,a,r,s){return o(),n("div",{ref:"chartRef",style:{height:t.height,width:t.width}},null,4)};export default s;

Binary file not shown.

View File

@ -0,0 +1 @@
import{u as e}from"./useECharts.b40ed75c.js";import{b as t}from"./props.f48aca0b.js";import{d as o,h as r,a3 as l,o as i,f as a}from"./index.8a947221.js";import"./useTimeout.4ab89dd3.js";import"./vendor.3b1829c7.js";const n=[{value:335,name:"移动设备",itemStyle:{color:"#1b65b9"}},{value:310,name:"网页端",itemStyle:{color:"#3ca0f6"}},{value:234,name:"手表",itemStyle:{color:"#2dc0c0"}},{value:234,name:"其他",itemStyle:{color:"#7dd9b9"}}];var s=o({props:t,setup(){const t=r(null),{setOptions:o}=e(t);return l((()=>{o({title:[{text:"总设备",subtext:"1,430",textStyle:{fontSize:12,color:"#4B535E85"},subtextStyle:{fontSize:24,color:"black"},textAlign:"center",left:"34.5%",top:"40%"}],tooltip:{trigger:"item",backgroundColor:"rgba(0, 0, 0, .6)"},legend:{icon:"circle",itemHeight:10,type:"scroll",orient:"vertical",left:"70%",align:"left",top:"middle",textStyle:{color:"#8C8C8C"},height:250},series:[{name:"成交额",type:"pie",center:["35%","50%"],radius:["45%","65%"],label:{show:!1},data:n,animationDuration:3e3}]})})),{chartRef:t}}});s.render=function(e,t,o,r,l,n){return i(),a("div",{ref:"chartRef",style:{height:e.height,width:e.width}},null,4)};export default s;

Binary file not shown.

View File

@ -0,0 +1 @@
.vben-app-locale-picker-overlay{min-width:160px}.vben-app-locale-picker[data-v-d721ff86]{display:flex;align-items:center;cursor:pointer}.vben-app-locale-picker__text[data-v-d721ff86]{margin-left:6px}

View File

@ -0,0 +1 @@
import{_ as e}from"./Dropdown.16737c14.js";import{d as s,aO as a,ac as t,h as o,u as n,c as r,aj as l,bd as i,j as d,dd as p,r as c,o as u,f,br as m,g as v,t as x,s as g}from"./index.8a947221.js";import"./index.d94421bb.js";import"./RightOutlined.d3306906.js";import"./EllipsisOutlined.0ca49394.js";import"./types.31046b05.js";import"./isEqual.563532de.js";import"./_Uint8Array.b1ff6412.js";import"./isArray.e55f5dd2.js";import"./toInteger.a25ecc80.js";/* empty css */import"./vendor.3b1829c7.js";var j=s({name:"AppLocalPicker",components:{Dropdown:e,Icon:a},props:{showText:t.bool.def(!0),reload:t.bool},setup(e){const s=o([]),{prefixCls:a}=n("app-locale-picker"),{localeList:t}=i(),{changeLocale:c,getLang:u}=p(),f=r((()=>{var e;const a=s.value[0];return a?null==(e=t.find((e=>e.event===a)))?void 0:e.text:""}));return l((()=>{s.value=[d(u)]})),{localeList:t,handleMenuEvent:function(a){var t;d(u)!==a.event&&(t=a.event,c(t),s.value=[t],e.reload&&location.reload())},selectedKeys:s,getLangText:f,prefixCls:a}}});const b=m("data-v-d721ff86"),y=b(((e,s,a,t,o,n)=>{const r=c("Icon"),l=c("Dropdown");return u(),f(l,{placement:"bottomCenter",trigger:["click"],dropMenuList:e.localeList,selectedKeys:e.selectedKeys,onMenuEvent:e.handleMenuEvent,overlayClassName:`${e.prefixCls}-overlay`},{default:b((()=>[v("span",{class:e.prefixCls},[v(r,{icon:"ion:language"}),e.showText?(u(),f("span",{key:0,class:`${e.prefixCls}__text`},x(e.getLangText),3)):g("",!0)],2)])),_:1},8,["dropMenuList","selectedKeys","onMenuEvent","overlayClassName"])}));j.render=y,j.__scopeId="data-v-d721ff86";export default j;

Binary file not shown.

View File

@ -0,0 +1 @@
.vben-app-search-footer[data-v-5f9e3562]{position:relative;display:flex;height:44px;padding:0 16px;font-size:12px;color:#666;background:#fff;border-radius:0 0 16px 16px;box-shadow:0 -1px 0 0 #e0e3e8,0 -3px 6px 0 rgba(69,98,155,.12);align-items:center;flex-shrink:0}.vben-app-search-footer__item[data-v-5f9e3562]{display:flex;width:20px;height:18px;padding-bottom:2px;margin-right:.4em;background:linear-gradient(-225deg,#d5dbe4,#f8f8f8);border-radius:2px;box-shadow:inset 0 -2px 0 0 #cdcde6,inset 0 0 1px 1px #fff,0 1px 2px 1px rgba(30,35,90,.4);align-items:center;justify-content:center}.vben-app-search-footer__item[data-v-5f9e3562]:nth-child(2),.vben-app-search-footer__item[data-v-5f9e3562]:nth-child(3),.vben-app-search-footer__item[data-v-5f9e3562]:nth-child(6){margin-left:14px}.vben-app-search-modal[data-v-19f6df22]{position:fixed;top:0;left:0;z-index:800;display:flex;width:100%;height:100%;padding-top:50px;background:rgba(0,0,0,.25);justify-content:center}.vben-app-search-modal--mobile[data-v-19f6df22]{padding:0}.vben-app-search-modal--mobile>div[data-v-19f6df22]{width:100%}.vben-app-search-modal--mobile .vben-app-search-modal-input[data-v-19f6df22]{width:calc(100% - 38px)}.vben-app-search-modal--mobile .vben-app-search-modal-cancel[data-v-19f6df22]{display:inline-block}.vben-app-search-modal--mobile .vben-app-search-modal-content[data-v-19f6df22]{width:100%;height:100%;border-radius:0}.vben-app-search-modal--mobile .vben-app-search-footer[data-v-19f6df22]{display:none}.vben-app-search-modal--mobile .vben-app-search-modal-list[data-v-19f6df22]{height:calc(100% - 80px);max-height:unset}.vben-app-search-modal--mobile .vben-app-search-modal-list__item-enter[data-v-19f6df22]{opacity:0!important}.vben-app-search-modal-content[data-v-19f6df22]{position:relative;width:632px;margin:0 auto auto auto;background:#f5f6f7;border-radius:16px;box-shadow:0 25px 50px -12px rgba(0,0,0,.25);flex-direction:column}.vben-app-search-modal-input__wrapper[data-v-19f6df22]{display:flex;padding:14px 14px 0 14px;justify-content:space-between;align-items:center}.vben-app-search-modal-input[data-v-19f6df22]{width:100%;height:48px;font-size:1.5em;color:#1c1e21;border-radius:6px}.vben-app-search-modal-input span[role=img][data-v-19f6df22]{color:#999}.vben-app-search-modal-cancel[data-v-19f6df22]{display:none;font-size:1em;color:#666}.vben-app-search-modal-not-data[data-v-19f6df22]{display:flex;width:100%;height:100px;font-size:.9;color:#969faf;align-items:center;justify-content:center}.vben-app-search-modal-list[data-v-19f6df22]{max-height:472px;padding:0 14px;padding-bottom:20px;margin:0 auto;margin-top:14px;overflow:auto}.vben-app-search-modal-list__item[data-v-19f6df22]{position:relative;display:flex;width:100%;height:56px;padding-bottom:4px;padding-left:14px;margin-top:8px;font-size:14px;color:rgba(0,0,0,.85);cursor:pointer;background:#fff;border-radius:4px;box-shadow:0 1px 3px 0 #d4d9e1;align-items:center}.vben-app-search-modal-list__item--active[data-v-19f6df22]{color:#fff;background:#0960bd}.vben-app-search-modal-list__item--active .vben-app-search-modal-list__item-enter[data-v-19f6df22]{opacity:1}.vben-app-search-modal-list__item-icon[data-v-19f6df22]{width:30px}.vben-app-search-modal-list__item-text[data-v-19f6df22]{flex:1}.vben-app-search-modal-list__item-enter[data-v-19f6df22]{width:30px;opacity:0}.vben-app-search[data-v-6cfe5d58]{padding:2px}

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -0,0 +1 @@
import{d as s,aO as i,r as e,o as t,f as a,p as o,g as r,F as l,aP as n,s as c,q as d,t as p}from"./index.8a947221.js";import{L as m}from"./index.c7769756.js";import"./index.6f85517b.js";import"./index.81c9b1dc.js";import"./index.b59597c9.js";import{C as f}from"./index.81917b6c.js";import"./index.ef0a0ebf.js";import{R as u,C as j}from"./index.4c43253e.js";import{applicationList as b}from"./data.e3e7304c.js";import"./vendor.3b1829c7.js";import"./SearchOutlined.b19280fd.js";import"./toString.861a9ae4.js";import"./isArray.e55f5dd2.js";import"./_baseClone.91fce584.js";import"./_Uint8Array.b1ff6412.js";import"./identity.e5918e80.js";import"./_baseSlice.6f42b8d2.js";import"./CheckOutlined.af985792.js";import"./DownOutlined.e3879b2b.js";import"./LeftOutlined.081aa009.js";import"./RightOutlined.d3306906.js";import"./DoubleLeftOutlined.6a700560.js";import"./DoubleRightOutlined.9ab318aa.js";import"./zh_CN.8094f4d6.js";import"./responsiveObserve.c545f1cc.js";import"./UpOutlined.66b37b38.js";import"./PlusOutlined.fcbfe0fd.js";var _=s({components:{List:m,ListItem:m.Item,Card:f,Icon:i,[u.name]:u,[j.name]:j},setup:()=>({prefixCls:"account-center-application",list:b})});const x=d(" 活跃用户:"),C=d(" 万 "),O=d(" 新增用户:");_.render=function(s,i,m,f,u,j){const b=e("Icon"),_=e("Card"),v=e("ListItem"),L=e("a-col"),h=e("a-row"),w=e("List");return t(),a(w,{class:s.prefixCls},{default:o((()=>[r(h,{gutter:16},{default:o((()=>[(t(!0),a(l,null,n(s.list,((i,e)=>(t(),a(L,{key:e,span:6},{default:o((()=>[r(v,null,{default:o((()=>[r(_,{hoverable:!0,class:`${s.prefixCls}__card`},{default:o((()=>[r("div",{class:`${s.prefixCls}__card-title`},[i.icon?(t(),a(b,{key:0,class:"icon",icon:i.icon,color:i.color},null,8,["icon","color"])):c("",!0),d(" "+p(i.title),1)],2),r("div",{class:`${s.prefixCls}__card-num`},[x,r("span",null,p(i.active),1),C],2),r("div",{class:`${s.prefixCls}__card-num`},[O,r("span",null,p(i.new),1)],2),i.download?(t(),a(b,{key:0,class:`${s.prefixCls}__card-download`,icon:i.download},null,8,["class","icon"])):c("",!0)])),_:2},1032,["class"])])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1},8,["class"])};export default _;

Binary file not shown.

View File

@ -0,0 +1 @@
.account-center-application__card{width:100%;margin-bottom:-12px}.account-center-application__card .ant-card-body{padding:16px}.account-center-application__card-title{margin-bottom:5px;font-size:16px;font-weight:500;color:rgba(0,0,0,.85)}.account-center-application__card-title .icon{margin-top:-5px;font-size:22px}.account-center-application__card-num{margin-left:24px;line-height:36px;color:#7d7a7a}.account-center-application__card-num span{margin-left:5px;font-size:18px;color:#000}.account-center-application__card-download{float:right;font-size:20px!important;color:#1890ff}

1
assets/Area.64263a07.js Normal file
View File

@ -0,0 +1 @@
import{u as e}from"./useApexCharts.5c93907c.js";import{d as t,h as a,a3 as s,o as r,f as o}from"./index.8a947221.js";import"./useTimeout.4ab89dd3.js";import"./vendor.3b1829c7.js";var i=t({setup(){const t=a(null),{setOptions:r}=e(t);return s((()=>{r({series:[{name:"series1",data:[31,40,28,51,42,109,100]},{name:"series2",data:[11,32,45,32,34,52,41]}],chart:{height:350,type:"area"},dataLabels:{enabled:!1},stroke:{curve:"smooth"},xaxis:{type:"datetime",categories:["2018-09-19T00:00:00.000Z","2018-09-19T01:30:00.000Z","2018-09-19T02:30:00.000Z","2018-09-19T03:30:00.000Z","2018-09-19T04:30:00.000Z","2018-09-19T05:30:00.000Z","2018-09-19T06:30:00.000Z"]},tooltip:{x:{format:"dd/MM/yy HH:mm"}}})})),{chartRef:t}}});const d={ref:"chartRef",style:{width:"100%"}};i.render=function(e,t,a,s,i,n){return r(),o("div",d,null,512)};export default i;

View File

@ -0,0 +1 @@
import{_ as e}from"./index.098be97c.js";import"./index.150aed97.js";import{c as i,d as t,a as o,b as s,e as r}from"./data.facf59ed.js";import{_ as a}from"./index.ee861045.js";import{d,r as m,o as p,f as n,p as j,g as c,q as l}from"./index.8a947221.js";import"./index.6f85517b.js";import"./SearchOutlined.b19280fd.js";import"./toString.861a9ae4.js";import"./isArray.e55f5dd2.js";import"./_baseClone.91fce584.js";import"./_Uint8Array.b1ff6412.js";import"./identity.e5918e80.js";import"./_baseSlice.6f42b8d2.js";import"./CheckOutlined.af985792.js";import"./DownOutlined.e3879b2b.js";import"./BasicForm.205370b0.js";import"./index.f1773ae9.js";import"./index.b59597c9.js";import"./responsiveObserve.c545f1cc.js";import"./vendor.3b1829c7.js";import"./findIndex.07496caf.js";import"./isEqual.563532de.js";import"./_baseProperty.0fd6dbfc.js";import"./toInteger.a25ecc80.js";import"./index.4c43253e.js";import"./index.2c4e33f6.js";import"./EyeOutlined.3f7d1401.js";import"./index.aad67b3f.js";import"./index.36897cf3.js";import"./index.c47a44f7.js";import"./UpOutlined.66b37b38.js";import"./index.c8ff2abb.js";import"./RightOutlined.d3306906.js";import"./RedoOutlined.58d0f99d.js";import"./index.d94421bb.js";import"./EllipsisOutlined.0ca49394.js";import"./types.31046b05.js";import"./Tree.00294558.js";import"./util.2d6868a4.js";import"./useFormItem.cfc17307.js";import"./isEqual.222c6e0f.js";import"./_baseIsEqual.97cc6b34.js";import"./get.b2e237e3.js";/* empty css */import"./uuid.03279e2e.js";import"./index.831f8df6.js";import"./DeleteOutlined.ce0659f5.js";import"./index.a5da0e53.js";import"./useModal.b05e4604.js";import"./useTimeout.4ab89dd3.js";import"./useWindowSizeFn.0acae6c2.js";import"./ScrollContainer.7c8aaa6b.js";import"./index.02b8894f.js";import"./domUtils.e0b91801.js";import"./useScrollTo.a0f2ab62.js";import"./FullscreenOutlined.88a165f5.js";import"./index.6704907b.js";import"./Dropdown.16737c14.js";import"./index.cdde649d.js";import"./LeftOutlined.081aa009.js";import"./download.93ef06c4.js";import"./uniqBy.5d345c52.js";import"./index.81c9b1dc.js";import"./DoubleLeftOutlined.6a700560.js";import"./DoubleRightOutlined.9ab318aa.js";import"./zh_CN.8094f4d6.js";import"./scrollTo.c1e0f75f.js";import"./transButton.249d7b30.js";import"./CaretDownFilled.e325b6bc.js";import"./useForm.5e8ab938.js";import"./useSortable.ca05ff1a.js";import"./clickOutside.1357c514.js";import"./useExpose.4645fd96.js";import"./index.2698f41d.js";import"./index.c32e09a2.js";import"./usePageContext.5206dcb7.js";import"./ArrowLeftOutlined.5c44f118.js";var f=d({components:{BasicTable:e,PageWrapper:a},setup:()=>({aoaToExcel:function(){o({data:s,header:r,filename:"二维数组方式导出excel.xlsx"})},columns:i,data:t})});const u=l(" 导出 ");f.render=function(e,i,t,o,s,r){const a=m("a-button"),d=m("BasicTable"),l=m("PageWrapper");return p(),n(l,{title:"导出示例",content:"根据数组格式的数据进行导出"},{default:j((()=>[c(d,{title:"基础表格",columns:e.columns,dataSource:e.data},{toolbar:j((()=>[c(a,{onClick:e.aoaToExcel},{default:j((()=>[u])),_:1},8,["onClick"])])),_:1},8,["columns","dataSource"])])),_:1})};export default f;

Binary file not shown.

View File

@ -0,0 +1 @@
import{g as e,m as t,I as r}from"./index.8a947221.js";var n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=function(o,c){var i=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){a(e,t,r[t])}))}return e}({},o,c.attrs);return e(r,t(i,{icon:n}),null)};o.displayName="ArrowLeftOutlined",o.inheritAttrs=!1;export{o as A};

View File

@ -0,0 +1 @@
import{d as t,aO as s,r as i,o as e,f as a,br as o,F as r,aP as l,g as n,t as c,q as p,s as d}from"./index.8a947221.js";import{L as m}from"./index.c7769756.js";import"./index.6f85517b.js";import"./index.81c9b1dc.js";import"./index.b59597c9.js";import{T as f}from"./index.36897cf3.js";import{articleList as u,actions as j}from"./data.e3e7304c.js";import"./vendor.3b1829c7.js";import"./SearchOutlined.b19280fd.js";import"./toString.861a9ae4.js";import"./isArray.e55f5dd2.js";import"./_baseClone.91fce584.js";import"./_Uint8Array.b1ff6412.js";import"./identity.e5918e80.js";import"./_baseSlice.6f42b8d2.js";import"./CheckOutlined.af985792.js";import"./DownOutlined.e3879b2b.js";import"./LeftOutlined.081aa009.js";import"./RightOutlined.d3306906.js";import"./DoubleLeftOutlined.6a700560.js";import"./DoubleRightOutlined.9ab318aa.js";import"./zh_CN.8094f4d6.js";import"./responsiveObserve.c545f1cc.js";var b=t({components:{List:m,ListItem:m.Item,ListItemMeta:m.Item.Meta,Tag:f,Icon:s},setup:()=>({prefixCls:"account-center-article",list:u,actions:j})});const _=o("data-v-8bb19250"),x=_(((t,s,o,m,f,u)=>{const j=i("Tag"),b=i("ListItemMeta"),x=i("Icon"),v=i("ListItem"),C=i("List");return e(),a(C,{"item-layout":"vertical",class:t.prefixCls},{default:_((()=>[(e(!0),a(r,null,l(t.list,((s,i)=>(e(),a(v,{key:i},{default:_((()=>[n(b,null,{description:_((()=>[n("div",{class:`${t.prefixCls}__content`},c(s.content),3)])),title:_((()=>[n("p",{class:`${t.prefixCls}__title`},c(s.title),3),n("div",null,[(e(!0),a(r,null,l(s.description,((t,s)=>(e(),a(j,{key:s,class:"mb-2"},{default:_((()=>[p(c(t),1)])),_:2},1024)))),128))])])),_:2},1024),n("div",null,[(e(!0),a(r,null,l(t.actions,((s,i)=>(e(),a("div",{key:i,class:`${t.prefixCls}__action`},[s.icon?(e(),a(x,{key:0,class:`${t.prefixCls}__action-icon`,icon:s.icon,color:s.color},null,8,["class","icon","color"])):d("",!0),p(" "+c(s.text),1)],2)))),128)),n("span",{class:`${t.prefixCls}__time`},c(s.time),3)])])),_:2},1024)))),128))])),_:1},8,["class"])}));b.render=x,b.__scopeId="data-v-8bb19250";export default b;

Binary file not shown.

View File

@ -0,0 +1 @@
.account-center-article__title[data-v-8bb19250]{margin-bottom:12px;font-size:18px}.account-center-article__content[data-v-8bb19250]{color:rgba(0,0,0,.65)}.account-center-article__action[data-v-8bb19250]{display:inline-block;padding:0 16px;color:rgba(0,0,0,.45)}.account-center-article__action[data-v-8bb19250]:nth-child(1),.account-center-article__action[data-v-8bb19250]:nth-child(2){border-right:1px solid rgba(206,206,206,.4)}.account-center-article__action-icon[data-v-8bb19250]{margin-right:3px}.account-center-article__time[data-v-8bb19250]{position:absolute;right:20px;color:rgba(0,0,0,.45)}

View File

@ -0,0 +1 @@
.auth-page[data-v-22d85330]{display:flex;height:300px;font-size:24px;color:#fff;background:#409efe;border-radius:12px;justify-content:center;align-items:center}

View File

@ -0,0 +1 @@
import{d as a,dg as d,dh as s,o as t,f as o,br as r}from"./index.8a947221.js";import"./vendor.3b1829c7.js";var e=a({});const c=r("data-v-22d85330");d("data-v-22d85330");const n={class:"m-10 auth-page"};s();const p=c(((a,d,s,r,e,c)=>(t(),o("div",n," Super 角色可见 "))));e.render=p,e.__scopeId="data-v-22d85330";export default e;

View File

@ -0,0 +1 @@
.auth-page[data-v-a7dfc4b4]{display:flex;height:300px;font-size:24px;color:#fff;background:#409efe;border-radius:12px;justify-content:center;align-items:center}

View File

@ -0,0 +1 @@
import{d as a,dg as d,dh as s,o as t,f as o,br as c}from"./index.8a947221.js";import"./vendor.3b1829c7.js";var e=a({});const r=c("data-v-a7dfc4b4");d("data-v-a7dfc4b4");const f={class:"m-10 auth-page"};s();const n=r(((a,d,s,c,e,r)=>(t(),o("div",f," Test 角色可见 "))));e.render=n,e.__scopeId="data-v-a7dfc4b4";export default e;

1
assets/Bar.ae554e75.js Normal file
View File

@ -0,0 +1 @@
import{u as a}from"./useApexCharts.5c93907c.js";import{d as t,h as e,a3 as r,o as s,f as n}from"./index.8a947221.js";import"./useTimeout.4ab89dd3.js";import"./vendor.3b1829c7.js";var o=t({setup(){const t=e(null),{setOptions:s}=a(t);return r((()=>{s({series:[{data:[400,430,448,470,540,580,690,1100,1200,1380]}],chart:{type:"bar",height:350},plotOptions:{bar:{horizontal:!0}},dataLabels:{enabled:!1},xaxis:{categories:["South Korea","Canada","United Kingdom","Netherlands","Italy","France","Japan","United States","China","Germany"]}})})),{chartRef:t}}});const i={ref:"chartRef",style:{width:"100%"}};o.render=function(a,t,e,r,o,d){return s(),n("div",i,null,512)};export default o;

View File

@ -0,0 +1 @@
.change-avatar img[data-v-dad0b9f0]{display:block;margin-bottom:15px;border-radius:50%}

View File

@ -0,0 +1 @@
import{co as e,d as s,B as t,aO as i,a3 as o,n as a,dg as r,dh as d,r as m,o as n,f as p,br as c,g as l,q as j}from"./index.8a947221.js";import{U as f}from"./uuid.03279e2e.js";import"./index.831f8df6.js";/* empty css */import"./index.b59597c9.js";import{R as u,C as b}from"./index.4c43253e.js";import{f as x}from"./BasicForm.205370b0.js";import{u as h}from"./useForm.5e8ab938.js";import{d as g}from"./ScrollContainer.7c8aaa6b.js";import{h as O}from"./header.d801b988.js";import{b as _}from"./data.a32591d5.js";import"./vendor.3b1829c7.js";import"./findIndex.07496caf.js";import"./isEqual.563532de.js";import"./_Uint8Array.b1ff6412.js";import"./isArray.e55f5dd2.js";import"./identity.e5918e80.js";import"./toString.861a9ae4.js";import"./_baseProperty.0fd6dbfc.js";import"./toInteger.a25ecc80.js";import"./index.d94421bb.js";import"./RightOutlined.d3306906.js";import"./EllipsisOutlined.0ca49394.js";import"./types.31046b05.js";import"./util.2d6868a4.js";import"./DeleteOutlined.ce0659f5.js";import"./EyeOutlined.3f7d1401.js";import"./CheckOutlined.af985792.js";import"./responsiveObserve.c545f1cc.js";import"./index.f1773ae9.js";import"./_baseClone.91fce584.js";import"./index.2c4e33f6.js";import"./SearchOutlined.b19280fd.js";import"./index.6f85517b.js";import"./_baseSlice.6f42b8d2.js";import"./DownOutlined.e3879b2b.js";import"./index.aad67b3f.js";import"./index.36897cf3.js";import"./index.c47a44f7.js";import"./UpOutlined.66b37b38.js";import"./index.c8ff2abb.js";import"./RedoOutlined.58d0f99d.js";import"./Tree.00294558.js";import"./useFormItem.cfc17307.js";import"./isEqual.222c6e0f.js";import"./_baseIsEqual.97cc6b34.js";import"./get.b2e237e3.js";import"./index.a5da0e53.js";import"./useModal.b05e4604.js";import"./useTimeout.4ab89dd3.js";import"./useWindowSizeFn.0acae6c2.js";import"./FullscreenOutlined.88a165f5.js";import"./index.6704907b.js";import"./Dropdown.16737c14.js";import"./index.cdde649d.js";import"./LeftOutlined.081aa009.js";import"./download.93ef06c4.js";import"./domUtils.e0b91801.js";import"./uniqBy.5d345c52.js";import"./index.02b8894f.js";import"./useScrollTo.a0f2ab62.js";var C;(C||(C={})).ACCOUNT_INFO="/account/getAccountInfo";var I=s({components:{BasicForm:x,CollapseContainer:g,Button:t,Upload:f,Icon:i,[u.name]:u,[b.name]:b},setup(){const{createMessage:s}=a(),[t,{setFieldsValue:i}]=h({labelWidth:120,schemas:_,showActionButtonGroup:!1});return o((async()=>{const s=await e.request({url:C.ACCOUNT_INFO,method:"GET"});i(s)})),{headerImg:O,register:t,handleSubmit:()=>{s.success("更新成功!")}}}});const v=c("data-v-dad0b9f0");r("data-v-dad0b9f0");const y={class:"change-avatar"},F=l("div",{class:"mb-2"}," 头像 ",-1),w=j("更换头像 "),U=j(" 更新基本信息 ");d();const B=v(((e,s,t,i,o,a)=>{const r=m("BasicForm"),d=m("a-col"),c=m("Icon"),j=m("Button"),f=m("Upload"),u=m("a-row"),b=m("CollapseContainer");return n(),p(b,{title:"基本设置",canExpan:!1},{default:v((()=>[l(u,{gutter:24},{default:v((()=>[l(d,{span:14},{default:v((()=>[l(r,{onRegister:e.register},null,8,["onRegister"])])),_:1}),l(d,{span:10},{default:v((()=>[l("div",y,[F,l("img",{width:"140",src:e.headerImg},null,8,["src"]),l(f,{showUploadList:!1},{default:v((()=>[l(j,{type:"ghost",class:"ml-5"},{default:v((()=>[l(c,{icon:"feather:upload"}),w])),_:1})])),_:1})])])),_:1})])),_:1}),l(j,{type:"primary",onClick:e.handleSubmit},{default:v((()=>[U])),_:1},8,["onClick"])])),_:1})}));I.render=B,I.__scopeId="data-v-dad0b9f0";export default I;

Binary file not shown.

1
assets/Basic.ebbcb8da.js Normal file
View File

@ -0,0 +1 @@
import{_ as e}from"./index.098be97c.js";import{getBasicColumns as i,getBasicData as t}from"./tableData.252346e9.js";import{d as o,h as r,r as s,o as a,f as d,g as n,p,q as m,t as l}from"./index.8a947221.js";import"./index.6f85517b.js";import"./SearchOutlined.b19280fd.js";import"./toString.861a9ae4.js";import"./isArray.e55f5dd2.js";import"./_baseClone.91fce584.js";import"./_Uint8Array.b1ff6412.js";import"./identity.e5918e80.js";import"./_baseSlice.6f42b8d2.js";import"./CheckOutlined.af985792.js";import"./DownOutlined.e3879b2b.js";import"./BasicForm.205370b0.js";import"./index.f1773ae9.js";import"./index.b59597c9.js";import"./responsiveObserve.c545f1cc.js";import"./vendor.3b1829c7.js";import"./findIndex.07496caf.js";import"./isEqual.563532de.js";import"./_baseProperty.0fd6dbfc.js";import"./toInteger.a25ecc80.js";import"./index.4c43253e.js";import"./index.2c4e33f6.js";import"./EyeOutlined.3f7d1401.js";import"./index.aad67b3f.js";import"./index.36897cf3.js";import"./index.c47a44f7.js";import"./UpOutlined.66b37b38.js";import"./index.c8ff2abb.js";import"./RightOutlined.d3306906.js";import"./RedoOutlined.58d0f99d.js";import"./index.d94421bb.js";import"./EllipsisOutlined.0ca49394.js";import"./types.31046b05.js";import"./Tree.00294558.js";import"./util.2d6868a4.js";import"./useFormItem.cfc17307.js";import"./isEqual.222c6e0f.js";import"./_baseIsEqual.97cc6b34.js";import"./get.b2e237e3.js";/* empty css */import"./uuid.03279e2e.js";import"./index.831f8df6.js";import"./DeleteOutlined.ce0659f5.js";import"./index.a5da0e53.js";import"./useModal.b05e4604.js";import"./useTimeout.4ab89dd3.js";import"./useWindowSizeFn.0acae6c2.js";import"./ScrollContainer.7c8aaa6b.js";import"./index.02b8894f.js";import"./domUtils.e0b91801.js";import"./useScrollTo.a0f2ab62.js";import"./FullscreenOutlined.88a165f5.js";import"./index.6704907b.js";import"./Dropdown.16737c14.js";import"./index.cdde649d.js";import"./LeftOutlined.081aa009.js";import"./download.93ef06c4.js";import"./uniqBy.5d345c52.js";import"./index.81c9b1dc.js";import"./DoubleLeftOutlined.6a700560.js";import"./DoubleRightOutlined.9ab318aa.js";import"./zh_CN.8094f4d6.js";import"./scrollTo.c1e0f75f.js";import"./transButton.249d7b30.js";import"./CaretDownFilled.e325b6bc.js";import"./useForm.5e8ab938.js";import"./useSortable.ca05ff1a.js";import"./clickOutside.1357c514.js";import"./useExpose.4645fd96.js";var c=o({components:{BasicTable:e},setup(){const e=r(!1),o=r(!1),s=r(!0),a=r(!0),d=r(!1);return{columns:i(),data:t(),canResize:e,loading:o,striped:s,border:a,toggleStriped:function(){s.value=!s.value},toggleCanResize:function(){e.value=!e.value},toggleLoading:function(){o.value=!0,setTimeout((()=>{o.value=!1,d.value={pageSize:20}}),3e3)},toggleBorder:function(){a.value=!a.value},pagination:d}}});const j={class:"p-4"},u=m(" 开启loading ");c.render=function(e,i,t,o,r,c){const b=s("a-button"),f=s("BasicTable");return a(),d("div",j,[n(f,{title:"基础示例",titleHelpMessage:"温馨提醒",columns:e.columns,dataSource:e.data,canResize:e.canResize,loading:e.loading,striped:e.striped,bordered:e.border,showTableSetting:"",pagination:e.pagination},{toolbar:p((()=>[n(b,{type:"primary",onClick:e.toggleCanResize},{default:p((()=>[m(l(e.canResize?"取消自适应":"自适应高度"),1)])),_:1},8,["onClick"]),n(b,{type:"primary",onClick:e.toggleBorder},{default:p((()=>[m(l(e.border?"隐藏边框":"显示边框"),1)])),_:1},8,["onClick"]),n(b,{type:"primary",onClick:e.toggleLoading},{default:p((()=>[u])),_:1},8,["onClick"]),n(b,{type:"primary",onClick:e.toggleStriped},{default:p((()=>[m(l(e.striped?"隐藏斑马纹":"显示斑马纹"),1)])),_:1},8,["onClick"])])),_:1},8,["columns","dataSource","canResize","loading","striped","bordered","pagination"])])};export default c;

BIN
assets/Basic.ebbcb8da.js.gz Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -0,0 +1 @@
import{f as o}from"./ScrollContainer.7c8aaa6b.js";export{f as default}from"./ScrollContainer.7c8aaa6b.js";import"./index.8a947221.js";import"./vendor.3b1829c7.js";import"./index.02b8894f.js";import"./domUtils.e0b91801.js";import"./RightOutlined.d3306906.js";/* empty css */import"./useTimeout.4ab89dd3.js";import"./useScrollTo.a0f2ab62.js";

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -0,0 +1 @@
.vben-layout-breadcrumb{display:flex;padding:0 8px;align-items:center}.vben-layout-breadcrumb .ant-breadcrumb-link .anticon{margin-right:4px;margin-bottom:2px}.vben-layout-breadcrumb--light .ant-breadcrumb-link{color:#999}.vben-layout-breadcrumb--light .ant-breadcrumb-link a{color:rgba(0,0,0,.65)}.vben-layout-breadcrumb--light .ant-breadcrumb-link a:hover{color:#0960bd}.vben-layout-breadcrumb--light .ant-breadcrumb-separator{color:#999}.vben-layout-breadcrumb--dark .ant-breadcrumb-link{color:rgba(255,255,255,.6)}.vben-layout-breadcrumb--dark .ant-breadcrumb-link a{color:rgba(255,255,255,.8)}.vben-layout-breadcrumb--dark .ant-breadcrumb-link a:hover{color:#fff}.vben-layout-breadcrumb--dark .ant-breadcrumb-separator,.vben-layout-breadcrumb--dark .anticon{color:rgba(255,255,255,.8)}

View File

@ -0,0 +1 @@
import{d as e,aO as t,ac as r,h as a,aS as n,u as i,dI as o,aj as s,bb as l,bN as u,aU as d,l as c,aI as m,bD as p,aJ as f,r as h,o as b,f as v,g as j,p as g,s as k,t as C,q as x}from"./index.8a947221.js";import{B as y}from"./index.2698f41d.js";import"./index.d94421bb.js";/* empty css */import"./vendor.3b1829c7.js";import"./DownOutlined.e3879b2b.js";import"./RightOutlined.d3306906.js";import"./EllipsisOutlined.0ca49394.js";import"./types.31046b05.js";import"./isEqual.563532de.js";import"./_Uint8Array.b1ff6412.js";import"./isArray.e55f5dd2.js";import"./toInteger.a25ecc80.js";var B=e({name:"LayoutBreadcrumb",components:{Icon:t,[y.name]:y},props:{theme:r.oneOf(["dark","light"])},setup(){const e=a([]),{currentRoute:t}=n(),{prefixCls:r}=i("layout-breadcrumb"),{getShowBreadCrumbIcon:h}=l(),{t:b}=o();return s((()=>{var r,a;if(t.value.name===d)return;const n=null==(r=t.value)?void 0:r.matched;if(!n||0===n.length)return;let i=function(e){let t=p(e,(e=>{const{meta:t}=e;if(!t)return!1;const{title:r,hideBreadcrumb:a,hideMenu:n}=t;return!(!r||a||n)})).filter((e=>{var t,r;return!(null==(t=e.meta)?void 0:t.hideBreadcrumb)||!(null==(r=e.meta)?void 0:r.hideMenu)}));return t=t.filter((e=>e.path!==m.BASE_HOME)),t}(c(n));const o=i.filter((e=>e.path!==m.BASE_HOME));o.length===i.length&&o.unshift({path:m.BASE_HOME,meta:{title:b("layout.header.home"),isLink:!0}}),(null==(a=t.value.meta)?void 0:a.currentActiveMenu)&&o.push(t.value),e.value=o})),{routes:e,t:b,prefixCls:r,getShowBreadCrumbIcon:h,handleClick:function(e,t,r){null==r||r.preventDefault();const{children:a,redirect:n,meta:i}=e;if((null==a?void 0:a.length)&&!n)return void(null==r||r.stopPropagation());if(null==i?void 0:i.carryParam)return;const o=f();if(n&&u(n))o(n);else{const e=t.slice(1),r=e.pop()||"";let a=`${e.pop()||""}/${r}`;a=/^\//.test(a)?a:`/${a}`,o(a)}},hasRedirect:function(e,t){var r;return!!(null==(r=null==t?void 0:t.meta)?void 0:r.isLink)||e.indexOf(t)!==e.length-1}}}});const O={key:1};B.render=function(e,t,r,a,n,i){const o=h("Icon"),s=h("router-link"),l=h("a-breadcrumb");return b(),v("div",{class:[e.prefixCls,`${e.prefixCls}--${e.theme}`]},[j(l,{routes:e.routes},{itemRender:g((({route:t,routes:r,paths:a})=>[e.getShowBreadCrumbIcon&&t.meta.icon?(b(),v(o,{key:0,icon:t.meta.icon},null,8,["icon"])):k("",!0),e.hasRedirect(r,t)?(b(),v(s,{key:2,to:"",onClick:r=>e.handleClick(t,a,r)},{default:g((()=>[x(C(e.t(t.meta.title)),1)])),_:2},1032,["onClick"])):(b(),v("span",O,C(e.t(t.meta.title)),1))])),_:1},8,["routes"])],2)};export default B;

Binary file not shown.

1
assets/Btn.1b50437a.css Normal file
View File

@ -0,0 +1 @@
.demo[data-v-66db6f51]{background:#fff}

1
assets/Btn.235bd7a9.js Normal file
View File

@ -0,0 +1 @@
import{d as e,b7 as s,bC as t,ds as o,dt as r,dg as a,dh as i,r as d,bv as n,o as m,f as l,br as c,g as u,t as p,s as f,w as _,q as j}from"./index.8a947221.js";import{A as y}from"./index.a5da0e53.js";import{D as x}from"./index.6704907b.js";import b from"./CurrentPermissionMode.f20117f6.js";import{_ as P}from"./index.vue_vue&type=script&lang.61f4665d.js";import{_ as g}from"./index.ee861045.js";import"./vendor.3b1829c7.js";import"./index.2698f41d.js";import"./index.d94421bb.js";import"./RightOutlined.d3306906.js";import"./EllipsisOutlined.0ca49394.js";import"./types.31046b05.js";import"./isEqual.563532de.js";import"./_Uint8Array.b1ff6412.js";import"./isArray.e55f5dd2.js";import"./toInteger.a25ecc80.js";import"./DownOutlined.e3879b2b.js";/* empty css */import"./index.c32e09a2.js";import"./usePageContext.5206dcb7.js";import"./transButton.249d7b30.js";import"./ArrowLeftOutlined.5c44f118.js";var h=e({components:{Alert:y,PageWrapper:g,CurrentPermissionMode:b,Divider:x,Authority:P},setup(){const{hasPermission:e}=o();async function a(e){const t=await r({userId:e});s.commitPermCodeListState(t)}return a("1"),{hasPermission:e,permissionStore:s,changePermissionCode:a,PermissionModeEnum:t}}});const v=c("data-v-66db6f51");a("data-v-66db6f51");const C=j(" 当前拥有的code列表: "),A=j(" 点击切换按钮权限(用户id为2) "),k=j(" 点击切换按钮权限(用户id为1,默认) "),w=j("组件方式判断权限"),D=j(" 拥有code ['1000']权限可见 "),M=j(" 拥有code ['2000']权限可见 "),O=j(" 拥有code ['1000','2000']角色权限可见 "),S=j("函数方式方式判断权限"),E=j(" 拥有code ['1000']权限可见 "),I=j(" 拥有code ['2000']权限可见 "),L=j(" 拥有code ['1000','2000']角色权限可见 "),q=j("指令方式方式判断权限(该方式不能动态修改权限.)"),B=j(" 拥有code ['1000']权限可见 "),W=j(" 拥有code ['2000']权限可见 "),R=j(" 拥有code ['1000','2000']角色权限可见 ");i();const U=v(((e,s,t,o,r,a)=>{const i=d("Alert"),c=d("CurrentPermissionMode"),j=d("Divider"),y=d("a-button"),x=d("Authority"),b=d("PageWrapper"),P=n("auth");return m(),l(b,{contentBackground:"",title:"按钮权限控制",contentClass:"p-4"},{default:v((()=>[u(i,{message:"刷新后会还原","show-icon":""}),u(c),u("p",null,[C,u("a",null,p(e.permissionStore.getPermCodeListState),1)]),u(j),u(i,{class:"mt-4",type:"info",message:"点击后请查看按钮变化","show-icon":""}),u(j),u(y,{type:"primary",class:"mr-2",onClick:s[1]||(s[1]=s=>e.changePermissionCode("2"))},{default:v((()=>[A])),_:1}),u(y,{type:"primary",onClick:s[2]||(s[2]=s=>e.changePermissionCode("1"))},{default:v((()=>[k])),_:1}),u(j,null,{default:v((()=>[w])),_:1}),u(x,{value:"1000"},{default:v((()=>[u(y,{type:"primary",class:"mx-4"},{default:v((()=>[D])),_:1})])),_:1}),u(x,{value:"2000"},{default:v((()=>[u(y,{color:"success",class:"mx-4"},{default:v((()=>[M])),_:1})])),_:1}),u(x,{value:["1000","2000"]},{default:v((()=>[u(y,{color:"error",class:"mx-4"},{default:v((()=>[O])),_:1})])),_:1}),u(j,null,{default:v((()=>[S])),_:1}),e.hasPermission("1000")?(m(),l(y,{key:0,type:"primary",class:"mx-4"},{default:v((()=>[E])),_:1})):f("",!0),e.hasPermission("2000")?(m(),l(y,{key:1,color:"success",class:"mx-4"},{default:v((()=>[I])),_:1})):f("",!0),e.hasPermission(["1000","2000"])?(m(),l(y,{key:2,color:"error",class:"mx-4"},{default:v((()=>[L])),_:1})):f("",!0),u(j,null,{default:v((()=>[q])),_:1}),_(u(y,{type:"primary",class:"mx-4"},{default:v((()=>[B])),_:1},512),[[P,"1000"]]),_(u(y,{color:"success",class:"mx-4"},{default:v((()=>[W])),_:1},512),[[P,"2000"]]),_(u(y,{color:"error",class:"mx-4"},{default:v((()=>[R])),_:1},512),[[P,["1000","2000"]]])])),_:1})}));h.render=U,h.__scopeId="data-v-66db6f51";export default h;

BIN
assets/Btn.235bd7a9.js.gz Normal file

Binary file not shown.

1
assets/Btn.8fa84506.css Normal file
View File

@ -0,0 +1 @@
.demo[data-v-135f74ce]{background:#fff}

1
assets/Btn.fac06572.js Normal file
View File

@ -0,0 +1 @@
import{d as e,k as s,dr as t,c as r,ds as o,dg as a,dh as l,r as u,bv as i,o as n,f as m,br as d,g as p,t as c,q as f,s as E,w as R}from"./index.8a947221.js";import{A as S}from"./index.a5da0e53.js";import{D as _}from"./index.6704907b.js";import y from"./CurrentPermissionMode.f20117f6.js";import{_ as j}from"./index.vue_vue&type=script&lang.61f4665d.js";import{_ as x}from"./index.ee861045.js";import"./vendor.3b1829c7.js";import"./index.2698f41d.js";import"./index.d94421bb.js";import"./RightOutlined.d3306906.js";import"./EllipsisOutlined.0ca49394.js";import"./types.31046b05.js";import"./isEqual.563532de.js";import"./_Uint8Array.b1ff6412.js";import"./isArray.e55f5dd2.js";import"./toInteger.a25ecc80.js";import"./DownOutlined.e3879b2b.js";/* empty css */import"./index.c32e09a2.js";import"./usePageContext.5206dcb7.js";import"./transButton.249d7b30.js";import"./ArrowLeftOutlined.5c44f118.js";var P=e({components:{Alert:S,PageWrapper:x,CurrentPermissionMode:y,Divider:_,Authority:j},setup(){const{changeRole:e,hasPermission:a}=o();return{userStore:s,RoleEnum:t,isSuper:r((()=>s.getRoleListState.includes(t.SUPER))),isTest:r((()=>s.getRoleListState.includes(t.TEST))),changeRole:e,hasPermission:a}}});const T=d("data-v-135f74ce");a("data-v-135f74ce");const g=f(" 当前角色: "),v={class:"mt-4"},b=f(" 权限切换(请先切换权限模式为前端角色权限模式): "),h=f("组件方式判断权限(有需要可以自行全局注册)"),U=f(" 拥有super角色权限可见 "),A=f(" 拥有test角色权限可见 "),k=f(" 拥有[test,super]角色权限可见 "),C=f("函数方式方式判断权限(适用于函数内部过滤)"),w=f(" 拥有super角色权限可见 "),D=f(" 拥有test角色权限可见 "),L=f(" 拥有[test,super]角色权限可见 "),O=f("指令方式方式判断权限(该方式不能动态修改权限.)"),M=f(" 拥有super角色权限可见 "),q=f(" 拥有test角色权限可见 "),B=f(" 拥有[test,super]角色权限可见 ");l();const I=T(((e,s,t,r,o,a)=>{const l=u("CurrentPermissionMode"),d=u("Alert"),S=u("a-button"),_=u("a-button-group"),y=u("Divider"),j=u("Authority"),x=u("PageWrapper"),P=i("auth");return n(),m(x,{title:"前端权限按钮示例",contentBackground:"",contentClass:"p-4",content:"由于刷新的时候会请求用户信息接口,会根据接口重置角色信息,所以刷新后界面会恢复原样,如果不需要,可以注释 src/layout/default/index内的获取用户信息接口"},{default:T((()=>[p(l),p("p",null,[g,p("a",null,c(e.userStore.getRoleListState),1)]),p(d,{class:"mt-4",type:"info",message:"点击后请查看按钮变化","show-icon":""}),p("div",v,[b,p(_,null,{default:T((()=>[p(S,{onClick:s[1]||(s[1]=s=>e.changeRole(e.RoleEnum.SUPER)),type:e.isSuper?"primary":"default"},{default:T((()=>[f(c(e.RoleEnum.SUPER),1)])),_:1},8,["type"]),p(S,{onClick:s[2]||(s[2]=s=>e.changeRole(e.RoleEnum.TEST)),type:e.isTest?"primary":"default"},{default:T((()=>[f(c(e.RoleEnum.TEST),1)])),_:1},8,["type"])])),_:1})]),p(y,null,{default:T((()=>[h])),_:1}),p(j,{value:e.RoleEnum.SUPER},{default:T((()=>[p(S,{type:"primary",class:"mx-4"},{default:T((()=>[U])),_:1})])),_:1},8,["value"]),p(j,{value:e.RoleEnum.TEST},{default:T((()=>[p(S,{color:"success",class:"mx-4"},{default:T((()=>[A])),_:1})])),_:1},8,["value"]),p(j,{value:[e.RoleEnum.TEST,e.RoleEnum.SUPER]},{default:T((()=>[p(S,{color:"error",class:"mx-4"},{default:T((()=>[k])),_:1})])),_:1},8,["value"]),p(y,null,{default:T((()=>[C])),_:1}),e.hasPermission(e.RoleEnum.SUPER)?(n(),m(S,{key:0,type:"primary",class:"mx-4"},{default:T((()=>[w])),_:1})):E("",!0),e.hasPermission(e.RoleEnum.TEST)?(n(),m(S,{key:1,color:"success",class:"mx-4"},{default:T((()=>[D])),_:1})):E("",!0),e.hasPermission([e.RoleEnum.TEST,e.RoleEnum.SUPER])?(n(),m(S,{key:2,color:"error",class:"mx-4"},{default:T((()=>[L])),_:1})):E("",!0),p(y,null,{default:T((()=>[O])),_:1}),R(p(S,{type:"primary",class:"mx-4"},{default:T((()=>[M])),_:1},512),[[P,e.RoleEnum.SUPER]]),R(p(S,{color:"success",class:"mx-4"},{default:T((()=>[q])),_:1},512),[[P,e.RoleEnum.TEST]]),R(p(S,{color:"error",class:"mx-4"},{default:T((()=>[B])),_:1},512),[[P,[e.RoleEnum.TEST,e.RoleEnum.SUPER]]])])),_:1})}));P.render=I,P.__scopeId="data-v-135f74ce";export default P;

BIN
assets/Btn.fac06572.js.gz Normal file

Binary file not shown.

View File

@ -0,0 +1 @@
import{g as e,m as t,I as r}from"./index.8a947221.js";var n={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=function(o,c){var i=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){a(e,t,r[t])}))}return e}({},o,c.attrs);return e(r,t(i,{icon:n}),null)};o.displayName="CaretDownFilled",o.inheritAttrs=!1;export{o as C};

Some files were not shown because too many files have changed in this diff Show More