mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-27 15:41:32 +08:00
fix(table): fix table type error
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
},
|
||||
showSpan: {
|
||||
type: Boolean as PropType<boolean>,
|
||||
default: true,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
setup() {
|
||||
|
@@ -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({
|
||||
|
@@ -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) {
|
||||
|
@@ -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() {
|
||||
|
Reference in New Issue
Block a user