xianniu-ui 0.3.32 → 0.3.33
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/search/main.vue +11 -3
package/package.json
CHANGED
package/packages/search/main.vue
CHANGED
|
@@ -97,19 +97,23 @@
|
|
|
97
97
|
</el-col>
|
|
98
98
|
</template>
|
|
99
99
|
<el-col v-bind="{ ...col }">
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
<el-form-item
|
|
101
|
+
class="xn-search-searchbtn"
|
|
102
|
+
:style="{ 'padding-left': `${lastLabelWidth || labelWidth}` }"
|
|
103
|
+
>
|
|
104
|
+
<slot name="prepend"></slot>
|
|
102
105
|
<el-button type="primary" icon="el-icon-search" @click="onSearch"
|
|
103
106
|
>查询</el-button
|
|
104
107
|
>
|
|
105
108
|
<el-button @click="onReset">重置</el-button>
|
|
109
|
+
<slot name="append"></slot>
|
|
106
110
|
<el-button
|
|
107
111
|
v-if="formData.length && formData.length > 4"
|
|
108
112
|
type="text"
|
|
109
113
|
@click="isColl = !isColl"
|
|
110
114
|
>
|
|
111
115
|
<template v-if="_showColl">
|
|
112
|
-
<span>{{ isColl ? "收起" : "
|
|
116
|
+
<span>{{ isColl ? "收起" : "展开" }}</span
|
|
113
117
|
><i class="ml-5" :class="toggle"></i>
|
|
114
118
|
</template>
|
|
115
119
|
</el-button>
|
|
@@ -144,6 +148,10 @@ export default {
|
|
|
144
148
|
type: Number,
|
|
145
149
|
default: 3,
|
|
146
150
|
},
|
|
151
|
+
lastLabelWidth: {
|
|
152
|
+
type: String,
|
|
153
|
+
default: null,
|
|
154
|
+
},
|
|
147
155
|
},
|
|
148
156
|
computed: {
|
|
149
157
|
_showColl() {
|