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.
@@ -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[0]] ||
226
- !Array.isArray(codeMapDataSource.value[listCode.value[0]])
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[0]].map((item) => {
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: InstallOptions & {clientPrint?: boolean}
496
+ config?: InstallOptions & {clientPrint?: boolean}
497
497
  ): void {
498
498
  app.provide('$hiprint', hiprintFun);
499
499
  app.provide('$silentHiprint', silentHiprint);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yh-hiprint",
3
- "version": "2.6.24",
3
+ "version": "2.6.26",
4
4
  "description": "Hiprint for Vue3 by NoahLiu in ForceCon in Hunan Changesha",
5
5
  "type": "module",
6
6
  "exports": {