mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-09 13:53:38 +08:00
Compare commits
3 Commits
v6.0.0
...
0a46a04c67
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0a46a04c67 | ||
|
|
b7d3dc1170 | ||
|
|
ab1c7f8bcc |
@@ -1,32 +1,3 @@
|
|||||||
# 6.0.0 (2025-04-10)
|
|
||||||
|
|
||||||
### ✔️ Refactor
|
|
||||||
|
|
||||||
- Refactor the icon module, use `@iconify/json` to replace the `@iconify-icons/*` dependency that is no longer maintained and updated, optimize the user experience, ensure that the icon library can be continuously updated and support `Tree-shaking`
|
|
||||||
- Upgrade `tailwindcss` to `v4` version, bringing faster build speed, simpler installation and configuration, and providing a dedicated `vite` plug-in
|
|
||||||
|
|
||||||
### 🎫 Feat
|
|
||||||
|
|
||||||
- Add `Ai` chat component example
|
|
||||||
- Add `tagOnClick` tag to switch global public events
|
|
||||||
- Add code editor example
|
|
||||||
- Add `Markdown` example
|
|
||||||
- Add slider example
|
|
||||||
|
|
||||||
### 🐞 Bug fixes
|
|
||||||
|
|
||||||
- Fix `aria-hidden` error
|
|
||||||
- Fix the problem that code hints cannot be displayed when using `this` syntax and update `pinia` related syntax
|
|
||||||
|
|
||||||
### 🍏 Perf
|
|
||||||
|
|
||||||
- Fix broken links in the waterfall infinite scrolling example
|
|
||||||
- Update `vue-flow`, related compatibility processing
|
|
||||||
- Delete the deprecated dependency package `eslint-define-config`, upgrade `eslint` to the latest version, related compatibility processing
|
|
||||||
- Optimize `src/style/dark.scss` syntax
|
|
||||||
- Optimize login parameter transfer
|
|
||||||
- Use `keydown` to replace `keypress`, the `keypress` event has been deprecated
|
|
||||||
|
|
||||||
# 5.9.0 (2024-12-10)
|
# 5.9.0 (2024-12-10)
|
||||||
|
|
||||||
### ✔️Refactor
|
### ✔️Refactor
|
||||||
|
|||||||
29
CHANGELOG.md
29
CHANGELOG.md
@@ -1,32 +1,3 @@
|
|||||||
# 6.0.0 (2025-04-10)
|
|
||||||
|
|
||||||
### ✔️ Refactor
|
|
||||||
|
|
||||||
- Refactor the icon module, use `@iconify/json` to replace the `@iconify-icons/*` dependency that is no longer maintained and updated, optimize the user experience, ensure that the icon library can be continuously updated and support `Tree-shaking`
|
|
||||||
- Upgrade `tailwindcss` to `v4` version, bringing faster build speed, simpler installation and configuration, and providing a dedicated `vite` plug-in
|
|
||||||
|
|
||||||
### 🎫 Feat
|
|
||||||
|
|
||||||
- Add `Ai` chat component example
|
|
||||||
- Add `tagOnClick` tag to switch global public events
|
|
||||||
- Add code editor example
|
|
||||||
- Add `Markdown` example
|
|
||||||
- Add slider example
|
|
||||||
|
|
||||||
### 🐞 Bug fixes
|
|
||||||
|
|
||||||
- Fix `aria-hidden` error
|
|
||||||
- Fix the problem that code hints cannot be displayed when using `this` syntax and update `pinia` related syntax
|
|
||||||
|
|
||||||
### 🍏 Perf
|
|
||||||
|
|
||||||
- Fix broken links in the waterfall infinite scrolling example
|
|
||||||
- Update `vue-flow`, related compatibility processing
|
|
||||||
- Delete the deprecated dependency package `eslint-define-config`, upgrade `eslint` to the latest version, related compatibility processing
|
|
||||||
- Optimize `src/style/dark.scss` syntax
|
|
||||||
- Optimize login parameter transfer
|
|
||||||
- Use `keydown` to replace `keypress`, the `keypress` event has been deprecated
|
|
||||||
|
|
||||||
# 5.9.0 (2024-12-10)
|
# 5.9.0 (2024-12-10)
|
||||||
|
|
||||||
### ✔️Refactor
|
### ✔️Refactor
|
||||||
|
|||||||
@@ -1,32 +1,3 @@
|
|||||||
# 6.0.0 (2025-04-10)
|
|
||||||
|
|
||||||
### ✔️ Refactor
|
|
||||||
|
|
||||||
- 重构图标模块,使用`@iconify/json`替换不再维护更新的`@iconify-icons/*`依赖,优化使用体验,确保图标库可持续更新并支持`Tree-shaking`
|
|
||||||
- 升级`tailwindcss`至`v4`版本,带来更快的构建速度、更简化的安装和配置、提供专属`vite`插件
|
|
||||||
|
|
||||||
### 🎫 Feat
|
|
||||||
|
|
||||||
- 添加`Ai`聊天组件示例
|
|
||||||
- 添加`tagOnClick`标签切换全局公共事件
|
|
||||||
- 添加代码编辑器示例
|
|
||||||
- 添加`Markdown`示例
|
|
||||||
- 添加滑块示例
|
|
||||||
|
|
||||||
### 🐞 Bug fixes
|
|
||||||
|
|
||||||
- 修复`aria-hidden`报错
|
|
||||||
- 修复使用`this`语法时无法显示代码提示的问题并更新`pinia`相关语法
|
|
||||||
|
|
||||||
### 🍏 Perf
|
|
||||||
|
|
||||||
- 修复组件-瀑布流无限滚动示例中失效的链接
|
|
||||||
- 更新`vue-flow`,相关兼容处理
|
|
||||||
- 删除已弃用的依赖包`eslint-define-config`,升级`eslint`至最新版本,相关兼容处理
|
|
||||||
- 优化`src/style/dark.scss`语法
|
|
||||||
- 优化登录传参
|
|
||||||
- 使用`keydown`替换`keypress`,`keypress`事件已弃用
|
|
||||||
|
|
||||||
# 5.9.0 (2024-12-10)
|
# 5.9.0 (2024-12-10)
|
||||||
|
|
||||||
### ✔️ Refactor
|
### ✔️ Refactor
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
import js from "@eslint/js";
|
import js from "@eslint/js";
|
||||||
import tseslint from "typescript-eslint";
|
|
||||||
import pluginVue from "eslint-plugin-vue";
|
import pluginVue from "eslint-plugin-vue";
|
||||||
import * as parserVue from "vue-eslint-parser";
|
import * as parserVue from "vue-eslint-parser";
|
||||||
import configPrettier from "eslint-config-prettier";
|
import configPrettier from "eslint-config-prettier";
|
||||||
import pluginPrettier from "eslint-plugin-prettier";
|
import pluginPrettier from "eslint-plugin-prettier";
|
||||||
import { defineConfig, globalIgnores } from "eslint/config";
|
import { defineConfig, globalIgnores } from "eslint/config";
|
||||||
|
import * as parserTypeScript from "@typescript-eslint/parser";
|
||||||
|
import pluginTypeScript from "@typescript-eslint/eslint-plugin";
|
||||||
|
|
||||||
export default defineConfig([
|
export default defineConfig([
|
||||||
globalIgnores([
|
globalIgnores([
|
||||||
@@ -19,7 +20,7 @@ export default defineConfig([
|
|||||||
...js.configs.recommended,
|
...js.configs.recommended,
|
||||||
languageOptions: {
|
languageOptions: {
|
||||||
globals: {
|
globals: {
|
||||||
// types/index.d.ts
|
// index.d.ts
|
||||||
RefType: "readonly",
|
RefType: "readonly",
|
||||||
EmitType: "readonly",
|
EmitType: "readonly",
|
||||||
TargetContext: "readonly",
|
TargetContext: "readonly",
|
||||||
@@ -72,10 +73,21 @@ export default defineConfig([
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
...tseslint.config({
|
{
|
||||||
extends: [...tseslint.configs.recommended],
|
|
||||||
files: ["**/*.?([cm])ts", "**/*.?([cm])tsx"],
|
files: ["**/*.?([cm])ts", "**/*.?([cm])tsx"],
|
||||||
|
languageOptions: {
|
||||||
|
parser: parserTypeScript,
|
||||||
|
parserOptions: {
|
||||||
|
sourceType: "module",
|
||||||
|
warnOnUnsupportedTypeScriptVersion: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
plugins: {
|
||||||
|
"@typescript-eslint": pluginTypeScript
|
||||||
|
},
|
||||||
rules: {
|
rules: {
|
||||||
|
...pluginTypeScript.configs.strict.rules,
|
||||||
|
"@typescript-eslint/ban-types": "off",
|
||||||
"@typescript-eslint/no-redeclare": "error",
|
"@typescript-eslint/no-redeclare": "error",
|
||||||
"@typescript-eslint/ban-ts-comment": "off",
|
"@typescript-eslint/ban-ts-comment": "off",
|
||||||
"@typescript-eslint/no-explicit-any": "off",
|
"@typescript-eslint/no-explicit-any": "off",
|
||||||
@@ -102,20 +114,20 @@ export default defineConfig([
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}),
|
},
|
||||||
{
|
{
|
||||||
files: ["**/*.d.ts"],
|
files: ["**/*.d.ts"],
|
||||||
rules: {
|
rules: {
|
||||||
"eslint-comments/no-unlimited-disable": "off",
|
"eslint-comments/no-unlimited-disable": "off",
|
||||||
"import/no-duplicates": "off",
|
"import/no-duplicates": "off",
|
||||||
"no-restricted-syntax": "off",
|
|
||||||
"unused-imports/no-unused-vars": "off"
|
"unused-imports/no-unused-vars": "off"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
files: ["**/*.?([cm])js"],
|
files: ["**/*.?([cm])js"],
|
||||||
rules: {
|
rules: {
|
||||||
"@typescript-eslint/no-require-imports": "off"
|
"@typescript-eslint/no-require-imports": "off",
|
||||||
|
"@typescript-eslint/no-var-requires": "off"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -136,19 +148,18 @@ export default defineConfig([
|
|||||||
jsx: true
|
jsx: true
|
||||||
},
|
},
|
||||||
extraFileExtensions: [".vue"],
|
extraFileExtensions: [".vue"],
|
||||||
parser: tseslint.parser,
|
parser: "@typescript-eslint/parser",
|
||||||
sourceType: "module"
|
sourceType: "module"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
plugins: {
|
plugins: {
|
||||||
"@typescript-eslint": tseslint.plugin,
|
|
||||||
vue: pluginVue
|
vue: pluginVue
|
||||||
},
|
},
|
||||||
processor: pluginVue.processors[".vue"],
|
processor: pluginVue.processors[".vue"],
|
||||||
rules: {
|
rules: {
|
||||||
...pluginVue.configs.base.rules,
|
...pluginVue.configs.base.rules,
|
||||||
...pluginVue.configs.essential.rules,
|
...pluginVue.configs["vue3-essential"].rules,
|
||||||
...pluginVue.configs.recommended.rules,
|
...pluginVue.configs["vue3-recommended"].rules,
|
||||||
"no-undef": "off",
|
"no-undef": "off",
|
||||||
"no-unused-vars": "off",
|
"no-unused-vars": "off",
|
||||||
"vue/no-v-html": "off",
|
"vue/no-v-html": "off",
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ export default defineFakeRoute([
|
|||||||
url: "/mine-logs",
|
url: "/mine-logs",
|
||||||
method: "get",
|
method: "get",
|
||||||
response: () => {
|
response: () => {
|
||||||
const list = [
|
let list = [
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
ip: faker.internet.ipv4(),
|
ip: faker.internet.ipv4(),
|
||||||
|
|||||||
49
package.json
49
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "vue-pure-admin",
|
"name": "vue-pure-admin",
|
||||||
"version": "6.0.0",
|
"version": "5.9.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -56,9 +56,9 @@
|
|||||||
"@pureadmin/table": "^3.2.1",
|
"@pureadmin/table": "^3.2.1",
|
||||||
"@pureadmin/utils": "^2.6.0",
|
"@pureadmin/utils": "^2.6.0",
|
||||||
"@vue-flow/background": "^1.3.2",
|
"@vue-flow/background": "^1.3.2",
|
||||||
"@vue-flow/core": "^1.42.5",
|
"@vue-flow/core": "^1.42.4",
|
||||||
"@vueuse/core": "^13.1.0",
|
"@vueuse/core": "^12.8.2",
|
||||||
"@vueuse/motion": "^3.0.3",
|
"@vueuse/motion": "^2.2.6",
|
||||||
"@wangeditor/editor": "^5.1.23",
|
"@wangeditor/editor": "^5.1.23",
|
||||||
"@wangeditor/editor-for-vue": "^5.1.12",
|
"@wangeditor/editor-for-vue": "^5.1.12",
|
||||||
"@zxcvbn-ts/core": "^3.0.4",
|
"@zxcvbn-ts/core": "^3.0.4",
|
||||||
@@ -85,7 +85,7 @@
|
|||||||
"path-browserify": "^1.0.1",
|
"path-browserify": "^1.0.1",
|
||||||
"pinia": "^3.0.1",
|
"pinia": "^3.0.1",
|
||||||
"pinyin-pro": "^3.26.0",
|
"pinyin-pro": "^3.26.0",
|
||||||
"plus-pro-components": "^0.1.22",
|
"plus-pro-components": "^0.1.21",
|
||||||
"qrcode": "^1.5.4",
|
"qrcode": "^1.5.4",
|
||||||
"qs": "^6.14.0",
|
"qs": "^6.14.0",
|
||||||
"responsive-storage": "^2.2.0",
|
"responsive-storage": "^2.2.0",
|
||||||
@@ -97,12 +97,12 @@
|
|||||||
"vditor": "^3.10.9",
|
"vditor": "^3.10.9",
|
||||||
"version-rocket": "^1.7.4",
|
"version-rocket": "^1.7.4",
|
||||||
"vue": "^3.5.13",
|
"vue": "^3.5.13",
|
||||||
"vue-i18n": "^11.1.3",
|
"vue-i18n": "^11.1.2",
|
||||||
"vue-json-pretty": "^2.4.0",
|
"vue-json-pretty": "^2.4.0",
|
||||||
"vue-pdf-embed": "^2.1.2",
|
"vue-pdf-embed": "^2.1.2",
|
||||||
"vue-router": "^4.5.0",
|
"vue-router": "^4.5.0",
|
||||||
"vue-tippy": "^6.7.0",
|
"vue-tippy": "^6.7.0",
|
||||||
"vue-types": "^6.0.0",
|
"vue-types": "^5.1.3",
|
||||||
"vue-virtual-scroller": "2.0.0-beta.8",
|
"vue-virtual-scroller": "2.0.0-beta.8",
|
||||||
"vue-waterfall-plugin-next": "^2.6.5",
|
"vue-waterfall-plugin-next": "^2.6.5",
|
||||||
"vue3-danmaku": "^1.6.1",
|
"vue3-danmaku": "^1.6.1",
|
||||||
@@ -117,32 +117,34 @@
|
|||||||
"@commitlint/cli": "^19.8.0",
|
"@commitlint/cli": "^19.8.0",
|
||||||
"@commitlint/config-conventional": "^19.8.0",
|
"@commitlint/config-conventional": "^19.8.0",
|
||||||
"@commitlint/types": "^19.8.0",
|
"@commitlint/types": "^19.8.0",
|
||||||
"@eslint/js": "^9.24.0",
|
"@eslint/js": "^9.23.0",
|
||||||
"@faker-js/faker": "^9.6.0",
|
"@faker-js/faker": "^9.6.0",
|
||||||
"@iconify/json": "^2.2.324",
|
"@iconify/json": "^2.2.321",
|
||||||
"@iconify/vue": "4.2.0",
|
"@iconify/vue": "4.2.0",
|
||||||
"@intlify/unplugin-vue-i18n": "^6.0.5",
|
"@intlify/unplugin-vue-i18n": "^6.0.5",
|
||||||
"@tailwindcss/vite": "^4.1.3",
|
"@tailwindcss/vite": "^4.0.17",
|
||||||
"@types/codemirror": "^5.60.15",
|
"@types/codemirror": "^5.60.15",
|
||||||
"@types/dagre": "^0.7.52",
|
"@types/dagre": "^0.7.52",
|
||||||
"@types/intro.js": "^5.1.5",
|
"@types/intro.js": "^5.1.5",
|
||||||
"@types/js-cookie": "^3.0.6",
|
"@types/js-cookie": "^3.0.6",
|
||||||
"@types/node": "^20.17.30",
|
"@types/node": "^20.17.28",
|
||||||
"@types/nprogress": "^0.2.3",
|
"@types/nprogress": "^0.2.3",
|
||||||
"@types/path-browserify": "^1.0.3",
|
"@types/path-browserify": "^1.0.3",
|
||||||
"@types/qrcode": "^1.5.5",
|
"@types/qrcode": "^1.5.5",
|
||||||
"@types/qs": "^6.9.18",
|
"@types/qs": "^6.9.18",
|
||||||
"@types/sortablejs": "^1.15.8",
|
"@types/sortablejs": "^1.15.8",
|
||||||
|
"@typescript-eslint/eslint-plugin": "^8.28.0",
|
||||||
|
"@typescript-eslint/parser": "^8.28.0",
|
||||||
"@vitejs/plugin-vue": "^5.2.3",
|
"@vitejs/plugin-vue": "^5.2.3",
|
||||||
"@vitejs/plugin-vue-jsx": "^4.1.2",
|
"@vitejs/plugin-vue-jsx": "^4.1.2",
|
||||||
"boxen": "^8.0.1",
|
"boxen": "^8.0.1",
|
||||||
"code-inspector-plugin": "^0.20.7",
|
"code-inspector-plugin": "^0.20.7",
|
||||||
"cssnano": "^7.0.6",
|
"cssnano": "^7.0.6",
|
||||||
"dagre": "^0.8.5",
|
"dagre": "^0.8.5",
|
||||||
"eslint": "^9.24.0",
|
"eslint": "^9.23.0",
|
||||||
"eslint-config-prettier": "^10.1.1",
|
"eslint-config-prettier": "^10.1.1",
|
||||||
"eslint-plugin-prettier": "^5.2.6",
|
"eslint-plugin-prettier": "^5.2.5",
|
||||||
"eslint-plugin-vue": "^10.0.0",
|
"eslint-plugin-vue": "^9.33.0",
|
||||||
"gradient-string": "^3.0.0",
|
"gradient-string": "^3.0.0",
|
||||||
"husky": "^9.1.7",
|
"husky": "^9.1.7",
|
||||||
"lint-staged": "^15.5.0",
|
"lint-staged": "^15.5.0",
|
||||||
@@ -153,25 +155,24 @@
|
|||||||
"prettier": "^3.5.3",
|
"prettier": "^3.5.3",
|
||||||
"rimraf": "^6.0.1",
|
"rimraf": "^6.0.1",
|
||||||
"rollup-plugin-visualizer": "^5.14.0",
|
"rollup-plugin-visualizer": "^5.14.0",
|
||||||
"sass": "^1.86.3",
|
"sass": "^1.86.0",
|
||||||
"stylelint": "^16.18.0",
|
"stylelint": "^16.17.0",
|
||||||
"stylelint-config-recess-order": "^6.0.0",
|
"stylelint-config-recess-order": "^6.0.0",
|
||||||
"stylelint-config-recommended-vue": "^1.6.0",
|
"stylelint-config-recommended-vue": "^1.6.0",
|
||||||
"stylelint-config-standard-scss": "^14.0.0",
|
"stylelint-config-standard-scss": "^14.0.0",
|
||||||
"stylelint-prettier": "^5.0.3",
|
"stylelint-prettier": "^5.0.3",
|
||||||
"svgo": "^3.3.2",
|
"svgo": "^3.3.2",
|
||||||
"tailwindcss": "^4.1.3",
|
"tailwindcss": "^4.0.17",
|
||||||
"typescript": "^5.8.3",
|
"typescript": "^5.8.2",
|
||||||
"typescript-eslint": "^8.29.1",
|
|
||||||
"unplugin-icons": "^22.1.0",
|
"unplugin-icons": "^22.1.0",
|
||||||
"vite": "^6.2.5",
|
"vite": "^6.2.3",
|
||||||
"vite-plugin-cdn-import": "^1.0.1",
|
"vite-plugin-cdn-import": "^1.0.1",
|
||||||
"vite-plugin-compression": "^0.5.1",
|
"vite-plugin-compression": "^0.5.1",
|
||||||
"vite-plugin-fake-server": "^2.2.0",
|
"vite-plugin-fake-server": "^2.2.0",
|
||||||
"vite-plugin-remove-console": "^2.2.0",
|
"vite-plugin-remove-console": "^2.2.0",
|
||||||
"vite-plugin-router-warn": "^1.0.0",
|
"vite-plugin-router-warn": "^1.0.0",
|
||||||
"vite-svg-loader": "^5.1.0",
|
"vite-svg-loader": "^5.1.0",
|
||||||
"vue-eslint-parser": "^10.1.3",
|
"vue-eslint-parser": "^9.4.3",
|
||||||
"vue-tsc": "^2.2.8"
|
"vue-tsc": "^2.2.8"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
@@ -182,7 +183,6 @@
|
|||||||
"allowedDeprecatedVersions": {
|
"allowedDeprecatedVersions": {
|
||||||
"are-we-there-yet": "*",
|
"are-we-there-yet": "*",
|
||||||
"sourcemap-codec": "*",
|
"sourcemap-codec": "*",
|
||||||
"lodash.isequal": "*",
|
|
||||||
"domexception": "*",
|
"domexception": "*",
|
||||||
"w3c-hr-time": "*",
|
"w3c-hr-time": "*",
|
||||||
"inflight": "*",
|
"inflight": "*",
|
||||||
@@ -193,6 +193,11 @@
|
|||||||
"abab": "*",
|
"abab": "*",
|
||||||
"glob": "*"
|
"glob": "*"
|
||||||
},
|
},
|
||||||
|
"peerDependencyRules": {
|
||||||
|
"allowedVersions": {
|
||||||
|
"eslint": "9"
|
||||||
|
}
|
||||||
|
},
|
||||||
"onlyBuiltDependencies": [
|
"onlyBuiltDependencies": [
|
||||||
"@parcel/watcher",
|
"@parcel/watcher",
|
||||||
"core-js",
|
"core-js",
|
||||||
|
|||||||
1740
pnpm-lock.yaml
generated
1740
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"Version": "6.0.0",
|
"Version": "5.9.0",
|
||||||
"Title": "PureAdmin",
|
"Title": "PureAdmin",
|
||||||
"FixedHeader": true,
|
"FixedHeader": true,
|
||||||
"HiddenSideBar": false,
|
"HiddenSideBar": false,
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ function onMouseleave() {
|
|||||||
:view-style="{ overflow: 'hidden' }"
|
:view-style="{ overflow: 'hidden' }"
|
||||||
class="border-t border-[#e5e7eb]"
|
class="border-t border-[#e5e7eb]"
|
||||||
>
|
>
|
||||||
<ul class="flex flex-wrap justify-around mb-1!">
|
<ul class="flex flex-wrap justify-around mb-1">
|
||||||
<li
|
<li
|
||||||
v-for="(animate, index) in animatesList"
|
v-for="(animate, index) in animatesList"
|
||||||
:key="index"
|
:key="index"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { ref, unref, onMounted } from "vue";
|
|||||||
import { LogicFlow } from "@logicflow/core";
|
import { LogicFlow } from "@logicflow/core";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
lf?: LogicFlow;
|
lf: LogicFlow;
|
||||||
catTurboData?: boolean;
|
catTurboData?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -114,8 +114,7 @@ onMounted(() => {
|
|||||||
:style="{
|
:style="{
|
||||||
cursor: item.disabled === false ? 'pointer' : 'not-allowed',
|
cursor: item.disabled === false ? 'pointer' : 'not-allowed',
|
||||||
color: item.disabled === false ? '' : '#00000040',
|
color: item.disabled === false ? '' : '#00000040',
|
||||||
background: 'transparent',
|
background: 'transparent'
|
||||||
border: 'none'
|
|
||||||
}"
|
}"
|
||||||
@click="onControl(item, key)"
|
@click="onControl(item, key)"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ type nodeListType = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
lf?: LogicFlow;
|
lf: LogicFlow;
|
||||||
nodeList?: Array<nodeListType>;
|
nodeList: Array<nodeListType>;
|
||||||
}
|
}
|
||||||
|
|
||||||
const props = withDefaults(defineProps<Props>(), {
|
const props = withDefaults(defineProps<Props>(), {
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ watch(
|
|||||||
:name="pane.name"
|
:name="pane.name"
|
||||||
>
|
>
|
||||||
<el-scrollbar height="220px">
|
<el-scrollbar height="220px">
|
||||||
<ul class="flex flex-wrap px-2! ml-2!">
|
<ul class="flex flex-wrap px-2 ml-2">
|
||||||
<li
|
<li
|
||||||
v-for="(item, key) in pageList"
|
v-for="(item, key) in pageList"
|
||||||
:key="key"
|
:key="key"
|
||||||
@@ -198,7 +198,7 @@ watch(
|
|||||||
@current-change="onCurrentChange"
|
@current-change="onCurrentChange"
|
||||||
/>
|
/>
|
||||||
<el-button
|
<el-button
|
||||||
class="justify-end mx-2!"
|
class="justify-end mr-2 ml-2"
|
||||||
type="danger"
|
type="danger"
|
||||||
size="small"
|
size="small"
|
||||||
text
|
text
|
||||||
|
|||||||
@@ -49,10 +49,8 @@ export function useRenderIcon(icon: any, attrs?: iconType): Component {
|
|||||||
return defineComponent({
|
return defineComponent({
|
||||||
name: "Icon",
|
name: "Icon",
|
||||||
render() {
|
render() {
|
||||||
if (!icon) return;
|
const IconifyIcon =
|
||||||
const IconifyIcon = icon.includes(":")
|
icon && icon.includes(":") ? IconifyIconOnline : IconifyIconOffline;
|
||||||
? IconifyIconOnline
|
|
||||||
: IconifyIconOffline;
|
|
||||||
return h(IconifyIcon, {
|
return h(IconifyIcon, {
|
||||||
icon,
|
icon,
|
||||||
...attrs
|
...attrs
|
||||||
|
|||||||
@@ -54,8 +54,8 @@ const icons = [
|
|||||||
// Remix Icon: https://github.com/Remix-Design/RemixIcon
|
// Remix Icon: https://github.com/Remix-Design/RemixIcon
|
||||||
["ri/mind-map", RiMindMap],
|
["ri/mind-map", RiMindMap],
|
||||||
["ri/admin-fill", RiAdminFill],
|
["ri/admin-fill", RiAdminFill],
|
||||||
["ri/table-line", RiTableLine],
|
["ri/links-fill", RiTableLine],
|
||||||
["ri/links-fill", RiLinksFill],
|
["ri/table-line", RiLinksFill],
|
||||||
["ri/admin-line", RiAdminLine],
|
["ri/admin-line", RiAdminLine],
|
||||||
["ri/list-check", RiListCheck],
|
["ri/list-check", RiListCheck],
|
||||||
["ri/search-line", RiSearchLine],
|
["ri/search-line", RiSearchLine],
|
||||||
|
|||||||
@@ -255,12 +255,12 @@ export default defineComponent({
|
|||||||
<div
|
<div
|
||||||
{...attrs}
|
{...attrs}
|
||||||
class={[
|
class={[
|
||||||
"w-full",
|
"w-99/100",
|
||||||
"px-2",
|
"px-2",
|
||||||
"pb-2",
|
"pb-2",
|
||||||
"bg-bg_color",
|
"bg-bg_color",
|
||||||
isFullscreen.value
|
isFullscreen.value
|
||||||
? ["h-full!", "z-2002", "fixed", "inset-0"]
|
? ["w-full!", "h-full!", "z-2002", "fixed", "inset-0"]
|
||||||
: "mt-2"
|
: "mt-2"
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -60,15 +60,12 @@ export function copyObj() {
|
|||||||
copyIsArray,
|
copyIsArray,
|
||||||
clone,
|
clone,
|
||||||
i = 1,
|
i = 1,
|
||||||
// eslint-disable-next-line prefer-rest-params
|
|
||||||
target = arguments[0] || {}, // 使用||运算符,排除隐式强制类型转换为false的数据类型
|
target = arguments[0] || {}, // 使用||运算符,排除隐式强制类型转换为false的数据类型
|
||||||
deep = false,
|
deep = false,
|
||||||
// eslint-disable-next-line prefer-const
|
|
||||||
len = arguments.length;
|
len = arguments.length;
|
||||||
if (typeof target === "boolean") {
|
if (typeof target === "boolean") {
|
||||||
deep = target;
|
deep = target;
|
||||||
|
|
||||||
// eslint-disable-next-line prefer-rest-params
|
|
||||||
target = arguments[1] || {};
|
target = arguments[1] || {};
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
@@ -82,7 +79,6 @@ export function copyObj() {
|
|||||||
for (; i < len; i++) {
|
for (; i < len; i++) {
|
||||||
//所以如果源对象中数据类型为Undefined或Null那么就会跳过本次循环,接着循环下一个源对象
|
//所以如果源对象中数据类型为Undefined或Null那么就会跳过本次循环,接着循环下一个源对象
|
||||||
|
|
||||||
// eslint-disable-next-line prefer-rest-params
|
|
||||||
if ((options = arguments[i]) != null) {
|
if ((options = arguments[i]) != null) {
|
||||||
// 如果遇到源对象的数据类型为Boolean, Number for in循环会被跳过,不执行for in循环// src用于判断target对象是否存在name属性
|
// 如果遇到源对象的数据类型为Boolean, Number for in循环会被跳过,不执行for in循环// src用于判断target对象是否存在name属性
|
||||||
for (name in options) {
|
for (name in options) {
|
||||||
|
|||||||
@@ -248,12 +248,12 @@ export default defineComponent({
|
|||||||
<div
|
<div
|
||||||
{...attrs}
|
{...attrs}
|
||||||
class={[
|
class={[
|
||||||
"w-full",
|
"w-99/100",
|
||||||
"px-2",
|
"px-2",
|
||||||
"pb-2",
|
"pb-2",
|
||||||
"bg-bg_color",
|
"bg-bg_color",
|
||||||
isFullscreen.value
|
isFullscreen.value
|
||||||
? ["h-full!", "z-2002", "fixed", "inset-0"]
|
? ["w-full!", "h-full!", "z-2002", "fixed", "inset-0"]
|
||||||
: "mt-2"
|
: "mt-2"
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -32,8 +32,8 @@ const calculate = (
|
|||||||
const offset = el.getBoundingClientRect();
|
const offset = el.getBoundingClientRect();
|
||||||
|
|
||||||
// 获取点击位置距离 el 的垂直和水平距离
|
// 获取点击位置距离 el 的垂直和水平距离
|
||||||
const localX = e.clientX - offset.left;
|
let localX = e.clientX - offset.left;
|
||||||
const localY = e.clientY - offset.top;
|
let localY = e.clientY - offset.top;
|
||||||
|
|
||||||
let radius = 0;
|
let radius = 0;
|
||||||
let scale = 0.3;
|
let scale = 0.3;
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ function hoverDescription(event, description) {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
class="notice-container border-0 border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"
|
class="notice-container border-b-[1px] border-solid border-[#f0f0f0] dark:border-[#303030]"
|
||||||
>
|
>
|
||||||
<el-avatar
|
<el-avatar
|
||||||
v-if="noticeItem.avatar"
|
v-if="noticeItem.avatar"
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ onBeforeUnmount(() => {
|
|||||||
<div class="right-panel-background" />
|
<div class="right-panel-background" />
|
||||||
<div ref="target" class="right-panel bg-bg_color">
|
<div ref="target" class="right-panel bg-bg_color">
|
||||||
<div
|
<div
|
||||||
class="project-configuration border-0 border-b-[1px] border-solid border-[var(--pure-border-color)]"
|
class="project-configuration border-b-[1px] border-solid border-[var(--pure-border-color)]"
|
||||||
>
|
>
|
||||||
<h4 class="dark:text-white">
|
<h4 class="dark:text-white">
|
||||||
{{ t("panel.pureSystemSet") }}
|
{{ t("panel.pureSystemSet") }}
|
||||||
@@ -78,7 +78,7 @@ onBeforeUnmount(() => {
|
|||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="flex justify-end p-3 border-0 border-t-[1px] border-solid border-[var(--pure-border-color)]"
|
class="flex justify-end p-3 border-t-[1px] border-solid border-[var(--pure-border-color)]"
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
v-tippy="{
|
v-tippy="{
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import EnterOutlined from "@/assets/svg/enter_outlined.svg?component";
|
|||||||
import ArrowUpLine from "~icons/ri/arrow-up-line";
|
import ArrowUpLine from "~icons/ri/arrow-up-line";
|
||||||
import ArrowDownLine from "~icons/ri/arrow-down-line";
|
import ArrowDownLine from "~icons/ri/arrow-down-line";
|
||||||
|
|
||||||
withDefaults(defineProps<{ total?: number }>(), {
|
withDefaults(defineProps<{ total: number }>(), {
|
||||||
total: 0
|
total: 0
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -20,8 +20,8 @@ import { useDataThemeChange } from "@/layout/hooks/useDataThemeChange";
|
|||||||
import { useDark, useGlobal, debounce, isNumber } from "@pureadmin/utils";
|
import { useDark, useGlobal, debounce, isNumber } from "@pureadmin/utils";
|
||||||
|
|
||||||
import Check from "~icons/ep/check";
|
import Check from "~icons/ep/check";
|
||||||
import LeftArrow from "~icons/ri/arrow-left-s-line?width=20&height=20";
|
import LeftArrow from "~icons/ri/arrow-left-s-line";
|
||||||
import RightArrow from "~icons/ri/arrow-right-s-line?width=20&height=20";
|
import RightArrow from "~icons/ri/arrow-right-s-line";
|
||||||
import DayIcon from "@/assets/svg/day.svg?component";
|
import DayIcon from "@/assets/svg/day.svg?component";
|
||||||
import DarkIcon from "@/assets/svg/dark.svg?component";
|
import DarkIcon from "@/assets/svg/dark.svg?component";
|
||||||
import SystemIcon from "@/assets/svg/system.svg?component";
|
import SystemIcon from "@/assets/svg/system.svg?component";
|
||||||
@@ -189,7 +189,7 @@ const getThemeColor = computed(() => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const pClass = computed(() => {
|
const pClass = computed(() => {
|
||||||
return ["mb-[12px]!", "font-medium", "text-sm", "dark:text-white"];
|
return ["mb-[12px]", "font-medium", "text-sm", "dark:text-white"];
|
||||||
});
|
});
|
||||||
|
|
||||||
const themeOptions = computed<Array<OptionsType>>(() => {
|
const themeOptions = computed<Array<OptionsType>>(() => {
|
||||||
@@ -335,7 +335,7 @@ onUnmounted(() => removeMatchMedia);
|
|||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<p :class="['mt-5!', pClass]">{{ t("panel.pureThemeColor") }}</p>
|
<p :class="['mt-5', pClass]">{{ t("panel.pureThemeColor") }}</p>
|
||||||
<ul class="theme-color">
|
<ul class="theme-color">
|
||||||
<li
|
<li
|
||||||
v-for="(item, index) in themeColors"
|
v-for="(item, index) in themeColors"
|
||||||
@@ -354,7 +354,7 @@ onUnmounted(() => removeMatchMedia);
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p :class="['mt-5!', pClass]">{{ t("panel.pureLayoutModel") }}</p>
|
<p :class="['mt-5', pClass]">{{ t("panel.pureLayoutModel") }}</p>
|
||||||
<ul class="pure-theme">
|
<ul class="pure-theme">
|
||||||
<li
|
<li
|
||||||
ref="verticalRef"
|
ref="verticalRef"
|
||||||
@@ -397,7 +397,7 @@ onUnmounted(() => removeMatchMedia);
|
|||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<span v-if="useAppStoreHook().getViewportWidth > 1280">
|
<span v-if="useAppStoreHook().getViewportWidth > 1280">
|
||||||
<p :class="['mt-5!', pClass]">{{ t("panel.pureStretch") }}</p>
|
<p :class="['mt-5', pClass]">{{ t("panel.pureStretch") }}</p>
|
||||||
<Segmented
|
<Segmented
|
||||||
resize
|
resize
|
||||||
class="mb-2 select-none"
|
class="mb-2 select-none"
|
||||||
@@ -426,19 +426,21 @@ onUnmounted(() => removeMatchMedia);
|
|||||||
>
|
>
|
||||||
<IconifyIconOffline
|
<IconifyIconOffline
|
||||||
:icon="settings.stretch ? RightArrow : LeftArrow"
|
:icon="settings.stretch ? RightArrow : LeftArrow"
|
||||||
|
height="20"
|
||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
class="grow border-0 border-b border-dashed"
|
class="grow border-b border-dashed"
|
||||||
style="border-color: var(--el-color-primary)"
|
style="border-color: var(--el-color-primary)"
|
||||||
/>
|
/>
|
||||||
<IconifyIconOffline
|
<IconifyIconOffline
|
||||||
:icon="settings.stretch ? LeftArrow : RightArrow"
|
:icon="settings.stretch ? LeftArrow : RightArrow"
|
||||||
|
height="20"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<p :class="['mt-4!', pClass]">{{ t("panel.pureTagsStyle") }}</p>
|
<p :class="['mt-4', pClass]">{{ t("panel.pureTagsStyle") }}</p>
|
||||||
<Segmented
|
<Segmented
|
||||||
resize
|
resize
|
||||||
class="select-none"
|
class="select-none"
|
||||||
@@ -447,7 +449,7 @@ onUnmounted(() => removeMatchMedia);
|
|||||||
@change="onChange"
|
@change="onChange"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<p class="mt-5! font-medium text-sm dark:text-white">
|
<p class="mt-5 font-medium text-sm dark:text-white">
|
||||||
{{ t("panel.pureInterfaceDisplay") }}
|
{{ t("panel.pureInterfaceDisplay") }}
|
||||||
</p>
|
</p>
|
||||||
<ul class="setting">
|
<ul class="setting">
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { useNav } from "@/layout/hooks/useNav";
|
|||||||
import ArrowLeft from "~icons/ri/arrow-left-double-fill";
|
import ArrowLeft from "~icons/ri/arrow-left-double-fill";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
isActive?: boolean;
|
isActive: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
withDefaults(defineProps<Props>(), {
|
withDefaults(defineProps<Props>(), {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { useNav } from "@/layout/hooks/useNav";
|
|||||||
import MenuFold from "~icons/ri/menu-fold-fill";
|
import MenuFold from "~icons/ri/menu-fold-fill";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
isActive?: boolean;
|
isActive: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
withDefaults(defineProps<Props>(), {
|
withDefaults(defineProps<Props>(), {
|
||||||
@@ -23,7 +23,7 @@ const iconClass = computed(() => {
|
|||||||
"mb-1",
|
"mb-1",
|
||||||
"w-[16px]",
|
"w-[16px]",
|
||||||
"h-[16px]",
|
"h-[16px]",
|
||||||
"inline-block!",
|
"inline-block",
|
||||||
"align-middle",
|
"align-middle",
|
||||||
"cursor-pointer",
|
"cursor-pointer",
|
||||||
"duration-[100ms]"
|
"duration-[100ms]"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import MenuFold from "~icons/ri/menu-fold-fill";
|
|||||||
import MenuUnfold from "~icons/ri/menu-unfold-fill";
|
import MenuUnfold from "~icons/ri/menu-unfold-fill";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
isActive?: boolean;
|
isActive: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
withDefaults(defineProps<Props>(), {
|
withDefaults(defineProps<Props>(), {
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import zhLocale from "element-plus/es/locale/lang/zh-cn";
|
|||||||
|
|
||||||
const siphonI18n = (function () {
|
const siphonI18n = (function () {
|
||||||
// 仅初始化一次国际化配置
|
// 仅初始化一次国际化配置
|
||||||
const cache = Object.fromEntries(
|
let cache = Object.fromEntries(
|
||||||
Object.entries(
|
Object.entries(
|
||||||
import.meta.glob("../../locales/*.y(a)?ml", { eager: true })
|
import.meta.glob("../../locales/*.y(a)?ml", { eager: true })
|
||||||
).map(([key, value]: any) => {
|
).map(([key, value]: any) => {
|
||||||
|
|||||||
@@ -1,3 +1,12 @@
|
|||||||
|
*,
|
||||||
|
::before,
|
||||||
|
::after {
|
||||||
|
box-sizing: border-box;
|
||||||
|
border-color: currentColor;
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
#app {
|
#app {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
@layer theme, base, components, utilities;
|
@import "tailwindcss";
|
||||||
@import "tailwindcss/theme.css" layer(theme);
|
|
||||||
@import "tailwindcss/utilities.css" layer(utilities);
|
|
||||||
|
|
||||||
@custom-variant dark (&:is(.dark *));
|
@custom-variant dark (&:is(.dark *));
|
||||||
|
|
||||||
|
|||||||
@@ -140,10 +140,8 @@ Print.prototype = {
|
|||||||
"position:absolute;width:0;height:0;top:-10px;left:-10px;"
|
"position:absolute;width:0;height:0;top:-10px;left:-10px;"
|
||||||
);
|
);
|
||||||
|
|
||||||
// eslint-disable-next-line prefer-const
|
|
||||||
w = f.contentWindow || f.contentDocument;
|
w = f.contentWindow || f.contentDocument;
|
||||||
|
|
||||||
// eslint-disable-next-line prefer-const
|
|
||||||
doc = f.contentDocument || f.contentWindow.document;
|
doc = f.contentDocument || f.contentWindow.document;
|
||||||
doc.open();
|
doc.open();
|
||||||
doc.write(content);
|
doc.write(content);
|
||||||
|
|||||||
@@ -51,9 +51,7 @@ const load = () => {
|
|||||||
代码位置 src/views/able/infinite-scroll.vue
|
代码位置 src/views/able/infinite-scroll.vue
|
||||||
</el-link>
|
</el-link>
|
||||||
</template>
|
</template>
|
||||||
<div class="mb-2">
|
<p class="mb-2">{{ isBottom ? "已加载全部页" : `加载到第 ${page} 页` }}</p>
|
||||||
{{ isBottom ? "已加载全部页" : `加载到第 ${page} 页` }}
|
|
||||||
</div>
|
|
||||||
<el-table
|
<el-table
|
||||||
v-el-table-infinite-scroll="load"
|
v-el-table-infinite-scroll="load"
|
||||||
border
|
border
|
||||||
|
|||||||
@@ -21,8 +21,8 @@ defineOptions({
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<p v-html="html('带 音 调')" />
|
<p v-html="html('带 音 调')" />
|
||||||
<p class="mt-2!" v-html="html('不 带 音 调', { toneType: 'none' })" />
|
<p class="mt-2" v-html="html('不 带 音 调', { toneType: 'none' })" />
|
||||||
<p class="mt-2! custom" v-html="html('自 定 义 样 式')" />
|
<p class="mt-2 custom" v-html="html('自 定 义 样 式')" />
|
||||||
</el-card>
|
</el-card>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -45,6 +45,6 @@ function onInput() {
|
|||||||
</el-tag>
|
</el-tag>
|
||||||
</div>
|
</div>
|
||||||
<el-input v-model="modelValue" @input="onInput" />
|
<el-input v-model="modelValue" @input="onInput" />
|
||||||
<p class="mt-2!">{{ modelValue }}</p>
|
<p class="mt-2">{{ modelValue }}</p>
|
||||||
</el-card>
|
</el-card>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ onBeforeUnmount(() => {
|
|||||||
<div ref="wavesurferRef" />
|
<div ref="wavesurferRef" />
|
||||||
<div v-show="totalTime" class="flex justify-between">
|
<div v-show="totalTime" class="flex justify-between">
|
||||||
<span class="text-[#81888f]">00:00</span>
|
<span class="text-[#81888f]">00:00</span>
|
||||||
<h1 class="text-4xl mt-2!">{{ curTime }}</h1>
|
<h1 class="text-4xl mt-2">{{ curTime }}</h1>
|
||||||
<span class="text-[#81888f]">{{ totalTime }}</span>
|
<span class="text-[#81888f]">{{ totalTime }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div v-show="totalTime" class="flex mt-2 w-[180px] justify-around m-auto">
|
<div v-show="totalTime" class="flex mt-2 w-[180px] justify-around m-auto">
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ function onClick(item) {
|
|||||||
deviceDetection() ? 'max-w-[100%]' : 'max-w-[70%]'
|
deviceDetection() ? 'max-w-[100%]' : 'max-w-[70%]'
|
||||||
]"
|
]"
|
||||||
>
|
>
|
||||||
<h3 class="my-8!">账户管理</h3>
|
<h3 class="my-8">账户管理</h3>
|
||||||
<div v-for="(item, index) in list" :key="index">
|
<div v-for="(item, index) in list" :key="index">
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<div class="flex-1">
|
<div class="flex-1">
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ function onChange(val, item) {
|
|||||||
deviceDetection() ? 'max-w-[100%]' : 'max-w-[70%]'
|
deviceDetection() ? 'max-w-[100%]' : 'max-w-[70%]'
|
||||||
]"
|
]"
|
||||||
>
|
>
|
||||||
<h3 class="my-8!">偏好设置</h3>
|
<h3 class="my-8">偏好设置</h3>
|
||||||
<div v-for="(item, index) in list" :key="index">
|
<div v-for="(item, index) in list" :key="index">
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<div class="flex-1">
|
<div class="flex-1">
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ getMine().then(res => {
|
|||||||
deviceDetection() ? 'max-w-[100%]' : 'max-w-[70%]'
|
deviceDetection() ? 'max-w-[100%]' : 'max-w-[70%]'
|
||||||
]"
|
]"
|
||||||
>
|
>
|
||||||
<h3 class="my-8!">个人信息</h3>
|
<h3 class="my-8">个人信息</h3>
|
||||||
<el-form
|
<el-form
|
||||||
ref="userInfoFormRef"
|
ref="userInfoFormRef"
|
||||||
label-position="top"
|
label-position="top"
|
||||||
@@ -128,7 +128,7 @@ getMine().then(res => {
|
|||||||
:show-file-list="false"
|
:show-file-list="false"
|
||||||
:on-change="onChange"
|
:on-change="onChange"
|
||||||
>
|
>
|
||||||
<el-button plain class="ml-4!">
|
<el-button plain class="ml-4">
|
||||||
<IconifyIconOffline :icon="uploadLine" />
|
<IconifyIconOffline :icon="uploadLine" />
|
||||||
<span class="ml-2">更新头像</span>
|
<span class="ml-2">更新头像</span>
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ onMounted(() => {
|
|||||||
deviceDetection() ? 'max-w-[100%]' : 'max-w-[70%]'
|
deviceDetection() ? 'max-w-[100%]' : 'max-w-[70%]'
|
||||||
]"
|
]"
|
||||||
>
|
>
|
||||||
<h3 class="my-8!">安全日志</h3>
|
<h3 class="my-8">安全日志</h3>
|
||||||
<pure-table
|
<pure-table
|
||||||
row-key="id"
|
row-key="id"
|
||||||
table-layout="auto"
|
table-layout="auto"
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ watch(size, val =>
|
|||||||
代码位置 src/views/components/check-button.vue
|
代码位置 src/views/components/check-button.vue
|
||||||
</el-link>
|
</el-link>
|
||||||
</template>
|
</template>
|
||||||
<div class="mb-2">单选(紧凑风格的按钮样式)</div>
|
<p class="mb-2">单选(紧凑风格的按钮样式)</p>
|
||||||
<el-radio-group
|
<el-radio-group
|
||||||
v-model="radio"
|
v-model="radio"
|
||||||
:size="dynamicSize"
|
:size="dynamicSize"
|
||||||
@@ -121,7 +121,7 @@ watch(size, val =>
|
|||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
<el-divider />
|
<el-divider />
|
||||||
|
|
||||||
<div class="mb-2">单选(带有边框)</div>
|
<p class="mb-2">单选(带有边框)</p>
|
||||||
<el-radio-group
|
<el-radio-group
|
||||||
v-model="radioBox"
|
v-model="radioBox"
|
||||||
:size="dynamicSize"
|
:size="dynamicSize"
|
||||||
@@ -133,7 +133,7 @@ watch(size, val =>
|
|||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
<el-divider />
|
<el-divider />
|
||||||
|
|
||||||
<div class="mb-2">单选(自定义内容)</div>
|
<p class="mb-2">单选(自定义内容)</p>
|
||||||
<el-radio-group
|
<el-radio-group
|
||||||
v-model="radioCustom"
|
v-model="radioCustom"
|
||||||
:size="dynamicSize"
|
:size="dynamicSize"
|
||||||
@@ -160,7 +160,7 @@ watch(size, val =>
|
|||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
<el-divider />
|
<el-divider />
|
||||||
|
|
||||||
<div class="mb-2">多选(紧凑风格的按钮样式)</div>
|
<p class="mb-2">多选(紧凑风格的按钮样式)</p>
|
||||||
<el-checkbox-group
|
<el-checkbox-group
|
||||||
v-model="checkboxGroup"
|
v-model="checkboxGroup"
|
||||||
:size="dynamicSize"
|
:size="dynamicSize"
|
||||||
@@ -172,7 +172,7 @@ watch(size, val =>
|
|||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
<el-divider />
|
<el-divider />
|
||||||
|
|
||||||
<div class="mb-2">多选(带有边框)</div>
|
<p class="mb-2">多选(带有边框)</p>
|
||||||
<el-checkbox-group
|
<el-checkbox-group
|
||||||
v-model="checkboxGroupBox"
|
v-model="checkboxGroupBox"
|
||||||
:size="dynamicSize"
|
:size="dynamicSize"
|
||||||
@@ -184,7 +184,7 @@ watch(size, val =>
|
|||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
<el-divider />
|
<el-divider />
|
||||||
|
|
||||||
<div class="mb-2">多选(来点不一样的体验)</div>
|
<p class="mb-2">多选(来点不一样的体验)</p>
|
||||||
<el-checkbox-group
|
<el-checkbox-group
|
||||||
v-model="checkboxGroupCustom"
|
v-model="checkboxGroupCustom"
|
||||||
class="pure-checkbox"
|
class="pure-checkbox"
|
||||||
@@ -218,14 +218,14 @@ watch(size, val =>
|
|||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
<el-divider />
|
<el-divider />
|
||||||
|
|
||||||
<div>可控制间距的按钮样式</div>
|
<p>可控制间距的按钮样式</p>
|
||||||
<el-slider
|
<el-slider
|
||||||
v-model="spaceSize"
|
v-model="spaceSize"
|
||||||
class="mb-2 w-[300px]!"
|
class="mb-2 w-[300px]!"
|
||||||
:show-tooltip="false"
|
:show-tooltip="false"
|
||||||
:disabled="size === 'disabled'"
|
:disabled="size === 'disabled'"
|
||||||
/>
|
/>
|
||||||
<div class="mb-2">单选</div>
|
<p class="mb-2">单选</p>
|
||||||
<el-space wrap :size="spaceSize">
|
<el-space wrap :size="spaceSize">
|
||||||
<el-check-tag
|
<el-check-tag
|
||||||
v-for="(tag, index) in checkTag"
|
v-for="(tag, index) in checkTag"
|
||||||
@@ -241,7 +241,7 @@ watch(size, val =>
|
|||||||
{{ tag.title }}
|
{{ tag.title }}
|
||||||
</el-check-tag>
|
</el-check-tag>
|
||||||
</el-space>
|
</el-space>
|
||||||
<div class="mb-2 mt-4">
|
<p class="mb-2 mt-4">
|
||||||
多选
|
多选
|
||||||
{{
|
{{
|
||||||
getKeyList(
|
getKeyList(
|
||||||
@@ -249,7 +249,7 @@ watch(size, val =>
|
|||||||
"title"
|
"title"
|
||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
</div>
|
</p>
|
||||||
<el-space wrap :size="spaceSize">
|
<el-space wrap :size="spaceSize">
|
||||||
<el-check-tag
|
<el-check-tag
|
||||||
v-for="(tag, index) in checkGroupTag"
|
v-for="(tag, index) in checkGroupTag"
|
||||||
@@ -267,7 +267,7 @@ watch(size, val =>
|
|||||||
</el-space>
|
</el-space>
|
||||||
<el-divider />
|
<el-divider />
|
||||||
|
|
||||||
<div class="mb-2">单个可选按钮</div>
|
<p class="mb-2">单个可选按钮</p>
|
||||||
<el-check-tag
|
<el-check-tag
|
||||||
:class="[
|
:class="[
|
||||||
'select-none',
|
'select-none',
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ watch(size, val =>
|
|||||||
</el-link>
|
</el-link>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<div class="mb-2 mt-4">单选</div>
|
<p class="mb-2 mt-4">单选</p>
|
||||||
<PlusCheckCardGroup
|
<PlusCheckCardGroup
|
||||||
v-model="list"
|
v-model="list"
|
||||||
:options="options"
|
:options="options"
|
||||||
@@ -77,7 +77,7 @@ watch(size, val =>
|
|||||||
:disabled="size === 'disabled'"
|
:disabled="size === 'disabled'"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div class="mb-2 mt-4">多选</div>
|
<p class="mb-2 mt-4">多选</p>
|
||||||
<PlusCheckCardGroup
|
<PlusCheckCardGroup
|
||||||
v-model="list1"
|
v-model="list1"
|
||||||
:options="options"
|
:options="options"
|
||||||
|
|||||||
@@ -50,12 +50,12 @@ const handleChange = (val: string[]) => {
|
|||||||
</el-link>
|
</el-link>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<div class="mb-2">基础用法</div>
|
<p class="mb-2">基础用法</p>
|
||||||
<el-radio-group v-model="radio" class="mb-3">
|
<el-radio-group v-model="radio" class="mb-3">
|
||||||
<el-radio value="">可同时展开多个面板</el-radio>
|
<el-radio value="">可同时展开多个面板</el-radio>
|
||||||
<el-radio value="accordion">每次只能展开一个面板</el-radio>
|
<el-radio value="accordion">每次只能展开一个面板</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
<el-button size="small" text bg class="ml-8! mb-1!" @click="onClick">
|
<el-button size="small" text bg class="ml-8 mb-1" @click="onClick">
|
||||||
外部触发打开、关闭
|
外部触发打开、关闭
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-collapse
|
<el-collapse
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ function onClick() {
|
|||||||
</el-link>
|
</el-link>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<div class="mb-2">不同尺寸、选择透明度、预定义颜色</div>
|
<p class="mb-2">不同尺寸、选择透明度、预定义颜色</p>
|
||||||
<el-color-picker
|
<el-color-picker
|
||||||
v-model="color"
|
v-model="color"
|
||||||
show-alpha
|
show-alpha
|
||||||
@@ -83,7 +83,7 @@ function onClick() {
|
|||||||
/>
|
/>
|
||||||
<el-divider />
|
<el-divider />
|
||||||
|
|
||||||
<div class="mb-2">外部触发器</div>
|
<p class="mb-2">外部触发器</p>
|
||||||
<el-space wrap>
|
<el-space wrap>
|
||||||
<el-color-picker
|
<el-color-picker
|
||||||
ref="colorPickerRef"
|
ref="colorPickerRef"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="mb-2">基础用法</div>
|
<p class="mb-2">基础用法</p>
|
||||||
<div v-contextmenu:contextmenu class="wrapper">
|
<div v-contextmenu:contextmenu class="wrapper">
|
||||||
<code>右键点击此区域</code>
|
<code>右键点击此区域</code>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="mb-2">动态菜单</div>
|
<p class="mb-2">动态菜单</p>
|
||||||
<div v-contextmenu:contextmenu class="wrapper">
|
<div v-contextmenu:contextmenu class="wrapper">
|
||||||
<code>右键点击此区域</code>
|
<code>右键点击此区域</code>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="mb-2">按钮组</div>
|
<p class="mb-2">按钮组</p>
|
||||||
<div v-contextmenu:contextmenu class="wrapper">
|
<div v-contextmenu:contextmenu class="wrapper">
|
||||||
<code>右键点击此区域</code>
|
<code>右键点击此区域</code>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ watch(size, val =>
|
|||||||
</el-link>
|
</el-link>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<div class="mb-2">选择某一天</div>
|
<p class="mb-2">选择某一天</p>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="value"
|
v-model="value"
|
||||||
type="date"
|
type="date"
|
||||||
@@ -175,7 +175,7 @@ watch(size, val =>
|
|||||||
:disabled="size === 'disabled'"
|
:disabled="size === 'disabled'"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div class="mb-2 mt-4">选择周、月、年或多个日期</div>
|
<p class="mb-2 mt-4">选择周、月、年或多个日期</p>
|
||||||
<el-space wrap>
|
<el-space wrap>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="value1"
|
v-model="value1"
|
||||||
@@ -212,7 +212,7 @@ watch(size, val =>
|
|||||||
/>
|
/>
|
||||||
</el-space>
|
</el-space>
|
||||||
|
|
||||||
<div class="mb-2 mt-4">选择一段时间</div>
|
<p class="mb-2 mt-4">选择一段时间</p>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="value5"
|
v-model="value5"
|
||||||
type="daterange"
|
type="daterange"
|
||||||
@@ -229,7 +229,7 @@ watch(size, val =>
|
|||||||
:disabled="size === 'disabled'"
|
:disabled="size === 'disabled'"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div class="mb-2 mt-4">选择月份范围</div>
|
<p class="mb-2 mt-4">选择月份范围</p>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="value6"
|
v-model="value6"
|
||||||
type="monthrange"
|
type="monthrange"
|
||||||
@@ -245,7 +245,7 @@ watch(size, val =>
|
|||||||
:disabled="size === 'disabled'"
|
:disabled="size === 'disabled'"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div class="mb-2 mt-4">日期格式</div>
|
<p class="mb-2 mt-4">日期格式</p>
|
||||||
<el-radio-group
|
<el-radio-group
|
||||||
v-model="dateFormat"
|
v-model="dateFormat"
|
||||||
class="mb-2"
|
class="mb-2"
|
||||||
@@ -271,7 +271,7 @@ watch(size, val =>
|
|||||||
<span class="ml-2">{{ value7 }}</span>
|
<span class="ml-2">{{ value7 }}</span>
|
||||||
</el-space>
|
</el-space>
|
||||||
|
|
||||||
<div class="mb-2 mt-4">自定义前缀</div>
|
<p class="mb-2 mt-4">自定义前缀</p>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="value8"
|
v-model="value8"
|
||||||
type="date"
|
type="date"
|
||||||
@@ -282,7 +282,7 @@ watch(size, val =>
|
|||||||
:disabled="size === 'disabled'"
|
:disabled="size === 'disabled'"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div class="mb-2 mt-4">自定义内容</div>
|
<p class="mb-2 mt-4">自定义内容</p>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="value9"
|
v-model="value9"
|
||||||
type="date"
|
type="date"
|
||||||
|
|||||||
@@ -186,7 +186,7 @@ watch(size, val =>
|
|||||||
</el-link>
|
</el-link>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<div class="mb-2">日期和时间点</div>
|
<p class="mb-2">日期和时间点</p>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="value"
|
v-model="value"
|
||||||
type="datetime"
|
type="datetime"
|
||||||
@@ -197,7 +197,7 @@ watch(size, val =>
|
|||||||
:disabled="size === 'disabled'"
|
:disabled="size === 'disabled'"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div class="mb-2 mt-4">日期时间格式</div>
|
<p class="mb-2 mt-4">日期时间格式</p>
|
||||||
<el-radio-group
|
<el-radio-group
|
||||||
v-model="datetimeFormat"
|
v-model="datetimeFormat"
|
||||||
class="mb-2"
|
class="mb-2"
|
||||||
@@ -223,7 +223,7 @@ watch(size, val =>
|
|||||||
<span class="ml-2">{{ value1 }}</span>
|
<span class="ml-2">{{ value1 }}</span>
|
||||||
</el-space>
|
</el-space>
|
||||||
|
|
||||||
<div class="mb-2 mt-4">日期和时间范围</div>
|
<p class="mb-2 mt-4">日期和时间范围</p>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="value2"
|
v-model="value2"
|
||||||
type="datetimerange"
|
type="datetimerange"
|
||||||
@@ -238,9 +238,9 @@ watch(size, val =>
|
|||||||
:disabled="size === 'disabled'"
|
:disabled="size === 'disabled'"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div class="mb-2 mt-4">
|
<p class="mb-2 mt-4">
|
||||||
弹出面板位置可控(如果弹出位置不足以完整展示面板会自动调整位置)
|
弹出面板位置可控(如果弹出位置不足以完整展示面板会自动调整位置)
|
||||||
</div>
|
</p>
|
||||||
<el-space wrap class="w-[400px]">
|
<el-space wrap class="w-[400px]">
|
||||||
<el-check-tag
|
<el-check-tag
|
||||||
v-for="(tag, index) in checkTag"
|
v-for="(tag, index) in checkTag"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { ref } from "vue";
|
|||||||
|
|
||||||
// 声明 props 类型
|
// 声明 props 类型
|
||||||
export interface FormProps {
|
export interface FormProps {
|
||||||
formInline?: {
|
formInline: {
|
||||||
user: string;
|
user: string;
|
||||||
region: string;
|
region: string;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { useVModel } from "@vueuse/core";
|
|||||||
|
|
||||||
// 声明 props 类型
|
// 声明 props 类型
|
||||||
export interface FormProps {
|
export interface FormProps {
|
||||||
data?: string;
|
data: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 声明 props 默认值
|
// 声明 props 默认值
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { ref } from "vue";
|
|||||||
|
|
||||||
// 声明 props 类型
|
// 声明 props 类型
|
||||||
export interface FormProps {
|
export interface FormProps {
|
||||||
formInline?: {
|
formInline: {
|
||||||
user: string;
|
user: string;
|
||||||
region: string;
|
region: string;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { useVModel } from "@vueuse/core";
|
|||||||
|
|
||||||
// 声明 props 类型
|
// 声明 props 类型
|
||||||
export interface FormProps {
|
export interface FormProps {
|
||||||
data?: string;
|
data: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 声明 props 默认值
|
// 声明 props 默认值
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ watch(size, val =>
|
|||||||
</el-link>
|
</el-link>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<div class="mb-2">基础按钮</div>
|
<p class="mb-2">基础按钮</p>
|
||||||
<el-radio-group v-model="baseRadio" class="mb-3">
|
<el-radio-group v-model="baseRadio" class="mb-3">
|
||||||
<el-radio label="default" value="default" />
|
<el-radio label="default" value="default" />
|
||||||
<el-radio label="plain" value="plain" />
|
<el-radio label="plain" value="plain" />
|
||||||
@@ -117,7 +117,7 @@ watch(size, val =>
|
|||||||
</el-space>
|
</el-space>
|
||||||
<el-divider />
|
<el-divider />
|
||||||
|
|
||||||
<div class="mb-4">加载状态按钮</div>
|
<p class="mb-4">加载状态按钮</p>
|
||||||
<el-button
|
<el-button
|
||||||
text
|
text
|
||||||
bg
|
bg
|
||||||
@@ -166,7 +166,7 @@ watch(size, val =>
|
|||||||
</el-button>
|
</el-button>
|
||||||
<el-divider />
|
<el-divider />
|
||||||
|
|
||||||
<div class="mb-4">自定义元素标签。例如:按钮、div、链接</div>
|
<p class="mb-4">自定义元素标签。例如:按钮、div、链接</p>
|
||||||
<el-button :size="dynamicSize" :disabled="size === 'disabled'">
|
<el-button :size="dynamicSize" :disabled="size === 'disabled'">
|
||||||
button 标签
|
button 标签
|
||||||
</el-button>
|
</el-button>
|
||||||
@@ -196,7 +196,7 @@ watch(size, val =>
|
|||||||
</el-button>
|
</el-button>
|
||||||
<el-divider />
|
<el-divider />
|
||||||
|
|
||||||
<div class="mb-4">自定义颜色</div>
|
<p class="mb-4">自定义颜色</p>
|
||||||
<el-space wrap>
|
<el-space wrap>
|
||||||
<el-button
|
<el-button
|
||||||
color="#626aef"
|
color="#626aef"
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ defineOptions({
|
|||||||
</el-link>
|
</el-link>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<h4 class="mb-4!">Element Plus 的消息提示,点击弹出提示信息</h4>
|
<h4 class="mb-4">Element Plus 的消息提示,点击弹出提示信息</h4>
|
||||||
|
|
||||||
<el-space wrap>
|
<el-space wrap>
|
||||||
<el-button
|
<el-button
|
||||||
@@ -121,7 +121,7 @@ defineOptions({
|
|||||||
|
|
||||||
<el-divider />
|
<el-divider />
|
||||||
|
|
||||||
<h4 class="mb-4!">
|
<h4 class="mb-4">
|
||||||
类似 Ant Design 风格的消息提示,点击弹出提示信息(基于 ElMessage
|
类似 Ant Design 风格的消息提示,点击弹出提示信息(基于 ElMessage
|
||||||
样式改版,不会影响 ElMessage
|
样式改版,不会影响 ElMessage
|
||||||
原本样式,使用和打包大小成本极低并适配整体暗色风格)
|
原本样式,使用和打包大小成本极低并适配整体暗色风格)
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ const format = percentage => (percentage === 100 ? "Full" : `${percentage}%`);
|
|||||||
</el-link>
|
</el-link>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<div class="mb-4">直线进度条动画</div>
|
<p class="mb-4">直线进度条动画</p>
|
||||||
<div class="w-1/4">
|
<div class="w-1/4">
|
||||||
<el-progress indeterminate :percentage="50" class="mb-4" />
|
<el-progress indeterminate :percentage="50" class="mb-4" />
|
||||||
<el-progress
|
<el-progress
|
||||||
@@ -61,7 +61,7 @@ const format = percentage => (percentage === 100 ? "Full" : `${percentage}%`);
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mb-4">进度条内显示百分比标识</div>
|
<p class="mb-4">进度条内显示百分比标识</p>
|
||||||
<div class="w-1/4">
|
<div class="w-1/4">
|
||||||
<el-progress
|
<el-progress
|
||||||
:text-inside="true"
|
:text-inside="true"
|
||||||
@@ -97,7 +97,7 @@ const format = percentage => (percentage === 100 ? "Full" : `${percentage}%`);
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mb-4">自定义内容</div>
|
<p class="mb-4">自定义内容</p>
|
||||||
<div class="w-1/4 demo-progress">
|
<div class="w-1/4 demo-progress">
|
||||||
<el-progress :percentage="50">
|
<el-progress :percentage="50">
|
||||||
<el-button text>自定义内容</el-button>
|
<el-button text>自定义内容</el-button>
|
||||||
|
|||||||
@@ -220,39 +220,39 @@ watch(size, val => (dynamicSize.value = size.value));
|
|||||||
</el-link>
|
</el-link>
|
||||||
</template>
|
</template>
|
||||||
<el-scrollbar>
|
<el-scrollbar>
|
||||||
<div class="mb-2">
|
<p class="mb-2">
|
||||||
基础用法(v-model)<span class="text-primary">
|
基础用法(v-model)<span class="text-primary">
|
||||||
{{ optionsBasis[value].label }}
|
{{ optionsBasis[value].label }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</p>
|
||||||
<Segmented v-model="value" :options="optionsBasis" :size="dynamicSize" />
|
<Segmented v-model="value" :options="optionsBasis" :size="dynamicSize" />
|
||||||
<el-divider />
|
<el-divider />
|
||||||
<div class="mb-2">tooltip 提示</div>
|
<p class="mb-2">tooltip 提示</p>
|
||||||
<Segmented :options="optionsTooltip" :size="dynamicSize" />
|
<Segmented :options="optionsTooltip" :size="dynamicSize" />
|
||||||
<el-divider />
|
<el-divider />
|
||||||
<div class="mb-2">change 事件</div>
|
<p class="mb-2">change 事件</p>
|
||||||
<Segmented
|
<Segmented
|
||||||
:options="optionsChange"
|
:options="optionsChange"
|
||||||
:size="dynamicSize"
|
:size="dynamicSize"
|
||||||
@change="onChange"
|
@change="onChange"
|
||||||
/>
|
/>
|
||||||
<el-divider />
|
<el-divider />
|
||||||
<div class="mb-2">禁用</div>
|
<p class="mb-2">禁用</p>
|
||||||
<Segmented :options="optionsDisabled" :size="dynamicSize" />
|
<Segmented :options="optionsDisabled" :size="dynamicSize" />
|
||||||
<el-divider />
|
<el-divider />
|
||||||
<div class="mb-2">全局禁用</div>
|
<p class="mb-2">全局禁用</p>
|
||||||
<Segmented :options="optionsBasis" :size="dynamicSize" disabled />
|
<Segmented :options="optionsBasis" :size="dynamicSize" disabled />
|
||||||
<el-divider />
|
<el-divider />
|
||||||
<div class="mb-2">block 属性(将宽度调整为父元素宽度)</div>
|
<p class="mb-2">block 属性(将宽度调整为父元素宽度)</p>
|
||||||
<Segmented :options="optionsBlock" block :size="dynamicSize" />
|
<Segmented :options="optionsBlock" block :size="dynamicSize" />
|
||||||
<el-divider />
|
<el-divider />
|
||||||
<div class="mb-2">可设置图标</div>
|
<p class="mb-2">可设置图标</p>
|
||||||
<Segmented :options="optionsIcon" :size="dynamicSize" />
|
<Segmented :options="optionsIcon" :size="dynamicSize" />
|
||||||
<el-divider />
|
<el-divider />
|
||||||
<div class="mb-2">只设置图标</div>
|
<p class="mb-2">只设置图标</p>
|
||||||
<Segmented :options="optionsOnlyIcon" :size="dynamicSize" />
|
<Segmented :options="optionsOnlyIcon" :size="dynamicSize" />
|
||||||
<el-divider />
|
<el-divider />
|
||||||
<div class="mb-2">自定义渲染</div>
|
<p class="mb-2">自定义渲染</p>
|
||||||
<Segmented :options="optionsLabel" :size="dynamicSize" />
|
<Segmented :options="optionsLabel" :size="dynamicSize" />
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ const selectedVal = ({ left, right }): void => {
|
|||||||
:disabled="item.disabled"
|
:disabled="item.disabled"
|
||||||
@selectedVal="selectedVal"
|
@selectedVal="selectedVal"
|
||||||
/>
|
/>
|
||||||
<h4 v-if="!item.disabled" class="mt-3!">选中范围:{{ selectRange }}</h4>
|
<h4 v-if="!item.disabled" class="mt-3">选中范围:{{ selectRange }}</h4>
|
||||||
</el-card>
|
</el-card>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -29,28 +29,28 @@ defineOptions({
|
|||||||
</el-link>
|
</el-link>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<div class="mb-2">基础用法</div>
|
<p class="mb-2">基础用法</p>
|
||||||
<Base />
|
<Base />
|
||||||
<el-divider />
|
<el-divider />
|
||||||
<div class="mb-2">离散值</div>
|
<p class="mb-2">离散值</p>
|
||||||
<Step />
|
<Step />
|
||||||
<el-divider />
|
<el-divider />
|
||||||
<div class="mb-2">带有输入框的滑块</div>
|
<p class="mb-2">带有输入框的滑块</p>
|
||||||
<Input />
|
<Input />
|
||||||
<el-divider />
|
<el-divider />
|
||||||
<div class="mb-2">不同尺寸</div>
|
<p class="mb-2">不同尺寸</p>
|
||||||
<Size />
|
<Size />
|
||||||
<el-divider />
|
<el-divider />
|
||||||
<div class="mb-2">位置</div>
|
<p class="mb-2">位置</p>
|
||||||
<Placement />
|
<Placement />
|
||||||
<el-divider />
|
<el-divider />
|
||||||
<div class="mb-2">范围选择</div>
|
<p class="mb-2">范围选择</p>
|
||||||
<Range />
|
<Range />
|
||||||
<el-divider />
|
<el-divider />
|
||||||
<div class="mb-2">垂直模式</div>
|
<p class="mb-2">垂直模式</p>
|
||||||
<Vertical />
|
<Vertical />
|
||||||
<el-divider />
|
<el-divider />
|
||||||
<div class="mb-2">显示标记</div>
|
<p class="mb-2">显示标记</p>
|
||||||
<Marks class="mb-6" />
|
<Marks class="mb-6" />
|
||||||
</el-card>
|
</el-card>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ function reset() {
|
|||||||
format="HH:mm:ss"
|
format="HH:mm:ss"
|
||||||
:value="value1"
|
:value="value1"
|
||||||
/>
|
/>
|
||||||
<el-button class="mt-2!" type="primary" text bg @click="reset">
|
<el-button class="mt-2" type="primary" text bg @click="reset">
|
||||||
重置
|
重置
|
||||||
</el-button>
|
</el-button>
|
||||||
</re-col>
|
</re-col>
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ const swiperExample: any[] = [
|
|||||||
</template>
|
</template>
|
||||||
<el-row :gutter="10">
|
<el-row :gutter="10">
|
||||||
<el-col v-for="item in swiperExample" :key="item.id" :span="12">
|
<el-col v-for="item in swiperExample" :key="item.id" :span="12">
|
||||||
<h6 class="py-[16px]! text-base">{{ item.label }}</h6>
|
<h6 class="py-[16px] text-base">{{ item.label }}</h6>
|
||||||
<swiper v-bind="item.options">
|
<swiper v-bind="item.options">
|
||||||
<swiper-slide v-for="i in 5" :key="i">
|
<swiper-slide v-for="i in 5" :key="i">
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ const handleInputConfirm = () => {
|
|||||||
</el-link>
|
</el-link>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<div class="mb-2">基础按钮</div>
|
<p class="mb-2">基础按钮</p>
|
||||||
<el-radio-group v-model="baseTag" class="mb-3">
|
<el-radio-group v-model="baseTag" class="mb-3">
|
||||||
<el-radio label="dark" value="dark" />
|
<el-radio label="dark" value="dark" />
|
||||||
<el-radio label="light" value="light" />
|
<el-radio label="light" value="light" />
|
||||||
@@ -107,7 +107,7 @@ const handleInputConfirm = () => {
|
|||||||
v-model="checked1"
|
v-model="checked1"
|
||||||
label="可移除"
|
label="可移除"
|
||||||
/>
|
/>
|
||||||
<el-button v-else size="small" text bg class="mr-6!" @click="onReset">
|
<el-button v-else size="small" text bg class="mr-6" @click="onReset">
|
||||||
重置
|
重置
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
@@ -115,7 +115,7 @@ const handleInputConfirm = () => {
|
|||||||
size="small"
|
size="small"
|
||||||
text
|
text
|
||||||
bg
|
bg
|
||||||
class="mr-6! ml-4!"
|
class="mr-6 ml-4"
|
||||||
@click="tagList = []"
|
@click="tagList = []"
|
||||||
>
|
>
|
||||||
移除全部
|
移除全部
|
||||||
@@ -140,7 +140,7 @@ const handleInputConfirm = () => {
|
|||||||
</el-space>
|
</el-space>
|
||||||
<el-divider />
|
<el-divider />
|
||||||
|
|
||||||
<div class="mb-2">动态编辑标签</div>
|
<p class="mb-2">动态编辑标签</p>
|
||||||
<el-tag
|
<el-tag
|
||||||
v-for="tag in dynamicTags"
|
v-for="tag in dynamicTags"
|
||||||
:key="tag"
|
:key="tag"
|
||||||
@@ -163,7 +163,7 @@ const handleInputConfirm = () => {
|
|||||||
/>
|
/>
|
||||||
<el-button
|
<el-button
|
||||||
v-else
|
v-else
|
||||||
class="button-new-tag ml-1!"
|
class="button-new-tag ml-1"
|
||||||
size="small"
|
size="small"
|
||||||
@click="showInput"
|
@click="showInput"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ const changeTooltipContent = () => {
|
|||||||
</el-link>
|
</el-link>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<div class="mb-2">基础用法</div>
|
<p class="mb-2">基础用法</p>
|
||||||
<el-space wrap>
|
<el-space wrap>
|
||||||
<ul class="content">
|
<ul class="content">
|
||||||
<li>
|
<li>
|
||||||
@@ -64,7 +64,7 @@ const changeTooltipContent = () => {
|
|||||||
|
|
||||||
<el-divider />
|
<el-divider />
|
||||||
|
|
||||||
<div class="mb-2">自定义 Tooltip 内容</div>
|
<p class="mb-2">自定义 Tooltip 内容</p>
|
||||||
<div class="mb-2">
|
<div class="mb-2">
|
||||||
<el-button @click="changeTooltipContent">
|
<el-button @click="changeTooltipContent">
|
||||||
点击切换下方 Tooltip 内容
|
点击切换下方 Tooltip 内容
|
||||||
@@ -94,7 +94,7 @@ const changeTooltipContent = () => {
|
|||||||
</el-space>
|
</el-space>
|
||||||
|
|
||||||
<el-divider />
|
<el-divider />
|
||||||
<div class="mb-2">自定义 el-text 配置</div>
|
<p class="mb-2">自定义 el-text 配置</p>
|
||||||
<el-space wrap>
|
<el-space wrap>
|
||||||
<ul class="content">
|
<ul class="content">
|
||||||
<li>
|
<li>
|
||||||
@@ -111,7 +111,7 @@ const changeTooltipContent = () => {
|
|||||||
</el-space>
|
</el-space>
|
||||||
|
|
||||||
<el-divider />
|
<el-divider />
|
||||||
<div class="mb-2">自定义 VueTippy 配置</div>
|
<p class="mb-2">自定义 VueTippy 配置</p>
|
||||||
<el-space wrap>
|
<el-space wrap>
|
||||||
<ul class="content">
|
<ul class="content">
|
||||||
<li>
|
<li>
|
||||||
@@ -132,7 +132,7 @@ const changeTooltipContent = () => {
|
|||||||
</el-space>
|
</el-space>
|
||||||
|
|
||||||
<el-divider />
|
<el-divider />
|
||||||
<div class="mb-2">组件嵌套: 不需要省略的需设置 truncated 为 false</div>
|
<p class="mb-2">组件嵌套: 不需要省略的需设置 truncated 为 false</p>
|
||||||
<el-space wrap>
|
<el-space wrap>
|
||||||
<ul class="content">
|
<ul class="content">
|
||||||
<li>
|
<li>
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ const endTime = ref("");
|
|||||||
</el-link>
|
</el-link>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<div class="mb-2">日期和时间点</div>
|
<p class="mb-2">日期和时间点</p>
|
||||||
<el-space wrap>
|
<el-space wrap>
|
||||||
<p class="text-[15px]">鼠标滚轮进行选择</p>
|
<p class="text-[15px]">鼠标滚轮进行选择</p>
|
||||||
<el-time-picker
|
<el-time-picker
|
||||||
@@ -107,7 +107,7 @@ const endTime = ref("");
|
|||||||
</el-space>
|
</el-space>
|
||||||
<el-divider />
|
<el-divider />
|
||||||
|
|
||||||
<div class="mb-2">限制时间选择范围</div>
|
<p class="mb-2">限制时间选择范围</p>
|
||||||
<el-time-picker
|
<el-time-picker
|
||||||
v-model="value2"
|
v-model="value2"
|
||||||
class="w-[140px]!"
|
class="w-[140px]!"
|
||||||
@@ -120,7 +120,7 @@ const endTime = ref("");
|
|||||||
/>
|
/>
|
||||||
<el-divider />
|
<el-divider />
|
||||||
|
|
||||||
<div class="mb-2">任意时间范围</div>
|
<p class="mb-2">任意时间范围</p>
|
||||||
<el-time-picker
|
<el-time-picker
|
||||||
v-model="value3"
|
v-model="value3"
|
||||||
class="w-[220px]!"
|
class="w-[220px]!"
|
||||||
@@ -149,7 +149,7 @@ const endTime = ref("");
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<div class="mb-2">固定时间点</div>
|
<p class="mb-2">固定时间点</p>
|
||||||
<el-time-select
|
<el-time-select
|
||||||
v-model="value4"
|
v-model="value4"
|
||||||
placeholder="请选择时间"
|
placeholder="请选择时间"
|
||||||
@@ -161,7 +161,7 @@ const endTime = ref("");
|
|||||||
:disabled="size === 'disabled'"
|
:disabled="size === 'disabled'"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div class="mb-2 mt-4">时间格式</div>
|
<p class="mb-2 mt-4">时间格式</p>
|
||||||
<el-time-select
|
<el-time-select
|
||||||
v-model="value5"
|
v-model="value5"
|
||||||
placeholder="请选择时间"
|
placeholder="请选择时间"
|
||||||
@@ -174,7 +174,7 @@ const endTime = ref("");
|
|||||||
:disabled="size === 'disabled'"
|
:disabled="size === 'disabled'"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div class="mb-2 mt-4">固定时间范围</div>
|
<p class="mb-2 mt-4">固定时间范围</p>
|
||||||
<el-space wrap>
|
<el-space wrap>
|
||||||
<el-time-select
|
<el-time-select
|
||||||
v-model="startTime"
|
v-model="startTime"
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ const activities = [
|
|||||||
</el-timeline-item>
|
</el-timeline-item>
|
||||||
</el-timeline>
|
</el-timeline>
|
||||||
|
|
||||||
<el-timeline class="pl-40!">
|
<el-timeline class="pl-40">
|
||||||
<el-timeline-item
|
<el-timeline-item
|
||||||
v-for="(activity, index) in activities"
|
v-for="(activity, index) in activities"
|
||||||
:key="index"
|
:key="index"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { formUpload } from "@/api/mock";
|
|||||||
import { message } from "@/utils/message";
|
import { message } from "@/utils/message";
|
||||||
import { createFormData } from "@pureadmin/utils";
|
import { createFormData } from "@pureadmin/utils";
|
||||||
|
|
||||||
import UploadIcon from "~icons/ri/upload-2-line?width=26&height=26";
|
import UploadIcon from "~icons/ri/upload-2-line";
|
||||||
|
|
||||||
const formRef = ref();
|
const formRef = ref();
|
||||||
const uploadRef = ref();
|
const uploadRef = ref();
|
||||||
@@ -62,7 +62,11 @@ const resetForm = formEl => {
|
|||||||
:auto-upload="false"
|
:auto-upload="false"
|
||||||
>
|
>
|
||||||
<div class="el-upload__text">
|
<div class="el-upload__text">
|
||||||
<UploadIcon class="m-auto mb-2" />
|
<IconifyIconOffline
|
||||||
|
:icon="UploadIcon"
|
||||||
|
width="26"
|
||||||
|
class="m-auto mb-2"
|
||||||
|
/>
|
||||||
可点击或拖拽上传
|
可点击或拖拽上传
|
||||||
</div>
|
</div>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import { message } from "@/utils/message";
|
|||||||
import type { UploadFile } from "element-plus";
|
import type { UploadFile } from "element-plus";
|
||||||
import { getKeyList, extractFields, downloadByData } from "@pureadmin/utils";
|
import { getKeyList, extractFields, downloadByData } from "@pureadmin/utils";
|
||||||
|
|
||||||
import EpPlus from "~icons/ep/plus?width=30&height=30";
|
import Add from "~icons/ep/plus";
|
||||||
import Eye from "~icons/ri/eye-line";
|
import Eye from "~icons/ri/eye-line";
|
||||||
import Delete from "~icons/ri/delete-bin-7-line";
|
import Delete from "~icons/ri/delete-bin-7-line";
|
||||||
|
|
||||||
@@ -124,16 +124,16 @@ const onDownload = () => {
|
|||||||
</el-link>
|
</el-link>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<el-button class="mb-4!" text bg @click="onDownload">
|
<el-button class="mb-4" text bg @click="onDownload">
|
||||||
点击下载安全文件进行上传测试
|
点击下载安全文件进行上传测试
|
||||||
</el-button>
|
</el-button>
|
||||||
<p class="mb-4!">
|
<p class="mb-4">
|
||||||
综合示例<span class="text-[14px]">
|
综合示例<span class="text-[14px]">
|
||||||
( <span class="text-[red]">自动上传</span>
|
( <span class="text-[red]">自动上传</span>
|
||||||
、拖拽上传、拖拽排序、设置请求头、上传进度、大图预览、多选文件、最大文件数量、文件类型限制、文件大小限制、删除文件)
|
、拖拽上传、拖拽排序、设置请求头、上传进度、大图预览、多选文件、最大文件数量、文件类型限制、文件大小限制、删除文件)
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
<p v-show="fileList.length > 0" class="mb-4!">
|
<p v-show="fileList.length > 0" class="mb-4">
|
||||||
{{ imgInfos }}
|
{{ imgInfos }}
|
||||||
</p>
|
</p>
|
||||||
<el-upload
|
<el-upload
|
||||||
@@ -149,15 +149,15 @@ const onDownload = () => {
|
|||||||
:on-exceed="onExceed"
|
:on-exceed="onExceed"
|
||||||
:before-upload="onBefore"
|
:before-upload="onBefore"
|
||||||
>
|
>
|
||||||
<EpPlus class="m-auto mt-4" />
|
<IconifyIconOffline :icon="Add" class="m-auto mt-4" width="30" />
|
||||||
<template #file="{ file }">
|
<template #file="{ file }">
|
||||||
<div
|
<div
|
||||||
v-if="file.status == 'ready' || file.status == 'uploading'"
|
v-if="file.status == 'ready' || file.status == 'uploading'"
|
||||||
class="mt-[35%]! m-auto"
|
class="mt-[35%] m-auto"
|
||||||
>
|
>
|
||||||
<p class="font-medium">文件上传中</p>
|
<p class="font-medium">文件上传中</p>
|
||||||
<el-progress
|
<el-progress
|
||||||
class="mt-2!"
|
class="mt-2"
|
||||||
:stroke-width="2"
|
:stroke-width="2"
|
||||||
:text-inside="true"
|
:text-inside="true"
|
||||||
:show-text="false"
|
:show-text="false"
|
||||||
@@ -232,7 +232,7 @@ const onDownload = () => {
|
|||||||
</p>
|
</p>
|
||||||
<el-divider />
|
<el-divider />
|
||||||
|
|
||||||
<p class="my-4!">
|
<p class="mb-4 mt-4">
|
||||||
结合表单校验进行<span class="text-[red]">手动上传</span>
|
结合表单校验进行<span class="text-[red]">手动上传</span>
|
||||||
<span class="text-[14px]">
|
<span class="text-[14px]">
|
||||||
(可先打开浏览器控制台找到Network,然后填写表单内容后点击点提交观察请求变化)
|
(可先打开浏览器控制台找到Network,然后填写表单内容后点击点提交观察请求变化)
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ function randomColor() {
|
|||||||
return COLORS[getRandomNum(0, 4)];
|
return COLORS[getRandomNum(0, 4)];
|
||||||
}
|
}
|
||||||
|
|
||||||
const website = "https://wanderprints.com";
|
const website = "https://www.getphotoblanket.com";
|
||||||
|
|
||||||
export const getList = ({ page = 1, pageSize = 20 }) => {
|
export const getList = ({ page = 1, pageSize = 20 }) => {
|
||||||
const url = `${website}/products.json?page=${page}&limit=${pageSize}`;
|
const url = `${website}/products.json?page=${page}&limit=${pageSize}`;
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ onMounted(() => {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="px-4 pt-2 pb-4 border-t border-t-gray-800">
|
<div class="px-4 pt-2 pb-4 border-t border-t-gray-800">
|
||||||
<h4 class="pb-4! text-gray-50 group-hover:text-yellow-300">
|
<h4 class="pb-4 text-gray-50 group-hover:text-yellow-300">
|
||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</h4>
|
</h4>
|
||||||
<div
|
<div
|
||||||
@@ -115,7 +115,7 @@ onMounted(() => {
|
|||||||
<div class="text-gray-50">$ {{ item.price }}</div>
|
<div class="text-gray-50">$ {{ item.price }}</div>
|
||||||
<div>
|
<div>
|
||||||
<button
|
<button
|
||||||
class="px-3! rounded-full bg-red-500 text-sm text-white shadow-lg transition-all duration-300 hover:bg-red-600 border-0"
|
class="px-3 h-7 rounded-full bg-red-500 text-sm text-white shadow-lg transition-all duration-300 hover:bg-red-600"
|
||||||
@click.stop="handleDelete(item, index)"
|
@click.stop="handleDelete(item, index)"
|
||||||
>
|
>
|
||||||
删除
|
删除
|
||||||
@@ -129,7 +129,7 @@ onMounted(() => {
|
|||||||
|
|
||||||
<!-- <div class="flex justify-center py-10">
|
<!-- <div class="flex justify-center py-10">
|
||||||
<button
|
<button
|
||||||
class="px-5! py-2! rounded-full bg-gray-700 text-md text-white cursor-pointer hover:bg-gray-800 transition-all duration-300 border-0"
|
class="px-5 py-2 rounded-full bg-gray-700 text-md text-white cursor-pointer hover:bg-gray-800 transition-all duration-300"
|
||||||
@click="handleLoadMore"
|
@click="handleLoadMore"
|
||||||
>
|
>
|
||||||
加载更多
|
加载更多
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ const router = useRouter();
|
|||||||
<div class="ml-12">
|
<div class="ml-12">
|
||||||
<p
|
<p
|
||||||
v-motion
|
v-motion
|
||||||
class="font-medium text-4xl mb-4! dark:text-white"
|
class="font-medium text-4xl mb-4 dark:text-white"
|
||||||
:initial="{
|
:initial="{
|
||||||
opacity: 0,
|
opacity: 0,
|
||||||
y: 100
|
y: 100
|
||||||
@@ -32,7 +32,7 @@ const router = useRouter();
|
|||||||
</p>
|
</p>
|
||||||
<p
|
<p
|
||||||
v-motion
|
v-motion
|
||||||
class="mb-4! text-gray-500"
|
class="mb-4 text-gray-500"
|
||||||
:initial="{
|
:initial="{
|
||||||
opacity: 0,
|
opacity: 0,
|
||||||
y: 100
|
y: 100
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ const router = useRouter();
|
|||||||
<div class="ml-12">
|
<div class="ml-12">
|
||||||
<p
|
<p
|
||||||
v-motion
|
v-motion
|
||||||
class="font-medium text-4xl mb-4! dark:text-white"
|
class="font-medium text-4xl mb-4 dark:text-white"
|
||||||
:initial="{
|
:initial="{
|
||||||
opacity: 0,
|
opacity: 0,
|
||||||
y: 100
|
y: 100
|
||||||
@@ -32,7 +32,7 @@ const router = useRouter();
|
|||||||
</p>
|
</p>
|
||||||
<p
|
<p
|
||||||
v-motion
|
v-motion
|
||||||
class="mb-4! text-gray-500"
|
class="mb-4 text-gray-500"
|
||||||
:initial="{
|
:initial="{
|
||||||
opacity: 0,
|
opacity: 0,
|
||||||
y: 100
|
y: 100
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ const router = useRouter();
|
|||||||
<div class="ml-12">
|
<div class="ml-12">
|
||||||
<p
|
<p
|
||||||
v-motion
|
v-motion
|
||||||
class="font-medium text-4xl mb-4! dark:text-white"
|
class="font-medium text-4xl mb-4 dark:text-white"
|
||||||
:initial="{
|
:initial="{
|
||||||
opacity: 0,
|
opacity: 0,
|
||||||
y: 100
|
y: 100
|
||||||
@@ -32,7 +32,7 @@ const router = useRouter();
|
|||||||
</p>
|
</p>
|
||||||
<p
|
<p
|
||||||
v-motion
|
v-motion
|
||||||
class="mb-4! text-gray-500"
|
class="mb-4 text-gray-500"
|
||||||
:initial="{
|
:initial="{
|
||||||
opacity: 0,
|
opacity: 0,
|
||||||
y: 100
|
y: 100
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ const handleManageProduct = product => {
|
|||||||
<el-icon class="el-input__icon">
|
<el-icon class="el-input__icon">
|
||||||
<IconifyIconOffline
|
<IconifyIconOffline
|
||||||
v-show="searchValue.length === 0"
|
v-show="searchValue.length === 0"
|
||||||
icon="ri/search-line"
|
icon="ri:search-line"
|
||||||
/>
|
/>
|
||||||
</el-icon>
|
</el-icon>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ function onBack() {
|
|||||||
/>
|
/>
|
||||||
<el-button
|
<el-button
|
||||||
:disabled="isDisabled"
|
:disabled="isDisabled"
|
||||||
class="ml-2!"
|
class="ml-2"
|
||||||
@click="useVerifyCode().start(ruleFormRef, 'phone')"
|
@click="useVerifyCode().start(ruleFormRef, 'phone')"
|
||||||
>
|
>
|
||||||
{{
|
{{
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ const { t } = useI18n();
|
|||||||
</Motion>
|
</Motion>
|
||||||
<Motion :delay="150">
|
<Motion :delay="150">
|
||||||
<el-button
|
<el-button
|
||||||
class="w-full mt-4!"
|
class="w-full mt-4"
|
||||||
@click="useUserStoreHook().SET_CURRENTPAGE(0)"
|
@click="useUserStoreHook().SET_CURRENTPAGE(0)"
|
||||||
>
|
>
|
||||||
{{ t("login.pureBack") }}
|
{{ t("login.pureBack") }}
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ function onBack() {
|
|||||||
/>
|
/>
|
||||||
<el-button
|
<el-button
|
||||||
:disabled="isDisabled"
|
:disabled="isDisabled"
|
||||||
class="ml-2!"
|
class="ml-2"
|
||||||
@click="useVerifyCode().start(ruleFormRef, 'phone')"
|
@click="useVerifyCode().start(ruleFormRef, 'phone')"
|
||||||
>
|
>
|
||||||
{{
|
{{
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ function onBack() {
|
|||||||
/>
|
/>
|
||||||
<el-button
|
<el-button
|
||||||
:disabled="isDisabled"
|
:disabled="isDisabled"
|
||||||
class="ml-2!"
|
class="ml-2"
|
||||||
@click="useVerifyCode().start(ruleFormRef, 'phone')"
|
@click="useVerifyCode().start(ruleFormRef, 'phone')"
|
||||||
>
|
>
|
||||||
{{
|
{{
|
||||||
|
|||||||
@@ -245,8 +245,7 @@ watch(loginDay, value => {
|
|||||||
width: loginDay < 10 ? '10px' : '16px',
|
width: loginDay < 10 ? '10px' : '16px',
|
||||||
outline: 'none',
|
outline: 'none',
|
||||||
background: 'none',
|
background: 'none',
|
||||||
appearance: 'none',
|
appearance: 'none'
|
||||||
border: 'none'
|
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<option value="1">1</option>
|
<option value="1">1</option>
|
||||||
@@ -273,7 +272,7 @@ watch(loginDay, value => {
|
|||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-button
|
<el-button
|
||||||
class="w-full mt-4!"
|
class="w-full mt-4"
|
||||||
size="default"
|
size="default"
|
||||||
type="primary"
|
type="primary"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
@@ -291,7 +290,7 @@ watch(loginDay, value => {
|
|||||||
<el-button
|
<el-button
|
||||||
v-for="(item, index) in operates"
|
v-for="(item, index) in operates"
|
||||||
:key="index"
|
:key="index"
|
||||||
class="w-full mt-4!"
|
class="w-full mt-4"
|
||||||
size="default"
|
size="default"
|
||||||
@click="useUserStoreHook().SET_CURRENTPAGE(index + 1)"
|
@click="useUserStoreHook().SET_CURRENTPAGE(index + 1)"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ sayHello();
|
|||||||
代码位置 src/views/markdown
|
代码位置 src/views/markdown
|
||||||
</el-link>
|
</el-link>
|
||||||
</template>
|
</template>
|
||||||
<h1 class="mb-2!">
|
<h1 class="mb-2">
|
||||||
双向绑定:<span class="text-red-500">{{ text }}</span>
|
双向绑定:<span class="text-red-500">{{ text }}</span>
|
||||||
</h1>
|
</h1>
|
||||||
<Vditor
|
<Vditor
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ const {
|
|||||||
ref="formRef"
|
ref="formRef"
|
||||||
:inline="true"
|
:inline="true"
|
||||||
:model="form"
|
:model="form"
|
||||||
class="search-form bg-bg_color w-full pl-8 pt-[12px] overflow-auto"
|
class="search-form bg-bg_color w-99/100 pl-8 pt-[12px] overflow-auto"
|
||||||
>
|
>
|
||||||
<el-form-item label="用户名" prop="username">
|
<el-form-item label="用户名" prop="username">
|
||||||
<el-input
|
<el-input
|
||||||
@@ -118,7 +118,7 @@ const {
|
|||||||
</div>
|
</div>
|
||||||
<el-popconfirm title="是否确认删除?" @confirm="onbatchDel">
|
<el-popconfirm title="是否确认删除?" @confirm="onbatchDel">
|
||||||
<template #reference>
|
<template #reference>
|
||||||
<el-button type="danger" text class="mr-1!"> 批量删除 </el-button>
|
<el-button type="danger" text class="mr-1"> 批量删除 </el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-popconfirm>
|
</el-popconfirm>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ const {
|
|||||||
ref="formRef"
|
ref="formRef"
|
||||||
:inline="true"
|
:inline="true"
|
||||||
:model="form"
|
:model="form"
|
||||||
class="search-form bg-bg_color w-full pl-8 pt-[12px] overflow-auto"
|
class="search-form bg-bg_color w-99/100 pl-8 pt-[12px] overflow-auto"
|
||||||
>
|
>
|
||||||
<el-form-item label="所属模块" prop="module">
|
<el-form-item label="所属模块" prop="module">
|
||||||
<el-input
|
<el-input
|
||||||
@@ -118,7 +118,7 @@ const {
|
|||||||
</div>
|
</div>
|
||||||
<el-popconfirm title="是否确认删除?" @confirm="onbatchDel">
|
<el-popconfirm title="是否确认删除?" @confirm="onbatchDel">
|
||||||
<template #reference>
|
<template #reference>
|
||||||
<el-button type="danger" text class="mr-1!"> 批量删除 </el-button>
|
<el-button type="danger" text class="mr-1"> 批量删除 </el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-popconfirm>
|
</el-popconfirm>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ const {
|
|||||||
ref="formRef"
|
ref="formRef"
|
||||||
:inline="true"
|
:inline="true"
|
||||||
:model="form"
|
:model="form"
|
||||||
class="search-form bg-bg_color w-full pl-8 pt-[12px] overflow-auto"
|
class="search-form bg-bg_color w-99/100 pl-8 pt-[12px] overflow-auto"
|
||||||
>
|
>
|
||||||
<el-form-item label="所属模块" prop="module">
|
<el-form-item label="所属模块" prop="module">
|
||||||
<el-input
|
<el-input
|
||||||
@@ -110,7 +110,7 @@ const {
|
|||||||
</div>
|
</div>
|
||||||
<el-popconfirm title="是否确认删除?" @confirm="onbatchDel">
|
<el-popconfirm title="是否确认删除?" @confirm="onbatchDel">
|
||||||
<template #reference>
|
<template #reference>
|
||||||
<el-button type="danger" text class="mr-1!"> 批量删除 </el-button>
|
<el-button type="danger" text class="mr-1"> 批量删除 </el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-popconfirm>
|
</el-popconfirm>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ const {
|
|||||||
ref="formRef"
|
ref="formRef"
|
||||||
:inline="true"
|
:inline="true"
|
||||||
:model="form"
|
:model="form"
|
||||||
class="search-form bg-bg_color w-full pl-8 pt-[12px] overflow-auto"
|
class="search-form bg-bg_color w-99/100 pl-8 pt-[12px] overflow-auto"
|
||||||
>
|
>
|
||||||
<el-form-item label="用户名" prop="username">
|
<el-form-item label="用户名" prop="username">
|
||||||
<el-input
|
<el-input
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ defineOptions({
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<p class="mb-2!">当前拥有的code列表:{{ getAuths() }}</p>
|
<p class="mb-2">当前拥有的code列表:{{ getAuths() }}</p>
|
||||||
|
|
||||||
<el-card shadow="never" class="mb-2">
|
<el-card shadow="never" class="mb-2">
|
||||||
<template #header>
|
<template #header>
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ defineOptions({
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<p class="mb-2!">当前拥有的code列表:{{ permissions }}</p>
|
<p class="mb-2">当前拥有的code列表:{{ permissions }}</p>
|
||||||
<p v-show="permissions?.[0] === '*:*:*'" class="mb-2!">
|
<p v-show="permissions?.[0] === '*:*:*'" class="mb-2">
|
||||||
*:*:* 代表拥有全部按钮级别权限
|
*:*:* 代表拥有全部按钮级别权限
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ function onChange() {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<p class="mb-2!">
|
<p class="mb-2">
|
||||||
模拟后台根据不同角色返回对应路由,观察左侧菜单变化(管理员角色可查看系统管理菜单、普通角色不可查看系统管理菜单)
|
模拟后台根据不同角色返回对应路由,观察左侧菜单变化(管理员角色可查看系统管理菜单、普通角色不可查看系统管理菜单)
|
||||||
</p>
|
</p>
|
||||||
<el-card shadow="never" :style="elStyle">
|
<el-card shadow="never" :style="elStyle">
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ function onFullscreen() {
|
|||||||
ref="formRef"
|
ref="formRef"
|
||||||
:inline="true"
|
:inline="true"
|
||||||
:model="form"
|
:model="form"
|
||||||
class="search-form bg-bg_color w-full pl-8 pt-[12px] overflow-auto"
|
class="search-form bg-bg_color w-99/100 pl-8 pt-[12px] overflow-auto"
|
||||||
>
|
>
|
||||||
<el-form-item label="部门名称:" prop="name">
|
<el-form-item label="部门名称:" prop="name">
|
||||||
<el-input
|
<el-input
|
||||||
@@ -63,7 +63,7 @@ function onFullscreen() {
|
|||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
:icon="useRenderIcon('ri/search-line')"
|
:icon="useRenderIcon('ri:search-line')"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
@click="onSearch"
|
@click="onSearch"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ function onFullscreen() {
|
|||||||
ref="formRef"
|
ref="formRef"
|
||||||
:inline="true"
|
:inline="true"
|
||||||
:model="form"
|
:model="form"
|
||||||
class="search-form bg-bg_color w-full pl-8 pt-[12px] overflow-auto"
|
class="search-form bg-bg_color w-99/100 pl-8 pt-[12px] overflow-auto"
|
||||||
>
|
>
|
||||||
<el-form-item label="菜单名称:" prop="title">
|
<el-form-item label="菜单名称:" prop="title">
|
||||||
<el-input
|
<el-input
|
||||||
@@ -53,7 +53,7 @@ function onFullscreen() {
|
|||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
:icon="useRenderIcon('ri/search-line')"
|
:icon="useRenderIcon('ri:search-line')"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
@click="onSearch"
|
@click="onSearch"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ onMounted(() => {
|
|||||||
ref="formRef"
|
ref="formRef"
|
||||||
:inline="true"
|
:inline="true"
|
||||||
:model="form"
|
:model="form"
|
||||||
class="search-form bg-bg_color w-full pl-8 pt-[12px] overflow-auto"
|
class="search-form bg-bg_color w-99/100 pl-8 pt-[12px] overflow-auto"
|
||||||
>
|
>
|
||||||
<el-form-item label="角色名称:" prop="name">
|
<el-form-item label="角色名称:" prop="name">
|
||||||
<el-input
|
<el-input
|
||||||
@@ -128,7 +128,7 @@ onMounted(() => {
|
|||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
:icon="useRenderIcon('ri/search-line')"
|
:icon="useRenderIcon('ri:search-line')"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
@click="onSearch"
|
@click="onSearch"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ const {
|
|||||||
ref="formRef"
|
ref="formRef"
|
||||||
:inline="true"
|
:inline="true"
|
||||||
:model="form"
|
:model="form"
|
||||||
class="search-form bg-bg_color w-full pl-8 pt-[12px] overflow-auto"
|
class="search-form bg-bg_color w-99/100 pl-8 pt-[12px] overflow-auto"
|
||||||
>
|
>
|
||||||
<el-form-item label="用户名称:" prop="username">
|
<el-form-item label="用户名称:" prop="username">
|
||||||
<el-input
|
<el-input
|
||||||
@@ -98,7 +98,7 @@ const {
|
|||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
:icon="useRenderIcon('ri/search-line')"
|
:icon="useRenderIcon('ri:search-line')"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
@click="onSearch"
|
@click="onSearch"
|
||||||
>
|
>
|
||||||
@@ -143,7 +143,7 @@ const {
|
|||||||
</div>
|
</div>
|
||||||
<el-popconfirm title="是否确认删除?" @confirm="onbatchDel">
|
<el-popconfirm title="是否确认删除?" @confirm="onbatchDel">
|
||||||
<template #reference>
|
<template #reference>
|
||||||
<el-button type="danger" text class="mr-1!">
|
<el-button type="danger" text class="mr-1">
|
||||||
批量删除
|
批量删除
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
@@ -198,7 +198,7 @@ const {
|
|||||||
</el-popconfirm>
|
</el-popconfirm>
|
||||||
<el-dropdown>
|
<el-dropdown>
|
||||||
<el-button
|
<el-button
|
||||||
class="ml-3! mt-[2px]!"
|
class="ml-3 mt-[2px]"
|
||||||
link
|
link
|
||||||
type="primary"
|
type="primary"
|
||||||
:size="size"
|
:size="size"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { ref, computed, watch, getCurrentInstance } from "vue";
|
|||||||
|
|
||||||
import Dept from "~icons/ri/git-branch-line";
|
import Dept from "~icons/ri/git-branch-line";
|
||||||
// import Reset from "~icons/ri/restart-line";
|
// import Reset from "~icons/ri/restart-line";
|
||||||
import More2Fill from "~icons/ri/more-2-fill?width=18&height=18";
|
import More2Fill from "~icons/ri/more-2-fill";
|
||||||
import OfficeBuilding from "~icons/ep/office-building";
|
import OfficeBuilding from "~icons/ep/office-building";
|
||||||
import LocationCompany from "~icons/ep/add-location";
|
import LocationCompany from "~icons/ep/add-location";
|
||||||
import ExpandIcon from "./svg/expand.svg?component";
|
import ExpandIcon from "./svg/expand.svg?component";
|
||||||
@@ -111,13 +111,17 @@ defineExpose({ onTreeReset });
|
|||||||
<el-icon class="el-input__icon">
|
<el-icon class="el-input__icon">
|
||||||
<IconifyIconOffline
|
<IconifyIconOffline
|
||||||
v-show="searchValue.length === 0"
|
v-show="searchValue.length === 0"
|
||||||
icon="ri/search-line"
|
icon="ri:search-line"
|
||||||
/>
|
/>
|
||||||
</el-icon>
|
</el-icon>
|
||||||
</template>
|
</template>
|
||||||
</el-input>
|
</el-input>
|
||||||
<el-dropdown :hide-on-click="false">
|
<el-dropdown :hide-on-click="false">
|
||||||
<More2Fill class="w-[28px] cursor-pointer outline-hidden" />
|
<IconifyIconOffline
|
||||||
|
class="w-[28px] cursor-pointer"
|
||||||
|
width="18px"
|
||||||
|
:icon="More2Fill"
|
||||||
|
/>
|
||||||
<template #dropdown>
|
<template #dropdown>
|
||||||
<el-dropdown-menu>
|
<el-dropdown-menu>
|
||||||
<el-dropdown-item>
|
<el-dropdown-item>
|
||||||
|
|||||||
@@ -419,7 +419,7 @@ export function useUser(tableRef: Ref, treeRef: Ref) {
|
|||||||
/>
|
/>
|
||||||
</ElFormItem>
|
</ElFormItem>
|
||||||
</ElForm>
|
</ElForm>
|
||||||
<div class="my-4 flex">
|
<div class="mt-4 flex">
|
||||||
{pwdProgress.map(({ color, text }, idx) => (
|
{pwdProgress.map(({ color, text }, idx) => (
|
||||||
<div
|
<div
|
||||||
class="w-[19vw]"
|
class="w-[19vw]"
|
||||||
|
|||||||
@@ -77,6 +77,8 @@ const onAddItem = () => {
|
|||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</pure-table>
|
</pure-table>
|
||||||
<el-button class="w-full mt-4!" @click="onAddItem"> Add Item </el-button>
|
<el-button class="mt-4" style="width: 100%" @click="onAddItem">
|
||||||
|
Add Item
|
||||||
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ const { columns, dataList, onAdd, onDel } = useColumns();
|
|||||||
<template #append>
|
<template #append>
|
||||||
<el-button
|
<el-button
|
||||||
plain
|
plain
|
||||||
class="w-full my-2!"
|
class="w-full my-2"
|
||||||
:icon="useRenderIcon(AddFill)"
|
:icon="useRenderIcon(AddFill)"
|
||||||
@click="onAdd"
|
@click="onAdd"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ const { columns, dataList, exportExcel } = useColumns();
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<el-button type="primary" class="mb-[20px]!" @click="exportExcel">
|
<el-button type="primary" class="mb-[20px]" @click="exportExcel">
|
||||||
导出
|
导出
|
||||||
</el-button>
|
</el-button>
|
||||||
<pure-table row-key="id" border :data="dataList" :columns="columns" />
|
<pure-table row-key="id" border :data="dataList" :columns="columns" />
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ const { columns, dataList, onChange } = useColumns();
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<el-button type="primary" class="mb-[20px]!" @click="onChange">
|
<el-button type="primary" class="mb-[20px]" @click="onChange">
|
||||||
切换表头
|
切换表头
|
||||||
</el-button>
|
</el-button>
|
||||||
<pure-table
|
<pure-table
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ const { columns, dataList, print, cellStyle, rowStyle, headerCellStyle } =
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<el-button type="primary" class="mb-[20px]!" @click="print">
|
<el-button type="primary" class="mb-[20px]" @click="print">
|
||||||
打印
|
打印
|
||||||
</el-button>
|
</el-button>
|
||||||
<!-- rowHoverBgColor="transparent" 鼠标经过行时,去掉行的背景色 -->
|
<!-- rowHoverBgColor="transparent" 鼠标经过行时,去掉行的背景色 -->
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ export function useColumns(selectRef: Ref, formRef: Ref, tableRef: Ref) {
|
|||||||
const onSearch = () => {
|
const onSearch = () => {
|
||||||
tableData.value = cloneTableData;
|
tableData.value = cloneTableData;
|
||||||
if (!isAllEmpty(searchForm.sexValue)) {
|
if (!isAllEmpty(searchForm.sexValue)) {
|
||||||
const sex = sexOptions
|
let sex = sexOptions
|
||||||
.map(sex => sex.value === Number(searchForm.sexValue) && sex.label)
|
.map(sex => sex.value === Number(searchForm.sexValue) && sex.label)
|
||||||
.filter(Boolean)[0];
|
.filter(Boolean)[0];
|
||||||
tableData.value = tableData.value.filter(data => data.sex === sex);
|
tableData.value = tableData.value.filter(data => data.sex === sex);
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ function onCloseTags() {
|
|||||||
<el-button
|
<el-button
|
||||||
v-for="index in 6"
|
v-for="index in 6"
|
||||||
:key="index"
|
:key="index"
|
||||||
class="m-2!"
|
class="m-2"
|
||||||
@click="toDetail({ id: index }, 'query')"
|
@click="toDetail({ id: index }, 'query')"
|
||||||
>
|
>
|
||||||
打开{{ index }}详情页
|
打开{{ index }}详情页
|
||||||
@@ -83,7 +83,7 @@ function onCloseTags() {
|
|||||||
<el-button
|
<el-button
|
||||||
v-for="index in 6"
|
v-for="index in 6"
|
||||||
:key="index"
|
:key="index"
|
||||||
class="m-2!"
|
class="m-2"
|
||||||
@click="toDetail({ id: index }, 'params')"
|
@click="toDetail({ id: index }, 'params')"
|
||||||
>
|
>
|
||||||
打开{{ index }}详情页
|
打开{{ index }}详情页
|
||||||
@@ -112,7 +112,7 @@ function onCloseTags() {
|
|||||||
<span>{{ transformI18n(data.meta.title) }}</span>
|
<span>{{ transformI18n(data.meta.title) }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-tree-select>
|
</el-tree-select>
|
||||||
<el-button class="m-2!" @click="onCloseTags">关闭标签</el-button>
|
<el-button class="m-2" @click="onCloseTags">关闭标签</el-button>
|
||||||
|
|
||||||
<el-divider />
|
<el-divider />
|
||||||
<el-button @click="router.push({ name: 'Menu1-2-2' })">
|
<el-button @click="router.push({ name: 'Menu1-2-2' })">
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { toRef } from "vue";
|
import { toRef } from "vue";
|
||||||
import { Handle, useNodeConnections } from "@vue-flow/core";
|
import { Handle, useHandleConnections } from "@vue-flow/core";
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
data: {
|
data: {
|
||||||
@@ -15,12 +15,12 @@ const props = defineProps({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const sourceConnections = useNodeConnections({
|
const sourceConnections = useHandleConnections({
|
||||||
handleType: "target"
|
type: "target"
|
||||||
});
|
});
|
||||||
|
|
||||||
const targetConnections = useNodeConnections({
|
const targetConnections = useHandleConnections({
|
||||||
handleType: "source"
|
type: "source"
|
||||||
});
|
});
|
||||||
|
|
||||||
const isSender = toRef(() => sourceConnections.value.length <= 0);
|
const isSender = toRef(() => sourceConnections.value.length <= 0);
|
||||||
|
|||||||
@@ -65,7 +65,6 @@ const optionsBasis: Array<OptionsType> = [
|
|||||||
:icon="item.icon"
|
:icon="item.icon"
|
||||||
:color="item.color"
|
:color="item.color"
|
||||||
width="18"
|
width="18"
|
||||||
height="18"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
2
types/index.d.ts
vendored
2
types/index.d.ts
vendored
@@ -75,6 +75,8 @@ interface ComponentElRef<T extends HTMLElement = HTMLDivElement> {
|
|||||||
$el: T;
|
$el: T;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
function parseInt(s: string | number, radix?: number): number;
|
function parseInt(s: string | number, radix?: number): number;
|
||||||
|
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
function parseFloat(string: string | number): number;
|
function parseFloat(string: string | number): number;
|
||||||
|
|||||||
2
types/router.d.ts
vendored
2
types/router.d.ts
vendored
@@ -104,6 +104,6 @@ declare global {
|
|||||||
|
|
||||||
// https://router.vuejs.org/zh/guide/advanced/meta.html#typescript
|
// https://router.vuejs.org/zh/guide/advanced/meta.html#typescript
|
||||||
declare module "vue-router" {
|
declare module "vue-router" {
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
||||||
interface RouteMeta extends CustomizeRouteMeta {}
|
interface RouteMeta extends CustomizeRouteMeta {}
|
||||||
}
|
}
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user