@fmdeui/fmui 1.0.161 → 1.0.162

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/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! fmdeui-fmui v1.0.161 */
1
+ /*! fmdeui-fmui v1.0.162 */
2
2
  import VxeUITable from 'vxe-table';
3
3
  import VxeUIPluginRenderElement from '@vxe-ui/plugin-render-element';
4
4
  import VxeUIPluginExportXLSX from '@vxe-ui/plugin-export-xlsx';
@@ -6,7 +6,7 @@ import VxeUI from 'vxe-pc-ui';
6
6
  import ExcelJS from 'exceljs';
7
7
  import * as svg from '@element-plus/icons-vue';
8
8
  import { CaretTop, ArrowDown, ArrowUp, RefreshLeft, Search, Calendar, DArrowLeft, DArrowRight, MoreFilled, Avatar, Loading, Lock, CircleCloseFilled } from '@element-plus/icons-vue';
9
- import { isRef, unref, watch, nextTick, computed, reactive, defineComponent, ref, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createVNode, renderSlot, inject, withDirectives, resolveDirective, provide, useAttrs, useSlots, createSlots, renderList, normalizeProps, guardReactiveProps, createElementBlock, toDisplayString, createElementVNode, onMounted, onActivated, normalizeClass, createCommentVNode, getCurrentInstance, onBeforeUnmount, vShow, markRaw, resolveDynamicComponent, Fragment, createTextVNode, withModifiers, toHandlers, onUpdated, normalizeStyle, defineAsyncComponent, onBeforeMount, onUnmounted, useModel, mergeModels, withKeys, onBeforeUpdate, Transition, KeepAlive, TransitionGroup } from 'vue';
9
+ import { isRef, unref, watch, nextTick, computed, reactive, defineComponent, ref, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createVNode, renderSlot, inject, withDirectives, resolveDirective, provide, useAttrs, useSlots, createSlots, renderList, normalizeProps, guardReactiveProps, createElementBlock, toDisplayString, createElementVNode, onMounted, onActivated, normalizeClass, createCommentVNode, getCurrentInstance, onBeforeUnmount, vShow, markRaw, resolveDynamicComponent, Fragment, createTextVNode, withModifiers, toHandlers, useModel, onUpdated, normalizeStyle, mergeModels, defineAsyncComponent, onBeforeMount, onUnmounted, withKeys, onBeforeUpdate, Transition, KeepAlive, TransitionGroup } from 'vue';
10
10
  import { ElLoading, ElMessage, ElNotification, localeContextKey, dayjs, ElMessageBox } from 'element-plus';
11
11
  import { get, merge, debounce as debounce$1 } from 'lodash-es';
12
12
  import Cookies from 'js-cookie';
@@ -23067,7 +23067,7 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
23067
23067
  name: "FSelectTable"
23068
23068
  },
23069
23069
  __name: "index",
23070
- props: {
23070
+ props: /* @__PURE__ */ mergeModels({
23071
23071
  modelValue: { default: void 0 },
23072
23072
  inputValue: { default: void 0 },
23073
23073
  defaultSelectVal: { default: () => [] },
@@ -23120,9 +23120,21 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
23120
23120
  isExpanded: { type: Boolean, default: false },
23121
23121
  multipleDisableDelete: { type: Boolean, default: true },
23122
23122
  tableLoading: { type: Boolean, default: false },
23123
- loadingTxt: { default: "" }
23124
- },
23125
- emits: ["page-change", "selectionChange", "radioChange", "update:inputValue", "input-focus", "input-blur", "input-clear", "input-click"],
23123
+ loadingTxt: { default: "" },
23124
+ apiService: { default: void 0 },
23125
+ apiAction: { default: "" },
23126
+ queryParams: { default: () => ({}) },
23127
+ responseFormatter: { type: Function, default: (res) => ({
23128
+ data: res.result.items || [],
23129
+ total: res.result.total || 0
23130
+ }) }
23131
+ }, {
23132
+ "id": { default: 0, required: false },
23133
+ "idModifiers": {},
23134
+ "name": { default: "", required: false },
23135
+ "nameModifiers": {}
23136
+ }),
23137
+ emits: /* @__PURE__ */ mergeModels(["page-change", "selectionChange", "radioChange", "update:inputValue", "input-focus", "input-blur", "input-clear", "input-click"], ["update:id", "update:name"]),
23126
23138
  setup(__props, { expose: __expose, emit: __emit }) {
23127
23139
  const { t } = useLocale();
23128
23140
  const {
@@ -23133,6 +23145,8 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
23133
23145
  saveDATA,
23134
23146
  getItemHeightFromCache
23135
23147
  } = useVirtualized();
23148
+ const modeValueId = useModel(__props, "id");
23149
+ const modeValueName = useModel(__props, "name");
23136
23150
  const props = __props;
23137
23151
  const vClickOutside = ClickOutside;
23138
23152
  const emits = __emit;
@@ -23144,8 +23158,24 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
23144
23158
  const isVisible = ref(false);
23145
23159
  const radioVal = ref("");
23146
23160
  const isShowFirstRadio = ref(props.isShowFirstColumn);
23147
- const selectDefaultLabel = ref(props.modelValue);
23161
+ const selectDefaultLabel = ref(modeValueName.value);
23148
23162
  const scrollTopNum = ref(0);
23163
+ const pagination = reactive({
23164
+ currentPage: props.table.currentPage,
23165
+ pageSize: props.table.pageSize,
23166
+ total: props.table.total
23167
+ });
23168
+ watch(
23169
+ () => props.table,
23170
+ (newVal) => {
23171
+ if (!props.apiService) {
23172
+ pagination.currentPage = newVal.currentPage;
23173
+ pagination.pageSize = newVal.pageSize;
23174
+ pagination.total = newVal.total;
23175
+ }
23176
+ },
23177
+ { deep: true }
23178
+ );
23149
23179
  let selectInputVal = computed({
23150
23180
  get() {
23151
23181
  return props.inputValue;
@@ -23236,20 +23266,55 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
23236
23266
  );
23237
23267
  onMounted(() => {
23238
23268
  var _a;
23239
- if (state.defaultSelectValue && state.defaultSelectValue.length > 0 && isDefaultSelectVal.value) {
23240
- defaultSelect(state.defaultSelectValue);
23241
- }
23242
- if (props.selfExpanded) {
23243
- selectRef.value.expanded = true;
23244
- }
23245
- if (props.useVirtual) {
23246
- saveDATA.value = props.table.data;
23247
- isShowFirstRadio.value = false;
23248
- getDom(props);
23249
- (_a = scrollContainerEl.value) == null ? void 0 : _a.addEventListener("scroll", handleScroll);
23269
+ if (props.apiService) {
23270
+ fetchTableData();
23271
+ } else {
23272
+ if (state.defaultSelectValue && state.defaultSelectValue.length > 0 && isDefaultSelectVal.value) {
23273
+ defaultSelect(state.defaultSelectValue);
23274
+ }
23275
+ if (props.selfExpanded) {
23276
+ selectRef.value.expanded = true;
23277
+ }
23278
+ if (props.useVirtual) {
23279
+ saveDATA.value = props.table.data;
23280
+ isShowFirstRadio.value = false;
23281
+ getDom(props);
23282
+ (_a = scrollContainerEl.value) == null ? void 0 : _a.addEventListener("scroll", handleScroll);
23283
+ }
23284
+ if (props.radioSelectValLabel) findLabel();
23250
23285
  }
23251
- if (props.radioSelectValLabel) findLabel();
23252
23286
  });
23287
+ const internalLoading = ref(false);
23288
+ const internalQueryParams = reactive({ ...props.queryParams });
23289
+ const fetchTableData = async (isResetPage = false) => {
23290
+ if (!props.apiService) return;
23291
+ internalLoading.value = true;
23292
+ try {
23293
+ if (isResetPage) {
23294
+ pagination.currentPage = 1;
23295
+ }
23296
+ const requestParams = {
23297
+ currentPage: pagination.currentPage,
23298
+ pageSize: pagination.pageSize,
23299
+ ...internalQueryParams
23300
+ };
23301
+ const res = await useBaseApi(props.apiService).post(requestParams, props.apiAction);
23302
+ const formatted = props.responseFormatter(res);
23303
+ pagination.total = formatted.total;
23304
+ state.tableData = formatted.data;
23305
+ if (props.useVirtual) {
23306
+ saveDATA.value = formatted.data;
23307
+ updateRenderData(scrollTopNum.value);
23308
+ }
23309
+ if (state.defaultSelectValue && state.defaultSelectValue.length > 0 && isDefaultSelectVal.value) {
23310
+ defaultSelect(state.defaultSelectValue);
23311
+ }
23312
+ } catch (error) {
23313
+ console.error("FSelectTable API request failed:", error);
23314
+ } finally {
23315
+ internalLoading.value = false;
23316
+ }
23317
+ };
23253
23318
  const updateRenderData = (scrollTop) => {
23254
23319
  let startIndex = 0;
23255
23320
  let offsetHeight = 0;
@@ -23297,6 +23362,11 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
23297
23362
  } else {
23298
23363
  if (fQueryConditionRef.value && props.isShowQuery && props.isClearQuery && !selectRef.value.expanded && !props.selfExpanded) {
23299
23364
  (_a = fQueryConditionRef.value) == null ? void 0 : _a.resetData();
23365
+ if (props.apiService) {
23366
+ Object.keys(internalQueryParams).forEach((key) => delete internalQueryParams[key]);
23367
+ Object.assign(internalQueryParams, props.queryParams);
23368
+ fetchTableData(true);
23369
+ }
23300
23370
  }
23301
23371
  findLabel();
23302
23372
  filterMethodHandle("");
@@ -23374,6 +23444,10 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
23374
23444
  });
23375
23445
  };
23376
23446
  const handlesCurrentChange = (val) => {
23447
+ if (props.apiService) {
23448
+ fetchTableData();
23449
+ return;
23450
+ }
23377
23451
  if (props.multiple) {
23378
23452
  if (!props.reserveSelection) {
23379
23453
  clear();
@@ -23398,12 +23472,15 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
23398
23472
  setTimeout(() => {
23399
23473
  var _a, _b;
23400
23474
  state.defaultValue = multipleList.map((item) => item[props.keywords.label]);
23475
+ state.ids = multipleList.map((item) => item[props.keywords.value]);
23401
23476
  multipleList.forEach((row) => {
23402
23477
  selectTable.value.toggleRowSelection(row, true);
23403
23478
  });
23404
23479
  (_b = (_a = selectRef.value) == null ? void 0 : _a.selected) == null ? void 0 : _b.forEach((item) => {
23405
23480
  item.currentLabel = item.value;
23406
23481
  });
23482
+ modeValueId.value = state.ids;
23483
+ modeValueName.value = state.defaultValue;
23407
23484
  }, 0);
23408
23485
  } else {
23409
23486
  setTimeout(() => {
@@ -23412,6 +23489,8 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
23412
23489
  radioVal.value = state.tableData.indexOf(row) + 1;
23413
23490
  state.defaultValue = row;
23414
23491
  selectDefaultLabel.value = row[props.keywords.label];
23492
+ modeValueId.value = row[props.keywords.value];
23493
+ modeValueName.value = row[props.keywords.label];
23415
23494
  if (!props.defaultValIsOpenRadioChange) {
23416
23495
  emits("radioChange", row, row[props.keywords.value]);
23417
23496
  }
@@ -23428,6 +23507,10 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
23428
23507
  state.defaultSelectValue = [];
23429
23508
  }
23430
23509
  emits("selectionChange", val, state.ids);
23510
+ if (props.multiple) {
23511
+ modeValueId.value = state.ids;
23512
+ modeValueName.value = state.defaultValue;
23513
+ }
23431
23514
  };
23432
23515
  const getRowClassName = ({ row }) => {
23433
23516
  if (!props.multiple && JSON.stringify(row) === JSON.stringify(state.defaultValue)) {
@@ -23552,6 +23635,8 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
23552
23635
  radioVal.value = index;
23553
23636
  state.defaultValue = row;
23554
23637
  emits("radioChange", row, row[props.keywords.value]);
23638
+ modeValueId.value = row[props.keywords.value];
23639
+ modeValueName.value = row[props.keywords.label];
23555
23640
  };
23556
23641
  const rowClick = async (row) => {
23557
23642
  var _a;
@@ -23584,6 +23669,8 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
23584
23669
  isDefaultSelectVal.value = true;
23585
23670
  state.defaultSelectValue = [];
23586
23671
  state.defaultValue = props.multiple ? [] : null;
23672
+ modeValueId.value = props.multiple ? [] : 0;
23673
+ modeValueName.value = props.multiple ? [] : "";
23587
23674
  };
23588
23675
  if (!selectTable.value) {
23589
23676
  console.warn("selectTable.value is not initialized");
@@ -23667,7 +23754,7 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
23667
23754
  ref_key: "selectRef",
23668
23755
  ref: selectRef,
23669
23756
  "model-value": __props.multiple ? state.defaultValue : selectDefaultLabel.value,
23670
- "popper-class": "t-select-table",
23757
+ "popper-class": "f-select-table",
23671
23758
  style: { width: __props.selectWidth ? `${__props.selectWidth}px` : "100%" },
23672
23759
  "value-key": __props.keywords.value,
23673
23760
  "filter-method": __props.filterMethod || filterMethodHandle,
@@ -23847,18 +23934,18 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
23847
23934
  }, 16, ["data", "class"]),
23848
23935
  __props.isShowPagination ? (openBlock(), createElementBlock("div", _hoisted_4$8, [
23849
23936
  createVNode(_component_el_pagination, mergeProps({
23850
- "current-page": __props.table.currentPage,
23851
- "onUpdate:currentPage": _cache[6] || (_cache[6] = ($event) => __props.table.currentPage = $event),
23852
- "page-size": __props.table.pageSize,
23853
- "onUpdate:pageSize": _cache[7] || (_cache[7] = ($event) => __props.table.pageSize = $event),
23937
+ "current-page": pagination.currentPage,
23938
+ "onUpdate:currentPage": _cache[6] || (_cache[6] = ($event) => pagination.currentPage = $event),
23939
+ "page-size": pagination.pageSize,
23940
+ "onUpdate:pageSize": _cache[7] || (_cache[7] = ($event) => pagination.pageSize = $event),
23854
23941
  onCurrentChange: handlesCurrentChange,
23855
23942
  layout: "total, prev, pager, next, jumper",
23856
23943
  "pager-count": __props.table["pager-count"] || 5,
23857
- total: __props.table.total
23944
+ total: pagination.total
23858
23945
  }, { background: true, size: __props.paginationSize || "small", ..._ctx.$attrs }), null, 16, ["current-page", "page-size", "pager-count", "total"])
23859
23946
  ])) : createCommentVNode("v-if", true)
23860
23947
  ], 8, _hoisted_2$p)), [
23861
- [_directive_loading, __props.tableLoading]
23948
+ [_directive_loading, __props.tableLoading || internalLoading.value]
23862
23949
  ]),
23863
23950
  renderSlot(_ctx.$slots, "footer")
23864
23951
  ],
@@ -3,8 +3,13 @@ import { FSelectTableProps } from './src/type';
3
3
  export * from './src/type';
4
4
  export * from './src/ClickOutside';
5
5
  export declare const FSelectTable: {
6
- new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< FSelectTableProps> & Readonly<{
6
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
7
+ id?: any;
8
+ name?: any;
9
+ } & FSelectTableProps> & Readonly<{
7
10
  "onPage-change"?: ((val: any) => any) | undefined;
11
+ "onUpdate:id"?: ((value: any) => any) | undefined;
12
+ "onUpdate:name"?: ((value: any) => any) | undefined;
8
13
  onSelectionChange?: ((val: any[], ids: any[]) => any) | undefined;
9
14
  onRadioChange?: ((row: any, value: any) => any) | undefined;
10
15
  "onUpdate:inputValue"?: ((val: string) => any) | undefined;
@@ -72,6 +77,10 @@ export declare const FSelectTable: {
72
77
  readonly multipleDisableDelete: boolean;
73
78
  readonly tableLoading: boolean;
74
79
  readonly loadingTxt: string;
80
+ readonly apiService: string | undefined;
81
+ readonly apiAction: string;
82
+ readonly queryParams: Record<string, any>;
83
+ readonly responseFormatter: Function;
75
84
  } & {
76
85
  readonly value: boolean;
77
86
  readonly remote: boolean;
@@ -108,7 +117,10 @@ export declare const FSelectTable: {
108
117
  fQueryConditionRef: Ref<any, any>;
109
118
  selectRef: Ref<any, any>;
110
119
  selectTable: Ref<any, any>;
111
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
120
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
121
+ "update:id": (value: any) => any;
122
+ "update:name": (value: any) => any;
123
+ } & {
112
124
  "page-change": (val: any) => any;
113
125
  selectionChange: (val: any[], ids: any[]) => any;
114
126
  radioChange: (row: any, value: any) => any;
@@ -133,6 +145,8 @@ export declare const FSelectTable: {
133
145
  filterMethod: Function;
134
146
  modelValue: any;
135
147
  inputWidth: number;
148
+ apiService: string;
149
+ apiAction: string;
136
150
  filterable: boolean;
137
151
  isShowPagination: boolean;
138
152
  useVirtual: boolean;
@@ -171,6 +185,8 @@ export declare const FSelectTable: {
171
185
  multipleDisableDelete: boolean;
172
186
  tableLoading: boolean;
173
187
  loadingTxt: string;
188
+ queryParams: Record<string, any>;
189
+ responseFormatter: Function;
174
190
  }, false, {}, {}, GlobalComponents, GlobalDirectives, string, any, any, ComponentProvideOptions, {
175
191
  P: {};
176
192
  B: {};
@@ -178,8 +194,13 @@ export declare const FSelectTable: {
178
194
  C: {};
179
195
  M: {};
180
196
  Defaults: {};
181
- }, Readonly< FSelectTableProps> & Readonly<{
197
+ }, Readonly<{
198
+ id?: any;
199
+ name?: any;
200
+ } & FSelectTableProps> & Readonly<{
182
201
  "onPage-change"?: ((val: any) => any) | undefined;
202
+ "onUpdate:id"?: ((value: any) => any) | undefined;
203
+ "onUpdate:name"?: ((value: any) => any) | undefined;
183
204
  onSelectionChange?: ((val: any[], ids: any[]) => any) | undefined;
184
205
  onRadioChange?: ((row: any, value: any) => any) | undefined;
185
206
  "onUpdate:inputValue"?: ((val: string) => any) | undefined;
@@ -247,6 +268,10 @@ export declare const FSelectTable: {
247
268
  readonly multipleDisableDelete: boolean;
248
269
  readonly tableLoading: boolean;
249
270
  readonly loadingTxt: string;
271
+ readonly apiService: string | undefined;
272
+ readonly apiAction: string;
273
+ readonly queryParams: Record<string, any>;
274
+ readonly responseFormatter: Function;
250
275
  } & {
251
276
  readonly value: boolean;
252
277
  readonly remote: boolean;
@@ -299,6 +324,8 @@ export declare const FSelectTable: {
299
324
  filterMethod: Function;
300
325
  modelValue: any;
301
326
  inputWidth: number;
327
+ apiService: string;
328
+ apiAction: string;
302
329
  filterable: boolean;
303
330
  isShowPagination: boolean;
304
331
  useVirtual: boolean;
@@ -337,12 +364,19 @@ export declare const FSelectTable: {
337
364
  multipleDisableDelete: boolean;
338
365
  tableLoading: boolean;
339
366
  loadingTxt: string;
367
+ queryParams: Record<string, any>;
368
+ responseFormatter: Function;
340
369
  }>;
341
370
  __isFragment?: never;
342
371
  __isTeleport?: never;
343
372
  __isSuspense?: never;
344
- } & ComponentOptionsBase<Readonly< FSelectTableProps> & Readonly<{
373
+ } & ComponentOptionsBase<Readonly<{
374
+ id?: any;
375
+ name?: any;
376
+ } & FSelectTableProps> & Readonly<{
345
377
  "onPage-change"?: ((val: any) => any) | undefined;
378
+ "onUpdate:id"?: ((value: any) => any) | undefined;
379
+ "onUpdate:name"?: ((value: any) => any) | undefined;
346
380
  onSelectionChange?: ((val: any[], ids: any[]) => any) | undefined;
347
381
  onRadioChange?: ((row: any, value: any) => any) | undefined;
348
382
  "onUpdate:inputValue"?: ((val: string) => any) | undefined;
@@ -410,6 +444,10 @@ export declare const FSelectTable: {
410
444
  readonly multipleDisableDelete: boolean;
411
445
  readonly tableLoading: boolean;
412
446
  readonly loadingTxt: string;
447
+ readonly apiService: string | undefined;
448
+ readonly apiAction: string;
449
+ readonly queryParams: Record<string, any>;
450
+ readonly responseFormatter: Function;
413
451
  } & {
414
452
  readonly value: boolean;
415
453
  readonly remote: boolean;
@@ -446,7 +484,10 @@ export declare const FSelectTable: {
446
484
  fQueryConditionRef: Ref<any, any>;
447
485
  selectRef: Ref<any, any>;
448
486
  selectTable: Ref<any, any>;
449
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
487
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
488
+ "update:id": (value: any) => any;
489
+ "update:name": (value: any) => any;
490
+ } & {
450
491
  "page-change": (val: any) => any;
451
492
  selectionChange: (val: any[], ids: any[]) => any;
452
493
  radioChange: (row: any, value: any) => any;
@@ -471,6 +512,8 @@ export declare const FSelectTable: {
471
512
  filterMethod: Function;
472
513
  modelValue: any;
473
514
  inputWidth: number;
515
+ apiService: string;
516
+ apiAction: string;
474
517
  filterable: boolean;
475
518
  isShowPagination: boolean;
476
519
  useVirtual: boolean;
@@ -509,6 +552,8 @@ export declare const FSelectTable: {
509
552
  multipleDisableDelete: boolean;
510
553
  tableLoading: boolean;
511
554
  loadingTxt: string;
555
+ queryParams: Record<string, any>;
556
+ responseFormatter: Function;
512
557
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
513
558
  $slots: any;
514
559
  });
@@ -1,5 +1,6 @@
1
1
  import { FSelectTableProps } from './type';
2
2
  import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = FSelectTableProps;
3
4
  export type Emits = {
4
5
  (event: "page-change", val: any): void;
5
6
  (event: "selectionChange", val: any[], ids: any[]): void;
@@ -10,9 +11,13 @@ export type Emits = {
10
11
  (event: "input-clear"): void;
11
12
  (event: "input-click"): void;
12
13
  };
14
+ type __VLS_PublicProps = {
15
+ 'id'?: any;
16
+ 'name'?: any;
17
+ } & __VLS_Props;
13
18
  declare function __VLS_template(): any;
14
19
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
- declare const __VLS_component: DefineComponent<FSelectTableProps, {
20
+ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {
16
21
  focus: () => void;
17
22
  blur: () => void;
18
23
  clear: () => void;
@@ -72,6 +77,10 @@ declare const __VLS_component: DefineComponent<FSelectTableProps, {
72
77
  readonly multipleDisableDelete: boolean;
73
78
  readonly tableLoading: boolean;
74
79
  readonly loadingTxt: string;
80
+ readonly apiService: string | undefined;
81
+ readonly apiAction: string;
82
+ readonly queryParams: Record<string, any>;
83
+ readonly responseFormatter: Function;
75
84
  } & {
76
85
  readonly value: boolean;
77
86
  readonly remote: boolean;
@@ -108,7 +117,10 @@ declare const __VLS_component: DefineComponent<FSelectTableProps, {
108
117
  fQueryConditionRef: Ref<any, any>;
109
118
  selectRef: Ref<any, any>;
110
119
  selectTable: Ref<any, any>;
111
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
120
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
121
+ "update:id": (value: any) => any;
122
+ "update:name": (value: any) => any;
123
+ } & {
112
124
  "page-change": (val: any) => any;
113
125
  selectionChange: (val: any[], ids: any[]) => any;
114
126
  radioChange: (row: any, value: any) => any;
@@ -117,8 +129,10 @@ declare const __VLS_component: DefineComponent<FSelectTableProps, {
117
129
  "input-blur": () => any;
118
130
  "input-clear": () => any;
119
131
  "input-click": () => any;
120
- }, string, PublicProps, Readonly<FSelectTableProps> & Readonly<{
132
+ }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
121
133
  "onPage-change"?: ((val: any) => any) | undefined;
134
+ "onUpdate:id"?: ((value: any) => any) | undefined;
135
+ "onUpdate:name"?: ((value: any) => any) | undefined;
122
136
  onSelectionChange?: ((val: any[], ids: any[]) => any) | undefined;
123
137
  onRadioChange?: ((row: any, value: any) => any) | undefined;
124
138
  "onUpdate:inputValue"?: ((val: string) => any) | undefined;
@@ -142,6 +156,8 @@ declare const __VLS_component: DefineComponent<FSelectTableProps, {
142
156
  filterMethod: Function;
143
157
  modelValue: any;
144
158
  inputWidth: number;
159
+ apiService: string;
160
+ apiAction: string;
145
161
  filterable: boolean;
146
162
  isShowPagination: boolean;
147
163
  useVirtual: boolean;
@@ -180,6 +196,8 @@ declare const __VLS_component: DefineComponent<FSelectTableProps, {
180
196
  multipleDisableDelete: boolean;
181
197
  tableLoading: boolean;
182
198
  loadingTxt: string;
199
+ queryParams: Record<string, any>;
200
+ responseFormatter: Function;
183
201
  }, {}, {}, {}, string, ComponentProvideOptions, false, any, any>;
184
202
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
185
203
  export default _default;
@@ -53,4 +53,8 @@ export interface FSelectTableProps {
53
53
  multipleDisableDelete?: boolean;
54
54
  tableLoading?: boolean;
55
55
  loadingTxt?: string;
56
+ apiService?: string | undefined;
57
+ apiAction?: string | undefined;
58
+ queryParams?: Record<string, any>;
59
+ responseFormatter?: Function;
56
60
  }