Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
京东前端
nutui
提交
d3c73e5e
N
nutui
项目概览
京东前端
/
nutui
通知
37
Star
4
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
nutui
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d3c73e5e
编写于
12月 14, 2020
作者:
G
guoxiaoxiao8
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'next' of
https://github.com/jdf2e/nutui
into next
上级
c8fcb8b4
c9d54551
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
20 addition
and
18 deletion
+20
-18
src/packages/tab/index.vue
src/packages/tab/index.vue
+18
-16
src/packages/uploader/index.scss
src/packages/uploader/index.scss
+1
-1
src/styles/variables.scss
src/styles/variables.scss
+1
-1
未找到文件。
src/packages/tab/index.vue
浏览文件 @
d3c73e5e
<
template
>
<
div
:class=
"[direction === 'vertical' ? 'vertical-tab' : 'nutui-tab']"
>
<
div
class=
"tab-title"
ref=
"navlist"
>
<
div
<
view
:class=
"[direction === 'vertical' ? 'vertical-tab' : 'nutui-tab']"
>
<
view
class=
"tab-title"
ref=
"navlist"
>
<
view
:class=
"['tab-title-box',
{ 'nut-tab-active': activeIndex == index }]"
v-for="(item, index) in titles"
:key="index"
...
...
@@ -9,15 +9,15 @@
>
{{
item
.
title
}}
<TabTitle
v-bind:slots=
"item.content"
v-if=
"item.content"
></TabTitle>
</
div
>
<
div
class=
"underline"
></div
>
</
div
>
<
div
:class=
"['nutui-tab-swiper', swiperClassName]"
>
<
div
:class=
"['swiper-wrapper',
{ 'swiper-no-swiping': noSwiping }]">
</
view
>
<
view
class=
"underline"
></view
>
</
view
>
<
view
:class=
"['nutui-tab-swiper', swiperClassName]"
>
<
view
:class=
"['swiper-wrapper',
{ 'swiper-no-swiping': noSwiping }]">
<slot></slot>
</
div
>
</
div
>
</
div
>
</
view
>
</
view
>
</
view
>
</
template
>
<
script
lang=
"ts"
>
import
{
PropType
,
reactive
,
ref
,
onMounted
,
watch
,
VNode
}
from
'
vue
'
;
...
...
@@ -26,7 +26,7 @@ const { create } = createComponent('tab');
import
TabTitle
from
'
./tabTitle
'
;
import
Swiper
from
'
swiper
'
;
import
'
swiper/dist/css/swiper.min.css
'
;
import
{
extend
}
from
'
@vue/shared
'
;
//
import { extend } from '@vue/shared';
type
TabDirection
=
'
horizontal
'
|
'
vertical
'
;
interface
DataTitle
{
...
...
@@ -34,6 +34,10 @@ interface DataTitle {
content
?:
VNode
[];
}
type
currChild
=
{
header
:
Function
;
}
&
VNode
[];
export
default
create
({
props
:
{
defaultIndex
:
{
...
...
@@ -139,10 +143,8 @@ export default create({
?
item
.
props
[
'
tab-title
'
]
:
''
,
content
:
//@ts-ignore:已经做了header是否存在的判断
item
&&
item
?.
children
?.
header
?
//@ts-ignore:已经做了header是否存在的判断
(
item
.
children
as
VNode
[]).
header
()
item
.
children
&&
(
item
.
children
as
currChild
).
header
?
(
item
.
children
as
currChild
).
header
()
:
null
});
});
...
...
src/packages/uploader/index.scss
浏览文件 @
d3c73e5e
...
...
@@ -5,7 +5,7 @@
.upload
{
position
:
relative
;
background
:
$uploader-ba
ba
ckground
;
background
:
$uploader-background
;
width
:
$uploader-width
;
height
:
$uploader-height
;
display
:
flex
;
...
...
src/styles/variables.scss
浏览文件 @
d3c73e5e
...
...
@@ -101,7 +101,7 @@ $icon-line-height: 20px;
$uploader-width
:
100px
;
$uploader-height
:
100px
;
$uploader-ba
ba
ckground
:
#f7f8fa
;
$uploader-background
:
#f7f8fa
;
// inputnumber
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录