@partex/one-core 2.0.14 → 2.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/components/actionButton/function.d.ts +1 -1
- package/lib/components/actionButton/interface.d.ts +1 -1
- package/lib/components/circle/index.d.ts +1 -0
- package/lib/components/circle/index.vue.d.ts +72 -0
- package/lib/components/common.d.ts +1 -59
- package/lib/components/components.d.ts +5 -4
- package/lib/components/create.d.ts +2 -1
- package/lib/components/error/index.d.ts +1 -0
- package/lib/components/error/index.vue.d.ts +23 -0
- package/lib/components/fetch.d.ts +7 -0
- package/lib/components/form/index.vue.d.ts +13 -13
- package/lib/components/form/interface.d.ts +1 -1
- package/lib/components/header/index.d.ts +0 -2
- package/lib/components/header/index.vue.d.ts +7 -15
- package/lib/components/icon/Add.vue.d.ts +3 -0
- package/lib/components/icon/Alert.vue.d.ts +3 -0
- package/lib/components/icon/ArrowClockwise.vue.d.ts +3 -0
- package/lib/components/icon/ArrowDown.vue.d.ts +3 -0
- package/lib/components/icon/ArrowSquareDown.vue.d.ts +3 -0
- package/lib/components/icon/ArrowUp.vue.d.ts +3 -0
- package/lib/components/icon/Bar.vue.d.ts +3 -0
- package/lib/components/icon/CalendarArrowDown.vue.d.ts +3 -0
- package/lib/components/icon/ChevronLeft.vue.d.ts +3 -0
- package/lib/components/icon/Clear.vue.d.ts +3 -0
- package/lib/components/icon/CloudArrowDown.vue.d.ts +3 -0
- package/lib/components/icon/Delete.vue.d.ts +3 -0
- package/lib/components/icon/Dismiss.vue.d.ts +3 -0
- package/lib/components/icon/Drafts.vue.d.ts +3 -0
- package/lib/components/icon/Eye.vue.d.ts +3 -0
- package/lib/components/icon/Filter.vue.d.ts +3 -0
- package/lib/components/icon/FullScreenMaximize.vue.d.ts +3 -0
- package/lib/components/icon/GridDots.vue.d.ts +3 -0
- package/lib/components/icon/MailInboxAdd.vue.d.ts +3 -0
- package/lib/components/icon/Navigation.vue.d.ts +3 -0
- package/lib/components/icon/Pin.vue.d.ts +3 -0
- package/lib/components/icon/Reset.vue.d.ts +3 -0
- package/lib/components/icon/Search.vue.d.ts +3 -0
- package/lib/components/icon/WeatherMoon.vue.d.ts +3 -0
- package/lib/components/icon/WeatherSunny.vue.d.ts +3 -0
- package/lib/components/icon/index.d.ts +25 -0
- package/lib/components/importer/api.d.ts +1 -1
- package/lib/components/importer/index.vue.d.ts +1 -1
- package/lib/components/index.d.ts +5 -0
- package/lib/components/interface.d.ts +45 -0
- package/lib/components/local/index.d.ts +181 -177
- package/lib/components/login/index.d.ts +0 -2
- package/lib/components/login/index.vue.d.ts +14 -0
- package/lib/components/main/index.d.ts +1 -0
- package/lib/components/main/index.vue.d.ts +157 -0
- package/lib/components/numberRoll/index.vue.d.ts +1 -1
- package/lib/components/role.d.ts +5 -0
- package/lib/components/searchBar/index.vue.d.ts +3 -2
- package/lib/components/{header → store}/api.d.ts +8 -1
- package/lib/components/{header/store.d.ts → store/common.d.ts} +7 -4
- package/lib/components/store/index.d.ts +4 -0
- package/lib/components/{login/store.d.ts → store/user.d.ts} +1 -1
- package/lib/components/table/index.d.ts +1 -1
- package/lib/components/table/index.vue.d.ts +1 -1
- package/lib/components/table/interface.d.ts +25 -1
- package/lib/components/theme.d.ts +4 -0
- package/lib/components/utils/fetch.d.ts +4 -0
- package/lib/components/utils/localStorage.d.ts +15 -0
- package/lib/components/utils/router.d.ts +3 -0
- package/lib/one-core.cjs +1 -98
- package/lib/one-core.js +4084 -6698
- package/lib/one-core.umd.cjs +1 -98
- package/lib/style.css +1 -1
- package/package.json +4 -1
- package/volar.d.ts +56 -18
- package/lib/components/dashboard/index.d.ts +0 -1
- package/lib/components/error404/index.d.ts +0 -1
- package/lib/components/error404/index.vue.d.ts +0 -5
- package/lib/components/error500/index.d.ts +0 -1
- package/lib/components/error500/index.vue.d.ts +0 -5
- package/lib/components/icon.d.ts +0 -25
- package/lib/components/login/api.d.ts +0 -7
- package/lib/components/tableEdit/common.d.ts +0 -1
- package/lib/components/tableEdit/components/action.vue.d.ts +0 -79
- package/lib/components/tableEdit/components/code.vue.d.ts +0 -42
- package/lib/components/tableEdit/components/form.vue.d.ts +0 -254
- package/lib/components/tableEdit/components/header.vue.d.ts +0 -270
- package/lib/components/tableEdit/index.d.ts +0 -2
- package/lib/components/tableEdit/index.vue.d.ts +0 -610
- package/lib/components/tableEdit/interface.d.ts +0 -25
- package/lib/src/monaco.d.ts +0 -2
- /package/lib/components/{dashboard/store.d.ts → scale.d.ts} +0 -0
- /package/lib/components/{login → store}/interface.d.ts +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as OcTable } from './index.vue';
|
|
2
|
-
export type { IOcDataTableColumn, IOcDataTableColumns } from './interface';
|
|
2
|
+
export type { IOcDataTableColumn, IOcDataTableColumns, IOcDataTableColumnEdit } from './interface';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DefineComponent, Ref, VNodeChild, ComputedRef, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import type { DataTableSortState } from 'naive-ui';
|
|
3
|
-
import type { ObjectKey, Fn } from '../
|
|
3
|
+
import type { ObjectKey, Fn } from '../interface';
|
|
4
4
|
import type { TableQuery, IOcDataTableColumns } from './interface';
|
|
5
5
|
import type { IActionButton } from '../actionButton';
|
|
6
6
|
declare const _default: DefineComponent<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { VNodeChild } from 'vue';
|
|
2
|
-
import type { Query } from '../
|
|
2
|
+
import type { Query } from '../interface';
|
|
3
3
|
import type { ISearchBarTypes } from '../searchBar/interface';
|
|
4
4
|
type TableColumnTitle<T = InternalRowData> = string | ((column: IOcDataTableColumns<T>) => VNodeChild);
|
|
5
5
|
type ColumnKey = string | number;
|
|
@@ -29,4 +29,28 @@ export interface IOcDataTableColumn<T = InternalRowData> {
|
|
|
29
29
|
search?: ISearchBarTypes;
|
|
30
30
|
}
|
|
31
31
|
export type IOcDataTableColumns<T = InternalRowData> = Array<IOcDataTableColumn<T>>;
|
|
32
|
+
export interface IOcDataTableColumnEdit {
|
|
33
|
+
title: string;
|
|
34
|
+
key: string;
|
|
35
|
+
align: 'left' | 'right' | 'center' | null;
|
|
36
|
+
titleAlign: 'left' | 'right' | 'center' | null;
|
|
37
|
+
fixed: string | null;
|
|
38
|
+
width: number | null;
|
|
39
|
+
ellipsis: boolean | {
|
|
40
|
+
tooltip: boolean;
|
|
41
|
+
};
|
|
42
|
+
sorter: boolean;
|
|
43
|
+
titleColSpan?: number;
|
|
44
|
+
type?: never;
|
|
45
|
+
tree?: boolean;
|
|
46
|
+
resizable?: boolean;
|
|
47
|
+
show?: boolean;
|
|
48
|
+
hide?: boolean;
|
|
49
|
+
minWidth?: string | number;
|
|
50
|
+
maxWidth?: string | number;
|
|
51
|
+
render?: string;
|
|
52
|
+
search: ISearchBarTypes | {
|
|
53
|
+
type: '';
|
|
54
|
+
};
|
|
55
|
+
}
|
|
32
56
|
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type ObjectKey<T = any> = {
|
|
2
|
+
[x in string | number]: T;
|
|
3
|
+
};
|
|
4
|
+
export default class LzLocalStorage {
|
|
5
|
+
namespace: string;
|
|
6
|
+
mapKey: string;
|
|
7
|
+
map: ObjectKey;
|
|
8
|
+
constructor(namespace?: string);
|
|
9
|
+
set(key: string, value: string | ObjectKey | boolean, expires?: number): void;
|
|
10
|
+
getReallyKey(key: string): string;
|
|
11
|
+
get<T>(key: string, defaultValue: T): T;
|
|
12
|
+
delete(key: string): void;
|
|
13
|
+
deleteAll(): void;
|
|
14
|
+
}
|
|
15
|
+
export {};
|