Skip to content

Commit

Permalink
fix(table): fix table type error
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb committed Nov 4, 2020
1 parent 6d9585b commit db0bfc8
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 62 deletions.
56 changes: 3 additions & 53 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@
"vetur.format.defaultFormatter.scss": "prettier", // 使用js-beautify-html格式化
"vetur.format.defaultFormatter.css": "prettier", // 使用js-beautify-html格式化
// "vetur.format.defaultFormatter.html": "prettyhtml",
"vetur.format.defaultFormatter.ts": "prettier-tslint",
"vetur.format.defaultFormatter.js": "prettier",
// "vetur.useWorkspaceDependencies": true,
"vetur.format.defaultFormatterOptions": {
Expand All @@ -150,22 +151,6 @@
"singleQuote": true // 使用单引号, 默认false(在jsx中配置无效, 默认都是双引号)
}
},
// ===========================================
// ============= Material Icon Theme =========
// ===========================================
"workbench.iconTheme": "material-icon-theme", // 主题色
// ===========================================
// ============= stylus Supremacy ============
// ===========================================
"stylusSupremacy.insertColons": false, // 是否插入冒号
"stylusSupremacy.insertSemicolons": false, // 是否插入分号
"stylusSupremacy.insertBraces": false, // 是否插入大括号
//===========================================
//============= koroFileHeaders ===============
//===========================================
"fileheader.configObj": {
"autoAdd": false // 将该选项设置为true即可开启
},
// 函数注释
//===========================================
//============= Code Runner =================
Expand All @@ -186,40 +171,7 @@
"prettier.requireConfig": true,
"typescript.updateImportsOnFileMove.enabled": "always",
"workbench.sideBar.location": "left",
"cSpell.enabledLanguageIds": [
"asciidoc",
"c",
"cpp",
"csharp",
"css",
"git-commit",
"go",
"handlebars",
"haskell",
"html",
"jade",
"java",
"javascript",
"javascriptreact",
"json",
"jsonc",
"latex",
"less",
"markdown",
"php",
"plaintext",
"pug",
"python",
"restructuredtext",
"rust",
"scala",
"scss",
"text",
"typescript",
"typescriptreact",
"yaml",
"yml"
],

"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
Expand Down Expand Up @@ -250,9 +202,7 @@
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"cSpell.words": [
"yfboilerplate"
],

"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- 更新`ant-design-vue`版本为`beta13`
- 更新`vite`版本为`rc.9`
- 异常页调整
- `BasicTitle` Color blocks are not displayed by default

### 🐛 Bug Fixes

Expand Down
2 changes: 1 addition & 1 deletion src/components/Basic/src/BasicTitle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
showSpan: {
type: Boolean as PropType<boolean>,
default: true,
default: false,
},
},
setup() {
Expand Down
1 change: 1 addition & 0 deletions src/components/StrengthMeter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Input } from 'ant-design-vue';

import zxcvbn from 'zxcvbn';
import { extendSlots } from '/@/utils/helper/tsxHelper';

import './index.less';
const prefixCls = 'strength-meter';
export default defineComponent({
Expand Down
2 changes: 1 addition & 1 deletion src/components/Table/src/BasicTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
pagination: PaginationProps,
// @ts-ignore
filters: Partial<Record<string, string[]>>,
sorter: SorterResult<any>
sorter: SorterResult
) {
const { clearSelectOnPageChange, sortFn } = unref(getMergeProps);
if (clearSelectOnPageChange) {
Expand Down
9 changes: 2 additions & 7 deletions src/utils/helper/vueHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,12 @@ export function tryOnMounted(fn: () => void, sync = true) {
}

export function tryOnUnmounted(fn: () => Promise<void> | void) {
if (getCurrentInstance()) {
onUnmounted(fn);
}
getCurrentInstance() && onUnmounted(fn);
}

export function tryTsxEmit(fn: (_instance: any) => Promise<void> | void) {
const instance = getCurrentInstance();

if (instance) {
fn.call(null, instance);
}
instance && fn.call(null, instance);
}

export function isInSetup() {
Expand Down

0 comments on commit db0bfc8

Please sign in to comment.