giime 0.6.31 → 0.6.32

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.
package/dist/index.css CHANGED
@@ -873,11 +873,56 @@ video {
873
873
  .gm-group:hover .group-hover\:gm-block {
874
874
  display: block;
875
875
  }
876
+ .gm-flex-center[data-v-c17deec9] {
877
+ align-items: center;
878
+ }
876
879
 
877
- .gm-range-number .el-form-item[data-v-1ae16d96] {
880
+ .gm-flex-justify-between[data-v-c17deec9] {
881
+ justify-content: space-between;
882
+ }
883
+ .gm-upload-preview-dialog[data-v-8077ce51] [data-v-8077ce51] .el-dialog__body {
884
+ padding: 0;
885
+ }
886
+
887
+ .gm-upload-file-picture-card[data-v-8077ce51] [data-v-8077ce51] .el-upload-list__item, .gm-upload-file-picture-card[data-v-8077ce51] [data-v-8077ce51] .el-upload--picture-card {
888
+ width: auto;
889
+ height: auto;
890
+ }
891
+ .gm-upload-file {
892
+ line-height: normal;
893
+ }
894
+ .gm-upload-file .el-checkbox {
895
+ position: absolute;
896
+ left: 10px;
897
+ top: 0;
898
+ z-index: 9;
899
+ }
900
+ .gm-upload-file .el-upload-list--picture-card {
901
+ gap: 10px;
902
+ }
903
+ .gm-upload-file .el-upload-list__item {
878
904
  margin: 0;
879
905
  }
906
+ .gm-upload-file .el-upload-list__item-file-name {
907
+ line-height: normal;
908
+ }
909
+ .gm-upload-file .el-upload-dragger {
910
+ padding: 0;
911
+ border: none;
912
+ width: 100%;
913
+ height: 100%;
914
+ display: flex;
915
+ }
916
+ .gm-upload-file .el-upload--picture-card {
917
+ border: none;
918
+ }
880
919
 
920
+ .gm-upload-file-disabled .el-upload--picture-card {
921
+ display: none;
922
+ }
923
+ .gm-upload-file-disabled .el-upload-list__item-status-label {
924
+ display: none;
925
+ }
881
926
  .circular[data-v-d7b04fae] {
882
927
  animation: loading-rotate-d7b04fae 2s linear infinite;
883
928
  }
@@ -909,30 +954,14 @@ video {
909
954
  stroke-dashoffset: -120px;
910
955
  }
911
956
  }
912
- .gm-number-interval-single[data-v-4e6f4d6f] {
913
- border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
914
- box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
915
- background-color: var(--el-input-bg-color, var(--el-fill-color-blank));
916
- }
917
- .gm-number-interval-single[data-v-4e6f4d6f] [data-v-4e6f4d6f] .el-input__wrapper {
918
- box-shadow: none;
919
- background: none;
920
- }
921
-
922
- .gm-number-interval-close[data-v-4e6f4d6f] {
923
- display: none;
924
- color: var(--el-input-icon-color, var(--el-text-color-placeholder));
925
- }
926
957
 
927
- .gm-number-interval-single[data-v-4e6f4d6f]:hover .gm-number-interval-close[data-v-4e6f4d6f] {
928
- display: flex;
929
- }
930
- .gm-flex-center[data-v-c17deec9] {
931
- align-items: center;
958
+ .gm-range-number .el-form-item[data-v-1ae16d96] {
959
+ margin: 0;
932
960
  }
933
961
 
934
- .gm-flex-justify-between[data-v-c17deec9] {
935
- justify-content: space-between;
962
+ [data-v-488ca110] .gmSearchForm .el-form-item {
963
+ margin-right: 0;
964
+ margin-bottom: 4px;
936
965
  }
937
966
  [data-v-2c351ff8] .gmTableNoBorder .el-table__body .el-table__cell {
938
967
  border-right: none;
@@ -957,192 +986,163 @@ video {
957
986
  [data-v-2c351ff8] .gmTableNoBorder .el-table__border-left-patch {
958
987
  height: 0;
959
988
  }
960
- [data-v-488ca110] .gmSearchForm .el-form-item {
961
- margin-right: 0;
962
- margin-bottom: 4px;
963
- }
964
- [data-v-98c2e804] .gmTableNoBorder .el-table__body .el-table__cell {
965
- border-right: none;
966
- }
967
-
968
- [data-v-98c2e804] .gmTableNoBorder .el-table__inner-wrapper:before {
969
- height: 0;
970
- }
971
989
 
972
- [data-v-98c2e804] .gmTableNoBorder.el-table--border .el-table__inner-wrapper:after {
973
- height: 0;
974
- }
975
-
976
- [data-v-98c2e804] .gmTableNoBorder.el-table--border:after {
977
- height: 0;
990
+ .pagination-container[data-v-47d35e7b] {
991
+ background: #fff;
992
+ padding-top: 12px;
978
993
  }
979
-
980
- [data-v-98c2e804] .gmTableNoBorder.el-table--border:before {
981
- height: 0;
994
+ .pagination-container.hidden[data-v-47d35e7b] {
995
+ display: none;
982
996
  }
983
997
 
984
- [data-v-98c2e804] .gmTableNoBorder .el-table__border-left-patch {
985
- height: 0;
986
- }
987
- .gm-upload-file {
988
- line-height: normal;
989
- }
990
- .gm-upload-file .el-checkbox {
991
- position: absolute;
992
- left: 10px;
993
- top: 0;
994
- z-index: 9;
995
- }
996
- .gm-upload-file .el-upload-list--picture-card {
997
- gap: 10px;
998
- }
999
- .gm-upload-file .el-upload-list__item {
1000
- margin: 0;
1001
- }
1002
- .gm-upload-file .el-upload-list__item-file-name {
1003
- line-height: normal;
1004
- }
1005
- .gm-upload-file .el-upload-dragger {
1006
- padding: 0;
1007
- border: none;
1008
- width: 100%;
1009
- height: 100%;
1010
- display: flex;
998
+ .gm-number-interval-single[data-v-4e6f4d6f] {
999
+ border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
1000
+ box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
1001
+ background-color: var(--el-input-bg-color, var(--el-fill-color-blank));
1011
1002
  }
1012
- .gm-upload-file .el-upload--picture-card {
1013
- border: none;
1003
+ .gm-number-interval-single[data-v-4e6f4d6f] [data-v-4e6f4d6f] .el-input__wrapper {
1004
+ box-shadow: none;
1005
+ background: none;
1014
1006
  }
1015
1007
 
1016
- .gm-upload-file-disabled .el-upload--picture-card {
1017
- display: none;
1018
- }
1019
- .gm-upload-file-disabled .el-upload-list__item-status-label {
1008
+ .gm-number-interval-close[data-v-4e6f4d6f] {
1020
1009
  display: none;
1021
- }
1022
- .gm-upload-preview-dialog[data-v-8077ce51] [data-v-8077ce51] .el-dialog__body {
1023
- padding: 0;
1024
- }
1025
-
1026
- .gm-upload-file-picture-card[data-v-8077ce51] [data-v-8077ce51] .el-upload-list__item, .gm-upload-file-picture-card[data-v-8077ce51] [data-v-8077ce51] .el-upload--picture-card {
1027
- width: auto;
1028
- height: auto;
1010
+ color: var(--el-input-icon-color, var(--el-text-color-placeholder));
1029
1011
  }
1030
1012
 
1031
- .pagination-container[data-v-47d35e7b] {
1032
- background: #fff;
1033
- padding-top: 12px;
1034
- }
1035
- .pagination-container.hidden[data-v-47d35e7b] {
1036
- display: none;
1013
+ .gm-number-interval-single[data-v-4e6f4d6f]:hover .gm-number-interval-close[data-v-4e6f4d6f] {
1014
+ display: flex;
1037
1015
  }
1038
-
1039
1016
  @charset "UTF-8";
1040
- .table-custom-header-drawer .el-drawer__header {
1017
+ .custom-operate-drawer .el-drawer__header {
1041
1018
  padding: 10px 15px;
1042
1019
  margin: 0;
1043
1020
  border-bottom: 1px solid #ebeef5;
1044
1021
  }
1045
- .table-custom-header-drawer .el-drawer__title {
1022
+ .custom-operate-drawer .el-drawer__title {
1046
1023
  font-size: 14px;
1047
1024
  color: #333;
1048
1025
  }
1049
- .table-custom-header-drawer .el-drawer__body {
1026
+ .custom-operate-drawer .el-drawer__body {
1050
1027
  padding: 15px;
1051
1028
  }
1052
- .table-custom-header-drawer .el-drawer__footer {
1029
+ .custom-operate-drawer .el-drawer__footer {
1053
1030
  padding: 10px 15px;
1054
1031
  border-top: 1px solid #ebeef5;
1055
1032
  }
1056
- .table-custom-header-drawer .el-checkbox {
1033
+ .custom-operate-drawer .el-checkbox {
1057
1034
  display: flex;
1058
1035
  align-items: center;
1059
1036
  }
1060
- .table-custom-header-drawer .el-input__inner {
1037
+ .custom-operate-drawer .el-input__inner {
1061
1038
  text-align: center;
1062
1039
  }
1063
- .table-custom-header-drawer .el-input__suffix {
1040
+ .custom-operate-drawer .el-input__suffix {
1064
1041
  position: absolute;
1065
1042
  right: 10px;
1066
1043
  }
1067
- .table-custom-header-drawer .custom-content li {
1044
+ .custom-operate-drawer .custom-content li {
1068
1045
  display: flex;
1069
1046
  align-items: center;
1070
1047
  justify-content: center;
1071
1048
  height: 44px;
1072
1049
  }
1073
- .table-custom-header-drawer .custom-group {
1050
+ .custom-operate-drawer .custom-group {
1074
1051
  max-height: calc(100vh - 226px);
1075
1052
  overflow-y: auto;
1076
1053
  }
1077
- .table-custom-header-drawer .custom-group::-webkit-scrollbar {
1054
+ .custom-operate-drawer .custom-group::-webkit-scrollbar {
1078
1055
  /*滚动条整体样式*/
1079
1056
  width: 4px;
1080
1057
  /*高宽分别对应横竖滚动条的尺寸*/
1081
1058
  height: 1px;
1082
1059
  }
1083
- .table-custom-header-drawer .custom-group::-webkit-scrollbar-thumb {
1060
+ .custom-operate-drawer .custom-group::-webkit-scrollbar-thumb {
1084
1061
  /*滚动条里面小方块*/
1085
1062
  border-radius: 10px;
1086
1063
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
1087
1064
  background: #999;
1088
1065
  }
1089
- .table-custom-header-drawer .custom-group::-webkit-scrollbar-track {
1066
+ .custom-operate-drawer .custom-group::-webkit-scrollbar-track {
1090
1067
  /*滚动条里面轨道*/
1091
1068
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
1092
1069
  border-radius: 10px;
1093
1070
  background: #eee;
1094
1071
  }
1072
+ [data-v-98c2e804] .gmTableNoBorder .el-table__body .el-table__cell {
1073
+ border-right: none;
1074
+ }
1075
+
1076
+ [data-v-98c2e804] .gmTableNoBorder .el-table__inner-wrapper:before {
1077
+ height: 0;
1078
+ }
1079
+
1080
+ [data-v-98c2e804] .gmTableNoBorder.el-table--border .el-table__inner-wrapper:after {
1081
+ height: 0;
1082
+ }
1083
+
1084
+ [data-v-98c2e804] .gmTableNoBorder.el-table--border:after {
1085
+ height: 0;
1086
+ }
1087
+
1088
+ [data-v-98c2e804] .gmTableNoBorder.el-table--border:before {
1089
+ height: 0;
1090
+ }
1091
+
1092
+ [data-v-98c2e804] .gmTableNoBorder .el-table__border-left-patch {
1093
+ height: 0;
1094
+ }
1095
1095
  @charset "UTF-8";
1096
- .custom-operate-drawer .el-drawer__header {
1096
+ .table-custom-header-drawer .el-drawer__header {
1097
1097
  padding: 10px 15px;
1098
1098
  margin: 0;
1099
1099
  border-bottom: 1px solid #ebeef5;
1100
1100
  }
1101
- .custom-operate-drawer .el-drawer__title {
1101
+ .table-custom-header-drawer .el-drawer__title {
1102
1102
  font-size: 14px;
1103
1103
  color: #333;
1104
1104
  }
1105
- .custom-operate-drawer .el-drawer__body {
1105
+ .table-custom-header-drawer .el-drawer__body {
1106
1106
  padding: 15px;
1107
1107
  }
1108
- .custom-operate-drawer .el-drawer__footer {
1108
+ .table-custom-header-drawer .el-drawer__footer {
1109
1109
  padding: 10px 15px;
1110
1110
  border-top: 1px solid #ebeef5;
1111
1111
  }
1112
- .custom-operate-drawer .el-checkbox {
1112
+ .table-custom-header-drawer .el-checkbox {
1113
1113
  display: flex;
1114
1114
  align-items: center;
1115
1115
  }
1116
- .custom-operate-drawer .el-input__inner {
1116
+ .table-custom-header-drawer .el-input__inner {
1117
1117
  text-align: center;
1118
1118
  }
1119
- .custom-operate-drawer .el-input__suffix {
1119
+ .table-custom-header-drawer .el-input__suffix {
1120
1120
  position: absolute;
1121
1121
  right: 10px;
1122
1122
  }
1123
- .custom-operate-drawer .custom-content li {
1123
+ .table-custom-header-drawer .custom-content li {
1124
1124
  display: flex;
1125
1125
  align-items: center;
1126
1126
  justify-content: center;
1127
1127
  height: 44px;
1128
1128
  }
1129
- .custom-operate-drawer .custom-group {
1129
+ .table-custom-header-drawer .custom-group {
1130
1130
  max-height: calc(100vh - 226px);
1131
1131
  overflow-y: auto;
1132
1132
  }
1133
- .custom-operate-drawer .custom-group::-webkit-scrollbar {
1133
+ .table-custom-header-drawer .custom-group::-webkit-scrollbar {
1134
1134
  /*滚动条整体样式*/
1135
1135
  width: 4px;
1136
1136
  /*高宽分别对应横竖滚动条的尺寸*/
1137
1137
  height: 1px;
1138
1138
  }
1139
- .custom-operate-drawer .custom-group::-webkit-scrollbar-thumb {
1139
+ .table-custom-header-drawer .custom-group::-webkit-scrollbar-thumb {
1140
1140
  /*滚动条里面小方块*/
1141
1141
  border-radius: 10px;
1142
1142
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
1143
1143
  background: #999;
1144
1144
  }
1145
- .custom-operate-drawer .custom-group::-webkit-scrollbar-track {
1145
+ .table-custom-header-drawer .custom-group::-webkit-scrollbar-track {
1146
1146
  /*滚动条里面轨道*/
1147
1147
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
1148
1148
  border-radius: 10px;
@@ -15,6 +15,7 @@ declare const _default: import("vue").DefineComponent<{
15
15
  };
16
16
  }, {
17
17
  init: (data?: EditorData | undefined) => import("element-plus").MessageHandler | undefined;
18
+ simulate: (data: any) => void;
18
19
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
20
  "update:loaded": (loaded: boolean) => void;
20
21
  close: () => void;
@@ -2,8 +2,8 @@ import { defineComponent, mergeModels, computed, ref, useModel, onMounted, onBef
2
2
  import { useGlobalConfig } from '../../../../hooks/base/useGlobalConfig/index.mjs';
3
3
  import { useElementRemainingHeight } from '../../../../hooks/base/useElementRemainingHeight/index.mjs';
4
4
  import { GmMessage } from '../../plugins/message/index.mjs';
5
- import { ruleEditorProps, ruleEditorEmits } from './ruleEditor.mjs';
6
5
  import { isString } from '../../../../utils/src/is.mjs';
6
+ import { ruleEditorProps, ruleEditorEmits } from './ruleEditor.mjs';
7
7
 
8
8
  const _hoisted_1 = ["src"];
9
9
  const ruleEditorEnvKey = "VITE_GIIME_RULE_EDITOR_URL";
@@ -43,7 +43,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
43
43
  const init = (data) => {
44
44
  if (!loaded.value)
45
45
  return GmMessage.warning("\u89C4\u5219\u7F16\u8F91\u5668\u5C1A\u672A\u51C6\u5907\u5C31\u7EEA\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\uFF01");
46
- IframeRef.value.contentWindow.postMessage(
46
+ IframeRef.value?.contentWindow.postMessage(
47
47
  {
48
48
  action: "details",
49
49
  data: JSON.stringify(data)
@@ -51,24 +51,30 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
51
51
  "*"
52
52
  );
53
53
  };
54
+ const simulate = (data) => {
55
+ IframeRef.value?.contentWindow.postMessage({
56
+ action: "simulate",
57
+ data: JSON.stringify(data)
58
+ });
59
+ };
54
60
  const addEventListener = (e) => {
55
61
  const { type, action, data } = e.data;
56
62
  const result = JSON.parse(data ?? "{}");
57
- const { graph, simulate } = result;
63
+ const { graph, simulate: simulate2 } = result;
58
64
  if (type === "rule-editor") {
59
65
  switch (action) {
60
- case "close":
61
- emit("close");
62
- break;
63
66
  case "loaded":
64
67
  loaded.value = true;
65
68
  emit("loaded");
66
69
  break;
70
+ case "close":
71
+ emit("close");
72
+ break;
67
73
  case "submit":
68
- emit("submit", { graph, simulate });
74
+ emit("submit", { graph, simulate: simulate2 });
69
75
  break;
70
76
  case "run":
71
- emit("run", { graph, simulate });
77
+ emit("run", { graph, simulate: simulate2 });
72
78
  break;
73
79
  }
74
80
  }
@@ -86,7 +92,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
86
92
  minHeight: 300
87
93
  });
88
94
  __expose({
89
- init
95
+ init,
96
+ simulate
90
97
  });
91
98
  return (_ctx, _cache) => {
92
99
  return openBlock(), createElementBlock(
@@ -1 +1 @@
1
- {"version":3,"file":"RuleEditor.vue2.mjs","sources":["../../../../../../../packages/components/src/composite/ruleEditor/RuleEditor.vue"],"sourcesContent":["<script lang=\"ts\">\nconst ruleEditorEnvKey = 'VITE_GIIME_RULE_EDITOR_URL'\n</script>\n<template>\n <div ref=\"GmRuleEditorRef\" :style=\"{ height: height ? height + 'px' : editorMaxHeight + 'px' }\">\n <iframe ref=\"IframeRef\" width=\"100%\" height=\"100%\" :src=\"URL\" frameborder=\"0\" />\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, onMounted, ref } from 'vue';\nimport { useGlobalConfig } from '@giime/hooks/base/useGlobalConfig';\nimport { useElementRemainingHeight } from '@giime/hooks/base/useElementRemainingHeight';\nimport { GmMessage } from '@giime/components/src/plugins/message';\nimport { type EditorData, ruleEditorEmits, ruleEditorProps } from './ruleEditor';\nimport { isString } from '@giime/utils/src/is';\n\ndefineOptions({\n name: 'GmRuleEditor',\n});\n\nconst props = defineProps(ruleEditorProps);\nconst emit = defineEmits(ruleEditorEmits);\nconst importMetaEnv = useGlobalConfig('env');\n\n\nconst viteModes: Record<string, string> = {\n dev: 'https://manage-test.giikin.cn/fe/rules-editor',\n develop: 'https://manage-test.giikin.cn/fe/rules-editor',\n development: 'https://manage-test.giikin.cn/fe/rules-editor',\n test: 'https://manage-test.giikin.cn/fe/rules-editor',\n release: 'https://manage-test.giikin.cn/fe/rules-editor',\n production: 'https://manage.giikin.com/fe/rules-editor',\n};\n\nconst URL = computed(() => {\n let ruleEditorUrl = ``;\n if (isString(importMetaEnv.value[ruleEditorEnvKey])) {\n ruleEditorUrl = importMetaEnv.value[ruleEditorEnvKey];\n } else {\n ruleEditorUrl = viteModes[importMetaEnv.value.MODE] ?? 'https://manage.giikin.com/fe/rules-editor';\n }\n\n return `${ruleEditorUrl}?showClose=${props.showClose}`;\n});\nconst IframeRef = ref(); // 编辑器iframe\n// 编辑器是否加载完成\nconst loaded = defineModel<boolean>('loaded', { default: false });\n\nconst init = (data?: EditorData) => {\n if (!loaded.value) return GmMessage.warning('规则编辑器尚未准备就绪,请稍后再试!');\n IframeRef.value.contentWindow.postMessage(\n {\n action: 'details',\n data: JSON.stringify(data),\n },\n '*',\n );\n};\n\nconst addEventListener = (e: any) => {\n const { type, action, data } = e.data;\n const result = JSON.parse(data ?? '{}');\n const { graph, simulate } = result;\n\n if (type === 'rule-editor') {\n switch (action) {\n case 'close':\n emit('close');\n break;\n case 'loaded':\n loaded.value = true;\n emit('loaded');\n break;\n case 'submit':\n emit('submit', { graph, simulate });\n break;\n case 'run':\n emit('run', { graph, simulate });\n break;\n }\n }\n};\n\nonMounted(() => {\n window.addEventListener('message', addEventListener);\n});\n\nonBeforeUnmount(() => {\n window.removeEventListener('message', addEventListener);\n});\n\nconst GmRuleEditorRef = ref<HTMLDivElement>();\nconst { height: editorMaxHeight } = useElementRemainingHeight(GmRuleEditorRef, {\n bottomOffset: props.heightOffset, // 高度 - 顶部距离 - 分页器\n minHeight: 300,\n});\n\ndefineExpose({\n init,\n});\n</script>\n"],"names":["_useModel"],"mappings":";;;;;;;;AACA,MAAM,gBAAmB,GAAA,4BAAA,CAAA;;;;;;;;;;;;AAoBzB,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AACb,IAAM,MAAA,aAAA,GAAgB,gBAAgB,KAAK,CAAA,CAAA;AAG3C,IAAA,MAAM,SAAoC,GAAA;AAAA,MACxC,GAAK,EAAA,+CAAA;AAAA,MACL,OAAS,EAAA,+CAAA;AAAA,MACT,WAAa,EAAA,+CAAA;AAAA,MACb,IAAM,EAAA,+CAAA;AAAA,MACN,OAAS,EAAA,+CAAA;AAAA,MACT,UAAY,EAAA,2CAAA;AAAA,KACd,CAAA;AAEA,IAAM,MAAA,GAAA,GAAM,SAAS,MAAM;AACzB,MAAA,IAAI,aAAgB,GAAA,CAAA,CAAA,CAAA;AACpB,MAAA,IAAI,QAAS,CAAA,aAAA,CAAc,KAAM,CAAA,gBAAgB,CAAC,CAAG,EAAA;AACnD,QAAgB,aAAA,GAAA,aAAA,CAAc,MAAM,gBAAgB,CAAA,CAAA;AAAA,OAC/C,MAAA;AACL,QAAA,aAAA,GAAgB,SAAU,CAAA,aAAA,CAAc,KAAM,CAAA,IAAI,CAAK,IAAA,2CAAA,CAAA;AAAA,OACzD;AAEA,MAAA,OAAO,CAAG,EAAA,aAAa,CAAc,WAAA,EAAA,KAAA,CAAM,SAAS,CAAA,CAAA,CAAA;AAAA,KACrD,CAAA,CAAA;AACD,IAAA,MAAM,YAAY,GAAI,EAAA,CAAA;AAEtB,IAAM,MAAA,MAAA,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A,OACF;AAAA,KACF,CAAA;AAEA,IAAA,SAAA,CAAU,MAAM;AACd,MAAO,MAAA,CAAA,gBAAA,CAAiB,WAAW,gBAAgB,CAAA,CAAA;AAAA,KACpD,CAAA,CAAA;AAED,IAAA,eAAA,CAAgB,MAAM;AACpB,MAAO,MAAA,CAAA,mBAAA,CAAoB,WAAW,gBAAgB,CAAA,CAAA;AAAA,KACvD,CAAA,CAAA;AAED,IAAA,MAAM,kBAAkB,GAAoB,EAAA,CAAA;AAC5C,IAAA,MAAM,EAAE,MAAA,EAAQ,eAAgB,EAAA,GAAI,0BAA0B,eAAiB,EAAA;AAAA,MAC7E,cAAc,KAAM,CAAA,YAAA;AAAA;AAAA,MACpB,SAAW,EAAA,GAAA;AAAA,KACZ,CAAA,CAAA;AAED,IAAa,QAAA,CAAA;AAAA,MACX,IAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"RuleEditor.vue2.mjs","sources":["../../../../../../../packages/components/src/composite/ruleEditor/RuleEditor.vue"],"sourcesContent":["<script lang=\"ts\">\nconst ruleEditorEnvKey = 'VITE_GIIME_RULE_EDITOR_URL'\n</script>\n<template>\n <div ref=\"GmRuleEditorRef\" :style=\"{ height: height ? height + 'px' : editorMaxHeight + 'px' }\">\n <iframe ref=\"IframeRef\" width=\"100%\" height=\"100%\" :src=\"URL\" frameborder=\"0\" />\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, onMounted, ref } from 'vue';\nimport { useGlobalConfig } from '@giime/hooks/base/useGlobalConfig';\nimport { useElementRemainingHeight } from '@giime/hooks/base/useElementRemainingHeight';\nimport { GmMessage } from '@giime/components/src/plugins/message';\nimport { isString } from '@giime/utils/src/is';\nimport { type EditorData, ruleEditorEmits, ruleEditorProps } from './ruleEditor';\n\ndefineOptions({\n name: 'GmRuleEditor',\n});\n\nconst props = defineProps(ruleEditorProps);\nconst emit = defineEmits(ruleEditorEmits);\nconst importMetaEnv = useGlobalConfig('env');\n\n\nconst viteModes: Record<string, string> = {\n dev: 'https://manage-test.giikin.cn/fe/rules-editor',\n develop: 'https://manage-test.giikin.cn/fe/rules-editor',\n development: 'https://manage-test.giikin.cn/fe/rules-editor',\n test: 'https://manage-test.giikin.cn/fe/rules-editor',\n release: 'https://manage-test.giikin.cn/fe/rules-editor',\n production: 'https://manage.giikin.com/fe/rules-editor',\n};\n\nconst URL = computed(() => {\n let ruleEditorUrl = ``;\n if (isString(importMetaEnv.value[ruleEditorEnvKey])) {\n ruleEditorUrl = importMetaEnv.value[ruleEditorEnvKey];\n } else {\n ruleEditorUrl = viteModes[importMetaEnv.value.MODE] ?? 'https://manage.giikin.com/fe/rules-editor';\n }\n\n return `${ruleEditorUrl}?showClose=${props.showClose}`;\n});\nconst IframeRef = ref(); // 编辑器iframe\n// 编辑器是否加载完成\nconst loaded = defineModel<boolean>('loaded', { default: false });\n\n/** 初始化编辑器 */\nconst init = (data?: EditorData) => {\n if (!loaded.value) return GmMessage.warning('规则编辑器尚未准备就绪,请稍后再试!');\n IframeRef.value?.contentWindow.postMessage(\n {\n action: 'details',\n data: JSON.stringify(data),\n },\n '*',\n );\n};\n\n/** 发送模拟运行结果 */\nconst simulate = (data: any) => {\n IframeRef.value?.contentWindow.postMessage({\n action: 'simulate',\n data: JSON.stringify(data),\n });\n};\n\nconst addEventListener = (e: any) => {\n const { type, action, data } = e.data;\n const result = JSON.parse(data ?? '{}');\n const { graph, simulate } = result;\n\n if (type === 'rule-editor') {\n switch (action) {\n case 'loaded': // 编辑器加载完成\n loaded.value = true;\n emit('loaded');\n break;\n case 'close': // 关闭编辑器\n emit('close');\n break;\n case 'submit': // 提交\n emit('submit', { graph, simulate });\n break;\n case 'run': // 运行模拟器\n emit('run', { graph, simulate });\n break;\n }\n }\n};\n\nonMounted(() => {\n window.addEventListener('message', addEventListener);\n});\n\nonBeforeUnmount(() => {\n window.removeEventListener('message', addEventListener);\n});\n\nconst GmRuleEditorRef = ref<HTMLDivElement>();\nconst { height: editorMaxHeight } = useElementRemainingHeight(GmRuleEditorRef, {\n bottomOffset: props.heightOffset, // 高度 - 顶部距离 - 分页器\n minHeight: 300,\n});\n\ndefineExpose({\n init,\n simulate,\n});\n</script>\n"],"names":["_useModel","simulate"],"mappings":";;;;;;;;AACA,MAAM,gBAAmB,GAAA,4BAAA,CAAA;;;;;;;;;;;;AAoBzB,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AACb,IAAM,MAAA,aAAA,GAAgB,gBAAgB,KAAK,CAAA,CAAA;AAG3C,IAAA,MAAM,SAAoC,GAAA;AAAA,MACxC,GAAK,EAAA,+CAAA;AAAA,MACL,OAAS,EAAA,+CAAA;AAAA,MACT,WAAa,EAAA,+CAAA;AAAA,MACb,IAAM,EAAA,+CAAA;AAAA,MACN,OAAS,EAAA,+CAAA;AAAA,MACT,UAAY,EAAA,2CAAA;AAAA,KACd,CAAA;AAEA,IAAM,MAAA,GAAA,GAAM,SAAS,MAAM;AACzB,MAAA,IAAI,aAAgB,GAAA,CAAA,CAAA,CAAA;AACpB,MAAA,IAAI,QAAS,CAAA,aAAA,CAAc,KAAM,CAAA,gBAAgB,CAAC,CAAG,EAAA;AACnD,QAAgB,aAAA,GAAA,aAAA,CAAc,MAAM,gBAAgB,CAAA,CAAA;AAAA,OAC/C,MAAA;AACL,QAAA,aAAA,GAAgB,SAAU,CAAA,aAAA,CAAc,KAAM,CAAA,IAAI,CAAK,IAAA,2CAAA,CAAA;AAAA,OACzD;AAEA,MAAA,OAAO,CAAG,EAAA,aAAa,CAAc,WAAA,EAAA,KAAA,CAAM,SAAS,CAAA,CAAA,CAAA;AAAA,KACrD,CAAA,CAAA;AACD,IAAA,MAAM,YAAY,GAAI,EAAA,CAAA;AAEtB,IAAM,MAAA,MAAA,GAASA,QAAqB,CAAA,OAAA,EAAA,QAA4B,CAAA,CAAA;AAGhE,IAAM,MAA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,EAAA,QAAA,EAAAA,WAAU,CAAA,CAAA;AAClC,YAAA,MAAA;AAAA,UACF,KAAK,KAAA;AACH,YAAA,IAAA,CAAK,KAAO,EAAA,EAAE,KAAO,EAAA,QAAA,EAAAA,WAAU,CAAA,CAAA;AAC/B,YAAA,MAAA;AAAA,SACJ;AAAA,OACF;AAAA,KACF,CAAA;AAEA,IAAA,SAAA,CAAU,MAAM;AACd,MAAO,MAAA,CAAA,gBAAA,CAAiB,WAAW,gBAAgB,CAAA,CAAA;AAAA,KACpD,CAAA,CAAA;AAED,IAAA,eAAA,CAAgB,MAAM;AACpB,MAAO,MAAA,CAAA,mBAAA,CAAoB,WAAW,gBAAgB,CAAA,CAAA;AAAA,KACvD,CAAA,CAAA;AAED,IAAA,MAAM,kBAAkB,GAAoB,EAAA,CAAA;AAC5C,IAAA,MAAM,EAAE,MAAA,EAAQ,eAAgB,EAAA,GAAI,0BAA0B,eAAiB,EAAA;AAAA,MAC7E,cAAc,KAAM,CAAA,YAAA;AAAA;AAAA,MACpB,SAAW,EAAA,GAAA;AAAA,KACZ,CAAA,CAAA;AAED,IAAa,QAAA,CAAA;AAAA,MACX,IAAA;AAAA,MACA,QAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -15,6 +15,7 @@ export declare const GmRuleEditor: import("../../../../utils").SFCWithInstall<im
15
15
  };
16
16
  }, {
17
17
  init: (data?: import("./ruleEditor").EditorData | undefined) => import("element-plus").MessageHandler | undefined;
18
+ simulate: (data: any) => void;
18
19
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
20
  "update:loaded": (loaded: boolean) => void;
20
21
  close: () => void;
@@ -1 +1 @@
1
- export declare const version = "0.6.31";
1
+ export declare const version = "0.6.32";
@@ -1,4 +1,4 @@
1
- const version = "0.6.30";
1
+ const version = "0.6.32";
2
2
 
3
3
  export { version };
4
4
  //# sourceMappingURL=version.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.mjs","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.6.30';\n"],"names":[],"mappings":"AAAO,MAAM,OAAU,GAAA;;;;"}
1
+ {"version":3,"file":"version.mjs","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.6.32';\n"],"names":[],"mappings":"AAAO,MAAM,OAAU,GAAA;;;;"}
package/es/index.css CHANGED
@@ -873,11 +873,56 @@ video {
873
873
  .gm-group:hover .group-hover\:gm-block {
874
874
  display: block;
875
875
  }
876
+ .gm-flex-center[data-v-c17deec9] {
877
+ align-items: center;
878
+ }
876
879
 
877
- .gm-range-number .el-form-item[data-v-1ae16d96] {
880
+ .gm-flex-justify-between[data-v-c17deec9] {
881
+ justify-content: space-between;
882
+ }
883
+ .gm-upload-preview-dialog[data-v-8077ce51] [data-v-8077ce51] .el-dialog__body {
884
+ padding: 0;
885
+ }
886
+
887
+ .gm-upload-file-picture-card[data-v-8077ce51] [data-v-8077ce51] .el-upload-list__item, .gm-upload-file-picture-card[data-v-8077ce51] [data-v-8077ce51] .el-upload--picture-card {
888
+ width: auto;
889
+ height: auto;
890
+ }
891
+ .gm-upload-file {
892
+ line-height: normal;
893
+ }
894
+ .gm-upload-file .el-checkbox {
895
+ position: absolute;
896
+ left: 10px;
897
+ top: 0;
898
+ z-index: 9;
899
+ }
900
+ .gm-upload-file .el-upload-list--picture-card {
901
+ gap: 10px;
902
+ }
903
+ .gm-upload-file .el-upload-list__item {
878
904
  margin: 0;
879
905
  }
906
+ .gm-upload-file .el-upload-list__item-file-name {
907
+ line-height: normal;
908
+ }
909
+ .gm-upload-file .el-upload-dragger {
910
+ padding: 0;
911
+ border: none;
912
+ width: 100%;
913
+ height: 100%;
914
+ display: flex;
915
+ }
916
+ .gm-upload-file .el-upload--picture-card {
917
+ border: none;
918
+ }
880
919
 
920
+ .gm-upload-file-disabled .el-upload--picture-card {
921
+ display: none;
922
+ }
923
+ .gm-upload-file-disabled .el-upload-list__item-status-label {
924
+ display: none;
925
+ }
881
926
  .circular[data-v-d7b04fae] {
882
927
  animation: loading-rotate-d7b04fae 2s linear infinite;
883
928
  }
@@ -909,30 +954,14 @@ video {
909
954
  stroke-dashoffset: -120px;
910
955
  }
911
956
  }
912
- .gm-number-interval-single[data-v-4e6f4d6f] {
913
- border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
914
- box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
915
- background-color: var(--el-input-bg-color, var(--el-fill-color-blank));
916
- }
917
- .gm-number-interval-single[data-v-4e6f4d6f] [data-v-4e6f4d6f] .el-input__wrapper {
918
- box-shadow: none;
919
- background: none;
920
- }
921
-
922
- .gm-number-interval-close[data-v-4e6f4d6f] {
923
- display: none;
924
- color: var(--el-input-icon-color, var(--el-text-color-placeholder));
925
- }
926
957
 
927
- .gm-number-interval-single[data-v-4e6f4d6f]:hover .gm-number-interval-close[data-v-4e6f4d6f] {
928
- display: flex;
929
- }
930
- .gm-flex-center[data-v-c17deec9] {
931
- align-items: center;
958
+ .gm-range-number .el-form-item[data-v-1ae16d96] {
959
+ margin: 0;
932
960
  }
933
961
 
934
- .gm-flex-justify-between[data-v-c17deec9] {
935
- justify-content: space-between;
962
+ [data-v-488ca110] .gmSearchForm .el-form-item {
963
+ margin-right: 0;
964
+ margin-bottom: 4px;
936
965
  }
937
966
  [data-v-2c351ff8] .gmTableNoBorder .el-table__body .el-table__cell {
938
967
  border-right: none;
@@ -957,192 +986,163 @@ video {
957
986
  [data-v-2c351ff8] .gmTableNoBorder .el-table__border-left-patch {
958
987
  height: 0;
959
988
  }
960
- [data-v-488ca110] .gmSearchForm .el-form-item {
961
- margin-right: 0;
962
- margin-bottom: 4px;
963
- }
964
- [data-v-98c2e804] .gmTableNoBorder .el-table__body .el-table__cell {
965
- border-right: none;
966
- }
967
-
968
- [data-v-98c2e804] .gmTableNoBorder .el-table__inner-wrapper:before {
969
- height: 0;
970
- }
971
989
 
972
- [data-v-98c2e804] .gmTableNoBorder.el-table--border .el-table__inner-wrapper:after {
973
- height: 0;
974
- }
975
-
976
- [data-v-98c2e804] .gmTableNoBorder.el-table--border:after {
977
- height: 0;
990
+ .pagination-container[data-v-47d35e7b] {
991
+ background: #fff;
992
+ padding-top: 12px;
978
993
  }
979
-
980
- [data-v-98c2e804] .gmTableNoBorder.el-table--border:before {
981
- height: 0;
994
+ .pagination-container.hidden[data-v-47d35e7b] {
995
+ display: none;
982
996
  }
983
997
 
984
- [data-v-98c2e804] .gmTableNoBorder .el-table__border-left-patch {
985
- height: 0;
986
- }
987
- .gm-upload-file {
988
- line-height: normal;
989
- }
990
- .gm-upload-file .el-checkbox {
991
- position: absolute;
992
- left: 10px;
993
- top: 0;
994
- z-index: 9;
995
- }
996
- .gm-upload-file .el-upload-list--picture-card {
997
- gap: 10px;
998
- }
999
- .gm-upload-file .el-upload-list__item {
1000
- margin: 0;
1001
- }
1002
- .gm-upload-file .el-upload-list__item-file-name {
1003
- line-height: normal;
1004
- }
1005
- .gm-upload-file .el-upload-dragger {
1006
- padding: 0;
1007
- border: none;
1008
- width: 100%;
1009
- height: 100%;
1010
- display: flex;
998
+ .gm-number-interval-single[data-v-4e6f4d6f] {
999
+ border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
1000
+ box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
1001
+ background-color: var(--el-input-bg-color, var(--el-fill-color-blank));
1011
1002
  }
1012
- .gm-upload-file .el-upload--picture-card {
1013
- border: none;
1003
+ .gm-number-interval-single[data-v-4e6f4d6f] [data-v-4e6f4d6f] .el-input__wrapper {
1004
+ box-shadow: none;
1005
+ background: none;
1014
1006
  }
1015
1007
 
1016
- .gm-upload-file-disabled .el-upload--picture-card {
1017
- display: none;
1018
- }
1019
- .gm-upload-file-disabled .el-upload-list__item-status-label {
1008
+ .gm-number-interval-close[data-v-4e6f4d6f] {
1020
1009
  display: none;
1021
- }
1022
- .gm-upload-preview-dialog[data-v-8077ce51] [data-v-8077ce51] .el-dialog__body {
1023
- padding: 0;
1024
- }
1025
-
1026
- .gm-upload-file-picture-card[data-v-8077ce51] [data-v-8077ce51] .el-upload-list__item, .gm-upload-file-picture-card[data-v-8077ce51] [data-v-8077ce51] .el-upload--picture-card {
1027
- width: auto;
1028
- height: auto;
1010
+ color: var(--el-input-icon-color, var(--el-text-color-placeholder));
1029
1011
  }
1030
1012
 
1031
- .pagination-container[data-v-47d35e7b] {
1032
- background: #fff;
1033
- padding-top: 12px;
1034
- }
1035
- .pagination-container.hidden[data-v-47d35e7b] {
1036
- display: none;
1013
+ .gm-number-interval-single[data-v-4e6f4d6f]:hover .gm-number-interval-close[data-v-4e6f4d6f] {
1014
+ display: flex;
1037
1015
  }
1038
-
1039
1016
  @charset "UTF-8";
1040
- .table-custom-header-drawer .el-drawer__header {
1017
+ .custom-operate-drawer .el-drawer__header {
1041
1018
  padding: 10px 15px;
1042
1019
  margin: 0;
1043
1020
  border-bottom: 1px solid #ebeef5;
1044
1021
  }
1045
- .table-custom-header-drawer .el-drawer__title {
1022
+ .custom-operate-drawer .el-drawer__title {
1046
1023
  font-size: 14px;
1047
1024
  color: #333;
1048
1025
  }
1049
- .table-custom-header-drawer .el-drawer__body {
1026
+ .custom-operate-drawer .el-drawer__body {
1050
1027
  padding: 15px;
1051
1028
  }
1052
- .table-custom-header-drawer .el-drawer__footer {
1029
+ .custom-operate-drawer .el-drawer__footer {
1053
1030
  padding: 10px 15px;
1054
1031
  border-top: 1px solid #ebeef5;
1055
1032
  }
1056
- .table-custom-header-drawer .el-checkbox {
1033
+ .custom-operate-drawer .el-checkbox {
1057
1034
  display: flex;
1058
1035
  align-items: center;
1059
1036
  }
1060
- .table-custom-header-drawer .el-input__inner {
1037
+ .custom-operate-drawer .el-input__inner {
1061
1038
  text-align: center;
1062
1039
  }
1063
- .table-custom-header-drawer .el-input__suffix {
1040
+ .custom-operate-drawer .el-input__suffix {
1064
1041
  position: absolute;
1065
1042
  right: 10px;
1066
1043
  }
1067
- .table-custom-header-drawer .custom-content li {
1044
+ .custom-operate-drawer .custom-content li {
1068
1045
  display: flex;
1069
1046
  align-items: center;
1070
1047
  justify-content: center;
1071
1048
  height: 44px;
1072
1049
  }
1073
- .table-custom-header-drawer .custom-group {
1050
+ .custom-operate-drawer .custom-group {
1074
1051
  max-height: calc(100vh - 226px);
1075
1052
  overflow-y: auto;
1076
1053
  }
1077
- .table-custom-header-drawer .custom-group::-webkit-scrollbar {
1054
+ .custom-operate-drawer .custom-group::-webkit-scrollbar {
1078
1055
  /*滚动条整体样式*/
1079
1056
  width: 4px;
1080
1057
  /*高宽分别对应横竖滚动条的尺寸*/
1081
1058
  height: 1px;
1082
1059
  }
1083
- .table-custom-header-drawer .custom-group::-webkit-scrollbar-thumb {
1060
+ .custom-operate-drawer .custom-group::-webkit-scrollbar-thumb {
1084
1061
  /*滚动条里面小方块*/
1085
1062
  border-radius: 10px;
1086
1063
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
1087
1064
  background: #999;
1088
1065
  }
1089
- .table-custom-header-drawer .custom-group::-webkit-scrollbar-track {
1066
+ .custom-operate-drawer .custom-group::-webkit-scrollbar-track {
1090
1067
  /*滚动条里面轨道*/
1091
1068
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
1092
1069
  border-radius: 10px;
1093
1070
  background: #eee;
1094
1071
  }
1072
+ [data-v-98c2e804] .gmTableNoBorder .el-table__body .el-table__cell {
1073
+ border-right: none;
1074
+ }
1075
+
1076
+ [data-v-98c2e804] .gmTableNoBorder .el-table__inner-wrapper:before {
1077
+ height: 0;
1078
+ }
1079
+
1080
+ [data-v-98c2e804] .gmTableNoBorder.el-table--border .el-table__inner-wrapper:after {
1081
+ height: 0;
1082
+ }
1083
+
1084
+ [data-v-98c2e804] .gmTableNoBorder.el-table--border:after {
1085
+ height: 0;
1086
+ }
1087
+
1088
+ [data-v-98c2e804] .gmTableNoBorder.el-table--border:before {
1089
+ height: 0;
1090
+ }
1091
+
1092
+ [data-v-98c2e804] .gmTableNoBorder .el-table__border-left-patch {
1093
+ height: 0;
1094
+ }
1095
1095
  @charset "UTF-8";
1096
- .custom-operate-drawer .el-drawer__header {
1096
+ .table-custom-header-drawer .el-drawer__header {
1097
1097
  padding: 10px 15px;
1098
1098
  margin: 0;
1099
1099
  border-bottom: 1px solid #ebeef5;
1100
1100
  }
1101
- .custom-operate-drawer .el-drawer__title {
1101
+ .table-custom-header-drawer .el-drawer__title {
1102
1102
  font-size: 14px;
1103
1103
  color: #333;
1104
1104
  }
1105
- .custom-operate-drawer .el-drawer__body {
1105
+ .table-custom-header-drawer .el-drawer__body {
1106
1106
  padding: 15px;
1107
1107
  }
1108
- .custom-operate-drawer .el-drawer__footer {
1108
+ .table-custom-header-drawer .el-drawer__footer {
1109
1109
  padding: 10px 15px;
1110
1110
  border-top: 1px solid #ebeef5;
1111
1111
  }
1112
- .custom-operate-drawer .el-checkbox {
1112
+ .table-custom-header-drawer .el-checkbox {
1113
1113
  display: flex;
1114
1114
  align-items: center;
1115
1115
  }
1116
- .custom-operate-drawer .el-input__inner {
1116
+ .table-custom-header-drawer .el-input__inner {
1117
1117
  text-align: center;
1118
1118
  }
1119
- .custom-operate-drawer .el-input__suffix {
1119
+ .table-custom-header-drawer .el-input__suffix {
1120
1120
  position: absolute;
1121
1121
  right: 10px;
1122
1122
  }
1123
- .custom-operate-drawer .custom-content li {
1123
+ .table-custom-header-drawer .custom-content li {
1124
1124
  display: flex;
1125
1125
  align-items: center;
1126
1126
  justify-content: center;
1127
1127
  height: 44px;
1128
1128
  }
1129
- .custom-operate-drawer .custom-group {
1129
+ .table-custom-header-drawer .custom-group {
1130
1130
  max-height: calc(100vh - 226px);
1131
1131
  overflow-y: auto;
1132
1132
  }
1133
- .custom-operate-drawer .custom-group::-webkit-scrollbar {
1133
+ .table-custom-header-drawer .custom-group::-webkit-scrollbar {
1134
1134
  /*滚动条整体样式*/
1135
1135
  width: 4px;
1136
1136
  /*高宽分别对应横竖滚动条的尺寸*/
1137
1137
  height: 1px;
1138
1138
  }
1139
- .custom-operate-drawer .custom-group::-webkit-scrollbar-thumb {
1139
+ .table-custom-header-drawer .custom-group::-webkit-scrollbar-thumb {
1140
1140
  /*滚动条里面小方块*/
1141
1141
  border-radius: 10px;
1142
1142
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
1143
1143
  background: #999;
1144
1144
  }
1145
- .custom-operate-drawer .custom-group::-webkit-scrollbar-track {
1145
+ .table-custom-header-drawer .custom-group::-webkit-scrollbar-track {
1146
1146
  /*滚动条里面轨道*/
1147
1147
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
1148
1148
  border-radius: 10px;
@@ -15,6 +15,7 @@ declare const _default: import("vue").DefineComponent<{
15
15
  };
16
16
  }, {
17
17
  init: (data?: EditorData | undefined) => import("element-plus").MessageHandler | undefined;
18
+ simulate: (data: any) => void;
18
19
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
20
  "update:loaded": (loaded: boolean) => void;
20
21
  close: () => void;
@@ -6,8 +6,8 @@ var vue = require('vue');
6
6
  var index = require('../../../../hooks/base/useGlobalConfig/index.js');
7
7
  var index$2 = require('../../../../hooks/base/useElementRemainingHeight/index.js');
8
8
  var index$1 = require('../../plugins/message/index.js');
9
- var ruleEditor = require('./ruleEditor.js');
10
9
  var is = require('../../../../utils/src/is.js');
10
+ var ruleEditor = require('./ruleEditor.js');
11
11
 
12
12
  const _hoisted_1 = ["src"];
13
13
  const ruleEditorEnvKey = "VITE_GIIME_RULE_EDITOR_URL";
@@ -47,7 +47,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
47
47
  const init = (data) => {
48
48
  if (!loaded.value)
49
49
  return index$1.GmMessage.warning("\u89C4\u5219\u7F16\u8F91\u5668\u5C1A\u672A\u51C6\u5907\u5C31\u7EEA\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\uFF01");
50
- IframeRef.value.contentWindow.postMessage(
50
+ IframeRef.value?.contentWindow.postMessage(
51
51
  {
52
52
  action: "details",
53
53
  data: JSON.stringify(data)
@@ -55,24 +55,30 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
55
55
  "*"
56
56
  );
57
57
  };
58
+ const simulate = (data) => {
59
+ IframeRef.value?.contentWindow.postMessage({
60
+ action: "simulate",
61
+ data: JSON.stringify(data)
62
+ });
63
+ };
58
64
  const addEventListener = (e) => {
59
65
  const { type, action, data } = e.data;
60
66
  const result = JSON.parse(data ?? "{}");
61
- const { graph, simulate } = result;
67
+ const { graph, simulate: simulate2 } = result;
62
68
  if (type === "rule-editor") {
63
69
  switch (action) {
64
- case "close":
65
- emit("close");
66
- break;
67
70
  case "loaded":
68
71
  loaded.value = true;
69
72
  emit("loaded");
70
73
  break;
74
+ case "close":
75
+ emit("close");
76
+ break;
71
77
  case "submit":
72
- emit("submit", { graph, simulate });
78
+ emit("submit", { graph, simulate: simulate2 });
73
79
  break;
74
80
  case "run":
75
- emit("run", { graph, simulate });
81
+ emit("run", { graph, simulate: simulate2 });
76
82
  break;
77
83
  }
78
84
  }
@@ -90,7 +96,8 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
90
96
  minHeight: 300
91
97
  });
92
98
  __expose({
93
- init
99
+ init,
100
+ simulate
94
101
  });
95
102
  return (_ctx, _cache) => {
96
103
  return vue.openBlock(), vue.createElementBlock(
@@ -1 +1 @@
1
- {"version":3,"file":"RuleEditor.vue2.js","sources":["../../../../../../../packages/components/src/composite/ruleEditor/RuleEditor.vue"],"sourcesContent":["<script lang=\"ts\">\nconst ruleEditorEnvKey = 'VITE_GIIME_RULE_EDITOR_URL'\n</script>\n<template>\n <div ref=\"GmRuleEditorRef\" :style=\"{ height: height ? height + 'px' : editorMaxHeight + 'px' }\">\n <iframe ref=\"IframeRef\" width=\"100%\" height=\"100%\" :src=\"URL\" frameborder=\"0\" />\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, onMounted, ref } from 'vue';\nimport { useGlobalConfig } from '@giime/hooks/base/useGlobalConfig';\nimport { useElementRemainingHeight } from '@giime/hooks/base/useElementRemainingHeight';\nimport { GmMessage } from '@giime/components/src/plugins/message';\nimport { type EditorData, ruleEditorEmits, ruleEditorProps } from './ruleEditor';\nimport { isString } from '@giime/utils/src/is';\n\ndefineOptions({\n name: 'GmRuleEditor',\n});\n\nconst props = defineProps(ruleEditorProps);\nconst emit = defineEmits(ruleEditorEmits);\nconst importMetaEnv = useGlobalConfig('env');\n\n\nconst viteModes: Record<string, string> = {\n dev: 'https://manage-test.giikin.cn/fe/rules-editor',\n develop: 'https://manage-test.giikin.cn/fe/rules-editor',\n development: 'https://manage-test.giikin.cn/fe/rules-editor',\n test: 'https://manage-test.giikin.cn/fe/rules-editor',\n release: 'https://manage-test.giikin.cn/fe/rules-editor',\n production: 'https://manage.giikin.com/fe/rules-editor',\n};\n\nconst URL = computed(() => {\n let ruleEditorUrl = ``;\n if (isString(importMetaEnv.value[ruleEditorEnvKey])) {\n ruleEditorUrl = importMetaEnv.value[ruleEditorEnvKey];\n } else {\n ruleEditorUrl = viteModes[importMetaEnv.value.MODE] ?? 'https://manage.giikin.com/fe/rules-editor';\n }\n\n return `${ruleEditorUrl}?showClose=${props.showClose}`;\n});\nconst IframeRef = ref(); // 编辑器iframe\n// 编辑器是否加载完成\nconst loaded = defineModel<boolean>('loaded', { default: false });\n\nconst init = (data?: EditorData) => {\n if (!loaded.value) return GmMessage.warning('规则编辑器尚未准备就绪,请稍后再试!');\n IframeRef.value.contentWindow.postMessage(\n {\n action: 'details',\n data: JSON.stringify(data),\n },\n '*',\n );\n};\n\nconst addEventListener = (e: any) => {\n const { type, action, data } = e.data;\n const result = JSON.parse(data ?? '{}');\n const { graph, simulate } = result;\n\n if (type === 'rule-editor') {\n switch (action) {\n case 'close':\n emit('close');\n break;\n case 'loaded':\n loaded.value = true;\n emit('loaded');\n break;\n case 'submit':\n emit('submit', { graph, simulate });\n break;\n case 'run':\n emit('run', { graph, simulate });\n break;\n }\n }\n};\n\nonMounted(() => {\n window.addEventListener('message', addEventListener);\n});\n\nonBeforeUnmount(() => {\n window.removeEventListener('message', addEventListener);\n});\n\nconst GmRuleEditorRef = ref<HTMLDivElement>();\nconst { height: editorMaxHeight } = useElementRemainingHeight(GmRuleEditorRef, {\n bottomOffset: props.heightOffset, // 高度 - 顶部距离 - 分页器\n minHeight: 300,\n});\n\ndefineExpose({\n init,\n});\n</script>\n"],"names":["useGlobalConfig","computed","isString","ref","_useModel","GmMessage","onMounted","onBeforeUnmount","useElementRemainingHeight"],"mappings":";;;;;;;;;;;;AACA,MAAM,gBAAmB,GAAA,4BAAA,CAAA;;;;;;;;;;;;AAoBzB,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AACb,IAAM,MAAA,aAAA,GAAgBA,sBAAgB,KAAK,CAAA,CAAA;AAG3C,IAAA,MAAM,SAAoC,GAAA;AAAA,MACxC,GAAK,EAAA,+CAAA;AAAA,MACL,OAAS,EAAA,+CAAA;AAAA,MACT,WAAa,EAAA,+CAAA;AAAA,MACb,IAAM,EAAA,+CAAA;AAAA,MACN,OAAS,EAAA,+CAAA;AAAA,MACT,UAAY,EAAA,2CAAA;AAAA,KACd,CAAA;AAEA,IAAM,MAAA,GAAA,GAAMC,aAAS,MAAM;AACzB,MAAA,IAAI,aAAgB,GAAA,CAAA,CAAA,CAAA;AACpB,MAAA,IAAIC,WAAS,CAAA,aAAA,CAAc,KAAM,CAAA,gBAAgB,CAAC,CAAG,EAAA;AACnD,QAAgB,aAAA,GAAA,aAAA,CAAc,MAAM,gBAAgB,CAAA,CAAA;AAAA,OAC/C,MAAA;AACL,QAAA,aAAA,GAAgB,SAAU,CAAA,aAAA,CAAc,KAAM,CAAA,IAAI,CAAK,IAAA,2CAAA,CAAA;AAAA,OACzD;AAEA,MAAA,OAAO,CAAG,EAAA,aAAa,CAAc,W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MAAA;AAAA,UACF,KAAK,KAAA;AACH,YAAA,IAAA,CAAK,KAAO,EAAA,EAAE,KAAO,EAAA,QAAA,EAAU,CAAA,CAAA;AAC/B,YAAA,MAAA;AAAA,SACJ;AAAA,OACF;AAAA,KACF,CAAA;AAEA,IAAAC,aAAA,CAAU,MAAM;AACd,MAAO,MAAA,CAAA,gBAAA,CAAiB,WAAW,gBAAgB,CAAA,CAAA;AAAA,KACpD,CAAA,CAAA;AAED,IAAAC,mBAAA,CAAgB,MAAM;AACpB,MAAO,MAAA,CAAA,mBAAA,CAAoB,WAAW,gBAAgB,CAAA,CAAA;AAAA,KACvD,CAAA,CAAA;AAED,IAAA,MAAM,kBAAkBJ,OAAoB,EAAA,CAAA;AAC5C,IAAA,MAAM,EAAE,MAAA,EAAQ,eAAgB,EAAA,GAAIK,kCAA0B,eAAiB,EAAA;AAAA,MAC7E,cAAc,KAAM,CAAA,YAAA;AAAA;AAAA,MACpB,SAAW,EAAA,GAAA;AAAA,KACZ,CAAA,CAAA;AAED,IAAa,QAAA,CAAA;AAAA,MACX,IAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"RuleEditor.vue2.js","sources":["../../../../../../../packages/components/src/composite/ruleEditor/RuleEditor.vue"],"sourcesContent":["<script lang=\"ts\">\nconst ruleEditorEnvKey = 'VITE_GIIME_RULE_EDITOR_URL'\n</script>\n<template>\n <div ref=\"GmRuleEditorRef\" :style=\"{ height: height ? height + 'px' : editorMaxHeight + 'px' }\">\n <iframe ref=\"IframeRef\" width=\"100%\" height=\"100%\" :src=\"URL\" frameborder=\"0\" />\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, onMounted, ref } from 'vue';\nimport { useGlobalConfig } from '@giime/hooks/base/useGlobalConfig';\nimport { useElementRemainingHeight } from '@giime/hooks/base/useElementRemainingHeight';\nimport { GmMessage } from '@giime/components/src/plugins/message';\nimport { isString } from '@giime/utils/src/is';\nimport { type EditorData, ruleEditorEmits, ruleEditorProps } from './ruleEditor';\n\ndefineOptions({\n name: 'GmRuleEditor',\n});\n\nconst props = defineProps(ruleEditorProps);\nconst emit = defineEmits(ruleEditorEmits);\nconst importMetaEnv = useGlobalConfig('env');\n\n\nconst viteModes: Record<string, string> = {\n dev: 'https://manage-test.giikin.cn/fe/rules-editor',\n develop: 'https://manage-test.giikin.cn/fe/rules-editor',\n development: 'https://manage-test.giikin.cn/fe/rules-editor',\n test: 'https://manage-test.giikin.cn/fe/rules-editor',\n release: 'https://manage-test.giikin.cn/fe/rules-editor',\n production: 'https://manage.giikin.com/fe/rules-editor',\n};\n\nconst URL = computed(() => {\n let ruleEditorUrl = ``;\n if (isString(importMetaEnv.value[ruleEditorEnvKey])) {\n ruleEditorUrl = importMetaEnv.value[ruleEditorEnvKey];\n } else {\n ruleEditorUrl = viteModes[importMetaEnv.value.MODE] ?? 'https://manage.giikin.com/fe/rules-editor';\n }\n\n return `${ruleEditorUrl}?showClose=${props.showClose}`;\n});\nconst IframeRef = ref(); // 编辑器iframe\n// 编辑器是否加载完成\nconst loaded = defineModel<boolean>('loaded', { default: false });\n\n/** 初始化编辑器 */\nconst init = (data?: EditorData) => {\n if (!loaded.value) return GmMessage.warning('规则编辑器尚未准备就绪,请稍后再试!');\n IframeRef.value?.contentWindow.postMessage(\n {\n action: 'details',\n data: JSON.stringify(data),\n },\n '*',\n );\n};\n\n/** 发送模拟运行结果 */\nconst simulate = (data: any) => {\n IframeRef.value?.contentWindow.postMessage({\n action: 'simulate',\n data: JSON.stringify(data),\n });\n};\n\nconst addEventListener = (e: any) => {\n const { type, action, data } = e.data;\n const result = JSON.parse(data ?? '{}');\n const { graph, simulate } = result;\n\n if (type === 'rule-editor') {\n switch (action) {\n case 'loaded': // 编辑器加载完成\n loaded.value = true;\n emit('loaded');\n break;\n case 'close': // 关闭编辑器\n emit('close');\n break;\n case 'submit': // 提交\n emit('submit', { graph, simulate });\n break;\n case 'run': // 运行模拟器\n emit('run', { graph, simulate });\n break;\n }\n }\n};\n\nonMounted(() => {\n window.addEventListener('message', addEventListener);\n});\n\nonBeforeUnmount(() => {\n window.removeEventListener('message', addEventListener);\n});\n\nconst GmRuleEditorRef = ref<HTMLDivElement>();\nconst { height: editorMaxHeight } = useElementRemainingHeight(GmRuleEditorRef, {\n bottomOffset: props.heightOffset, // 高度 - 顶部距离 - 分页器\n minHeight: 300,\n});\n\ndefineExpose({\n init,\n simulate,\n});\n</script>\n"],"names":["useGlobalConfig","computed","isString","ref","_useModel","GmMessage","simulate","onMounted","onBeforeUnmount","useElementRemainingHeight"],"mappings":";;;;;;;;;;;;AACA,MAAM,gBAAmB,GAAA,4BAAA,CAAA;;;;;;;;;;;;AAoBzB,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AACb,IAAM,MAAA,aAAA,GAAgBA,sBAAgB,KAAK,CAAA,CAAA;AAG3C,IAAA,MAAM,SAAoC,GAAA;AAAA,MACxC,GAAK,EAAA,+CAAA;AAAA,MACL,OAAS,EAAA,+CAAA;AAAA,MACT,WAAa,EAAA,+CAAA;AAAA,MACb,IAAM,EAAA,+CAAA;AAAA,MACN,OAAS,EAAA,+CAAA;AAAA,MACT,UAAY,EAAA,2CAAA;AAAA,KACd,CAAA;AAEA,IAAM,MAAA,GAAA,GAAMC,aAAS,MAAM;AACzB,MAAA,IAAI,aAAgB,GAAA,CAAA,CAAA,CAAA;AACpB,MAAA,IAAIC,WAAS,CAAA,aAAA,CAAc,KAAM,CAAA,gBAAgB,CAAC,CAAG,EAAA;AACnD,QAAgB,aAAA,GAAA,aAAA,CAAc,MAAM,gBAAgB,CAAA,CAAA;AAAA,OAC/C,MAAA;AACL,QAAA,aAAA,GAAgB,SAAU,CAAA,aAAA,CAAc,KAAM,CAAA,IAAI,CAAK,IAAA,2CAAA,CAAA;AAAA,OACzD;AAEA,MAAA,OAAO,CAAG,EAAA,aAA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A,CAAA;AACf,YAAA,IAAA,CAAK,QAAQ,CAAA,CAAA;AACb,YAAA,MAAA;AAAA,UACF,KAAK,OAAA;AACH,YAAA,IAAA,CAAK,OAAO,CAAA,CAAA;AACZ,YAAA,MAAA;AAAA,UACF,KAAK,QAAA;AACH,YAAA,IAAA,CAAK,QAAU,EAAA,EAAE,KAAO,EAAA,QAAA,EAAAA,WAAU,CAAA,CAAA;AAClC,YAAA,MAAA;AAAA,UACF,KAAK,KAAA;AACH,YAAA,IAAA,CAAK,KAAO,EAAA,EAAE,KAAO,EAAA,QAAA,EAAAA,WAAU,CAAA,CAAA;AAC/B,YAAA,MAAA;AAAA,SACJ;AAAA,OACF;AAAA,KACF,CAAA;AAEA,IAAAC,aAAA,CAAU,MAAM;AACd,MAAO,MAAA,CAAA,gBAAA,CAAiB,WAAW,gBAAgB,CAAA,CAAA;AAAA,KACpD,CAAA,CAAA;AAED,IAAAC,mBAAA,CAAgB,MAAM;AACpB,MAAO,MAAA,CAAA,mBAAA,CAAoB,WAAW,gBAAgB,CAAA,CAAA;AAAA,KACvD,CAAA,CAAA;AAED,IAAA,MAAM,kBAAkBL,OAAoB,EAAA,CAAA;AAC5C,IAAA,MAAM,EAAE,MAAA,EAAQ,eAAgB,EAAA,GAAIM,kCAA0B,eAAiB,EAAA;AAAA,MAC7E,cAAc,KAAM,CAAA,YAAA;AAAA;AAAA,MACpB,SAAW,EAAA,GAAA;AAAA,KACZ,CAAA,CAAA;AAED,IAAa,QAAA,CAAA;AAAA,MACX,IAAA;AAAA,MACA,QAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -15,6 +15,7 @@ export declare const GmRuleEditor: import("../../../../utils").SFCWithInstall<im
15
15
  };
16
16
  }, {
17
17
  init: (data?: import("./ruleEditor").EditorData | undefined) => import("element-plus").MessageHandler | undefined;
18
+ simulate: (data: any) => void;
18
19
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
20
  "update:loaded": (loaded: boolean) => void;
20
21
  close: () => void;
@@ -1 +1 @@
1
- export declare const version = "0.6.31";
1
+ export declare const version = "0.6.32";
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const version = "0.6.30";
3
+ const version = "0.6.32";
4
4
 
5
5
  exports.version = version;
6
6
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.6.30';\n"],"names":[],"mappings":";;AAAO,MAAM,OAAU,GAAA;;;;"}
1
+ {"version":3,"file":"version.js","sources":["../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.6.32';\n"],"names":[],"mappings":";;AAAO,MAAM,OAAU,GAAA;;;;"}
package/lib/index.css CHANGED
@@ -873,11 +873,56 @@ video {
873
873
  .gm-group:hover .group-hover\:gm-block {
874
874
  display: block;
875
875
  }
876
+ .gm-flex-center[data-v-c17deec9] {
877
+ align-items: center;
878
+ }
876
879
 
877
- .gm-range-number .el-form-item[data-v-1ae16d96] {
880
+ .gm-flex-justify-between[data-v-c17deec9] {
881
+ justify-content: space-between;
882
+ }
883
+ .gm-upload-preview-dialog[data-v-8077ce51] [data-v-8077ce51] .el-dialog__body {
884
+ padding: 0;
885
+ }
886
+
887
+ .gm-upload-file-picture-card[data-v-8077ce51] [data-v-8077ce51] .el-upload-list__item, .gm-upload-file-picture-card[data-v-8077ce51] [data-v-8077ce51] .el-upload--picture-card {
888
+ width: auto;
889
+ height: auto;
890
+ }
891
+ .gm-upload-file {
892
+ line-height: normal;
893
+ }
894
+ .gm-upload-file .el-checkbox {
895
+ position: absolute;
896
+ left: 10px;
897
+ top: 0;
898
+ z-index: 9;
899
+ }
900
+ .gm-upload-file .el-upload-list--picture-card {
901
+ gap: 10px;
902
+ }
903
+ .gm-upload-file .el-upload-list__item {
878
904
  margin: 0;
879
905
  }
906
+ .gm-upload-file .el-upload-list__item-file-name {
907
+ line-height: normal;
908
+ }
909
+ .gm-upload-file .el-upload-dragger {
910
+ padding: 0;
911
+ border: none;
912
+ width: 100%;
913
+ height: 100%;
914
+ display: flex;
915
+ }
916
+ .gm-upload-file .el-upload--picture-card {
917
+ border: none;
918
+ }
880
919
 
920
+ .gm-upload-file-disabled .el-upload--picture-card {
921
+ display: none;
922
+ }
923
+ .gm-upload-file-disabled .el-upload-list__item-status-label {
924
+ display: none;
925
+ }
881
926
  .circular[data-v-d7b04fae] {
882
927
  animation: loading-rotate-d7b04fae 2s linear infinite;
883
928
  }
@@ -909,30 +954,14 @@ video {
909
954
  stroke-dashoffset: -120px;
910
955
  }
911
956
  }
912
- .gm-number-interval-single[data-v-4e6f4d6f] {
913
- border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
914
- box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
915
- background-color: var(--el-input-bg-color, var(--el-fill-color-blank));
916
- }
917
- .gm-number-interval-single[data-v-4e6f4d6f] [data-v-4e6f4d6f] .el-input__wrapper {
918
- box-shadow: none;
919
- background: none;
920
- }
921
-
922
- .gm-number-interval-close[data-v-4e6f4d6f] {
923
- display: none;
924
- color: var(--el-input-icon-color, var(--el-text-color-placeholder));
925
- }
926
957
 
927
- .gm-number-interval-single[data-v-4e6f4d6f]:hover .gm-number-interval-close[data-v-4e6f4d6f] {
928
- display: flex;
929
- }
930
- .gm-flex-center[data-v-c17deec9] {
931
- align-items: center;
958
+ .gm-range-number .el-form-item[data-v-1ae16d96] {
959
+ margin: 0;
932
960
  }
933
961
 
934
- .gm-flex-justify-between[data-v-c17deec9] {
935
- justify-content: space-between;
962
+ [data-v-488ca110] .gmSearchForm .el-form-item {
963
+ margin-right: 0;
964
+ margin-bottom: 4px;
936
965
  }
937
966
  [data-v-2c351ff8] .gmTableNoBorder .el-table__body .el-table__cell {
938
967
  border-right: none;
@@ -957,192 +986,163 @@ video {
957
986
  [data-v-2c351ff8] .gmTableNoBorder .el-table__border-left-patch {
958
987
  height: 0;
959
988
  }
960
- [data-v-488ca110] .gmSearchForm .el-form-item {
961
- margin-right: 0;
962
- margin-bottom: 4px;
963
- }
964
- [data-v-98c2e804] .gmTableNoBorder .el-table__body .el-table__cell {
965
- border-right: none;
966
- }
967
-
968
- [data-v-98c2e804] .gmTableNoBorder .el-table__inner-wrapper:before {
969
- height: 0;
970
- }
971
989
 
972
- [data-v-98c2e804] .gmTableNoBorder.el-table--border .el-table__inner-wrapper:after {
973
- height: 0;
974
- }
975
-
976
- [data-v-98c2e804] .gmTableNoBorder.el-table--border:after {
977
- height: 0;
990
+ .pagination-container[data-v-47d35e7b] {
991
+ background: #fff;
992
+ padding-top: 12px;
978
993
  }
979
-
980
- [data-v-98c2e804] .gmTableNoBorder.el-table--border:before {
981
- height: 0;
994
+ .pagination-container.hidden[data-v-47d35e7b] {
995
+ display: none;
982
996
  }
983
997
 
984
- [data-v-98c2e804] .gmTableNoBorder .el-table__border-left-patch {
985
- height: 0;
986
- }
987
- .gm-upload-file {
988
- line-height: normal;
989
- }
990
- .gm-upload-file .el-checkbox {
991
- position: absolute;
992
- left: 10px;
993
- top: 0;
994
- z-index: 9;
995
- }
996
- .gm-upload-file .el-upload-list--picture-card {
997
- gap: 10px;
998
- }
999
- .gm-upload-file .el-upload-list__item {
1000
- margin: 0;
1001
- }
1002
- .gm-upload-file .el-upload-list__item-file-name {
1003
- line-height: normal;
1004
- }
1005
- .gm-upload-file .el-upload-dragger {
1006
- padding: 0;
1007
- border: none;
1008
- width: 100%;
1009
- height: 100%;
1010
- display: flex;
998
+ .gm-number-interval-single[data-v-4e6f4d6f] {
999
+ border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
1000
+ box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
1001
+ background-color: var(--el-input-bg-color, var(--el-fill-color-blank));
1011
1002
  }
1012
- .gm-upload-file .el-upload--picture-card {
1013
- border: none;
1003
+ .gm-number-interval-single[data-v-4e6f4d6f] [data-v-4e6f4d6f] .el-input__wrapper {
1004
+ box-shadow: none;
1005
+ background: none;
1014
1006
  }
1015
1007
 
1016
- .gm-upload-file-disabled .el-upload--picture-card {
1017
- display: none;
1018
- }
1019
- .gm-upload-file-disabled .el-upload-list__item-status-label {
1008
+ .gm-number-interval-close[data-v-4e6f4d6f] {
1020
1009
  display: none;
1021
- }
1022
- .gm-upload-preview-dialog[data-v-8077ce51] [data-v-8077ce51] .el-dialog__body {
1023
- padding: 0;
1024
- }
1025
-
1026
- .gm-upload-file-picture-card[data-v-8077ce51] [data-v-8077ce51] .el-upload-list__item, .gm-upload-file-picture-card[data-v-8077ce51] [data-v-8077ce51] .el-upload--picture-card {
1027
- width: auto;
1028
- height: auto;
1010
+ color: var(--el-input-icon-color, var(--el-text-color-placeholder));
1029
1011
  }
1030
1012
 
1031
- .pagination-container[data-v-47d35e7b] {
1032
- background: #fff;
1033
- padding-top: 12px;
1034
- }
1035
- .pagination-container.hidden[data-v-47d35e7b] {
1036
- display: none;
1013
+ .gm-number-interval-single[data-v-4e6f4d6f]:hover .gm-number-interval-close[data-v-4e6f4d6f] {
1014
+ display: flex;
1037
1015
  }
1038
-
1039
1016
  @charset "UTF-8";
1040
- .table-custom-header-drawer .el-drawer__header {
1017
+ .custom-operate-drawer .el-drawer__header {
1041
1018
  padding: 10px 15px;
1042
1019
  margin: 0;
1043
1020
  border-bottom: 1px solid #ebeef5;
1044
1021
  }
1045
- .table-custom-header-drawer .el-drawer__title {
1022
+ .custom-operate-drawer .el-drawer__title {
1046
1023
  font-size: 14px;
1047
1024
  color: #333;
1048
1025
  }
1049
- .table-custom-header-drawer .el-drawer__body {
1026
+ .custom-operate-drawer .el-drawer__body {
1050
1027
  padding: 15px;
1051
1028
  }
1052
- .table-custom-header-drawer .el-drawer__footer {
1029
+ .custom-operate-drawer .el-drawer__footer {
1053
1030
  padding: 10px 15px;
1054
1031
  border-top: 1px solid #ebeef5;
1055
1032
  }
1056
- .table-custom-header-drawer .el-checkbox {
1033
+ .custom-operate-drawer .el-checkbox {
1057
1034
  display: flex;
1058
1035
  align-items: center;
1059
1036
  }
1060
- .table-custom-header-drawer .el-input__inner {
1037
+ .custom-operate-drawer .el-input__inner {
1061
1038
  text-align: center;
1062
1039
  }
1063
- .table-custom-header-drawer .el-input__suffix {
1040
+ .custom-operate-drawer .el-input__suffix {
1064
1041
  position: absolute;
1065
1042
  right: 10px;
1066
1043
  }
1067
- .table-custom-header-drawer .custom-content li {
1044
+ .custom-operate-drawer .custom-content li {
1068
1045
  display: flex;
1069
1046
  align-items: center;
1070
1047
  justify-content: center;
1071
1048
  height: 44px;
1072
1049
  }
1073
- .table-custom-header-drawer .custom-group {
1050
+ .custom-operate-drawer .custom-group {
1074
1051
  max-height: calc(100vh - 226px);
1075
1052
  overflow-y: auto;
1076
1053
  }
1077
- .table-custom-header-drawer .custom-group::-webkit-scrollbar {
1054
+ .custom-operate-drawer .custom-group::-webkit-scrollbar {
1078
1055
  /*滚动条整体样式*/
1079
1056
  width: 4px;
1080
1057
  /*高宽分别对应横竖滚动条的尺寸*/
1081
1058
  height: 1px;
1082
1059
  }
1083
- .table-custom-header-drawer .custom-group::-webkit-scrollbar-thumb {
1060
+ .custom-operate-drawer .custom-group::-webkit-scrollbar-thumb {
1084
1061
  /*滚动条里面小方块*/
1085
1062
  border-radius: 10px;
1086
1063
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
1087
1064
  background: #999;
1088
1065
  }
1089
- .table-custom-header-drawer .custom-group::-webkit-scrollbar-track {
1066
+ .custom-operate-drawer .custom-group::-webkit-scrollbar-track {
1090
1067
  /*滚动条里面轨道*/
1091
1068
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
1092
1069
  border-radius: 10px;
1093
1070
  background: #eee;
1094
1071
  }
1072
+ [data-v-98c2e804] .gmTableNoBorder .el-table__body .el-table__cell {
1073
+ border-right: none;
1074
+ }
1075
+
1076
+ [data-v-98c2e804] .gmTableNoBorder .el-table__inner-wrapper:before {
1077
+ height: 0;
1078
+ }
1079
+
1080
+ [data-v-98c2e804] .gmTableNoBorder.el-table--border .el-table__inner-wrapper:after {
1081
+ height: 0;
1082
+ }
1083
+
1084
+ [data-v-98c2e804] .gmTableNoBorder.el-table--border:after {
1085
+ height: 0;
1086
+ }
1087
+
1088
+ [data-v-98c2e804] .gmTableNoBorder.el-table--border:before {
1089
+ height: 0;
1090
+ }
1091
+
1092
+ [data-v-98c2e804] .gmTableNoBorder .el-table__border-left-patch {
1093
+ height: 0;
1094
+ }
1095
1095
  @charset "UTF-8";
1096
- .custom-operate-drawer .el-drawer__header {
1096
+ .table-custom-header-drawer .el-drawer__header {
1097
1097
  padding: 10px 15px;
1098
1098
  margin: 0;
1099
1099
  border-bottom: 1px solid #ebeef5;
1100
1100
  }
1101
- .custom-operate-drawer .el-drawer__title {
1101
+ .table-custom-header-drawer .el-drawer__title {
1102
1102
  font-size: 14px;
1103
1103
  color: #333;
1104
1104
  }
1105
- .custom-operate-drawer .el-drawer__body {
1105
+ .table-custom-header-drawer .el-drawer__body {
1106
1106
  padding: 15px;
1107
1107
  }
1108
- .custom-operate-drawer .el-drawer__footer {
1108
+ .table-custom-header-drawer .el-drawer__footer {
1109
1109
  padding: 10px 15px;
1110
1110
  border-top: 1px solid #ebeef5;
1111
1111
  }
1112
- .custom-operate-drawer .el-checkbox {
1112
+ .table-custom-header-drawer .el-checkbox {
1113
1113
  display: flex;
1114
1114
  align-items: center;
1115
1115
  }
1116
- .custom-operate-drawer .el-input__inner {
1116
+ .table-custom-header-drawer .el-input__inner {
1117
1117
  text-align: center;
1118
1118
  }
1119
- .custom-operate-drawer .el-input__suffix {
1119
+ .table-custom-header-drawer .el-input__suffix {
1120
1120
  position: absolute;
1121
1121
  right: 10px;
1122
1122
  }
1123
- .custom-operate-drawer .custom-content li {
1123
+ .table-custom-header-drawer .custom-content li {
1124
1124
  display: flex;
1125
1125
  align-items: center;
1126
1126
  justify-content: center;
1127
1127
  height: 44px;
1128
1128
  }
1129
- .custom-operate-drawer .custom-group {
1129
+ .table-custom-header-drawer .custom-group {
1130
1130
  max-height: calc(100vh - 226px);
1131
1131
  overflow-y: auto;
1132
1132
  }
1133
- .custom-operate-drawer .custom-group::-webkit-scrollbar {
1133
+ .table-custom-header-drawer .custom-group::-webkit-scrollbar {
1134
1134
  /*滚动条整体样式*/
1135
1135
  width: 4px;
1136
1136
  /*高宽分别对应横竖滚动条的尺寸*/
1137
1137
  height: 1px;
1138
1138
  }
1139
- .custom-operate-drawer .custom-group::-webkit-scrollbar-thumb {
1139
+ .table-custom-header-drawer .custom-group::-webkit-scrollbar-thumb {
1140
1140
  /*滚动条里面小方块*/
1141
1141
  border-radius: 10px;
1142
1142
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
1143
1143
  background: #999;
1144
1144
  }
1145
- .custom-operate-drawer .custom-group::-webkit-scrollbar-track {
1145
+ .table-custom-header-drawer .custom-group::-webkit-scrollbar-track {
1146
1146
  /*滚动条里面轨道*/
1147
1147
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
1148
1148
  border-radius: 10px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "giime",
3
- "version": "0.6.31",
3
+ "version": "0.6.32",
4
4
  "description": "A Component Library for Vue 3",
5
5
  "keywords": [
6
6
  "giime",