|
@@ -46,10 +46,10 @@
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="dialog" style="z-index: 2000" v-if="isShowSelectionWindow">
|
|
<div class="dialog" style="z-index: 2000" v-if="isShowSelectionWindow">
|
|
|
- <Table2
|
|
|
|
|
|
|
+ <MaterialSelectorForEditor
|
|
|
title="选择素材"
|
|
title="选择素材"
|
|
|
@cancle="isShowSelectionWindow = false"
|
|
@cancle="isShowSelectionWindow = false"
|
|
|
- @submit="handleSubmitFromTableSelect2"
|
|
|
|
|
|
|
+ @submit="handleSubmitFromMaterialSelector"
|
|
|
:selectableType="['image']"
|
|
:selectableType="['image']"
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
@@ -58,7 +58,7 @@
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import TooltipInEditor from '@/components/TooltipInEditor.vue'
|
|
import TooltipInEditor from '@/components/TooltipInEditor.vue'
|
|
|
-import Table2 from "@/components/tableSelect2.vue";
|
|
|
|
|
|
|
+import MaterialSelectorForEditor from "@/components/materialSelectorForEditor.vue";
|
|
|
import { mapGetters } from "vuex";
|
|
import { mapGetters } from "vuex";
|
|
|
import Switcher from "@/components/shared/Switcher";
|
|
import Switcher from "@/components/shared/Switcher";
|
|
|
import RangeItem from "@/components/rangeItem/index.vue";
|
|
import RangeItem from "@/components/rangeItem/index.vue";
|
|
@@ -67,7 +67,7 @@ import SelectedImage from "@/components/selectedImageInEditor.vue";
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
TooltipInEditor,
|
|
TooltipInEditor,
|
|
|
- Table2,
|
|
|
|
|
|
|
+ MaterialSelectorForEditor,
|
|
|
Switcher,
|
|
Switcher,
|
|
|
RangeItem,
|
|
RangeItem,
|
|
|
SelectedImage,
|
|
SelectedImage,
|
|
@@ -93,7 +93,7 @@ export default {
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- handleSubmitFromTableSelect2(selected) {
|
|
|
|
|
|
|
+ handleSubmitFromMaterialSelector(selected) {
|
|
|
if (this.selectingFor === 'pc') {
|
|
if (this.selectingFor === 'pc') {
|
|
|
this.info.pcIcon = selected[0].icon
|
|
this.info.pcIcon = selected[0].icon
|
|
|
} else if (this.selectingFor === 'mobile') {
|
|
} else if (this.selectingFor === 'mobile') {
|