jufubao-mall 2.0.23-beta1 → 2.0.23
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 +1 -1
- package/src/components/JfbMallNetworkMedia/Api.js +0 -58
- package/src/components/JfbMallNetworkMedia/Attr.js +0 -20
- package/src/components/JfbMallNetworkMedia/JfbMallNetworkMedia.vue +0 -84
- package/src/components/JfbMallNetworkMedia/JfbMallNetworkMediaLess.less +0 -80
- package/src/components/JfbMallNetworkMedia/JfbMallNetworkMediaMixin.js +0 -30
- package/src/components/JfbMallNetworkMedia/Mock.js +0 -13
- package/src/components/JfbMallNetworkMedia/cusAttr/advanced.js +0 -60
- package/src/components/JfbMallNetworkMedia/cusAttr/content.js +0 -125
- package/src/components/JfbMallNetworkMedia/cusAttr/filter.js +0 -333
- package/src/components/JfbMallNetworkMedia/cusAttr/font.js +0 -114
- package/src/components/JfbMallNetworkMedia/cusAttr/icon.js +0 -298
- package/src/components/JfbMallNetworkMedia/cusAttr/style.js +0 -91
package/package.json
CHANGED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
/**
|
|
3
|
-
* @description 接口配置,
|
|
4
|
-
* 在设置方法名字当时候,别忘记加上【模块名字】:Network
|
|
5
|
-
* @type {*[]}
|
|
6
|
-
*/
|
|
7
|
-
module.exports = [
|
|
8
|
-
{
|
|
9
|
-
//设置方法名字当别忘记加上【模块名字】:Network
|
|
10
|
-
mapFnName: 'getNetworkByIdFilmSquate',
|
|
11
|
-
title: '获取电影广场列表',
|
|
12
|
-
path: '/api/account/film/list-film-square',
|
|
13
|
-
isRule: false,
|
|
14
|
-
params: {
|
|
15
|
-
last_key: ['当前页', 'Number', '必选'],
|
|
16
|
-
page_size: ['每页数量', 'Number', '必选'],
|
|
17
|
-
},
|
|
18
|
-
isConsole: true,
|
|
19
|
-
disabled: true,
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
//设置方法名字当别忘记加上【模块名字】:Network
|
|
23
|
-
mapFnName: 'updateNetworkFilmPaiqiDate',
|
|
24
|
-
title: '更新排期',
|
|
25
|
-
path: '/api/account/film/paiqi-date',
|
|
26
|
-
isRule: false,
|
|
27
|
-
params: {
|
|
28
|
-
film_id: ['电影id', 'Number', '必选'],
|
|
29
|
-
cinema_id: ['影院id', 'Number', '必选'],
|
|
30
|
-
},
|
|
31
|
-
isConsole: true,
|
|
32
|
-
disabled: true,
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
//设置方法名字当别忘记加上【模块名字】:Network
|
|
36
|
-
mapFnName: 'removeNetworkFilmAddress',
|
|
37
|
-
title: '删除我的配送地址',
|
|
38
|
-
path: '/api/account/film/paiqi-date',
|
|
39
|
-
isRule: false,
|
|
40
|
-
params: {
|
|
41
|
-
film_id: ['电影id', 'Number', '必选'],
|
|
42
|
-
},
|
|
43
|
-
isConsole: true,
|
|
44
|
-
disabled: true,
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
//设置方法名字当别忘记加上【模块名字】:Network
|
|
48
|
-
mapFnName: 'addNetworkFilmcart',
|
|
49
|
-
title: '添加购物车',
|
|
50
|
-
path: '/api/account/film/paiqi-date',
|
|
51
|
-
isRule: false,
|
|
52
|
-
params: {
|
|
53
|
-
film_id: ['电影id', 'Number', '必选'],
|
|
54
|
-
},
|
|
55
|
-
isConsole: true,
|
|
56
|
-
disabled: true,
|
|
57
|
-
},
|
|
58
|
-
];
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
import content from "./cusAttr/content";
|
|
4
|
-
import style from "./cusAttr/style";
|
|
5
|
-
import advanced from "./cusAttr/advanced";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
9
|
-
*/
|
|
10
|
-
export default {
|
|
11
|
-
style: [],
|
|
12
|
-
content: (data, gValue, gColor, oldData={}) => {
|
|
13
|
-
return [
|
|
14
|
-
...content(data, gValue, gColor, oldData),
|
|
15
|
-
//...style(data, gValue, gColor, oldData),
|
|
16
|
-
//...advanced(data)
|
|
17
|
-
].filter(i=>i)
|
|
18
|
-
},
|
|
19
|
-
advanced: [],
|
|
20
|
-
};
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<view
|
|
3
|
-
class="jfb-mall-network-media"
|
|
4
|
-
@click="handleEditxSelect"
|
|
5
|
-
:class="{ editx : isEditx && active }"
|
|
6
|
-
>
|
|
7
|
-
<!--#ifdef H5-->
|
|
8
|
-
<view
|
|
9
|
-
class="jfb-mall-network-media__edit"
|
|
10
|
-
:class="{ editx : isEditx && active }"
|
|
11
|
-
v-if="isEditx && active"
|
|
12
|
-
>
|
|
13
|
-
<view class="jfb-mall-network-media__edit-icon" @click.stop="delEdit">
|
|
14
|
-
<xd-font-icon icon="iconshanchu-01" color="#fff" size="30"></xd-font-icon>
|
|
15
|
-
</view>
|
|
16
|
-
</view>
|
|
17
|
-
<!-- #endif -->
|
|
18
|
-
<view class="jfb-mall-network-media__body">
|
|
19
|
-
<view>测试插件( {{containerId}} )</view>
|
|
20
|
-
</view>
|
|
21
|
-
</view>
|
|
22
|
-
</template>
|
|
23
|
-
|
|
24
|
-
<script>
|
|
25
|
-
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
26
|
-
import { jfbRootExec } from "@/utils/xd.event";
|
|
27
|
-
import JfbMallNetworkMediaMixin from "./JfbMallNetworkMediaMixin";
|
|
28
|
-
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
29
|
-
import componentsMixins from "@/mixins/componentsMixins";
|
|
30
|
-
import extsMixins from "@/mixins/extsMixins";
|
|
31
|
-
export default {
|
|
32
|
-
name: "JfbMallNetworkMedia",
|
|
33
|
-
components: {
|
|
34
|
-
XdFontIcon
|
|
35
|
-
},
|
|
36
|
-
mixins: [
|
|
37
|
-
componentsMixins, extsMixins, JfbMallNetworkMediaMixin
|
|
38
|
-
],
|
|
39
|
-
data() {
|
|
40
|
-
return {
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
watch: {
|
|
45
|
-
container(value, oldValue) {
|
|
46
|
-
if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
47
|
-
if (this.$configProject['isPreview']) this.init(value)
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
created() {
|
|
51
|
-
this.init(this.container);
|
|
52
|
-
},
|
|
53
|
-
methods: {
|
|
54
|
-
onJfbLoad(options) {
|
|
55
|
-
},
|
|
56
|
-
/**
|
|
57
|
-
* @description 监听事件变化
|
|
58
|
-
* @param container {object} 业务组件对象自己
|
|
59
|
-
*/
|
|
60
|
-
init(container) {
|
|
61
|
-
|
|
62
|
-
},
|
|
63
|
-
|
|
64
|
-
onJfbBack(options) {
|
|
65
|
-
console.log('event.onJfbBack', options)
|
|
66
|
-
},
|
|
67
|
-
|
|
68
|
-
onJfbCustomEvent(options) {
|
|
69
|
-
console.log('event.onJfbReachBottom', options)
|
|
70
|
-
},
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
</script>
|
|
75
|
-
|
|
76
|
-
<style scoped lang="less">
|
|
77
|
-
@import "./JfbMallNetworkMediaLess.less";
|
|
78
|
-
|
|
79
|
-
.jfb-mall-network-media {
|
|
80
|
-
&__body{
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
</style>
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @desc 获取绝对路径完整地址
|
|
3
|
-
* @param @path
|
|
4
|
-
**/
|
|
5
|
-
//例如:https://image.jufubao.cn/20220501010108/image/bg/default_gonghui_bg.png
|
|
6
|
-
@basePath: 'business/';
|
|
7
|
-
@doMain: '//sandbox-img.jufubao.cn/';
|
|
8
|
-
|
|
9
|
-
.getBusinessImageUrl(@path, @size: 'size8') {
|
|
10
|
-
@url: "@{doMain}@{basePath}@{path}?x-oss-process=style/@{size}";
|
|
11
|
-
background-image: url(@url);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
//start
|
|
15
|
-
.jfb-mall-network-media {
|
|
16
|
-
box-sizing: border-box;
|
|
17
|
-
|
|
18
|
-
&__body{
|
|
19
|
-
position: relative;
|
|
20
|
-
overflow: hidden;
|
|
21
|
-
z-index: 2
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&.editx,&.editx:hover {
|
|
25
|
-
position: relative;
|
|
26
|
-
min-height: unit(100, rpx);
|
|
27
|
-
z-index: 3;
|
|
28
|
-
&::after {
|
|
29
|
-
border: 2rpx dashed blue;
|
|
30
|
-
content: " ";
|
|
31
|
-
position: absolute;
|
|
32
|
-
top:0;
|
|
33
|
-
left:0;
|
|
34
|
-
bottom:0;
|
|
35
|
-
right:0;
|
|
36
|
-
z-index: var(--preview-z-index);
|
|
37
|
-
cursor: pointer;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
&__edit {
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
position: absolute;
|
|
46
|
-
right: unit(0, rpx);
|
|
47
|
-
top: unit(0, rpx);
|
|
48
|
-
height: unit(50, rpx);
|
|
49
|
-
z-index: 100;
|
|
50
|
-
display: flex;
|
|
51
|
-
justify-content: center;
|
|
52
|
-
align-items: center;
|
|
53
|
-
background: rgba(0, 0, 0, .4);
|
|
54
|
-
border-radius: 0 0 0 20rpx;
|
|
55
|
-
box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
|
|
56
|
-
color: #fff;
|
|
57
|
-
font-size: unit(22, rpx);
|
|
58
|
-
padding: 0 6rpx 0 6px;
|
|
59
|
-
|
|
60
|
-
&-icon{
|
|
61
|
-
padding: 0 unit(20, rpx);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&.editx {
|
|
65
|
-
box-sizing: border-box;
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
//end
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
/**notPreview**/
|
|
74
|
-
.jfb-mall-network-media {
|
|
75
|
-
//&:before {
|
|
76
|
-
//content: " ";
|
|
77
|
-
//display: table;
|
|
78
|
-
//}
|
|
79
|
-
}
|
|
80
|
-
/**endNotPreview**/
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//@AttrImport
|
|
5
|
-
import Attr from "./Attr";
|
|
6
|
-
//@EndAttrImport
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export default {
|
|
10
|
-
data() {
|
|
11
|
-
return {
|
|
12
|
-
//#ifdef H5
|
|
13
|
-
|
|
14
|
-
//@AttrData
|
|
15
|
-
Attr:{}, //对外开发编辑属性
|
|
16
|
-
//@EndAttrData
|
|
17
|
-
|
|
18
|
-
// #endif
|
|
19
|
-
cssRoot: 'jfb-mall-network-media'
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
created() {
|
|
23
|
-
|
|
24
|
-
//@AttrDataCreated
|
|
25
|
-
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
-
//@EndAttrDataCreated
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
export default (data)=>{
|
|
4
|
-
let isCityFilter = 'N',productInfoPath =null;
|
|
5
|
-
if(['Y','N'].includes(data['isCityFilter'])) {
|
|
6
|
-
isCityFilter = data['isCityFilter']
|
|
7
|
-
}
|
|
8
|
-
if(data['productInfoPath'] !== undefined) {
|
|
9
|
-
productInfoPath = data['productInfoPath']
|
|
10
|
-
}
|
|
11
|
-
return [
|
|
12
|
-
{
|
|
13
|
-
label: '城市筛选',
|
|
14
|
-
ele: 'xd-radio',
|
|
15
|
-
valueKey: 'isCityFilter',
|
|
16
|
-
groupKey:'advanced',
|
|
17
|
-
value: isCityFilter,
|
|
18
|
-
placeholder: '请选择是否开启城市筛选',
|
|
19
|
-
multiple: false,
|
|
20
|
-
labelInline:true,
|
|
21
|
-
list: [
|
|
22
|
-
{label: '开启', value: 'Y'},
|
|
23
|
-
{label: '禁用', value: 'N'},
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
label: '确认订单',
|
|
28
|
-
ele: 'xd-select-pages-path',
|
|
29
|
-
valueKey: 'productInfoPath',
|
|
30
|
-
placeholder: '请选择确认订单跳转地址',
|
|
31
|
-
groupKey: 'advanced',
|
|
32
|
-
value: productInfoPath,
|
|
33
|
-
labelInline: true,
|
|
34
|
-
className: 'input100',
|
|
35
|
-
setting: {
|
|
36
|
-
mode: 'new',
|
|
37
|
-
router: XdBus.getParentApi('getPagesTree'),
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
label: '版本号:',
|
|
42
|
-
ele: 'el-input',
|
|
43
|
-
type: 'text',
|
|
44
|
-
groupKey: 'advanced',
|
|
45
|
-
valueKey: 'version',
|
|
46
|
-
value: 'v2.0',
|
|
47
|
-
hidden: true,
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
label: '过滤引用模版字段:',
|
|
51
|
-
ele: 'el-input',
|
|
52
|
-
type: 'text',
|
|
53
|
-
groupKey: 'advanced',
|
|
54
|
-
valueKey: 'refFilterKey',
|
|
55
|
-
value: '[]',
|
|
56
|
-
hidden: true,
|
|
57
|
-
},
|
|
58
|
-
]
|
|
59
|
-
}
|
|
60
|
-
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
import {
|
|
3
|
-
dataVal ,
|
|
4
|
-
statusShow,
|
|
5
|
-
statusDataVal,
|
|
6
|
-
customVal,
|
|
7
|
-
cusDisabled ,
|
|
8
|
-
getCustomAttr,
|
|
9
|
-
isArray,
|
|
10
|
-
isObject
|
|
11
|
-
} from "@/utils/AttrTools";
|
|
12
|
-
import PosterAttr from "@/utils/Attr/PosterAttr";
|
|
13
|
-
import ProductAttr from "@/utils/Attr/ProductAttr";
|
|
14
|
-
|
|
15
|
-
export default (data, gValue,gColor,oldData)=>{
|
|
16
|
-
//兼容品牌展示
|
|
17
|
-
let filterMode = dataVal({data, key:'filterMode', dValue:[['common','filter']], gValue});
|
|
18
|
-
if(data['showBrandFilter'] === 'out'){
|
|
19
|
-
filterMode.push('brand');
|
|
20
|
-
data['showBrandFilter'] = 'in';
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
//兼容分类操作
|
|
24
|
-
let category = 'v1';
|
|
25
|
-
//老数据已设置
|
|
26
|
-
if(data['categoryLayout']) {
|
|
27
|
-
category = data['categoryLayout'];
|
|
28
|
-
//设置v1项
|
|
29
|
-
if(data['categoryLayout'] === 'v1') {
|
|
30
|
-
if(data['categoryLayout1ShowType'] === 'child') {
|
|
31
|
-
category = 'v3';
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
//分类已设置隐藏(设置隐藏项)
|
|
36
|
-
if(data['showCategory'] === 'N') {
|
|
37
|
-
category = 'none';
|
|
38
|
-
}
|
|
39
|
-
//新数据已设置值
|
|
40
|
-
if(data['category'] !== undefined) {
|
|
41
|
-
category = data['category'] ;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
//类型
|
|
45
|
-
let navStyle = 'line-6-8-l';
|
|
46
|
-
if(data['navStyle'] && ['line-6-8-s', 'triangle', 'center', 'desc', 'none'].includes(data['navStyle'])){
|
|
47
|
-
navStyle = data['navStyle'];
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
//过滤配送方式兼容
|
|
51
|
-
let isShowDelivery = [];
|
|
52
|
-
if(typeof data['isShowDelivery'] === 'string') {
|
|
53
|
-
if(['Y'].includes(data['isShowDelivery'])) isShowDelivery = ['send'];
|
|
54
|
-
}
|
|
55
|
-
if(isArray(data['isShowDelivery'])){
|
|
56
|
-
isShowDelivery = data['isShowDelivery'];
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
let categoryParentType = dataVal({data, key:'categoryParentType', dValue:'root', gValue});
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
return[
|
|
63
|
-
{
|
|
64
|
-
ele: 'title',
|
|
65
|
-
label: '基础',
|
|
66
|
-
size: 'small',
|
|
67
|
-
groupKey:'content',
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
label: "业务线",
|
|
71
|
-
ele: "xd-choose-namespace",
|
|
72
|
-
valueKey: "xnamespace",
|
|
73
|
-
groupKey:'content',
|
|
74
|
-
placeholder: '请选择业务线',
|
|
75
|
-
notice:'空继承上级业务线',
|
|
76
|
-
inline: false,
|
|
77
|
-
labelInline:true,
|
|
78
|
-
value: dataVal({data, key:'xnamespace', dValue:null, gValue}),
|
|
79
|
-
className: 'input100',
|
|
80
|
-
handleCustom: (cb) => {
|
|
81
|
-
XdBus.getParentApi('getOptionsNamespaces')()
|
|
82
|
-
.then(res => {
|
|
83
|
-
cb(res.list)
|
|
84
|
-
})
|
|
85
|
-
.catch();
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
ele: 'title',
|
|
90
|
-
label: '展示内容',
|
|
91
|
-
size: 'small',
|
|
92
|
-
groupKey:'content',
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
label: '划线价',
|
|
96
|
-
ele: 'xd-cus-switch',
|
|
97
|
-
valueKey: 'isShowDiscount',
|
|
98
|
-
value: data['isShowDiscount'] || 'Y',
|
|
99
|
-
className: 'input100',
|
|
100
|
-
labelInline:true,
|
|
101
|
-
groupKey:'content',
|
|
102
|
-
hidden: data.isPrice!=='Y',
|
|
103
|
-
setting: {
|
|
104
|
-
isBackType: 'string'
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
|
-
{ele: 'group_start'},
|
|
108
|
-
{
|
|
109
|
-
label: '差值',
|
|
110
|
-
ele: 'el-input',
|
|
111
|
-
type: 'number',
|
|
112
|
-
valueKey: 'differ',
|
|
113
|
-
labelInline:true,
|
|
114
|
-
value: data['differ'] || '',
|
|
115
|
-
hidden: data.isShowDiscount!=='Y',
|
|
116
|
-
groupKey:'content',
|
|
117
|
-
placeholder: '价差,默认值:1',
|
|
118
|
-
className: 'input80',
|
|
119
|
-
notice: '划线价取市场价,市场价-售价差值大于等于设置值时展示',
|
|
120
|
-
inline: false
|
|
121
|
-
},
|
|
122
|
-
{ele: 'group_end'},
|
|
123
|
-
|
|
124
|
-
]
|
|
125
|
-
}
|
|
@@ -1,333 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
import {cRaBorShadow, dataVal, statusDataVal, statusShow} from "@/utils/AttrTools";
|
|
4
|
-
|
|
5
|
-
export default (data, gValue, gColor, oldData)=>{
|
|
6
|
-
let filterTopBorder = cRaBorShadow(data , 'filterTopBorder',{dValue:'D'}, gValue)
|
|
7
|
-
let filterBgcColor = '#fff';
|
|
8
|
-
if(gValue.isAdd && gValue.isFirst) {
|
|
9
|
-
if(data['category'] === 'v4') filterBgcColor = '#f8f8f8';
|
|
10
|
-
}
|
|
11
|
-
return [
|
|
12
|
-
{
|
|
13
|
-
ele: 'title',
|
|
14
|
-
label: '筛选项样式',
|
|
15
|
-
size: 'small',
|
|
16
|
-
groupKey:'style',
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
{
|
|
20
|
-
ele:'xd-line-title',
|
|
21
|
-
groupKey:'style',
|
|
22
|
-
label: '横向菜单'
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
label: '上边框',
|
|
26
|
-
ele: 'xd-border',
|
|
27
|
-
labelInline: true,
|
|
28
|
-
groupKey:'style',
|
|
29
|
-
valueKey: 'filterTopBorder',
|
|
30
|
-
value: filterTopBorder,
|
|
31
|
-
className: 'input100',
|
|
32
|
-
setting: {
|
|
33
|
-
selected: filterTopBorder.type,//设置默认选中项
|
|
34
|
-
isRadio:true,//启用editx默认
|
|
35
|
-
isDef: true,//启动默认选项
|
|
36
|
-
//设置默认值
|
|
37
|
-
default: {
|
|
38
|
-
color: '#f8f8f8',
|
|
39
|
-
width: '2',
|
|
40
|
-
type: 'solid'
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
handleCustom({action, data}) {
|
|
44
|
-
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
|
|
45
|
-
.then(res => {
|
|
46
|
-
res.list = res.list.filter(item=>{
|
|
47
|
-
return item.label !== '无';
|
|
48
|
-
});
|
|
49
|
-
data.cb(res.list)
|
|
50
|
-
})
|
|
51
|
-
.catch(error => {
|
|
52
|
-
console.error(error);
|
|
53
|
-
data.cb([])
|
|
54
|
-
});
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
{
|
|
59
|
-
label: '背景颜色',
|
|
60
|
-
ele: 'xd-radio',
|
|
61
|
-
groupKey: 'style',
|
|
62
|
-
valueKey: 'filterBgcColorStatus',
|
|
63
|
-
value: statusDataVal({data, key:'filterBgcColorStatus', fields:['filterBgcColor'],gValue}),
|
|
64
|
-
labelInline:true,
|
|
65
|
-
list: [
|
|
66
|
-
{label: '默认', value: 'D'},
|
|
67
|
-
{label: '自定义', value: 'C'},
|
|
68
|
-
]
|
|
69
|
-
},
|
|
70
|
-
{ele: 'group_start'},
|
|
71
|
-
{
|
|
72
|
-
label: '',
|
|
73
|
-
ele: 'xd-color',
|
|
74
|
-
valueKey: 'filterBgcColor',
|
|
75
|
-
groupKey:'style',
|
|
76
|
-
value: dataVal({data, key:'filterBgcColor', dValue:filterBgcColor, gValue}),
|
|
77
|
-
hidden: !statusShow({data, key: 'filterBgcColorStatus', fields:['filterBgcColor'], gValue}),
|
|
78
|
-
classNmae: 'input80',
|
|
79
|
-
setting: {
|
|
80
|
-
showAlpha: true
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
{ele: 'group_end'},
|
|
84
|
-
|
|
85
|
-
{
|
|
86
|
-
label: '选项颜色',
|
|
87
|
-
ele: 'xd-radio',
|
|
88
|
-
groupKey: 'style',
|
|
89
|
-
valueKey: 'filterColorStatus',
|
|
90
|
-
value: statusDataVal({data, key:'filterColorStatus', fields:['filterColor'],gValue}),
|
|
91
|
-
labelInline:true,
|
|
92
|
-
list: [
|
|
93
|
-
{label: '默认', value: 'D'},
|
|
94
|
-
{label: '自定义', value: 'C'},
|
|
95
|
-
]
|
|
96
|
-
},
|
|
97
|
-
{ele: 'group_start'},
|
|
98
|
-
{
|
|
99
|
-
label: '',
|
|
100
|
-
ele: 'xd-color',
|
|
101
|
-
valueKey: 'filterColor',
|
|
102
|
-
groupKey:'style',
|
|
103
|
-
value: dataVal({data, key:'filterColor', dValue:'#333', gValue}),
|
|
104
|
-
hidden: !statusShow({data, key: 'filterColorStatus', fields:['filterColor'], gValue}),
|
|
105
|
-
classNmae: 'input80',
|
|
106
|
-
setting: {
|
|
107
|
-
showAlpha: true
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
{ele: 'group_end'},
|
|
111
|
-
|
|
112
|
-
{
|
|
113
|
-
label: '内边距',
|
|
114
|
-
ele: 'xd-radio',
|
|
115
|
-
groupKey: 'style',
|
|
116
|
-
valueKey: 'filterPaddingStatus',
|
|
117
|
-
value: statusDataVal({data, key:'filterPaddingStatus', fields:['filterPadding'],gValue}),
|
|
118
|
-
labelInline:true,
|
|
119
|
-
list: [
|
|
120
|
-
{label: '默认', value: 'D'},
|
|
121
|
-
{label: '自定义', value: 'C'},
|
|
122
|
-
]
|
|
123
|
-
},
|
|
124
|
-
{ele: 'group_start'},
|
|
125
|
-
{
|
|
126
|
-
label: '',
|
|
127
|
-
ele: 'xd-margin-padding',
|
|
128
|
-
groupKey:'style',
|
|
129
|
-
valueKey: 'filterPadding',
|
|
130
|
-
value: dataVal({
|
|
131
|
-
data,
|
|
132
|
-
key:'filterPadding',
|
|
133
|
-
dValue:16,
|
|
134
|
-
gValue,
|
|
135
|
-
isPM: true,
|
|
136
|
-
}),
|
|
137
|
-
hidden: !statusShow({data, key: 'filterPaddingStatus', fields:['filterPadding'], gValue}),
|
|
138
|
-
setting: {
|
|
139
|
-
type: 'margin',
|
|
140
|
-
},
|
|
141
|
-
},
|
|
142
|
-
{ele: 'group_end'},
|
|
143
|
-
|
|
144
|
-
{
|
|
145
|
-
ele:'xd-line-title',
|
|
146
|
-
groupKey:'style',
|
|
147
|
-
label: '下拉菜单'
|
|
148
|
-
},
|
|
149
|
-
|
|
150
|
-
{
|
|
151
|
-
label: '行间距',
|
|
152
|
-
ele: 'xd-radio',
|
|
153
|
-
groupKey: 'style',
|
|
154
|
-
valueKey: 'filterRowSpacingStatus',
|
|
155
|
-
value: statusDataVal({data, key:'filterRowSpacingStatus', fields:['filterRowSpacing'],gValue}),
|
|
156
|
-
labelInline:true,
|
|
157
|
-
list: [
|
|
158
|
-
{label: '默认', value: 'D'},
|
|
159
|
-
{label: '自定义', value: 'C'},
|
|
160
|
-
]
|
|
161
|
-
},
|
|
162
|
-
{ele: 'group_start'},
|
|
163
|
-
{
|
|
164
|
-
label: "行间距",
|
|
165
|
-
groupKey: 'style',
|
|
166
|
-
ele: 'xd-slider',
|
|
167
|
-
valueKey: "filterRowSpacing",
|
|
168
|
-
value: dataVal({data, key:'filterRowSpacing', dValue:gValue.isFirst && gValue.isAdd ? 16: 20, gValue}),
|
|
169
|
-
hidden: !statusShow({data, key: 'filterRowSpacingStatus', fields:['filterRowSpacing'], gValue}),
|
|
170
|
-
className: "input80",
|
|
171
|
-
labelInline: true,
|
|
172
|
-
setting:{
|
|
173
|
-
min: 0,
|
|
174
|
-
max: 60,
|
|
175
|
-
step:1,
|
|
176
|
-
showStops:false,
|
|
177
|
-
showInput:false,
|
|
178
|
-
}
|
|
179
|
-
},
|
|
180
|
-
{ele: 'group_end'},
|
|
181
|
-
|
|
182
|
-
{
|
|
183
|
-
label: '背景颜色',
|
|
184
|
-
ele: 'xd-radio',
|
|
185
|
-
groupKey: 'style',
|
|
186
|
-
valueKey: 'filterListColorStatus',
|
|
187
|
-
value: statusDataVal({data, key:'filterListColorStatus', fields:['filterListColor'],gValue}),
|
|
188
|
-
labelInline:true,
|
|
189
|
-
list: [
|
|
190
|
-
{label: '默认', value: 'D'},
|
|
191
|
-
{label: '自定义', value: 'C'},
|
|
192
|
-
]
|
|
193
|
-
},
|
|
194
|
-
{ele: 'group_start'},
|
|
195
|
-
{
|
|
196
|
-
label: '',
|
|
197
|
-
ele: 'xd-color',
|
|
198
|
-
valueKey: 'filterListColor',
|
|
199
|
-
groupKey:'style',
|
|
200
|
-
value: dataVal({data, key:'filterListColor', dValue:gValue.isAdd && gValue.isFirst ? '#fff':'#f8f8f8', gValue}),
|
|
201
|
-
hidden: !statusShow({data, key: 'filterListColorStatus', fields:['filterListColor'], gValue}),
|
|
202
|
-
classNmae: 'input80',
|
|
203
|
-
setting: {
|
|
204
|
-
showAlpha: true
|
|
205
|
-
},
|
|
206
|
-
},
|
|
207
|
-
{ele: 'group_end'},
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
{
|
|
211
|
-
label: '圆角',
|
|
212
|
-
ele: 'xd-radio',
|
|
213
|
-
groupKey: 'style',
|
|
214
|
-
valueKey: 'filterListRadiusStatus',
|
|
215
|
-
value: statusDataVal({data, key:'filterListRadiusStatus', fields:['filterListRadius'],gValue}),
|
|
216
|
-
labelInline:true,
|
|
217
|
-
list: [
|
|
218
|
-
{label: '默认', value: 'D'},
|
|
219
|
-
{label: '无圆角', value: 'N'},
|
|
220
|
-
{label: '自定义', value: 'C'},
|
|
221
|
-
]
|
|
222
|
-
},
|
|
223
|
-
{ele: 'group_start'},
|
|
224
|
-
{
|
|
225
|
-
label: '',
|
|
226
|
-
ele: 'xd-site-select-list',
|
|
227
|
-
labelInline: true,
|
|
228
|
-
valueKey: 'filterListRadius',
|
|
229
|
-
value: dataVal({data, key:'filterListRadius', dValue:gValue.isAdd && gValue.isFirst?'10':'60', gValue}),
|
|
230
|
-
hidden: !statusShow({data, key: 'filterListRadiusStatus', fields:['filterListRadius'], gValue}),
|
|
231
|
-
placeholder: '请选择图标圆角',
|
|
232
|
-
multiple: false,
|
|
233
|
-
className: 'input80',
|
|
234
|
-
groupKey:'style',
|
|
235
|
-
handleCustom({action, data}) {
|
|
236
|
-
XdBus.getParentApi('getOptionsSettingList')({
|
|
237
|
-
setting_id: 'edtix_style_radius',
|
|
238
|
-
key: Date.now()
|
|
239
|
-
})
|
|
240
|
-
.then(res => {
|
|
241
|
-
let list = (res.list || [])
|
|
242
|
-
.filter(item=>{
|
|
243
|
-
return item.label !== '无'
|
|
244
|
-
});
|
|
245
|
-
data.cb(list)
|
|
246
|
-
})
|
|
247
|
-
.catch(error => {
|
|
248
|
-
console.error(error);
|
|
249
|
-
});
|
|
250
|
-
},
|
|
251
|
-
},
|
|
252
|
-
{ele: 'group_end'},
|
|
253
|
-
|
|
254
|
-
{
|
|
255
|
-
label: '内边距',
|
|
256
|
-
ele: 'xd-radio',
|
|
257
|
-
groupKey: 'style',
|
|
258
|
-
valueKey: 'filterListPaddingStatus',
|
|
259
|
-
value: statusDataVal({data, key:'filterListPaddingStatus', fields:['filterListPadding'],gValue}),
|
|
260
|
-
labelInline:true,
|
|
261
|
-
list: [
|
|
262
|
-
{label: '默认', value: 'D'},
|
|
263
|
-
{label: '自定义', value: 'C'},
|
|
264
|
-
]
|
|
265
|
-
},
|
|
266
|
-
{ele: 'group_start'},
|
|
267
|
-
{
|
|
268
|
-
label: '',
|
|
269
|
-
ele: 'xd-margin-padding',
|
|
270
|
-
groupKey:'style',
|
|
271
|
-
valueKey: 'filterListPadding',
|
|
272
|
-
value: dataVal({
|
|
273
|
-
data,
|
|
274
|
-
key:'filterListPadding',
|
|
275
|
-
dValue:gValue.isAdd && gValue.isFirst ? {top: 32, left: 48, right: 48, bottom: 32}:20,
|
|
276
|
-
gValue,
|
|
277
|
-
isPM: true,
|
|
278
|
-
}),
|
|
279
|
-
hidden: !statusShow({data, key: 'filterListPaddingStatus', fields:['filterListPadding'], gValue}),
|
|
280
|
-
setting: {
|
|
281
|
-
type: 'margin',
|
|
282
|
-
},
|
|
283
|
-
},
|
|
284
|
-
{ele: 'group_end'},
|
|
285
|
-
|
|
286
|
-
{
|
|
287
|
-
label: '文字按钮',
|
|
288
|
-
ele: 'xd-radio',
|
|
289
|
-
groupKey: 'style',
|
|
290
|
-
valueKey: 'filterFontStyleStatus',
|
|
291
|
-
value: statusDataVal({data, key:'filterFontStyleStatus', fields:['filterFontStyle'],gValue}),
|
|
292
|
-
labelInline:true,
|
|
293
|
-
list: [
|
|
294
|
-
{label: '默认', value: 'D'},
|
|
295
|
-
{label: '自定义', value: 'C'},
|
|
296
|
-
]
|
|
297
|
-
},
|
|
298
|
-
{ele: 'group_start'},
|
|
299
|
-
{
|
|
300
|
-
label: '',
|
|
301
|
-
ele: 'xd-text-and-bgc',
|
|
302
|
-
groupKey:'style',
|
|
303
|
-
valueKey: 'filterFontStyle',
|
|
304
|
-
value: dataVal({data, key:'filterFontStyle', dValue:{}, gValue}),
|
|
305
|
-
hidden: !statusShow({data, key: 'filterFontStyleStatus', fields:['filterFontStyle'], gValue}),
|
|
306
|
-
setting: {
|
|
307
|
-
fontSize: true,
|
|
308
|
-
weight:false,
|
|
309
|
-
bgColor:false,
|
|
310
|
-
selected:true,
|
|
311
|
-
default:{
|
|
312
|
-
color: '#666',
|
|
313
|
-
fontSize:'24rpx',
|
|
314
|
-
actFontSize:'24rpx',
|
|
315
|
-
actColor: gColor.mainColor,
|
|
316
|
-
}
|
|
317
|
-
},
|
|
318
|
-
handleCustom({action, data}) {
|
|
319
|
-
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
320
|
-
.then(res => {
|
|
321
|
-
data.cb(res.list)
|
|
322
|
-
})
|
|
323
|
-
.catch(error => {
|
|
324
|
-
console.error(error);
|
|
325
|
-
data.cb([])
|
|
326
|
-
});
|
|
327
|
-
},
|
|
328
|
-
},
|
|
329
|
-
{ele: 'group_end'},
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
].filter(i=>i)
|
|
333
|
-
}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
import {dataVal, isObject, statusDataVal, statusShow} from "@/utils/AttrTools";
|
|
4
|
-
const Color = require('color');
|
|
5
|
-
|
|
6
|
-
export default (data, gValue, gColor, oldData)=>{
|
|
7
|
-
|
|
8
|
-
//兼容
|
|
9
|
-
let titleStyleColor = '#333'
|
|
10
|
-
if(data.titleColor) titleStyleColor = data.titleColor;
|
|
11
|
-
if(isObject(data.titleStyle) && data.titleStyle.color) titleStyleColor = data.titleStyle.color;
|
|
12
|
-
let disabled = !['v1','v2', 'v5'].includes(data['category']);
|
|
13
|
-
|
|
14
|
-
return [
|
|
15
|
-
{
|
|
16
|
-
ele: 'title',
|
|
17
|
-
label: '分类-文字区样式',
|
|
18
|
-
size: 'small',
|
|
19
|
-
groupKey:'style',
|
|
20
|
-
hidden: disabled
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
label: '导航背景',
|
|
24
|
-
ele: 'xd-radio',
|
|
25
|
-
groupKey: 'style',
|
|
26
|
-
valueKey: 'titleBgColorStatus',
|
|
27
|
-
value: statusDataVal({data, key:'titleBgColorStatus', fields:['titleBgColor'],gValue}),
|
|
28
|
-
labelInline:true,
|
|
29
|
-
hidden: disabled,
|
|
30
|
-
list: [
|
|
31
|
-
{label: '默认', value: 'D'},
|
|
32
|
-
{label: '自定义', value: 'C'},
|
|
33
|
-
]
|
|
34
|
-
},
|
|
35
|
-
{ele: 'group_start'},
|
|
36
|
-
{
|
|
37
|
-
label: '',
|
|
38
|
-
ele: 'xd-color',
|
|
39
|
-
valueKey: 'titleBgColor',
|
|
40
|
-
groupKey:'style',
|
|
41
|
-
value: dataVal({data, key:'titleBgColor', dValue:'#fff', gValue}),
|
|
42
|
-
hidden: !statusShow({data, key: 'titleBgColorStatus', fields:['titleBgColor'], gValue}) || disabled,
|
|
43
|
-
classNmae: 'input80',
|
|
44
|
-
|
|
45
|
-
setting: {
|
|
46
|
-
showAlpha: true
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
{ele: 'group_end'},
|
|
50
|
-
|
|
51
|
-
{
|
|
52
|
-
label: '名称样式',
|
|
53
|
-
ele: 'xd-radio',
|
|
54
|
-
groupKey: 'style',
|
|
55
|
-
valueKey: 'titleStyleStatus',
|
|
56
|
-
value: statusDataVal({data, key:'titleStyleStatus', fields:['titleStyle','titleColor'],gValue}),
|
|
57
|
-
labelInline:true,
|
|
58
|
-
hidden: disabled,
|
|
59
|
-
list: [
|
|
60
|
-
{label: '默认', value: 'D'},
|
|
61
|
-
{label: '自定义', value: 'C'},
|
|
62
|
-
]
|
|
63
|
-
},
|
|
64
|
-
{ele: 'group_start'},
|
|
65
|
-
{
|
|
66
|
-
label: '',
|
|
67
|
-
ele: 'xd-text-and-bgc',
|
|
68
|
-
groupKey:'style',
|
|
69
|
-
valueKey: 'titleStyle',
|
|
70
|
-
value: dataVal({data, key:'titleStyle', dValue:{}, gValue}),
|
|
71
|
-
hidden: !statusShow({data, key: 'titleStyleStatus', fields:['titleStyle','titleColor'], gValue}) || disabled,
|
|
72
|
-
setting: {
|
|
73
|
-
fontSize: true,
|
|
74
|
-
weight:true,
|
|
75
|
-
bgColor:true,
|
|
76
|
-
selected:true,
|
|
77
|
-
default:{
|
|
78
|
-
color: titleStyleColor,
|
|
79
|
-
fontSize:gValue.isAdd && gValue.isFirst?'32':'30',
|
|
80
|
-
bgColor:'#f8f8f8',
|
|
81
|
-
fontWeight:gValue.isAdd && gValue.isFirst?'400':'normal',
|
|
82
|
-
actFontSize:gValue.isAdd && gValue.isFirst?'32':'30',
|
|
83
|
-
actColor: gColor.mainColor,
|
|
84
|
-
actFontWeight:gValue.isAdd && gValue.isFirst?'500':'normal',
|
|
85
|
-
actBgColor: Color(gColor.mainColor).alpha(0.15).toString()
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
handleCustom({action, data}) {
|
|
89
|
-
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
90
|
-
.then(res => {
|
|
91
|
-
data.cb(res.list)
|
|
92
|
-
})
|
|
93
|
-
.catch(error => {
|
|
94
|
-
console.error(error);
|
|
95
|
-
data.cb([])
|
|
96
|
-
});
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
{ele: 'group_end'},
|
|
100
|
-
|
|
101
|
-
//废弃不可删除(已做兼容)
|
|
102
|
-
{
|
|
103
|
-
label: '文字颜色:',
|
|
104
|
-
ele: 'xd-color',
|
|
105
|
-
valueKey: 'titleColor',
|
|
106
|
-
groupKey:'style',
|
|
107
|
-
value: data['titleColor'] || '',
|
|
108
|
-
placeholder: '请选择文字颜色',
|
|
109
|
-
classNmae: 'input80',
|
|
110
|
-
hidden:true,
|
|
111
|
-
},
|
|
112
|
-
//废弃不可删除(已做兼容)
|
|
113
|
-
].filter(i=>i)
|
|
114
|
-
}
|
|
@@ -1,298 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
import {cRaBorShadow, dataVal, statusDataVal, statusShow} from "@/utils/AttrTools";
|
|
4
|
-
|
|
5
|
-
export default (data, gValue, gColor, oldData)=>{
|
|
6
|
-
let level2NameStatus = statusDataVal({data, key:'level2NameStatus', fields:['level2Name','level2Color'],gValue});
|
|
7
|
-
let level2Name = {
|
|
8
|
-
fontSize: '24',
|
|
9
|
-
actFontSize: '24',
|
|
10
|
-
color: '#333',
|
|
11
|
-
actColor: gColor.mainColor,
|
|
12
|
-
bgColor:'',
|
|
13
|
-
actBgColor:'',
|
|
14
|
-
fontWeight: 'normal',
|
|
15
|
-
actFontWeight: 'normal',
|
|
16
|
-
borderStyle:'solid',
|
|
17
|
-
borderColor: 'rgba(0,0,0,0)',
|
|
18
|
-
borderWidth: 0,
|
|
19
|
-
borderActStyle:'solid',
|
|
20
|
-
borderActColor: 'rgba(0,0,0,0)',
|
|
21
|
-
borderActWidth: 0,
|
|
22
|
-
}
|
|
23
|
-
// if(data['subTitleIconBorder'] !== undefined && data['subTitleIconBorder']['type'] === 'Y') {
|
|
24
|
-
// const value = data['subTitleIconBorder'].value;
|
|
25
|
-
// if(value.style) level2Name['borderStyle'] = value.style
|
|
26
|
-
// if(value.color) level2Name['borderColor'] = value.color
|
|
27
|
-
// if(value.width !== undefined) level2Name['borderWidth'] = value.width
|
|
28
|
-
// if(value.style) level2Name['borderActStyle'] = value.style
|
|
29
|
-
// if(value.color) level2Name['borderActColor'] = value.color
|
|
30
|
-
// if(value.width !== undefined) level2Name['borderActWidth'] = value.width
|
|
31
|
-
// data['subTitleIconBorder']['type'] = 'N'
|
|
32
|
-
// data['subTitleIconBorder']['value'] = {}
|
|
33
|
-
// }
|
|
34
|
-
let subTitleIconBorder = cRaBorShadow(data , 'subTitleIconBorder',{dValue:'D'}, gValue)
|
|
35
|
-
let disabled = !['v1','v2', 'v3', 'v4'].includes(data['category']);
|
|
36
|
-
|
|
37
|
-
return [
|
|
38
|
-
{
|
|
39
|
-
ele: 'title',
|
|
40
|
-
label: '分类-图标区样式',
|
|
41
|
-
size: 'small',
|
|
42
|
-
groupKey:'style',
|
|
43
|
-
hidden: disabled,
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
{
|
|
47
|
-
label: '导航背景',
|
|
48
|
-
ele: 'xd-radio',
|
|
49
|
-
groupKey: 'style',
|
|
50
|
-
valueKey: 'level2BgcColorStatus',
|
|
51
|
-
value: statusDataVal({data, key:'level2BgcColorStatus', fields:['level2BgcColor'],gValue}),
|
|
52
|
-
labelInline:true,
|
|
53
|
-
hidden: disabled,
|
|
54
|
-
list: [
|
|
55
|
-
{label: '默认', value: 'D'},
|
|
56
|
-
{label: '自定义', value: 'C'},
|
|
57
|
-
]
|
|
58
|
-
},
|
|
59
|
-
{ele: 'group_start'},
|
|
60
|
-
{
|
|
61
|
-
label: '',
|
|
62
|
-
ele: 'xd-color',
|
|
63
|
-
valueKey: 'level2BgcColor',
|
|
64
|
-
groupKey:'style',
|
|
65
|
-
value: dataVal({data, key:'level2BgcColor', dValue:gValue.isAdd && gValue.isFirst?'#fff':'#f8f8f8', gValue}),
|
|
66
|
-
hidden: !statusShow({data, key: 'level2BgcColorStatus', fields:['level2BgcColor'], gValue}) || disabled,
|
|
67
|
-
classNmae: 'input80',
|
|
68
|
-
setting: {
|
|
69
|
-
showAlpha: true
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
{ele: 'group_end'},
|
|
73
|
-
{
|
|
74
|
-
label: '选中图描边',
|
|
75
|
-
ele: 'xd-border',
|
|
76
|
-
groupKey:'style',
|
|
77
|
-
valueKey: 'subTitleIconBorder',
|
|
78
|
-
value: subTitleIconBorder,
|
|
79
|
-
labelInline: true,
|
|
80
|
-
className: 'input100',
|
|
81
|
-
setting: {
|
|
82
|
-
selected: subTitleIconBorder.type,//设置默认选中项
|
|
83
|
-
isRadio: true,//启用editx默认
|
|
84
|
-
isDef: true, //启动默认选项
|
|
85
|
-
//==设置默认值==
|
|
86
|
-
color: gColor.mainColor,
|
|
87
|
-
width: '2',
|
|
88
|
-
style: 'solid'
|
|
89
|
-
//==设置默认值==
|
|
90
|
-
},
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
label: '图标圆角',
|
|
94
|
-
ele: 'xd-radio',
|
|
95
|
-
groupKey: 'style',
|
|
96
|
-
valueKey: 'subTitleRadiusStatus',
|
|
97
|
-
value: statusDataVal({data, key:'subTitleRadiusStatus', fields:['subTitleRadius'],gValue}),
|
|
98
|
-
labelInline:true,
|
|
99
|
-
hidden: disabled,
|
|
100
|
-
list: [
|
|
101
|
-
{label: '默认', value: 'D'},
|
|
102
|
-
{label: '无圆角', value: 'N'},
|
|
103
|
-
{label: '自定义', value: 'C'},
|
|
104
|
-
]
|
|
105
|
-
},
|
|
106
|
-
{ele: 'group_start'},
|
|
107
|
-
{
|
|
108
|
-
label: '',
|
|
109
|
-
ele: 'xd-site-select-list',
|
|
110
|
-
labelInline: true,
|
|
111
|
-
valueKey: 'subTitleRadius',
|
|
112
|
-
value: dataVal({data, key:'subTitleRadius', dValue:'40rpx', gValue}),
|
|
113
|
-
hidden: !statusShow({data, key: 'subTitleRadiusStatus', fields:['subTitleRadius'], gValue}) || disabled,
|
|
114
|
-
placeholder: '请选择图标圆角',
|
|
115
|
-
multiple: false,
|
|
116
|
-
className: 'input80',
|
|
117
|
-
groupKey:'style',
|
|
118
|
-
|
|
119
|
-
handleCustom({action, data}) {
|
|
120
|
-
XdBus.getParentApi('getOptionsSettingList')({
|
|
121
|
-
setting_id: 'edtix_style_radius',
|
|
122
|
-
key: Date.now()
|
|
123
|
-
})
|
|
124
|
-
.then(res => {
|
|
125
|
-
let list = (res.list || [])
|
|
126
|
-
.map(item=>{
|
|
127
|
-
return {
|
|
128
|
-
...item,
|
|
129
|
-
value: item.value + 'rpx',
|
|
130
|
-
}
|
|
131
|
-
})
|
|
132
|
-
.filter(item=>{
|
|
133
|
-
return item.label !== '无'
|
|
134
|
-
})
|
|
135
|
-
.concat([{label:'圆角',value: '50%'}]);
|
|
136
|
-
data.cb(list)
|
|
137
|
-
})
|
|
138
|
-
.catch(error => {
|
|
139
|
-
console.error(error);
|
|
140
|
-
});
|
|
141
|
-
},
|
|
142
|
-
},
|
|
143
|
-
{ele: 'group_end'},
|
|
144
|
-
{
|
|
145
|
-
label: '图标大小',
|
|
146
|
-
ele: 'xd-radio',
|
|
147
|
-
groupKey: 'style',
|
|
148
|
-
valueKey: 'iconWdithStatus',
|
|
149
|
-
value: statusDataVal({data, key:'iconWdithStatus', fields:['iconWdith'],gValue}),
|
|
150
|
-
labelInline:true,
|
|
151
|
-
list: [
|
|
152
|
-
{label: '默认', value: 'D'},
|
|
153
|
-
{label: '自定义', value: 'C'},
|
|
154
|
-
]
|
|
155
|
-
},
|
|
156
|
-
{ele: 'group_start'},
|
|
157
|
-
{
|
|
158
|
-
label: "",
|
|
159
|
-
groupKey: 'style',
|
|
160
|
-
ele: 'xd-slider',
|
|
161
|
-
valueKey: "iconWdith",
|
|
162
|
-
value: dataVal({data, key:'iconWdith', dValue:96, gValue}),
|
|
163
|
-
hidden: !statusShow({data, key: 'iconWdithStatus', fields:['iconWdith'], gValue}),
|
|
164
|
-
className: "input80",
|
|
165
|
-
labelInline: true,
|
|
166
|
-
setting:{
|
|
167
|
-
min: 50,//最小值
|
|
168
|
-
max: 96, //最小值
|
|
169
|
-
step:1, //步长
|
|
170
|
-
showStops:false,//显示间断点
|
|
171
|
-
showInput:false,//显示输入框
|
|
172
|
-
},
|
|
173
|
-
},
|
|
174
|
-
{ele: 'group_end'},
|
|
175
|
-
{
|
|
176
|
-
label: '图标间距',
|
|
177
|
-
ele: 'xd-radio',
|
|
178
|
-
groupKey: 'style',
|
|
179
|
-
valueKey: 'iconImageSpStatus',
|
|
180
|
-
value: statusDataVal({data, key:'iconImageSpStatus', fields:['iconImageSp'],gValue}),
|
|
181
|
-
labelInline:true,
|
|
182
|
-
list: [
|
|
183
|
-
{label: '默认', value: 'D'},
|
|
184
|
-
{label: '自定义', value: 'C'},
|
|
185
|
-
]
|
|
186
|
-
},
|
|
187
|
-
{ele: 'group_start'},
|
|
188
|
-
{
|
|
189
|
-
label: "",
|
|
190
|
-
groupKey: 'style',
|
|
191
|
-
ele: 'xd-slider',
|
|
192
|
-
valueKey: "iconImageSp",
|
|
193
|
-
value: dataVal({data, key:'iconImageSp', dValue:16, gValue}),
|
|
194
|
-
hidden: !statusShow({data, key: 'iconImageSpStatus', fields:['iconImageSp'], gValue}),
|
|
195
|
-
className: "input80",
|
|
196
|
-
labelInline: true,
|
|
197
|
-
setting:{
|
|
198
|
-
min: 1,//最小值
|
|
199
|
-
max: 64, //最小值
|
|
200
|
-
step:1, //步长
|
|
201
|
-
showStops:false,//显示间断点
|
|
202
|
-
showInput:false,//显示输入框
|
|
203
|
-
},
|
|
204
|
-
},
|
|
205
|
-
{ele: 'group_end'},
|
|
206
|
-
{
|
|
207
|
-
label: '图标背景',
|
|
208
|
-
ele: 'xd-radio',
|
|
209
|
-
groupKey: 'style',
|
|
210
|
-
valueKey: 'iconBgColorStatus',
|
|
211
|
-
value: statusDataVal({data, key:'iconBgColorStatus', fields:['iconBgColor'],gValue}),
|
|
212
|
-
labelInline:true,
|
|
213
|
-
list: [
|
|
214
|
-
{label: '默认', value: 'D'},
|
|
215
|
-
{label: '自定义', value: 'C'},
|
|
216
|
-
]
|
|
217
|
-
},
|
|
218
|
-
{ele: 'group_start'},
|
|
219
|
-
{
|
|
220
|
-
label: '',
|
|
221
|
-
ele: 'xd-color',
|
|
222
|
-
valueKey: 'iconBgColor',
|
|
223
|
-
groupKey:'style',
|
|
224
|
-
value: dataVal({data, key:'iconBgColor', dValue:'#f8f8f8', gValue}),
|
|
225
|
-
hidden: !statusShow({data, key: 'iconBgColorStatus', fields:['iconBgColor'], gValue}),
|
|
226
|
-
classNmae: 'input80',
|
|
227
|
-
setting: {
|
|
228
|
-
showAlpha: true
|
|
229
|
-
},
|
|
230
|
-
},
|
|
231
|
-
{ele: 'group_end'},
|
|
232
|
-
|
|
233
|
-
{
|
|
234
|
-
label: '名称样式',
|
|
235
|
-
ele: 'xd-radio',
|
|
236
|
-
groupKey: 'style',
|
|
237
|
-
valueKey: 'level2NameStatus',
|
|
238
|
-
value: level2NameStatus,
|
|
239
|
-
labelInline:true,
|
|
240
|
-
hidden: disabled,
|
|
241
|
-
list: [
|
|
242
|
-
{label: '默认', value: 'D'},
|
|
243
|
-
{label: '自定义', value: 'C'},
|
|
244
|
-
]
|
|
245
|
-
},
|
|
246
|
-
{ele: 'group_start'},
|
|
247
|
-
{
|
|
248
|
-
label: '',
|
|
249
|
-
ele: 'xd-text-and-bgc',
|
|
250
|
-
groupKey:'style',
|
|
251
|
-
valueKey: 'level2Name',
|
|
252
|
-
value: dataVal({data, key:'level2Name', dValue:'{}', gValue}),
|
|
253
|
-
hidden: !statusShow({data, key: 'level2NameStatus', fields:['level2Name','level2Color'], gValue}) || disabled,
|
|
254
|
-
setting: {
|
|
255
|
-
fontSize: true,
|
|
256
|
-
weight:false,
|
|
257
|
-
bgColor:true,
|
|
258
|
-
selected:true,
|
|
259
|
-
isBorder:false,
|
|
260
|
-
default: level2Name
|
|
261
|
-
},
|
|
262
|
-
handleCustom({action, data}) {
|
|
263
|
-
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
264
|
-
.then(res => {
|
|
265
|
-
data.cb(res.list)
|
|
266
|
-
})
|
|
267
|
-
.catch(error => {
|
|
268
|
-
console.error(error);
|
|
269
|
-
data.cb([])
|
|
270
|
-
});
|
|
271
|
-
},
|
|
272
|
-
},
|
|
273
|
-
{ele: 'group_end'},
|
|
274
|
-
|
|
275
|
-
{
|
|
276
|
-
label: '二级导航文字颜色:',
|
|
277
|
-
ele: 'xd-color',
|
|
278
|
-
valueKey: 'level2Color',
|
|
279
|
-
value: data['level2Color'] || '',
|
|
280
|
-
placeholder: '请选择二级导航文字颜色',
|
|
281
|
-
classNmae: 'input80',
|
|
282
|
-
groupKey:'style',
|
|
283
|
-
hidden: true
|
|
284
|
-
},
|
|
285
|
-
|
|
286
|
-
{
|
|
287
|
-
label: '上边框设置:',
|
|
288
|
-
ele: 'xd-border',
|
|
289
|
-
groupKey:'style',
|
|
290
|
-
valueKey: 'subTitleBorder',
|
|
291
|
-
value: data['subTitleBorder'] || '',
|
|
292
|
-
setting: {
|
|
293
|
-
selected:'N',
|
|
294
|
-
},
|
|
295
|
-
hidden: true
|
|
296
|
-
},
|
|
297
|
-
].filter(i=>i)
|
|
298
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
dataVal ,
|
|
5
|
-
statusShow,
|
|
6
|
-
statusDataVal,
|
|
7
|
-
customVal,
|
|
8
|
-
cusDisabled ,
|
|
9
|
-
getCustomAttr,
|
|
10
|
-
} from "@/utils/AttrTools";
|
|
11
|
-
|
|
12
|
-
import font from "./font";
|
|
13
|
-
import icon from "./icon";
|
|
14
|
-
import filter from './filter';
|
|
15
|
-
import productStyle from "@/utils/Attr/productStyle";
|
|
16
|
-
|
|
17
|
-
export default function (data, gValue, gColor, oldData) {
|
|
18
|
-
return [
|
|
19
|
-
{
|
|
20
|
-
ele: 'title',
|
|
21
|
-
label: '内容区',
|
|
22
|
-
size: 'small',
|
|
23
|
-
groupKey:'style',
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
label: '内容区背景',
|
|
27
|
-
ele: 'xd-radio',
|
|
28
|
-
groupKey: 'style',
|
|
29
|
-
valueKey: 'contentColorStatus',
|
|
30
|
-
value: statusDataVal({data, key:'contentColorStatus', fields:['contentColor'],gValue}),
|
|
31
|
-
labelInline:true,
|
|
32
|
-
list: [
|
|
33
|
-
{label: '默认', value: 'D'},
|
|
34
|
-
{label: '自定义', value: 'C'},
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
{ele: 'group_start'},
|
|
38
|
-
{
|
|
39
|
-
label: '',
|
|
40
|
-
ele: 'xd-color',
|
|
41
|
-
groupKey:'style',
|
|
42
|
-
valueKey: 'contentColor',
|
|
43
|
-
value: dataVal({data, key:'contentColor', dValue:gValue.isAdd && gValue.isFirst ? '#f8f8f8': '#fafafa', gValue}),
|
|
44
|
-
hidden: !statusShow({data, key: 'contentColorStatus', fields:['contentColor'], gValue}),
|
|
45
|
-
placeholder: '请选择背景颜色',
|
|
46
|
-
classNmae: 'input80',
|
|
47
|
-
setting: {
|
|
48
|
-
showAlpha: true
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
{ele: 'group_end'},
|
|
52
|
-
|
|
53
|
-
{
|
|
54
|
-
label: '内容区边距',
|
|
55
|
-
ele: 'xd-radio',
|
|
56
|
-
groupKey: 'style',
|
|
57
|
-
valueKey: 'listPaddingStatus',
|
|
58
|
-
value: statusDataVal({data, key:'listPaddingStatus', fields:['listPadding'],gValue}),
|
|
59
|
-
labelInline:true,
|
|
60
|
-
list: [
|
|
61
|
-
{label: '默认', value: 'D'},
|
|
62
|
-
{label: '自定义', value: 'C'},
|
|
63
|
-
]
|
|
64
|
-
},
|
|
65
|
-
{ele: 'group_start'},
|
|
66
|
-
{
|
|
67
|
-
label: '',
|
|
68
|
-
ele: 'xd-margin-padding',
|
|
69
|
-
groupKey:'style',
|
|
70
|
-
valueKey: 'listPadding',
|
|
71
|
-
value: dataVal({
|
|
72
|
-
data,
|
|
73
|
-
key:'listPadding',
|
|
74
|
-
dValue:(gValue.isAdd && gValue.isFirst? ({top:16, left:16, right:16,bottom:0}) : 20),
|
|
75
|
-
gValue,
|
|
76
|
-
isPM: true,
|
|
77
|
-
}),
|
|
78
|
-
hidden: !statusShow({data, key: 'listPaddingStatus', fields:['listPadding'], gValue}),
|
|
79
|
-
setting: {
|
|
80
|
-
type: 'margin',
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
{ele: 'group_end'},
|
|
84
|
-
|
|
85
|
-
...font(data, gValue, gColor, oldData),
|
|
86
|
-
...icon(data, gValue, gColor, oldData),
|
|
87
|
-
...filter(data, gValue, gColor, oldData),
|
|
88
|
-
...productStyle(data, gValue, gColor, oldData, 'list')
|
|
89
|
-
]
|
|
90
|
-
}
|
|
91
|
-
|