diff --git a/frontend/src/icons/svg/drag.svg b/frontend/src/icons/svg/drag.svg
new file mode 100644
index 0000000000..cf76a2edbd
--- /dev/null
+++ b/frontend/src/icons/svg/drag.svg
@@ -0,0 +1 @@
+
diff --git a/frontend/src/lang/en.js b/frontend/src/lang/en.js
index 4e21d47738..59ef185a7e 100644
--- a/frontend/src/lang/en.js
+++ b/frontend/src/lang/en.js
@@ -1097,7 +1097,7 @@ export default {
gauge_threshold_compare_error: 'Range must added',
tick_count: 'Tick Split',
custom_sort: 'Custom',
- custom_sort_tip: 'Custom sort field first',
+ custom_sort_tip: 'Custom sort field first,and only support single field',
clean_custom_sort: 'Clean'
},
dataset: {
diff --git a/frontend/src/lang/tw.js b/frontend/src/lang/tw.js
index abdd3d7cf2..837c20f253 100644
--- a/frontend/src/lang/tw.js
+++ b/frontend/src/lang/tw.js
@@ -1097,7 +1097,7 @@ export default {
gauge_threshold_compare_error: '阈值範圍需逐級遞增',
tick_count: '刻度間隔數',
custom_sort: '自定義',
- custom_sort_tip: '自定義排序優先級高於字段排序',
+ custom_sort_tip: '自定義排序優先級最高,且僅支持單個字段自定義',
clean_custom_sort: '清除自定義排序'
},
dataset: {
diff --git a/frontend/src/lang/zh.js b/frontend/src/lang/zh.js
index 416948b0af..a6b3511b1f 100644
--- a/frontend/src/lang/zh.js
+++ b/frontend/src/lang/zh.js
@@ -1099,7 +1099,7 @@ export default {
gauge_threshold_compare_error: '阈值范围需逐级递增',
tick_count: '刻度间隔数',
custom_sort: '自定义',
- custom_sort_tip: '自定义排序优先级高于字段排序',
+ custom_sort_tip: '自定义排序优先级最高,且仅支持单个字段自定义',
clean_custom_sort: '清除自定义排序'
},
dataset: {
diff --git a/frontend/src/views/chart/components/compare/CustomSortEdit.vue b/frontend/src/views/chart/components/compare/CustomSortEdit.vue
index edc3ae21fb..39dc2d558c 100644
--- a/frontend/src/views/chart/components/compare/CustomSortEdit.vue
+++ b/frontend/src/views/chart/components/compare/CustomSortEdit.vue
@@ -10,7 +10,10 @@
>
- {{ item }}
+
+
+ {{ item }}
+
@@ -73,15 +76,25 @@ export default {
}
.item-dimension {
- padding: 2px 10px;
+ padding: 2px;
margin: 2px 2px 0 2px;
border: solid 1px #eee;
text-align: left;
color: #606266;
/*background-color: rgba(35,46,64,.05);*/
background-color: white;
- display: block;
- word-break: break-all;
+ display: flex;
+ align-items: center;
+}
+
+.item-icon{
+ cursor: move;
+ margin: 0 2px;
+}
+
+.item-span{
+ display: inline-block;
+ width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
diff --git a/frontend/src/views/chart/components/drag-item/DimensionItem.vue b/frontend/src/views/chart/components/drag-item/DimensionItem.vue
index 272788a375..08387ecede 100644
--- a/frontend/src/views/chart/components/drag-item/DimensionItem.vue
+++ b/frontend/src/views/chart/components/drag-item/DimensionItem.vue
@@ -1,5 +1,6 @@
-
+
+
@@ -33,7 +34,7 @@
{{ $t('chart.none') }}
{{ $t('chart.asc') }}
{{ $t('chart.desc') }}
- {{ $t('chart.custom_sort') }}...
+ {{ $t('chart.custom_sort') }}...