@lx-frontend/wrap-element-ui 0.4.1-beta → 0.4.2-beta
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/packages/SearchForm/src/SearchForm.vue +9 -2
- package/yarn.lock +12226 -0
package/package.json
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
<el-form class='search-form' :inline="isInline" :label-width="width">
|
|
3
3
|
<el-form-item
|
|
4
4
|
v-for="({
|
|
5
|
-
isEmpty = true, key, type, prop, label, placeholder, candidate, filterable=false, withoutAll=false, collapseTags=false,
|
|
5
|
+
isEmpty = true, key, type, prop, separator, label, placeholder, candidate, filterable=false, withoutAll=false, collapseTags=false,
|
|
6
6
|
clearable=false, multiple=false, multipleLimit=0, changeCb, inputLimitCallback, slotName, dateType='date',
|
|
7
|
-
doubleIsInline = true,
|
|
7
|
+
doubleIsInline = true, pickerOptionsStart, pickerOptionsEnd,
|
|
8
8
|
}) in config"
|
|
9
9
|
:key="label"
|
|
10
10
|
:label="showLabel ? label : ''"
|
|
@@ -73,7 +73,9 @@
|
|
|
73
73
|
format="yyyy-MM-dd"
|
|
74
74
|
type="date"
|
|
75
75
|
:placeholder="(placeholder || [])[0] || '开始日期'"
|
|
76
|
+
:pickerOptions="pickerOptionsStart ? pickerOptionsStart : ''"
|
|
76
77
|
/>
|
|
78
|
+
<span v-if="separator" class="ml4">{{separator}}</span>
|
|
77
79
|
<el-date-picker
|
|
78
80
|
@input="val => handleInput(val, prop[1], '', key)"
|
|
79
81
|
@change="(...args) => changeCb && changeCb(...args)"
|
|
@@ -82,6 +84,7 @@
|
|
|
82
84
|
format="yyyy-MM-dd"
|
|
83
85
|
type="date"
|
|
84
86
|
:placeholder="(placeholder || [])[1] || '结束日期'"
|
|
87
|
+
:pickerOptions="pickerOptionsEnd ? pickerOptionsEnd : ''"
|
|
85
88
|
/>
|
|
86
89
|
<el-checkbox :value="checkedIds[key]" v-if="isEmpty" @change="(value) => handelIsEmpty(prop, value, key)" class="is-empty">空白</el-checkbox>
|
|
87
90
|
</div>
|
|
@@ -141,6 +144,9 @@ export default {
|
|
|
141
144
|
clearText: {
|
|
142
145
|
default: '清除',
|
|
143
146
|
type: String
|
|
147
|
+
},
|
|
148
|
+
pickerOptions: {
|
|
149
|
+
type: Function
|
|
144
150
|
}
|
|
145
151
|
},
|
|
146
152
|
data () {
|
|
@@ -214,5 +220,6 @@ export default {
|
|
|
214
220
|
margin-left: 4px;
|
|
215
221
|
}
|
|
216
222
|
}
|
|
223
|
+
.ml4{ margin-left: 4px;}
|
|
217
224
|
}
|
|
218
225
|
</style>
|