@qqt-product/ui 13.0.1 → 14.0.0

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.
@@ -1,7 +1,7 @@
1
1
  import type { SrmI18n } from '../../utils/type';
2
2
  import type { VxeTableProps, VxeTableDataRow, VxeGridInstance } from 'vxe-table';
3
3
  import type { RequestMethod, ModalConfig, ModalType, OpenFuncType, TablePage } from './src/field-select-modal-types';
4
- import type { DefineComponent, PropType, ComputedRef, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
4
+ import type { DefineComponent, PropType, ComputedRef, Ref, ShallowRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
5
5
  import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
6
6
  import QFieldSelectModal from './src/field-select-modal.vue';
7
7
  export * from './src/field-select-modal-types';
@@ -100,7 +100,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
100
100
  getPagerConfig: ComputedRef<any>;
101
101
  modalTitle: Ref<string>;
102
102
  placeholder: Ref<string>;
103
- open: ({ url, params, columns: col, selectModal: sm, requestMethod: rm }: OpenFuncType) => void;
103
+ open: ({ url, params, columns: col, selectModal: sm, requestMethod: rm, showCheckItem, checkItemParams }: OpenFuncType) => void;
104
104
  close: () => void;
105
105
  onSearch: () => void;
106
106
  handlePageChange: ({ currentPage, pageSize }: TablePage) => void;
@@ -113,6 +113,9 @@ declare const _default: SFCWithInstall<DefineComponent<{
113
113
  type: string;
114
114
  }) => Promise<never> | undefined;
115
115
  restParams: () => void;
116
+ isShowCheckItem: ShallowRef<boolean>;
117
+ checktableData: Ref<Record<string, unknown>[]>;
118
+ onCheckboxChange: () => void;
116
119
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
117
120
  modalTitle: {
118
121
  type: StringConstructor;
@@ -20,6 +20,9 @@ export interface OpenFuncType {
20
20
  columns: Columns[];
21
21
  selectModal?: ModalType;
22
22
  requestMethod?: RequestMethod;
23
+ showCheckItem?: boolean;
24
+ checkItemField?: string;
25
+ checkItemParams?: object;
23
26
  }
24
27
  interface BasePage {
25
28
  total?: number;
@@ -1,5 +1,5 @@
1
1
  import type { SrmI18n } from '../../../utils/type';
2
- import type { DefineComponent, PropType, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, ComputedRef } from 'vue';
2
+ import type { DefineComponent, PropType, Ref, ShallowRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, ComputedRef } from 'vue';
3
3
  import type { RequestMethod, ModalConfig, ModalType, OpenFuncType, TablePage } from './field-select-modal-types';
4
4
  import type { VxeTableProps, VxeTableDataRow, VxeGridInstance } from 'vxe-table';
5
5
  declare const _sfc_main: DefineComponent<{
@@ -96,7 +96,7 @@ declare const _sfc_main: DefineComponent<{
96
96
  getPagerConfig: ComputedRef<any>;
97
97
  modalTitle: Ref<string>;
98
98
  placeholder: Ref<string>;
99
- open: ({ url, params, columns: col, selectModal: sm, requestMethod: rm }: OpenFuncType) => void;
99
+ open: ({ url, params, columns: col, selectModal: sm, requestMethod: rm, showCheckItem, checkItemParams }: OpenFuncType) => void;
100
100
  close: () => void;
101
101
  onSearch: () => void;
102
102
  handlePageChange: ({ currentPage, pageSize }: TablePage) => void;
@@ -109,6 +109,9 @@ declare const _sfc_main: DefineComponent<{
109
109
  type: string;
110
110
  }) => Promise<never> | undefined;
111
111
  restParams: () => void;
112
+ isShowCheckItem: ShallowRef<boolean>;
113
+ checktableData: Ref<Record<string, unknown>[]>;
114
+ onCheckboxChange: () => void;
112
115
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
113
116
  modalTitle: {
114
117
  type: StringConstructor;
@@ -2,7 +2,7 @@ import type { VxeTableProps, VxeTableDataRow, VxeGridInstance } from 'vxe-table'
2
2
  import type { RequestMethod, ModalConfig, ModalType, OpenFuncType, TablePage } from '../field-select-modal';
3
3
  import type { SrmI18n } from '../../utils/type';
4
4
  import type { Config, RecordString, Extend } from './src/select-modal-types';
5
- import type { DefineComponent, PropType, ComputedRef, Ref, ComponentInternalInstance, VNodeRef, VNode, RendererNode, RendererElement, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
5
+ import type { DefineComponent, PropType, ComputedRef, Ref, ComponentInternalInstance, VNodeRef, VNode, RendererNode, RendererElement, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, ShallowRef, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
6
6
  import type { SFCWithInstall } from '@qqt-product/utils/dist/modules/withInstall';
7
7
  import QSelectModal from './src/select-modal.vue';
8
8
  export * from './src/select-modal-types';
@@ -200,7 +200,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
200
200
  getPagerConfig: ComputedRef<any>;
201
201
  modalTitle: Ref<string>;
202
202
  placeholder: Ref<string>;
203
- open: ({ url, params, columns: col, selectModal: sm, requestMethod: rm }: OpenFuncType) => void;
203
+ open: ({ url, params, columns: col, selectModal: sm, requestMethod: rm, showCheckItem, checkItemParams }: OpenFuncType) => void;
204
204
  close: () => void;
205
205
  onSearch: () => void;
206
206
  handlePageChange: ({ currentPage, pageSize }: TablePage) => void;
@@ -213,6 +213,9 @@ declare const _default: SFCWithInstall<DefineComponent<{
213
213
  type: string;
214
214
  }) => Promise<never> | undefined;
215
215
  restParams: () => void;
216
+ isShowCheckItem: ShallowRef<boolean>;
217
+ checktableData: Ref<Record<string, unknown>[]>;
218
+ onCheckboxChange: () => void;
216
219
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
217
220
  modalTitle: string;
218
221
  apiUrls: string;
@@ -336,7 +339,7 @@ declare const _default: SFCWithInstall<DefineComponent<{
336
339
  getPagerConfig: ComputedRef<any>;
337
340
  modalTitle: Ref<string>;
338
341
  placeholder: Ref<string>;
339
- open: ({ url, params, columns: col, selectModal: sm, requestMethod: rm }: OpenFuncType) => void;
342
+ open: ({ url, params, columns: col, selectModal: sm, requestMethod: rm, showCheckItem, checkItemParams }: OpenFuncType) => void;
340
343
  close: () => void;
341
344
  onSearch: () => void;
342
345
  handlePageChange: ({ currentPage, pageSize }: TablePage) => void;
@@ -349,6 +352,9 @@ declare const _default: SFCWithInstall<DefineComponent<{
349
352
  type: string;
350
353
  }) => Promise<never> | undefined;
351
354
  restParams: () => void;
355
+ isShowCheckItem: ShallowRef<boolean>;
356
+ checktableData: Ref<Record<string, unknown>[]>;
357
+ onCheckboxChange: () => void;
352
358
  }> & {} & ComponentCustomProperties & {}) | undefined>;
353
359
  openSelectModal: () => void;
354
360
  onChange: (checkedValues: RecordString[]) => void;
@@ -30,6 +30,8 @@ export interface Extend {
30
30
  modalConfigs?: unknown[];
31
31
  modalParams?: ModalParams;
32
32
  params?: ModalParams;
33
+ checkItemParams?: ModalParams;
34
+ showCheckItem?: boolean;
33
35
  selectModal?: ModalType;
34
36
  requestMethod?: RequestMethod;
35
37
  isTree?: boolean;
@@ -1,7 +1,7 @@
1
1
  import type { VxeTableProps, VxeTableDataRow, VxeGridInstance } from 'vxe-table';
2
2
  import type { RequestMethod, ModalConfig, ModalType, OpenFuncType, TablePage } from './../../field-select-modal';
3
3
  import type { SrmI18n } from '../../../utils/type';
4
- import type { DefineComponent, PropType, Ref, ComponentInternalInstance, VNodeRef, VNode, RendererNode, RendererElement, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComputedRef } from 'vue';
4
+ import type { DefineComponent, PropType, Ref, ComponentInternalInstance, VNodeRef, VNode, RendererNode, RendererElement, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, ShallowRef, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComputedRef } from 'vue';
5
5
  import type { Config, RecordString, Extend } from './select-modal-types';
6
6
  declare const _sfc_main: DefineComponent<{
7
7
  value: {
@@ -196,7 +196,7 @@ declare const _sfc_main: DefineComponent<{
196
196
  getPagerConfig: ComputedRef<any>;
197
197
  modalTitle: Ref<string>;
198
198
  placeholder: Ref<string>;
199
- open: ({ url, params, columns: col, selectModal: sm, requestMethod: rm }: OpenFuncType) => void;
199
+ open: ({ url, params, columns: col, selectModal: sm, requestMethod: rm, showCheckItem, checkItemParams }: OpenFuncType) => void;
200
200
  close: () => void;
201
201
  onSearch: () => void;
202
202
  handlePageChange: ({ currentPage, pageSize }: TablePage) => void;
@@ -209,6 +209,9 @@ declare const _sfc_main: DefineComponent<{
209
209
  type: string;
210
210
  }) => Promise<never> | undefined;
211
211
  restParams: () => void;
212
+ isShowCheckItem: ShallowRef<boolean>;
213
+ checktableData: Ref<Record<string, unknown>[]>;
214
+ onCheckboxChange: () => void;
212
215
  }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
213
216
  modalTitle: string;
214
217
  apiUrls: string;
@@ -332,7 +335,7 @@ declare const _sfc_main: DefineComponent<{
332
335
  getPagerConfig: ComputedRef<any>;
333
336
  modalTitle: Ref<string>;
334
337
  placeholder: Ref<string>;
335
- open: ({ url, params, columns: col, selectModal: sm, requestMethod: rm }: OpenFuncType) => void;
338
+ open: ({ url, params, columns: col, selectModal: sm, requestMethod: rm, showCheckItem, checkItemParams }: OpenFuncType) => void;
336
339
  close: () => void;
337
340
  onSearch: () => void;
338
341
  handlePageChange: ({ currentPage, pageSize }: TablePage) => void;
@@ -345,6 +348,9 @@ declare const _sfc_main: DefineComponent<{
345
348
  type: string;
346
349
  }) => Promise<never> | undefined;
347
350
  restParams: () => void;
351
+ isShowCheckItem: ShallowRef<boolean>;
352
+ checktableData: Ref<Record<string, unknown>[]>;
353
+ onCheckboxChange: () => void;
348
354
  }> & {} & ComponentCustomProperties & {}) | undefined>;
349
355
  openSelectModal: () => void;
350
356
  onChange: (checkedValues: RecordString[]) => void;