cnhis-design-vue 3.0.6 → 3.0.9

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,6 +1,6 @@
1
- import { computed, watch, defineComponent, openBlock, createElementBlock, unref, createCommentVNode, createElementVNode, toDisplayString, ref, createVNode, withCtx, normalizeClass, renderSlot, createTextVNode, mergeProps, reactive, h, resolveComponent, inject, nextTick, createApp, Teleport, provide, onMounted, onUnmounted, getCurrentInstance, onBeforeUnmount, onActivated, onDeactivated, isVNode, useAttrs, normalizeStyle, withDirectives, vShow, Fragment, createBlock } from 'vue';
1
+ import { computed, watch, defineComponent, createVNode, mergeProps, reactive, openBlock, createElementBlock, unref, createCommentVNode, createElementVNode, toDisplayString, ref, withCtx, normalizeClass, renderSlot, createTextVNode, h, resolveComponent, inject, nextTick, createApp, Teleport, provide, onMounted, onUnmounted, getCurrentInstance, onBeforeUnmount, onActivated, onDeactivated, isVNode, useAttrs, normalizeStyle, withDirectives, vShow, Fragment, createBlock } from 'vue';
2
+ import { NInput, NInputNumber, NSelect, NDatePicker, NTooltip, useMessage, NIcon, NPopconfirm, NButton, NInputGroup, NCheckbox, NCheckboxGroup, NSpace, NProgress, NDropdown, NSwitch, NPopover } from 'naive-ui';
2
3
  import { SettingsSharp, CaretDown, CaretForward, CopyOutline, SyncOutline } from '@vicons/ionicons5';
3
- import { NTooltip, NInput, NInputNumber, NSelect, NDatePicker, useMessage, NIcon, NPopconfirm, NButton, NInputGroup, NCheckbox, NCheckboxGroup, NSpace, NProgress, NDropdown, NSwitch, NPopover } from 'naive-ui';
4
4
 
5
5
  const bigTableState = {
6
6
  curAbleCheckedLen: 0,
@@ -54,7 +54,7 @@ const bigTableState = {
54
54
 
55
55
  const bigTableProps = {
56
56
  data: { type: Array, default: () => [] },
57
- MAX_CHECK_SIZE: { type: Number, default: 0 },
57
+ maxCheckSize: { type: Number, default: 0 },
58
58
  showFooter: Boolean,
59
59
  sumData: { type: Object, default: () => ({}) },
60
60
  avgData: { type: Object, default: () => ({}) },
@@ -210,7 +210,8 @@ const bigTableEmits = [
210
210
  "selectionChangeLocal",
211
211
  "switchBtnOnChange",
212
212
  "asyncTableChange",
213
- "formChange"
213
+ "formChange",
214
+ "scroll"
214
215
  ];
215
216
 
216
217
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
@@ -13254,6 +13255,197 @@ const useNestTable = (props, state, emit) => {
13254
13255
  };
13255
13256
  };
13256
13257
 
13258
+ var script$6 = defineComponent({
13259
+ name: "EditInput",
13260
+ inheritAttrs: false,
13261
+ components: {
13262
+ NInput,
13263
+ NInputNumber
13264
+ },
13265
+ props: {
13266
+ type: {
13267
+ type: String,
13268
+ default: "input"
13269
+ },
13270
+ col: {
13271
+ type: Object,
13272
+ default: () => ({})
13273
+ },
13274
+ row: {
13275
+ type: Object,
13276
+ default: () => ({})
13277
+ },
13278
+ index: {
13279
+ type: [Number, Object],
13280
+ default: 0
13281
+ }
13282
+ },
13283
+ emits: ["formChange"],
13284
+ setup(props, { attrs, slots, emit }) {
13285
+ const onUpdateValue = (value) => {
13286
+ emit("formChange", {
13287
+ value,
13288
+ row: props.row,
13289
+ column: props.col,
13290
+ index: props.index
13291
+ });
13292
+ };
13293
+ return () => props.type === "input" ? createVNode(NInput, mergeProps(attrs, {
13294
+ "onUpdateValue": onUpdateValue
13295
+ }), null) : createVNode(NInputNumber, mergeProps(attrs, {
13296
+ "onUpdateValue": onUpdateValue
13297
+ }), null);
13298
+ }
13299
+ });
13300
+
13301
+ script$6.__file = "packages/big-table/src/components/edit-form/edit-input.vue";
13302
+
13303
+ var script$5 = defineComponent({
13304
+ name: "EditSelect",
13305
+ inheritAttrs: false,
13306
+ components: {
13307
+ NSelect
13308
+ },
13309
+ props: {
13310
+ col: {
13311
+ type: Object,
13312
+ default: () => ({})
13313
+ },
13314
+ row: {
13315
+ type: Object,
13316
+ default: () => ({})
13317
+ },
13318
+ index: {
13319
+ type: [Number, Object],
13320
+ default: 0
13321
+ }
13322
+ },
13323
+ emits: ["setOptions", "formChange"],
13324
+ setup(props, { attrs, slots, emit }) {
13325
+ const state = reactive({
13326
+ options: []
13327
+ });
13328
+ const setOptions = async () => {
13329
+ if (props.col.options) {
13330
+ state.options = JSON.parse(JSON.stringify(props.col.options));
13331
+ }
13332
+ else {
13333
+ const optionsName = `${props.col.columnName}_options`;
13334
+ state.options = props.row[optionsName] || await props.col.queryOptions();
13335
+ if (!props.row[optionsName]) {
13336
+ emit("setOptions", state.options);
13337
+ }
13338
+ }
13339
+ };
13340
+ setOptions();
13341
+ const onUpdateValue = (value) => {
13342
+ emit("formChange", {
13343
+ value,
13344
+ row: props.row,
13345
+ column: props.col,
13346
+ index: props.index
13347
+ });
13348
+ };
13349
+ console.log(attrs);
13350
+ return () => [createVNode(NSelect, mergeProps(attrs, {
13351
+ "options": state.options,
13352
+ "consistentMenuWidth": false,
13353
+ "clearable": true,
13354
+ "filterable": true,
13355
+ "to": false,
13356
+ "placeholder": "\u8BF7\u9009\u62E9",
13357
+ "onUpdateValue": onUpdateValue
13358
+ }), null)];
13359
+ }
13360
+ });
13361
+
13362
+ script$5.__file = "packages/big-table/src/components/edit-form/edit-select.vue";
13363
+
13364
+ var script$4 = defineComponent({
13365
+ name: "EditDate",
13366
+ inheritAttrs: false,
13367
+ components: {
13368
+ NDatePicker
13369
+ },
13370
+ props: {
13371
+ col: {
13372
+ type: Object,
13373
+ default: () => ({})
13374
+ },
13375
+ row: {
13376
+ type: Object,
13377
+ default: () => ({})
13378
+ },
13379
+ index: {
13380
+ type: [Number, Object],
13381
+ default: 0
13382
+ }
13383
+ },
13384
+ emits: ["formChange"],
13385
+ setup(props, { attrs, slots, emit }) {
13386
+ const onConfirm = (value) => {
13387
+ emit("formChange", {
13388
+ value,
13389
+ row: props.row,
13390
+ column: props.col,
13391
+ index: props.index
13392
+ });
13393
+ };
13394
+ const { isStartDate = false, isEndDate = false, connectField } = props.col;
13395
+ const setDateDisabled = (cur, date) => {
13396
+ if (isStartDate && connectField) {
13397
+ return cur > date;
13398
+ }
13399
+ if (isEndDate && connectField) {
13400
+ return cur < date;
13401
+ }
13402
+ return false;
13403
+ };
13404
+ const isDateDisabled = (ts) => {
13405
+ return setDateDisabled(ts, new Date(props.row[connectField]).getTime());
13406
+ };
13407
+ const isTimeDisabled = (ts) => {
13408
+ const date = new Date(props.row[connectField] || ts);
13409
+ const h = date.getHours();
13410
+ const m = date.getMinutes();
13411
+ const s = date.getSeconds();
13412
+ return {
13413
+ isHourDisabled: (hour) => {
13414
+ return setDateDisabled(hour, h);
13415
+ },
13416
+ isMinuteDisabled: (minute) => {
13417
+ return setDateDisabled(minute, m);
13418
+ },
13419
+ isSecondDisabled: (second) => {
13420
+ return setDateDisabled(second, s);
13421
+ }
13422
+ };
13423
+ };
13424
+ const config = {
13425
+ type: props.col.type || "datetime",
13426
+ clearable: props.col.clearable || true,
13427
+ disabled: props.col.disabled || false,
13428
+ valueFormat: props.col.valueFormat || "yyyy-MM-dd HH:mm:ss",
13429
+ to: false,
13430
+ isDateDisabled: props.col.isDateDisabled || isDateDisabled
13431
+ };
13432
+ if (config.type.includes("time")) {
13433
+ config.isTimeDisabled = props.col.isTimeDisabled || isTimeDisabled;
13434
+ }
13435
+ return () => createVNode(NDatePicker, mergeProps(attrs, config, {
13436
+ "onUpdateFormattedValue": onConfirm
13437
+ }), null);
13438
+ }
13439
+ });
13440
+
13441
+ script$4.__file = "packages/big-table/src/components/edit-form/edit-date.vue";
13442
+
13443
+ const comps = {
13444
+ "input": script$6,
13445
+ "number": script$6,
13446
+ "select": script$5,
13447
+ "date": script$4
13448
+ };
13257
13449
  const useEdit = (props, state, emit, xGrid) => {
13258
13450
  const initEditTable = async () => {
13259
13451
  const { isEdit, fieldList = [] } = props.columnConfig;
@@ -13309,14 +13501,35 @@ const useEdit = (props, state, emit, xGrid) => {
13309
13501
  await xGrid.value.insertAt(record, getInsertRecords.at(-1));
13310
13502
  xGrid.value.clearActived();
13311
13503
  };
13312
- const onFormChange = ({ value, row, column }) => {
13313
- emit("formChange", { value, row, column });
13504
+ const getLabel = (opts, value) => {
13505
+ return opts.find((opt) => opt.value === value)?.label || "";
13506
+ };
13507
+ const onFormChange = ({ value, row, column, index }) => {
13508
+ let oldValue = row[column.columnName];
13509
+ if ((column?.formType === "input" || column?.formType === "number") && props.columnConfig?.formValidate) {
13510
+ row[column.columnName] = props.columnConfig?.formValidate({ row, column, current: value, old: row[column.columnName] });
13511
+ }
13512
+ else if (column?.formatMap) {
13513
+ oldValue = {
13514
+ label: row[column.formatMap.label],
13515
+ value: row[column.formatMap.value]
13516
+ };
13517
+ row[column.formatMap.label] = getLabel(row[column.columnName + "_options"] || [], value);
13518
+ row[column.formatMap.value] = value;
13519
+ }
13520
+ else {
13521
+ row[column.columnName] = value;
13522
+ }
13523
+ emit("formChange", { value, row, column, index, oldValue });
13314
13524
  };
13315
13525
  const getDefaultValue = (params, item) => {
13316
13526
  const value = params.row[item.columnName];
13317
13527
  if (item.formType === "select") {
13528
+ if (item.formatMap) {
13529
+ return params.row[item.formatMap.label];
13530
+ }
13318
13531
  if (item.options) {
13319
- return item.options.find((v) => v.value === value)?.label || "";
13532
+ return item.options.find((v) => v.value == value)?.label || "";
13320
13533
  }
13321
13534
  if (item.queryOptions) {
13322
13535
  return params.row[`${item.columnName}_options`]?.find((v) => v.value === value)?.label || "";
@@ -13346,7 +13559,7 @@ var img$3 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQQAAADKCAYAAABDnT56A
13346
13559
  const _hoisted_1$3 = { class: "no-data-tip NoData-page" };
13347
13560
  const _hoisted_2$2 = ["src"];
13348
13561
  const _hoisted_3$1 = { key: 1 };
13349
- var script$6 = /* @__PURE__ */ defineComponent({
13562
+ var script$3 = /* @__PURE__ */ defineComponent({
13350
13563
  props: {
13351
13564
  noDataTip: {
13352
13565
  type: String,
@@ -13407,14 +13620,14 @@ var script$6 = /* @__PURE__ */ defineComponent({
13407
13620
  }
13408
13621
  });
13409
13622
 
13410
- script$6.__scopeId = "data-v-4a4b0812";
13411
- script$6.__file = "packages/big-table/src/components/NoData.vue";
13623
+ script$3.__scopeId = "data-v-4a4b0812";
13624
+ script$3.__file = "packages/big-table/src/components/NoData.vue";
13412
13625
 
13413
13626
  const _hoisted_1$2 = { class: "text-over-tooltip-components" };
13414
13627
  const __default__$2 = {
13415
13628
  name: "TextOverTooltip"
13416
13629
  };
13417
- var script$5 = /* @__PURE__ */ defineComponent({
13630
+ var script$2 = /* @__PURE__ */ defineComponent({
13418
13631
  ...__default__$2,
13419
13632
  props: {
13420
13633
  content: { type: [String, Number], required: false },
@@ -13482,15 +13695,15 @@ var script$5 = /* @__PURE__ */ defineComponent({
13482
13695
  }
13483
13696
  });
13484
13697
 
13485
- script$5.__scopeId = "data-v-6633a934";
13486
- script$5.__file = "packages/big-table/src/components/TextOverTooltip.vue";
13698
+ script$2.__scopeId = "data-v-6633a934";
13699
+ script$2.__file = "packages/big-table/src/components/TextOverTooltip.vue";
13487
13700
 
13488
13701
  const _hoisted_1$1 = { key: 0 };
13489
13702
  const _hoisted_2$1 = ["xlink:href"];
13490
13703
  const __default__$1 = {
13491
13704
  name: "SvgIcon"
13492
13705
  };
13493
- var script$4 = /* @__PURE__ */ defineComponent({
13706
+ var script$1 = /* @__PURE__ */ defineComponent({
13494
13707
  ...__default__$1,
13495
13708
  props: {
13496
13709
  iconClass: { type: String, required: true, default: "" },
@@ -13520,159 +13733,8 @@ var script$4 = /* @__PURE__ */ defineComponent({
13520
13733
  }
13521
13734
  });
13522
13735
 
13523
- script$4.__scopeId = "data-v-d1ad5be8";
13524
- script$4.__file = "src/component/svg/index.vue";
13525
-
13526
- var script$3 = defineComponent({
13527
- name: "EditInput",
13528
- inheritAttrs: false,
13529
- components: {
13530
- NInput,
13531
- NInputNumber
13532
- },
13533
- props: {
13534
- type: {
13535
- type: String,
13536
- default: "input"
13537
- },
13538
- col: {
13539
- type: Object,
13540
- default: () => ({})
13541
- },
13542
- row: {
13543
- type: Object,
13544
- default: () => ({})
13545
- },
13546
- index: {
13547
- type: [Number, Object],
13548
- default: 0
13549
- }
13550
- },
13551
- emits: ["formChange"],
13552
- setup(props, { attrs, slots, emit }) {
13553
- const onUpdateValue = (value) => {
13554
- emit("formChange", {
13555
- value,
13556
- row: props.row,
13557
- column: props.col,
13558
- index: props.index
13559
- });
13560
- };
13561
- return () => props.type === "input" ? createVNode(NInput, mergeProps(attrs, {
13562
- "onUpdateValue": onUpdateValue
13563
- }), null) : createVNode(NInputNumber, mergeProps(attrs, {
13564
- "onUpdateValue": onUpdateValue
13565
- }), null);
13566
- }
13567
- });
13568
-
13569
- script$3.__file = "packages/big-table/src/components/edit-form/edit-input.vue";
13570
-
13571
- var script$2 = defineComponent({
13572
- name: "EditSelect",
13573
- inheritAttrs: false,
13574
- components: {
13575
- NSelect
13576
- },
13577
- props: {
13578
- col: {
13579
- type: Object,
13580
- default: () => ({})
13581
- },
13582
- row: {
13583
- type: Object,
13584
- default: () => ({})
13585
- },
13586
- index: {
13587
- type: [Number, Object],
13588
- default: 0
13589
- }
13590
- },
13591
- emits: ["setOptions", "formChange"],
13592
- setup(props, { attrs, slots, emit }) {
13593
- const state = reactive({
13594
- options: []
13595
- });
13596
- const setOptions = async () => {
13597
- if (props.col.options) {
13598
- state.options = JSON.parse(JSON.stringify(props.col.options));
13599
- }
13600
- else {
13601
- const optionsName = `${props.col.columnName}_options`;
13602
- state.options = props.row[optionsName] || await props.col.queryOptions();
13603
- if (!props.row[optionsName]) {
13604
- emit("setOptions", state.options);
13605
- }
13606
- }
13607
- };
13608
- setOptions();
13609
- const onUpdateValue = (value) => {
13610
- emit("formChange", {
13611
- value,
13612
- row: props.row,
13613
- column: props.col,
13614
- index: props.index
13615
- });
13616
- };
13617
- return () => [createVNode(NSelect, mergeProps(attrs, {
13618
- "options": state.options,
13619
- "consistentMenuWidth": false,
13620
- "clearable": true,
13621
- "filterable": true,
13622
- "to": false,
13623
- "placeholder": "\u8BF7\u9009\u62E9",
13624
- "onUpdateValue": onUpdateValue
13625
- }), null)];
13626
- }
13627
- });
13628
-
13629
- script$2.__file = "packages/big-table/src/components/edit-form/edit-select.vue";
13630
-
13631
- var script$1 = defineComponent({
13632
- name: "EditDate",
13633
- inheritAttrs: false,
13634
- components: {
13635
- NDatePicker
13636
- },
13637
- props: {
13638
- col: {
13639
- type: Object,
13640
- default: () => ({})
13641
- },
13642
- row: {
13643
- type: Object,
13644
- default: () => ({})
13645
- },
13646
- index: {
13647
- type: [Number, Object],
13648
- default: 0
13649
- }
13650
- },
13651
- emits: ["formChange"],
13652
- setup(props, { attrs, slots, emit }) {
13653
- const onConfirm = (value, formattedValue) => {
13654
- console.log("\u65F6\u95F4\u9009\u62E9->", value);
13655
- emit("formChange", {
13656
- value,
13657
- row: props.row,
13658
- column: props.col,
13659
- index: props.index
13660
- });
13661
- };
13662
- const config = {
13663
- type: props.col.type || "datetime",
13664
- clearable: props.col.clearable || true,
13665
- disabled: props.col.disabled || false,
13666
- valueFormat: props.col.valueFormat || "yyyy-MM-dd HH:mm:ss",
13667
- to: false
13668
- };
13669
- return () => createVNode(NDatePicker, mergeProps(attrs, config, {
13670
- "onConfirm": onConfirm
13671
- }), null);
13672
- }
13673
- });
13674
-
13675
- script$1.__file = "packages/big-table/src/components/edit-form/edit-date.vue";
13736
+ script$1.__scopeId = "data-v-d1ad5be8";
13737
+ script$1.__file = "src/component/svg/index.vue";
13676
13738
 
13677
13739
  var iconPrefix = 'vxe-icon--';
13678
13740
  var GlobalConfig = {
@@ -39515,7 +39577,7 @@ var script = /* @__PURE__ */ defineComponent({
39515
39577
  });
39516
39578
  const visibleCancelCheckAllBtn = computed(() => {
39517
39579
  let isCurrentPageAllCheck = state.currentPageSelectedLength === state.curAbleCheckedLen;
39518
- let isMaxChecked = currentCheckedKeys.value.length === props.MAX_CHECK_SIZE;
39580
+ let isMaxChecked = currentCheckedKeys.value.length === props.maxCheckSize;
39519
39581
  let isCheckedTotal = currentCheckedKeys.value.length === props.pageVO.total;
39520
39582
  return isMaxChecked || !isCurrentPageAllCheck || isCheckedTotal;
39521
39583
  });
@@ -39841,37 +39903,35 @@ var script = /* @__PURE__ */ defineComponent({
39841
39903
  const formatterEdit = (params, col) => {
39842
39904
  let { row, column, $rowIndex, rowIndex } = params;
39843
39905
  let formType = column.formType || col.formType || "";
39906
+ let formatMap = column.formatMap || col.formatMap || null;
39907
+ if (!formType)
39908
+ return null;
39844
39909
  if (formType === "custom") {
39845
39910
  return col.slotFn(params);
39846
39911
  }
39912
+ const Comp = comps[formType] || "";
39913
+ if (!Comp)
39914
+ return null;
39847
39915
  const propsData = {
39848
39916
  col,
39849
39917
  row,
39850
- index: $rowIndex
39918
+ index: $rowIndex,
39919
+ type: formType,
39920
+ onFormChange
39851
39921
  };
39852
- if (formType === "input" || formType === "number") {
39853
- return createVNode(script$3, mergeProps(propsData, {
39854
- "type": formType,
39855
- "value": row[col.columnName],
39856
- "onUpdate:value": ($event) => row[col.columnName] = $event,
39857
- "onFormChange": onFormChange
39858
- }), null);
39922
+ if (formType === "date") {
39923
+ propsData.defaultFormattedValue = row[col.columnName];
39859
39924
  }
39860
- if (formType === "select") {
39861
- return createVNode(script$2, mergeProps(propsData, {
39862
- "value": row[col.columnName],
39863
- "onUpdate:value": ($event) => row[col.columnName] = $event,
39864
- "onSetOptions": (options) => row[`${col.columnName}_options`] = options,
39865
- "onFormChange": onFormChange
39866
- }), null);
39925
+ else if (formatMap) {
39926
+ propsData.defaultValue = row[formatMap.value];
39867
39927
  }
39868
- if (formType === "date") {
39869
- return createVNode(script$1, mergeProps(propsData, {
39870
- "formattedValue": row[col.columnName],
39871
- "onUpdate:formattedValue": ($event) => row[col.columnName] = $event,
39872
- "onFormChange": onFormChange
39873
- }), null);
39928
+ else {
39929
+ propsData.defaultValue = row[col.columnName];
39874
39930
  }
39931
+ if (formType === "select") {
39932
+ propsData.onSetOptions = (options) => row[`${col.columnName}_options`] = options;
39933
+ }
39934
+ return createVNode(Comp, propsData, null);
39875
39935
  };
39876
39936
  const getEditBtn = (row, col, index) => {
39877
39937
  return col.tileBtnList?.map((btn) => {
@@ -39967,7 +40027,7 @@ var script = /* @__PURE__ */ defineComponent({
39967
40027
  return getOrCode(row, own, attrType);
39968
40028
  }
39969
40029
  if (column.property === "operatorColumn") {
39970
- if (props.columnConfig.isEdit) {
40030
+ if (props.columnConfig.isEdit && !row.initRow) {
39971
40031
  return getEditBtn(row, col, $rowIndex);
39972
40032
  }
39973
40033
  if (state.showButtonTop != 0 || props.isBatchEditing)
@@ -40252,13 +40312,13 @@ var script = /* @__PURE__ */ defineComponent({
40252
40312
  isAlias = !!tooltipTitle;
40253
40313
  }
40254
40314
  if (type === "format")
40255
- return createVNode(script$5, {
40315
+ return createVNode(script$2, {
40256
40316
  "tooltipTitle": tooltipTitle,
40257
40317
  "content": name,
40258
40318
  "isAlias": isAlias
40259
40319
  }, null);
40260
40320
  return () => {
40261
- return [createVNode(script$5, {
40321
+ return [createVNode(script$2, {
40262
40322
  "tooltipTitle": tooltipTitle,
40263
40323
  "content": name,
40264
40324
  "isAlias": isAlias
@@ -40302,8 +40362,8 @@ var script = /* @__PURE__ */ defineComponent({
40302
40362
  emit("refreshTable");
40303
40363
  };
40304
40364
  const handleCheckAll = () => {
40305
- if (props.pageVO.total > props.MAX_CHECK_SIZE) {
40306
- let text = `\u5F53\u524D\u5217\u8868\u5171${props.pageVO.total}\u6761\u6570\u636E\uFF0C\u4E3A\u4E86\u786E\u4FDD\u7CFB\u7EDF\u5B89\u5168\uFF0C\u53EA\u80FD\u5355\u6B21\u64CD\u4F5C${props.MAX_CHECK_SIZE}\u6761\uFF0C\u4F60\u53EF\u4EE5\u901A\u8FC7\u9AD8\u7EA7\u7B5B\u9009\u8FC7\u6EE4\u518D\u6B21\u5C1D\u8BD5`;
40365
+ if (props.pageVO.total > props.maxCheckSize) {
40366
+ let text = `\u5F53\u524D\u5217\u8868\u5171${props.pageVO.total}\u6761\u6570\u636E\uFF0C\u4E3A\u4E86\u786E\u4FDD\u7CFB\u7EDF\u5B89\u5168\uFF0C\u53EA\u80FD\u5355\u6B21\u64CD\u4F5C${props.maxCheckSize}\u6761\uFF0C\u4F60\u53EF\u4EE5\u901A\u8FC7\u9AD8\u7EA7\u7B5B\u9009\u8FC7\u6EE4\u518D\u6B21\u5C1D\u8BD5`;
40307
40367
  window.$message.warning(text);
40308
40368
  }
40309
40369
  emit("selectionChangeAll");
@@ -40391,7 +40451,7 @@ var script = /* @__PURE__ */ defineComponent({
40391
40451
  };
40392
40452
  const setChecklist = (list) => {
40393
40453
  return list.map((i) => {
40394
- i["checked"] = false;
40454
+ i["checked"] = i.checked || false;
40395
40455
  if (state.isTree == 2) {
40396
40456
  const treeNodeKey = state.levelLazyLoadSetting.childCountKey;
40397
40457
  const { isTreeOrList = "" } = props.tableParams;
@@ -40681,8 +40741,8 @@ var script = /* @__PURE__ */ defineComponent({
40681
40741
  const addCheckedRows = (rows) => {
40682
40742
  removeCheckedDisabledRows(state);
40683
40743
  let checkedRows = state.checkedRows;
40684
- if (currentCheckedKeys.value.length + rows.length > props.MAX_CHECK_SIZE) {
40685
- window.$message.warning(`\u4E3A\u4E86\u4FDD\u8BC1\u7CFB\u7EDF\u5B89\u5168\uFF0C\u5355\u6B21\u64CD\u4F5C\u6570\u636E\u91CF\u9650\u989D\u4E3A${props.MAX_CHECK_SIZE}\u6761\uFF0C\u4F60\u53EF\u4EE5\u901A\u8FC7\u9AD8\u7EA7\u7B5B\u9009\u8FC7\u6EE4\u540E\u518D\u6B21\u5C1D\u8BD5`);
40744
+ if (currentCheckedKeys.value.length + rows.length > props.maxCheckSize) {
40745
+ window.$message.warning(`\u4E3A\u4E86\u4FDD\u8BC1\u7CFB\u7EDF\u5B89\u5168\uFF0C\u5355\u6B21\u64CD\u4F5C\u6570\u636E\u91CF\u9650\u989D\u4E3A${props.maxCheckSize}\u6761\uFF0C\u4F60\u53EF\u4EE5\u901A\u8FC7\u9AD8\u7EA7\u7B5B\u9009\u8FC7\u6EE4\u540E\u518D\u6B21\u5C1D\u8BD5`);
40686
40746
  return false;
40687
40747
  }
40688
40748
  let newCheckedRows = rows.filter((row) => {
@@ -40751,10 +40811,21 @@ var script = /* @__PURE__ */ defineComponent({
40751
40811
  emit("setNestTableClickSetting", props.isNestTable);
40752
40812
  emit("showDrawer", theads);
40753
40813
  };
40814
+ let scrollEvent = (params) => {
40815
+ emit("scroll", params);
40816
+ };
40817
+ const initScroll = () => {
40818
+ const { throttle = false, throttleTime = 800, throttleOptions = {} } = props.columnConfig?.scrollConfig || {};
40819
+ if (throttle) {
40820
+ scrollEvent = xeUtils.throttle(scrollEvent, throttleTime, throttleOptions);
40821
+ }
40822
+ };
40823
+ initScroll();
40754
40824
  const handlerScroll = (params) => {
40755
40825
  if (params.isX) {
40756
40826
  hideFilterWrap(state, props);
40757
40827
  }
40828
+ scrollEvent(params);
40758
40829
  };
40759
40830
  const handleCellMouseenter = ({ column, $event }) => {
40760
40831
  if (column.showOverflow === "title") {
@@ -40812,7 +40883,7 @@ var script = /* @__PURE__ */ defineComponent({
40812
40883
  return createVNode(NPopconfirm, {
40813
40884
  "onPositiveClick": () => confirmScanMulti(params)
40814
40885
  }, {
40815
- trigger: () => createVNode(script$4, {
40886
+ trigger: () => createVNode(script$1, {
40816
40887
  "class": "scan-multi-delete",
40817
40888
  "iconClass": "shanchu"
40818
40889
  }, null),
@@ -41025,7 +41096,7 @@ var script = /* @__PURE__ */ defineComponent({
41025
41096
  }, [createVNode("img", {
41026
41097
  "class": "bigTable-qr-img",
41027
41098
  "src": src
41028
- }, null), createVNode("span", null, [createVNode(script$4, {
41099
+ }, null), createVNode("span", null, [createVNode(script$1, {
41029
41100
  "iconClass": "fangda"
41030
41101
  }, null)])])];
41031
41102
  };
@@ -41109,7 +41180,7 @@ var script = /* @__PURE__ */ defineComponent({
41109
41180
  }
41110
41181
  else {
41111
41182
  icon = createVNode(NTooltip, null, {
41112
- trigger: () => createVNode(script$4, {
41183
+ trigger: () => createVNode(script$1, {
41113
41184
  "iconClass": btn.icon,
41114
41185
  "style": {
41115
41186
  marginRight: mr
@@ -41120,7 +41191,7 @@ var script = /* @__PURE__ */ defineComponent({
41120
41191
  }
41121
41192
  }
41122
41193
  else if (btn.iconSetting) {
41123
- icon = createVNode(script$4, {
41194
+ icon = createVNode(script$1, {
41124
41195
  "iconClass": JSON.parse(btn.iconSetting).icon,
41125
41196
  "style": {
41126
41197
  marginRight: mr
@@ -41478,7 +41549,7 @@ var script = /* @__PURE__ */ defineComponent({
41478
41549
  key: 0,
41479
41550
  class: "check-wrap-btn",
41480
41551
  onClick: handleCheckAll
41481
- }, [_ctx.pageVO.total > _ctx.MAX_CHECK_SIZE ? (openBlock(), createElementBlock("span", _hoisted_5, [createCommentVNode(" {{ `\u6700\u5927\u52FE\u9009\u201C${tableName}\u201D ${MAX_CHECK_SIZE}\u6761\u6570\u636E` }} "), createTextVNode(toDisplayString(`\u52FE\u9009\u5168\u90E8\u9875 ${_ctx.MAX_CHECK_SIZE}\u6761\u6570\u636E`), 1)])) : (openBlock(), createElementBlock("span", _hoisted_6, [createCommentVNode(' {{ $t("1.9.598", { name: tableName, total }) }} '), createTextVNode(toDisplayString(`\u52FE\u9009\u5168\u90E8\u9875 ${_ctx.pageVO.total}\u6761\u6570\u636E`), 1)]))])) : (openBlock(), createElementBlock("p", {
41552
+ }, [_ctx.pageVO.total > _ctx.maxCheckSize ? (openBlock(), createElementBlock("span", _hoisted_5, [createCommentVNode(" {{ `\u6700\u5927\u52FE\u9009\u201C${tableName}\u201D ${maxCheckSize}\u6761\u6570\u636E` }} "), createTextVNode(toDisplayString(`\u52FE\u9009\u5168\u90E8\u9875 ${_ctx.maxCheckSize}\u6761\u6570\u636E`), 1)])) : (openBlock(), createElementBlock("span", _hoisted_6, [createCommentVNode(' {{ $t("1.9.598", { name: tableName, total }) }} '), createTextVNode(toDisplayString(`\u52FE\u9009\u5168\u90E8\u9875 ${_ctx.pageVO.total}\u6761\u6570\u636E`), 1)]))])) : (openBlock(), createElementBlock("p", {
41482
41553
  key: 1,
41483
41554
  class: "check-wrap-btn",
41484
41555
  onClick: handleCancelAllCheck
@@ -41540,6 +41611,7 @@ var script = /* @__PURE__ */ defineComponent({
41540
41611
  iconOpen: "iconfont icon-a-xitongtubiaozhediejian",
41541
41612
  iconClose: "iconfont icon-a-xitongtubiaotianjia"
41542
41613
  },
41614
+ "keyboard-config": _ctx.columnConfig.keyboardConfig || {},
41543
41615
  onCellDblclick: rowdblclick,
41544
41616
  onCellClick: handlerClickRow,
41545
41617
  onCheckboxChange: selectionChange,
@@ -41549,7 +41621,7 @@ var script = /* @__PURE__ */ defineComponent({
41549
41621
  onScroll: handlerScroll,
41550
41622
  onCellMouseenter: handleCellMouseenter
41551
41623
  }, {
41552
- empty: withCtx(() => [unref(state).isShowEmpty ? (openBlock(), createElementBlock("div", _hoisted_9, [createVNode(script$6, {
41624
+ empty: withCtx(() => [unref(state).isShowEmpty ? (openBlock(), createElementBlock("div", _hoisted_9, [createVNode(script$3, {
41553
41625
  "no-data-img": props.emptyItems.noDataImg,
41554
41626
  "no-data-tip": props.emptyItems.noDataTip,
41555
41627
  "show-img": !props.isNestTable
@@ -41590,7 +41662,7 @@ var script = /* @__PURE__ */ defineComponent({
41590
41662
  }
41591
41663
  })]),
41592
41664
  _: 3
41593
- }, 8, ["seq-config", "tree-config", "row-id", "show-footer", "checkbox-config", "row-style", "edit-config", "expand-config"]), createCommentVNode(" `${refreshRow}\u6761\u66F4\u65B0` "), withDirectives(createElementVNode("div", {
41665
+ }, 8, ["seq-config", "tree-config", "row-id", "show-footer", "checkbox-config", "row-style", "edit-config", "expand-config", "keyboard-config"]), createCommentVNode(" `${refreshRow}\u6761\u66F4\u65B0` "), withDirectives(createElementVNode("div", {
41594
41666
  class: "refresh",
41595
41667
  onClick: hanldeClickRefresh
41596
41668
  }, [createVNode(unref(NIcon), {