zydx-plus 1.35.617 → 1.35.619

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": "zydx-plus",
3
- "version": "1.35.617",
3
+ "version": "1.35.619",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -3,7 +3,8 @@
3
3
  <div class="choice-title">
4
4
  <div class="choice-title-left">
5
5
  <!-- <span><i>*</i>{{ title }}:</span>-->
6
- <span>{{ isHasOption ? title : '创建选项' }}:</span>
6
+ <span class="choice-customized-title" v-if="isCustomizedTitle" v-html="title"></span>
7
+ <span class="choice-fixed-title" v-else>{{ isHasOption ? title : '创建选项' }}:</span>
7
8
  <em>({{ text }})</em>
8
9
  </div>
9
10
  <div class="choice-title-right">
@@ -93,6 +94,10 @@ export default {
93
94
  column: {
94
95
  type: Object,
95
96
  default: () => {}
97
+ },
98
+ isCustomizedTitle: { // 是否是自定义标题
99
+ type: Boolean,
100
+ default: false
96
101
  }
97
102
  },
98
103
  watch: {
@@ -247,6 +252,9 @@ export default {
247
252
  </script>
248
253
 
249
254
  <style scoped>
255
+ .choice-list{
256
+ text-indent: 27px;
257
+ }
250
258
  .list-cont-input{
251
259
  width: 100%;
252
260
  height: 30px;
@@ -317,10 +325,24 @@ export default {
317
325
  .choice-title-left{
318
326
  flex: 1;
319
327
  }
320
- .choice-title-left span{
328
+ /* .choice-title-left span{
329
+ font-size: 14px;
330
+ font-weight: 700;
331
+ display: inline-block;
332
+ text-indent: 27px;
333
+ } */
334
+ .choice-title-left .choice-customized-title{
335
+ font-size: 14px;
336
+ display: inline-block;
337
+ text-indent: 27px;
338
+ }
339
+ .choice-title-left .choice-fixed-title{
321
340
  font-size: 14px;
322
341
  font-weight: 700;
342
+ display: inline-block;
343
+ text-indent: 27px;
323
344
  }
345
+
324
346
  .choice-title-left span i{
325
347
  color: red;
326
348
  margin-right: 2px;
@@ -24,7 +24,7 @@
24
24
  fill="#c0c4cc"/>
25
25
  </g>
26
26
  </svg>
27
- <svg v-else
27
+ <svg v-if="selected&&clearShow"
28
28
  @click.stop="clearSelected"
29
29
  height="16"
30
30
  viewBox="0 0 1024 1024"
@@ -105,6 +105,10 @@ export default defineComponent({
105
105
  hover: {
106
106
  type: String,
107
107
  default: '#C64C10'
108
+ },
109
+ clearShow: {
110
+ type: Boolean,
111
+ default: true
108
112
  }
109
113
  },
110
114
  data() {
@@ -153,12 +157,18 @@ export default defineComponent({
153
157
  if (this.multiple) {
154
158
  option.active = !option.active
155
159
  let value = ''
160
+ let label = ''
156
161
  this.options.forEach(x => {
157
- if (x.active) value += `${x.value},`
162
+ if (x.active) {
163
+ value += `${x.value},`
164
+ label += `${x.label}、`
165
+ }
158
166
  })
167
+ this.selected = label.slice(0, -1)
159
168
  this.$emit('update:value', value.slice(0, -1))
160
169
  this.$emit('select', {label: option.label, value: option.value})
161
170
  } else {
171
+ this.selected = option.label
162
172
  this.$emit('update:value', option.value)
163
173
  this.$emit('select', option)
164
174
  this.isOpen = false
@@ -70,7 +70,7 @@
70
70
  </div>
71
71
  </div>
72
72
  <div class="input-name" v-if="item.type === 'textarea'">
73
- <div style="width: 300px;height: 100px; text-align: left;font-size: 16px;">
73
+ <div style="width: 300px;text-align: left;font-size: 16px;" :style="{'height': item.height ? `${item.height}px` :'100px'}">
74
74
  <zydx-textarea
75
75
  ref="textarea"
76
76
  :height="item.height?item.height:100"
package/src/index.js CHANGED
@@ -87,7 +87,7 @@ function install(app) {
87
87
  }
88
88
 
89
89
  export default {
90
- version: '1.35.617',
90
+ version: '1.35.619',
91
91
  install,
92
92
  Calendar,
93
93
  Message,