Skip to content

Commit 07c2567

Browse files
committed
2 parents 8efcba4 + 74b0dfd commit 07c2567

File tree

78 files changed

+12329
-12821
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+12329
-12821
lines changed

.eslintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ module.exports = defineConfig({
5555
'space-before-function-paren': 'off',
5656

5757
'vue/attributes-order': 'off',
58+
'vue/v-on-event-hyphenation': 'off',
59+
'vue/multi-word-component-names': 'off',
5860
'vue/one-component-per-file': 'off',
5961
'vue/html-closing-bracket-newline': 'off',
6062
'vue/max-attributes-per-line': 'off',

.husky/pre-commit

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,3 @@
66

77
# Format and submit code according to lintstagedrc.js configuration
88
npm run lint:lint-staged
9-
10-
npm run lint:pretty

.vscode/settings.json

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,8 @@
66
//===========================================
77
//============= Editor ======================
88
//===========================================
9-
"explorer.openEditors.visible": 0,
109
"editor.tabSize": 2,
1110
"editor.defaultFormatter": "esbenp.prettier-vscode",
12-
"diffEditor.ignoreTrimWhitespace": false,
13-
//===========================================
14-
//============= Other =======================
15-
//===========================================
16-
"breadcrumbs.enabled": true,
17-
"open-in-browser.default": "chrome",
1811
//===========================================
1912
//============= files =======================
2013
//===========================================
@@ -69,15 +62,9 @@
6962
},
7063
"stylelint.enable": true,
7164
"stylelint.packageManager": "yarn",
72-
"liveServer.settings.donotShowInfoMsg": true,
73-
"telemetry.enableCrashReporter": false,
74-
"workbench.settings.enableNaturalLanguageSearch": false,
7565
"path-intellisense.mappings": {
7666
"/@/": "${workspaceRoot}/src"
7767
},
78-
"prettier.requireConfig": true,
79-
"typescript.updateImportsOnFileMove.enabled": "always",
80-
"workbench.sideBar.location": "left",
8168
"[javascriptreact]": {
8269
"editor.defaultFormatter": "esbenp.prettier-vscode"
8370
},

CHANGELOG.en_US.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,37 @@
1+
## 2.8.0(2021-11.03)
2+
3+
### Upgrade Instructions
4+
5+
- Package manager changed from `yarn` to `pnpm`
6+
- Delete `node_modules` and `yarn.lock`, install `pnpm` globally
7+
- Execute `pnpm install`
8+
9+
### ✨ Features
10+
11+
- **Others**
12+
- The `VITE_PROXY` configuration in the `.env` file supports single quotes
13+
- Remove warnings during build
14+
15+
### 🐛 Bug Fixes
16+
17+
- **BasicTable**
18+
- Fix the issue that editable cells cannot be submitted in some cases
19+
- Fix the problem that the `inset` attribute does not work
20+
- Fix the problem that the performance of `useTable` and `reload` method `await` of `BasicTable` instance are inconsistent
21+
- Fix the issue that `clickToRowSelect` would ignore the disabled state of the row selection box
22+
- Fix the problem that the page of `BasicTable` will be reset in some cases
23+
- Modify the `deleteTableDataRecord` method
24+
- **BasicModal**
25+
- Fixed the problem that `Modal` could not be closed even when clicking on the mask and pressing the `Esc` key
26+
- Fixed the issue that clicking the close button and the blank area next to the maximize button would also cause `Modal` to close
27+
- **BasicTree** Fix the problem that the node slot does not work
28+
- **CodeEditor** Fix the problem that may cause `Build` failure
29+
- **BasicForm** Fix the problem that the content width of the custom FormItem component may be out of range
30+
- **ApiTreeSelect** Fix the problem that the change of `params` failed to trigger the re-request of api data
31+
- **Others** -Fixed an issue where multiple tabs would not jump to routing when closing tabs in some cases
32+
- Fix the issue that some components may cause abnormal hot update
33+
- Fix the problem that some sub-components of `antdv` will be reported in the build process when directly `import` part of the `antdv`, such as: TabPane, RadioGroup
34+
135
## 2.7.2(2021-09-14)
236

337
### ✨ Features

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## [2.7.2](https://github.com/anncwb/vue-vben-admin/compare/v2.7.1...v2.7.2) (2021-09-13)
1+
## [2.8.0](https://github.com/anncwb/vue-vben-admin/compare/v2.7.2...v2.8.0) (2021-11-03)
22

33
### Bug Fixes
44

CHANGELOG.zh_CN.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## 2.8.0(2021-11.03)
2+
3+
### 升级说明
4+
5+
- 包管理器由`yarn`改为 `pnpm`
6+
- 删除`node_modules``yarn.lock`,全局安装`pnpm`
7+
- 执行`pnpm install`
8+
19
### ✨ Features
210

311
- **其它**

build/vite/plugin/styleImport.ts

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,15 @@ export function configStyleImportPlugin(isBuild: boolean) {
1414
libraryName: 'ant-design-vue',
1515
esModule: true,
1616
resolveStyle: (name) => {
17-
// 这里是“子组件”列表,无需额外引入样式文件
17+
// 这里是无需额外引入样式文件的“子组件”列表
1818
const ignoreList = [
19-
'typography-text',
20-
'typography-title',
21-
'typography-paragraph',
22-
'typography-link',
2319
'anchor-link',
2420
'sub-menu',
2521
'menu-item',
2622
'menu-item-group',
27-
'dropdown-button',
2823
'breadcrumb-item',
2924
'breadcrumb-separator',
30-
'input-password',
31-
'input-search',
32-
'input-group',
3325
'form-item',
34-
'radio-group',
35-
'checkbox-group',
36-
'layout-sider',
37-
'layout-content',
38-
'layout-footer',
39-
'layout-header',
4026
'step',
4127
'select-option',
4228
'select-opt-group',
@@ -59,7 +45,31 @@ export function configStyleImportPlugin(isBuild: boolean) {
5945
'skeleton-image',
6046
'skeleton-button',
6147
];
62-
return ignoreList.includes(name) ? '' : `ant-design-vue/es/${name}/style/index`;
48+
// 这里是需要额外引入样式的子组件列表
49+
// 单独引入子组件时需引入组件样式,否则会在打包后导致子组件样式丢失
50+
const replaceList = {
51+
'typography-text': 'typography',
52+
'typography-title': 'typography',
53+
'typography-paragraph': 'typography',
54+
'typography-link': 'typography',
55+
'dropdown-button': 'dropdown',
56+
'input-password': 'input',
57+
'input-search': 'input',
58+
'input-group': 'input',
59+
'radio-group': 'radio',
60+
'checkbox-group': 'checkbox',
61+
'layout-sider': 'layout',
62+
'layout-content': 'layout',
63+
'layout-footer': 'layout',
64+
'layout-header': 'layout',
65+
'month-picker': 'date-picker',
66+
};
67+
68+
return ignoreList.includes(name)
69+
? ''
70+
: replaceList.hasOwnProperty(name)
71+
? `ant-design-vue/es/${replaceList[name]}/style/index`
72+
: `ant-design-vue/es/${name}/style/index`;
6373
},
6474
},
6575
],

commitlint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module.exports = {
77
'header-max-length': [2, 'always', 108],
88
'subject-empty': [2, 'never'],
99
'type-empty': [2, 'never'],
10+
'subject-case': [0],
1011
'type-enum': [
1112
2,
1213
'always',

mock/demo/select-demo.ts

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)