yh-hiprint 2.6.24 → 2.6.26
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/hooks/useHiprint.ts +4 -4
- package/index.ts +1 -1
- package/package.json +1 -1
package/hooks/useHiprint.ts
CHANGED
|
@@ -218,16 +218,16 @@ export function useDataSource(axios: AxiosInstance) {
|
|
|
218
218
|
return Promise.resolve(res.data.data);
|
|
219
219
|
});
|
|
220
220
|
}
|
|
221
|
-
const listCode = ref<string
|
|
221
|
+
const listCode = ref<string>('');
|
|
222
222
|
const dataSourceList = ref<DataSourceOption[]>([]);
|
|
223
223
|
const listColumns = computed((): string[] => {
|
|
224
224
|
if (
|
|
225
|
-
!codeMapDataSource.value[listCode.value
|
|
226
|
-
!Array.isArray(codeMapDataSource.value[listCode.value
|
|
225
|
+
!codeMapDataSource.value[listCode.value] ||
|
|
226
|
+
!Array.isArray(codeMapDataSource.value[listCode.value])
|
|
227
227
|
) {
|
|
228
228
|
return [];
|
|
229
229
|
}
|
|
230
|
-
return codeMapDataSource.value[listCode.value
|
|
230
|
+
return codeMapDataSource.value[listCode.value].map((item) => {
|
|
231
231
|
const index = item.indexOf('[');
|
|
232
232
|
return item.substring(index + 1, item.length - 1);
|
|
233
233
|
});
|
package/index.ts
CHANGED
|
@@ -493,7 +493,7 @@ const serverPrint = (code, params) => {
|
|
|
493
493
|
export default {
|
|
494
494
|
install(
|
|
495
495
|
app: any,
|
|
496
|
-
config
|
|
496
|
+
config?: InstallOptions & {clientPrint?: boolean}
|
|
497
497
|
): void {
|
|
498
498
|
app.provide('$hiprint', hiprintFun);
|
|
499
499
|
app.provide('$silentHiprint', silentHiprint);
|