bri-components 1.2.75 → 1.2.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
<Tabs
|
|
3
3
|
:class="['DshTabs', `DshTabs-${mode}`]"
|
|
4
4
|
v-model="curTabKey"
|
|
5
|
+
:type="['button', 'card'].includes(mode) ? 'card' : undefined"
|
|
5
6
|
:animated="false"
|
|
6
7
|
>
|
|
7
8
|
<TabPane
|
|
@@ -50,7 +51,7 @@
|
|
|
50
51
|
type: String,
|
|
51
52
|
default: "creative",
|
|
52
53
|
validator (val) {
|
|
53
|
-
return ["creative", "tradition", "page", "line"].includes(val);
|
|
54
|
+
return ["creative", "tradition", "page", "button", "card", "line"].includes(val);
|
|
54
55
|
}
|
|
55
56
|
},
|
|
56
57
|
keyField: {
|
|
@@ -103,7 +104,7 @@
|
|
|
103
104
|
? (h) => {
|
|
104
105
|
return h("div", {
|
|
105
106
|
style: {
|
|
106
|
-
padding: "0px 16px"
|
|
107
|
+
padding: this.mode === "button" ? undefined : "0px 16px"
|
|
107
108
|
}
|
|
108
109
|
}, tabItem.name);
|
|
109
110
|
}
|
|
@@ -116,14 +117,12 @@
|
|
|
116
117
|
<style lang="less">
|
|
117
118
|
.DshTabs {
|
|
118
119
|
width: 100%;
|
|
119
|
-
height: 100%;
|
|
120
|
+
// height: 100%;
|
|
120
121
|
display: flex;
|
|
121
122
|
flex-direction: column;
|
|
122
123
|
|
|
123
124
|
&-item {
|
|
124
|
-
|
|
125
|
-
height: 100%;
|
|
126
|
-
padding-top: 20px;
|
|
125
|
+
|
|
127
126
|
}
|
|
128
127
|
|
|
129
128
|
.extra {
|
|
@@ -212,6 +211,10 @@
|
|
|
212
211
|
}
|
|
213
212
|
}
|
|
214
213
|
}
|
|
214
|
+
|
|
215
|
+
&-content {
|
|
216
|
+
padding-top: 20px;
|
|
217
|
+
}
|
|
215
218
|
}
|
|
216
219
|
}
|
|
217
220
|
|
|
@@ -358,6 +361,7 @@
|
|
|
358
361
|
&-content {
|
|
359
362
|
flex: 1;
|
|
360
363
|
min-height: 0px;
|
|
364
|
+
padding-top: 20px;
|
|
361
365
|
}
|
|
362
366
|
|
|
363
367
|
&-context-menu {
|
|
@@ -366,6 +370,51 @@
|
|
|
366
370
|
}
|
|
367
371
|
}
|
|
368
372
|
|
|
373
|
+
// 按钮式、卡片式
|
|
374
|
+
&-button,
|
|
375
|
+
&-card {
|
|
376
|
+
&.ivu-tabs.ivu-tabs-card {
|
|
377
|
+
& > .ivu-tabs-bar {
|
|
378
|
+
border: none;
|
|
379
|
+
margin-bottom: 0px;
|
|
380
|
+
|
|
381
|
+
.ivu-tabs-nav-container {
|
|
382
|
+
height: 33px;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.ivu-tabs-tab {
|
|
386
|
+
height: 28px;
|
|
387
|
+
background-color: transparent;
|
|
388
|
+
color: @contentColor;
|
|
389
|
+
border-radius: 4px;
|
|
390
|
+
border: none;
|
|
391
|
+
margin: 2px;
|
|
392
|
+
padding: 3px 16px;
|
|
393
|
+
line-height: 22px;
|
|
394
|
+
|
|
395
|
+
&-active {
|
|
396
|
+
background-color: #fff;
|
|
397
|
+
color: @textColor;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
&:hover {
|
|
401
|
+
color: @textColor;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.ivu-tabs-ink-bar {
|
|
406
|
+
background-color: transparent;
|
|
407
|
+
display: none;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.ivu-tabs-nav {
|
|
412
|
+
background-color: @borderColor;
|
|
413
|
+
border-radius: @borderRadius;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
|
|
369
418
|
// 下划线
|
|
370
419
|
&-line {
|
|
371
420
|
.ivu-tabs {
|