tangning 1 mēnesi atpakaļ
vecāks
revīzija
b73de04281

+ 4 - 2
src/components/path/sign.vue

@@ -65,6 +65,7 @@ let currentPoints = props.path.points;
 let changPointsTimeout: any;
 path.bus.on("changePoints", (points) => {
   clearTimeout(changPointsTimeout);
+  console.log('points', points)
   currentPoints = points.map((p, ndx) => ({
     name: p.name,
     position: { ...p.position },
@@ -79,8 +80,8 @@ path.bus.on("changeLineHeight", (val) => {
 });
 
 watchEffect(() => {
+  console.log('changePointDisplay', props.path)
   path.changeName(props.path.name);
-  path.changeHide(props.path.hide || false);
 });
 
 watch(
@@ -100,9 +101,10 @@ watchEffect(() => {
   for (const point of props.path.points) {
     watchEffect(() => {
       const ndx = props.path.points.indexOf(point);
-      console.log(ndx, 'watchEffect', ~ndx);
+      console.log(ndx, 'watchEffect', ~ndx, props.path);
       if (~ndx) {
         path.changePointName(ndx, point.name);
+        path.changePointDisplay && path.changePointDisplay(ndx, props.path.show || false);
         currentPoints[ndx].name = point.name;
       }
     });

+ 8 - 2
src/views/setting/back-item.vue

@@ -22,12 +22,18 @@ const emit = defineEmits(['del']);
   img {
     display: block;
     height: 88px;
+    width: 88px;
+    object-fit: cover;
     cursor: pointer;
     outline: 2px solid transparent;
     transition: all 0.3s;
     border-radius: 4px;
   }
-
+  &:hover{
+    .iconclose {
+      display: block;
+    }
+  }
   .iconfonts {
     display: flex;
     align-items: center;
@@ -58,7 +64,7 @@ const emit = defineEmits(['del']);
 .iconclose{
   font-size: 14px !important;
   height: 14px !important;
-
+  display: none;
   position: absolute;
   right: 0;
   top: 0;

+ 3 - 2
src/views/tagging/hot/edit.vue

@@ -51,7 +51,7 @@
         v-model="tagging.desc"
         :maxlength="200"
       /> -->
-      <editorInput :placeholder="defStyleType.id === type ? '描述:' : '特征描述:'" v-model="tagging.desc" />
+      <editorInput :placeholder="defStyleType.id === type ? '描述:' : '特征描述:'" v-model:value="tagging.desc" />
 
       <template v-if="defStyleType.id !== type">
         <ui-input
@@ -179,7 +179,7 @@
         <div class="edit-hot">
           <a @click="submitHandler">
             <ui-icon type="nav-edit" />
-            确定
+            确定1
           </a>
         </div>
       </div>
@@ -304,6 +304,7 @@ if (!activeStyle.value && defaultStyle.value) {
 const type = ref(activeStyle.value ? activeStyle.value.typeId : defStyleType.id);
 
 const submitHandler = () => {
+  console.log(tagging.value);
   if (activeStyle.value?.typeId !== type.value) {
     Message.error("请选择图标样式!");
   } else if (!tagging.value.title.trim()) {

+ 0 - 1
src/views/tagging/hot/index.vue

@@ -94,7 +94,6 @@ const saveHandler = (tagging: Tagging) => {
   } else {
     Object.assign(editTagging.value, tagging);
   }
-
   editTagging.value = null;
 };