haiwei-ui 1.1.8 → 1.2.0

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": "haiwei-ui",
3
- "version": "1.1.8",
3
+ "version": "1.2.0",
4
4
  "description": "HaiWei前端组件库",
5
5
  "author": "Eric",
6
6
  "license": "ISC",
@@ -12,9 +12,6 @@
12
12
  <el-form-item v-if="exportEnabled" v-nm-has="exportBtnCode">
13
13
  <nm-button type="primary" @click="onExport" icon="export" text="导出" />
14
14
  </el-form-item>
15
- <el-form-item v-if="importEnabled" v-nm-has="importBtnCode">
16
- <nm-button type="primary" @click="onImport" icon="import" text="导入" />
17
- </el-form-item>
18
15
  <el-form-item v-if="advanced_.enabled">
19
16
  <nm-button ref="showAdvnacedBtn" type="warning" @click="onAdvancedClick">
20
17
  高级查询
@@ -93,11 +90,7 @@
93
90
  /**显示导出按钮 */
94
91
  exportEnabled: Boolean,
95
92
  /**导出按钮权限编码 */
96
- exportBtnCode: String,
97
- /**显示导入按钮 */
98
- importEnabled: Boolean,
99
- /**导入按钮权限编码 */
100
- importBtnCode: String
93
+ exportBtnCode: String
101
94
  },
102
95
  computed: {
103
96
  model_() {
@@ -193,9 +186,6 @@
193
186
  },
194
187
  onExport() {
195
188
  this.$parent.triggerExport()
196
- },
197
- onImport() {
198
- this.$parent.triggerImport()
199
189
  }
200
190
  },
201
191
  mounted() {
@@ -4,9 +4,7 @@ export default {
4
4
  mixins: [select],
5
5
  props: {
6
6
  // 接口方法
7
- method: Function,
8
- // 宽度设置,支持CSS宽度值如:300px、100%、auto等
9
- width: String
7
+ method: Function
10
8
  },
11
9
  created() {
12
10
  this.action = this.method
@@ -49,11 +49,6 @@ export default {
49
49
  remoteQueryInterval: {
50
50
  type: Number,
51
51
  default: 800
52
- },
53
- /** 宽度设置,支持CSS宽度值如:300px、100%、auto等 */
54
- width: {
55
- type: String,
56
- default: ''
57
52
  }
58
53
  },
59
54
  computed: {
@@ -174,10 +169,6 @@ export default {
174
169
  'div',
175
170
  {
176
171
  class: 'nm-select',
177
- style: {
178
- // 设置外部容器宽度,确保内部元素继承
179
- width: this.width || '100%'
180
- },
181
172
  attrs: {
182
173
  'element-loading-background': 'rgba(255, 255, 255, 0.5)'
183
174
  },
@@ -192,11 +183,7 @@ export default {
192
183
  h(
193
184
  'div',
194
185
  {
195
- class: 'nm-select-input',
196
- style: {
197
- // 内部容器也设置宽度,确保el-select继承
198
- width: '100%'
199
- }
186
+ class: 'nm-select-input'
200
187
  },
201
188
  [
202
189
  h(
@@ -214,10 +201,6 @@ export default {
214
201
  remote: this.remote,
215
202
  remoteMethod: this.remoteMethod
216
203
  },
217
- style: {
218
- // 使用width属性,如果未设置则使用100%宽度
219
- width: this.width || '100%'
220
- },
221
204
  on: {
222
205
  change: this.onChange,
223
206
  'visible-change': this.onVisibleChange,