@partex/one-core 2.0.27 → 2.0.29
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/lib/components/create.d.ts +1 -0
- package/lib/components/form/index.vue.d.ts +3 -1
- package/lib/components/form/interface.d.ts +2 -1
- package/lib/components/monitor.d.ts +1 -1
- package/lib/components/searchBar/interface.d.ts +2 -1
- package/lib/components/searchBar/item.vue.d.ts +1 -0
- package/lib/one-core.cjs +1 -1
- package/lib/one-core.js +3048 -2876
- package/lib/one-core.umd.cjs +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -2
|
@@ -97,7 +97,7 @@ declare const _default: DefineComponent<{
|
|
|
97
97
|
input: "date";
|
|
98
98
|
type: "date" | "datetime" | "daterange" | "datetimerange" | "month" | "monthrange" | "year" | "yearrange" | "quarter" | "quarterrange" | "week";
|
|
99
99
|
format?: string | undefined;
|
|
100
|
-
isDateDisabled: (ts: number, detail: ObjectKey) => boolean;
|
|
100
|
+
isDateDisabled: string | ((ts: number, detail: ObjectKey) => boolean);
|
|
101
101
|
label: string;
|
|
102
102
|
key: string;
|
|
103
103
|
placeholder?: string | undefined;
|
|
@@ -123,6 +123,7 @@ declare const _default: DefineComponent<{
|
|
|
123
123
|
options: ObjectKey[];
|
|
124
124
|
filterable?: boolean | undefined;
|
|
125
125
|
multiple?: boolean | undefined;
|
|
126
|
+
fallbackOption?: any;
|
|
126
127
|
maxTagCount?: number | "responsive" | null | undefined;
|
|
127
128
|
label: string;
|
|
128
129
|
key: string;
|
|
@@ -222,6 +223,7 @@ declare const _default: DefineComponent<{
|
|
|
222
223
|
}, key: string) => Promise<void>;
|
|
223
224
|
uploadChange: (fileList: UploadFileInfo[], key: string) => void;
|
|
224
225
|
elementShow: (item: IFormItem) => boolean;
|
|
226
|
+
selectFallback: (item: any) => any | boolean;
|
|
225
227
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
226
228
|
items: {
|
|
227
229
|
required: true;
|
|
@@ -42,13 +42,14 @@ export interface IFormItemDatePicker extends IFormItemBase {
|
|
|
42
42
|
input: 'date';
|
|
43
43
|
type: 'date' | 'datetime' | 'daterange' | 'datetimerange' | 'month' | 'monthrange' | 'year' | 'yearrange' | 'quarter' | 'quarterrange' | 'week';
|
|
44
44
|
format?: string;
|
|
45
|
-
isDateDisabled: (ts: number, detail: ObjectKey) => boolean;
|
|
45
|
+
isDateDisabled: ((ts: number, detail: ObjectKey) => boolean) | string;
|
|
46
46
|
}
|
|
47
47
|
export interface IFormItemSelect extends IFormItemBase {
|
|
48
48
|
input: 'select';
|
|
49
49
|
options: Array<ObjectKey>;
|
|
50
50
|
filterable?: boolean;
|
|
51
51
|
multiple?: boolean;
|
|
52
|
+
fallbackOption?: any | boolean;
|
|
52
53
|
maxTagCount?: number | 'responsive' | null;
|
|
53
54
|
}
|
|
54
55
|
export interface IFormItemTime extends IFormItemBase {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export default function Monitor(app: any): void;
|
|
1
|
+
export default function Monitor(app: any, url: false | string): void;
|
|
2
2
|
export declare const sendError: (type: 1 | 2 | 3 | 4 | 5, url: string, message: any) => void;
|
|
@@ -10,7 +10,7 @@ interface Base {
|
|
|
10
10
|
clearable?: boolean;
|
|
11
11
|
placeholder?: (() => string) | string;
|
|
12
12
|
disabled?: boolean;
|
|
13
|
-
updateValue?: (value: [] | string | number | null, data: ObjectKey, next: (data: ObjectKey) => void) => void;
|
|
13
|
+
updateValue?: (value: any[] | string | number | null, data: ObjectKey, next: (data: ObjectKey) => void) => void;
|
|
14
14
|
}
|
|
15
15
|
export interface Input extends Base {
|
|
16
16
|
type: 'input';
|
|
@@ -27,6 +27,7 @@ export interface InputNumber extends Base {
|
|
|
27
27
|
export interface Select extends Base {
|
|
28
28
|
type: 'select';
|
|
29
29
|
multiple?: boolean;
|
|
30
|
+
fallbackOption?: SelectOption | boolean;
|
|
30
31
|
options: Array<SelectOption | SelectGroupOption> | any;
|
|
31
32
|
}
|
|
32
33
|
export interface Dropdown extends Base {
|
|
@@ -29,6 +29,7 @@ declare const _default: DefineComponent<{
|
|
|
29
29
|
dropValueChange: (key: string, value: string, item: any) => void;
|
|
30
30
|
dropDisplayToggle: (key: string) => void;
|
|
31
31
|
getDate: (year?: number, month?: number, date?: number) => number;
|
|
32
|
+
selectFallback: (item: any) => any | boolean;
|
|
32
33
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
33
34
|
cols: {
|
|
34
35
|
type: PropType<number>;
|