|
|
@@ -6,26 +6,48 @@
|
|
|
<p class="sub-desc">这里汇总了Nut UI 相关的所有的资源</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <!-- 设计资源 -->
|
|
|
<div class="resource-content">
|
|
|
- <div class="resource-block">
|
|
|
+ <div class="resource-block" v-if="data.articleList.length === 0">
|
|
|
<h4 class="sub-title">设计资源</h4>
|
|
|
- <p class="sub-desc">这里提供 NUT UI 相关设计资源和设计工具的下载,更多设计资源正在整理和完善中。你可以在这个<span class="sub-red">地址</span>中反馈对新版本 Sketch Symbols 组件的意见。</p>
|
|
|
+ <p class="sub-desc"
|
|
|
+ >这里提供 NUT UI
|
|
|
+ 相关设计资源和设计工具的下载,更多设计资源正在整理和完善中。你可以在这个<span
|
|
|
+ class="sub-red"
|
|
|
+ >地址</span
|
|
|
+ >中反馈对新版本 Sketch Symbols 组件的意见。</p
|
|
|
+ >
|
|
|
<div class="no-data">
|
|
|
<img class="nodata-img-joy" src="../../assets/images/img-joy.png" />
|
|
|
<p class="nodata-desc">敬请期待</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="resource-block">
|
|
|
+ <div class="resource-block" v-else>
|
|
|
<h4 class="sub-title">设计资源</h4>
|
|
|
- <p class="sub-desc">想要了解 Nut Ui 设计体系背后的故事?如何才能更好的应用 Ant Design?你可以查阅下述我们为你精挑细选的文章。也欢迎关注Nut Ui 官方专栏,这里常有关于Nut Ui 设计体系下相关话题内容的最新分享和讨论.</p>
|
|
|
+ <p class="sub-desc"
|
|
|
+ >想要了解 Nut Ui 设计体系背后的故事?如何才能更好的应用 Ant
|
|
|
+ Design?你可以查阅下述我们为你精挑细选的文章。也欢迎关注Nut Ui
|
|
|
+ 官方专栏,这里常有关于Nut Ui 设计体系下相关话题内容的最新分享和讨论.</p
|
|
|
+ >
|
|
|
<div class="tab-box">
|
|
|
<div class="tab-hd">
|
|
|
- <div class="tab-hd-item" :class="{ active: data.activeIndex === index }" v-for="(item, index) in data.tabData" :key="index" @click="clickTab(index)">
|
|
|
+ <div
|
|
|
+ class="tab-hd-item"
|
|
|
+ :class="{ active: data.activeIndex === index }"
|
|
|
+ v-for="(item, index) in data.tabData"
|
|
|
+ :key="index"
|
|
|
+ @click="clickTab(index)"
|
|
|
+ >
|
|
|
{{ item.title }}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="tab-bd" v-show="data.activeIndex === 0">
|
|
|
- <div class="design-item" v-for="item in data.articleList" :key="item.id">
|
|
|
+ <div
|
|
|
+ class="design-item"
|
|
|
+ v-for="item in data.articleList"
|
|
|
+ :key="item.id"
|
|
|
+ @click="toLink(item.id)"
|
|
|
+ >
|
|
|
<img class="img-design" :src="item.cover_image" />
|
|
|
<p class="design-title">{{ item.title }}</p>
|
|
|
</div>
|
|
|
@@ -33,18 +55,27 @@
|
|
|
<div class="tab-bd" v-show="data.activeIndex === 1">
|
|
|
<div class="design-item">
|
|
|
<img class="img-design" src="../../assets/images/img-article.jpg" />
|
|
|
- <p class="design-title">NutUI 落地实践-让组件库服务慧采协同采购业务</p>
|
|
|
+ <p class="design-title"
|
|
|
+ >NutUI 落地实践-让组件库服务慧采协同采购业务</p
|
|
|
+ >
|
|
|
</div>
|
|
|
<div class="design-item">
|
|
|
<img class="img-design" src="../../assets/images/img-article.jpg" />
|
|
|
- <p class="design-title">NutUI 落地实践-让组件库服务慧采协同采购业务</p>
|
|
|
+ <p class="design-title"
|
|
|
+ >NutUI 落地实践-让组件库服务慧采协同采购业务</p
|
|
|
+ >
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <!-- 社区文章 -->
|
|
|
<div class="resource-block">
|
|
|
<h4 class="sub-title">社区文章</h4>
|
|
|
- <p class="sub-desc">想要了解 Nut Ui 设计体系背后的故事?如何才能更好的应用 Nut Ui?你可以查阅下述我们为你精挑细选的文章。也欢迎关注Nut Ui 官方专栏,这里常有关于Nut Ui 设计体系下相关话题内容的最新分享和讨论.</p>
|
|
|
+ <p class="sub-desc"
|
|
|
+ >想要了解 Nut Ui 设计体系背后的故事?如何才能更好的应用 Nut
|
|
|
+ Ui?你可以查阅下述我们为你精挑细选的文章。也欢迎关注Nut Ui
|
|
|
+ 官方专栏,这里常有关于Nut Ui 设计体系下相关话题内容的最新分享和讨论.</p
|
|
|
+ >
|
|
|
<ul class="article-box">
|
|
|
<li class="article-item">
|
|
|
<a class="article-link">
|
|
|
@@ -63,7 +94,11 @@
|
|
|
</template>
|
|
|
<script lang="ts">
|
|
|
import { defineComponent, onMounted, reactive } from 'vue';
|
|
|
-import { onBeforeRouteUpdate, RouteLocationNormalized, useRoute } from 'vue-router';
|
|
|
+import {
|
|
|
+ onBeforeRouteUpdate,
|
|
|
+ RouteLocationNormalized,
|
|
|
+ useRoute
|
|
|
+} from 'vue-router';
|
|
|
import Header from '@/sites/doc/components/Header.vue';
|
|
|
import Footer from '@/sites/doc/components/Footer.vue';
|
|
|
import { currentRoute } from '@/sites/assets/util/ref';
|
|
|
@@ -81,18 +116,18 @@ export default defineComponent({
|
|
|
tabData: [
|
|
|
{
|
|
|
title: '全部文章'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '性能体验'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '性能体验1'
|
|
|
}
|
|
|
// {
|
|
|
// title: '性能体验'
|
|
|
// },
|
|
|
// {
|
|
|
// title: '性能体验'
|
|
|
- // },
|
|
|
- // {
|
|
|
- // title: '性能体验'
|
|
|
- // },
|
|
|
- // {
|
|
|
- // title: '性能体验'
|
|
|
// }
|
|
|
],
|
|
|
activeIndex: 0
|
|
|
@@ -119,9 +154,13 @@ export default defineComponent({
|
|
|
const clickTab = (index: number) => {
|
|
|
data.activeIndex = index;
|
|
|
};
|
|
|
+ const toLink = (id: number) => {
|
|
|
+ window.open('//jelly.jd.com/article/' + id);
|
|
|
+ };
|
|
|
return {
|
|
|
data,
|
|
|
- clickTab
|
|
|
+ clickTab,
|
|
|
+ toLink
|
|
|
};
|
|
|
}
|
|
|
});
|
|
|
@@ -202,7 +241,7 @@ $mainRed: #fa685d;
|
|
|
display: flex;
|
|
|
width: 100%;
|
|
|
flex-wrap: wrap;
|
|
|
- justify-content: space-between;
|
|
|
+ justify-content: flex-start;
|
|
|
}
|
|
|
&-hd-item {
|
|
|
margin-right: 40px;
|
|
|
@@ -221,7 +260,12 @@ $mainRed: #fa685d;
|
|
|
.design {
|
|
|
&-item {
|
|
|
width: 280px;
|
|
|
+ margin-right: 26px;
|
|
|
margin-bottom: 45px;
|
|
|
+ cursor: pointer;
|
|
|
+ &:nth-child(4n) {
|
|
|
+ margin-right: 0;
|
|
|
+ }
|
|
|
.img-design {
|
|
|
width: 280px;
|
|
|
height: 170px;
|