浏览代码

图片超出处理

lifanagju_citu 4 月之前
父节点
当前提交
a7c0aa5dec
共有 2 个文件被更改,包括 8 次插入1 次删除
  1. 2 1
      components.d.ts
  2. 6 0
      src/views/mall/components/details/describe.vue

+ 2 - 1
components.d.ts

@@ -29,6 +29,7 @@ declare module 'vue' {
     CtTextField: typeof import('./src/components/CtVuetify/CtTextField/index.vue')['default']
     DatePicker: typeof import('./src/components/DatePicker/index.vue')['default']
     Echarts: typeof import('./src/components/Echarts/index.vue')['default']
+    ElCascader: typeof import('element-plus/es')['ElCascader']
     ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
     Empty: typeof import('./src/components/Empty/index.vue')['default']
     File: typeof import('./src/components/Upload/file.vue')['default']
@@ -42,7 +43,7 @@ declare module 'vue' {
     IndustryTypeCard: typeof import('./src/components/industryTypeCard/index.vue')['default']
     Info: typeof import('./src/components/Enterprise/info.vue')['default']
     InitPay: typeof import('./src/components/personalRecharge/initPay.vue')['default']
-    Item: typeof import('./src/components/Position/item.vue')['default']
+    Item: typeof import('./src/components/PositionLongStrip/item.vue')['default']
     JobTypeCard: typeof import('./src/components/jobTypeCard/index.vue')['default']
     ListGroup: typeof import('./src/components/FormUI/nestedListGroup/components/listGroup.vue')['default']
     Loading: typeof import('./src/components/Loading/index.vue')['default']

+ 6 - 0
src/views/mall/components/details/describe.vue

@@ -16,4 +16,10 @@ const props = defineProps({
 // console.log('content:', props.content)
 </script>
 <style lang="scss" scoped>
+.detailsBox {
+  width: 100%;
+}
+:deep(img) {
+  max-width: 100%;
+}
 </style>