giime 0.6.31 → 0.6.33

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
@@ -878,6 +878,13 @@ video {
878
878
  margin: 0;
879
879
  }
880
880
 
881
+ .gm-flex-center[data-v-c17deec9] {
882
+ align-items: center;
883
+ }
884
+
885
+ .gm-flex-justify-between[data-v-c17deec9] {
886
+ justify-content: space-between;
887
+ }
881
888
  .circular[data-v-d7b04fae] {
882
889
  animation: loading-rotate-d7b04fae 2s linear infinite;
883
890
  }
@@ -927,12 +934,9 @@ video {
927
934
  .gm-number-interval-single[data-v-4e6f4d6f]:hover .gm-number-interval-close[data-v-4e6f4d6f] {
928
935
  display: flex;
929
936
  }
930
- .gm-flex-center[data-v-c17deec9] {
931
- align-items: center;
932
- }
933
-
934
- .gm-flex-justify-between[data-v-c17deec9] {
935
- justify-content: space-between;
937
+ [data-v-488ca110] .gmSearchForm .el-form-item {
938
+ margin-right: 0;
939
+ margin-bottom: 4px;
936
940
  }
937
941
  [data-v-2c351ff8] .gmTableNoBorder .el-table__body .el-table__cell {
938
942
  border-right: none;
@@ -957,10 +961,6 @@ video {
957
961
  [data-v-2c351ff8] .gmTableNoBorder .el-table__border-left-patch {
958
962
  height: 0;
959
963
  }
960
- [data-v-488ca110] .gmSearchForm .el-form-item {
961
- margin-right: 0;
962
- margin-bottom: 4px;
963
- }
964
964
  [data-v-98c2e804] .gmTableNoBorder .el-table__body .el-table__cell {
965
965
  border-right: none;
966
966
  }
@@ -984,6 +984,14 @@ video {
984
984
  [data-v-98c2e804] .gmTableNoBorder .el-table__border-left-patch {
985
985
  height: 0;
986
986
  }
987
+ .gm-upload-preview-dialog[data-v-8077ce51] [data-v-8077ce51] .el-dialog__body {
988
+ padding: 0;
989
+ }
990
+
991
+ .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 {
992
+ width: auto;
993
+ height: auto;
994
+ }
987
995
  .gm-upload-file {
988
996
  line-height: normal;
989
997
  }
@@ -1019,14 +1027,6 @@ video {
1019
1027
  .gm-upload-file-disabled .el-upload-list__item-status-label {
1020
1028
  display: none;
1021
1029
  }
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;
1029
- }
1030
1030
 
1031
1031
  .pagination-container[data-v-47d35e7b] {
1032
1032
  background: #fff;
@@ -1037,112 +1037,112 @@ video {
1037
1037
  }
1038
1038
 
1039
1039
  @charset "UTF-8";
1040
- .table-custom-header-drawer .el-drawer__header {
1040
+ .custom-operate-drawer .el-drawer__header {
1041
1041
  padding: 10px 15px;
1042
1042
  margin: 0;
1043
1043
  border-bottom: 1px solid #ebeef5;
1044
1044
  }
1045
- .table-custom-header-drawer .el-drawer__title {
1045
+ .custom-operate-drawer .el-drawer__title {
1046
1046
  font-size: 14px;
1047
1047
  color: #333;
1048
1048
  }
1049
- .table-custom-header-drawer .el-drawer__body {
1049
+ .custom-operate-drawer .el-drawer__body {
1050
1050
  padding: 15px;
1051
1051
  }
1052
- .table-custom-header-drawer .el-drawer__footer {
1052
+ .custom-operate-drawer .el-drawer__footer {
1053
1053
  padding: 10px 15px;
1054
1054
  border-top: 1px solid #ebeef5;
1055
1055
  }
1056
- .table-custom-header-drawer .el-checkbox {
1056
+ .custom-operate-drawer .el-checkbox {
1057
1057
  display: flex;
1058
1058
  align-items: center;
1059
1059
  }
1060
- .table-custom-header-drawer .el-input__inner {
1060
+ .custom-operate-drawer .el-input__inner {
1061
1061
  text-align: center;
1062
1062
  }
1063
- .table-custom-header-drawer .el-input__suffix {
1063
+ .custom-operate-drawer .el-input__suffix {
1064
1064
  position: absolute;
1065
1065
  right: 10px;
1066
1066
  }
1067
- .table-custom-header-drawer .custom-content li {
1067
+ .custom-operate-drawer .custom-content li {
1068
1068
  display: flex;
1069
1069
  align-items: center;
1070
1070
  justify-content: center;
1071
1071
  height: 44px;
1072
1072
  }
1073
- .table-custom-header-drawer .custom-group {
1073
+ .custom-operate-drawer .custom-group {
1074
1074
  max-height: calc(100vh - 226px);
1075
1075
  overflow-y: auto;
1076
1076
  }
1077
- .table-custom-header-drawer .custom-group::-webkit-scrollbar {
1077
+ .custom-operate-drawer .custom-group::-webkit-scrollbar {
1078
1078
  /*滚动条整体样式*/
1079
1079
  width: 4px;
1080
1080
  /*高宽分别对应横竖滚动条的尺寸*/
1081
1081
  height: 1px;
1082
1082
  }
1083
- .table-custom-header-drawer .custom-group::-webkit-scrollbar-thumb {
1083
+ .custom-operate-drawer .custom-group::-webkit-scrollbar-thumb {
1084
1084
  /*滚动条里面小方块*/
1085
1085
  border-radius: 10px;
1086
1086
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
1087
1087
  background: #999;
1088
1088
  }
1089
- .table-custom-header-drawer .custom-group::-webkit-scrollbar-track {
1089
+ .custom-operate-drawer .custom-group::-webkit-scrollbar-track {
1090
1090
  /*滚动条里面轨道*/
1091
1091
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
1092
1092
  border-radius: 10px;
1093
1093
  background: #eee;
1094
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,33 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
51
51
  "*"
52
52
  );
53
53
  };
54
+ const simulate = (data) => {
55
+ IframeRef.value?.contentWindow.postMessage(
56
+ {
57
+ action: "simulate",
58
+ data: JSON.stringify(data)
59
+ },
60
+ "*"
61
+ );
62
+ };
54
63
  const addEventListener = (e) => {
55
64
  const { type, action, data } = e.data;
56
65
  const result = JSON.parse(data ?? "{}");
57
- const { graph, simulate } = result;
66
+ const { graph, simulate: simulate2 } = result;
58
67
  if (type === "rule-editor") {
59
68
  switch (action) {
60
- case "close":
61
- emit("close");
62
- break;
63
69
  case "loaded":
64
70
  loaded.value = true;
65
71
  emit("loaded");
66
72
  break;
73
+ case "close":
74
+ emit("close");
75
+ break;
67
76
  case "submit":
68
- emit("submit", { graph, simulate });
77
+ emit("submit", { graph, simulate: simulate2 });
69
78
  break;
70
79
  case "run":
71
- emit("run", { graph, simulate });
80
+ emit("run", { graph, simulate: simulate2 });
72
81
  break;
73
82
  }
74
83
  }
@@ -86,7 +95,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
86
95
  minHeight: 300
87
96
  });
88
97
  __expose({
89
- init
98
+ init,
99
+ simulate
90
100
  });
91
101
  return (_ctx, _cache) => {
92
102
  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"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AAA,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 {\n action: 'simulate',\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 '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,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AA,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.33";
@@ -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
@@ -878,6 +878,13 @@ video {
878
878
  margin: 0;
879
879
  }
880
880
 
881
+ .gm-flex-center[data-v-c17deec9] {
882
+ align-items: center;
883
+ }
884
+
885
+ .gm-flex-justify-between[data-v-c17deec9] {
886
+ justify-content: space-between;
887
+ }
881
888
  .circular[data-v-d7b04fae] {
882
889
  animation: loading-rotate-d7b04fae 2s linear infinite;
883
890
  }
@@ -927,12 +934,9 @@ video {
927
934
  .gm-number-interval-single[data-v-4e6f4d6f]:hover .gm-number-interval-close[data-v-4e6f4d6f] {
928
935
  display: flex;
929
936
  }
930
- .gm-flex-center[data-v-c17deec9] {
931
- align-items: center;
932
- }
933
-
934
- .gm-flex-justify-between[data-v-c17deec9] {
935
- justify-content: space-between;
937
+ [data-v-488ca110] .gmSearchForm .el-form-item {
938
+ margin-right: 0;
939
+ margin-bottom: 4px;
936
940
  }
937
941
  [data-v-2c351ff8] .gmTableNoBorder .el-table__body .el-table__cell {
938
942
  border-right: none;
@@ -957,10 +961,6 @@ video {
957
961
  [data-v-2c351ff8] .gmTableNoBorder .el-table__border-left-patch {
958
962
  height: 0;
959
963
  }
960
- [data-v-488ca110] .gmSearchForm .el-form-item {
961
- margin-right: 0;
962
- margin-bottom: 4px;
963
- }
964
964
  [data-v-98c2e804] .gmTableNoBorder .el-table__body .el-table__cell {
965
965
  border-right: none;
966
966
  }
@@ -984,6 +984,14 @@ video {
984
984
  [data-v-98c2e804] .gmTableNoBorder .el-table__border-left-patch {
985
985
  height: 0;
986
986
  }
987
+ .gm-upload-preview-dialog[data-v-8077ce51] [data-v-8077ce51] .el-dialog__body {
988
+ padding: 0;
989
+ }
990
+
991
+ .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 {
992
+ width: auto;
993
+ height: auto;
994
+ }
987
995
  .gm-upload-file {
988
996
  line-height: normal;
989
997
  }
@@ -1019,14 +1027,6 @@ video {
1019
1027
  .gm-upload-file-disabled .el-upload-list__item-status-label {
1020
1028
  display: none;
1021
1029
  }
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;
1029
- }
1030
1030
 
1031
1031
  .pagination-container[data-v-47d35e7b] {
1032
1032
  background: #fff;
@@ -1037,112 +1037,112 @@ video {
1037
1037
  }
1038
1038
 
1039
1039
  @charset "UTF-8";
1040
- .table-custom-header-drawer .el-drawer__header {
1040
+ .custom-operate-drawer .el-drawer__header {
1041
1041
  padding: 10px 15px;
1042
1042
  margin: 0;
1043
1043
  border-bottom: 1px solid #ebeef5;
1044
1044
  }
1045
- .table-custom-header-drawer .el-drawer__title {
1045
+ .custom-operate-drawer .el-drawer__title {
1046
1046
  font-size: 14px;
1047
1047
  color: #333;
1048
1048
  }
1049
- .table-custom-header-drawer .el-drawer__body {
1049
+ .custom-operate-drawer .el-drawer__body {
1050
1050
  padding: 15px;
1051
1051
  }
1052
- .table-custom-header-drawer .el-drawer__footer {
1052
+ .custom-operate-drawer .el-drawer__footer {
1053
1053
  padding: 10px 15px;
1054
1054
  border-top: 1px solid #ebeef5;
1055
1055
  }
1056
- .table-custom-header-drawer .el-checkbox {
1056
+ .custom-operate-drawer .el-checkbox {
1057
1057
  display: flex;
1058
1058
  align-items: center;
1059
1059
  }
1060
- .table-custom-header-drawer .el-input__inner {
1060
+ .custom-operate-drawer .el-input__inner {
1061
1061
  text-align: center;
1062
1062
  }
1063
- .table-custom-header-drawer .el-input__suffix {
1063
+ .custom-operate-drawer .el-input__suffix {
1064
1064
  position: absolute;
1065
1065
  right: 10px;
1066
1066
  }
1067
- .table-custom-header-drawer .custom-content li {
1067
+ .custom-operate-drawer .custom-content li {
1068
1068
  display: flex;
1069
1069
  align-items: center;
1070
1070
  justify-content: center;
1071
1071
  height: 44px;
1072
1072
  }
1073
- .table-custom-header-drawer .custom-group {
1073
+ .custom-operate-drawer .custom-group {
1074
1074
  max-height: calc(100vh - 226px);
1075
1075
  overflow-y: auto;
1076
1076
  }
1077
- .table-custom-header-drawer .custom-group::-webkit-scrollbar {
1077
+ .custom-operate-drawer .custom-group::-webkit-scrollbar {
1078
1078
  /*滚动条整体样式*/
1079
1079
  width: 4px;
1080
1080
  /*高宽分别对应横竖滚动条的尺寸*/
1081
1081
  height: 1px;
1082
1082
  }
1083
- .table-custom-header-drawer .custom-group::-webkit-scrollbar-thumb {
1083
+ .custom-operate-drawer .custom-group::-webkit-scrollbar-thumb {
1084
1084
  /*滚动条里面小方块*/
1085
1085
  border-radius: 10px;
1086
1086
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
1087
1087
  background: #999;
1088
1088
  }
1089
- .table-custom-header-drawer .custom-group::-webkit-scrollbar-track {
1089
+ .custom-operate-drawer .custom-group::-webkit-scrollbar-track {
1090
1090
  /*滚动条里面轨道*/
1091
1091
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
1092
1092
  border-radius: 10px;
1093
1093
  background: #eee;
1094
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,33 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
55
55
  "*"
56
56
  );
57
57
  };
58
+ const simulate = (data) => {
59
+ IframeRef.value?.contentWindow.postMessage(
60
+ {
61
+ action: "simulate",
62
+ data: JSON.stringify(data)
63
+ },
64
+ "*"
65
+ );
66
+ };
58
67
  const addEventListener = (e) => {
59
68
  const { type, action, data } = e.data;
60
69
  const result = JSON.parse(data ?? "{}");
61
- const { graph, simulate } = result;
70
+ const { graph, simulate: simulate2 } = result;
62
71
  if (type === "rule-editor") {
63
72
  switch (action) {
64
- case "close":
65
- emit("close");
66
- break;
67
73
  case "loaded":
68
74
  loaded.value = true;
69
75
  emit("loaded");
70
76
  break;
77
+ case "close":
78
+ emit("close");
79
+ break;
71
80
  case "submit":
72
- emit("submit", { graph, simulate });
81
+ emit("submit", { graph, simulate: simulate2 });
73
82
  break;
74
83
  case "run":
75
- emit("run", { graph, simulate });
84
+ emit("run", { graph, simulate: simulate2 });
76
85
  break;
77
86
  }
78
87
  }
@@ -90,7 +99,8 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
90
99
  minHeight: 300
91
100
  });
92
101
  __expose({
93
- init
102
+ init,
103
+ simulate
94
104
  });
95
105
  return (_ctx, _cache) => {
96
106
  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,CA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AoB,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 {\n action: 'simulate',\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 '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,g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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.33";
@@ -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
@@ -878,6 +878,13 @@ video {
878
878
  margin: 0;
879
879
  }
880
880
 
881
+ .gm-flex-center[data-v-c17deec9] {
882
+ align-items: center;
883
+ }
884
+
885
+ .gm-flex-justify-between[data-v-c17deec9] {
886
+ justify-content: space-between;
887
+ }
881
888
  .circular[data-v-d7b04fae] {
882
889
  animation: loading-rotate-d7b04fae 2s linear infinite;
883
890
  }
@@ -927,12 +934,9 @@ video {
927
934
  .gm-number-interval-single[data-v-4e6f4d6f]:hover .gm-number-interval-close[data-v-4e6f4d6f] {
928
935
  display: flex;
929
936
  }
930
- .gm-flex-center[data-v-c17deec9] {
931
- align-items: center;
932
- }
933
-
934
- .gm-flex-justify-between[data-v-c17deec9] {
935
- justify-content: space-between;
937
+ [data-v-488ca110] .gmSearchForm .el-form-item {
938
+ margin-right: 0;
939
+ margin-bottom: 4px;
936
940
  }
937
941
  [data-v-2c351ff8] .gmTableNoBorder .el-table__body .el-table__cell {
938
942
  border-right: none;
@@ -957,10 +961,6 @@ video {
957
961
  [data-v-2c351ff8] .gmTableNoBorder .el-table__border-left-patch {
958
962
  height: 0;
959
963
  }
960
- [data-v-488ca110] .gmSearchForm .el-form-item {
961
- margin-right: 0;
962
- margin-bottom: 4px;
963
- }
964
964
  [data-v-98c2e804] .gmTableNoBorder .el-table__body .el-table__cell {
965
965
  border-right: none;
966
966
  }
@@ -984,6 +984,14 @@ video {
984
984
  [data-v-98c2e804] .gmTableNoBorder .el-table__border-left-patch {
985
985
  height: 0;
986
986
  }
987
+ .gm-upload-preview-dialog[data-v-8077ce51] [data-v-8077ce51] .el-dialog__body {
988
+ padding: 0;
989
+ }
990
+
991
+ .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 {
992
+ width: auto;
993
+ height: auto;
994
+ }
987
995
  .gm-upload-file {
988
996
  line-height: normal;
989
997
  }
@@ -1019,14 +1027,6 @@ video {
1019
1027
  .gm-upload-file-disabled .el-upload-list__item-status-label {
1020
1028
  display: none;
1021
1029
  }
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;
1029
- }
1030
1030
 
1031
1031
  .pagination-container[data-v-47d35e7b] {
1032
1032
  background: #fff;
@@ -1037,112 +1037,112 @@ video {
1037
1037
  }
1038
1038
 
1039
1039
  @charset "UTF-8";
1040
- .table-custom-header-drawer .el-drawer__header {
1040
+ .custom-operate-drawer .el-drawer__header {
1041
1041
  padding: 10px 15px;
1042
1042
  margin: 0;
1043
1043
  border-bottom: 1px solid #ebeef5;
1044
1044
  }
1045
- .table-custom-header-drawer .el-drawer__title {
1045
+ .custom-operate-drawer .el-drawer__title {
1046
1046
  font-size: 14px;
1047
1047
  color: #333;
1048
1048
  }
1049
- .table-custom-header-drawer .el-drawer__body {
1049
+ .custom-operate-drawer .el-drawer__body {
1050
1050
  padding: 15px;
1051
1051
  }
1052
- .table-custom-header-drawer .el-drawer__footer {
1052
+ .custom-operate-drawer .el-drawer__footer {
1053
1053
  padding: 10px 15px;
1054
1054
  border-top: 1px solid #ebeef5;
1055
1055
  }
1056
- .table-custom-header-drawer .el-checkbox {
1056
+ .custom-operate-drawer .el-checkbox {
1057
1057
  display: flex;
1058
1058
  align-items: center;
1059
1059
  }
1060
- .table-custom-header-drawer .el-input__inner {
1060
+ .custom-operate-drawer .el-input__inner {
1061
1061
  text-align: center;
1062
1062
  }
1063
- .table-custom-header-drawer .el-input__suffix {
1063
+ .custom-operate-drawer .el-input__suffix {
1064
1064
  position: absolute;
1065
1065
  right: 10px;
1066
1066
  }
1067
- .table-custom-header-drawer .custom-content li {
1067
+ .custom-operate-drawer .custom-content li {
1068
1068
  display: flex;
1069
1069
  align-items: center;
1070
1070
  justify-content: center;
1071
1071
  height: 44px;
1072
1072
  }
1073
- .table-custom-header-drawer .custom-group {
1073
+ .custom-operate-drawer .custom-group {
1074
1074
  max-height: calc(100vh - 226px);
1075
1075
  overflow-y: auto;
1076
1076
  }
1077
- .table-custom-header-drawer .custom-group::-webkit-scrollbar {
1077
+ .custom-operate-drawer .custom-group::-webkit-scrollbar {
1078
1078
  /*滚动条整体样式*/
1079
1079
  width: 4px;
1080
1080
  /*高宽分别对应横竖滚动条的尺寸*/
1081
1081
  height: 1px;
1082
1082
  }
1083
- .table-custom-header-drawer .custom-group::-webkit-scrollbar-thumb {
1083
+ .custom-operate-drawer .custom-group::-webkit-scrollbar-thumb {
1084
1084
  /*滚动条里面小方块*/
1085
1085
  border-radius: 10px;
1086
1086
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
1087
1087
  background: #999;
1088
1088
  }
1089
- .table-custom-header-drawer .custom-group::-webkit-scrollbar-track {
1089
+ .custom-operate-drawer .custom-group::-webkit-scrollbar-track {
1090
1090
  /*滚动条里面轨道*/
1091
1091
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
1092
1092
  border-radius: 10px;
1093
1093
  background: #eee;
1094
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.33",
4
4
  "description": "A Component Library for Vue 3",
5
5
  "keywords": [
6
6
  "giime",