hy-dispatch-ui-v3 0.2.26 → 0.2.27

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 (52) hide show
  1. package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +1 -1
  2. package/es/components/hyAudioPlayer/js/index.mjs +1 -1
  3. package/es/components/hyButton/button.vue.mjs +2 -2
  4. package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +1 -1
  5. package/es/components/hyConfirmDialog/confirmMethod.mjs +1 -1
  6. package/es/components/hyConfirmDialog/index.mjs +1 -1
  7. package/es/components/hyCutter/cutter.vue.mjs +1 -1
  8. package/es/components/hyDatePicker/datePicker.vue.mjs +1 -1
  9. package/es/components/hyForm/cpns/formItem.vue.mjs +4 -3
  10. package/es/components/hyForm/js/useAppForm.mjs +1 -1
  11. package/es/components/hyOrgCascader/orgCascader.vue.mjs +1 -1
  12. package/es/components/hySearch/cpns/searchItem.vue.mjs +8 -2
  13. package/es/components/hyTable/cpns/headerItem.vue.mjs +1 -1
  14. package/es/components/hyTable/cpns/virtualTable.vue.mjs +4 -3
  15. package/es/components/hyTable/js/index.mjs +4 -1
  16. package/es/components/hyTable/js/useAppTable.mjs +1 -1
  17. package/es/components/hyTable/table.vue.mjs +23 -23
  18. package/es/components/hyTooltip/tooltip.vue.mjs +2 -2
  19. package/es/components/hyUserAvatar/userAvatar.vue.mjs +2 -2
  20. package/es/components/hyVideoPlayer/js/index.mjs +1 -1
  21. package/es/index.mjs +1 -1
  22. 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
  23. 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
  24. package/es/utils/index.mjs +1 -1
  25. package/es/utils/is.mjs +9 -1
  26. package/es/version.mjs +1 -1
  27. package/lib/components/hyAudioPlayer/js/index.js +1 -1
  28. package/lib/components/hyButton/button.vue.js +2 -2
  29. package/lib/components/hyConfirmDialog/confirmDialog.vue.js +1 -1
  30. package/lib/components/hyConfirmDialog/confirmMethod.js +1 -1
  31. package/lib/components/hyConfirmDialog/index.js +1 -1
  32. package/lib/components/hyCutter/cutter.vue.js +1 -1
  33. package/lib/components/hyDatePicker/datePicker.vue.js +1 -1
  34. package/lib/components/hyForm/cpns/formItem.vue.js +4 -3
  35. package/lib/components/hyForm/js/useAppForm.js +1 -1
  36. package/lib/components/hyOrgCascader/orgCascader.vue.js +1 -1
  37. package/lib/components/hySearch/cpns/searchItem.vue.js +8 -2
  38. package/lib/components/hyTable/cpns/headerItem.vue.js +1 -1
  39. package/lib/components/hyTable/cpns/virtualTable.vue.js +3 -2
  40. package/lib/components/hyTable/js/index.js +3 -0
  41. package/lib/components/hyTable/js/useAppTable.js +1 -1
  42. package/lib/components/hyTable/table.vue.js +23 -23
  43. package/lib/components/hyTooltip/tooltip.vue.js +2 -2
  44. package/lib/components/hyUserAvatar/userAvatar.vue.js +2 -2
  45. package/lib/components/hyVideoPlayer/js/index.js +1 -1
  46. package/lib/index.js +1 -0
  47. 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
  48. 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
  49. package/lib/utils/index.js +1 -0
  50. package/lib/utils/is.js +9 -0
  51. package/lib/version.js +1 -1
  52. package/package.json +2 -1
@@ -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
 
@@ -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
  [
@@ -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) {
@@ -6,13 +6,13 @@ import { useAppTableSearch } from './js/search.mjs';
6
6
  import _sfc_main$2 from './cpns/headerItem.vue.mjs';
7
7
  import _sfc_main$1 from './cpns/columnSelect.vue.mjs';
8
8
  import _sfc_main$3 from './cpns/virtualTable.vue.mjs';
9
- import { useLocale } from '../../hooks/useLocale.mjs';
10
9
  import { useMixins } from '../../hooks/useMixins.mjs';
10
+ import { HySearch } from '../hySearch/index.mjs';
11
+ import { parseRem } from '../../utils/adaptive.mjs';
12
+ import { useLocale } from '../../hooks/useLocale.mjs';
11
13
  import { HyTooltip } from '../hyTooltip/index.mjs';
12
14
  import { HyButton } from '../hyButton/index.mjs';
13
15
  import { HyIcon } from '../hyIcon/index.mjs';
14
- import { HySearch } from '../hySearch/index.mjs';
15
- import { parseRem } from '../../utils/adaptive.mjs';
16
16
  import { isEmpty } from '../../utils/is.mjs';
17
17
 
18
18
  import "./style/table.scss";
@@ -453,9 +453,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
453
453
  }, 1032, ["column", "filter-model", "onSearch"])
454
454
  ]),
455
455
  default: withCtx((scope) => [
456
- column?.slot ? renderSlot(_ctx.$slots, column?.slot, mergeProps({ ref_for: true }, scope), void 0, void 0, 0) : column.type === "operator" ? (openBlock(), createElementBlock("div", {
456
+ column?.slot ? renderSlot(_ctx.$slots, column?.slot, mergeProps({
457
+ key: 0,
458
+ ref_for: true
459
+ }, scope)) : column.type === "operator" ? (openBlock(), createElementBlock("div", {
457
460
  key: 1,
458
- class: "flex items-center justify-between text-main"
461
+ class: "flex items-center justify-end text-main"
459
462
  }, [
460
463
  (openBlock(true), createElementBlock(
461
464
  Fragment,
@@ -473,27 +476,18 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
473
476
  }, {
474
477
  default: withCtx(() => [
475
478
  createElementVNode("div", {
476
- class: normalizeClass(["w-[40px] h-[48px] inline-flex flex-col items-center justify-center text-xs hover:font-bold border border-transparent hover:border-theme hover:shadow-[0px_0px_5px_0px_rgba(var(--hy-theme),0.5)] rounded box-border cursor-pointer", citem.className]),
479
+ class: normalizeClass(["ml-2 w-[40px] h-[48px] inline-flex flex-col items-center justify-center text-xs hover:font-bold border border-transparent hover:border-theme hover:shadow-[0px_0px_5px_0px_rgba(var(--hy-theme),0.5)] rounded box-border cursor-pointer", citem.className]),
477
480
  onClick: ($event) => unref(operatorClickHandler)(cindex, column, scope, "default")
478
481
  }, [
479
- createCommentVNode(' <HyIcon\n :svg-name="citem.svgName"\n class-name="!w-4 !h-4"\n /> '),
480
- createElementVNode("div", { class: "w-4 h-4" }, [
481
- createVNode(unref(ElIcon), {
482
- size: "16",
483
- color: "rgba(var(--hy-main))"
484
- }, {
485
- default: withCtx(() => [
486
- createVNode(unref(MoreFilled))
487
- ]),
488
- _: 1
489
- /* STABLE */
490
- })
491
- ]),
482
+ createVNode(unref(HyIcon), {
483
+ "svg-name": citem.svgName,
484
+ "class-name": "!w-4 !h-4"
485
+ }, null, 8, ["svg-name"]),
492
486
  citem.subLabel ? (openBlock(), createElementBlock(
493
487
  "div",
494
488
  {
495
489
  key: 0,
496
- class: "mt-1 whitespace-nowrap"
490
+ class: "mt-1 whitespace-nowrap w-full text-center over_one_line"
497
491
  },
498
492
  toDisplayString(citem.subLabel),
499
493
  1
@@ -585,9 +579,15 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
585
579
  }, {
586
580
  default: withCtx(() => [
587
581
  createElementVNode("div", { class: "w-[40px] h-[48px] inline-flex flex-col items-center justify-center text-main text-xs hover:font-bold border border-transparent hover:border-theme hover:shadow-[0px_0px_5px_0px_rgba(var(--hy-theme),0.5)] rounded box-border cursor-pointer" }, [
588
- createVNode(unref(HyIcon), {
589
- "svg-name": "system-burst_analysis_select_option",
590
- "class-name": "!w-4 !h-4"
582
+ createVNode(unref(ElIcon), {
583
+ size: "16",
584
+ color: "rgba(var(--hy-main))"
585
+ }, {
586
+ default: withCtx(() => [
587
+ createVNode(unref(MoreFilled))
588
+ ]),
589
+ _: 1
590
+ /* STABLE */
591
591
  }),
592
592
  createElementVNode(
593
593
  "div",
@@ -69,13 +69,13 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
69
69
  content: _ctx.$slots.content ? void 0 : __props.content
70
70
  }), createSlots({
71
71
  default: withCtx(() => [
72
- __props.isAlways ? renderSlot(_ctx.$slots, "default", {}, () => [
72
+ __props.isAlways ? renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
73
73
  createTextVNode(
74
74
  toDisplayString(__props.content),
75
75
  1
76
76
  /* TEXT */
77
77
  )
78
- ], void 0, 0) : (openBlock(), createElementBlock(
78
+ ]) : (openBlock(), createElementBlock(
79
79
  "span",
80
80
  {
81
81
  key: 1,
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, computed, unref, openBlock, createElementBlock, normalizeStyle, createBlock, normalizeClass, createCommentVNode } from 'vue';
2
- import { useLocale } from '../../hooks/useLocale.mjs';
3
2
  import { useUserAvatarMap } from '../../hooks/useUserAvatarMap.mjs';
4
- import { HyIcon } from '../hyIcon/index.mjs';
5
3
  import { pxTorem } from '../../utils/adaptive.mjs';
4
+ import { useLocale } from '../../hooks/useLocale.mjs';
5
+ import { HyIcon } from '../hyIcon/index.mjs';
6
6
 
7
7
  import "./style/userAvatar.scss";
8
8
 
@@ -1,11 +1,11 @@
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 { useVideoPlayerConfig } from '../../../hooks/useVideoPlayerConfig.mjs';
5
4
  import { formatDuration } from '../../../utils/date.mjs';
6
5
  import { HyConfirmDialog } from '../../hyConfirmDialog/index.mjs';
7
6
  import { copyText } from '../../../utils/handler.mjs';
8
7
  import { isSupportH265 } from '../../../utils/is.mjs';
8
+ import { useLocale } from '../../../hooks/useLocale.mjs';
9
9
 
10
10
  const useVideoPlayer = (hy) => {
11
11
  const { props, emits, videoRef, videoWrapperRef } = hy;
package/es/index.mjs CHANGED
@@ -32,7 +32,7 @@ export { cloneDeep, copyText, createUniqueId, funRunHandler, mergeDeep, withInst
32
32
  export { configProviderContextKey, provideGlobalConfig, useGlobalConfig } from './hooks/useGlobalConfig.mjs';
33
33
  export { defaultAxios, localApiKey, useApi } from './hooks/useApi.mjs';
34
34
  export { formatDuration, getDefaultValueFormatByType } from './utils/date.mjs';
35
- export { isArray, isBoolean, isEmpty, isFile, isFunction, isNull, isNumber, isObject, isOverflowing, isString, isSupportH265, isSymbol, isUndefined, isVueProxy } from './utils/is.mjs';
35
+ export { isArray, isBoolean, isEmpty, isFile, isFunction, isNull, isNumber, isObject, isOverflowing, isPermission, isString, isSupportH265, isSymbol, isUndefined, isVueProxy } from './utils/is.mjs';
36
36
  export { localAudioPlayerConfigKey, useAudioPlayerConfig } from './hooks/useAudioPlayerConfig.mjs';
37
37
  export { localEnsureHyIconMapKey, useEnsureHyIcon } from './hooks/useEnsureHyIcon.mjs';
38
38
  export { localPermissionMapKey, usePermissionMap } from './hooks/usePermissionMap.mjs';
@@ -1,8 +1,8 @@
1
1
  export default {
2
- id: 'hy-icon-Miscellaneous-graffiti-选择',
3
- symbol: `<symbol id="hy-icon-Miscellaneous-graffiti-选择" viewBox="0 0 24 24">
4
- <g id="hy-icon-Miscellaneous-graffiti-选择-选择" stroke="none" stroke-width="1" fill-rule="evenodd">
5
- <path d="M22.9967004,12.0014106 C22.9972892,12.2089004 22.9130578,12.4076132 22.7635492,12.5514445 L19.6259054,15.6987383 C19.4017388,15.9204703 19.0667315,15.9866019 18.7751575,15.8666788 C18.4835835,15.7467557 18.2919811,15.4640319 18.2885851,15.1487044 L18.2885851,13.5745075 L13.5683724,13.5745075 L13.5683724,18.2882977 L15.1399437,18.2882977 C15.4572754,18.2874293 15.7435713,18.4787473 15.86425,18.7723175 C15.9849288,19.0658877 15.9159854,19.4033141 15.6898287,19.62598 L12.5444865,22.7688735 C12.3996883,22.9166976 12.2014992,23 11.9946015,23 C11.7877039,23 11.5895148,22.9166976 11.4447166,22.7688735 L8.29827463,19.6270801 C8.07660261,19.4028527 8.01048894,19.0677548 8.13037958,18.7761018 C8.25027022,18.4844488 8.53291743,18.2927947 8.84815963,18.2893977 L10.4197309,18.2893977 L10.4197309,13.5723073 L5.71381517,13.5723073 L5.71381517,15.1443041 C5.71468335,15.4617218 5.52341708,15.7480951 5.22992634,15.8688066 C4.93643561,15.989518 4.59910057,15.920556 4.37649487,15.694338 L1.23445203,12.5503444 C1.08460214,12.4052763 1,12.2056054 1,11.9970104 C1,11.7884153 1.08460214,11.5887444 1.23445203,11.4436763 L4.37649487,8.30078282 C4.60066153,8.07905078 4.93566881,8.01291922 5.22724283,8.13284231 C5.51881686,8.25276541 5.71041917,8.53548914 5.71381517,8.85081669 L5.71381517,10.4228135 L10.4274293,10.4228135 L10.4274293,5.71452361 L8.85695778,5.71452361 C8.53962606,5.71539202 8.25333019,5.52407397 8.13265143,5.23050378 C8.01197268,4.93693358 8.08091604,4.59950722 8.30707279,4.37684125 L11.4491156,1.23394777 C11.5941073,1.08440326 11.7934857,1 12.00175,1 C12.2100144,1 12.4093928,1.08440326 12.5543845,1.23394777 L15.6964273,4.37684125 C15.9180993,4.6010686 15.984213,4.93616657 15.8643224,5.22781954 C15.7444317,5.5194725 15.4617845,5.71112669 15.1465423,5.71452361 L13.5738712,5.71452361 L13.5738712,10.4283138 L18.2874854,10.4283138 L18.2874854,8.85741709 C18.2866172,8.53999946 18.4778835,8.25362608 18.7713742,8.13291465 C19.0648649,8.01220322 19.4022,8.08116525 19.6248057,8.30738322 L22.7723474,11.4502767 C22.9182564,11.5960981 23,11.7939981 23,12.0003106 L22.9967004,12.0014106 Z" id="hy-icon-Miscellaneous-graffiti-选择-路径" fill-rule="nonzero"></path>
2
+ id: 'hy-icon-Miscellaneous-graffiti-choice',
3
+ symbol: `<symbol id="hy-icon-Miscellaneous-graffiti-choice" viewBox="0 0 24 24">
4
+ <g id="hy-icon-Miscellaneous-graffiti-choice-选择" stroke="none" stroke-width="1" fill-rule="evenodd">
5
+ <path d="M22.9967004,12.0014106 C22.9972892,12.2089004 22.9130578,12.4076132 22.7635492,12.5514445 L19.6259054,15.6987383 C19.4017388,15.9204703 19.0667315,15.9866019 18.7751575,15.8666788 C18.4835835,15.7467557 18.2919811,15.4640319 18.2885851,15.1487044 L18.2885851,13.5745075 L13.5683724,13.5745075 L13.5683724,18.2882977 L15.1399437,18.2882977 C15.4572754,18.2874293 15.7435713,18.4787473 15.86425,18.7723175 C15.9849288,19.0658877 15.9159854,19.4033141 15.6898287,19.62598 L12.5444865,22.7688735 C12.3996883,22.9166976 12.2014992,23 11.9946015,23 C11.7877039,23 11.5895148,22.9166976 11.4447166,22.7688735 L8.29827463,19.6270801 C8.07660261,19.4028527 8.01048894,19.0677548 8.13037958,18.7761018 C8.25027022,18.4844488 8.53291743,18.2927947 8.84815963,18.2893977 L10.4197309,18.2893977 L10.4197309,13.5723073 L5.71381517,13.5723073 L5.71381517,15.1443041 C5.71468335,15.4617218 5.52341708,15.7480951 5.22992634,15.8688066 C4.93643561,15.989518 4.59910057,15.920556 4.37649487,15.694338 L1.23445203,12.5503444 C1.08460214,12.4052763 1,12.2056054 1,11.9970104 C1,11.7884153 1.08460214,11.5887444 1.23445203,11.4436763 L4.37649487,8.30078282 C4.60066153,8.07905078 4.93566881,8.01291922 5.22724283,8.13284231 C5.51881686,8.25276541 5.71041917,8.53548914 5.71381517,8.85081669 L5.71381517,10.4228135 L10.4274293,10.4228135 L10.4274293,5.71452361 L8.85695778,5.71452361 C8.53962606,5.71539202 8.25333019,5.52407397 8.13265143,5.23050378 C8.01197268,4.93693358 8.08091604,4.59950722 8.30707279,4.37684125 L11.4491156,1.23394777 C11.5941073,1.08440326 11.7934857,1 12.00175,1 C12.2100144,1 12.4093928,1.08440326 12.5543845,1.23394777 L15.6964273,4.37684125 C15.9180993,4.6010686 15.984213,4.93616657 15.8643224,5.22781954 C15.7444317,5.5194725 15.4617845,5.71112669 15.1465423,5.71452361 L13.5738712,5.71452361 L13.5738712,10.4283138 L18.2874854,10.4283138 L18.2874854,8.85741709 C18.2866172,8.53999946 18.4778835,8.25362608 18.7713742,8.13291465 C19.0648649,8.01220322 19.4022,8.08116525 19.6248057,8.30738322 L22.7723474,11.4502767 C22.9182564,11.5960981 23,11.7939981 23,12.0003106 L22.9967004,12.0014106 Z" id="hy-icon-Miscellaneous-graffiti-choice-路径" fill-rule="nonzero"></path>
6
6
  </g>
7
7
  </symbol>`,
8
8
  };
@@ -1,9 +1,9 @@
1
1
  export default {
2
- id: 'hy-icon-dispatch-linear-顺序',
3
- symbol: `<symbol id="hy-icon-dispatch-linear-顺序" viewBox="0 0 12 12">
2
+ id: 'hy-icon-dispatch-linear-sequence',
3
+ symbol: `<symbol id="hy-icon-dispatch-linear-sequence" viewBox="0 0 12 12">
4
4
  <title>顺序</title>
5
- <g id="hy-icon-dispatch-linear-顺序-顺序" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
6
- <path d="M2.19527131,7.52860381 C2.4556154,7.26824121 2.8777253,7.26824121 3.13806938,7.52860381 L3.82207747,8.21261415 L4.08178579,8.47230568 L4.13990493,8.53044268 L4.35023582,8.7407566 L4.57547178,8.9659933 L4.85737875,9.24791887 L4.97861481,9.36915534 L5.10652638,9.49704966 L5.63807546,10.0286182 L5.76402674,10.1545699 L5.96928922,10.359833 L6,10.3906499 L6.03071078,10.3598154 L6.23597326,10.1545522 L6.42532403,9.96518314 L6.8934913,9.497032 L7.02138519,9.36913769 L7.14262125,9.24790122 L7.42452822,8.96597564 L7.64978185,8.74073894 L7.86009507,8.53040735 L7.91821421,8.47228802 L8.17792253,8.21259649 L8.86193062,7.52858615 C9.12227471,7.26822355 9.54438462,7.26822355 9.80472869,7.52858615 C10.0650904,7.7889311 10.0650904,8.21104241 9.80472869,8.47138736 L9.34862324,8.92749432 L9.19326799,9.08286773 L9.12072062,9.1553977 L8.86102995,9.41510688 L8.80289316,9.47322621 L8.59257992,9.6835578 L8.36734397,9.9087945 L8.08541934,10.1907024 L7.96418327,10.3119389 L7.83628936,10.4398509 L7.30472262,10.9714017 L7.17877132,11.0973534 L6.97350886,11.3026166 L6.89153103,11.3846123 L6.57764175,11.698485 L6.53126652,11.744878 L6.4967765,11.7793682 L6.47139904,11.804728 C6.21105495,12.0650907 5.78894505,12.0650907 5.52860096,11.804728 L5.5032235,11.7793682 L5.46873348,11.744878 L5.42235825,11.698485 L5.10846897,11.3846123 L5.02649114,11.3026166 L4.82122868,11.0973534 L4.63186023,10.908002 L4.16371064,10.4398332 L4.03581673,10.3119389 L3.91458066,10.1907024 L3.63265603,9.9087945 L3.40742008,9.68354015 L3.19708919,9.47322621 L3.13897005,9.41510688 L2.87927938,9.1553977 L2.19527131,8.47138736 C1.93490956,8.21104241 1.93490956,7.7889311 2.19527131,7.52858615 L2.19527131,7.52860381 Z M9.80472869,4.47139619 C9.5443846,4.73175879 9.1222747,4.73175879 8.86193062,4.47139619 L8.17792253,3.78738585 L7.91821421,3.52769432 L7.86009507,3.46955732 L7.64976418,3.2592434 L7.42452822,3.0340067 L7.14262125,2.75208113 L7.02138519,2.63084466 L6.89347362,2.50295034 L6.36192454,1.97138184 L6.23597326,1.84543013 L6.03071078,1.64016697 L6,1.60935014 L5.96928922,1.64018464 L5.76402674,1.84544778 L5.57467597,2.03481686 L5.1065087,2.502968 L4.97861481,2.63086231 L4.85737875,2.75209878 L4.57547178,3.03402436 L4.35021815,3.25926106 L4.13990493,3.46959265 L4.08178579,3.52771198 L3.82207747,3.78740351 L3.13806938,4.47141385 C2.87772529,4.73177645 2.45561538,4.73177645 2.19527131,4.47141385 C1.93490956,4.2110689 1.93490956,3.78895759 2.19527131,3.52861264 L2.65137676,3.07250568 L2.80673201,2.91713227 L2.87927938,2.8446023 L3.13897005,2.58489312 L3.19710684,2.52677379 L3.40742008,2.3164422 L3.63265603,2.0912055 L3.91458066,1.80929759 L4.03581673,1.68806112 L4.16371064,1.56014914 L4.69527738,1.02859829 L4.82122868,0.902646594 L5.02649114,0.697383438 L5.10846897,0.615387678 L5.42235825,0.301515017 L5.46873348,0.255121977 L5.5032235,0.220631839 L5.52860096,0.195271954 C5.78894505,-0.0650906515 6.21105495,-0.0650906515 6.47139904,0.195271954 L6.4967765,0.220631839 L6.53126652,0.255121977 L6.57764175,0.301515017 L6.89153103,0.615387678 L6.97350886,0.697383438 L7.17877132,0.902646594 L7.36813977,1.091998 L7.83628936,1.56016679 L7.96418327,1.68806112 L8.08541934,1.80929759 L8.36734397,2.0912055 L8.59257992,2.31645985 L8.80291081,2.52677379 L8.86102995,2.58489312 L9.12072062,2.8446023 L9.80472869,3.52861264 C10.0650904,3.78895759 10.0650904,4.2110689 9.80472869,4.47141385 L9.80472869,4.47139619 Z" id="hy-icon-dispatch-linear-顺序-形状备份-2" fill="#87D4ED" fill-rule="nonzero"></path>
5
+ <g id="hy-icon-dispatch-linear-sequence-顺序" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
6
+ <path d="M2.19527131,7.52860381 C2.4556154,7.26824121 2.8777253,7.26824121 3.13806938,7.52860381 L3.82207747,8.21261415 L4.08178579,8.47230568 L4.13990493,8.53044268 L4.35023582,8.7407566 L4.57547178,8.9659933 L4.85737875,9.24791887 L4.97861481,9.36915534 L5.10652638,9.49704966 L5.63807546,10.0286182 L5.76402674,10.1545699 L5.96928922,10.359833 L6,10.3906499 L6.03071078,10.3598154 L6.23597326,10.1545522 L6.42532403,9.96518314 L6.8934913,9.497032 L7.02138519,9.36913769 L7.14262125,9.24790122 L7.42452822,8.96597564 L7.64978185,8.74073894 L7.86009507,8.53040735 L7.91821421,8.47228802 L8.17792253,8.21259649 L8.86193062,7.52858615 C9.12227471,7.26822355 9.54438462,7.26822355 9.80472869,7.52858615 C10.0650904,7.7889311 10.0650904,8.21104241 9.80472869,8.47138736 L9.34862324,8.92749432 L9.19326799,9.08286773 L9.12072062,9.1553977 L8.86102995,9.41510688 L8.80289316,9.47322621 L8.59257992,9.6835578 L8.36734397,9.9087945 L8.08541934,10.1907024 L7.96418327,10.3119389 L7.83628936,10.4398509 L7.30472262,10.9714017 L7.17877132,11.0973534 L6.97350886,11.3026166 L6.89153103,11.3846123 L6.57764175,11.698485 L6.53126652,11.744878 L6.4967765,11.7793682 L6.47139904,11.804728 C6.21105495,12.0650907 5.78894505,12.0650907 5.52860096,11.804728 L5.5032235,11.7793682 L5.46873348,11.744878 L5.42235825,11.698485 L5.10846897,11.3846123 L5.02649114,11.3026166 L4.82122868,11.0973534 L4.63186023,10.908002 L4.16371064,10.4398332 L4.03581673,10.3119389 L3.91458066,10.1907024 L3.63265603,9.9087945 L3.40742008,9.68354015 L3.19708919,9.47322621 L3.13897005,9.41510688 L2.87927938,9.1553977 L2.19527131,8.47138736 C1.93490956,8.21104241 1.93490956,7.7889311 2.19527131,7.52858615 L2.19527131,7.52860381 Z M9.80472869,4.47139619 C9.5443846,4.73175879 9.1222747,4.73175879 8.86193062,4.47139619 L8.17792253,3.78738585 L7.91821421,3.52769432 L7.86009507,3.46955732 L7.64976418,3.2592434 L7.42452822,3.0340067 L7.14262125,2.75208113 L7.02138519,2.63084466 L6.89347362,2.50295034 L6.36192454,1.97138184 L6.23597326,1.84543013 L6.03071078,1.64016697 L6,1.60935014 L5.96928922,1.64018464 L5.76402674,1.84544778 L5.57467597,2.03481686 L5.1065087,2.502968 L4.97861481,2.63086231 L4.85737875,2.75209878 L4.57547178,3.03402436 L4.35021815,3.25926106 L4.13990493,3.46959265 L4.08178579,3.52771198 L3.82207747,3.78740351 L3.13806938,4.47141385 C2.87772529,4.73177645 2.45561538,4.73177645 2.19527131,4.47141385 C1.93490956,4.2110689 1.93490956,3.78895759 2.19527131,3.52861264 L2.65137676,3.07250568 L2.80673201,2.91713227 L2.87927938,2.8446023 L3.13897005,2.58489312 L3.19710684,2.52677379 L3.40742008,2.3164422 L3.63265603,2.0912055 L3.91458066,1.80929759 L4.03581673,1.68806112 L4.16371064,1.56014914 L4.69527738,1.02859829 L4.82122868,0.902646594 L5.02649114,0.697383438 L5.10846897,0.615387678 L5.42235825,0.301515017 L5.46873348,0.255121977 L5.5032235,0.220631839 L5.52860096,0.195271954 C5.78894505,-0.0650906515 6.21105495,-0.0650906515 6.47139904,0.195271954 L6.4967765,0.220631839 L6.53126652,0.255121977 L6.57764175,0.301515017 L6.89153103,0.615387678 L6.97350886,0.697383438 L7.17877132,0.902646594 L7.36813977,1.091998 L7.83628936,1.56016679 L7.96418327,1.68806112 L8.08541934,1.80929759 L8.36734397,2.0912055 L8.59257992,2.31645985 L8.80291081,2.52677379 L8.86102995,2.58489312 L9.12072062,2.8446023 L9.80472869,3.52861264 C10.0650904,3.78895759 10.0650904,4.2110689 9.80472869,4.47141385 L9.80472869,4.47139619 Z" id="hy-icon-dispatch-linear-sequence-形状备份-2" fill="#87D4ED" fill-rule="nonzero"></path>
7
7
  </g>
8
8
  </symbol>`,
9
9
  };
@@ -1,7 +1,7 @@
1
1
  export { parseRem, pxTorem, remToPx, vwToPx } from './adaptive.mjs';
2
2
  export { bus } from './bus.mjs';
3
3
  export { base64Decrypt, encryptToBase64, generateRandomCode } from './crypto.mjs';
4
- export { isArray, isBoolean, isEmpty, isFile, isFunction, isNull, isNumber, isObject, isOverflowing, isString, isSupportH265, isSymbol, isUndefined, isVueProxy } from './is.mjs';
4
+ export { isArray, isBoolean, isEmpty, isFile, isFunction, isNull, isNumber, isObject, isOverflowing, isPermission, isString, isSupportH265, isSymbol, isUndefined, isVueProxy } from './is.mjs';
5
5
  export { cloneDeep, copyText, createUniqueId, funRunHandler, mergeDeep, withInstall } from './handler.mjs';
6
6
  export { formatDuration, getDefaultValueFormatByType } from './date.mjs';
7
7
  export { blobToDataURL, fileFormUpload, fileJsonUplaod, fileUpload, presignedUrl, sizeToTextHandler } from './file.mjs';
package/es/utils/is.mjs CHANGED
@@ -1,4 +1,5 @@
1
1
  import { isRef, isReactive, isReadonly, isProxy } from 'vue';
2
+ import { usePermissionMap } from '../hooks/usePermissionMap.mjs';
2
3
 
3
4
  const isString = (e) => typeof e === "string";
4
5
  const isNumber = (e) => typeof e === "number";
@@ -38,5 +39,12 @@ function isSupportH265() {
38
39
  }
39
40
  return { isSupport, isVersionLow };
40
41
  }
42
+ function isPermission(permission) {
43
+ const { permissionMap } = usePermissionMap();
44
+ if (!permission) {
45
+ return true;
46
+ }
47
+ return permissionMap.has(permission);
48
+ }
41
49
 
42
- export { isArray, isBoolean, isEmpty, isFile, isFunction, isNull, isNumber, isObject, isOverflowing, isString, isSupportH265, isSymbol, isUndefined, isVueProxy };
50
+ export { isArray, isBoolean, isEmpty, isFile, isFunction, isNull, isNumber, isObject, isOverflowing, isPermission, isString, isSupportH265, isSymbol, isUndefined, isVueProxy };
package/es/version.mjs CHANGED
@@ -1,3 +1,3 @@
1
- const version = "0.2.25";
1
+ const version = "0.2.26";
2
2
 
3
3
  export { version };
@@ -2,8 +2,8 @@
2
2
 
3
3
  var vue = require('vue');
4
4
  var elementPlus = require('element-plus');
5
- var useLocale = require('../../../hooks/useLocale.js');
6
5
  var useAudioPlayerConfig = require('../../../hooks/useAudioPlayerConfig.js');
6
+ var useLocale = require('../../../hooks/useLocale.js');
7
7
  var date = require('../../../utils/date.js');
8
8
 
9
9
  const useAudioPlayer = (hy) => {
@@ -85,13 +85,13 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
85
85
  }])
86
86
  },
87
87
  [
88
- !__props.loading ? vue.renderSlot(_ctx.$slots, "svg", {}, () => [
88
+ !__props.loading ? vue.renderSlot(_ctx.$slots, "svg", { key: 0 }, () => [
89
89
  __props.svgName ? (vue.openBlock(), vue.createBlock(vue.unref(index.HyIcon), {
90
90
  key: 0,
91
91
  "svg-name": __props.svgName,
92
92
  "class-name": "!w-3 !h-3 text-main mr-2"
93
93
  }, null, 8, ["svg-name"])) : vue.createCommentVNode("v-if", true)
94
- ], void 0, 0) : (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElIcon), {
94
+ ]) : (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElIcon), {
95
95
  key: 1,
96
96
  color: "rgb(var(--hy-main))",
97
97
  class: "is-loading mr-2"
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var vue = require('vue');
6
6
  var elementPlus = require('element-plus');
7
7
  var iconsVue = require('@element-plus/icons-vue');
8
- var useLocale = require('../../hooks/useLocale.js');
9
8
  var index = require('../hyButton/index.js');
9
+ var useLocale = require('../../hooks/useLocale.js');
10
10
 
11
11
  const __default__ = vue.defineComponent({
12
12
  name: "HyConfirmDialog"
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var vue = require('vue');
6
6
  var useApi = require('../../hooks/useApi.js');
7
7
  var confirmDialog = require('./confirmDialog.vue.js');
8
- var useLocale = require('../../hooks/useLocale.js');
9
8
  var useGlobalConfig = require('../../hooks/useGlobalConfig.js');
10
9
  var index = require('../hyConfigProvider/index.js');
10
+ var useLocale = require('../../hooks/useLocale.js');
11
11
 
12
12
  function appConfirmMethod(config) {
13
13
  let container = document.createDocumentFragment();
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('./confirmMethod.js');
6
- var handler = require('../../utils/handler.js');
7
6
  var confirmDialog = require('./confirmDialog.vue.js');
7
+ var handler = require('../../utils/handler.js');
8
8
 
9
9
  const HyConfirmDialog = handler.withInstall(confirmDialog.default);
10
10
 
@@ -6,9 +6,9 @@ var vue = require('vue');
6
6
  var vueCropper = require('vue-cropper');
7
7
  var elementPlus = require('element-plus');
8
8
  var iconsVue = require('@element-plus/icons-vue');
9
- var useLocale = require('../../hooks/useLocale.js');
10
9
  var file = require('../../utils/file.js');
11
10
  var index = require('../hyDialog/index.js');
11
+ var useLocale = require('../../hooks/useLocale.js');
12
12
 
13
13
  import "vue-cropper/dist/index.css";
14
14
 
@@ -4,9 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
6
6
  var elementPlus = require('element-plus');
7
- var useLocale = require('../../hooks/useLocale.js');
8
7
  var date = require('../../utils/date.js');
9
8
  var is = require('../../utils/is.js');
9
+ var useLocale = require('../../hooks/useLocale.js');
10
10
 
11
11
  import "./style/datePicker.scss";
12
12
 
@@ -6,14 +6,14 @@ var vue = require('vue');
6
6
  var elementPlus = require('element-plus');
7
7
  var iconsVue = require('@element-plus/icons-vue');
8
8
  var index = require('../js/index.js');
9
- var is = require('../../../utils/is.js');
10
9
  var form = require('../../../utils/form.js');
11
- var handler = require('../../../utils/handler.js');
12
10
  var index$1 = require('../../hyTooltip/index.js');
13
11
  var index$2 = require('../../hyInput/index.js');
14
12
  var index$3 = require('../../hyDatePicker/index.js');
15
13
  var index$4 = require('../../hyTimePicker/index.js');
16
14
  var index$5 = require('../../hyOrgCascader/index.js');
15
+ var is = require('../../../utils/is.js');
16
+ var handler = require('../../../utils/handler.js');
17
17
 
18
18
  const _sfc_main = {
19
19
  __name: "formItem",
@@ -158,10 +158,11 @@ const _sfc_main = {
158
158
  [
159
159
  vue.createCommentVNode(" \u81EA\u5B9A\u4E49\u5177\u540D\u63D2\u69FD "),
160
160
  __props.column.slot && _ctx.$slots[__props.column.slot] ? vue.renderSlot(_ctx.$slots, __props.column.slot, {
161
+ key: 0,
161
162
  column: __props.column,
162
163
  model: __props.model,
163
164
  required: vue.unref(index.isRequired)(props, __props.column)
164
- }, void 0, void 0, 0) : __props.column.type === "input" ? (vue.openBlock(), vue.createElementBlock(
165
+ }) : __props.column.type === "input" ? (vue.openBlock(), vue.createElementBlock(
165
166
  vue.Fragment,
166
167
  { key: 1 },
167
168
  [
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  var vue = require('vue');
4
+ var form = require('../../../utils/form.js');
4
5
  var handler = require('../../../utils/handler.js');
5
6
  var is = require('../../../utils/is.js');
6
- var form = require('../../../utils/form.js');
7
7
  var useLocale = require('../../../hooks/useLocale.js');
8
8
 
9
9
  const genDefaultLabel = (config) => {
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
6
6
  var elementPlus = require('element-plus');
7
- var useApi = require('../../hooks/useApi.js');
8
7
  var useLocale = require('../../hooks/useLocale.js');
8
+ var useApi = require('../../hooks/useApi.js');
9
9
 
10
10
  import "./style/orgCascader.scss";
11
11
 
@@ -96,7 +96,10 @@ const _sfc_main = {
96
96
  }])
97
97
  },
98
98
  [
99
- __props.column.labelSlot && _ctx.$slots[__props.column.labelSlot] ? vue.renderSlot(_ctx.$slots, __props.column.labelSlot, { column: __props.column }, void 0, void 0, 0) : (vue.openBlock(), vue.createElementBlock(
99
+ __props.column.labelSlot && _ctx.$slots[__props.column.labelSlot] ? vue.renderSlot(_ctx.$slots, __props.column.labelSlot, {
100
+ key: 0,
101
+ column: __props.column
102
+ }) : (vue.openBlock(), vue.createElementBlock(
100
103
  "span",
101
104
  { key: 1 },
102
105
  vue.toDisplayString(__props.column.label),
@@ -116,7 +119,10 @@ const _sfc_main = {
116
119
  },
117
120
  [
118
121
  vue.createCommentVNode(" \u81EA\u5B9A\u4E49\u5177\u540D\u63D2\u69FD "),
119
- __props.column.slot ? vue.renderSlot(_ctx.$slots, __props.column.slot, { column: __props.column }, void 0, void 0, 0) : __props.column.type === "input" ? (vue.openBlock(), vue.createElementBlock(
122
+ __props.column.slot ? vue.renderSlot(_ctx.$slots, __props.column.slot, {
123
+ key: 0,
124
+ column: __props.column
125
+ }) : __props.column.type === "input" ? (vue.openBlock(), vue.createElementBlock(
120
126
  vue.Fragment,
121
127
  { key: 1 },
122
128
  [
@@ -94,7 +94,7 @@ const _sfc_main = {
94
94
  }, 8, ["color", "onClick"])
95
95
  ]),
96
96
  vue.renderSlot(_ctx.$slots, "default")
97
- ], 8, ["onClick"])) : vue.renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 1);
97
+ ], 8, ["onClick"])) : vue.renderSlot(_ctx.$slots, "default", { key: 1 });
98
98
  };
99
99
  }
100
100
  };
@@ -333,7 +333,7 @@ const _sfc_main = {
333
333
  indeterminate: indeterminateKeys.value.has(getRowKey(row)),
334
334
  disabled: !isSelectable(row),
335
335
  onClick: vue.withModifiers(($event) => switchCheckHandler(row), ["stop"])
336
- }, null, 8, ["model-value", "indeterminate", "disabled", "onClick"])) : column?.slot ? vue.renderSlot(_ctx.$slots, column?.slot, vue.normalizeProps(vue.guardReactiveProps({ column, row, $index, cellIndex })), void 0, void 0, 2) : column.type === "index" ? (vue.openBlock(), vue.createElementBlock(
336
+ }, null, 8, ["model-value", "indeterminate", "disabled", "onClick"])) : column?.slot ? vue.renderSlot(_ctx.$slots, column?.slot, vue.normalizeProps(vue.mergeProps({ key: 2 }, { column, row, $index, cellIndex }))) : column.type === "index" ? (vue.openBlock(), vue.createElementBlock(
337
337
  vue.Fragment,
338
338
  { key: 3 },
339
339
  [
@@ -550,9 +550,10 @@ const _sfc_main = {
550
550
  ]),
551
551
  row: vue.withCtx(({ cells, depth, expanded, rowData: row }) => [
552
552
  depth > 0 && isExpandTable.value ? vue.renderSlot(_ctx.$slots, expandColumn.value.slot, {
553
+ key: 0,
553
554
  row,
554
555
  expanded: expandedMap.value.has(getRowKey(row))
555
- }, void 0, void 0, 0) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(() => cells), { key: 1 }))
556
+ }) : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(() => cells), { key: 1 }))
556
557
  ]),
557
558
  empty: vue.withCtx(() => [
558
559
  vue.renderSlot(_ctx.$slots, "empty")
@@ -74,6 +74,9 @@ function tableColumnHandler(columns, cacheKey, searchArr) {
74
74
  );
75
75
  }
76
76
  function operatorShowHandler(operator, scope) {
77
+ if (operator.permission) {
78
+ return is.isPermission(operator.permission);
79
+ }
77
80
  const show = vue.unref(operator.show);
78
81
  if (is.isBoolean(show)) return show;
79
82
  if (is.isFunction(show)) return show(scope);
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var vue = require('vue');
4
- var is = require('../../../utils/is.js');
5
4
  var useAppSearch = require('../../hySearch/js/useAppSearch.js');
5
+ var is = require('../../../utils/is.js');
6
6
  var useLocale = require('../../../hooks/useLocale.js');
7
7
 
8
8
  function getColumnDefaultConfig(column) {
@@ -10,13 +10,13 @@ var search = require('./js/search.js');
10
10
  var headerItem = require('./cpns/headerItem.vue.js');
11
11
  var columnSelect = require('./cpns/columnSelect.vue.js');
12
12
  var virtualTable = require('./cpns/virtualTable.vue.js');
13
- var useLocale = require('../../hooks/useLocale.js');
14
13
  var useMixins = require('../../hooks/useMixins.js');
14
+ var index$3 = require('../hySearch/index.js');
15
+ var adaptive = require('../../utils/adaptive.js');
16
+ var useLocale = require('../../hooks/useLocale.js');
15
17
  var index = require('../hyTooltip/index.js');
16
18
  var index$1 = require('../hyButton/index.js');
17
19
  var index$2 = require('../hyIcon/index.js');
18
- var index$3 = require('../hySearch/index.js');
19
- var adaptive = require('../../utils/adaptive.js');
20
20
  var is = require('../../utils/is.js');
21
21
 
22
22
  import "./style/table.scss";
@@ -457,9 +457,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
457
457
  }, 1032, ["column", "filter-model", "onSearch"])
458
458
  ]),
459
459
  default: vue.withCtx((scope) => [
460
- column?.slot ? vue.renderSlot(_ctx.$slots, column?.slot, vue.mergeProps({ ref_for: true }, scope), void 0, void 0, 0) : column.type === "operator" ? (vue.openBlock(), vue.createElementBlock("div", {
460
+ column?.slot ? vue.renderSlot(_ctx.$slots, column?.slot, vue.mergeProps({
461
+ key: 0,
462
+ ref_for: true
463
+ }, scope)) : column.type === "operator" ? (vue.openBlock(), vue.createElementBlock("div", {
461
464
  key: 1,
462
- class: "flex items-center justify-between text-main"
465
+ class: "flex items-center justify-end text-main"
463
466
  }, [
464
467
  (vue.openBlock(true), vue.createElementBlock(
465
468
  vue.Fragment,
@@ -477,27 +480,18 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
477
480
  }, {
478
481
  default: vue.withCtx(() => [
479
482
  vue.createElementVNode("div", {
480
- class: vue.normalizeClass(["w-[40px] h-[48px] inline-flex flex-col items-center justify-center text-xs hover:font-bold border border-transparent hover:border-theme hover:shadow-[0px_0px_5px_0px_rgba(var(--hy-theme),0.5)] rounded box-border cursor-pointer", citem.className]),
483
+ class: vue.normalizeClass(["ml-2 w-[40px] h-[48px] inline-flex flex-col items-center justify-center text-xs hover:font-bold border border-transparent hover:border-theme hover:shadow-[0px_0px_5px_0px_rgba(var(--hy-theme),0.5)] rounded box-border cursor-pointer", citem.className]),
481
484
  onClick: ($event) => vue.unref(index$4.operatorClickHandler)(cindex, column, scope, "default")
482
485
  }, [
483
- vue.createCommentVNode(' <HyIcon\n :svg-name="citem.svgName"\n class-name="!w-4 !h-4"\n /> '),
484
- vue.createElementVNode("div", { class: "w-4 h-4" }, [
485
- vue.createVNode(vue.unref(elementPlus.ElIcon), {
486
- size: "16",
487
- color: "rgba(var(--hy-main))"
488
- }, {
489
- default: vue.withCtx(() => [
490
- vue.createVNode(vue.unref(iconsVue.MoreFilled))
491
- ]),
492
- _: 1
493
- /* STABLE */
494
- })
495
- ]),
486
+ vue.createVNode(vue.unref(index$2.HyIcon), {
487
+ "svg-name": citem.svgName,
488
+ "class-name": "!w-4 !h-4"
489
+ }, null, 8, ["svg-name"]),
496
490
  citem.subLabel ? (vue.openBlock(), vue.createElementBlock(
497
491
  "div",
498
492
  {
499
493
  key: 0,
500
- class: "mt-1 whitespace-nowrap"
494
+ class: "mt-1 whitespace-nowrap w-full text-center over_one_line"
501
495
  },
502
496
  vue.toDisplayString(citem.subLabel),
503
497
  1
@@ -589,9 +583,15 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
589
583
  }, {
590
584
  default: vue.withCtx(() => [
591
585
  vue.createElementVNode("div", { class: "w-[40px] h-[48px] inline-flex flex-col items-center justify-center text-main text-xs hover:font-bold border border-transparent hover:border-theme hover:shadow-[0px_0px_5px_0px_rgba(var(--hy-theme),0.5)] rounded box-border cursor-pointer" }, [
592
- vue.createVNode(vue.unref(index$2.HyIcon), {
593
- "svg-name": "system-burst_analysis_select_option",
594
- "class-name": "!w-4 !h-4"
586
+ vue.createVNode(vue.unref(elementPlus.ElIcon), {
587
+ size: "16",
588
+ color: "rgba(var(--hy-main))"
589
+ }, {
590
+ default: vue.withCtx(() => [
591
+ vue.createVNode(vue.unref(iconsVue.MoreFilled))
592
+ ]),
593
+ _: 1
594
+ /* STABLE */
595
595
  }),
596
596
  vue.createElementVNode(
597
597
  "div",
@@ -73,13 +73,13 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
73
73
  content: _ctx.$slots.content ? void 0 : __props.content
74
74
  }), vue.createSlots({
75
75
  default: vue.withCtx(() => [
76
- __props.isAlways ? vue.renderSlot(_ctx.$slots, "default", {}, () => [
76
+ __props.isAlways ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
77
77
  vue.createTextVNode(
78
78
  vue.toDisplayString(__props.content),
79
79
  1
80
80
  /* TEXT */
81
81
  )
82
- ], void 0, 0) : (vue.openBlock(), vue.createElementBlock(
82
+ ]) : (vue.openBlock(), vue.createElementBlock(
83
83
  "span",
84
84
  {
85
85
  key: 1,
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
6
- var useLocale = require('../../hooks/useLocale.js');
7
6
  var useUserAvatarMap = require('../../hooks/useUserAvatarMap.js');
8
- var index = require('../hyIcon/index.js');
9
7
  var adaptive = require('../../utils/adaptive.js');
8
+ var useLocale = require('../../hooks/useLocale.js');
9
+ var index = require('../hyIcon/index.js');
10
10
 
11
11
  import "./style/userAvatar.scss";
12
12
 
@@ -2,12 +2,12 @@
2
2
 
3
3
  var vue = require('vue');
4
4
  var elementPlus = require('element-plus');
5
- var useLocale = require('../../../hooks/useLocale.js');
6
5
  var useVideoPlayerConfig = require('../../../hooks/useVideoPlayerConfig.js');
7
6
  var date = require('../../../utils/date.js');
8
7
  var index = require('../../hyConfirmDialog/index.js');
9
8
  var handler = require('../../../utils/handler.js');
10
9
  var is = require('../../../utils/is.js');
10
+ var useLocale = require('../../../hooks/useLocale.js');
11
11
 
12
12
  const useVideoPlayer = (hy) => {
13
13
  const { props, emits, videoRef, videoWrapperRef } = hy;
package/lib/index.js CHANGED
@@ -126,6 +126,7 @@ exports.isNull = is.isNull;
126
126
  exports.isNumber = is.isNumber;
127
127
  exports.isObject = is.isObject;
128
128
  exports.isOverflowing = is.isOverflowing;
129
+ exports.isPermission = is.isPermission;
129
130
  exports.isString = is.isString;
130
131
  exports.isSupportH265 = is.isSupportH265;
131
132
  exports.isSymbol = is.isSymbol;
@@ -1,8 +1,8 @@
1
1
  export default {
2
- id: 'hy-icon-Miscellaneous-graffiti-选择',
3
- symbol: `<symbol id="hy-icon-Miscellaneous-graffiti-选择" viewBox="0 0 24 24">
4
- <g id="hy-icon-Miscellaneous-graffiti-选择-选择" stroke="none" stroke-width="1" fill-rule="evenodd">
5
- <path d="M22.9967004,12.0014106 C22.9972892,12.2089004 22.9130578,12.4076132 22.7635492,12.5514445 L19.6259054,15.6987383 C19.4017388,15.9204703 19.0667315,15.9866019 18.7751575,15.8666788 C18.4835835,15.7467557 18.2919811,15.4640319 18.2885851,15.1487044 L18.2885851,13.5745075 L13.5683724,13.5745075 L13.5683724,18.2882977 L15.1399437,18.2882977 C15.4572754,18.2874293 15.7435713,18.4787473 15.86425,18.7723175 C15.9849288,19.0658877 15.9159854,19.4033141 15.6898287,19.62598 L12.5444865,22.7688735 C12.3996883,22.9166976 12.2014992,23 11.9946015,23 C11.7877039,23 11.5895148,22.9166976 11.4447166,22.7688735 L8.29827463,19.6270801 C8.07660261,19.4028527 8.01048894,19.0677548 8.13037958,18.7761018 C8.25027022,18.4844488 8.53291743,18.2927947 8.84815963,18.2893977 L10.4197309,18.2893977 L10.4197309,13.5723073 L5.71381517,13.5723073 L5.71381517,15.1443041 C5.71468335,15.4617218 5.52341708,15.7480951 5.22992634,15.8688066 C4.93643561,15.989518 4.59910057,15.920556 4.37649487,15.694338 L1.23445203,12.5503444 C1.08460214,12.4052763 1,12.2056054 1,11.9970104 C1,11.7884153 1.08460214,11.5887444 1.23445203,11.4436763 L4.37649487,8.30078282 C4.60066153,8.07905078 4.93566881,8.01291922 5.22724283,8.13284231 C5.51881686,8.25276541 5.71041917,8.53548914 5.71381517,8.85081669 L5.71381517,10.4228135 L10.4274293,10.4228135 L10.4274293,5.71452361 L8.85695778,5.71452361 C8.53962606,5.71539202 8.25333019,5.52407397 8.13265143,5.23050378 C8.01197268,4.93693358 8.08091604,4.59950722 8.30707279,4.37684125 L11.4491156,1.23394777 C11.5941073,1.08440326 11.7934857,1 12.00175,1 C12.2100144,1 12.4093928,1.08440326 12.5543845,1.23394777 L15.6964273,4.37684125 C15.9180993,4.6010686 15.984213,4.93616657 15.8643224,5.22781954 C15.7444317,5.5194725 15.4617845,5.71112669 15.1465423,5.71452361 L13.5738712,5.71452361 L13.5738712,10.4283138 L18.2874854,10.4283138 L18.2874854,8.85741709 C18.2866172,8.53999946 18.4778835,8.25362608 18.7713742,8.13291465 C19.0648649,8.01220322 19.4022,8.08116525 19.6248057,8.30738322 L22.7723474,11.4502767 C22.9182564,11.5960981 23,11.7939981 23,12.0003106 L22.9967004,12.0014106 Z" id="hy-icon-Miscellaneous-graffiti-选择-路径" fill-rule="nonzero"></path>
2
+ id: 'hy-icon-Miscellaneous-graffiti-choice',
3
+ symbol: `<symbol id="hy-icon-Miscellaneous-graffiti-choice" viewBox="0 0 24 24">
4
+ <g id="hy-icon-Miscellaneous-graffiti-choice-选择" stroke="none" stroke-width="1" fill-rule="evenodd">
5
+ <path d="M22.9967004,12.0014106 C22.9972892,12.2089004 22.9130578,12.4076132 22.7635492,12.5514445 L19.6259054,15.6987383 C19.4017388,15.9204703 19.0667315,15.9866019 18.7751575,15.8666788 C18.4835835,15.7467557 18.2919811,15.4640319 18.2885851,15.1487044 L18.2885851,13.5745075 L13.5683724,13.5745075 L13.5683724,18.2882977 L15.1399437,18.2882977 C15.4572754,18.2874293 15.7435713,18.4787473 15.86425,18.7723175 C15.9849288,19.0658877 15.9159854,19.4033141 15.6898287,19.62598 L12.5444865,22.7688735 C12.3996883,22.9166976 12.2014992,23 11.9946015,23 C11.7877039,23 11.5895148,22.9166976 11.4447166,22.7688735 L8.29827463,19.6270801 C8.07660261,19.4028527 8.01048894,19.0677548 8.13037958,18.7761018 C8.25027022,18.4844488 8.53291743,18.2927947 8.84815963,18.2893977 L10.4197309,18.2893977 L10.4197309,13.5723073 L5.71381517,13.5723073 L5.71381517,15.1443041 C5.71468335,15.4617218 5.52341708,15.7480951 5.22992634,15.8688066 C4.93643561,15.989518 4.59910057,15.920556 4.37649487,15.694338 L1.23445203,12.5503444 C1.08460214,12.4052763 1,12.2056054 1,11.9970104 C1,11.7884153 1.08460214,11.5887444 1.23445203,11.4436763 L4.37649487,8.30078282 C4.60066153,8.07905078 4.93566881,8.01291922 5.22724283,8.13284231 C5.51881686,8.25276541 5.71041917,8.53548914 5.71381517,8.85081669 L5.71381517,10.4228135 L10.4274293,10.4228135 L10.4274293,5.71452361 L8.85695778,5.71452361 C8.53962606,5.71539202 8.25333019,5.52407397 8.13265143,5.23050378 C8.01197268,4.93693358 8.08091604,4.59950722 8.30707279,4.37684125 L11.4491156,1.23394777 C11.5941073,1.08440326 11.7934857,1 12.00175,1 C12.2100144,1 12.4093928,1.08440326 12.5543845,1.23394777 L15.6964273,4.37684125 C15.9180993,4.6010686 15.984213,4.93616657 15.8643224,5.22781954 C15.7444317,5.5194725 15.4617845,5.71112669 15.1465423,5.71452361 L13.5738712,5.71452361 L13.5738712,10.4283138 L18.2874854,10.4283138 L18.2874854,8.85741709 C18.2866172,8.53999946 18.4778835,8.25362608 18.7713742,8.13291465 C19.0648649,8.01220322 19.4022,8.08116525 19.6248057,8.30738322 L22.7723474,11.4502767 C22.9182564,11.5960981 23,11.7939981 23,12.0003106 L22.9967004,12.0014106 Z" id="hy-icon-Miscellaneous-graffiti-choice-路径" fill-rule="nonzero"></path>
6
6
  </g>
7
7
  </symbol>`,
8
8
  };
@@ -1,9 +1,9 @@
1
1
  export default {
2
- id: 'hy-icon-dispatch-linear-顺序',
3
- symbol: `<symbol id="hy-icon-dispatch-linear-顺序" viewBox="0 0 12 12">
2
+ id: 'hy-icon-dispatch-linear-sequence',
3
+ symbol: `<symbol id="hy-icon-dispatch-linear-sequence" viewBox="0 0 12 12">
4
4
  <title>顺序</title>
5
- <g id="hy-icon-dispatch-linear-顺序-顺序" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
6
- <path d="M2.19527131,7.52860381 C2.4556154,7.26824121 2.8777253,7.26824121 3.13806938,7.52860381 L3.82207747,8.21261415 L4.08178579,8.47230568 L4.13990493,8.53044268 L4.35023582,8.7407566 L4.57547178,8.9659933 L4.85737875,9.24791887 L4.97861481,9.36915534 L5.10652638,9.49704966 L5.63807546,10.0286182 L5.76402674,10.1545699 L5.96928922,10.359833 L6,10.3906499 L6.03071078,10.3598154 L6.23597326,10.1545522 L6.42532403,9.96518314 L6.8934913,9.497032 L7.02138519,9.36913769 L7.14262125,9.24790122 L7.42452822,8.96597564 L7.64978185,8.74073894 L7.86009507,8.53040735 L7.91821421,8.47228802 L8.17792253,8.21259649 L8.86193062,7.52858615 C9.12227471,7.26822355 9.54438462,7.26822355 9.80472869,7.52858615 C10.0650904,7.7889311 10.0650904,8.21104241 9.80472869,8.47138736 L9.34862324,8.92749432 L9.19326799,9.08286773 L9.12072062,9.1553977 L8.86102995,9.41510688 L8.80289316,9.47322621 L8.59257992,9.6835578 L8.36734397,9.9087945 L8.08541934,10.1907024 L7.96418327,10.3119389 L7.83628936,10.4398509 L7.30472262,10.9714017 L7.17877132,11.0973534 L6.97350886,11.3026166 L6.89153103,11.3846123 L6.57764175,11.698485 L6.53126652,11.744878 L6.4967765,11.7793682 L6.47139904,11.804728 C6.21105495,12.0650907 5.78894505,12.0650907 5.52860096,11.804728 L5.5032235,11.7793682 L5.46873348,11.744878 L5.42235825,11.698485 L5.10846897,11.3846123 L5.02649114,11.3026166 L4.82122868,11.0973534 L4.63186023,10.908002 L4.16371064,10.4398332 L4.03581673,10.3119389 L3.91458066,10.1907024 L3.63265603,9.9087945 L3.40742008,9.68354015 L3.19708919,9.47322621 L3.13897005,9.41510688 L2.87927938,9.1553977 L2.19527131,8.47138736 C1.93490956,8.21104241 1.93490956,7.7889311 2.19527131,7.52858615 L2.19527131,7.52860381 Z M9.80472869,4.47139619 C9.5443846,4.73175879 9.1222747,4.73175879 8.86193062,4.47139619 L8.17792253,3.78738585 L7.91821421,3.52769432 L7.86009507,3.46955732 L7.64976418,3.2592434 L7.42452822,3.0340067 L7.14262125,2.75208113 L7.02138519,2.63084466 L6.89347362,2.50295034 L6.36192454,1.97138184 L6.23597326,1.84543013 L6.03071078,1.64016697 L6,1.60935014 L5.96928922,1.64018464 L5.76402674,1.84544778 L5.57467597,2.03481686 L5.1065087,2.502968 L4.97861481,2.63086231 L4.85737875,2.75209878 L4.57547178,3.03402436 L4.35021815,3.25926106 L4.13990493,3.46959265 L4.08178579,3.52771198 L3.82207747,3.78740351 L3.13806938,4.47141385 C2.87772529,4.73177645 2.45561538,4.73177645 2.19527131,4.47141385 C1.93490956,4.2110689 1.93490956,3.78895759 2.19527131,3.52861264 L2.65137676,3.07250568 L2.80673201,2.91713227 L2.87927938,2.8446023 L3.13897005,2.58489312 L3.19710684,2.52677379 L3.40742008,2.3164422 L3.63265603,2.0912055 L3.91458066,1.80929759 L4.03581673,1.68806112 L4.16371064,1.56014914 L4.69527738,1.02859829 L4.82122868,0.902646594 L5.02649114,0.697383438 L5.10846897,0.615387678 L5.42235825,0.301515017 L5.46873348,0.255121977 L5.5032235,0.220631839 L5.52860096,0.195271954 C5.78894505,-0.0650906515 6.21105495,-0.0650906515 6.47139904,0.195271954 L6.4967765,0.220631839 L6.53126652,0.255121977 L6.57764175,0.301515017 L6.89153103,0.615387678 L6.97350886,0.697383438 L7.17877132,0.902646594 L7.36813977,1.091998 L7.83628936,1.56016679 L7.96418327,1.68806112 L8.08541934,1.80929759 L8.36734397,2.0912055 L8.59257992,2.31645985 L8.80291081,2.52677379 L8.86102995,2.58489312 L9.12072062,2.8446023 L9.80472869,3.52861264 C10.0650904,3.78895759 10.0650904,4.2110689 9.80472869,4.47141385 L9.80472869,4.47139619 Z" id="hy-icon-dispatch-linear-顺序-形状备份-2" fill="#87D4ED" fill-rule="nonzero"></path>
5
+ <g id="hy-icon-dispatch-linear-sequence-顺序" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
6
+ <path d="M2.19527131,7.52860381 C2.4556154,7.26824121 2.8777253,7.26824121 3.13806938,7.52860381 L3.82207747,8.21261415 L4.08178579,8.47230568 L4.13990493,8.53044268 L4.35023582,8.7407566 L4.57547178,8.9659933 L4.85737875,9.24791887 L4.97861481,9.36915534 L5.10652638,9.49704966 L5.63807546,10.0286182 L5.76402674,10.1545699 L5.96928922,10.359833 L6,10.3906499 L6.03071078,10.3598154 L6.23597326,10.1545522 L6.42532403,9.96518314 L6.8934913,9.497032 L7.02138519,9.36913769 L7.14262125,9.24790122 L7.42452822,8.96597564 L7.64978185,8.74073894 L7.86009507,8.53040735 L7.91821421,8.47228802 L8.17792253,8.21259649 L8.86193062,7.52858615 C9.12227471,7.26822355 9.54438462,7.26822355 9.80472869,7.52858615 C10.0650904,7.7889311 10.0650904,8.21104241 9.80472869,8.47138736 L9.34862324,8.92749432 L9.19326799,9.08286773 L9.12072062,9.1553977 L8.86102995,9.41510688 L8.80289316,9.47322621 L8.59257992,9.6835578 L8.36734397,9.9087945 L8.08541934,10.1907024 L7.96418327,10.3119389 L7.83628936,10.4398509 L7.30472262,10.9714017 L7.17877132,11.0973534 L6.97350886,11.3026166 L6.89153103,11.3846123 L6.57764175,11.698485 L6.53126652,11.744878 L6.4967765,11.7793682 L6.47139904,11.804728 C6.21105495,12.0650907 5.78894505,12.0650907 5.52860096,11.804728 L5.5032235,11.7793682 L5.46873348,11.744878 L5.42235825,11.698485 L5.10846897,11.3846123 L5.02649114,11.3026166 L4.82122868,11.0973534 L4.63186023,10.908002 L4.16371064,10.4398332 L4.03581673,10.3119389 L3.91458066,10.1907024 L3.63265603,9.9087945 L3.40742008,9.68354015 L3.19708919,9.47322621 L3.13897005,9.41510688 L2.87927938,9.1553977 L2.19527131,8.47138736 C1.93490956,8.21104241 1.93490956,7.7889311 2.19527131,7.52858615 L2.19527131,7.52860381 Z M9.80472869,4.47139619 C9.5443846,4.73175879 9.1222747,4.73175879 8.86193062,4.47139619 L8.17792253,3.78738585 L7.91821421,3.52769432 L7.86009507,3.46955732 L7.64976418,3.2592434 L7.42452822,3.0340067 L7.14262125,2.75208113 L7.02138519,2.63084466 L6.89347362,2.50295034 L6.36192454,1.97138184 L6.23597326,1.84543013 L6.03071078,1.64016697 L6,1.60935014 L5.96928922,1.64018464 L5.76402674,1.84544778 L5.57467597,2.03481686 L5.1065087,2.502968 L4.97861481,2.63086231 L4.85737875,2.75209878 L4.57547178,3.03402436 L4.35021815,3.25926106 L4.13990493,3.46959265 L4.08178579,3.52771198 L3.82207747,3.78740351 L3.13806938,4.47141385 C2.87772529,4.73177645 2.45561538,4.73177645 2.19527131,4.47141385 C1.93490956,4.2110689 1.93490956,3.78895759 2.19527131,3.52861264 L2.65137676,3.07250568 L2.80673201,2.91713227 L2.87927938,2.8446023 L3.13897005,2.58489312 L3.19710684,2.52677379 L3.40742008,2.3164422 L3.63265603,2.0912055 L3.91458066,1.80929759 L4.03581673,1.68806112 L4.16371064,1.56014914 L4.69527738,1.02859829 L4.82122868,0.902646594 L5.02649114,0.697383438 L5.10846897,0.615387678 L5.42235825,0.301515017 L5.46873348,0.255121977 L5.5032235,0.220631839 L5.52860096,0.195271954 C5.78894505,-0.0650906515 6.21105495,-0.0650906515 6.47139904,0.195271954 L6.4967765,0.220631839 L6.53126652,0.255121977 L6.57764175,0.301515017 L6.89153103,0.615387678 L6.97350886,0.697383438 L7.17877132,0.902646594 L7.36813977,1.091998 L7.83628936,1.56016679 L7.96418327,1.68806112 L8.08541934,1.80929759 L8.36734397,2.0912055 L8.59257992,2.31645985 L8.80291081,2.52677379 L8.86102995,2.58489312 L9.12072062,2.8446023 L9.80472869,3.52861264 C10.0650904,3.78895759 10.0650904,4.2110689 9.80472869,4.47141385 L9.80472869,4.47139619 Z" id="hy-icon-dispatch-linear-sequence-形状备份-2" fill="#87D4ED" fill-rule="nonzero"></path>
7
7
  </g>
8
8
  </symbol>`,
9
9
  };
@@ -28,6 +28,7 @@ exports.isNull = is.isNull;
28
28
  exports.isNumber = is.isNumber;
29
29
  exports.isObject = is.isObject;
30
30
  exports.isOverflowing = is.isOverflowing;
31
+ exports.isPermission = is.isPermission;
31
32
  exports.isString = is.isString;
32
33
  exports.isSupportH265 = is.isSupportH265;
33
34
  exports.isSymbol = is.isSymbol;
package/lib/utils/is.js CHANGED
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var vue = require('vue');
4
+ var usePermissionMap = require('../hooks/usePermissionMap.js');
4
5
 
5
6
  const isString = (e) => typeof e === "string";
6
7
  const isNumber = (e) => typeof e === "number";
@@ -40,6 +41,13 @@ function isSupportH265() {
40
41
  }
41
42
  return { isSupport, isVersionLow };
42
43
  }
44
+ function isPermission(permission) {
45
+ const { permissionMap } = usePermissionMap.usePermissionMap();
46
+ if (!permission) {
47
+ return true;
48
+ }
49
+ return permissionMap.has(permission);
50
+ }
43
51
 
44
52
  exports.isArray = isArray;
45
53
  exports.isBoolean = isBoolean;
@@ -50,6 +58,7 @@ exports.isNull = isNull;
50
58
  exports.isNumber = isNumber;
51
59
  exports.isObject = isObject;
52
60
  exports.isOverflowing = isOverflowing;
61
+ exports.isPermission = isPermission;
53
62
  exports.isString = isString;
54
63
  exports.isSupportH265 = isSupportH265;
55
64
  exports.isSymbol = isSymbol;
package/lib/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
2
 
3
- const version = "0.2.25";
3
+ const version = "0.2.26";
4
4
 
5
5
  exports.version = version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hy-dispatch-ui-v3",
3
- "version": "0.2.26",
3
+ "version": "0.2.27",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.mjs",
6
6
  "scripts": {
@@ -28,6 +28,7 @@
28
28
  "mitt": "^3.0.1",
29
29
  "mysql": "^2.18.1",
30
30
  "sortablejs": "^1.15.7",
31
+ "vite-plugin-svg-icons": "^2.0.1",
31
32
  "vue": "^3.5.25",
32
33
  "vue-cropper": "^1.1.4",
33
34
  "vue-router": "^5.0.3"