@vipl520/dk-ui 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.js +282 -115
  3. package/dist/index.min.js +7 -7
  4. package/dist/index.min.js.map +1 -1
  5. package/dist/index.min.mjs +7 -7
  6. package/dist/index.min.mjs.map +1 -1
  7. package/dist/index.mjs +282 -115
  8. package/dist/web-types.json +1 -1
  9. package/es/attachment/src/attachment.vue2.mjs +2 -1
  10. package/es/attachment/src/attachment.vue2.mjs.map +1 -1
  11. package/es/dialog/index.d.ts +15 -0
  12. package/es/dialog/src/dialog.vue.d.ts +9 -0
  13. package/es/dialog/src/dialog.vue2.mjs +3 -5
  14. package/es/dialog/src/dialog.vue2.mjs.map +1 -1
  15. package/es/dialog/src/props.d.ts +4 -0
  16. package/es/dialog/src/props.mjs +4 -0
  17. package/es/dialog/src/props.mjs.map +1 -1
  18. package/es/file-input/src/file-input.vue2.mjs +4 -15
  19. package/es/file-input/src/file-input.vue2.mjs.map +1 -1
  20. package/es/file-input/style/index.css +1 -1
  21. package/es/file-input/style/index.scss +3 -3
  22. package/es/form/index.d.ts +24 -9
  23. package/es/form/src/form.vue.d.ts +15 -5
  24. package/es/form/src/form.vue2.mjs +62 -10
  25. package/es/form/src/form.vue2.mjs.map +1 -1
  26. package/es/form/src/props.d.ts +7 -2
  27. package/es/form/src/props.mjs +7 -2
  28. package/es/form/src/props.mjs.map +1 -1
  29. package/es/icon/index.d.ts +12 -45
  30. package/es/icon/src/icon.vue.d.ts +6 -27
  31. package/es/icon/src/icon.vue2.mjs +9 -6
  32. package/es/icon/src/icon.vue2.mjs.map +1 -1
  33. package/es/icon/src/props.d.ts +3 -12
  34. package/es/icon/src/props.mjs +3 -12
  35. package/es/icon/src/props.mjs.map +1 -1
  36. package/es/index.scss +5 -0
  37. package/es/table/index.d.ts +15 -0
  38. package/es/table/src/components/ComSearch.vue2.mjs +79 -19
  39. package/es/table/src/components/ComSearch.vue2.mjs.map +1 -1
  40. package/es/table/src/components/FieldRender.vue2.mjs +37 -15
  41. package/es/table/src/components/FieldRender.vue2.mjs.map +1 -1
  42. package/es/table/src/components/header.vue2.mjs +9 -1
  43. package/es/table/src/components/header.vue2.mjs.map +1 -1
  44. package/es/table/src/props.d.ts +4 -0
  45. package/es/table/src/props.mjs +4 -0
  46. package/es/table/src/props.mjs.map +1 -1
  47. package/es/table/src/table.vue.d.ts +9 -0
  48. package/es/table/src/table.vue2.mjs +7 -6
  49. package/es/table/src/table.vue2.mjs.map +1 -1
  50. package/es/table/style/index.css +1 -1
  51. package/es/table/style/index.scss +1 -1
  52. package/es/table/utils/dkTable.d.ts +2 -0
  53. package/es/table/utils/dkTable.mjs +19 -1
  54. package/es/table/utils/dkTable.mjs.map +1 -1
  55. package/es/table/utils/dkTableApi.mjs +15 -7
  56. package/es/table/utils/dkTableApi.mjs.map +1 -1
  57. package/es/tiny-editor/src/tiny-editor.vue2.mjs +5 -2
  58. package/es/tiny-editor/src/tiny-editor.vue2.mjs.map +1 -1
  59. package/lib/attachment/src/attachment.vue2.js +5 -4
  60. package/lib/attachment/src/attachment.vue2.js.map +1 -1
  61. package/lib/dialog/index.d.ts +15 -0
  62. package/lib/dialog/src/dialog.vue.d.ts +9 -0
  63. package/lib/dialog/src/dialog.vue2.js +3 -5
  64. package/lib/dialog/src/dialog.vue2.js.map +1 -1
  65. package/lib/dialog/src/props.d.ts +4 -0
  66. package/lib/dialog/src/props.js +4 -0
  67. package/lib/dialog/src/props.js.map +1 -1
  68. package/lib/file-input/src/file-input.vue2.js +4 -15
  69. package/lib/file-input/src/file-input.vue2.js.map +1 -1
  70. package/lib/file-input/style/index.css +1 -1
  71. package/lib/file-input/style/index.scss +3 -3
  72. package/lib/form/index.d.ts +24 -9
  73. package/lib/form/src/form.vue.d.ts +15 -5
  74. package/lib/form/src/form.vue2.js +60 -8
  75. package/lib/form/src/form.vue2.js.map +1 -1
  76. package/lib/form/src/props.d.ts +7 -2
  77. package/lib/form/src/props.js +7 -2
  78. package/lib/form/src/props.js.map +1 -1
  79. package/lib/icon/index.d.ts +12 -45
  80. package/lib/icon/src/icon.vue.d.ts +6 -27
  81. package/lib/icon/src/icon.vue2.js +9 -6
  82. package/lib/icon/src/icon.vue2.js.map +1 -1
  83. package/lib/icon/src/props.d.ts +3 -12
  84. package/lib/icon/src/props.js +3 -12
  85. package/lib/icon/src/props.js.map +1 -1
  86. package/lib/index.scss +5 -0
  87. package/lib/table/index.d.ts +15 -0
  88. package/lib/table/src/components/ComSearch.vue2.js +79 -19
  89. package/lib/table/src/components/ComSearch.vue2.js.map +1 -1
  90. package/lib/table/src/components/FieldRender.vue2.js +37 -15
  91. package/lib/table/src/components/FieldRender.vue2.js.map +1 -1
  92. package/lib/table/src/components/header.vue2.js +8 -0
  93. package/lib/table/src/components/header.vue2.js.map +1 -1
  94. package/lib/table/src/props.d.ts +4 -0
  95. package/lib/table/src/props.js +4 -0
  96. package/lib/table/src/props.js.map +1 -1
  97. package/lib/table/src/table.vue.d.ts +9 -0
  98. package/lib/table/src/table.vue2.js +7 -6
  99. package/lib/table/src/table.vue2.js.map +1 -1
  100. package/lib/table/style/index.css +1 -1
  101. package/lib/table/style/index.scss +1 -1
  102. package/lib/table/utils/dkTable.d.ts +2 -0
  103. package/lib/table/utils/dkTable.js +19 -1
  104. package/lib/table/utils/dkTable.js.map +1 -1
  105. package/lib/table/utils/dkTableApi.js +15 -7
  106. package/lib/table/utils/dkTableApi.js.map +1 -1
  107. package/lib/tiny-editor/src/tiny-editor.vue2.js +4 -1
  108. package/lib/tiny-editor/src/tiny-editor.vue2.js.map +1 -1
  109. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -189,7 +189,7 @@
189
189
  // TODO 参数如果未填写自动获取
190
190
  ApiUrl: "https://independence.heiduoke.cn",
191
191
  // 默认的 API 地址
192
- AccessToken: "3c388087-0f14-4f8d-8463-9fc9932ce2f6",
192
+ AccessToken: "b5fe9c57-24fc-44da-b7f0-e655554c31d1",
193
193
  // 用户登录后的 token
194
194
  Plaid: 16,
195
195
  // 平台ID
@@ -355,7 +355,7 @@
355
355
  }
356
356
  config2.headers["Access-Token"] = getGlobalConfig().AccessToken;
357
357
  config2.headers["Project-Type"] = getGlobalConfig().ProjectType;
358
- config2.headers.addon = getGlobalConfig().AddonName;
358
+ config2.headers["Addon-Name"] = getGlobalConfig().AddonName;
359
359
  config2.headers.Plaid = getGlobalConfig().Plaid;
360
360
  config2.params = config2.params || {};
361
361
  config2.params._ajax = 1;
@@ -10380,6 +10380,9 @@
10380
10380
  const tinymceSrc = require$$0.ref("https://registry.npmmirror.com/dk-tinymce/1.0.0/files/tinymce.min.js");
10381
10381
  const attachmentRef = require$$0.ref();
10382
10382
  const editorRef = require$$0.ref();
10383
+ const showDialog = require$$0.computed(() => {
10384
+ return width.value >= props.showDialogWidth;
10385
+ });
10383
10386
  require$$0.watch(
10384
10387
  () => props.modelValue,
10385
10388
  (newValue) => {
@@ -10443,7 +10446,7 @@
10443
10446
  class: "dk-tiny-editor"
10444
10447
  },
10445
10448
  [
10446
- require$$0.unref(width).value >= props.showDialogWidth ? (require$$0.openBlock(), require$$0.createElementBlock("div", _hoisted_1$I, [
10449
+ showDialog.value ? (require$$0.openBlock(), require$$0.createElementBlock("div", _hoisted_1$I, [
10447
10450
  require$$0.createVNode(require$$0.unref(Editor), {
10448
10451
  ref_key: "editorRef",
10449
10452
  ref: editorRef,
@@ -10540,20 +10543,11 @@
10540
10543
  type: String
10541
10544
  },
10542
10545
  // icon color
10543
- color: {
10544
- default: "",
10545
- type: String
10546
- },
10546
+ color: String,
10547
10547
  // icon size
10548
- size: {
10549
- default: 14,
10550
- type: Number
10551
- },
10548
+ size: Number,
10552
10549
  // icon hover
10553
- hoverColor: {
10554
- default: "",
10555
- type: String
10556
- },
10550
+ hoverColor: String,
10557
10551
  showEl: {
10558
10552
  default: true,
10559
10553
  type: Boolean
@@ -10577,12 +10571,15 @@
10577
10571
  return key;
10578
10572
  });
10579
10573
  const getIconifyStyle = require$$0.computed(() => {
10580
- const { color, size } = props;
10581
- return {
10582
- fontSize: `${size}px`,
10583
- color,
10584
- "--hover-color": props.hoverColor
10585
- };
10574
+ const { color, size, hoverColor } = props;
10575
+ const style = {};
10576
+ if (color)
10577
+ style.color = color;
10578
+ if (size)
10579
+ style.fontSize = `${size}px`;
10580
+ if (hoverColor)
10581
+ style["--hover-color"] = hoverColor;
10582
+ return style;
10586
10583
  });
10587
10584
  const iconType = require$$0.computed(() => {
10588
10585
  let type = "cloud";
@@ -10723,6 +10720,10 @@
10723
10720
  maxHeight: {
10724
10721
  type: String,
10725
10722
  default: ""
10723
+ },
10724
+ draggable: {
10725
+ type: Boolean,
10726
+ default: true
10726
10727
  }
10727
10728
  };
10728
10729
 
@@ -10759,9 +10760,7 @@
10759
10760
  const toggleFull = () => {
10760
10761
  isFullscreen.value = !require$$0.unref(isFullscreen);
10761
10762
  };
10762
- const dialogHeight = require$$0.ref(
10763
- isNumber(props.maxHeight) ? `${props.maxHeight}px` : props.maxHeight
10764
- );
10763
+ const dialogHeight = require$$0.ref(isNumber(props.maxHeight) ? `${props.maxHeight}px` : props.maxHeight);
10765
10764
  require$$0.watch(
10766
10765
  () => isFullscreen.value,
10767
10766
  async (val) => {
@@ -10791,7 +10790,7 @@
10791
10790
  "destroy-on-close": "",
10792
10791
  "append-to-body": "",
10793
10792
  "lock-scroll": "",
10794
- draggable: "",
10793
+ draggable: _ctx.draggable,
10795
10794
  "close-on-click-modal": false,
10796
10795
  "show-close": false,
10797
10796
  class: "dk-dialog"
@@ -10847,7 +10846,7 @@
10847
10846
  ]),
10848
10847
  key: "0"
10849
10848
  } : void 0
10850
- ]), 1040, ["fullscreen"]);
10849
+ ]), 1040, ["fullscreen", "draggable"]);
10851
10850
  };
10852
10851
  }
10853
10852
  });
@@ -10875,7 +10874,7 @@
10875
10874
  // 显示加载
10876
10875
  isLoading: { default: true, type: Boolean },
10877
10876
  // 默认高度
10878
- minHeight: { default: "100px", type: [String, Number] },
10877
+ minHeight: { default: "300px", type: String },
10879
10878
  // 是否为弹窗
10880
10879
  isDialog: { default: false, type: Boolean },
10881
10880
  // 弹窗显示后获取formData
@@ -10883,7 +10882,12 @@
10883
10882
  // 弹窗配置
10884
10883
  dialog: {
10885
10884
  default: () => {
10886
- return {};
10885
+ return {
10886
+ width: "800px",
10887
+ fullscreen: false,
10888
+ minHeight: "200px",
10889
+ draggable: true
10890
+ };
10887
10891
  },
10888
10892
  type: Object
10889
10893
  }
@@ -10981,7 +10985,6 @@
10981
10985
  const fApi = require$$0.ref();
10982
10986
  const loading = require$$0.ref(true);
10983
10987
  const buttonLoading = require$$0.ref(false);
10984
- const minHeight = require$$0.computed(() => isNumber(props.minHeight) ? `${props.minHeight}px` : props.minHeight);
10985
10988
  const showDialog = require$$0.ref(false);
10986
10989
  const formConfig = require$$0.computed(() => ({ ...config, ...props.extraConfig }));
10987
10990
  const { width } = core.useWindowSize();
@@ -10993,6 +10996,58 @@
10993
10996
  emit("update:modelValue", val || {});
10994
10997
  }
10995
10998
  );
10999
+ const dialogWidth = require$$0.computed(() => {
11000
+ let defaultWidth = "800px";
11001
+ if (props.dialog?.width) {
11002
+ defaultWidth = props.dialog?.width;
11003
+ }
11004
+ if (_formData.value?.config?.width) {
11005
+ defaultWidth = _formData.value?.config?.width;
11006
+ }
11007
+ return width.value < 768 ? "100%" : defaultWidth;
11008
+ });
11009
+ const dialogStyle = require$$0.computed(() => {
11010
+ const style = {
11011
+ minHeight: void 0,
11012
+ maxHeight: void 0
11013
+ };
11014
+ if (props.dialog?.minHeight) {
11015
+ style.minHeight = props.dialog?.minHeight;
11016
+ }
11017
+ if (props.dialog?.maxHeight) {
11018
+ style.maxHeight = props.dialog?.maxHeight;
11019
+ }
11020
+ if (_formData.value?.config?.minHeight) {
11021
+ style.minHeight = _formData.value?.config?.minHeight;
11022
+ }
11023
+ if (_formData.value?.config?.maxHeight) {
11024
+ style.maxHeight = _formData.value?.config?.maxHeight;
11025
+ }
11026
+ return style;
11027
+ });
11028
+ const draggable = require$$0.computed(() => {
11029
+ let draggable2 = true;
11030
+ if (props.dialog?.draggable) {
11031
+ draggable2 = props.dialog?.draggable;
11032
+ }
11033
+ if (_formData.value?.config?.draggable !== void 0) {
11034
+ draggable2 = _formData.value?.config?.draggable;
11035
+ }
11036
+ return draggable2;
11037
+ });
11038
+ const isFullscreen = require$$0.computed(() => {
11039
+ let defaultFullscreen = false;
11040
+ if (props.dialog?.width) {
11041
+ defaultFullscreen = props.dialog?.fullscreen;
11042
+ }
11043
+ if (_formData.value?.config?.fullscreen) {
11044
+ defaultFullscreen = _formData.value?.config?.fullscreen;
11045
+ }
11046
+ if (width.value < 768) {
11047
+ defaultFullscreen = true;
11048
+ }
11049
+ return defaultFullscreen;
11050
+ });
10996
11051
  const setFormData = (formData) => {
10997
11052
  value.value = null;
10998
11053
  _formData.value = formData;
@@ -11081,16 +11136,17 @@
11081
11136
  modelValue: showDialog.value,
11082
11137
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => showDialog.value = $event),
11083
11138
  title: _formData.value?.title ? _formData.value?.title : "\u8868\u5355",
11084
- width: require$$0.unref(width).value < 768 ? "100%" : "800px",
11085
- "default-fullscreen": require$$0.unref(width).value < 768,
11139
+ width: dialogWidth.value,
11140
+ "default-fullscreen": isFullscreen.value,
11086
11141
  "min-height": "200px",
11142
+ draggable: draggable.value,
11087
11143
  "append-to-body": ""
11088
11144
  }, {
11089
11145
  default: require$$0.withCtx(() => [
11090
11146
  require$$0.createElementVNode(
11091
11147
  "div",
11092
11148
  {
11093
- style: require$$0.normalizeStyle({ minHeight: minHeight.value }),
11149
+ style: require$$0.normalizeStyle(dialogStyle.value),
11094
11150
  class: "dk-form"
11095
11151
  },
11096
11152
  [
@@ -11101,6 +11157,7 @@
11101
11157
  rule: _formData.value.rules,
11102
11158
  "handle-icon": false,
11103
11159
  class: "formBox",
11160
+ style: { "padding": "10px" },
11104
11161
  "onUpdate:api": _cache[1] || (_cache[1] = ($event) => fApi.value = $event),
11105
11162
  "onUpdate:value": _cache[2] || (_cache[2] = ($event) => value.value = $event)
11106
11163
  }, null, 8, ["modelValue", "option", "rule"]),
@@ -11131,16 +11188,15 @@
11131
11188
  ],
11132
11189
  4
11133
11190
  /* STYLE */
11134
- ),
11135
- require$$0.createCommentVNode(' <div v-else :style="{ minHeight }"></div>')
11191
+ )
11136
11192
  ]),
11137
11193
  _: 3
11138
11194
  /* FORWARDED */
11139
- }, 8, ["modelValue", "title", "width", "default-fullscreen"])) : (require$$0.openBlock(), require$$0.createElementBlock("div", _hoisted_1$F, [
11195
+ }, 8, ["modelValue", "title", "width", "default-fullscreen", "draggable"])) : (require$$0.openBlock(), require$$0.createElementBlock("div", _hoisted_1$F, [
11140
11196
  require$$0.createElementVNode(
11141
11197
  "div",
11142
11198
  {
11143
- style: require$$0.normalizeStyle({ minHeight: minHeight.value }),
11199
+ style: require$$0.normalizeStyle({ minHeight: _ctx.minHeight }),
11144
11200
  class: "dk-form"
11145
11201
  },
11146
11202
  [
@@ -11419,13 +11475,13 @@
11419
11475
  const _hoisted_11$4 = { class: "ml-10px" };
11420
11476
  const _hoisted_12$4 = { class: "op" };
11421
11477
  const _hoisted_13$3 = { class: "attachment-container" };
11422
- const _hoisted_14$2 = {
11478
+ const _hoisted_14$3 = {
11423
11479
  key: 0,
11424
11480
  class: "p2"
11425
11481
  };
11426
- const _hoisted_15$2 = ["onClick", "onContextmenu"];
11427
- const _hoisted_16$1 = { class: "file" };
11428
- const _hoisted_17$1 = /* @__PURE__ */ require$$0.createElementVNode(
11482
+ const _hoisted_15$3 = ["onClick", "onContextmenu"];
11483
+ const _hoisted_16$3 = { class: "file" };
11484
+ const _hoisted_17$2 = /* @__PURE__ */ require$$0.createElementVNode(
11429
11485
  "div",
11430
11486
  { class: "u-m-t-30" },
11431
11487
  [
@@ -11460,6 +11516,7 @@
11460
11516
  const chooseFileKey = require$$0.ref([]);
11461
11517
  const chooseFileList = require$$0.ref([]);
11462
11518
  const chooseFileId = require$$0.ref([]);
11519
+ const globalConfig = getGlobalConfig();
11463
11520
  const uploadUrl = require$$0.ref(globalConfig.ApiUrl);
11464
11521
  const headers = require$$0.ref({
11465
11522
  "Access-Token": globalConfig.AccessToken
@@ -11854,7 +11911,7 @@
11854
11911
  ]),
11855
11912
  require$$0.createCommentVNode(" \u5217\u8868"),
11856
11913
  require$$0.createElementVNode("div", _hoisted_13$3, [
11857
- loading.value || list.value.length > 0 ? require$$0.withDirectives((require$$0.openBlock(), require$$0.createElementBlock("div", _hoisted_14$2, [
11914
+ loading.value || list.value.length > 0 ? require$$0.withDirectives((require$$0.openBlock(), require$$0.createElementBlock("div", _hoisted_14$3, [
11858
11915
  require$$0.createElementVNode(
11859
11916
  "ul",
11860
11917
  {
@@ -11872,7 +11929,7 @@
11872
11929
  onClick: ($event) => chooseAttachment(item, key),
11873
11930
  onContextmenu: require$$0.withModifiers(($event) => contextMenuId.value = item.id, ["prevent"])
11874
11931
  }, [
11875
- require$$0.createElementVNode("div", _hoisted_16$1, [
11932
+ require$$0.createElementVNode("div", _hoisted_16$3, [
11876
11933
  item.type === 1 ? (require$$0.openBlock(), require$$0.createBlock(_component_el_image, {
11877
11934
  key: 0,
11878
11935
  class: "file",
@@ -11880,7 +11937,7 @@
11880
11937
  fit: "contain"
11881
11938
  }, {
11882
11939
  placeholder: require$$0.withCtx(() => [
11883
- _hoisted_17$1
11940
+ _hoisted_17$2
11884
11941
  ]),
11885
11942
  _: 2
11886
11943
  /* DYNAMIC */
@@ -11919,7 +11976,7 @@
11919
11976
  /* STABLE */
11920
11977
  })
11921
11978
  ])
11922
- ], 42, _hoisted_15$2);
11979
+ ], 42, _hoisted_15$3);
11923
11980
  }),
11924
11981
  128
11925
11982
  /* KEYED_FRAGMENT */
@@ -12116,9 +12173,10 @@
12116
12173
  return (_ctx, _cache) => {
12117
12174
  const _component_el_button = require$$0.resolveComponent("el-button");
12118
12175
  const _component_el_input = require$$0.resolveComponent("el-input");
12176
+ const _component_dk_icon = require$$0.resolveComponent("dk-icon");
12177
+ const _component_el_image = require$$0.resolveComponent("el-image");
12119
12178
  const _component_Picture = require$$0.resolveComponent("Picture");
12120
12179
  const _component_el_icon = require$$0.resolveComponent("el-icon");
12121
- const _component_el_image = require$$0.resolveComponent("el-image");
12122
12180
  const _component_Close = require$$0.resolveComponent("Close");
12123
12181
  const _component_Plus = require$$0.resolveComponent("Plus");
12124
12182
  const _component_dk_attachment_dialog = require$$0.resolveComponent("dk-attachment-dialog");
@@ -12163,13 +12221,7 @@
12163
12221
  }, {
12164
12222
  error: require$$0.withCtx(() => [
12165
12223
  require$$0.createElementVNode("div", _hoisted_2$s, [
12166
- require$$0.createVNode(_component_el_icon, null, {
12167
- default: require$$0.withCtx(() => [
12168
- require$$0.createVNode(_component_Picture)
12169
- ]),
12170
- _: 1
12171
- /* STABLE */
12172
- })
12224
+ require$$0.createVNode(_component_dk_icon, { icon: "Picture" })
12173
12225
  ])
12174
12226
  ]),
12175
12227
  _: 1
@@ -12183,13 +12235,7 @@
12183
12235
  require$$0.createElementVNode("em", {
12184
12236
  onClick: _cache[1] || (_cache[1] = ($event) => input.value = "")
12185
12237
  }, [
12186
- require$$0.createVNode(_component_el_icon, null, {
12187
- default: require$$0.withCtx(() => [
12188
- require$$0.createVNode(_component_Close)
12189
- ]),
12190
- _: 1
12191
- /* STABLE */
12192
- })
12238
+ require$$0.createVNode(_component_dk_icon, { icon: "Close" })
12193
12239
  ])
12194
12240
  ])
12195
12241
  ],
@@ -14019,16 +14065,16 @@
14019
14065
  );
14020
14066
  const _hoisted_12$3 = { class: "anchor-wrapper" };
14021
14067
  const _hoisted_13$2 = ["onMousedown"];
14022
- const _hoisted_14$1 = /* @__PURE__ */ require$$0.createElementVNode(
14068
+ const _hoisted_14$2 = /* @__PURE__ */ require$$0.createElementVNode(
14023
14069
  "span",
14024
14070
  { class: "title" },
14025
14071
  " \u5916\u8FB9\u8DDD ",
14026
14072
  -1
14027
14073
  /* HOISTED */
14028
14074
  );
14029
- const _hoisted_15$1 = { class: "thumnail border" };
14030
- const _hoisted_16 = ["title", "onDblclick"];
14031
- const _hoisted_17 = ["onUpdate:modelValue", "onBlur"];
14075
+ const _hoisted_15$2 = { class: "thumnail border" };
14076
+ const _hoisted_16$2 = ["title", "onDblclick"];
14077
+ const _hoisted_17$1 = ["onUpdate:modelValue", "onBlur"];
14032
14078
  const _hoisted_18 = ["width", "height", "viewBox", "data-link-anchor", "innerHTML"];
14033
14079
  const _hoisted_19 = { class: "anchor-wrapper" };
14034
14080
  const _hoisted_20 = ["onMousedown"];
@@ -14451,10 +14497,10 @@
14451
14497
  /* STABLE_FRAGMENT */
14452
14498
  ))
14453
14499
  ]),
14454
- _hoisted_14$1,
14500
+ _hoisted_14$2,
14455
14501
  require$$0.createCommentVNode("\u5916\u8FB9\u8DDD Margin END"),
14456
14502
  require$$0.createCommentVNode("\u5185\u8FB9\u8DDD Padding"),
14457
- require$$0.createElementVNode("div", _hoisted_15$1, [
14503
+ require$$0.createElementVNode("div", _hoisted_15$2, [
14458
14504
  require$$0.createElementVNode(
14459
14505
  "div",
14460
14506
  {
@@ -14473,7 +14519,7 @@
14473
14519
  title: item.title,
14474
14520
  class: require$$0.normalizeClass(`anchor-tip-${item.position} value-indicator`),
14475
14521
  onDblclick: ($event) => onDblclick(item.value, key + 4)
14476
- }, require$$0.toDisplayString(getValue(styles[item.value])), 43, _hoisted_16),
14522
+ }, require$$0.toDisplayString(getValue(styles[item.value])), 43, _hoisted_16$2),
14477
14523
  require$$0.withDirectives(require$$0.createElementVNode("input", {
14478
14524
  ref_for: true,
14479
14525
  ref_key: "inputField",
@@ -14483,7 +14529,7 @@
14483
14529
  "input-box anchor-tip-" + item.position + (showStyles[item.value] ? " show" : "")
14484
14530
  ),
14485
14531
  onBlur: ($event) => onBlur(item.value)
14486
- }, null, 42, _hoisted_17), [
14532
+ }, null, 42, _hoisted_17$1), [
14487
14533
  [require$$0.vModelText, styles[item.value]]
14488
14534
  ]),
14489
14535
  (require$$0.openBlock(), require$$0.createElementBlock("svg", {
@@ -23170,6 +23216,10 @@
23170
23216
  tableApi: {
23171
23217
  default: "",
23172
23218
  type: String
23219
+ },
23220
+ cacheTable: {
23221
+ default: true,
23222
+ type: Boolean
23173
23223
  }
23174
23224
  // ...ElTableNext.props,
23175
23225
  };
@@ -26198,6 +26248,9 @@
26198
26248
  controllerUrl;
26199
26249
  actionUrl;
26200
26250
  constructor(controllerUrl) {
26251
+ if (!controllerUrl.endsWith("/")) {
26252
+ controllerUrl += "/";
26253
+ }
26201
26254
  this.controllerUrl = controllerUrl;
26202
26255
  this.actionUrl = /* @__PURE__ */ new Map([
26203
26256
  ["index", controllerUrl + "index"],
@@ -26357,20 +26410,26 @@
26357
26410
  * @param targetId
26358
26411
  */
26359
26412
  sortableApi(id, targetId) {
26360
- return request({
26361
- url: this.actionUrl.get("sortable"),
26362
- method: "post",
26363
- data: {
26364
- id,
26365
- targetId
26413
+ return request(
26414
+ {
26415
+ url: this.actionUrl.get("sortable"),
26416
+ method: "post",
26417
+ data: {
26418
+ id,
26419
+ targetId
26420
+ }
26421
+ },
26422
+ {
26423
+ code_error_show: true
26366
26424
  }
26367
- });
26425
+ );
26368
26426
  }
26369
26427
  }
26370
26428
 
26371
26429
  class dkTable {
26372
26430
  url;
26373
26431
  api;
26432
+ buttonCallback;
26374
26433
  table = require$$0.reactive({
26375
26434
  ref: void 0,
26376
26435
  pk: "id",
@@ -26428,6 +26487,9 @@
26428
26487
  this.api = new dkTableApi(url);
26429
26488
  this.before = before;
26430
26489
  this.after = after;
26490
+ this.buttonCallback = (event, data) => {
26491
+ console.warn("\u8BF7\u8C03\u7528onClickButton((event,data)=>{})", event, data);
26492
+ };
26431
26493
  }
26432
26494
  /**
26433
26495
  * 表格内部鉴权方法
@@ -26488,6 +26550,9 @@
26488
26550
  } else {
26489
26551
  return this.api.table().then((res) => {
26490
26552
  this.table.column = res.data.column;
26553
+ if (res.data.pk) {
26554
+ this.table.pk = res.data.pk;
26555
+ }
26491
26556
  storage.set(this.url + "_table", JSON.stringify(res.data));
26492
26557
  this.runAfter("getTable", { res });
26493
26558
  }).finally(() => {
@@ -26554,6 +26619,9 @@
26554
26619
  });
26555
26620
  return ids;
26556
26621
  }
26622
+ onClickButton(callback) {
26623
+ this.buttonCallback = callback;
26624
+ }
26557
26625
  /**
26558
26626
  * 表格内的事件统一响应
26559
26627
  * @param event 事件:selection-change=选中项改变,page-size-change=每页数量改变,current-page-change=翻页,sort-change=排序,edit=编辑,delete=删除,field-change=单元格值改变,com-search=公共搜索
@@ -26656,7 +26724,7 @@
26656
26724
  [
26657
26725
  "default",
26658
26726
  () => {
26659
- console.warn("No action defined");
26727
+ this.buttonCallback(event, data);
26660
26728
  }
26661
26729
  ]
26662
26730
  ]);
@@ -26710,6 +26778,7 @@
26710
26778
  if (this.form.operateIds.length > 0) {
26711
26779
  this.toggleForm("Edit", this.form.operateIds);
26712
26780
  }
26781
+ this.getIndex();
26713
26782
  };
26714
26783
  /**
26715
26784
  * 排序
@@ -26815,6 +26884,13 @@
26815
26884
  () => {
26816
26885
  const columnKey = getArrayKey(this.table.column, "prop", data.field);
26817
26886
  this.table.column[columnKey].show = data.value;
26887
+ if (this.url) {
26888
+ const key = this.url + "show_column";
26889
+ const cachedData = storage.get(key) || "{}";
26890
+ const cachedTableData = JSON.parse(cachedData);
26891
+ cachedTableData[data.field] = data.value;
26892
+ storage.set(key, JSON.stringify(cachedTableData));
26893
+ }
26818
26894
  }
26819
26895
  ],
26820
26896
  [
@@ -27764,23 +27840,29 @@
27764
27840
  key: 0,
27765
27841
  class: "com-search-col-label"
27766
27842
  };
27767
- const _hoisted_9$3 = {
27843
+ const _hoisted_9$3 = { class: "com-search-col-input-range" };
27844
+ const _hoisted_10$2 = { class: "com-search-col" };
27845
+ const _hoisted_11$1 = {
27846
+ key: 0,
27847
+ class: "com-search-col-label"
27848
+ };
27849
+ const _hoisted_12$1 = {
27768
27850
  key: 1,
27769
27851
  class: "com-search-col-input-range"
27770
27852
  };
27771
- const _hoisted_10$2 = /* @__PURE__ */ require$$0.createElementVNode(
27853
+ const _hoisted_13$1 = /* @__PURE__ */ require$$0.createElementVNode(
27772
27854
  "div",
27773
27855
  { class: "range-separator" },
27774
27856
  "\u5230",
27775
27857
  -1
27776
27858
  /* HOISTED */
27777
27859
  );
27778
- const _hoisted_11$1 = { class: "com-search-col-input" };
27779
- const _hoisted_12$1 = {
27860
+ const _hoisted_14$1 = { class: "com-search-col-input" };
27861
+ const _hoisted_15$1 = {
27780
27862
  key: 3,
27781
27863
  class: "com-search-col-input"
27782
27864
  };
27783
- const _hoisted_13$1 = { class: "com-search-col pl-20" };
27865
+ const _hoisted_16$1 = { class: "com-search-col pl-20" };
27784
27866
  var _sfc_main$d = /* @__PURE__ */ require$$0.defineComponent({
27785
27867
  __name: "ComSearch",
27786
27868
  setup(__props) {
@@ -27827,6 +27909,11 @@
27827
27909
  val = DkTable.comSearch.form[key][0] + "," + DkTable.comSearch.form[key][1];
27828
27910
  }
27829
27911
  }
27912
+ } else if (fieldDataTemp.render == "time" && (fieldDataTemp.operator == "RANGE" || fieldDataTemp.operator == "NOT RANGE")) {
27913
+ if (DkTable.comSearch.form[key] && DkTable.comSearch.form[key].length >= 2) {
27914
+ val = DkTable.comSearch.form[key][0] + "," + DkTable.comSearch.form[key][1];
27915
+ console.log("val", val, DkTable.comSearch.form[key]);
27916
+ }
27830
27917
  } else if (fieldDataTemp.operator == "RANGE" || fieldDataTemp.operator == "NOT RANGE") {
27831
27918
  if (!DkTable.comSearch.form[key + "-start"] && !DkTable.comSearch.form[key + "-end"]) {
27832
27919
  continue;
@@ -27856,6 +27943,7 @@
27856
27943
  return (_ctx, _cache) => {
27857
27944
  const _component_el_col = require$$0.resolveComponent("el-col");
27858
27945
  const _component_el_date_picker = require$$0.resolveComponent("el-date-picker");
27946
+ const _component_el_time_picker = require$$0.resolveComponent("el-time-picker");
27859
27947
  const _component_el_input = require$$0.resolveComponent("el-input");
27860
27948
  const _component_el_checkbox = require$$0.resolveComponent("el-checkbox");
27861
27949
  const _component_el_option = require$$0.resolveComponent("el-option");
@@ -27972,21 +28060,58 @@
27972
28060
  ],
27973
28061
  2112
27974
28062
  /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
28063
+ )) : item.render == "time" && (item.operator == "RANGE" || item.operator == "NOT RANGE") ? (require$$0.openBlock(), require$$0.createElementBlock(
28064
+ require$$0.Fragment,
28065
+ { key: 2 },
28066
+ [
28067
+ require$$0.createCommentVNode("\u65F6\u95F4\u8303\u56F4"),
28068
+ require$$0.createVNode(_component_el_col, {
28069
+ span: spans.value.datetime
28070
+ }, {
28071
+ default: require$$0.withCtx(() => [
28072
+ require$$0.createElementVNode("div", _hoisted_7$4, [
28073
+ item.comSearchShowLabel !== false ? (require$$0.openBlock(), require$$0.createElementBlock(
28074
+ "div",
28075
+ _hoisted_8$4,
28076
+ require$$0.toDisplayString(item.label),
28077
+ 1
28078
+ /* TEXT */
28079
+ )) : require$$0.createCommentVNode("v-if", true),
28080
+ require$$0.createElementVNode("div", _hoisted_9$3, [
28081
+ require$$0.createVNode(_component_el_time_picker, {
28082
+ modelValue: require$$0.unref(DkTable).comSearch.form[item.prop],
28083
+ "onUpdate:modelValue": ($event) => require$$0.unref(DkTable).comSearch.form[item.prop] = $event,
28084
+ "is-range": "",
28085
+ "range-separator": "\u5230",
28086
+ format: "HH:mm:ss",
28087
+ "value-format": "HH:mm:ss",
28088
+ "start-placeholder": "\u5F00\u59CB\u65F6\u95F4",
28089
+ "end-placeholder": "\u7ED3\u675F\u65F6\u95F4"
28090
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
28091
+ ])
28092
+ ])
28093
+ ]),
28094
+ _: 2
28095
+ /* DYNAMIC */
28096
+ }, 1032, ["span"])
28097
+ ],
28098
+ 2112
28099
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
27975
28100
  )) : (require$$0.openBlock(), require$$0.createBlock(_component_el_col, {
27976
- key: 2,
28101
+ key: 3,
27977
28102
  span: spans.value.common
27978
28103
  }, {
27979
28104
  default: require$$0.withCtx(() => [
27980
- require$$0.createElementVNode("div", _hoisted_7$4, [
28105
+ require$$0.createElementVNode("div", _hoisted_10$2, [
27981
28106
  item.comSearchShowLabel !== false ? (require$$0.openBlock(), require$$0.createElementBlock(
27982
28107
  "div",
27983
- _hoisted_8$4,
28108
+ _hoisted_11$1,
27984
28109
  require$$0.toDisplayString(item.label),
27985
28110
  1
27986
28111
  /* TEXT */
27987
28112
  )) : require$$0.createCommentVNode("v-if", true),
27988
28113
  require$$0.createCommentVNode(" \u6570\u5B57\u8303\u56F4 "),
27989
- item.operator == "RANGE" || item.operator == "NOT RANGE" ? (require$$0.openBlock(), require$$0.createElementBlock("div", _hoisted_9$3, [
28114
+ item.operator == "RANGE" || item.operator == "NOT RANGE" ? (require$$0.openBlock(), require$$0.createElementBlock("div", _hoisted_12$1, [
27990
28115
  require$$0.createVNode(_component_el_input, {
27991
28116
  modelValue: require$$0.unref(DkTable).comSearch.form[item.prop + "-start"],
27992
28117
  "onUpdate:modelValue": ($event) => require$$0.unref(DkTable).comSearch.form[item.prop + "-start"] = $event,
@@ -27994,7 +28119,7 @@
27994
28119
  type: "string",
27995
28120
  clearable: true
27996
28121
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"]),
27997
- _hoisted_10$2,
28122
+ _hoisted_13$1,
27998
28123
  require$$0.createVNode(_component_el_input, {
27999
28124
  modelValue: require$$0.unref(DkTable).comSearch.form[item.prop + "-end"],
28000
28125
  "onUpdate:modelValue": ($event) => require$$0.unref(DkTable).comSearch.form[item.prop + "-end"] = $event,
@@ -28007,7 +28132,7 @@
28007
28132
  { key: 2 },
28008
28133
  [
28009
28134
  require$$0.createCommentVNode(" \u662F\u5426 [NOT] NULL "),
28010
- require$$0.createElementVNode("div", _hoisted_11$1, [
28135
+ require$$0.createElementVNode("div", _hoisted_14$1, [
28011
28136
  require$$0.createVNode(_component_el_checkbox, {
28012
28137
  modelValue: require$$0.unref(DkTable).comSearch.form[item.prop],
28013
28138
  "onUpdate:modelValue": ($event) => require$$0.unref(DkTable).comSearch.form[item.prop] = $event,
@@ -28018,7 +28143,7 @@
28018
28143
  ],
28019
28144
  2112
28020
28145
  /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
28021
- )) : item.operator ? (require$$0.openBlock(), require$$0.createElementBlock("div", _hoisted_12$1, [
28146
+ )) : item.operator ? (require$$0.openBlock(), require$$0.createElementBlock("div", _hoisted_15$1, [
28022
28147
  require$$0.createCommentVNode(" \u65F6\u95F4\u7B5B\u9009 "),
28023
28148
  item.render == "datetime" || item.comSearchRender == "date" ? (require$$0.openBlock(), require$$0.createBlock(_component_el_date_picker, {
28024
28149
  key: 0,
@@ -28030,9 +28155,20 @@
28030
28155
  placeholder: item.operatorPlaceholder,
28031
28156
  "default-value": require$$0.unref(DkTable).comSearch.form[item.prop + "-default"] ? require$$0.unref(DkTable).comSearch.form[item.prop + "-default"] : /* @__PURE__ */ new Date(),
28032
28157
  teleported: false
28033
- }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "placeholder", "default-value"])) : (item.render == "tag" || item.render == "tags" || item.comSearchRender == "select") && item.replaceValue ? (require$$0.openBlock(), require$$0.createElementBlock(
28158
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "placeholder", "default-value"])) : require$$0.createCommentVNode("v-if", true),
28159
+ require$$0.createCommentVNode(" \u5E74\u7B5B\u9009 "),
28160
+ item.render == "year" ? (require$$0.openBlock(), require$$0.createBlock(_component_el_date_picker, {
28161
+ key: 1,
28162
+ modelValue: require$$0.unref(DkTable).comSearch.form[item.prop],
28163
+ "onUpdate:modelValue": ($event) => require$$0.unref(DkTable).comSearch.form[item.prop] = $event,
28164
+ class: "datetime-picker",
28165
+ type: "year",
28166
+ "value-format": "YYYY",
28167
+ style: { "width": "100%" },
28168
+ placeholder: item.operatorPlaceholder
28169
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : (item.render == "tag" || item.render == "tags" || item.comSearchRender == "select") && item.replaceValue ? (require$$0.openBlock(), require$$0.createElementBlock(
28034
28170
  require$$0.Fragment,
28035
- { key: 1 },
28171
+ { key: 2 },
28036
28172
  [
28037
28173
  require$$0.createCommentVNode(" tag\u3001tags\u3001select "),
28038
28174
  require$$0.createVNode(_component_el_select, {
@@ -28064,7 +28200,7 @@
28064
28200
  /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
28065
28201
  )) : item.comSearchRender == "remoteSelect" ? (require$$0.openBlock(), require$$0.createElementBlock(
28066
28202
  require$$0.Fragment,
28067
- { key: 2 },
28203
+ { key: 3 },
28068
28204
  [
28069
28205
  require$$0.createCommentVNode(" \u8FDC\u7A0B select "),
28070
28206
  require$$0.createVNode(_component_dk_select, {
@@ -28077,7 +28213,7 @@
28077
28213
  /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
28078
28214
  )) : item.render == "switch" ? (require$$0.openBlock(), require$$0.createElementBlock(
28079
28215
  require$$0.Fragment,
28080
- { key: 3 },
28216
+ { key: 4 },
28081
28217
  [
28082
28218
  require$$0.createCommentVNode(" \u5F00\u5173 "),
28083
28219
  require$$0.createVNode(_component_el_select, {
@@ -28124,7 +28260,7 @@
28124
28260
  /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
28125
28261
  )) : (require$$0.openBlock(), require$$0.createElementBlock(
28126
28262
  require$$0.Fragment,
28127
- { key: 4 },
28263
+ { key: 5 },
28128
28264
  [
28129
28265
  require$$0.createCommentVNode(" \u5B57\u7B26\u4E32 "),
28130
28266
  require$$0.createVNode(_component_el_input, {
@@ -28161,13 +28297,13 @@
28161
28297
  sm: 6
28162
28298
  }, {
28163
28299
  default: require$$0.withCtx(() => [
28164
- require$$0.createElementVNode("div", _hoisted_13$1, [
28300
+ require$$0.createElementVNode("div", _hoisted_16$1, [
28165
28301
  require$$0.withDirectives((require$$0.openBlock(), require$$0.createBlock(_component_el_button, {
28166
28302
  type: "primary",
28167
28303
  onClick: onComSearch
28168
28304
  }, {
28169
28305
  default: require$$0.withCtx(() => [
28170
- require$$0.createTextVNode(" \u641C\u7D22 ")
28306
+ require$$0.createTextVNode(" \u641C\u7D22")
28171
28307
  ]),
28172
28308
  _: 1
28173
28309
  /* STABLE */
@@ -28266,9 +28402,17 @@
28266
28402
  const DkTable = require$$0.inject("DkTable");
28267
28403
  const columnDisplay = require$$0.computed(() => {
28268
28404
  const columnDisplayArr = [];
28405
+ let cachedTableData = {};
28406
+ if (DkTable.url) {
28407
+ cachedTableData = JSON.parse(storage.get(DkTable.url + "show_column") || "{}");
28408
+ }
28269
28409
  for (const item of DkTable.table.column) {
28410
+ if (cachedTableData[item.prop] !== void 0) {
28411
+ item.show = cachedTableData[item.prop];
28412
+ }
28270
28413
  item.type === "selection" || item.render === "buttons" || item.enableColumnDisplayControl === false ? "" : columnDisplayArr.push(item);
28271
28414
  }
28415
+ console.log("columnDisplayArr", columnDisplayArr);
28272
28416
  return columnDisplayArr;
28273
28417
  });
28274
28418
  const enableBatchOpt = require$$0.computed(() => DkTable.table.selection.length > 0);
@@ -28622,21 +28766,23 @@
28622
28766
  const _hoisted_7$2 = { key: 6 };
28623
28767
  const _hoisted_8$2 = { key: 7 };
28624
28768
  const _hoisted_9$1 = { key: 8 };
28625
- const _hoisted_10 = { key: 10 };
28626
- const _hoisted_11 = {
28769
+ const _hoisted_10 = { key: 9 };
28770
+ const _hoisted_11 = { key: 10 };
28771
+ const _hoisted_12 = { key: 12 };
28772
+ const _hoisted_13 = {
28627
28773
  key: 0,
28628
28774
  class: "table-operate-text"
28629
28775
  };
28630
- const _hoisted_12 = {
28776
+ const _hoisted_14 = {
28631
28777
  key: 0,
28632
28778
  class: "table-operate-text"
28633
28779
  };
28634
- const _hoisted_13 = { class: "dk-tooltip-button" };
28635
- const _hoisted_14 = {
28780
+ const _hoisted_15 = { class: "dk-tooltip-button" };
28781
+ const _hoisted_16 = {
28636
28782
  key: 0,
28637
28783
  class: "table-operate-text"
28638
28784
  };
28639
- const _hoisted_15 = {
28785
+ const _hoisted_17 = {
28640
28786
  key: 0,
28641
28787
  class: "table-operate-text"
28642
28788
  };
@@ -28851,8 +28997,22 @@
28851
28997
  1
28852
28998
  /* TEXT */
28853
28999
  )) : require$$0.createCommentVNode("v-if", true),
29000
+ _ctx.field.render == "time" ? (require$$0.openBlock(), require$$0.createElementBlock(
29001
+ "div",
29002
+ _hoisted_9$1,
29003
+ require$$0.toDisplayString(fieldValue.value),
29004
+ 1
29005
+ /* TEXT */
29006
+ )) : require$$0.createCommentVNode("v-if", true),
29007
+ _ctx.field.render == "year" ? (require$$0.openBlock(), require$$0.createElementBlock(
29008
+ "div",
29009
+ _hoisted_10,
29010
+ require$$0.toDisplayString(fieldValue.value),
29011
+ 1
29012
+ /* TEXT */
29013
+ )) : require$$0.createCommentVNode("v-if", true),
28854
29014
  require$$0.createCommentVNode(" color "),
28855
- _ctx.field.render == "color" ? (require$$0.openBlock(), require$$0.createElementBlock("div", _hoisted_9$1, [
29015
+ _ctx.field.render == "color" ? (require$$0.openBlock(), require$$0.createElementBlock("div", _hoisted_11, [
28856
29016
  require$$0.createElementVNode(
28857
29017
  "div",
28858
29018
  {
@@ -28866,7 +29026,7 @@
28866
29026
  ])) : require$$0.createCommentVNode("v-if", true),
28867
29027
  require$$0.createCommentVNode(" \u81EA\u5B9A\u4E49\u7EC4\u4EF6/\u51FD\u6570\u6E32\u67D3 "),
28868
29028
  _ctx.field.render == "customRender" ? (require$$0.openBlock(), require$$0.createBlock(require$$0.resolveDynamicComponent(_ctx.field.customRender), {
28869
- key: 9,
29029
+ key: 11,
28870
29030
  "render-row": _ctx.row,
28871
29031
  "render-field": _ctx.field,
28872
29032
  "render-value": fieldValue.value,
@@ -28875,7 +29035,7 @@
28875
29035
  }, null, 8, ["render-row", "render-field", "render-value", "render-column", "render-index"])) : require$$0.createCommentVNode("v-if", true),
28876
29036
  require$$0.createCommentVNode(" \u6309\u94AE\u7EC4 "),
28877
29037
  require$$0.createCommentVNode(" \u53EA\u5BF9\u9ED8\u8BA4\u7684\u7F16\u8F91\u3001\u5220\u9664\u3001\u6392\u5E8F\u6309\u94AE\u8FDB\u884C\u9274\u6743\uFF0C\u5176\u4ED6\u6309\u94AE\u8BF7\u901A\u8FC7 display \u5C5E\u6027\u63A7\u5236\u6309\u94AE\u662F\u5426\u663E\u793A "),
28878
- _ctx.field.render == "buttons" && _ctx.field.buttons ? (require$$0.openBlock(), require$$0.createElementBlock("div", _hoisted_10, [
29038
+ _ctx.field.render == "buttons" && _ctx.field.buttons ? (require$$0.openBlock(), require$$0.createElementBlock("div", _hoisted_12, [
28879
29039
  (require$$0.openBlock(true), require$$0.createElementBlock(
28880
29040
  require$$0.Fragment,
28881
29041
  null,
@@ -28903,7 +29063,7 @@
28903
29063
  }, null, 8, ["icon"]),
28904
29064
  btn.text ? (require$$0.openBlock(), require$$0.createElementBlock(
28905
29065
  "div",
28906
- _hoisted_11,
29066
+ _hoisted_13,
28907
29067
  require$$0.toDisplayString(btn.text),
28908
29068
  1
28909
29069
  /* TEXT */
@@ -28919,7 +29079,9 @@
28919
29079
  key: 1,
28920
29080
  disabled: !(btn.title && !btn.disabledTip),
28921
29081
  content: btn.title ?? "",
28922
- placement: "top"
29082
+ placement: "top",
29083
+ "hide-after": 0,
29084
+ "show-after": 100
28923
29085
  }, {
28924
29086
  default: require$$0.withCtx(() => [
28925
29087
  require$$0.withDirectives((require$$0.openBlock(), require$$0.createBlock(_component_el_button, require$$0.mergeProps({
@@ -28935,7 +29097,7 @@
28935
29097
  }, null, 8, ["icon"]),
28936
29098
  btn.text ? (require$$0.openBlock(), require$$0.createElementBlock(
28937
29099
  "div",
28938
- _hoisted_12,
29100
+ _hoisted_14,
28939
29101
  require$$0.toDisplayString(btn.text),
28940
29102
  1
28941
29103
  /* TEXT */
@@ -28955,10 +29117,12 @@
28955
29117
  key: 2,
28956
29118
  disabled: btn.disabled && btn.disabled(_ctx.row, _ctx.field)
28957
29119
  }, btn.popconfirm, {
29120
+ "hide-after": 0,
29121
+ "show-after": 100,
28958
29122
  onConfirm: ($event) => onButtonClick(btn)
28959
29123
  }), {
28960
29124
  reference: require$$0.withCtx(() => [
28961
- require$$0.createElementVNode("div", _hoisted_13, [
29125
+ require$$0.createElementVNode("div", _hoisted_15, [
28962
29126
  require$$0.createVNode(_component_el_tooltip, {
28963
29127
  disabled: !btn.title,
28964
29128
  content: btn.title ?? "",
@@ -28976,7 +29140,7 @@
28976
29140
  }, null, 8, ["icon"]),
28977
29141
  btn.text ? (require$$0.openBlock(), require$$0.createElementBlock(
28978
29142
  "div",
28979
- _hoisted_14,
29143
+ _hoisted_16,
28980
29144
  require$$0.toDisplayString(btn.text),
28981
29145
  1
28982
29146
  /* TEXT */
@@ -29001,6 +29165,8 @@
29001
29165
  key: 3,
29002
29166
  disabled: !(btn.title && !btn.disabledTip),
29003
29167
  content: btn.title ?? "",
29168
+ "hide-after": 0,
29169
+ "show-after": 100,
29004
29170
  placement: "top"
29005
29171
  }, {
29006
29172
  default: require$$0.withCtx(() => [
@@ -29015,7 +29181,7 @@
29015
29181
  }, null, 8, ["icon"]),
29016
29182
  btn.text ? (require$$0.openBlock(), require$$0.createElementBlock(
29017
29183
  "div",
29018
- _hoisted_15,
29184
+ _hoisted_17,
29019
29185
  require$$0.toDisplayString(btn.text),
29020
29186
  1
29021
29187
  /* TEXT */
@@ -29326,7 +29492,7 @@
29326
29492
  const DkTable = new dkTable(props.tableApi);
29327
29493
  require$$0.provide("DkTable", DkTable);
29328
29494
  require$$0.onMounted(() => {
29329
- DkTable.getTable(false)?.then(() => {
29495
+ DkTable.getTable(props.cacheTable)?.then(() => {
29330
29496
  DkTable.getIndex()?.then(() => {
29331
29497
  require$$0.nextTick(() => {
29332
29498
  DkTable.dragSort();
@@ -29344,6 +29510,9 @@
29344
29510
  const onTableCurrentChange = (val) => {
29345
29511
  DkTable.onTableAction("current-page-change", { page: val });
29346
29512
  };
29513
+ const ondblclick = (row) => {
29514
+ DkTable.toggleForm("Edit", [row[DkTable.table.pk]]);
29515
+ };
29347
29516
  const onSortChange = ({ order, prop }) => {
29348
29517
  DkTable.onTableAction("sort-change", {
29349
29518
  prop,
@@ -29471,7 +29640,8 @@
29471
29640
  onSelectAll,
29472
29641
  onSelect,
29473
29642
  onSelectionChange,
29474
- onSortChange
29643
+ onSortChange,
29644
+ onCellDblclick: ondblclick
29475
29645
  }), {
29476
29646
  default: require$$0.withCtx(() => [
29477
29647
  require$$0.renderSlot(_ctx.$slots, "columnPrepend"),
@@ -29547,10 +29717,7 @@
29547
29717
  onSizeChange: onTableSizeChange,
29548
29718
  onCurrentChange: onTableCurrentChange
29549
29719
  }, null, 8, ["current-page", "page-size", "page-sizes", "total"])
29550
- ]),
29551
- require$$0.createCommentVNode(" <div>"),
29552
- require$$0.createCommentVNode(' <el-button @click="test()">\u6D4B\u8BD5</el-button>'),
29553
- require$$0.createCommentVNode(" </div>")
29720
+ ])
29554
29721
  ]),
29555
29722
  require$$0.createVNode(_component_dk_form, {
29556
29723
  ref_key: "FormRef",