vue2-client 1.8.232 → 1.8.233

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": "vue2-client",
3
- "version": "1.8.232",
3
+ "version": "1.8.233",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -10,16 +10,32 @@
10
10
  :wrapperCol="layout === 'inline'&& attr.occupyCol ? labelAndWrapperCol[attr.occupyCol].wrapperCol:undefined"
11
11
  :style="layout === 'inline'&& attr.occupyCol && attr.occupyCol > 1? {width:`calc(100% - ${attr.occupyCol * 1.533}rem)`}:{}"
12
12
  :prop="attr.prop ? attr.prop : attr.model">
13
- <a-input-group v-if="attr.inputOnAfterName && attr.inputOnAfterFunc" compact>
13
+ <!-- 如果配置了后置按钮插槽 -->
14
+ <a-input-group
15
+ v-if="(attr.inputOnAfterName && attr.inputOnAfterFunc) || (attr.inputOnAfterIcon && attr.inputOnAfterIconFunc)"
16
+ style="display: flex; width: 100%;"
17
+ compact>
14
18
  <a-input
15
19
  v-model="form[attr.model]"
16
20
  :read-only="readOnly"
17
21
  :disabled="disabled && !readOnly"
18
- style="width:90%"
22
+ style="flex: 1; width: auto; min-width: 0;"
19
23
  :placeholder="attr.placeholder ? attr.placeholder : '请输入'+attr.name.replace(/\s*/g, '')"/>
20
- <a-button style="width:10%" type="primary" @click="emitFunc(attr.inputOnAfterFunc,form[attr.model])">
24
+ <a-button
25
+ v-if="attr.inputOnAfterName && attr.inputOnAfterFunc"
26
+ style="flex: 1; width: auto; min-width: 4rem;max-width: 6rem"
27
+ type="primary"
28
+ @click="emitFunc(attr.inputOnAfterFunc,form[attr.model])">
21
29
  {{ attr.inputOnAfterName }}
22
30
  </a-button>
31
+ <!-- 仅可以配置 一个按钮 以及 一个图标插槽 -->
32
+ <a-button
33
+ style="width: 2rem; flex-shrink: 0;"
34
+ v-if="attr.inputOnAfterIcon"
35
+ :type="attr.inputOnAfterIcon && attr.inputOnAfterName ? 'primary' :''"
36
+ :icon="attr.inputOnAfterIcon || 'question'"
37
+ @click="emitFunc(attr.inputOnAfterIconFunc,form[attr.model])">
38
+ </a-button>
23
39
  </a-input-group>
24
40
  <a-input
25
41
  v-else