Commit db0bfc886314b193e7cb86a80b6c13b2743aa652
1 parent
6d9585b4
fix(table): fix table type error
Showing
6 changed files
with
9 additions
and
62 deletions
.vscode/settings.json
@@ -136,6 +136,7 @@ | @@ -136,6 +136,7 @@ | ||
136 | "vetur.format.defaultFormatter.scss": "prettier", // 使用js-beautify-html格式化 | 136 | "vetur.format.defaultFormatter.scss": "prettier", // 使用js-beautify-html格式化 |
137 | "vetur.format.defaultFormatter.css": "prettier", // 使用js-beautify-html格式化 | 137 | "vetur.format.defaultFormatter.css": "prettier", // 使用js-beautify-html格式化 |
138 | // "vetur.format.defaultFormatter.html": "prettyhtml", | 138 | // "vetur.format.defaultFormatter.html": "prettyhtml", |
139 | + "vetur.format.defaultFormatter.ts": "prettier-tslint", | ||
139 | "vetur.format.defaultFormatter.js": "prettier", | 140 | "vetur.format.defaultFormatter.js": "prettier", |
140 | // "vetur.useWorkspaceDependencies": true, | 141 | // "vetur.useWorkspaceDependencies": true, |
141 | "vetur.format.defaultFormatterOptions": { | 142 | "vetur.format.defaultFormatterOptions": { |
@@ -150,22 +151,6 @@ | @@ -150,22 +151,6 @@ | ||
150 | "singleQuote": true // 使用单引号, 默认false(在jsx中配置无效, 默认都是双引号) | 151 | "singleQuote": true // 使用单引号, 默认false(在jsx中配置无效, 默认都是双引号) |
151 | } | 152 | } |
152 | }, | 153 | }, |
153 | - // =========================================== | ||
154 | - // ============= Material Icon Theme ========= | ||
155 | - // =========================================== | ||
156 | - "workbench.iconTheme": "material-icon-theme", // 主题色 | ||
157 | - // =========================================== | ||
158 | - // ============= stylus Supremacy ============ | ||
159 | - // =========================================== | ||
160 | - "stylusSupremacy.insertColons": false, // 是否插入冒号 | ||
161 | - "stylusSupremacy.insertSemicolons": false, // 是否插入分号 | ||
162 | - "stylusSupremacy.insertBraces": false, // 是否插入大括号 | ||
163 | - //=========================================== | ||
164 | - //============= koroFileHeaders =============== | ||
165 | - //=========================================== | ||
166 | - "fileheader.configObj": { | ||
167 | - "autoAdd": false // 将该选项设置为true即可开启 | ||
168 | - }, | ||
169 | // 函数注释 | 154 | // 函数注释 |
170 | //=========================================== | 155 | //=========================================== |
171 | //============= Code Runner ================= | 156 | //============= Code Runner ================= |
@@ -186,40 +171,7 @@ | @@ -186,40 +171,7 @@ | ||
186 | "prettier.requireConfig": true, | 171 | "prettier.requireConfig": true, |
187 | "typescript.updateImportsOnFileMove.enabled": "always", | 172 | "typescript.updateImportsOnFileMove.enabled": "always", |
188 | "workbench.sideBar.location": "left", | 173 | "workbench.sideBar.location": "left", |
189 | - "cSpell.enabledLanguageIds": [ | ||
190 | - "asciidoc", | ||
191 | - "c", | ||
192 | - "cpp", | ||
193 | - "csharp", | ||
194 | - "css", | ||
195 | - "git-commit", | ||
196 | - "go", | ||
197 | - "handlebars", | ||
198 | - "haskell", | ||
199 | - "html", | ||
200 | - "jade", | ||
201 | - "java", | ||
202 | - "javascript", | ||
203 | - "javascriptreact", | ||
204 | - "json", | ||
205 | - "jsonc", | ||
206 | - "latex", | ||
207 | - "less", | ||
208 | - "markdown", | ||
209 | - "php", | ||
210 | - "plaintext", | ||
211 | - "pug", | ||
212 | - "python", | ||
213 | - "restructuredtext", | ||
214 | - "rust", | ||
215 | - "scala", | ||
216 | - "scss", | ||
217 | - "text", | ||
218 | - "typescript", | ||
219 | - "typescriptreact", | ||
220 | - "yaml", | ||
221 | - "yml" | ||
222 | - ], | 174 | + |
223 | "[javascriptreact]": { | 175 | "[javascriptreact]": { |
224 | "editor.defaultFormatter": "esbenp.prettier-vscode" | 176 | "editor.defaultFormatter": "esbenp.prettier-vscode" |
225 | }, | 177 | }, |
@@ -250,9 +202,7 @@ | @@ -250,9 +202,7 @@ | ||
250 | "[markdown]": { | 202 | "[markdown]": { |
251 | "editor.defaultFormatter": "esbenp.prettier-vscode" | 203 | "editor.defaultFormatter": "esbenp.prettier-vscode" |
252 | }, | 204 | }, |
253 | - "cSpell.words": [ | ||
254 | - "yfboilerplate" | ||
255 | - ], | 205 | + |
256 | "editor.codeActionsOnSave": { | 206 | "editor.codeActionsOnSave": { |
257 | "source.fixAll.eslint": true | 207 | "source.fixAll.eslint": true |
258 | } | 208 | } |
CHANGELOG.zh_CN.md
src/components/Basic/src/BasicTitle.vue
src/components/StrengthMeter/index.tsx
@@ -6,6 +6,7 @@ import { Input } from 'ant-design-vue'; | @@ -6,6 +6,7 @@ import { Input } from 'ant-design-vue'; | ||
6 | 6 | ||
7 | import zxcvbn from 'zxcvbn'; | 7 | import zxcvbn from 'zxcvbn'; |
8 | import { extendSlots } from '/@/utils/helper/tsxHelper'; | 8 | import { extendSlots } from '/@/utils/helper/tsxHelper'; |
9 | + | ||
9 | import './index.less'; | 10 | import './index.less'; |
10 | const prefixCls = 'strength-meter'; | 11 | const prefixCls = 'strength-meter'; |
11 | export default defineComponent({ | 12 | export default defineComponent({ |
src/components/Table/src/BasicTable.vue
@@ -219,7 +219,7 @@ | @@ -219,7 +219,7 @@ | ||
219 | pagination: PaginationProps, | 219 | pagination: PaginationProps, |
220 | // @ts-ignore | 220 | // @ts-ignore |
221 | filters: Partial<Record<string, string[]>>, | 221 | filters: Partial<Record<string, string[]>>, |
222 | - sorter: SorterResult<any> | 222 | + sorter: SorterResult |
223 | ) { | 223 | ) { |
224 | const { clearSelectOnPageChange, sortFn } = unref(getMergeProps); | 224 | const { clearSelectOnPageChange, sortFn } = unref(getMergeProps); |
225 | if (clearSelectOnPageChange) { | 225 | if (clearSelectOnPageChange) { |
src/utils/helper/vueHelper.ts
@@ -26,17 +26,12 @@ export function tryOnMounted(fn: () => void, sync = true) { | @@ -26,17 +26,12 @@ export function tryOnMounted(fn: () => void, sync = true) { | ||
26 | } | 26 | } |
27 | 27 | ||
28 | export function tryOnUnmounted(fn: () => Promise<void> | void) { | 28 | export function tryOnUnmounted(fn: () => Promise<void> | void) { |
29 | - if (getCurrentInstance()) { | ||
30 | - onUnmounted(fn); | ||
31 | - } | 29 | + getCurrentInstance() && onUnmounted(fn); |
32 | } | 30 | } |
33 | 31 | ||
34 | export function tryTsxEmit(fn: (_instance: any) => Promise<void> | void) { | 32 | export function tryTsxEmit(fn: (_instance: any) => Promise<void> | void) { |
35 | const instance = getCurrentInstance(); | 33 | const instance = getCurrentInstance(); |
36 | - | ||
37 | - if (instance) { | ||
38 | - fn.call(null, instance); | ||
39 | - } | 34 | + instance && fn.call(null, instance); |
40 | } | 35 | } |
41 | 36 | ||
42 | export function isInSetup() { | 37 | export function isInSetup() { |