orion-design 0.1.32 → 0.1.34
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Throne/hooks/use-throne-context.d.ts +5 -0
- package/dist/Throne/hooks/use-throne-context.js +15 -0
- package/dist/Throne/hooks/use-throne-context.js.map +1 -0
- package/dist/Throne/index.d.ts +1 -1
- package/dist/Throne/index.js +3 -3
- package/dist/Throne/index.js.map +1 -1
- package/dist/components/Button/ButtonGroup/ButtonGroup.d.ts +2 -0
- package/dist/components/Button/index.js +19 -17
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Form/FileInput/FileInput.vue.d.ts +4 -4
- package/dist/components/Form/LovInput/LovInput.vue.d.ts +894 -0
- package/dist/components/Form/MultiTableSelect/MultiTableSelect.d.ts +26 -0
- package/dist/components/Form/MultiTableSelect/MultiTableSelect.js +5 -0
- package/dist/components/Form/MultiTableSelect/MultiTableSelect.js.map +1 -0
- package/dist/components/Form/MultiTableSelect/MultiTableSelect.vue.d.ts +6249 -0
- package/dist/components/Form/MultiTableSelect/hooks/useMultiTableSelect.d.ts +1 -0
- package/dist/components/Form/MultiTableSelect/hooks/useMultiTableSelect.js +9 -0
- package/dist/components/Form/MultiTableSelect/hooks/useMultiTableSelect.js.map +1 -0
- package/dist/components/Form/MultiTableSelect/index.d.ts +2 -0
- package/dist/components/Form/MultiTableSelect/index.js +7 -0
- package/dist/components/Form/MultiTableSelect/index.js.map +1 -0
- package/dist/components/Form/hooks/index.js +46 -45
- package/dist/components/Form/hooks/index.js.map +1 -1
- package/dist/components/Form/index.d.ts +3 -0
- package/dist/components/Form/index.js +542 -401
- package/dist/components/Form/index.js.map +1 -1
- package/dist/components/LovTable/LovPagetable.vue.d.ts +24 -6
- package/dist/components/LovTable/LovQuerytable.vue.d.ts +468 -4
- package/dist/components/LovTable/index.d.ts +246 -5
- package/dist/components/LovTable/index.js +11 -13
- package/dist/components/LovTable/index.js.map +1 -1
- package/dist/components/MultiTableSelectPagetable/MultiTableSelectPagetable.vue.d.ts +886 -0
- package/dist/components/MultiTableSelectPagetable/index.d.ts +465 -0
- package/dist/components/MultiTableSelectPagetable/index.js +164 -0
- package/dist/components/MultiTableSelectPagetable/index.js.map +1 -0
- package/dist/components/Pagetable/Pagetable.d.ts +5 -2
- package/dist/components/Pagetable/columns/PagetableColumnButtongroup.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnDate.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnDiy.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnLink.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnMultiselect.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnNumber.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnSingleselect.d.ts +1 -1
- package/dist/components/Pagetable/columns/PagetableColumnString.d.ts +1 -1
- package/dist/components/Pagetable/hooks/useCode.d.ts +2 -0
- package/dist/components/Pagetable/hooks/useCode.js +24 -0
- package/dist/components/Pagetable/hooks/useCode.js.map +1 -0
- package/dist/components/Pagetable/index.d.ts +5 -2
- package/dist/components/Pagetable/index.js +347 -340
- package/dist/components/Pagetable/index.js.map +1 -1
- package/dist/components/Querytable/Querytable.d.ts +80 -2
- package/dist/components/Querytable/columns/QuerytableColumnButtongroup.d.ts +14 -1
- package/dist/components/Querytable/columns/QuerytableColumnDate.d.ts +14 -1
- package/dist/components/Querytable/columns/QuerytableColumnDiy.d.ts +1 -1
- package/dist/components/Querytable/columns/QuerytableColumnLink.d.ts +14 -1
- package/dist/components/Querytable/columns/QuerytableColumnMultiselect.d.ts +14 -1
- package/dist/components/Querytable/columns/QuerytableColumnNumber.d.ts +14 -1
- package/dist/components/Querytable/columns/QuerytableColumnSingleselect.d.ts +14 -1
- package/dist/components/Querytable/columns/QuerytableColumnString.d.ts +14 -1
- package/dist/components/Querytable/hooks/useColumns.js +16 -11
- package/dist/components/Querytable/hooks/useColumns.js.map +1 -1
- package/dist/components/Querytable/index.d.ts +147 -1
- package/dist/components/Querytable/index.js +404 -347
- package/dist/components/Querytable/index.js.map +1 -1
- package/dist/components/Tabs/index.js +1 -1
- package/dist/components/Throne/ThroneContextProvider.d.ts +25 -0
- package/dist/components/_util/vue/icon.js +1 -1
- package/dist/components/components.d.ts +2 -0
- package/dist/components/components.js +22 -18
- package/dist/components/components.js.map +1 -1
- package/dist/components/index.js +41 -33
- package/dist/components/index.js.map +1 -1
- package/dist/components-DP9bnDLm.js +48 -0
- package/dist/components-DP9bnDLm.js.map +1 -0
- package/dist/{index-C6P_0wAy.js → index-ChkLOmNK.js} +76 -46
- package/dist/{index-C6P_0wAy.js.map → index-ChkLOmNK.js.map} +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +41 -31
- package/dist/index.js.map +1 -1
- package/dist/version/version.d.ts +1 -1
- package/dist/version/version.js +1 -1
- package/dist/version/version.js.map +1 -1
- package/package.json +1 -1
- package/dist/components-8oZ2kpUC.js +0 -27
- package/dist/components-8oZ2kpUC.js.map +0 -1
@@ -91,10 +91,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
91
91
|
default: string | boolean;
|
92
92
|
};
|
93
93
|
}>> & Readonly<{}>, {
|
94
|
+
name: string;
|
94
95
|
fixed: FixedType;
|
95
96
|
head: string;
|
96
97
|
width: string | boolean;
|
97
|
-
name: string;
|
98
98
|
bodyAlign: "center" | "left" | "right";
|
99
99
|
tail: string | boolean;
|
100
100
|
headAlign: "center" | "left" | "right";
|
@@ -114,10 +114,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
114
114
|
default: string;
|
115
115
|
};
|
116
116
|
}>> & Readonly<{}>, {
|
117
|
+
name: string;
|
117
118
|
fixed: FixedType;
|
118
119
|
head: string;
|
119
120
|
width: string | boolean;
|
120
|
-
name: string;
|
121
121
|
format: string;
|
122
122
|
bodyAlign: "center" | "left" | "right";
|
123
123
|
tail: string | boolean;
|
@@ -79,10 +79,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
79
79
|
default: string | boolean;
|
80
80
|
};
|
81
81
|
}>> & Readonly<{}>, {
|
82
|
+
name: string;
|
82
83
|
fixed: FixedType;
|
83
84
|
head: string;
|
84
85
|
width: string | boolean;
|
85
|
-
name: string;
|
86
86
|
tail: string | boolean;
|
87
87
|
headAlign: "center" | "left" | "right";
|
88
88
|
}, CustomSlotsType<{
|
@@ -90,10 +90,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
90
90
|
default: string | boolean;
|
91
91
|
};
|
92
92
|
}>> & Readonly<{}>, {
|
93
|
+
name: string;
|
93
94
|
fixed: FixedType;
|
94
95
|
head: string;
|
95
96
|
width: string | boolean;
|
96
|
-
name: string;
|
97
97
|
bodyAlign: "center" | "left" | "right";
|
98
98
|
tail: string | boolean;
|
99
99
|
headAlign: "center" | "left" | "right";
|
@@ -120,6 +120,7 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
120
120
|
}[];
|
121
121
|
};
|
122
122
|
}>> & Readonly<{}>, {
|
123
|
+
name: string;
|
123
124
|
fixed: FixedType;
|
124
125
|
code: string | {
|
125
126
|
value: string;
|
@@ -127,7 +128,6 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
127
128
|
}[];
|
128
129
|
head: string;
|
129
130
|
width: string | boolean;
|
130
|
-
name: string;
|
131
131
|
bodyAlign: "center" | "left" | "right";
|
132
132
|
tail: string | boolean;
|
133
133
|
headAlign: "center" | "left" | "right";
|
@@ -126,10 +126,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
126
126
|
default: boolean;
|
127
127
|
};
|
128
128
|
}>> & Readonly<{}>, {
|
129
|
+
name: string;
|
129
130
|
fixed: FixedType;
|
130
131
|
head: string;
|
131
132
|
width: string | boolean;
|
132
|
-
name: string;
|
133
133
|
bodyAlign: "center" | "left" | "right";
|
134
134
|
thousandsSeparator: boolean;
|
135
135
|
tail: string | boolean;
|
@@ -120,6 +120,7 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
120
120
|
}[];
|
121
121
|
};
|
122
122
|
}>> & Readonly<{}>, {
|
123
|
+
name: string;
|
123
124
|
fixed: FixedType;
|
124
125
|
code: string | {
|
125
126
|
value: string;
|
@@ -127,7 +128,6 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
127
128
|
}[];
|
128
129
|
head: string;
|
129
130
|
width: string | boolean;
|
130
|
-
name: string;
|
131
131
|
bodyAlign: "center" | "left" | "right";
|
132
132
|
tail: string | boolean;
|
133
133
|
headAlign: "center" | "left" | "right";
|
@@ -90,10 +90,10 @@ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
|
90
90
|
default: string | boolean;
|
91
91
|
};
|
92
92
|
}>> & Readonly<{}>, {
|
93
|
+
name: string;
|
93
94
|
fixed: FixedType;
|
94
95
|
head: string;
|
95
96
|
width: string | boolean;
|
96
|
-
name: string;
|
97
97
|
bodyAlign: "center" | "left" | "right";
|
98
98
|
tail: string | boolean;
|
99
99
|
headAlign: "center" | "left" | "right";
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { computed as t } from "vue";
|
2
|
+
import { isString as i, isArray as m } from "lodash-es";
|
3
|
+
import f from "../../../Throne/index.js";
|
4
|
+
import n from "../../../error/OrionError.js";
|
5
|
+
import { useThroneContext as u } from "../../../Throne/hooks/use-throne-context.js";
|
6
|
+
function g(r) {
|
7
|
+
const o = u();
|
8
|
+
return t(() => {
|
9
|
+
let e;
|
10
|
+
if (!r)
|
11
|
+
e = null;
|
12
|
+
else if (i(r))
|
13
|
+
e = f.getCode(r, o == null ? void 0 : o.value).value;
|
14
|
+
else if (m(r))
|
15
|
+
e = r;
|
16
|
+
else
|
17
|
+
throw new n("code类型错误");
|
18
|
+
return e;
|
19
|
+
});
|
20
|
+
}
|
21
|
+
export {
|
22
|
+
g as default
|
23
|
+
};
|
24
|
+
//# sourceMappingURL=useCode.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useCode.js","sources":["../../../../src/components/Pagetable/hooks/useCode.ts"],"sourcesContent":["import { inject, getCurrentInstance, computed } from 'vue'\r\n\r\nimport { castArray, isArray, isString } from 'lodash-es'\r\n\r\nimport Throne from '../../../Throne'\r\nimport { CodeItem } from '../../types'\r\n\r\nimport OrionError from '../../../error/OrionError'\r\n\r\nimport { useThroneContext } from '../../../Throne/hooks/use-throne-context'\r\n\r\nexport default function useCode(code) {\r\n const throneContext = useThroneContext();\r\n\r\n return computed(() => {\r\n let codeData: Array<CodeItem> | null\r\n if (!code) {\r\n codeData = null;\r\n } else if (isString(code)) {\r\n codeData = Throne.getCode(code, throneContext?.value).value\r\n } else if (isArray<CodeItem>(code)) {\r\n codeData = code\r\n } else {\r\n throw new OrionError('code类型错误')\r\n }\r\n\r\n return codeData\r\n })\r\n}"],"names":["useCode","code","throneContext","useThroneContext","computed","codeData","isString","Throne","isArray","OrionError"],"mappings":";;;;;AAWA,SAAwBA,EAAQC,GAAM;AAClC,QAAMC,IAAgBC;AAEtB,SAAOC,EAAS,MAAM;AACd,QAAAC;AACJ,QAAI,CAACJ;AACU,MAAAI,IAAA;AAAA,aACJC,EAASL,CAAI;AACpB,MAAAI,IAAWE,EAAO,QAAQN,GAAMC,KAAA,gBAAAA,EAAe,KAAK,EAAE;AAAA,aAC/CM,EAAkBP,CAAI;AAClB,MAAAI,IAAAJ;AAAA;AAEL,YAAA,IAAIQ,EAAW,UAAU;AAG5B,WAAAJ;AAAA,EAAA,CACV;AACL;"}
|
@@ -113,7 +113,7 @@ declare const _default: import('../_util').SFCWithInstall<import('vue').DefineCo
|
|
113
113
|
columnIndex: number;
|
114
114
|
}) => import('vue').CSSProperties);
|
115
115
|
};
|
116
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("selectionChange" | "currentRowChange" | "update:pagination" | "rowClick" | "rowDblclick" | "cellClick" | "cellDblclick")[], "selectionChange" | "currentRowChange" | "update:pagination" | "rowClick" | "rowDblclick" | "cellClick" | "cellDblclick", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
116
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("select" | "select-all" | "selectionChange" | "currentRowChange" | "update:pagination" | "paginationChange" | "rowClick" | "rowDblclick" | "cellClick" | "cellDblclick")[], "select" | "select-all" | "selectionChange" | "currentRowChange" | "update:pagination" | "paginationChange" | "rowClick" | "rowDblclick" | "cellClick" | "cellDblclick", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
117
117
|
data: {
|
118
118
|
type: import('vue').PropType<any[]>;
|
119
119
|
default: any[];
|
@@ -217,16 +217,19 @@ declare const _default: import('../_util').SFCWithInstall<import('vue').DefineCo
|
|
217
217
|
}) => import('vue').CSSProperties);
|
218
218
|
};
|
219
219
|
}>> & Readonly<{
|
220
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
221
|
+
"onSelect-all"?: ((...args: any[]) => any) | undefined;
|
220
222
|
onSelectionChange?: ((...args: any[]) => any) | undefined;
|
221
223
|
onCurrentRowChange?: ((...args: any[]) => any) | undefined;
|
222
224
|
"onUpdate:pagination"?: ((...args: any[]) => any) | undefined;
|
225
|
+
onPaginationChange?: ((...args: any[]) => any) | undefined;
|
223
226
|
onRowClick?: ((...args: any[]) => any) | undefined;
|
224
227
|
onRowDblclick?: ((...args: any[]) => any) | undefined;
|
225
228
|
onCellClick?: ((...args: any[]) => any) | undefined;
|
226
229
|
onCellDblclick?: ((...args: any[]) => any) | undefined;
|
227
230
|
}>, {
|
228
|
-
data: any[];
|
229
231
|
size: "" | "small" | "default" | "large";
|
232
|
+
data: any[];
|
230
233
|
pagination: {
|
231
234
|
currentPage?: number;
|
232
235
|
pageSize?: number;
|