bri-components 1.5.0 → 1.5.2
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/controls/DshControlInput.vue +1 -1
- package/src/components/controls/extra/DshThemeIcon.vue +7 -10
- package/src/components/controls/mixins/controlMixin.js +3 -0
- package/src/components/form/DshDefaultSearch.vue +5 -5
- package/src/components/list/mixins/tableBaseMixin.js +5 -10
- package/src/components/list/mixins/treeTableBaseMixin.js +1 -2
- package/src/styles/global/variables.less +7 -6
- package/src/styles/index.less +16 -1
package/package.json
CHANGED
|
@@ -14,12 +14,7 @@
|
|
|
14
14
|
}"
|
|
15
15
|
@click="curVal = icon"
|
|
16
16
|
>
|
|
17
|
-
<div
|
|
18
|
-
class="item-content"
|
|
19
|
-
:style="{
|
|
20
|
-
'backgroundColor': relateColor
|
|
21
|
-
}"
|
|
22
|
-
>
|
|
17
|
+
<div class="item-content">
|
|
23
18
|
<Icon :custom="'bico-font ' + iconPrefix + icon.replace('icon-', 'icon')" />
|
|
24
19
|
</div>
|
|
25
20
|
</div>
|
|
@@ -43,12 +38,13 @@
|
|
|
43
38
|
selfPropsObj () {
|
|
44
39
|
return {
|
|
45
40
|
_relateColorKey: "colorType",
|
|
46
|
-
_iconPrefix: "bico
|
|
41
|
+
_iconPrefix: "bico",
|
|
47
42
|
|
|
48
43
|
...this.propsObj,
|
|
49
44
|
...this.commonDealPropsObj
|
|
50
45
|
};
|
|
51
46
|
},
|
|
47
|
+
|
|
52
48
|
relateColorKey () {
|
|
53
49
|
return this.selfPropsObj._relateColorKey;
|
|
54
50
|
},
|
|
@@ -56,12 +52,12 @@
|
|
|
56
52
|
return this.value[this.relateColorKey];
|
|
57
53
|
},
|
|
58
54
|
|
|
55
|
+
iconPrefix () {
|
|
56
|
+
return `${this.selfPropsObj._iconPrefix || ""}-`;
|
|
57
|
+
},
|
|
59
58
|
themeIcons () {
|
|
60
59
|
return this.$appData.themeIcons || [];
|
|
61
60
|
},
|
|
62
|
-
iconPrefix () {
|
|
63
|
-
return this.selfPropsObj._iconPrefix;
|
|
64
|
-
},
|
|
65
61
|
|
|
66
62
|
themeColorMap () {
|
|
67
63
|
return this.$appData.themeColorMap || {};
|
|
@@ -106,6 +102,7 @@
|
|
|
106
102
|
width: 38px;
|
|
107
103
|
height: 38px;
|
|
108
104
|
margin: 8px auto;
|
|
105
|
+
background-color: @theme-color-self;
|
|
109
106
|
border-radius: 38px;
|
|
110
107
|
line-height: 38px;
|
|
111
108
|
text-align: center;
|
|
@@ -238,16 +238,16 @@
|
|
|
238
238
|
|
|
239
239
|
&-focused,
|
|
240
240
|
&:focus {
|
|
241
|
-
border-color:
|
|
242
|
-
box-shadow: 0 0 0 2px
|
|
241
|
+
border-color: @theme-hover;
|
|
242
|
+
box-shadow: 0 0 0 2px @theme-focus;
|
|
243
243
|
}
|
|
244
244
|
&:hover {
|
|
245
|
-
border-color:
|
|
245
|
+
border-color: @theme-hover;
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
.ivu-select-visible .ivu-select-selection {
|
|
249
|
-
border-color:
|
|
250
|
-
box-shadow: 0 0 0 2px
|
|
249
|
+
border-color: @theme-hover;
|
|
250
|
+
box-shadow: 0 0 0 2px @theme-focus;
|
|
251
251
|
}
|
|
252
252
|
.ivu-input-icon,
|
|
253
253
|
.ivu-select-arrow {
|
|
@@ -137,7 +137,6 @@ export default {
|
|
|
137
137
|
btnType: "errorText",
|
|
138
138
|
icon: "md-trash",
|
|
139
139
|
size: "small",
|
|
140
|
-
color: "#E83636",
|
|
141
140
|
disabled: false,
|
|
142
141
|
event: "clickDelete"
|
|
143
142
|
}
|
|
@@ -199,13 +198,10 @@ export default {
|
|
|
199
198
|
};
|
|
200
199
|
},
|
|
201
200
|
computed: {
|
|
202
|
-
appObj () {
|
|
203
|
-
return this.$store.getters.appThemeColor;
|
|
204
|
-
},
|
|
205
|
-
|
|
206
201
|
dshRender () {
|
|
207
202
|
return this[this.dshRenderName];
|
|
208
203
|
},
|
|
204
|
+
|
|
209
205
|
controlKey () {
|
|
210
206
|
return this.propsObj._key;
|
|
211
207
|
},
|
|
@@ -715,8 +711,7 @@ export default {
|
|
|
715
711
|
: this.baseOperationMap.canInsert.name,
|
|
716
712
|
tip: this.showMode === "form"
|
|
717
713
|
? this.baseOperationMap.canInsert.tip.replace("行", "条")
|
|
718
|
-
: this.baseOperationMap.canInsert.tip
|
|
719
|
-
color: this.appThemeColor
|
|
714
|
+
: this.baseOperationMap.canInsert.tip
|
|
720
715
|
},
|
|
721
716
|
canHideOrShow: {
|
|
722
717
|
...this.topOperationMap.canHideOrShow,
|
|
@@ -1344,13 +1339,13 @@ export default {
|
|
|
1344
1339
|
|
|
1345
1340
|
return operationItem && operationItem.disabled !== true
|
|
1346
1341
|
? h("div", {
|
|
1342
|
+
class: `dsh-color-border-${operationItem.btnType.includes("error") ? "error" : "primary"}`,
|
|
1347
1343
|
style: {
|
|
1348
1344
|
position: "absolute",
|
|
1349
1345
|
bottom: "0px",
|
|
1350
1346
|
right: isLeft ? `${iconSize + 3}px` : "0px",
|
|
1351
1347
|
width: `${iconSize + 2}px`,
|
|
1352
1348
|
height: `${iconSize + 2}px`,
|
|
1353
|
-
border: `1px solid ${operationItem.color}`,
|
|
1354
1349
|
borderRadius: "2px",
|
|
1355
1350
|
backgroundColor: "#ffffff",
|
|
1356
1351
|
lineHeight: `${iconSize - 2}px`,
|
|
@@ -1367,9 +1362,9 @@ export default {
|
|
|
1367
1362
|
}
|
|
1368
1363
|
}, [
|
|
1369
1364
|
h("Icon", {
|
|
1365
|
+
class: `dsh-color-${operationItem.btnType.includes("error") ? "error" : "primary"}`,
|
|
1370
1366
|
style: {
|
|
1371
|
-
fontWeight: "500"
|
|
1372
|
-
color: operationItem.color
|
|
1367
|
+
fontWeight: "500"
|
|
1373
1368
|
},
|
|
1374
1369
|
props: {
|
|
1375
1370
|
type: operationItem.icon,
|
|
@@ -78,8 +78,7 @@ export default {
|
|
|
78
78
|
: this.baseOperationMap.canCreateChild.name,
|
|
79
79
|
tip: this.showMode === "form"
|
|
80
80
|
? this.baseOperationMap.canCreateChild.tip.replace("行", "条")
|
|
81
|
-
: this.baseOperationMap.canCreateChild.tip
|
|
82
|
-
color: this.appThemeColor
|
|
81
|
+
: this.baseOperationMap.canCreateChild.tip
|
|
83
82
|
}
|
|
84
83
|
};
|
|
85
84
|
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
//
|
|
1
|
+
// 主题色系列 -默认
|
|
2
2
|
@themeColor-default : #3DB8C5;
|
|
3
3
|
@theme-hover-default : #7DD0D8;
|
|
4
4
|
@theme-active-default : #298089;
|
|
5
5
|
@theme-focus-default : #DCF2F4;
|
|
6
6
|
@theme-disabled-default : #BCE7EB;
|
|
7
|
-
|
|
8
|
-
@
|
|
9
|
-
@theme-
|
|
10
|
-
@theme-
|
|
11
|
-
@theme-
|
|
7
|
+
// 主题颜色系列
|
|
8
|
+
@themeColor : #3DB8C5;
|
|
9
|
+
@theme-hover : #7DD0D8;
|
|
10
|
+
@theme-active : #298089;
|
|
11
|
+
@theme-focus : #DCF2F4;
|
|
12
|
+
@theme-disabled : #BCE7EB;
|
|
12
13
|
|
|
13
14
|
// 背景色
|
|
14
15
|
@bgColor : #F5F5F5;
|
package/src/styles/index.less
CHANGED
|
@@ -9,4 +9,19 @@
|
|
|
9
9
|
// @import "./global/global.less"; // 全局公共css
|
|
10
10
|
|
|
11
11
|
@import "./iconfont/iconfont.css"; // 字体图标样式
|
|
12
|
-
@import "./components/index.less"; // 组件样式
|
|
12
|
+
@import "./components/index.less"; // 组件样式
|
|
13
|
+
|
|
14
|
+
.dsh-color-primary {
|
|
15
|
+
color: @themeColor;
|
|
16
|
+
}
|
|
17
|
+
.dsh-color-error {
|
|
18
|
+
color: @error-color;
|
|
19
|
+
}
|
|
20
|
+
.dsh-color-border-primary {
|
|
21
|
+
border: 1px solid @themeColor;
|
|
22
|
+
color: @themeColor;
|
|
23
|
+
}
|
|
24
|
+
.dsh-color-border-error {
|
|
25
|
+
color: @error-color;
|
|
26
|
+
border: 1px solid @error-color;
|
|
27
|
+
}
|