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 | 136 | "vetur.format.defaultFormatter.scss": "prettier", // 使用js-beautify-html格式化 |
137 | 137 | "vetur.format.defaultFormatter.css": "prettier", // 使用js-beautify-html格式化 |
138 | 138 | // "vetur.format.defaultFormatter.html": "prettyhtml", |
139 | + "vetur.format.defaultFormatter.ts": "prettier-tslint", | |
139 | 140 | "vetur.format.defaultFormatter.js": "prettier", |
140 | 141 | // "vetur.useWorkspaceDependencies": true, |
141 | 142 | "vetur.format.defaultFormatterOptions": { |
... | ... | @@ -150,22 +151,6 @@ |
150 | 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 | 156 | //============= Code Runner ================= |
... | ... | @@ -186,40 +171,7 @@ |
186 | 171 | "prettier.requireConfig": true, |
187 | 172 | "typescript.updateImportsOnFileMove.enabled": "always", |
188 | 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 | 175 | "[javascriptreact]": { |
224 | 176 | "editor.defaultFormatter": "esbenp.prettier-vscode" |
225 | 177 | }, |
... | ... | @@ -250,9 +202,7 @@ |
250 | 202 | "[markdown]": { |
251 | 203 | "editor.defaultFormatter": "esbenp.prettier-vscode" |
252 | 204 | }, |
253 | - "cSpell.words": [ | |
254 | - "yfboilerplate" | |
255 | - ], | |
205 | + | |
256 | 206 | "editor.codeActionsOnSave": { |
257 | 207 | "source.fixAll.eslint": true |
258 | 208 | } | ... | ... |
CHANGELOG.zh_CN.md
src/components/Basic/src/BasicTitle.vue
src/components/StrengthMeter/index.tsx
src/components/Table/src/BasicTable.vue
... | ... | @@ -219,7 +219,7 @@ |
219 | 219 | pagination: PaginationProps, |
220 | 220 | // @ts-ignore |
221 | 221 | filters: Partial<Record<string, string[]>>, |
222 | - sorter: SorterResult<any> | |
222 | + sorter: SorterResult | |
223 | 223 | ) { |
224 | 224 | const { clearSelectOnPageChange, sortFn } = unref(getMergeProps); |
225 | 225 | if (clearSelectOnPageChange) { | ... | ... |
src/utils/helper/vueHelper.ts
... | ... | @@ -26,17 +26,12 @@ export function tryOnMounted(fn: () => void, sync = true) { |
26 | 26 | } |
27 | 27 | |
28 | 28 | export function tryOnUnmounted(fn: () => Promise<void> | void) { |
29 | - if (getCurrentInstance()) { | |
30 | - onUnmounted(fn); | |
31 | - } | |
29 | + getCurrentInstance() && onUnmounted(fn); | |
32 | 30 | } |
33 | 31 | |
34 | 32 | export function tryTsxEmit(fn: (_instance: any) => Promise<void> | void) { |
35 | 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 | 37 | export function isInSetup() { | ... | ... |