jufubao-base 1.0.184 → 1.0.185
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
|
@@ -27,9 +27,22 @@ export default {
|
|
|
27
27
|
{label: '悬浮', value: 'fixed'},
|
|
28
28
|
],
|
|
29
29
|
inline: false,
|
|
30
|
-
notice:
|
|
30
|
+
notice: `使用悬浮布局时,链接数量不可超过<span style="color:red"> 3 </span>个,超出部分不显示, 并且把该组件移动到最后`
|
|
31
31
|
},
|
|
32
|
-
|
|
32
|
+
{
|
|
33
|
+
label: '默认是否收起:',
|
|
34
|
+
ele: 'xd-radio',
|
|
35
|
+
valueKey: 'isNotExpand',
|
|
36
|
+
groupKey:'content',
|
|
37
|
+
value: data['isNotExpand'] || 'Y',
|
|
38
|
+
className: 'input80',
|
|
39
|
+
list: [
|
|
40
|
+
{label: '是', value: 'Y'},
|
|
41
|
+
{label: '否', value: 'N'},
|
|
42
|
+
],
|
|
43
|
+
hidden: data['is_layout'] !=='fixed'
|
|
44
|
+
},
|
|
45
|
+
data['is_layout'] ==='fixed' && 0 && {
|
|
33
46
|
label: '自定义名称:',
|
|
34
47
|
ele: 'el-input',
|
|
35
48
|
type: 'text',
|
|
@@ -68,16 +81,16 @@ export default {
|
|
|
68
81
|
},
|
|
69
82
|
},
|
|
70
83
|
{
|
|
71
|
-
label: '
|
|
84
|
+
label: '行间距:',
|
|
72
85
|
ele: 'el-input',
|
|
73
86
|
groupKey:'style',
|
|
74
87
|
type: 'number',
|
|
75
88
|
valueKey: 'padding',
|
|
76
89
|
value: data.padding===undefined? data.padding: '',
|
|
77
|
-
placeholder: '
|
|
90
|
+
placeholder: '请输入行间距',
|
|
78
91
|
className: 'input60',
|
|
79
92
|
inline: false,
|
|
80
|
-
notice: '
|
|
93
|
+
notice: '设置行间距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
81
94
|
},
|
|
82
95
|
{
|
|
83
96
|
label: '外边距设置:',
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
>弹窗模式方便编辑(占位),在线上此模块不显</view>
|
|
51
51
|
</template>
|
|
52
52
|
<xd-fast-nav
|
|
53
|
+
:is-not-expand="isNotExpand === 'Y'"
|
|
53
54
|
:list="listNave"
|
|
54
55
|
:color="mainColor"
|
|
55
56
|
:is-preview="isPreview"
|
|
@@ -86,6 +87,7 @@
|
|
|
86
87
|
list: [],
|
|
87
88
|
backgroundColor: '',
|
|
88
89
|
isPreview:false,
|
|
90
|
+
isNotExpand: 'Y',
|
|
89
91
|
|
|
90
92
|
//基础信息
|
|
91
93
|
background: '#fff',
|
|
@@ -104,12 +106,7 @@
|
|
|
104
106
|
is_border_c: '',
|
|
105
107
|
|
|
106
108
|
//其他
|
|
107
|
-
margin: {
|
|
108
|
-
top: 0,
|
|
109
|
-
left: 0,
|
|
110
|
-
right: 0,
|
|
111
|
-
bottom: 0
|
|
112
|
-
},
|
|
109
|
+
margin: {},
|
|
113
110
|
padding: 20, //间距
|
|
114
111
|
}
|
|
115
112
|
},
|
|
@@ -157,7 +154,7 @@
|
|
|
157
154
|
handleClick(item){
|
|
158
155
|
if(item.path && item.path.value) {
|
|
159
156
|
this.$xdUniHelper.navigateTo({
|
|
160
|
-
url : `${item.path.value}`
|
|
157
|
+
url : `${item.path.value}`
|
|
161
158
|
})
|
|
162
159
|
}
|
|
163
160
|
},
|
|
@@ -173,7 +170,7 @@
|
|
|
173
170
|
this.iconColor = getContainerPropsValue(container, 'content.iconColor', '#999');
|
|
174
171
|
this.padding = getContainerPropsValue(container, 'content.padding', 20);
|
|
175
172
|
this.is_layout = getContainerPropsValue(container, 'content.is_layout', 'noraml');
|
|
176
|
-
this.fastName = getContainerPropsValue(container, 'content.fastName', '快速导航');
|
|
173
|
+
//this.fastName = getContainerPropsValue(container, 'content.fastName', '快速导航');
|
|
177
174
|
this.is_border = getContainerPropsValue(container, 'content.is_border', 'N');
|
|
178
175
|
this.is_border_c = getContainerPropsValue(container, 'content.is_border_c', '#fff');
|
|
179
176
|
this.is_border_w = getContainerPropsValue(container, 'content.is_border_w', 2);
|
|
@@ -187,6 +184,7 @@
|
|
|
187
184
|
this.margin = getContainerPropsValue(container, 'content.margin', {top: 0, left: 0, right: 0, bottom: 0});
|
|
188
185
|
this.subColor = getContainerPropsValue(container, 'content.textSubColor', '#000');
|
|
189
186
|
this.fontSubSize = getContainerPropsValue(container, 'content.fontSubSize', 24);
|
|
187
|
+
this.isNotExpand = getContainerPropsValue(container, 'content.isNotExpand', 'Y');
|
|
190
188
|
if(this.is_layout === 'fixed') {
|
|
191
189
|
this.listNave = this.list.map(item=>{
|
|
192
190
|
let {appValue,path} = item.path
|
|
@@ -212,6 +210,8 @@
|
|
|
212
210
|
jumpUrl = `${jumpUrl}${bus}`;
|
|
213
211
|
return { name: item.name, path: jumpUrl, icon: item.icon, size: item.size }
|
|
214
212
|
}
|
|
213
|
+
}).filter((item,index)=>{
|
|
214
|
+
return index < 3
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
217
|
|
|
@@ -75,7 +75,12 @@
|
|
|
75
75
|
return {}
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
|
+
isNotExpand:{
|
|
79
|
+
type:Boolean,
|
|
80
|
+
default: true
|
|
81
|
+
},
|
|
78
82
|
},
|
|
83
|
+
|
|
79
84
|
data(){
|
|
80
85
|
return {
|
|
81
86
|
uizIndex: 100,
|
|
@@ -83,6 +88,11 @@
|
|
|
83
88
|
lineColor: '#fff'
|
|
84
89
|
}
|
|
85
90
|
},
|
|
91
|
+
watch:{
|
|
92
|
+
isNotExpand(value){
|
|
93
|
+
this.close = value;
|
|
94
|
+
}
|
|
95
|
+
},
|
|
86
96
|
|
|
87
97
|
computed:{
|
|
88
98
|
uiTop(){
|
|
@@ -92,6 +102,8 @@
|
|
|
92
102
|
|
|
93
103
|
created() {
|
|
94
104
|
this.lineColor = Color(this.color).alpha(0.2).toString();
|
|
105
|
+
this.close = this.isNotExpand;
|
|
106
|
+
|
|
95
107
|
},
|
|
96
108
|
|
|
97
109
|
methods: {
|