xianniu-ui 0.3.30 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xianniu-ui",
3
- "version": "0.3.30",
3
+ "version": "0.3.33",
4
4
  "private": false,
5
5
  "main": "lib/xianniu-ui.umd.min.js",
6
6
  "scripts": {
@@ -97,18 +97,23 @@
97
97
  </el-col>
98
98
  </template>
99
99
  <el-col v-bind="{ ...col }">
100
- <el-form-item :style="{ 'padding-left': `${labelWidth}` }">
100
+ <el-form-item
101
+ class="xn-search-searchbtn"
102
+ :style="{ 'padding-left': `${lastLabelWidth || labelWidth}` }"
103
+ >
104
+ <slot name="prepend"></slot>
101
105
  <el-button type="primary" icon="el-icon-search" @click="onSearch"
102
106
  >查询</el-button
103
107
  >
104
108
  <el-button @click="onReset">重置</el-button>
109
+ <slot name="append"></slot>
105
110
  <el-button
106
111
  v-if="formData.length && formData.length > 4"
107
112
  type="text"
108
113
  @click="isColl = !isColl"
109
114
  >
110
115
  <template v-if="_showColl">
111
- <span>{{ isColl ? "收起" : "高级查询" }}</span
116
+ <span>{{ isColl ? "收起" : "展开" }}</span
112
117
  ><i class="ml-5" :class="toggle"></i>
113
118
  </template>
114
119
  </el-button>
@@ -143,6 +148,10 @@ export default {
143
148
  type: Number,
144
149
  default: 3,
145
150
  },
151
+ lastLabelWidth: {
152
+ type: String,
153
+ default: null,
154
+ },
146
155
  },
147
156
  computed: {
148
157
  _showColl() {
@@ -3,6 +3,15 @@
3
3
  .text-success{color: $--color-success!important;}
4
4
  .text-danger{color: $--color-danger!important;}
5
5
  .text-warning{color: $--color-warning!important;}
6
+
7
+ .fw-1{font-weight: 100 !important;}
8
+ .fw-2{font-weight: 200 !important;}
9
+ .fw-3{font-weight: 300 !important;}
10
+ .fw-4{font-weight: 400 !important;}
11
+ .fw-5{font-weight: 500 !important;}
12
+ .fw-6{font-weight: 600 !important;}
13
+ .fw-7{font-weight: 700 !important;}
14
+
6
15
  @for $i from 0 through 30 {
7
16
  .m-#{$i} {
8
17
  margin: ($i) + px !important;
@@ -53,12 +62,6 @@
53
62
  line-clamp: 2;
54
63
  -webkit-box-orient: vertical;
55
64
  }
56
- .text-right {
57
- text-align: right;
58
- }
59
- .text-center {
60
- text-align: center;
61
- }
62
- .text-left {
63
- text-align: left;
64
- }
65
+ .text-right {text-align: right !important;}
66
+ .text-center {text-align: center !important;}
67
+ .text-left {text-align: left !important;}
@@ -9,6 +9,11 @@
9
9
  .el-form-item__label {
10
10
  flex: none;
11
11
  }
12
+ &.xn-search-searchbtn{
13
+ .el-form-item__content{
14
+ white-space: nowrap;
15
+ }
16
+ }
12
17
  }
13
18
  }
14
19
  }