meixioacomponent 0.2.48 → 0.2.51

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.
@@ -1603,13 +1603,13 @@
1603
1603
  .el-tag--dark {
1604
1604
  background-color: var(--color-primary);
1605
1605
  border-color: var(--color-primary);
1606
- color: var(--bg-white);
1606
+ color: var(--text-white);
1607
1607
  }
1608
1608
  .el-tag--dark.is-hit {
1609
1609
  border-color: var(--color-primary);
1610
1610
  }
1611
1611
  .el-tag--dark .el-tag__close {
1612
- color: var(--bg-white);
1612
+ color: var(--text-white);
1613
1613
  }
1614
1614
  .el-tag--dark .el-tag__close:hover {
1615
1615
  color: var(--bg-white);
@@ -1633,16 +1633,16 @@
1633
1633
  .el-tag--dark.el-tag--success {
1634
1634
  background-color: #34c724;
1635
1635
  border-color: #34c724;
1636
- color: var(--bg-white);
1636
+ color: var(--text-white);
1637
1637
  }
1638
1638
  .el-tag--dark.el-tag--success.is-hit {
1639
1639
  border-color: #34c724;
1640
1640
  }
1641
1641
  .el-tag--dark.el-tag--success .el-tag__close {
1642
- color: var(--bg-white);
1642
+ color: var(--text-white);
1643
1643
  }
1644
1644
  .el-tag--dark.el-tag--success .el-tag__close:hover {
1645
- color: var(--bg-white);
1645
+ color: var(--text-white);
1646
1646
  background-color: #5dd250;
1647
1647
  }
1648
1648
  .el-tag.el-tag--warning {
@@ -1654,10 +1654,10 @@
1654
1654
  border-color: #f80;
1655
1655
  }
1656
1656
  .el-tag--dark.el-tag--warning .el-tag__close {
1657
- color: var(--bg-white);
1657
+ color: var(--text-white);
1658
1658
  }
1659
1659
  .el-tag--dark.el-tag--warning .el-tag__close:hover {
1660
- color: var(--bg-white);
1660
+ color: var(--text-white);
1661
1661
  background-color: #ffa033;
1662
1662
  }
1663
1663
  .el-tag--dark.el-tag--danger {
@@ -1668,10 +1668,10 @@
1668
1668
  border-color: var(--color-error);
1669
1669
  }
1670
1670
  .el-tag--dark.el-tag--danger .el-tag__close {
1671
- color: var(--bg-white);
1671
+ color: var(--text-white);
1672
1672
  }
1673
1673
  .el-tag--dark.el-tag--danger .el-tag__close:hover {
1674
- color: var(--bg-white);
1674
+ color: var(--text-white);
1675
1675
  background-color: #f76e6a;
1676
1676
  }
1677
1677
  .el-tag--plain {
@@ -3011,31 +3011,7 @@
3011
3011
  .el-autocomplete-suggestion.is-loading .el-icon-loading {
3012
3012
  vertical-align: middle;
3013
3013
  }
3014
- .el-button {
3015
- display: inline-block;
3016
- line-height: 1;
3017
- white-space: nowrap;
3018
- cursor: pointer;
3019
- background: var(--bg-white);
3020
- border: 1px solid #bbbfc4;
3021
- border-color: #bbbfc4;
3022
- color: var(--font-color-d);
3023
- -webkit-appearance: none;
3024
- text-align: center;
3025
- -webkit-box-sizing: border-box;
3026
- box-sizing: border-box;
3027
- outline: 0;
3028
- margin: 0;
3029
- -webkit-transition: 0.1s;
3030
- transition: 0.1s;
3031
- font-weight: 500;
3032
- -moz-user-select: none;
3033
- -webkit-user-select: none;
3034
- -ms-user-select: none;
3035
- padding: 12px 20px;
3036
- font-size: 14px;
3037
- border-radius: 4px;
3038
- }
3014
+
3039
3015
  .el-button + .el-button {
3040
3016
  margin-left: 10px;
3041
3017
  }
@@ -6746,31 +6722,7 @@
6746
6722
  -webkit-transform: translate(0, 0.5px);
6747
6723
  transform: translate(0, 0.5px);
6748
6724
  }
6749
- .el-button {
6750
- display: inline-block;
6751
- line-height: 1;
6752
- white-space: nowrap;
6753
- cursor: pointer;
6754
- background: var(--bg-white);
6755
- border: 1px solid #bbbfc4;
6756
- border-color: #bbbfc4;
6757
- color: var(--font-color-d);
6758
- -webkit-appearance: none;
6759
- text-align: center;
6760
- -webkit-box-sizing: border-box;
6761
- box-sizing: border-box;
6762
- outline: 0;
6763
- margin: 0;
6764
- -webkit-transition: 0.1s;
6765
- transition: 0.1s;
6766
- font-weight: 500;
6767
- -moz-user-select: none;
6768
- -webkit-user-select: none;
6769
- -ms-user-select: none;
6770
- padding: 12px 20px;
6771
- font-size: 14px;
6772
- border-radius: 4px;
6773
- }
6725
+
6774
6726
  .el-button + .el-button {
6775
6727
  margin-left: 10px;
6776
6728
  }
@@ -12545,31 +12497,7 @@
12545
12497
  .el-popup-parent--hidden {
12546
12498
  overflow: hidden;
12547
12499
  }
12548
- .el-button {
12549
- display: inline-block;
12550
- line-height: 1;
12551
- white-space: nowrap;
12552
- cursor: pointer;
12553
- background: var(--bg-white);
12554
- border: 1px solid #bbbfc4;
12555
- border-color: #bbbfc4;
12556
- color: var(--font-color-d);
12557
- -webkit-appearance: none;
12558
- text-align: center;
12559
- -webkit-box-sizing: border-box;
12560
- box-sizing: border-box;
12561
- outline: 0;
12562
- margin: 0;
12563
- -webkit-transition: 0.1s;
12564
- transition: 0.1s;
12565
- font-weight: 500;
12566
- -moz-user-select: none;
12567
- -webkit-user-select: none;
12568
- -ms-user-select: none;
12569
- padding: 12px 20px;
12570
- font-size: 14px;
12571
- border-radius: 4px;
12572
- }
12500
+
12573
12501
  .el-button + .el-button {
12574
12502
  margin-left: 10px;
12575
12503
  }
@@ -22827,8 +22755,6 @@
22827
22755
  white-space: nowrap;
22828
22756
  cursor: pointer;
22829
22757
  background: var(--bg-white);
22830
- border: 1px solid #bbbfc4;
22831
- border-color: #bbbfc4;
22832
22758
  color: var(--font-color-d);
22833
22759
  -webkit-appearance: none;
22834
22760
  text-align: center;
@@ -24377,31 +24303,7 @@
24377
24303
  opacity: 0;
24378
24304
  }
24379
24305
  }
24380
- .el-button {
24381
- display: inline-block;
24382
- line-height: 1;
24383
- white-space: nowrap;
24384
- cursor: pointer;
24385
- background: var(--bg-white);
24386
- border: 1px solid #bbbfc4;
24387
- border-color: #bbbfc4;
24388
- color: var(--font-color-d);
24389
- -webkit-appearance: none;
24390
- text-align: center;
24391
- -webkit-box-sizing: border-box;
24392
- box-sizing: border-box;
24393
- outline: 0;
24394
- margin: 0;
24395
- -webkit-transition: 0.1s;
24396
- transition: 0.1s;
24397
- font-weight: 500;
24398
- -moz-user-select: none;
24399
- -webkit-user-select: none;
24400
- -ms-user-select: none;
24401
- padding: 12px 20px;
24402
- font-size: 14px;
24403
- border-radius: 4px;
24404
- }
24306
+
24405
24307
  .el-button + .el-button {
24406
24308
  margin-left: 10px;
24407
24309
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meixioacomponent",
3
- "version": "0.2.48",
3
+ "version": "0.2.51",
4
4
  "private": false,
5
5
  "author": "YuRi",
6
6
  "main": "lib/meixioacomponent.umd.min.js",
@@ -228,7 +228,7 @@ export default {
228
228
  height: auto;
229
229
  line-height: 1;
230
230
  padding: 0;
231
- background-color: #fff;
231
+ background-color: var(--bg-white);
232
232
  }
233
233
  .tree {
234
234
  padding: var(--padding-2) var(--padding-2);
@@ -33,6 +33,7 @@ export default {
33
33
  init() {
34
34
  // 初始化并且赋予需要挂载的组件props值
35
35
  let props = this.vueComponent.props;
36
+ console.log(props);
36
37
 
37
38
  if (props) {
38
39
  if (typeof props == "Array") {
@@ -1,9 +1,9 @@
1
1
  <template>
2
2
  <div class="pro_form_content" ref="proFormWrap">
3
3
  <el-form
4
- v-if="!loading"
5
4
  ref="form"
6
5
  :rules="rules"
6
+ v-if="!loading"
7
7
  :model="formdata"
8
8
  :label-width="labelWidth"
9
9
  :label-position="labelPosition"
@@ -14,6 +14,9 @@
14
14
  v-show="!item.renderHide"
15
15
  class="pro-form-item-content"
16
16
  :class="[`chunk-${chunkLength}`]"
17
+ :style="{
18
+ width: itemWidth,
19
+ }"
17
20
  >
18
21
  <el-form-item
19
22
  :prop="item.key"
@@ -72,6 +75,7 @@
72
75
  :key="item.key"
73
76
  v-for="item in module"
74
77
  :class="[`chunk-${chunkLength}`, `${flexClass}`, size]"
78
+ :style="{ width: itemWidth }"
75
79
  >
76
80
  <pro_formItem_skeletonVue></pro_formItem_skeletonVue>
77
81
  </div>
@@ -162,6 +166,9 @@ export default {
162
166
  pro_formItem_skeletonVue,
163
167
  },
164
168
  computed: {
169
+ itemWidth() {
170
+ return `${100 / this.chunkLength}%`;
171
+ },
165
172
  module: {
166
173
  set(val) {
167
174
  this.$emit("input", val);
@@ -382,7 +389,7 @@ export default {
382
389
  display: flex;
383
390
  flex-flow: row wrap;
384
391
  align-items: center;
385
- justify-content: space-between;
392
+ justify-content: flex-start;
386
393
  }
387
394
  /deep/.el-form {
388
395
  width: 100%;
@@ -390,7 +397,7 @@ export default {
390
397
  display: flex;
391
398
  flex-flow: row wrap;
392
399
  align-items: center;
393
- justify-content: space-between;
400
+ justify-content: flex-start;
394
401
  }
395
402
  /deep/ .el-form-item {
396
403
  width: 100%;
@@ -401,15 +408,7 @@ export default {
401
408
  padding-right: var(--padding-5);
402
409
  margin-left: 0px !important;
403
410
  }
404
- .chunk-1 {
405
- width: 100%;
406
- }
407
- .chunk-2 {
408
- width: 50%;
409
- }
410
- .chunk-3 {
411
- width: 33%;
412
- }
411
+
413
412
  .flex-row {
414
413
  display: flex;
415
414
  align-items: center;
@@ -73,6 +73,7 @@
73
73
  ref="target"
74
74
  :size="size"
75
75
  v-model="module"
76
+ :disabled="config.disabled"
76
77
  v-if="config.type == 'input'"
77
78
  style="width: 100%; height: 100%"
78
79
  >
@@ -81,17 +82,21 @@
81
82
  <el-input-number
82
83
  ref="target"
83
84
  :size="size"
84
- v-else-if="config.type == 'number'"
85
- v-model.number="module"
86
85
  :controls="false"
86
+ v-model.number="module"
87
+ :disabled="config.disabled"
88
+ v-else-if="config.type == 'number'"
89
+ style="width: 100%; height: 100%"
87
90
  ></el-input-number>
88
91
  <!--数字类型两位小数 -->
89
92
  <el-input-number
90
93
  :size="size"
91
94
  ref="target"
92
95
  :precision="2"
93
- v-model.number="module"
94
96
  :controls="false"
97
+ v-model.number="module"
98
+ :disabled="config.disabled"
99
+ style="width: 100%; height: 100%"
95
100
  v-else-if="config.type == 'number2'"
96
101
  ></el-input-number>
97
102
  <!-- select选择器 -->
@@ -103,6 +108,7 @@
103
108
  :multiple="multiple"
104
109
  :filterable="true"
105
110
  :loading="selectLoading"
111
+ :disabled="config.disabled"
106
112
  @visible-change="visibleChange"
107
113
  style="width: 100%; height: 100%"
108
114
  v-else-if="config.type == 'select'"
@@ -125,6 +131,7 @@
125
131
  ref="target"
126
132
  placeholder="选择日期"
127
133
  value-format="timestamp"
134
+ :disabled="config.disabled"
128
135
  :prefix-icon="`el-icon-time`"
129
136
  style="width: 100%; height: 100%"
130
137
  v-else-if="config.type == 'time'"
@@ -135,11 +142,13 @@
135
142
  <el-radio-group
136
143
  v-model="module"
137
144
  size="mini"
145
+ :disabled="config.disabled"
138
146
  v-else-if="config.type == 'radio'"
139
147
  >
140
148
  <el-radio-button
141
149
  :key="index"
142
150
  :label="item.value"
151
+ :disabled="config.disabled"
143
152
  v-for="(item, index) in config.list"
144
153
  >{{ item.label }}</el-radio-button
145
154
  >
@@ -151,11 +160,13 @@
151
160
  :max="checkMax"
152
161
  v-model="module"
153
162
  style="width: 100%"
163
+ :disabled="config.disabled"
154
164
  v-else-if="config.type == 'checkbox'"
155
165
  >
156
166
  <el-checkbox
157
167
  :key="index"
158
168
  :label="item"
169
+ :disabled="config.disabled"
159
170
  v-for="(item, index) in config.list"
160
171
  >{{ item }}</el-checkbox
161
172
  >
@@ -167,6 +178,7 @@
167
178
  :size="size"
168
179
  type="textarea"
169
180
  v-model="module"
181
+ :disabled="config.disabled"
170
182
  v-if="config.type == 'textarea'"
171
183
  >
172
184
  </el-input>
@@ -1603,13 +1603,13 @@
1603
1603
  .el-tag--dark {
1604
1604
  background-color: var(--color-primary);
1605
1605
  border-color: var(--color-primary);
1606
- color: var(--bg-white);
1606
+ color: var(--text-white);
1607
1607
  }
1608
1608
  .el-tag--dark.is-hit {
1609
1609
  border-color: var(--color-primary);
1610
1610
  }
1611
1611
  .el-tag--dark .el-tag__close {
1612
- color: var(--bg-white);
1612
+ color: var(--text-white);
1613
1613
  }
1614
1614
  .el-tag--dark .el-tag__close:hover {
1615
1615
  color: var(--bg-white);
@@ -1633,16 +1633,16 @@
1633
1633
  .el-tag--dark.el-tag--success {
1634
1634
  background-color: #34c724;
1635
1635
  border-color: #34c724;
1636
- color: var(--bg-white);
1636
+ color: var(--text-white);
1637
1637
  }
1638
1638
  .el-tag--dark.el-tag--success.is-hit {
1639
1639
  border-color: #34c724;
1640
1640
  }
1641
1641
  .el-tag--dark.el-tag--success .el-tag__close {
1642
- color: var(--bg-white);
1642
+ color: var(--text-white);
1643
1643
  }
1644
1644
  .el-tag--dark.el-tag--success .el-tag__close:hover {
1645
- color: var(--bg-white);
1645
+ color: var(--text-white);
1646
1646
  background-color: #5dd250;
1647
1647
  }
1648
1648
  .el-tag.el-tag--warning {
@@ -1654,10 +1654,10 @@
1654
1654
  border-color: #f80;
1655
1655
  }
1656
1656
  .el-tag--dark.el-tag--warning .el-tag__close {
1657
- color: var(--bg-white);
1657
+ color: var(--text-white);
1658
1658
  }
1659
1659
  .el-tag--dark.el-tag--warning .el-tag__close:hover {
1660
- color: var(--bg-white);
1660
+ color: var(--text-white);
1661
1661
  background-color: #ffa033;
1662
1662
  }
1663
1663
  .el-tag--dark.el-tag--danger {
@@ -1668,10 +1668,10 @@
1668
1668
  border-color: var(--color-error);
1669
1669
  }
1670
1670
  .el-tag--dark.el-tag--danger .el-tag__close {
1671
- color: var(--bg-white);
1671
+ color: var(--text-white);
1672
1672
  }
1673
1673
  .el-tag--dark.el-tag--danger .el-tag__close:hover {
1674
- color: var(--bg-white);
1674
+ color: var(--text-white);
1675
1675
  background-color: #f76e6a;
1676
1676
  }
1677
1677
  .el-tag--plain {
@@ -3011,31 +3011,7 @@
3011
3011
  .el-autocomplete-suggestion.is-loading .el-icon-loading {
3012
3012
  vertical-align: middle;
3013
3013
  }
3014
- .el-button {
3015
- display: inline-block;
3016
- line-height: 1;
3017
- white-space: nowrap;
3018
- cursor: pointer;
3019
- background: var(--bg-white);
3020
- border: 1px solid #bbbfc4;
3021
- border-color: #bbbfc4;
3022
- color: var(--font-color-d);
3023
- -webkit-appearance: none;
3024
- text-align: center;
3025
- -webkit-box-sizing: border-box;
3026
- box-sizing: border-box;
3027
- outline: 0;
3028
- margin: 0;
3029
- -webkit-transition: 0.1s;
3030
- transition: 0.1s;
3031
- font-weight: 500;
3032
- -moz-user-select: none;
3033
- -webkit-user-select: none;
3034
- -ms-user-select: none;
3035
- padding: 12px 20px;
3036
- font-size: 14px;
3037
- border-radius: 4px;
3038
- }
3014
+
3039
3015
  .el-button + .el-button {
3040
3016
  margin-left: 10px;
3041
3017
  }
@@ -6746,31 +6722,7 @@
6746
6722
  -webkit-transform: translate(0, 0.5px);
6747
6723
  transform: translate(0, 0.5px);
6748
6724
  }
6749
- .el-button {
6750
- display: inline-block;
6751
- line-height: 1;
6752
- white-space: nowrap;
6753
- cursor: pointer;
6754
- background: var(--bg-white);
6755
- border: 1px solid #bbbfc4;
6756
- border-color: #bbbfc4;
6757
- color: var(--font-color-d);
6758
- -webkit-appearance: none;
6759
- text-align: center;
6760
- -webkit-box-sizing: border-box;
6761
- box-sizing: border-box;
6762
- outline: 0;
6763
- margin: 0;
6764
- -webkit-transition: 0.1s;
6765
- transition: 0.1s;
6766
- font-weight: 500;
6767
- -moz-user-select: none;
6768
- -webkit-user-select: none;
6769
- -ms-user-select: none;
6770
- padding: 12px 20px;
6771
- font-size: 14px;
6772
- border-radius: 4px;
6773
- }
6725
+
6774
6726
  .el-button + .el-button {
6775
6727
  margin-left: 10px;
6776
6728
  }
@@ -12545,31 +12497,7 @@
12545
12497
  .el-popup-parent--hidden {
12546
12498
  overflow: hidden;
12547
12499
  }
12548
- .el-button {
12549
- display: inline-block;
12550
- line-height: 1;
12551
- white-space: nowrap;
12552
- cursor: pointer;
12553
- background: var(--bg-white);
12554
- border: 1px solid #bbbfc4;
12555
- border-color: #bbbfc4;
12556
- color: var(--font-color-d);
12557
- -webkit-appearance: none;
12558
- text-align: center;
12559
- -webkit-box-sizing: border-box;
12560
- box-sizing: border-box;
12561
- outline: 0;
12562
- margin: 0;
12563
- -webkit-transition: 0.1s;
12564
- transition: 0.1s;
12565
- font-weight: 500;
12566
- -moz-user-select: none;
12567
- -webkit-user-select: none;
12568
- -ms-user-select: none;
12569
- padding: 12px 20px;
12570
- font-size: 14px;
12571
- border-radius: 4px;
12572
- }
12500
+
12573
12501
  .el-button + .el-button {
12574
12502
  margin-left: 10px;
12575
12503
  }
@@ -22827,8 +22755,6 @@
22827
22755
  white-space: nowrap;
22828
22756
  cursor: pointer;
22829
22757
  background: var(--bg-white);
22830
- border: 1px solid #bbbfc4;
22831
- border-color: #bbbfc4;
22832
22758
  color: var(--font-color-d);
22833
22759
  -webkit-appearance: none;
22834
22760
  text-align: center;
@@ -24377,31 +24303,7 @@
24377
24303
  opacity: 0;
24378
24304
  }
24379
24305
  }
24380
- .el-button {
24381
- display: inline-block;
24382
- line-height: 1;
24383
- white-space: nowrap;
24384
- cursor: pointer;
24385
- background: var(--bg-white);
24386
- border: 1px solid #bbbfc4;
24387
- border-color: #bbbfc4;
24388
- color: var(--font-color-d);
24389
- -webkit-appearance: none;
24390
- text-align: center;
24391
- -webkit-box-sizing: border-box;
24392
- box-sizing: border-box;
24393
- outline: 0;
24394
- margin: 0;
24395
- -webkit-transition: 0.1s;
24396
- transition: 0.1s;
24397
- font-weight: 500;
24398
- -moz-user-select: none;
24399
- -webkit-user-select: none;
24400
- -ms-user-select: none;
24401
- padding: 12px 20px;
24402
- font-size: 14px;
24403
- border-radius: 4px;
24404
- }
24306
+
24405
24307
  .el-button + .el-button {
24406
24308
  margin-left: 10px;
24407
24309
  }