bri-components 1.2.6 → 1.2.7
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
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<Input
|
|
6
6
|
class="DshInput-edit"
|
|
7
7
|
v-model="value[controlKey]"
|
|
8
|
-
:type="
|
|
8
|
+
:type="inputType"
|
|
9
9
|
:placeholder="selfPropsObj._placeholder"
|
|
10
10
|
:readonly="selfPropsObj._readonly"
|
|
11
11
|
:disabled="!finalCanEdit || selfPropsObj._disabled"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
<!-- 查看 -->
|
|
39
39
|
<template v-else>
|
|
40
40
|
<!-- 查看页 的textarea单独处理 -->
|
|
41
|
-
<template v-if="
|
|
41
|
+
<template v-if="inputType === 'textarea' && !$isEmptyData(curVal) && !isUnitShow">
|
|
42
42
|
<p
|
|
43
43
|
class="DshInput-show-textarea"
|
|
44
44
|
v-text="showVal"
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
}">
|
|
60
60
|
<!-- 有值 -->
|
|
61
61
|
<a
|
|
62
|
-
v-if="
|
|
62
|
+
v-if="inputType === 'url' && !$isEmptyData(curVal)"
|
|
63
63
|
class="text"
|
|
64
64
|
@click="goHttpWindow($event)"
|
|
65
65
|
>
|
|
@@ -95,8 +95,8 @@
|
|
|
95
95
|
selfPropsObj () {
|
|
96
96
|
return {
|
|
97
97
|
_textType: "default",
|
|
98
|
-
_readonly: ["serialNumber"].includes(this.
|
|
99
|
-
|
|
98
|
+
_readonly: ["serialNumber"].includes(this.controlType),
|
|
99
|
+
_disabled: ["serialNumber"].includes(this.controlType),
|
|
100
100
|
_showWordLimit: this.propsObj._showWordLimit || (!!this.propsObj._maxlength || this.propsObj._maxlength === 0),
|
|
101
101
|
_autosize: {
|
|
102
102
|
minRows: 2
|
|
@@ -106,15 +106,18 @@
|
|
|
106
106
|
...this.commonDealPropsObj
|
|
107
107
|
};
|
|
108
108
|
},
|
|
109
|
-
|
|
110
|
-
return ["
|
|
111
|
-
?
|
|
112
|
-
: ["text"
|
|
113
|
-
?
|
|
114
|
-
: "
|
|
109
|
+
inputType () {
|
|
110
|
+
return ["textarea", "password", "email", "url", "number", "tel"].includes(this.controlType)
|
|
111
|
+
? this.controlType
|
|
112
|
+
: ["text"].includes(this.controlType) && ["url"].includes(this.subType)
|
|
113
|
+
? "url"
|
|
114
|
+
: ["serialNumber"].includes(this.controlType)
|
|
115
|
+
? "text"
|
|
116
|
+
: "text";
|
|
115
117
|
},
|
|
116
|
-
|
|
117
|
-
|
|
118
|
+
// 子类型,只在type="text"有效
|
|
119
|
+
subType () {
|
|
120
|
+
return this.selfPropsObj._textType;
|
|
118
121
|
}
|
|
119
122
|
},
|
|
120
123
|
created () {},
|
|
@@ -17,7 +17,9 @@
|
|
|
17
17
|
:disabled="obj.disabled"
|
|
18
18
|
@on-change="changePage"
|
|
19
19
|
@on-page-size-change="changePageSize"
|
|
20
|
-
|
|
20
|
+
>
|
|
21
|
+
<slot></slot>
|
|
22
|
+
</Page>
|
|
21
23
|
</template>
|
|
22
24
|
|
|
23
25
|
<script>
|
|
@@ -32,7 +34,7 @@
|
|
|
32
34
|
}
|
|
33
35
|
},
|
|
34
36
|
total: {
|
|
35
|
-
type: Number,
|
|
37
|
+
type: [Number, String],
|
|
36
38
|
default: 0
|
|
37
39
|
},
|
|
38
40
|
propsObj: {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
.DshPage {
|
|
2
2
|
width: 100%;
|
|
3
|
-
text-align: right;
|
|
4
|
-
font-size: 14px;
|
|
5
|
-
color: #666;
|
|
6
3
|
height: 24px;
|
|
7
4
|
line-height: 24px;
|
|
8
|
-
|
|
5
|
+
text-align: right;
|
|
6
|
+
font-size: 14px;
|
|
7
|
+
|
|
8
|
+
.ivu-page-total {
|
|
9
9
|
float: left;
|
|
10
10
|
}
|
|
11
|
-
.ivu-select-selection{
|
|
12
|
-
border: 0px
|
|
11
|
+
.ivu-select-selection {
|
|
12
|
+
border: 0px!important;
|
|
13
13
|
}
|
|
14
14
|
.ivu-page-item-active {
|
|
15
15
|
a,
|
|
@@ -29,12 +29,11 @@
|
|
|
29
29
|
.ivu-page-item {
|
|
30
30
|
height: 24px!important;
|
|
31
31
|
line-height: 24px!important;
|
|
32
|
-
// background: @white;
|
|
33
32
|
background: transparent;
|
|
34
33
|
display: inline-block;
|
|
35
34
|
vertical-align: middle;
|
|
36
35
|
}
|
|
37
|
-
.ivu-select-single .ivu-select-selection .ivu-select-selected-value{
|
|
36
|
+
.ivu-select-single .ivu-select-selection .ivu-select-selected-value {
|
|
38
37
|
height: 24px!important;
|
|
39
38
|
line-height: 24px!important;
|
|
40
39
|
}
|
|
@@ -46,7 +45,6 @@
|
|
|
46
45
|
a {
|
|
47
46
|
color: #000;
|
|
48
47
|
font-weight: bold;
|
|
49
|
-
// font-size: 14px;
|
|
50
48
|
}
|
|
51
49
|
}
|
|
52
50
|
.ivu-page-item {
|