@fmdeui/fmui 1.0.161 → 1.0.163

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.163 */
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.data.result.items || [],
23129
+ total: res.data.result.total || 0
23130
+ }) }
23131
+ }, {
23132
+ "id": { default: void 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;
@@ -23185,6 +23215,7 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
23185
23215
  () => props.table.data,
23186
23216
  (val) => {
23187
23217
  var _a, _b;
23218
+ if (props.apiService) return;
23188
23219
  if (props.useVirtual) {
23189
23220
  saveDATA.value = val;
23190
23221
  updateRenderData(scrollTopNum.value);
@@ -23236,20 +23267,55 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
23236
23267
  );
23237
23268
  onMounted(() => {
23238
23269
  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);
23270
+ if (props.apiService) {
23271
+ fetchTableData();
23272
+ } else {
23273
+ if (state.defaultSelectValue && state.defaultSelectValue.length > 0 && isDefaultSelectVal.value) {
23274
+ defaultSelect(state.defaultSelectValue);
23275
+ }
23276
+ if (props.selfExpanded) {
23277
+ selectRef.value.expanded = true;
23278
+ }
23279
+ if (props.useVirtual) {
23280
+ saveDATA.value = props.table.data;
23281
+ isShowFirstRadio.value = false;
23282
+ getDom(props);
23283
+ (_a = scrollContainerEl.value) == null ? void 0 : _a.addEventListener("scroll", handleScroll);
23284
+ }
23285
+ if (props.radioSelectValLabel) findLabel();
23250
23286
  }
23251
- if (props.radioSelectValLabel) findLabel();
23252
23287
  });
23288
+ const internalLoading = ref(false);
23289
+ const internalQueryParams = reactive({ ...props.queryParams });
23290
+ const fetchTableData = async (isResetPage = false) => {
23291
+ if (!props.apiService) return;
23292
+ internalLoading.value = true;
23293
+ try {
23294
+ if (isResetPage) {
23295
+ pagination.currentPage = 1;
23296
+ }
23297
+ const requestParams = {
23298
+ currentPage: pagination.currentPage,
23299
+ pageSize: pagination.pageSize,
23300
+ ...internalQueryParams
23301
+ };
23302
+ const res = await useBaseApi(props.apiService).post(requestParams, props.apiAction);
23303
+ const formatted = props.responseFormatter(res);
23304
+ pagination.total = formatted.total;
23305
+ state.tableData = formatted.data;
23306
+ if (props.useVirtual) {
23307
+ saveDATA.value = formatted.data;
23308
+ updateRenderData(scrollTopNum.value);
23309
+ }
23310
+ if (state.defaultSelectValue && state.defaultSelectValue.length > 0 && isDefaultSelectVal.value) {
23311
+ defaultSelect(state.defaultSelectValue);
23312
+ }
23313
+ } catch (error) {
23314
+ console.error("FSelectTable API request failed:", error);
23315
+ } finally {
23316
+ internalLoading.value = false;
23317
+ }
23318
+ };
23253
23319
  const updateRenderData = (scrollTop) => {
23254
23320
  let startIndex = 0;
23255
23321
  let offsetHeight = 0;
@@ -23297,6 +23363,11 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
23297
23363
  } else {
23298
23364
  if (fQueryConditionRef.value && props.isShowQuery && props.isClearQuery && !selectRef.value.expanded && !props.selfExpanded) {
23299
23365
  (_a = fQueryConditionRef.value) == null ? void 0 : _a.resetData();
23366
+ if (props.apiService) {
23367
+ Object.keys(internalQueryParams).forEach((key) => delete internalQueryParams[key]);
23368
+ Object.assign(internalQueryParams, props.queryParams);
23369
+ fetchTableData(true);
23370
+ }
23300
23371
  }
23301
23372
  findLabel();
23302
23373
  filterMethodHandle("");
@@ -23374,6 +23445,10 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
23374
23445
  });
23375
23446
  };
23376
23447
  const handlesCurrentChange = (val) => {
23448
+ if (props.apiService) {
23449
+ fetchTableData();
23450
+ return;
23451
+ }
23377
23452
  if (props.multiple) {
23378
23453
  if (!props.reserveSelection) {
23379
23454
  clear();
@@ -23398,12 +23473,15 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
23398
23473
  setTimeout(() => {
23399
23474
  var _a, _b;
23400
23475
  state.defaultValue = multipleList.map((item) => item[props.keywords.label]);
23476
+ state.ids = multipleList.map((item) => item[props.keywords.value]);
23401
23477
  multipleList.forEach((row) => {
23402
23478
  selectTable.value.toggleRowSelection(row, true);
23403
23479
  });
23404
23480
  (_b = (_a = selectRef.value) == null ? void 0 : _a.selected) == null ? void 0 : _b.forEach((item) => {
23405
23481
  item.currentLabel = item.value;
23406
23482
  });
23483
+ modeValueId.value = state.ids;
23484
+ modeValueName.value = state.defaultValue;
23407
23485
  }, 0);
23408
23486
  } else {
23409
23487
  setTimeout(() => {
@@ -23412,6 +23490,8 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
23412
23490
  radioVal.value = state.tableData.indexOf(row) + 1;
23413
23491
  state.defaultValue = row;
23414
23492
  selectDefaultLabel.value = row[props.keywords.label];
23493
+ modeValueId.value = row[props.keywords.value];
23494
+ modeValueName.value = row[props.keywords.label];
23415
23495
  if (!props.defaultValIsOpenRadioChange) {
23416
23496
  emits("radioChange", row, row[props.keywords.value]);
23417
23497
  }
@@ -23428,6 +23508,10 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
23428
23508
  state.defaultSelectValue = [];
23429
23509
  }
23430
23510
  emits("selectionChange", val, state.ids);
23511
+ if (props.multiple) {
23512
+ modeValueId.value = state.ids;
23513
+ modeValueName.value = state.defaultValue;
23514
+ }
23431
23515
  };
23432
23516
  const getRowClassName = ({ row }) => {
23433
23517
  if (!props.multiple && JSON.stringify(row) === JSON.stringify(state.defaultValue)) {
@@ -23552,6 +23636,8 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
23552
23636
  radioVal.value = index;
23553
23637
  state.defaultValue = row;
23554
23638
  emits("radioChange", row, row[props.keywords.value]);
23639
+ modeValueId.value = row[props.keywords.value];
23640
+ modeValueName.value = row[props.keywords.label];
23555
23641
  };
23556
23642
  const rowClick = async (row) => {
23557
23643
  var _a;
@@ -23584,6 +23670,8 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
23584
23670
  isDefaultSelectVal.value = true;
23585
23671
  state.defaultSelectValue = [];
23586
23672
  state.defaultValue = props.multiple ? [] : null;
23673
+ modeValueId.value = props.multiple ? [] : void 0;
23674
+ modeValueName.value = props.multiple ? [] : "";
23587
23675
  };
23588
23676
  if (!selectTable.value) {
23589
23677
  console.warn("selectTable.value is not initialized");
@@ -23667,7 +23755,7 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
23667
23755
  ref_key: "selectRef",
23668
23756
  ref: selectRef,
23669
23757
  "model-value": __props.multiple ? state.defaultValue : selectDefaultLabel.value,
23670
- "popper-class": "t-select-table",
23758
+ "popper-class": "f-select-table",
23671
23759
  style: { width: __props.selectWidth ? `${__props.selectWidth}px` : "100%" },
23672
23760
  "value-key": __props.keywords.value,
23673
23761
  "filter-method": __props.filterMethod || filterMethodHandle,
@@ -23847,18 +23935,18 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
23847
23935
  }, 16, ["data", "class"]),
23848
23936
  __props.isShowPagination ? (openBlock(), createElementBlock("div", _hoisted_4$8, [
23849
23937
  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),
23938
+ "current-page": pagination.currentPage,
23939
+ "onUpdate:currentPage": _cache[6] || (_cache[6] = ($event) => pagination.currentPage = $event),
23940
+ "page-size": pagination.pageSize,
23941
+ "onUpdate:pageSize": _cache[7] || (_cache[7] = ($event) => pagination.pageSize = $event),
23854
23942
  onCurrentChange: handlesCurrentChange,
23855
23943
  layout: "total, prev, pager, next, jumper",
23856
23944
  "pager-count": __props.table["pager-count"] || 5,
23857
- total: __props.table.total
23945
+ total: pagination.total
23858
23946
  }, { background: true, size: __props.paginationSize || "small", ..._ctx.$attrs }), null, 16, ["current-page", "page-size", "pager-count", "total"])
23859
23947
  ])) : createCommentVNode("v-if", true)
23860
23948
  ], 8, _hoisted_2$p)), [
23861
- [_directive_loading, __props.tableLoading]
23949
+ [_directive_loading, __props.tableLoading || internalLoading.value]
23862
23950
  ]),
23863
23951
  renderSlot(_ctx.$slots, "footer")
23864
23952
  ],
@@ -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
  }