@vipl520/dk-ui 1.0.8 → 1.0.10

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 +2 -2
package/dist/index.mjs CHANGED
@@ -176,7 +176,7 @@ const globalConfig = {
176
176
  // TODO 参数如果未填写自动获取
177
177
  ApiUrl: "https://independence.heiduoke.cn",
178
178
  // 默认的 API 地址
179
- AccessToken: "3c388087-0f14-4f8d-8463-9fc9932ce2f6",
179
+ AccessToken: "b5fe9c57-24fc-44da-b7f0-e655554c31d1",
180
180
  // 用户登录后的 token
181
181
  Plaid: 16,
182
182
  // 平台ID
@@ -342,7 +342,7 @@ const request = (config, custom, loading) => {
342
342
  }
343
343
  config2.headers["Access-Token"] = getGlobalConfig().AccessToken;
344
344
  config2.headers["Project-Type"] = getGlobalConfig().ProjectType;
345
- config2.headers.addon = getGlobalConfig().AddonName;
345
+ config2.headers["Addon-Name"] = getGlobalConfig().AddonName;
346
346
  config2.headers.Plaid = getGlobalConfig().Plaid;
347
347
  config2.params = config2.params || {};
348
348
  config2.params._ajax = 1;
@@ -10367,6 +10367,9 @@ var _sfc_main$Y = /* @__PURE__ */ defineComponent({
10367
10367
  const tinymceSrc = ref("https://registry.npmmirror.com/dk-tinymce/1.0.0/files/tinymce.min.js");
10368
10368
  const attachmentRef = ref();
10369
10369
  const editorRef = ref();
10370
+ const showDialog = computed(() => {
10371
+ return width.value >= props.showDialogWidth;
10372
+ });
10370
10373
  watch(
10371
10374
  () => props.modelValue,
10372
10375
  (newValue) => {
@@ -10430,7 +10433,7 @@ var _sfc_main$Y = /* @__PURE__ */ defineComponent({
10430
10433
  class: "dk-tiny-editor"
10431
10434
  },
10432
10435
  [
10433
- unref(width).value >= props.showDialogWidth ? (openBlock(), createElementBlock("div", _hoisted_1$I, [
10436
+ showDialog.value ? (openBlock(), createElementBlock("div", _hoisted_1$I, [
10434
10437
  createVNode(unref(Editor), {
10435
10438
  ref_key: "editorRef",
10436
10439
  ref: editorRef,
@@ -10527,20 +10530,11 @@ const iconProps = {
10527
10530
  type: String
10528
10531
  },
10529
10532
  // icon color
10530
- color: {
10531
- default: "",
10532
- type: String
10533
- },
10533
+ color: String,
10534
10534
  // icon size
10535
- size: {
10536
- default: 14,
10537
- type: Number
10538
- },
10535
+ size: Number,
10539
10536
  // icon hover
10540
- hoverColor: {
10541
- default: "",
10542
- type: String
10543
- },
10537
+ hoverColor: String,
10544
10538
  showEl: {
10545
10539
  default: true,
10546
10540
  type: Boolean
@@ -10564,12 +10558,15 @@ var _sfc_main$X = /* @__PURE__ */ defineComponent({
10564
10558
  return key;
10565
10559
  });
10566
10560
  const getIconifyStyle = computed(() => {
10567
- const { color, size } = props;
10568
- return {
10569
- fontSize: `${size}px`,
10570
- color,
10571
- "--hover-color": props.hoverColor
10572
- };
10561
+ const { color, size, hoverColor } = props;
10562
+ const style = {};
10563
+ if (color)
10564
+ style.color = color;
10565
+ if (size)
10566
+ style.fontSize = `${size}px`;
10567
+ if (hoverColor)
10568
+ style["--hover-color"] = hoverColor;
10569
+ return style;
10573
10570
  });
10574
10571
  const iconType = computed(() => {
10575
10572
  let type = "cloud";
@@ -10710,6 +10707,10 @@ const dialogProps = {
10710
10707
  maxHeight: {
10711
10708
  type: String,
10712
10709
  default: ""
10710
+ },
10711
+ draggable: {
10712
+ type: Boolean,
10713
+ default: true
10713
10714
  }
10714
10715
  };
10715
10716
 
@@ -10746,9 +10747,7 @@ var _sfc_main$V = /* @__PURE__ */ defineComponent({
10746
10747
  const toggleFull = () => {
10747
10748
  isFullscreen.value = !unref(isFullscreen);
10748
10749
  };
10749
- const dialogHeight = ref(
10750
- isNumber(props.maxHeight) ? `${props.maxHeight}px` : props.maxHeight
10751
- );
10750
+ const dialogHeight = ref(isNumber(props.maxHeight) ? `${props.maxHeight}px` : props.maxHeight);
10752
10751
  watch(
10753
10752
  () => isFullscreen.value,
10754
10753
  async (val) => {
@@ -10778,7 +10777,7 @@ var _sfc_main$V = /* @__PURE__ */ defineComponent({
10778
10777
  "destroy-on-close": "",
10779
10778
  "append-to-body": "",
10780
10779
  "lock-scroll": "",
10781
- draggable: "",
10780
+ draggable: _ctx.draggable,
10782
10781
  "close-on-click-modal": false,
10783
10782
  "show-close": false,
10784
10783
  class: "dk-dialog"
@@ -10834,7 +10833,7 @@ var _sfc_main$V = /* @__PURE__ */ defineComponent({
10834
10833
  ]),
10835
10834
  key: "0"
10836
10835
  } : void 0
10837
- ]), 1040, ["fullscreen"]);
10836
+ ]), 1040, ["fullscreen", "draggable"]);
10838
10837
  };
10839
10838
  }
10840
10839
  });
@@ -10862,7 +10861,7 @@ const formProps = {
10862
10861
  // 显示加载
10863
10862
  isLoading: { default: true, type: Boolean },
10864
10863
  // 默认高度
10865
- minHeight: { default: "100px", type: [String, Number] },
10864
+ minHeight: { default: "300px", type: String },
10866
10865
  // 是否为弹窗
10867
10866
  isDialog: { default: false, type: Boolean },
10868
10867
  // 弹窗显示后获取formData
@@ -10870,7 +10869,12 @@ const formProps = {
10870
10869
  // 弹窗配置
10871
10870
  dialog: {
10872
10871
  default: () => {
10873
- return {};
10872
+ return {
10873
+ width: "800px",
10874
+ fullscreen: false,
10875
+ minHeight: "200px",
10876
+ draggable: true
10877
+ };
10874
10878
  },
10875
10879
  type: Object
10876
10880
  }
@@ -10968,7 +10972,6 @@ var _sfc_main$U = /* @__PURE__ */ defineComponent({
10968
10972
  const fApi = ref();
10969
10973
  const loading = ref(true);
10970
10974
  const buttonLoading = ref(false);
10971
- const minHeight = computed(() => isNumber(props.minHeight) ? `${props.minHeight}px` : props.minHeight);
10972
10975
  const showDialog = ref(false);
10973
10976
  const formConfig = computed(() => ({ ...config, ...props.extraConfig }));
10974
10977
  const { width } = useWindowSize();
@@ -10980,6 +10983,58 @@ var _sfc_main$U = /* @__PURE__ */ defineComponent({
10980
10983
  emit("update:modelValue", val || {});
10981
10984
  }
10982
10985
  );
10986
+ const dialogWidth = computed(() => {
10987
+ let defaultWidth = "800px";
10988
+ if (props.dialog?.width) {
10989
+ defaultWidth = props.dialog?.width;
10990
+ }
10991
+ if (_formData.value?.config?.width) {
10992
+ defaultWidth = _formData.value?.config?.width;
10993
+ }
10994
+ return width.value < 768 ? "100%" : defaultWidth;
10995
+ });
10996
+ const dialogStyle = computed(() => {
10997
+ const style = {
10998
+ minHeight: void 0,
10999
+ maxHeight: void 0
11000
+ };
11001
+ if (props.dialog?.minHeight) {
11002
+ style.minHeight = props.dialog?.minHeight;
11003
+ }
11004
+ if (props.dialog?.maxHeight) {
11005
+ style.maxHeight = props.dialog?.maxHeight;
11006
+ }
11007
+ if (_formData.value?.config?.minHeight) {
11008
+ style.minHeight = _formData.value?.config?.minHeight;
11009
+ }
11010
+ if (_formData.value?.config?.maxHeight) {
11011
+ style.maxHeight = _formData.value?.config?.maxHeight;
11012
+ }
11013
+ return style;
11014
+ });
11015
+ const draggable = computed(() => {
11016
+ let draggable2 = true;
11017
+ if (props.dialog?.draggable) {
11018
+ draggable2 = props.dialog?.draggable;
11019
+ }
11020
+ if (_formData.value?.config?.draggable !== void 0) {
11021
+ draggable2 = _formData.value?.config?.draggable;
11022
+ }
11023
+ return draggable2;
11024
+ });
11025
+ const isFullscreen = computed(() => {
11026
+ let defaultFullscreen = false;
11027
+ if (props.dialog?.width) {
11028
+ defaultFullscreen = props.dialog?.fullscreen;
11029
+ }
11030
+ if (_formData.value?.config?.fullscreen) {
11031
+ defaultFullscreen = _formData.value?.config?.fullscreen;
11032
+ }
11033
+ if (width.value < 768) {
11034
+ defaultFullscreen = true;
11035
+ }
11036
+ return defaultFullscreen;
11037
+ });
10983
11038
  const setFormData = (formData) => {
10984
11039
  value.value = null;
10985
11040
  _formData.value = formData;
@@ -11068,16 +11123,17 @@ var _sfc_main$U = /* @__PURE__ */ defineComponent({
11068
11123
  modelValue: showDialog.value,
11069
11124
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => showDialog.value = $event),
11070
11125
  title: _formData.value?.title ? _formData.value?.title : "\u8868\u5355",
11071
- width: unref(width).value < 768 ? "100%" : "800px",
11072
- "default-fullscreen": unref(width).value < 768,
11126
+ width: dialogWidth.value,
11127
+ "default-fullscreen": isFullscreen.value,
11073
11128
  "min-height": "200px",
11129
+ draggable: draggable.value,
11074
11130
  "append-to-body": ""
11075
11131
  }, {
11076
11132
  default: withCtx(() => [
11077
11133
  createElementVNode(
11078
11134
  "div",
11079
11135
  {
11080
- style: normalizeStyle({ minHeight: minHeight.value }),
11136
+ style: normalizeStyle(dialogStyle.value),
11081
11137
  class: "dk-form"
11082
11138
  },
11083
11139
  [
@@ -11088,6 +11144,7 @@ var _sfc_main$U = /* @__PURE__ */ defineComponent({
11088
11144
  rule: _formData.value.rules,
11089
11145
  "handle-icon": false,
11090
11146
  class: "formBox",
11147
+ style: { "padding": "10px" },
11091
11148
  "onUpdate:api": _cache[1] || (_cache[1] = ($event) => fApi.value = $event),
11092
11149
  "onUpdate:value": _cache[2] || (_cache[2] = ($event) => value.value = $event)
11093
11150
  }, null, 8, ["modelValue", "option", "rule"]),
@@ -11118,16 +11175,15 @@ var _sfc_main$U = /* @__PURE__ */ defineComponent({
11118
11175
  ],
11119
11176
  4
11120
11177
  /* STYLE */
11121
- ),
11122
- createCommentVNode(' <div v-else :style="{ minHeight }"></div>')
11178
+ )
11123
11179
  ]),
11124
11180
  _: 3
11125
11181
  /* FORWARDED */
11126
- }, 8, ["modelValue", "title", "width", "default-fullscreen"])) : (openBlock(), createElementBlock("div", _hoisted_1$F, [
11182
+ }, 8, ["modelValue", "title", "width", "default-fullscreen", "draggable"])) : (openBlock(), createElementBlock("div", _hoisted_1$F, [
11127
11183
  createElementVNode(
11128
11184
  "div",
11129
11185
  {
11130
- style: normalizeStyle({ minHeight: minHeight.value }),
11186
+ style: normalizeStyle({ minHeight: _ctx.minHeight }),
11131
11187
  class: "dk-form"
11132
11188
  },
11133
11189
  [
@@ -11406,13 +11462,13 @@ const _hoisted_10$5 = ["onClick"];
11406
11462
  const _hoisted_11$4 = { class: "ml-10px" };
11407
11463
  const _hoisted_12$4 = { class: "op" };
11408
11464
  const _hoisted_13$3 = { class: "attachment-container" };
11409
- const _hoisted_14$2 = {
11465
+ const _hoisted_14$3 = {
11410
11466
  key: 0,
11411
11467
  class: "p2"
11412
11468
  };
11413
- const _hoisted_15$2 = ["onClick", "onContextmenu"];
11414
- const _hoisted_16$1 = { class: "file" };
11415
- const _hoisted_17$1 = /* @__PURE__ */ createElementVNode(
11469
+ const _hoisted_15$3 = ["onClick", "onContextmenu"];
11470
+ const _hoisted_16$3 = { class: "file" };
11471
+ const _hoisted_17$2 = /* @__PURE__ */ createElementVNode(
11416
11472
  "div",
11417
11473
  { class: "u-m-t-30" },
11418
11474
  [
@@ -11447,6 +11503,7 @@ var _sfc_main$S = /* @__PURE__ */ defineComponent({
11447
11503
  const chooseFileKey = ref([]);
11448
11504
  const chooseFileList = ref([]);
11449
11505
  const chooseFileId = ref([]);
11506
+ const globalConfig = getGlobalConfig();
11450
11507
  const uploadUrl = ref(globalConfig.ApiUrl);
11451
11508
  const headers = ref({
11452
11509
  "Access-Token": globalConfig.AccessToken
@@ -11841,7 +11898,7 @@ var _sfc_main$S = /* @__PURE__ */ defineComponent({
11841
11898
  ]),
11842
11899
  createCommentVNode(" \u5217\u8868"),
11843
11900
  createElementVNode("div", _hoisted_13$3, [
11844
- loading.value || list.value.length > 0 ? withDirectives((openBlock(), createElementBlock("div", _hoisted_14$2, [
11901
+ loading.value || list.value.length > 0 ? withDirectives((openBlock(), createElementBlock("div", _hoisted_14$3, [
11845
11902
  createElementVNode(
11846
11903
  "ul",
11847
11904
  {
@@ -11859,7 +11916,7 @@ var _sfc_main$S = /* @__PURE__ */ defineComponent({
11859
11916
  onClick: ($event) => chooseAttachment(item, key),
11860
11917
  onContextmenu: withModifiers(($event) => contextMenuId.value = item.id, ["prevent"])
11861
11918
  }, [
11862
- createElementVNode("div", _hoisted_16$1, [
11919
+ createElementVNode("div", _hoisted_16$3, [
11863
11920
  item.type === 1 ? (openBlock(), createBlock(_component_el_image, {
11864
11921
  key: 0,
11865
11922
  class: "file",
@@ -11867,7 +11924,7 @@ var _sfc_main$S = /* @__PURE__ */ defineComponent({
11867
11924
  fit: "contain"
11868
11925
  }, {
11869
11926
  placeholder: withCtx(() => [
11870
- _hoisted_17$1
11927
+ _hoisted_17$2
11871
11928
  ]),
11872
11929
  _: 2
11873
11930
  /* DYNAMIC */
@@ -11906,7 +11963,7 @@ var _sfc_main$S = /* @__PURE__ */ defineComponent({
11906
11963
  /* STABLE */
11907
11964
  })
11908
11965
  ])
11909
- ], 42, _hoisted_15$2);
11966
+ ], 42, _hoisted_15$3);
11910
11967
  }),
11911
11968
  128
11912
11969
  /* KEYED_FRAGMENT */
@@ -12103,9 +12160,10 @@ var _sfc_main$Q = /* @__PURE__ */ defineComponent({
12103
12160
  return (_ctx, _cache) => {
12104
12161
  const _component_el_button = resolveComponent("el-button");
12105
12162
  const _component_el_input = resolveComponent("el-input");
12163
+ const _component_dk_icon = resolveComponent("dk-icon");
12164
+ const _component_el_image = resolveComponent("el-image");
12106
12165
  const _component_Picture = resolveComponent("Picture");
12107
12166
  const _component_el_icon = resolveComponent("el-icon");
12108
- const _component_el_image = resolveComponent("el-image");
12109
12167
  const _component_Close = resolveComponent("Close");
12110
12168
  const _component_Plus = resolveComponent("Plus");
12111
12169
  const _component_dk_attachment_dialog = resolveComponent("dk-attachment-dialog");
@@ -12150,13 +12208,7 @@ var _sfc_main$Q = /* @__PURE__ */ defineComponent({
12150
12208
  }, {
12151
12209
  error: withCtx(() => [
12152
12210
  createElementVNode("div", _hoisted_2$s, [
12153
- createVNode(_component_el_icon, null, {
12154
- default: withCtx(() => [
12155
- createVNode(_component_Picture)
12156
- ]),
12157
- _: 1
12158
- /* STABLE */
12159
- })
12211
+ createVNode(_component_dk_icon, { icon: "Picture" })
12160
12212
  ])
12161
12213
  ]),
12162
12214
  _: 1
@@ -12170,13 +12222,7 @@ var _sfc_main$Q = /* @__PURE__ */ defineComponent({
12170
12222
  createElementVNode("em", {
12171
12223
  onClick: _cache[1] || (_cache[1] = ($event) => input.value = "")
12172
12224
  }, [
12173
- createVNode(_component_el_icon, null, {
12174
- default: withCtx(() => [
12175
- createVNode(_component_Close)
12176
- ]),
12177
- _: 1
12178
- /* STABLE */
12179
- })
12225
+ createVNode(_component_dk_icon, { icon: "Close" })
12180
12226
  ])
12181
12227
  ])
12182
12228
  ],
@@ -14006,16 +14052,16 @@ const _hoisted_11$3 = /* @__PURE__ */ createElementVNode(
14006
14052
  );
14007
14053
  const _hoisted_12$3 = { class: "anchor-wrapper" };
14008
14054
  const _hoisted_13$2 = ["onMousedown"];
14009
- const _hoisted_14$1 = /* @__PURE__ */ createElementVNode(
14055
+ const _hoisted_14$2 = /* @__PURE__ */ createElementVNode(
14010
14056
  "span",
14011
14057
  { class: "title" },
14012
14058
  " \u5916\u8FB9\u8DDD ",
14013
14059
  -1
14014
14060
  /* HOISTED */
14015
14061
  );
14016
- const _hoisted_15$1 = { class: "thumnail border" };
14017
- const _hoisted_16 = ["title", "onDblclick"];
14018
- const _hoisted_17 = ["onUpdate:modelValue", "onBlur"];
14062
+ const _hoisted_15$2 = { class: "thumnail border" };
14063
+ const _hoisted_16$2 = ["title", "onDblclick"];
14064
+ const _hoisted_17$1 = ["onUpdate:modelValue", "onBlur"];
14019
14065
  const _hoisted_18 = ["width", "height", "viewBox", "data-link-anchor", "innerHTML"];
14020
14066
  const _hoisted_19 = { class: "anchor-wrapper" };
14021
14067
  const _hoisted_20 = ["onMousedown"];
@@ -14438,10 +14484,10 @@ var _sfc_main$D = /* @__PURE__ */ defineComponent({
14438
14484
  /* STABLE_FRAGMENT */
14439
14485
  ))
14440
14486
  ]),
14441
- _hoisted_14$1,
14487
+ _hoisted_14$2,
14442
14488
  createCommentVNode("\u5916\u8FB9\u8DDD Margin END"),
14443
14489
  createCommentVNode("\u5185\u8FB9\u8DDD Padding"),
14444
- createElementVNode("div", _hoisted_15$1, [
14490
+ createElementVNode("div", _hoisted_15$2, [
14445
14491
  createElementVNode(
14446
14492
  "div",
14447
14493
  {
@@ -14460,7 +14506,7 @@ var _sfc_main$D = /* @__PURE__ */ defineComponent({
14460
14506
  title: item.title,
14461
14507
  class: normalizeClass(`anchor-tip-${item.position} value-indicator`),
14462
14508
  onDblclick: ($event) => onDblclick(item.value, key + 4)
14463
- }, toDisplayString(getValue(styles[item.value])), 43, _hoisted_16),
14509
+ }, toDisplayString(getValue(styles[item.value])), 43, _hoisted_16$2),
14464
14510
  withDirectives(createElementVNode("input", {
14465
14511
  ref_for: true,
14466
14512
  ref_key: "inputField",
@@ -14470,7 +14516,7 @@ var _sfc_main$D = /* @__PURE__ */ defineComponent({
14470
14516
  "input-box anchor-tip-" + item.position + (showStyles[item.value] ? " show" : "")
14471
14517
  ),
14472
14518
  onBlur: ($event) => onBlur(item.value)
14473
- }, null, 42, _hoisted_17), [
14519
+ }, null, 42, _hoisted_17$1), [
14474
14520
  [vModelText, styles[item.value]]
14475
14521
  ]),
14476
14522
  (openBlock(), createElementBlock("svg", {
@@ -23157,6 +23203,10 @@ const tableProps = {
23157
23203
  tableApi: {
23158
23204
  default: "",
23159
23205
  type: String
23206
+ },
23207
+ cacheTable: {
23208
+ default: true,
23209
+ type: Boolean
23160
23210
  }
23161
23211
  // ...ElTableNext.props,
23162
23212
  };
@@ -26185,6 +26235,9 @@ class dkTableApi {
26185
26235
  controllerUrl;
26186
26236
  actionUrl;
26187
26237
  constructor(controllerUrl) {
26238
+ if (!controllerUrl.endsWith("/")) {
26239
+ controllerUrl += "/";
26240
+ }
26188
26241
  this.controllerUrl = controllerUrl;
26189
26242
  this.actionUrl = /* @__PURE__ */ new Map([
26190
26243
  ["index", controllerUrl + "index"],
@@ -26344,20 +26397,26 @@ class dkTableApi {
26344
26397
  * @param targetId
26345
26398
  */
26346
26399
  sortableApi(id, targetId) {
26347
- return request({
26348
- url: this.actionUrl.get("sortable"),
26349
- method: "post",
26350
- data: {
26351
- id,
26352
- targetId
26400
+ return request(
26401
+ {
26402
+ url: this.actionUrl.get("sortable"),
26403
+ method: "post",
26404
+ data: {
26405
+ id,
26406
+ targetId
26407
+ }
26408
+ },
26409
+ {
26410
+ code_error_show: true
26353
26411
  }
26354
- });
26412
+ );
26355
26413
  }
26356
26414
  }
26357
26415
 
26358
26416
  class dkTable {
26359
26417
  url;
26360
26418
  api;
26419
+ buttonCallback;
26361
26420
  table = reactive({
26362
26421
  ref: void 0,
26363
26422
  pk: "id",
@@ -26415,6 +26474,9 @@ class dkTable {
26415
26474
  this.api = new dkTableApi(url);
26416
26475
  this.before = before;
26417
26476
  this.after = after;
26477
+ this.buttonCallback = (event, data) => {
26478
+ console.warn("\u8BF7\u8C03\u7528onClickButton((event,data)=>{})", event, data);
26479
+ };
26418
26480
  }
26419
26481
  /**
26420
26482
  * 表格内部鉴权方法
@@ -26475,6 +26537,9 @@ class dkTable {
26475
26537
  } else {
26476
26538
  return this.api.table().then((res) => {
26477
26539
  this.table.column = res.data.column;
26540
+ if (res.data.pk) {
26541
+ this.table.pk = res.data.pk;
26542
+ }
26478
26543
  storage.set(this.url + "_table", JSON.stringify(res.data));
26479
26544
  this.runAfter("getTable", { res });
26480
26545
  }).finally(() => {
@@ -26541,6 +26606,9 @@ class dkTable {
26541
26606
  });
26542
26607
  return ids;
26543
26608
  }
26609
+ onClickButton(callback) {
26610
+ this.buttonCallback = callback;
26611
+ }
26544
26612
  /**
26545
26613
  * 表格内的事件统一响应
26546
26614
  * @param event 事件:selection-change=选中项改变,page-size-change=每页数量改变,current-page-change=翻页,sort-change=排序,edit=编辑,delete=删除,field-change=单元格值改变,com-search=公共搜索
@@ -26643,7 +26711,7 @@ class dkTable {
26643
26711
  [
26644
26712
  "default",
26645
26713
  () => {
26646
- console.warn("No action defined");
26714
+ this.buttonCallback(event, data);
26647
26715
  }
26648
26716
  ]
26649
26717
  ]);
@@ -26697,6 +26765,7 @@ class dkTable {
26697
26765
  if (this.form.operateIds.length > 0) {
26698
26766
  this.toggleForm("Edit", this.form.operateIds);
26699
26767
  }
26768
+ this.getIndex();
26700
26769
  };
26701
26770
  /**
26702
26771
  * 排序
@@ -26802,6 +26871,13 @@ class dkTable {
26802
26871
  () => {
26803
26872
  const columnKey = getArrayKey(this.table.column, "prop", data.field);
26804
26873
  this.table.column[columnKey].show = data.value;
26874
+ if (this.url) {
26875
+ const key = this.url + "show_column";
26876
+ const cachedData = storage.get(key) || "{}";
26877
+ const cachedTableData = JSON.parse(cachedData);
26878
+ cachedTableData[data.field] = data.value;
26879
+ storage.set(key, JSON.stringify(cachedTableData));
26880
+ }
26805
26881
  }
26806
26882
  ],
26807
26883
  [
@@ -27751,23 +27827,29 @@ const _hoisted_8$4 = {
27751
27827
  key: 0,
27752
27828
  class: "com-search-col-label"
27753
27829
  };
27754
- const _hoisted_9$3 = {
27830
+ const _hoisted_9$3 = { class: "com-search-col-input-range" };
27831
+ const _hoisted_10$2 = { class: "com-search-col" };
27832
+ const _hoisted_11$1 = {
27833
+ key: 0,
27834
+ class: "com-search-col-label"
27835
+ };
27836
+ const _hoisted_12$1 = {
27755
27837
  key: 1,
27756
27838
  class: "com-search-col-input-range"
27757
27839
  };
27758
- const _hoisted_10$2 = /* @__PURE__ */ createElementVNode(
27840
+ const _hoisted_13$1 = /* @__PURE__ */ createElementVNode(
27759
27841
  "div",
27760
27842
  { class: "range-separator" },
27761
27843
  "\u5230",
27762
27844
  -1
27763
27845
  /* HOISTED */
27764
27846
  );
27765
- const _hoisted_11$1 = { class: "com-search-col-input" };
27766
- const _hoisted_12$1 = {
27847
+ const _hoisted_14$1 = { class: "com-search-col-input" };
27848
+ const _hoisted_15$1 = {
27767
27849
  key: 3,
27768
27850
  class: "com-search-col-input"
27769
27851
  };
27770
- const _hoisted_13$1 = { class: "com-search-col pl-20" };
27852
+ const _hoisted_16$1 = { class: "com-search-col pl-20" };
27771
27853
  var _sfc_main$d = /* @__PURE__ */ defineComponent({
27772
27854
  __name: "ComSearch",
27773
27855
  setup(__props) {
@@ -27814,6 +27896,11 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
27814
27896
  val = DkTable.comSearch.form[key][0] + "," + DkTable.comSearch.form[key][1];
27815
27897
  }
27816
27898
  }
27899
+ } else if (fieldDataTemp.render == "time" && (fieldDataTemp.operator == "RANGE" || fieldDataTemp.operator == "NOT RANGE")) {
27900
+ if (DkTable.comSearch.form[key] && DkTable.comSearch.form[key].length >= 2) {
27901
+ val = DkTable.comSearch.form[key][0] + "," + DkTable.comSearch.form[key][1];
27902
+ console.log("val", val, DkTable.comSearch.form[key]);
27903
+ }
27817
27904
  } else if (fieldDataTemp.operator == "RANGE" || fieldDataTemp.operator == "NOT RANGE") {
27818
27905
  if (!DkTable.comSearch.form[key + "-start"] && !DkTable.comSearch.form[key + "-end"]) {
27819
27906
  continue;
@@ -27843,6 +27930,7 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
27843
27930
  return (_ctx, _cache) => {
27844
27931
  const _component_el_col = resolveComponent("el-col");
27845
27932
  const _component_el_date_picker = resolveComponent("el-date-picker");
27933
+ const _component_el_time_picker = resolveComponent("el-time-picker");
27846
27934
  const _component_el_input = resolveComponent("el-input");
27847
27935
  const _component_el_checkbox = resolveComponent("el-checkbox");
27848
27936
  const _component_el_option = resolveComponent("el-option");
@@ -27959,21 +28047,58 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
27959
28047
  ],
27960
28048
  2112
27961
28049
  /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
28050
+ )) : item.render == "time" && (item.operator == "RANGE" || item.operator == "NOT RANGE") ? (openBlock(), createElementBlock(
28051
+ Fragment,
28052
+ { key: 2 },
28053
+ [
28054
+ createCommentVNode("\u65F6\u95F4\u8303\u56F4"),
28055
+ createVNode(_component_el_col, {
28056
+ span: spans.value.datetime
28057
+ }, {
28058
+ default: withCtx(() => [
28059
+ createElementVNode("div", _hoisted_7$4, [
28060
+ item.comSearchShowLabel !== false ? (openBlock(), createElementBlock(
28061
+ "div",
28062
+ _hoisted_8$4,
28063
+ toDisplayString(item.label),
28064
+ 1
28065
+ /* TEXT */
28066
+ )) : createCommentVNode("v-if", true),
28067
+ createElementVNode("div", _hoisted_9$3, [
28068
+ createVNode(_component_el_time_picker, {
28069
+ modelValue: unref(DkTable).comSearch.form[item.prop],
28070
+ "onUpdate:modelValue": ($event) => unref(DkTable).comSearch.form[item.prop] = $event,
28071
+ "is-range": "",
28072
+ "range-separator": "\u5230",
28073
+ format: "HH:mm:ss",
28074
+ "value-format": "HH:mm:ss",
28075
+ "start-placeholder": "\u5F00\u59CB\u65F6\u95F4",
28076
+ "end-placeholder": "\u7ED3\u675F\u65F6\u95F4"
28077
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
28078
+ ])
28079
+ ])
28080
+ ]),
28081
+ _: 2
28082
+ /* DYNAMIC */
28083
+ }, 1032, ["span"])
28084
+ ],
28085
+ 2112
28086
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
27962
28087
  )) : (openBlock(), createBlock(_component_el_col, {
27963
- key: 2,
28088
+ key: 3,
27964
28089
  span: spans.value.common
27965
28090
  }, {
27966
28091
  default: withCtx(() => [
27967
- createElementVNode("div", _hoisted_7$4, [
28092
+ createElementVNode("div", _hoisted_10$2, [
27968
28093
  item.comSearchShowLabel !== false ? (openBlock(), createElementBlock(
27969
28094
  "div",
27970
- _hoisted_8$4,
28095
+ _hoisted_11$1,
27971
28096
  toDisplayString(item.label),
27972
28097
  1
27973
28098
  /* TEXT */
27974
28099
  )) : createCommentVNode("v-if", true),
27975
28100
  createCommentVNode(" \u6570\u5B57\u8303\u56F4 "),
27976
- item.operator == "RANGE" || item.operator == "NOT RANGE" ? (openBlock(), createElementBlock("div", _hoisted_9$3, [
28101
+ item.operator == "RANGE" || item.operator == "NOT RANGE" ? (openBlock(), createElementBlock("div", _hoisted_12$1, [
27977
28102
  createVNode(_component_el_input, {
27978
28103
  modelValue: unref(DkTable).comSearch.form[item.prop + "-start"],
27979
28104
  "onUpdate:modelValue": ($event) => unref(DkTable).comSearch.form[item.prop + "-start"] = $event,
@@ -27981,7 +28106,7 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
27981
28106
  type: "string",
27982
28107
  clearable: true
27983
28108
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"]),
27984
- _hoisted_10$2,
28109
+ _hoisted_13$1,
27985
28110
  createVNode(_component_el_input, {
27986
28111
  modelValue: unref(DkTable).comSearch.form[item.prop + "-end"],
27987
28112
  "onUpdate:modelValue": ($event) => unref(DkTable).comSearch.form[item.prop + "-end"] = $event,
@@ -27994,7 +28119,7 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
27994
28119
  { key: 2 },
27995
28120
  [
27996
28121
  createCommentVNode(" \u662F\u5426 [NOT] NULL "),
27997
- createElementVNode("div", _hoisted_11$1, [
28122
+ createElementVNode("div", _hoisted_14$1, [
27998
28123
  createVNode(_component_el_checkbox, {
27999
28124
  modelValue: unref(DkTable).comSearch.form[item.prop],
28000
28125
  "onUpdate:modelValue": ($event) => unref(DkTable).comSearch.form[item.prop] = $event,
@@ -28005,7 +28130,7 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
28005
28130
  ],
28006
28131
  2112
28007
28132
  /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
28008
- )) : item.operator ? (openBlock(), createElementBlock("div", _hoisted_12$1, [
28133
+ )) : item.operator ? (openBlock(), createElementBlock("div", _hoisted_15$1, [
28009
28134
  createCommentVNode(" \u65F6\u95F4\u7B5B\u9009 "),
28010
28135
  item.render == "datetime" || item.comSearchRender == "date" ? (openBlock(), createBlock(_component_el_date_picker, {
28011
28136
  key: 0,
@@ -28017,9 +28142,20 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
28017
28142
  placeholder: item.operatorPlaceholder,
28018
28143
  "default-value": unref(DkTable).comSearch.form[item.prop + "-default"] ? unref(DkTable).comSearch.form[item.prop + "-default"] : /* @__PURE__ */ new Date(),
28019
28144
  teleported: false
28020
- }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "placeholder", "default-value"])) : (item.render == "tag" || item.render == "tags" || item.comSearchRender == "select") && item.replaceValue ? (openBlock(), createElementBlock(
28145
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "value-format", "placeholder", "default-value"])) : createCommentVNode("v-if", true),
28146
+ createCommentVNode(" \u5E74\u7B5B\u9009 "),
28147
+ item.render == "year" ? (openBlock(), createBlock(_component_el_date_picker, {
28148
+ key: 1,
28149
+ modelValue: unref(DkTable).comSearch.form[item.prop],
28150
+ "onUpdate:modelValue": ($event) => unref(DkTable).comSearch.form[item.prop] = $event,
28151
+ class: "datetime-picker",
28152
+ type: "year",
28153
+ "value-format": "YYYY",
28154
+ style: { "width": "100%" },
28155
+ placeholder: item.operatorPlaceholder
28156
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : (item.render == "tag" || item.render == "tags" || item.comSearchRender == "select") && item.replaceValue ? (openBlock(), createElementBlock(
28021
28157
  Fragment,
28022
- { key: 1 },
28158
+ { key: 2 },
28023
28159
  [
28024
28160
  createCommentVNode(" tag\u3001tags\u3001select "),
28025
28161
  createVNode(_component_el_select, {
@@ -28051,7 +28187,7 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
28051
28187
  /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
28052
28188
  )) : item.comSearchRender == "remoteSelect" ? (openBlock(), createElementBlock(
28053
28189
  Fragment,
28054
- { key: 2 },
28190
+ { key: 3 },
28055
28191
  [
28056
28192
  createCommentVNode(" \u8FDC\u7A0B select "),
28057
28193
  createVNode(_component_dk_select, {
@@ -28064,7 +28200,7 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
28064
28200
  /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
28065
28201
  )) : item.render == "switch" ? (openBlock(), createElementBlock(
28066
28202
  Fragment,
28067
- { key: 3 },
28203
+ { key: 4 },
28068
28204
  [
28069
28205
  createCommentVNode(" \u5F00\u5173 "),
28070
28206
  createVNode(_component_el_select, {
@@ -28111,7 +28247,7 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
28111
28247
  /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
28112
28248
  )) : (openBlock(), createElementBlock(
28113
28249
  Fragment,
28114
- { key: 4 },
28250
+ { key: 5 },
28115
28251
  [
28116
28252
  createCommentVNode(" \u5B57\u7B26\u4E32 "),
28117
28253
  createVNode(_component_el_input, {
@@ -28148,13 +28284,13 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
28148
28284
  sm: 6
28149
28285
  }, {
28150
28286
  default: withCtx(() => [
28151
- createElementVNode("div", _hoisted_13$1, [
28287
+ createElementVNode("div", _hoisted_16$1, [
28152
28288
  withDirectives((openBlock(), createBlock(_component_el_button, {
28153
28289
  type: "primary",
28154
28290
  onClick: onComSearch
28155
28291
  }, {
28156
28292
  default: withCtx(() => [
28157
- createTextVNode(" \u641C\u7D22 ")
28293
+ createTextVNode(" \u641C\u7D22")
28158
28294
  ]),
28159
28295
  _: 1
28160
28296
  /* STABLE */
@@ -28253,9 +28389,17 @@ var _sfc_main$c = /* @__PURE__ */ defineComponent({
28253
28389
  const DkTable = inject("DkTable");
28254
28390
  const columnDisplay = computed(() => {
28255
28391
  const columnDisplayArr = [];
28392
+ let cachedTableData = {};
28393
+ if (DkTable.url) {
28394
+ cachedTableData = JSON.parse(storage.get(DkTable.url + "show_column") || "{}");
28395
+ }
28256
28396
  for (const item of DkTable.table.column) {
28397
+ if (cachedTableData[item.prop] !== void 0) {
28398
+ item.show = cachedTableData[item.prop];
28399
+ }
28257
28400
  item.type === "selection" || item.render === "buttons" || item.enableColumnDisplayControl === false ? "" : columnDisplayArr.push(item);
28258
28401
  }
28402
+ console.log("columnDisplayArr", columnDisplayArr);
28259
28403
  return columnDisplayArr;
28260
28404
  });
28261
28405
  const enableBatchOpt = computed(() => DkTable.table.selection.length > 0);
@@ -28609,21 +28753,23 @@ const _hoisted_6$2 = { key: 5 };
28609
28753
  const _hoisted_7$2 = { key: 6 };
28610
28754
  const _hoisted_8$2 = { key: 7 };
28611
28755
  const _hoisted_9$1 = { key: 8 };
28612
- const _hoisted_10 = { key: 10 };
28613
- const _hoisted_11 = {
28756
+ const _hoisted_10 = { key: 9 };
28757
+ const _hoisted_11 = { key: 10 };
28758
+ const _hoisted_12 = { key: 12 };
28759
+ const _hoisted_13 = {
28614
28760
  key: 0,
28615
28761
  class: "table-operate-text"
28616
28762
  };
28617
- const _hoisted_12 = {
28763
+ const _hoisted_14 = {
28618
28764
  key: 0,
28619
28765
  class: "table-operate-text"
28620
28766
  };
28621
- const _hoisted_13 = { class: "dk-tooltip-button" };
28622
- const _hoisted_14 = {
28767
+ const _hoisted_15 = { class: "dk-tooltip-button" };
28768
+ const _hoisted_16 = {
28623
28769
  key: 0,
28624
28770
  class: "table-operate-text"
28625
28771
  };
28626
- const _hoisted_15 = {
28772
+ const _hoisted_17 = {
28627
28773
  key: 0,
28628
28774
  class: "table-operate-text"
28629
28775
  };
@@ -28838,8 +28984,22 @@ var _sfc_main$b = /* @__PURE__ */ defineComponent({
28838
28984
  1
28839
28985
  /* TEXT */
28840
28986
  )) : createCommentVNode("v-if", true),
28987
+ _ctx.field.render == "time" ? (openBlock(), createElementBlock(
28988
+ "div",
28989
+ _hoisted_9$1,
28990
+ toDisplayString(fieldValue.value),
28991
+ 1
28992
+ /* TEXT */
28993
+ )) : createCommentVNode("v-if", true),
28994
+ _ctx.field.render == "year" ? (openBlock(), createElementBlock(
28995
+ "div",
28996
+ _hoisted_10,
28997
+ toDisplayString(fieldValue.value),
28998
+ 1
28999
+ /* TEXT */
29000
+ )) : createCommentVNode("v-if", true),
28841
29001
  createCommentVNode(" color "),
28842
- _ctx.field.render == "color" ? (openBlock(), createElementBlock("div", _hoisted_9$1, [
29002
+ _ctx.field.render == "color" ? (openBlock(), createElementBlock("div", _hoisted_11, [
28843
29003
  createElementVNode(
28844
29004
  "div",
28845
29005
  {
@@ -28853,7 +29013,7 @@ var _sfc_main$b = /* @__PURE__ */ defineComponent({
28853
29013
  ])) : createCommentVNode("v-if", true),
28854
29014
  createCommentVNode(" \u81EA\u5B9A\u4E49\u7EC4\u4EF6/\u51FD\u6570\u6E32\u67D3 "),
28855
29015
  _ctx.field.render == "customRender" ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.field.customRender), {
28856
- key: 9,
29016
+ key: 11,
28857
29017
  "render-row": _ctx.row,
28858
29018
  "render-field": _ctx.field,
28859
29019
  "render-value": fieldValue.value,
@@ -28862,7 +29022,7 @@ var _sfc_main$b = /* @__PURE__ */ defineComponent({
28862
29022
  }, null, 8, ["render-row", "render-field", "render-value", "render-column", "render-index"])) : createCommentVNode("v-if", true),
28863
29023
  createCommentVNode(" \u6309\u94AE\u7EC4 "),
28864
29024
  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 "),
28865
- _ctx.field.render == "buttons" && _ctx.field.buttons ? (openBlock(), createElementBlock("div", _hoisted_10, [
29025
+ _ctx.field.render == "buttons" && _ctx.field.buttons ? (openBlock(), createElementBlock("div", _hoisted_12, [
28866
29026
  (openBlock(true), createElementBlock(
28867
29027
  Fragment,
28868
29028
  null,
@@ -28890,7 +29050,7 @@ var _sfc_main$b = /* @__PURE__ */ defineComponent({
28890
29050
  }, null, 8, ["icon"]),
28891
29051
  btn.text ? (openBlock(), createElementBlock(
28892
29052
  "div",
28893
- _hoisted_11,
29053
+ _hoisted_13,
28894
29054
  toDisplayString(btn.text),
28895
29055
  1
28896
29056
  /* TEXT */
@@ -28906,7 +29066,9 @@ var _sfc_main$b = /* @__PURE__ */ defineComponent({
28906
29066
  key: 1,
28907
29067
  disabled: !(btn.title && !btn.disabledTip),
28908
29068
  content: btn.title ?? "",
28909
- placement: "top"
29069
+ placement: "top",
29070
+ "hide-after": 0,
29071
+ "show-after": 100
28910
29072
  }, {
28911
29073
  default: withCtx(() => [
28912
29074
  withDirectives((openBlock(), createBlock(_component_el_button, mergeProps({
@@ -28922,7 +29084,7 @@ var _sfc_main$b = /* @__PURE__ */ defineComponent({
28922
29084
  }, null, 8, ["icon"]),
28923
29085
  btn.text ? (openBlock(), createElementBlock(
28924
29086
  "div",
28925
- _hoisted_12,
29087
+ _hoisted_14,
28926
29088
  toDisplayString(btn.text),
28927
29089
  1
28928
29090
  /* TEXT */
@@ -28942,10 +29104,12 @@ var _sfc_main$b = /* @__PURE__ */ defineComponent({
28942
29104
  key: 2,
28943
29105
  disabled: btn.disabled && btn.disabled(_ctx.row, _ctx.field)
28944
29106
  }, btn.popconfirm, {
29107
+ "hide-after": 0,
29108
+ "show-after": 100,
28945
29109
  onConfirm: ($event) => onButtonClick(btn)
28946
29110
  }), {
28947
29111
  reference: withCtx(() => [
28948
- createElementVNode("div", _hoisted_13, [
29112
+ createElementVNode("div", _hoisted_15, [
28949
29113
  createVNode(_component_el_tooltip, {
28950
29114
  disabled: !btn.title,
28951
29115
  content: btn.title ?? "",
@@ -28963,7 +29127,7 @@ var _sfc_main$b = /* @__PURE__ */ defineComponent({
28963
29127
  }, null, 8, ["icon"]),
28964
29128
  btn.text ? (openBlock(), createElementBlock(
28965
29129
  "div",
28966
- _hoisted_14,
29130
+ _hoisted_16,
28967
29131
  toDisplayString(btn.text),
28968
29132
  1
28969
29133
  /* TEXT */
@@ -28988,6 +29152,8 @@ var _sfc_main$b = /* @__PURE__ */ defineComponent({
28988
29152
  key: 3,
28989
29153
  disabled: !(btn.title && !btn.disabledTip),
28990
29154
  content: btn.title ?? "",
29155
+ "hide-after": 0,
29156
+ "show-after": 100,
28991
29157
  placement: "top"
28992
29158
  }, {
28993
29159
  default: withCtx(() => [
@@ -29002,7 +29168,7 @@ var _sfc_main$b = /* @__PURE__ */ defineComponent({
29002
29168
  }, null, 8, ["icon"]),
29003
29169
  btn.text ? (openBlock(), createElementBlock(
29004
29170
  "div",
29005
- _hoisted_15,
29171
+ _hoisted_17,
29006
29172
  toDisplayString(btn.text),
29007
29173
  1
29008
29174
  /* TEXT */
@@ -29313,7 +29479,7 @@ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
29313
29479
  const DkTable = new dkTable(props.tableApi);
29314
29480
  provide("DkTable", DkTable);
29315
29481
  onMounted(() => {
29316
- DkTable.getTable(false)?.then(() => {
29482
+ DkTable.getTable(props.cacheTable)?.then(() => {
29317
29483
  DkTable.getIndex()?.then(() => {
29318
29484
  nextTick(() => {
29319
29485
  DkTable.dragSort();
@@ -29331,6 +29497,9 @@ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
29331
29497
  const onTableCurrentChange = (val) => {
29332
29498
  DkTable.onTableAction("current-page-change", { page: val });
29333
29499
  };
29500
+ const ondblclick = (row) => {
29501
+ DkTable.toggleForm("Edit", [row[DkTable.table.pk]]);
29502
+ };
29334
29503
  const onSortChange = ({ order, prop }) => {
29335
29504
  DkTable.onTableAction("sort-change", {
29336
29505
  prop,
@@ -29458,7 +29627,8 @@ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
29458
29627
  onSelectAll,
29459
29628
  onSelect,
29460
29629
  onSelectionChange,
29461
- onSortChange
29630
+ onSortChange,
29631
+ onCellDblclick: ondblclick
29462
29632
  }), {
29463
29633
  default: withCtx(() => [
29464
29634
  renderSlot(_ctx.$slots, "columnPrepend"),
@@ -29534,10 +29704,7 @@ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
29534
29704
  onSizeChange: onTableSizeChange,
29535
29705
  onCurrentChange: onTableCurrentChange
29536
29706
  }, null, 8, ["current-page", "page-size", "page-sizes", "total"])
29537
- ]),
29538
- createCommentVNode(" <div>"),
29539
- createCommentVNode(' <el-button @click="test()">\u6D4B\u8BD5</el-button>'),
29540
- createCommentVNode(" </div>")
29707
+ ])
29541
29708
  ]),
29542
29709
  createVNode(_component_dk_form, {
29543
29710
  ref_key: "FormRef",