|
@@ -35,7 +35,7 @@
|
|
>{{ item }}</span>
|
|
>{{ item }}</span>
|
|
</div>
|
|
</div>
|
|
<div class="card-info-item price">
|
|
<div class="card-info-item price">
|
|
- <Price :price="price" />
|
|
|
|
|
|
+ <slot name="price"><Price :price="price" /></slot>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -58,7 +58,7 @@
|
|
>{{ item }}</span>
|
|
>{{ item }}</span>
|
|
</div>
|
|
</div>
|
|
<div class="c-f-right flex-r-c">
|
|
<div class="c-f-right flex-r-c">
|
|
- <Price :price="price" />
|
|
|
|
|
|
+ <slot name="price"><Price :price="price" /></slot>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -68,7 +68,7 @@
|
|
<script>
|
|
<script>
|
|
import { Image } from 'element-ui'
|
|
import { Image } from 'element-ui'
|
|
import Price from '@/components/doc-item-card/Price'
|
|
import Price from '@/components/doc-item-card/Price'
|
|
-import { replaceKeyword } from '@/utils/'
|
|
|
|
|
|
+import { replaceKeyword, docTypeConvert } from '@/utils/'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'docs-card',
|
|
name: 'docs-card',
|
|
@@ -121,7 +121,8 @@ export default {
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
docTypeIcon () {
|
|
docTypeIcon () {
|
|
- return `el-icon-jy-${this.docType}`
|
|
|
|
|
|
+ const t = docTypeConvert(this.docType)
|
|
|
|
+ return `el-icon-jy-${t}`
|
|
},
|
|
},
|
|
hightLightTitle () {
|
|
hightLightTitle () {
|
|
return replaceKeyword(this.title, this.highlightKey, [
|
|
return replaceKeyword(this.title, this.highlightKey, [
|