hy-dispatch-ui-v3 0.2.26 → 0.2.28

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.
Files changed (69) hide show
  1. package/dist/tailwind.css +53 -6
  2. package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +1 -1
  3. package/es/components/hyAudioPlayer/js/index.mjs +1 -1
  4. package/es/components/hyButton/button.vue.mjs +2 -2
  5. package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +1 -1
  6. package/es/components/hyConfirmDialog/confirmMethod.mjs +1 -1
  7. package/es/components/hyConfirmDialog/index.mjs +1 -1
  8. package/es/components/hyCutter/cutter.vue.mjs +1 -1
  9. package/es/components/hyDatePicker/datePicker.vue.mjs +1 -1
  10. package/es/components/hyDialog/dialog.vue.mjs +107 -57
  11. package/es/components/hyForm/cpns/formItem.vue.mjs +8 -3
  12. package/es/components/hyForm/js/useAppForm.mjs +1 -1
  13. package/es/components/hyOrgCascader/orgCascader.vue.mjs +1 -1
  14. package/es/components/hySearch/cpns/searchItem.vue.mjs +8 -2
  15. package/es/components/hyTable/cpns/headerItem.vue.mjs +1 -1
  16. package/es/components/hyTable/cpns/virtualTable.vue.mjs +4 -3
  17. package/es/components/hyTable/js/index.mjs +4 -1
  18. package/es/components/hyTable/js/useAppTable.mjs +1 -1
  19. package/es/components/hyTable/table.vue.mjs +23 -23
  20. package/es/components/hyTooltip/tooltip.vue.mjs +2 -2
  21. package/es/components/hyUserAvatar/userAvatar.vue.mjs +2 -2
  22. package/es/components/hyVideoPlayer/js/index.mjs +1 -1
  23. package/es/index.mjs +1 -1
  24. package/es/static/hy-svg-icons/{hy-icon-Miscellaneous-graffiti-/351/200/211/346/213/251.js → hy-icon-Miscellaneous-graffiti-choice.js} +4 -4
  25. package/es/static/hy-svg-icons/{hy-icon-dispatch-linear-/351/241/272/345/272/217.js → hy-icon-dispatch-linear-sequence.js} +4 -4
  26. package/es/static/hy-svg-icons/hy-icon-layout-sidenav-job-setup.js +8 -0
  27. package/es/static/hy-svg-icons/hy-icon-layout-sidenav-menu-business-cascade.js +3 -7
  28. package/es/static/hy-svg-icons/hy-icon-layout-sidenav-menu-cascade-icons.js +3 -9
  29. package/es/static/hy-svg-icons/hy-icon-layout-sidenav-menu-department-type.js +3 -3
  30. package/es/static/hy-svg-icons/hy-icon-layout-sidenav-menu-device-icons.js +3 -3
  31. package/es/static/hy-svg-icons/hy-icon-layout-sidenav-menu-modify-device-auth.js +3 -3
  32. package/es/static/hy-svg-icons/hy-icon-layout-sidenav-menu-system-settings.js +3 -5
  33. package/es/utils/index.mjs +1 -1
  34. package/es/utils/is.mjs +9 -1
  35. package/es/version.mjs +1 -1
  36. package/lib/components/hyAudioPlayer/js/index.js +1 -1
  37. package/lib/components/hyButton/button.vue.js +2 -2
  38. package/lib/components/hyConfirmDialog/confirmDialog.vue.js +1 -1
  39. package/lib/components/hyConfirmDialog/confirmMethod.js +1 -1
  40. package/lib/components/hyConfirmDialog/index.js +1 -1
  41. package/lib/components/hyCutter/cutter.vue.js +1 -1
  42. package/lib/components/hyDatePicker/datePicker.vue.js +1 -1
  43. package/lib/components/hyDialog/dialog.vue.js +105 -55
  44. package/lib/components/hyForm/cpns/formItem.vue.js +8 -3
  45. package/lib/components/hyForm/js/useAppForm.js +1 -1
  46. package/lib/components/hyOrgCascader/orgCascader.vue.js +1 -1
  47. package/lib/components/hySearch/cpns/searchItem.vue.js +8 -2
  48. package/lib/components/hyTable/cpns/headerItem.vue.js +1 -1
  49. package/lib/components/hyTable/cpns/virtualTable.vue.js +3 -2
  50. package/lib/components/hyTable/js/index.js +3 -0
  51. package/lib/components/hyTable/js/useAppTable.js +1 -1
  52. package/lib/components/hyTable/table.vue.js +23 -23
  53. package/lib/components/hyTooltip/tooltip.vue.js +2 -2
  54. package/lib/components/hyUserAvatar/userAvatar.vue.js +2 -2
  55. package/lib/components/hyVideoPlayer/js/index.js +1 -1
  56. package/lib/index.js +1 -0
  57. package/lib/static/hy-svg-icons/{hy-icon-Miscellaneous-graffiti-/351/200/211/346/213/251.js → hy-icon-Miscellaneous-graffiti-choice.js} +4 -4
  58. package/lib/static/hy-svg-icons/{hy-icon-dispatch-linear-/351/241/272/345/272/217.js → hy-icon-dispatch-linear-sequence.js} +4 -4
  59. package/lib/static/hy-svg-icons/hy-icon-layout-sidenav-job-setup.js +8 -0
  60. package/lib/static/hy-svg-icons/hy-icon-layout-sidenav-menu-business-cascade.js +3 -7
  61. package/lib/static/hy-svg-icons/hy-icon-layout-sidenav-menu-cascade-icons.js +3 -9
  62. package/lib/static/hy-svg-icons/hy-icon-layout-sidenav-menu-department-type.js +3 -3
  63. package/lib/static/hy-svg-icons/hy-icon-layout-sidenav-menu-device-icons.js +3 -3
  64. package/lib/static/hy-svg-icons/hy-icon-layout-sidenav-menu-modify-device-auth.js +3 -3
  65. package/lib/static/hy-svg-icons/hy-icon-layout-sidenav-menu-system-settings.js +3 -5
  66. package/lib/utils/index.js +1 -0
  67. package/lib/utils/is.js +9 -0
  68. package/lib/version.js +1 -1
  69. package/package.json +2 -1
package/dist/tailwind.css CHANGED
@@ -668,6 +668,11 @@ video {
668
668
  z-index: 3;
669
669
  }
670
670
 
671
+ .\!my-4 {
672
+ margin-top: 1rem !important;
673
+ margin-bottom: 1rem !important;
674
+ }
675
+
671
676
  .mx-1 {
672
677
  margin-left: 0.25rem;
673
678
  margin-right: 0.25rem;
@@ -683,6 +688,18 @@ video {
683
688
  margin-bottom: 0.375rem;
684
689
  }
685
690
 
691
+ .\!ml-4 {
692
+ margin-left: 1rem !important;
693
+ }
694
+
695
+ .\!ml-auto {
696
+ margin-left: auto !important;
697
+ }
698
+
699
+ .\!mr-4 {
700
+ margin-right: 1rem !important;
701
+ }
702
+
686
703
  .-mt-0\.5 {
687
704
  margin-top: -0.125rem;
688
705
  }
@@ -775,6 +792,10 @@ video {
775
792
  margin-top: 12px;
776
793
  }
777
794
 
795
+ .mt-auto {
796
+ margin-top: auto;
797
+ }
798
+
778
799
  .box-border {
779
800
  box-sizing: border-box;
780
801
  }
@@ -911,10 +932,18 @@ video {
911
932
  height: 54px;
912
933
  }
913
934
 
935
+ .h-\[calc\(100vh-32px\)\] {
936
+ height: calc(100vh - 32px);
937
+ }
938
+
914
939
  .h-full {
915
940
  height: 100%;
916
941
  }
917
942
 
943
+ .max-h-full {
944
+ max-height: 100%;
945
+ }
946
+
918
947
  .min-h-6 {
919
948
  min-height: 1.5rem;
920
949
  }
@@ -1150,6 +1179,10 @@ video {
1150
1179
  column-gap: 1.5rem;
1151
1180
  }
1152
1181
 
1182
+ .overflow-auto {
1183
+ overflow: auto;
1184
+ }
1185
+
1153
1186
  .overflow-hidden {
1154
1187
  overflow: hidden;
1155
1188
  }
@@ -1273,6 +1306,10 @@ video {
1273
1306
  background-color: rgb(61 98 134 / var(--tw-bg-opacity, 1));
1274
1307
  }
1275
1308
 
1309
+ .bg-\[rgba\(var\(--hy-background-2\)\2c 0\.5\)\] {
1310
+ background-color: rgba(var(--hy-background-2),0.5);
1311
+ }
1312
+
1276
1313
  .bg-\[rgba\(var\(--hy-theme\)\2c 0\.2\)\] {
1277
1314
  background-color: rgba(var(--hy-theme),0.2);
1278
1315
  }
@@ -1315,8 +1352,8 @@ video {
1315
1352
  padding: 0px !important;
1316
1353
  }
1317
1354
 
1318
- .p-6 {
1319
- padding: 1.5rem;
1355
+ .p-5 {
1356
+ padding: 1.25rem;
1320
1357
  }
1321
1358
 
1322
1359
  .p-\[10px\] {
@@ -1356,6 +1393,11 @@ video {
1356
1393
  padding-right: 1.25rem;
1357
1394
  }
1358
1395
 
1396
+ .px-6 {
1397
+ padding-left: 1.5rem;
1398
+ padding-right: 1.5rem;
1399
+ }
1400
+
1359
1401
  .px-\[10px\] {
1360
1402
  padding-left: 10px;
1361
1403
  padding-right: 10px;
@@ -1381,6 +1423,11 @@ video {
1381
1423
  padding-bottom: 0.125rem;
1382
1424
  }
1383
1425
 
1426
+ .py-4 {
1427
+ padding-top: 1rem;
1428
+ padding-bottom: 1rem;
1429
+ }
1430
+
1384
1431
  .py-\[10px\] {
1385
1432
  padding-top: 10px;
1386
1433
  padding-bottom: 10px;
@@ -1438,6 +1485,10 @@ video {
1438
1485
  padding-right: 10px;
1439
1486
  }
1440
1487
 
1488
+ .pr-\[26px\] {
1489
+ padding-right: 26px;
1490
+ }
1491
+
1441
1492
  .pt-2 {
1442
1493
  padding-top: 0.5rem;
1443
1494
  }
@@ -1450,10 +1501,6 @@ video {
1450
1501
  padding-top: 0.75rem;
1451
1502
  }
1452
1503
 
1453
- .pt-5 {
1454
- padding-top: 1.25rem;
1455
- }
1456
-
1457
1504
  .pt-6 {
1458
1505
  padding-top: 1.5rem;
1459
1506
  }
@@ -1,4 +1,4 @@
1
- import { useTemplateRef, computed, onMounted, onUnmounted, openBlock, createElementBlock, normalizeClass, unref, createVNode, createElementVNode, toDisplayString, withDirectives, vShow, createCommentVNode, createTextVNode, normalizeStyle, isRef, vModelText, withCtx, Fragment, renderList, createBlock, defineComponent } from 'vue';
1
+ import { defineComponent, useTemplateRef, computed, onMounted, onUnmounted, openBlock, createElementBlock, normalizeClass, unref, createVNode, createElementVNode, toDisplayString, withDirectives, vShow, createCommentVNode, createTextVNode, normalizeStyle, isRef, vModelText, withCtx, Fragment, renderList, createBlock } from 'vue';
2
2
  import { ElPopover, ElSlider } from 'element-plus';
3
3
  import _sfc_main$1 from '../hyVideoPlayer/cpns/mediaLoading.vue.mjs';
4
4
  import { useAudioPlayer } from './js/index.mjs';
@@ -1,7 +1,7 @@
1
1
  import { ref, computed, nextTick } from 'vue';
2
2
  import { ElMessage } from 'element-plus';
3
- import { useLocale } from '../../../hooks/useLocale.mjs';
4
3
  import { useAudioPlayerConfig } from '../../../hooks/useAudioPlayerConfig.mjs';
4
+ import { useLocale } from '../../../hooks/useLocale.mjs';
5
5
  import { formatDuration } from '../../../utils/date.mjs';
6
6
 
7
7
  const useAudioPlayer = (hy) => {
@@ -81,13 +81,13 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
81
81
  }])
82
82
  },
83
83
  [
84
- !__props.loading ? renderSlot(_ctx.$slots, "svg", {}, () => [
84
+ !__props.loading ? renderSlot(_ctx.$slots, "svg", { key: 0 }, () => [
85
85
  __props.svgName ? (openBlock(), createBlock(unref(HyIcon), {
86
86
  key: 0,
87
87
  "svg-name": __props.svgName,
88
88
  "class-name": "!w-3 !h-3 text-main mr-2"
89
89
  }, null, 8, ["svg-name"])) : createCommentVNode("v-if", true)
90
- ], void 0, 0) : (openBlock(), createBlock(unref(ElIcon), {
90
+ ]) : (openBlock(), createBlock(unref(ElIcon), {
91
91
  key: 1,
92
92
  color: "rgb(var(--hy-main))",
93
93
  class: "is-loading mr-2"
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, useModel, ref, openBlock, createBlock, unref, mergeProps, withCtx, createElementVNode, createVNode, normalizeClass, toDisplayString, createElementBlock, createTextVNode, createCommentVNode, withModifiers, mergeModels } from 'vue';
2
2
  import { ElDialog, ElIcon } from 'element-plus';
3
3
  import { Warning, CircleClose } from '@element-plus/icons-vue';
4
- import { useLocale } from '../../hooks/useLocale.mjs';
5
4
  import { HyButton } from '../hyButton/index.mjs';
5
+ import { useLocale } from '../../hooks/useLocale.mjs';
6
6
 
7
7
  const __default__ = defineComponent({
8
8
  name: "HyConfirmDialog"
@@ -1,9 +1,9 @@
1
1
  import { unref, createVNode, render } from 'vue';
2
2
  import { defaultAxios } from '../../hooks/useApi.mjs';
3
3
  import _sfc_main from './confirmDialog.vue.mjs';
4
- import { useLocale } from '../../hooks/useLocale.mjs';
5
4
  import { useGlobalConfig } from '../../hooks/useGlobalConfig.mjs';
6
5
  import { HyConfigProvider } from '../hyConfigProvider/index.mjs';
6
+ import { useLocale } from '../../hooks/useLocale.mjs';
7
7
 
8
8
  function appConfirmMethod(config) {
9
9
  let container = document.createDocumentFragment();
@@ -1,6 +1,6 @@
1
1
  import './confirmMethod.mjs';
2
- import { withInstall } from '../../utils/handler.mjs';
3
2
  import _sfc_main from './confirmDialog.vue.mjs';
3
+ import { withInstall } from '../../utils/handler.mjs';
4
4
 
5
5
  const HyConfirmDialog = withInstall(_sfc_main);
6
6
 
@@ -2,9 +2,9 @@ import { defineComponent, useModel, useTemplateRef, ref, computed, openBlock, cr
2
2
  import { VueCropper } from 'vue-cropper';
3
3
  import { ElUpload, ElImage, ElIcon, ElMessage } from 'element-plus';
4
4
  import { User, Delete } from '@element-plus/icons-vue';
5
- import { useLocale } from '../../hooks/useLocale.mjs';
6
5
  import { blobToDataURL, sizeToTextHandler, fileUpload } from '../../utils/file.mjs';
7
6
  import { HyDialog } from '../hyDialog/index.mjs';
7
+ import { useLocale } from '../../hooks/useLocale.mjs';
8
8
 
9
9
  import "vue-cropper/dist/index.css";
10
10
 
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, useTemplateRef, useModel, computed, watch, unref, openBlock, createBlock, mergeProps, mergeModels } from 'vue';
2
2
  import { ElDatePicker } from 'element-plus';
3
- import { useLocale } from '../../hooks/useLocale.mjs';
4
3
  import { getDefaultValueFormatByType } from '../../utils/date.mjs';
5
4
  import { isArray } from '../../utils/is.mjs';
5
+ import { useLocale } from '../../hooks/useLocale.mjs';
6
6
 
7
7
  import "./style/datePicker.scss";
8
8
 
@@ -1,8 +1,8 @@
1
- import { useModel, ref, openBlock, createBlock, unref, mergeProps, withCtx, createElementVNode, renderSlot, createTextVNode, toDisplayString, createCommentVNode, normalizeClass, createElementBlock, createVNode, mergeModels, defineComponent } from 'vue';
2
- import { ElDialog, ElIcon } from 'element-plus';
3
- import { CircleClose } from '@element-plus/icons-vue';
1
+ import { useModel, ref, computed, openBlock, createBlock, unref, mergeProps, withCtx, createElementVNode, normalizeClass, renderSlot, createElementBlock, createTextVNode, toDisplayString, createCommentVNode, createVNode, mergeModels, defineComponent } from 'vue';
2
+ import { ElDialog } from 'element-plus';
4
3
  import { useLocale } from '../../hooks/useLocale.mjs';
5
4
  import { HyButton } from '../hyButton/index.mjs';
5
+ import { HyIcon } from '../hyIcon/index.mjs';
6
6
 
7
7
  import "./style/dialog.scss";
8
8
 
@@ -14,6 +14,13 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
14
14
  title: { type: String, default: "\u6807\u9898" },
15
15
  titleAlign: { type: String, default: "default" },
16
16
  // default、center
17
+ dialogType: {
18
+ type: String,
19
+ default: "default"
20
+ // default-默认类型 right-右侧弹窗 fullscreen-全屏
21
+ },
22
+ top: String,
23
+ showOperate: { type: Boolean, default: true },
17
24
  showClose: { type: Boolean, default: true },
18
25
  showCancel: {
19
26
  type: Boolean,
@@ -51,6 +58,30 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
51
58
  const { t } = useLocale();
52
59
  const visible = useModel(__props, "modelValue");
53
60
  const loading = ref(false);
61
+ const dialogClass = computed(() => {
62
+ if (["right", "fullscreen"].includes(props.dialogType)) {
63
+ let value = "h-[calc(100vh-32px)] flex flex-col !my-4 !mr-4";
64
+ if (props.dialogType === "right") {
65
+ value += " !ml-auto";
66
+ } else {
67
+ value += " !ml-4";
68
+ }
69
+ return value;
70
+ }
71
+ return "flex flex-col";
72
+ });
73
+ const width = computed(() => {
74
+ if (props.dialogType === "fullscreen") {
75
+ return "calc(100vw-32px)";
76
+ }
77
+ return "37.5rem";
78
+ });
79
+ const top = computed(() => {
80
+ if (["right", "fullscreen"].includes(props.dialogType)) {
81
+ return "16px";
82
+ }
83
+ return props.top;
84
+ });
54
85
  async function onSubmitHandler() {
55
86
  if (loading.value) return;
56
87
  loading.value = true;
@@ -104,11 +135,19 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
104
135
  return openBlock(), createBlock(unref(ElDialog), mergeProps({
105
136
  modelValue: visible.value,
106
137
  "onUpdate:modelValue": ($event) => visible.value = $event,
138
+ width: width.value,
107
139
  "append-to-body": true,
108
140
  "close-on-click-modal": false,
109
141
  "close-on-press-escape": false,
110
142
  "show-close": false,
111
- width: "37.5rem"
143
+ overflow: false,
144
+ top: top.value,
145
+ modal: false,
146
+ "modal-penetrable": "",
147
+ draggable: "",
148
+ class: dialogClass.value,
149
+ "align-center": !["right", "fullscreen"].includes(props.dialogType),
150
+ "body-class": "h-0 flex-1"
112
151
  }, _ctx.$attrs), {
113
152
  header: withCtx(() => [
114
153
  createElementVNode(
@@ -132,18 +171,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
132
171
  onClick: onCloseHandler
133
172
  },
134
173
  [
135
- createCommentVNode(' <HyIcon svg-name="close" class="!w-[20px] !h-[20px]" /> '),
136
- createVNode(unref(ElIcon), {
137
- size: "18",
138
- color: "rgb(var(--hy-danger-2))",
139
- class: normalizeClass({ "cursor-not-allowed": loading.value })
140
- }, {
141
- default: withCtx(() => [
142
- createVNode(unref(CircleClose))
143
- ]),
144
- _: 1
145
- /* STABLE */
146
- }, 8, ["class"])
174
+ createVNode(unref(HyIcon), {
175
+ "svg-name": "layout-dialog-close-v2",
176
+ class: "!w-[20px] !h-[20px]"
177
+ })
147
178
  ],
148
179
  2
149
180
  /* CLASS */
@@ -154,51 +185,70 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
154
185
  )
155
186
  ]),
156
187
  default: withCtx(() => [
157
- createElementVNode("div", { class: "text-main" }, [
158
- createElementVNode("div", { class: "p-6 box-border" }, [
159
- renderSlot(_ctx.$slots, "default"),
160
- createElementVNode("div", { class: "flex items-center justify-between pt-5" }, [
161
- __props.showCancel ? (openBlock(), createBlock(unref(HyButton), {
162
- key: 0,
163
- type: __props.cancelType,
164
- disabled: loading.value,
165
- class: "!min-w-[120px]",
166
- onClick: onCancelHandler
167
- }, {
168
- default: withCtx(() => [
169
- createTextVNode(
170
- toDisplayString(unref(t)("dialog.cancel")),
171
- 1
172
- /* TEXT */
173
- )
174
- ]),
175
- _: 1
176
- /* STABLE */
177
- }, 8, ["type", "disabled"])) : createCommentVNode("v-if", true),
178
- __props.showSubmit ? (openBlock(), createBlock(unref(HyButton), {
179
- key: 1,
180
- type: __props.submitType,
181
- disabled: loading.value,
182
- class: "!min-w-[120px]",
183
- onClick: onSubmitHandler
184
- }, {
185
- default: withCtx(() => [
186
- createTextVNode(
187
- toDisplayString(unref(t)("dialog.confirm")),
188
- 1
189
- /* TEXT */
190
- )
188
+ createElementVNode(
189
+ "div",
190
+ {
191
+ class: normalizeClass(["max-h-full flex flex-col text-main", { "h-full": ["right", "fullscreen"].includes(props.dialogType) }])
192
+ },
193
+ [
194
+ renderSlot(_ctx.$slots, "content", {}, () => [
195
+ createElementVNode("div", { class: "scroll-body overflow-auto h-0 flex-1 px-6 py-4" }, [
196
+ renderSlot(_ctx.$slots, "default")
197
+ ])
198
+ ]),
199
+ __props.showOperate ? (openBlock(), createElementBlock("div", {
200
+ key: 0,
201
+ class: "flex items-center flex-row-reverse justify-between p-5 pr-[26px] bg-[rgba(var(--hy-background-2),0.5)] mt-auto"
202
+ }, [
203
+ renderSlot(_ctx.$slots, "operate-left-box"),
204
+ createElementVNode("div", { class: "flex items-center" }, [
205
+ renderSlot(_ctx.$slots, "operate", {}, () => [
206
+ __props.showCancel ? (openBlock(), createBlock(unref(HyButton), {
207
+ key: 0,
208
+ type: __props.cancelType,
209
+ disabled: loading.value,
210
+ class: "!min-w-[120px]",
211
+ onClick: onCancelHandler
212
+ }, {
213
+ default: withCtx(() => [
214
+ createTextVNode(
215
+ toDisplayString(unref(t)("dialog.cancel")),
216
+ 1
217
+ /* TEXT */
218
+ )
219
+ ]),
220
+ _: 1
221
+ /* STABLE */
222
+ }, 8, ["type", "disabled"])) : createCommentVNode("v-if", true),
223
+ __props.showSubmit ? (openBlock(), createBlock(unref(HyButton), {
224
+ key: 1,
225
+ type: __props.submitType,
226
+ disabled: loading.value,
227
+ class: "!min-w-[120px]",
228
+ onClick: onSubmitHandler
229
+ }, {
230
+ default: withCtx(() => [
231
+ createTextVNode(
232
+ toDisplayString(unref(t)("dialog.confirm")),
233
+ 1
234
+ /* TEXT */
235
+ )
236
+ ]),
237
+ _: 1
238
+ /* STABLE */
239
+ }, 8, ["type", "disabled"])) : createCommentVNode("v-if", true)
191
240
  ]),
192
- _: 1
193
- /* STABLE */
194
- }, 8, ["type", "disabled"])) : createCommentVNode("v-if", true)
195
- ])
196
- ])
197
- ])
241
+ renderSlot(_ctx.$slots, "operate-right-box")
242
+ ])
243
+ ])) : createCommentVNode("v-if", true)
244
+ ],
245
+ 2
246
+ /* CLASS */
247
+ )
198
248
  ]),
199
249
  _: 3
200
250
  /* FORWARDED */
201
- }, 16, ["modelValue", "onUpdate:modelValue"]);
251
+ }, 16, ["modelValue", "onUpdate:modelValue", "width", "top", "class", "align-center"]);
202
252
  };
203
253
  }
204
254
  });
@@ -2,14 +2,14 @@ import { computed, unref, openBlock, createBlock, normalizeStyle, withCtx, creat
2
2
  import { ElFormItem, ElIcon, ElSelect, ElRadioGroup, ElCheckboxGroup, ElSwitch, ElInputNumber } from 'element-plus';
3
3
  import { QuestionFilled } from '@element-plus/icons-vue';
4
4
  import { columnShowHandler, columnItemStyle, isRequired, renderText, isDisabled, optionsHandler } from '../js/index.mjs';
5
- import { isArray } from '../../../utils/is.mjs';
6
5
  import { setValueByProp, getValueByProp } from '../../../utils/form.mjs';
7
- import { funRunHandler } from '../../../utils/handler.mjs';
8
6
  import { HyTooltip } from '../../hyTooltip/index.mjs';
9
7
  import { HyInput } from '../../hyInput/index.mjs';
10
8
  import { HyDatePicker } from '../../hyDatePicker/index.mjs';
11
9
  import { HyTimePicker } from '../../hyTimePicker/index.mjs';
12
10
  import { HyOrgCascader } from '../../hyOrgCascader/index.mjs';
11
+ import { isArray } from '../../../utils/is.mjs';
12
+ import { funRunHandler } from '../../../utils/handler.mjs';
13
13
 
14
14
  const _sfc_main = {
15
15
  __name: "formItem",
@@ -154,10 +154,11 @@ const _sfc_main = {
154
154
  [
155
155
  createCommentVNode(" \u81EA\u5B9A\u4E49\u5177\u540D\u63D2\u69FD "),
156
156
  __props.column.slot && _ctx.$slots[__props.column.slot] ? renderSlot(_ctx.$slots, __props.column.slot, {
157
+ key: 0,
157
158
  column: __props.column,
158
159
  model: __props.model,
159
160
  required: unref(isRequired)(props, __props.column)
160
- }, void 0, void 0, 0) : __props.column.type === "input" ? (openBlock(), createElementBlock(
161
+ }) : __props.column.type === "input" ? (openBlock(), createElementBlock(
161
162
  Fragment,
162
163
  { key: 1 },
163
164
  [
@@ -205,6 +206,7 @@ const _sfc_main = {
205
206
  style: { "width": "100%" }
206
207
  }, __props.column.attrs, {
207
208
  disabled: unref(isDisabled)(props, __props.column),
209
+ teleported: false,
208
210
  onChange: onChangeHandler
209
211
  }), null, 16, ["start", "onUpdate:start", "end", "onUpdate:end", "disabled"])) : (openBlock(), createBlock(unref(HyDatePicker), mergeProps({
210
212
  key: 1,
@@ -214,6 +216,7 @@ const _sfc_main = {
214
216
  style: { "width": "100%" }
215
217
  }, __props.column.attrs, {
216
218
  disabled: unref(isDisabled)(props, __props.column),
219
+ teleported: false,
217
220
  onChange: onChangeHandler
218
221
  }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"]))
219
222
  ],
@@ -234,6 +237,7 @@ const _sfc_main = {
234
237
  style: { "width": "100%" }
235
238
  }, __props.column.attrs, {
236
239
  disabled: unref(isDisabled)(props, __props.column),
240
+ teleported: false,
237
241
  onChange: onChangeHandler
238
242
  }), null, 16, ["start", "onUpdate:start", "end", "onUpdate:end", "disabled"])) : (openBlock(), createBlock(unref(HyTimePicker), mergeProps({
239
243
  key: 1,
@@ -243,6 +247,7 @@ const _sfc_main = {
243
247
  style: { "width": "100%" }
244
248
  }, __props.column.attrs, {
245
249
  disabled: unref(isDisabled)(props, __props.column),
250
+ teleported: false,
246
251
  onChange: onChangeHandler
247
252
  }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled"]))
248
253
  ],
@@ -1,7 +1,7 @@
1
1
  import { unref, toRef } from 'vue';
2
+ import { genValueByProp } from '../../../utils/form.mjs';
2
3
  import { funRunHandler, mergeDeep } from '../../../utils/handler.mjs';
3
4
  import { isArray, isObject } from '../../../utils/is.mjs';
4
- import { genValueByProp } from '../../../utils/form.mjs';
5
5
  import { useLocale } from '../../../hooks/useLocale.mjs';
6
6
 
7
7
  const genDefaultLabel = (config) => {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, useModel, useTemplateRef, ref, computed, watch, openBlock, createElementBlock, createElementVNode, normalizeStyle, createVNode, unref, renderSlot, toDisplayString, createCommentVNode, createBlock, normalizeClass, mergeModels } from 'vue';
2
2
  import { ElCascader } from 'element-plus';
3
- import { useApi } from '../../hooks/useApi.mjs';
4
3
  import { useLocale } from '../../hooks/useLocale.mjs';
4
+ import { useApi } from '../../hooks/useApi.mjs';
5
5
 
6
6
  import "./style/orgCascader.scss";
7
7
 
@@ -92,7 +92,10 @@ const _sfc_main = {
92
92
  }])
93
93
  },
94
94
  [
95
- __props.column.labelSlot && _ctx.$slots[__props.column.labelSlot] ? renderSlot(_ctx.$slots, __props.column.labelSlot, { column: __props.column }, void 0, void 0, 0) : (openBlock(), createElementBlock(
95
+ __props.column.labelSlot && _ctx.$slots[__props.column.labelSlot] ? renderSlot(_ctx.$slots, __props.column.labelSlot, {
96
+ key: 0,
97
+ column: __props.column
98
+ }) : (openBlock(), createElementBlock(
96
99
  "span",
97
100
  { key: 1 },
98
101
  toDisplayString(__props.column.label),
@@ -112,7 +115,10 @@ const _sfc_main = {
112
115
  },
113
116
  [
114
117
  createCommentVNode(" \u81EA\u5B9A\u4E49\u5177\u540D\u63D2\u69FD "),
115
- __props.column.slot ? renderSlot(_ctx.$slots, __props.column.slot, { column: __props.column }, void 0, void 0, 0) : __props.column.type === "input" ? (openBlock(), createElementBlock(
118
+ __props.column.slot ? renderSlot(_ctx.$slots, __props.column.slot, {
119
+ key: 0,
120
+ column: __props.column
121
+ }) : __props.column.type === "input" ? (openBlock(), createElementBlock(
116
122
  Fragment,
117
123
  { key: 1 },
118
124
  [
@@ -90,7 +90,7 @@ const _sfc_main = {
90
90
  }, 8, ["color", "onClick"])
91
91
  ]),
92
92
  renderSlot(_ctx.$slots, "default")
93
- ], 8, ["onClick"])) : renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 1);
93
+ ], 8, ["onClick"])) : renderSlot(_ctx.$slots, "default", { key: 1 });
94
94
  };
95
95
  }
96
96
  };
@@ -1,4 +1,4 @@
1
- import { ref, computed, openBlock, createBlock, unref, withCtx, renderSlot, resolveDynamicComponent, createElementBlock, Fragment, withModifiers, normalizeProps, guardReactiveProps, createTextVNode, toDisplayString, renderList, createElementVNode, normalizeClass, createVNode, createCommentVNode } from 'vue';
1
+ import { ref, computed, openBlock, createBlock, unref, withCtx, renderSlot, resolveDynamicComponent, createElementBlock, Fragment, withModifiers, normalizeProps, mergeProps, createTextVNode, toDisplayString, renderList, createElementVNode, normalizeClass, createVNode, createCommentVNode, guardReactiveProps } from 'vue';
2
2
  import { ElTableV2, ElCheckbox, ElDropdown, ElIcon, ElDropdownMenu, ElDropdownItem } from 'element-plus';
3
3
  import { MoreFilled } from '@element-plus/icons-vue';
4
4
  import { operatorFilterHandler, operatorClickHandler, operatorDisabledHandler, operatorDisableTextdHandler, renderContentHandler, renderHeaderHandler } from '../js/index.mjs';
@@ -329,7 +329,7 @@ const _sfc_main = {
329
329
  indeterminate: indeterminateKeys.value.has(getRowKey(row)),
330
330
  disabled: !isSelectable(row),
331
331
  onClick: withModifiers(($event) => switchCheckHandler(row), ["stop"])
332
- }, null, 8, ["model-value", "indeterminate", "disabled", "onClick"])) : column?.slot ? renderSlot(_ctx.$slots, column?.slot, normalizeProps(guardReactiveProps({ column, row, $index, cellIndex })), void 0, void 0, 2) : column.type === "index" ? (openBlock(), createElementBlock(
332
+ }, null, 8, ["model-value", "indeterminate", "disabled", "onClick"])) : column?.slot ? renderSlot(_ctx.$slots, column?.slot, normalizeProps(mergeProps({ key: 2 }, { column, row, $index, cellIndex }))) : column.type === "index" ? (openBlock(), createElementBlock(
333
333
  Fragment,
334
334
  { key: 3 },
335
335
  [
@@ -546,9 +546,10 @@ const _sfc_main = {
546
546
  ]),
547
547
  row: withCtx(({ cells, depth, expanded, rowData: row }) => [
548
548
  depth > 0 && isExpandTable.value ? renderSlot(_ctx.$slots, expandColumn.value.slot, {
549
+ key: 0,
549
550
  row,
550
551
  expanded: expandedMap.value.has(getRowKey(row))
551
- }, void 0, void 0, 0) : (openBlock(), createBlock(resolveDynamicComponent(() => cells), { key: 1 }))
552
+ }) : (openBlock(), createBlock(resolveDynamicComponent(() => cells), { key: 1 }))
552
553
  ]),
553
554
  empty: withCtx(() => [
554
555
  renderSlot(_ctx.$slots, "empty")
@@ -1,6 +1,6 @@
1
1
  import { ref, computed, watchEffect, unref, nextTick } from 'vue';
2
2
  import { ElLoading } from 'element-plus';
3
- import { isString, isBoolean, isFunction, isArray, isNumber } from '../../../utils/is.mjs';
3
+ import { isString, isBoolean, isFunction, isPermission, isArray, isNumber } from '../../../utils/is.mjs';
4
4
  import { useLocale } from '../../../hooks/useLocale.mjs';
5
5
 
6
6
  function tableColumnShowHandler(column) {
@@ -72,6 +72,9 @@ function tableColumnHandler(columns, cacheKey, searchArr) {
72
72
  );
73
73
  }
74
74
  function operatorShowHandler(operator, scope) {
75
+ if (operator.permission) {
76
+ return isPermission(operator.permission);
77
+ }
75
78
  const show = unref(operator.show);
76
79
  if (isBoolean(show)) return show;
77
80
  if (isFunction(show)) return show(scope);
@@ -1,6 +1,6 @@
1
1
  import { toRef } from 'vue';
2
- import { isEmpty, isBoolean, isString, isObject } from '../../../utils/is.mjs';
3
2
  import { useAppSearch } from '../../hySearch/js/useAppSearch.mjs';
3
+ import { isEmpty, isBoolean, isString, isObject } from '../../../utils/is.mjs';
4
4
  import { useLocale } from '../../../hooks/useLocale.mjs';
5
5
 
6
6
  function getColumnDefaultConfig(column) {