ananzhusen hai 1 ano
pai
achega
24d596fd10
Modificáronse 4 ficheiros con 27 adicións e 12 borrados
  1. 3 3
      index.html
  2. 1 7
      src/services/defaults.ts
  3. 5 0
      src/styles/tdesign.css
  4. 18 2
      src/views/components/View.vue

+ 3 - 3
index.html

@@ -22,12 +22,12 @@
         fill: currentColor;
         overflow: hidden;
       }
-    </style>
+    </style> 
     <link
-      href="//at.alicdn.com/t/c/font_4042197_dopqcs38fz5.css"
+      href="//at.alicdn.com/t/c/font_4042197_h5hgbmc7d75.css"
       rel="stylesheet"
     />
-    <script src="//at.alicdn.com/t/c/font_4042197_8nkauko228g.js"></script>
+    <script src="//at.alicdn.com/t/c/font_4042197_h5hgbmc7d75.js"></script>
   </head>
   <body>
     <div id="app"></div>

+ 1 - 7
src/services/defaults.ts

@@ -1232,11 +1232,6 @@ export const formComponents = [
                 label: '显示格式',
                 type: 'string',
               },
-              {
-                key: 'borderWidth',
-                label: '显示格式',
-                type: 'string',
-              },
             ],
           },
         },
@@ -1278,7 +1273,7 @@ export const formComponents = [
           height: 40,
           hiddenText: true,
           direction: 'horizontal',
-          labelAlign: 'left', //left/right/alternate/top/bottom
+          labelAlign: 'top', //left/right/alternate/top/bottom
           mode: 'alternate', //alternate
           data: [
             {
@@ -1456,7 +1451,6 @@ export const formComponents = [
           background: '#282E3B',
           textColor: '#FFFFFF66',
           hoverTextColor: '#FFFFFF66',
-          // borderWidth:1,
           data: [
             {
               title: '列表标题',

+ 5 - 0
src/styles/tdesign.css

@@ -616,3 +616,8 @@
 .t-image__wrapper {
   background: none;
 }
+
+.t-image__wrapper--shape-square {
+  width: 100%;
+  height: 100%;
+}

+ 18 - 2
src/views/components/View.vue

@@ -241,8 +241,24 @@
         :content="canScale ? '允许缩放' : '禁止缩放'"
         placement="bottom"
       >
-        <t-icon v-if="canScale" name="unfold-more" @click="onCanScale(false)" />
-        <t-icon v-else name="unfold-less" @click="onCanScale(true)" />
+        <a>
+          <svg
+            v-if="canScale"
+            class="l-icon"
+            aria-hidden="true"
+            @click="onCanScale(false)"
+          >
+            <use xlink:href="#l-suofang"></use>
+          </svg>
+          <svg
+            v-else
+            class="l-icon"
+            aria-hidden="true"
+            @click="onCanScale(true)"
+          >
+            <use xlink:href="#l-jinzhisuofang"></use>
+          </svg>
+        </a>
       </t-tooltip>
       <t-tooltip :content="isLock ? '浏览模式' : '编辑模式'" placement="bottom">
         <a>