diff --git a/core/core-frontend/src/custom-component/picture-group/PictureItem.vue b/core/core-frontend/src/custom-component/picture-group/PictureItem.vue new file mode 100644 index 0000000000..d50f91cf19 --- /dev/null +++ b/core/core-frontend/src/custom-component/picture-group/PictureItem.vue @@ -0,0 +1,65 @@ + + + + + diff --git a/core/core-frontend/src/custom-component/picture-group/PictureOptionPrefix.vue b/core/core-frontend/src/custom-component/picture-group/PictureOptionPrefix.vue new file mode 100644 index 0000000000..2dd329338e --- /dev/null +++ b/core/core-frontend/src/custom-component/picture-group/PictureOptionPrefix.vue @@ -0,0 +1,31 @@ + + + + + diff --git a/core/core-frontend/src/views/chart/components/editor/editor-senior/components/Threshold.vue b/core/core-frontend/src/views/chart/components/editor/editor-senior/components/Threshold.vue index d18e1befdf..f2992ad646 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-senior/components/Threshold.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-senior/components/Threshold.vue @@ -907,7 +907,7 @@ span { align-items: center; flex-wrap: nowrap; :nth-child(1) { - width: 48px !important; + width: 48px; } :nth-child(2) { width: 40px !important; @@ -985,7 +985,7 @@ span { border-radius: 2px; } .pic-group-img { - width: 100%; - height: 100%; + width: 100% !important; + height: 100% !important; } diff --git a/core/core-frontend/src/views/chart/components/editor/editor-senior/components/dialog/PictureGroupThresholdEdit.vue b/core/core-frontend/src/views/chart/components/editor/editor-senior/components/dialog/PictureGroupThresholdEdit.vue index a369b1d1df..8611974d78 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-senior/components/dialog/PictureGroupThresholdEdit.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-senior/components/dialog/PictureGroupThresholdEdit.vue @@ -7,6 +7,8 @@ import { useI18n } from '@/hooks/web/useI18n' import { COLOR_PANEL } from '../../../util/chart' import { fieldType } from '@/utils/attr' import { iconFieldMap } from '@/components/icon-group/field-list' +import PictureItem from '@/custom-component/picture-group/PictureItem.vue' +import PictureOptionPrefix from '@/custom-component/picture-group/PictureOptionPrefix.vue' const { t } = useI18n() @@ -429,13 +431,25 @@ init() >
展示图片
- + + + > + + @@ -597,3 +611,30 @@ span { padding: 0 11px; } + +