Skip to content

Commit

Permalink
fix: 修复一些错误的类型定义
Browse files Browse the repository at this point in the history
  • Loading branch information
greper committed Nov 20, 2023
1 parent 873b254 commit e098f51
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"docgen:crud": "vue-docgen -c docgen/crud.config.js",
"docgen:extends": "vue-docgen -c docgen/extends.config.js",
"docgen:all": "npm run docgen:crud && npm run docgen:extends",
"prepublishOnly": "npm run before-build && lerna run build --scope */ui-* --scope @fast-crud/fast-crud --scope @fast-crud/fast-extends ",
"prepublishOnly": "npm run before-build && lerna run build --scope @fast-crud/fast-crud --scope @fast-crud/fs-admin-antdv --scope @fast-crud/fast-extends --scope */ui-* ",
"publish": "npm run proxy && npm run prepublishOnly && lerna publish --conventional-commits && npm run afterpublishOnly",
"proxy": "npm config set proxy=http://127.0.0.1:10809",
"publish:canary": "lerna publish --canary --conventional-commits && npm run afterpublishOnly",
Expand Down
2 changes: 1 addition & 1 deletion packages/fast-admin/fs-admin-antdv
2 changes: 1 addition & 1 deletion packages/fast-crud/src/d/editable.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Ref, ComputedRef } from "vue";
import { ColumnProps, EditableProps, EditableUpdateCellRequest, FormItemProps } from "../../../d";
import { ColumnProps, EditableProps, EditableUpdateCellRequest, FormItemProps } from "./crud";
import Schema from "async-validator";

export type EditableTable = {
Expand Down
15 changes: 5 additions & 10 deletions packages/fast-crud/src/d/expose.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@ import {
} from "./crud";
import { Ref } from "vue";
import { EditableOnEnabledProps } from "../use";
import {
EditableCellActiveProps,
EditableEachCellsOpts,
EditableEachRowsOpts,
EditableRow
} from "../components/crud/editable/editable";
import { EditableCellActiveProps, EditableEachCellsOpts, EditableEachRowsOpts, EditableRow } from "./editable";

export type SearchOptions = {
silence?: boolean;
Expand Down Expand Up @@ -238,15 +233,15 @@ export type EditableActiveColsOptions = {
cols: string[];
} & EditableCellActiveProps;
export type Editable = {
enable(opts: any, onEnabled?: (opts: EditableOnEnabledProps) => void): Promise<void>;
enable(opts?: any, onEnabled?: (opts: EditableOnEnabledProps) => void): Promise<void>;
/**
* 禁用编辑
*/
disable(): void;
/**
* 激活所有编辑
*/
active(opts: EditableCellActiveProps): void;
active(opts?: EditableCellActiveProps): void;
/**
* 退出编辑
*/
Expand Down Expand Up @@ -280,8 +275,8 @@ export type Editable = {
doCancelRow(opts: { editableId?: any; row?: any }): Promise<void>;
doRemoveRow(opts: { editableId?: any; row?: any }): Promise<void>;
getInstance(): any;
eachCells(opts: EditableEachCellsOpts): void;
eachRows(opts: EditableEachRowsOpts): void;
eachCells(call: (opts: EditableEachCellsOpts) => void): void;
eachRows(call: (opts: EditableEachRowsOpts) => void): void;
validate(): Promise<boolean>;
/**
* 获取可提交数据
Expand Down

0 comments on commit e098f51

Please sign in to comment.