meixioacomponent 0.2.84 → 0.2.88

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.
@@ -1293,7 +1293,7 @@
1293
1293
  color: #8f959e;
1294
1294
  }
1295
1295
  .el-input__inner:hover {
1296
- border-color:var(--color-primary);
1296
+ border-color: var(--color-primary);
1297
1297
  }
1298
1298
  .el-input__suffix {
1299
1299
  position: absolute;
@@ -4158,7 +4158,6 @@
4158
4158
  color: #8f959e;
4159
4159
  }
4160
4160
 
4161
-
4162
4161
  .el-input__suffix {
4163
4162
  position: absolute;
4164
4163
  height: 100%;
@@ -4494,7 +4493,6 @@
4494
4493
  color: #8f959e;
4495
4494
  }
4496
4495
 
4497
-
4498
4496
  .el-input__suffix {
4499
4497
  position: absolute;
4500
4498
  height: 100%;
@@ -5818,7 +5816,6 @@
5818
5816
  color: #8f959e;
5819
5817
  }
5820
5818
 
5821
-
5822
5819
  .el-input__suffix {
5823
5820
  position: absolute;
5824
5821
  height: 100%;
@@ -6342,7 +6339,7 @@
6342
6339
  display: contents;
6343
6340
  }
6344
6341
  .el-select:hover .el-input__inner {
6345
- border-color:var(--color-primary);
6342
+ border-color: var(--color-primary);
6346
6343
  }
6347
6344
  .el-select .el-input__inner {
6348
6345
  cursor: pointer;
@@ -6768,11 +6765,7 @@
6768
6765
  .el-button--medium.is-circle {
6769
6766
  padding: 10px;
6770
6767
  }
6771
- .el-button--small {
6772
- padding: 9px 15px;
6773
- font-size: 12px;
6774
- border-radius: 3px;
6775
- }
6768
+
6776
6769
  .el-button--small.is-round {
6777
6770
  padding: 9px 15px;
6778
6771
  }
@@ -9748,7 +9741,6 @@
9748
9741
  color: #8f959e;
9749
9742
  }
9750
9743
 
9751
-
9752
9744
  .el-input__suffix {
9753
9745
  position: absolute;
9754
9746
  height: 100%;
@@ -9797,7 +9789,7 @@
9797
9789
  }
9798
9790
  .el-input.is-disabled .el-input__inner {
9799
9791
  background-color: var(--color-table-header);
9800
- border-color:var(--color-gray-d);
9792
+ border-color: var(--color-gray-d);
9801
9793
  color: #8f959e;
9802
9794
  cursor: not-allowed;
9803
9795
  }
@@ -11478,7 +11470,6 @@
11478
11470
  color: #8f959e;
11479
11471
  }
11480
11472
 
11481
-
11482
11473
  .el-input__suffix {
11483
11474
  position: absolute;
11484
11475
  height: 100%;
@@ -12366,11 +12357,7 @@
12366
12357
  .el-button--medium.is-circle {
12367
12358
  padding: 10px;
12368
12359
  }
12369
- .el-button--small {
12370
- padding: 9px 15px;
12371
- font-size: 12px;
12372
- border-radius: 3px;
12373
- }
12360
+
12374
12361
  .el-button--small.is-round {
12375
12362
  padding: 9px 15px;
12376
12363
  }
@@ -15051,7 +15038,6 @@
15051
15038
  color: #8f959e;
15052
15039
  }
15053
15040
 
15054
-
15055
15041
  .el-input__suffix {
15056
15042
  position: absolute;
15057
15043
  height: 100%;
@@ -20057,7 +20043,6 @@
20057
20043
  color: #8f959e;
20058
20044
  }
20059
20045
 
20060
-
20061
20046
  .el-input__suffix {
20062
20047
  position: absolute;
20063
20048
  height: 100%;
@@ -22116,6 +22101,7 @@
22116
22101
  box-sizing: border-box;
22117
22102
  outline: 0;
22118
22103
  margin: 0;
22104
+ border: none !important;
22119
22105
  -webkit-transition: 0.1s;
22120
22106
  transition: 0.1s;
22121
22107
  font-weight: 500;
@@ -22373,6 +22359,12 @@
22373
22359
  color: var(--bg-white);
22374
22360
  outline: 0;
22375
22361
  }
22362
+ .el-button:focus,
22363
+ .el-button:hover {
22364
+ background-color: var(--color-gray-d);
22365
+ border-color: var(--color-gray-d);
22366
+ color: var(--font-color-d);
22367
+ }
22376
22368
  .el-button--danger.is-plain.is-disabled,
22377
22369
  .el-button--danger.is-plain.is-disabled:active,
22378
22370
  .el-button--danger.is-plain.is-disabled:focus,
@@ -22440,11 +22432,7 @@
22440
22432
  .el-button--medium.is-circle {
22441
22433
  padding: 10px;
22442
22434
  }
22443
- .el-button--small {
22444
- padding: 9px 15px;
22445
- font-size: 12px;
22446
- border-radius: 3px;
22447
- }
22435
+
22448
22436
  .el-button--small.is-round {
22449
22437
  padding: 9px 15px;
22450
22438
  }
@@ -23651,6 +23639,21 @@
23651
23639
  .el-button [class*="el-icon-"] + span {
23652
23640
  margin-left: 5px;
23653
23641
  }
23642
+
23643
+
23644
+ .el-button--bg-icon:focus, .el-button--bg-icon:hover {
23645
+ background: var(--hover-light-primary) !important;
23646
+ color: var(--color-primary) !important;
23647
+ }
23648
+ .el-button--bg-icon.is-current{
23649
+ background: var(--hover-light-primary) !important;
23650
+ color: var(--color-primary) !important;
23651
+ }
23652
+
23653
+
23654
+
23655
+
23656
+
23654
23657
  .el-button.is-plain:focus,
23655
23658
  .el-button.is-plain:hover {
23656
23659
  background: #030d20;
@@ -23995,8 +23998,8 @@
23995
23998
  padding: 10px;
23996
23999
  }
23997
24000
  .el-button--small {
23998
- padding: 8px 14px;
23999
- font-size: 12px;
24001
+ padding: var(--padding-4) calc(var(--padding-5) * 1.2);
24002
+ font-size: var(--font-size-base);
24000
24003
  border-radius: 3px;
24001
24004
  }
24002
24005
  .el-button--small.is-round {
@@ -19,8 +19,8 @@
19
19
  --font-size-xl: calc(var(--font-size) * 2); // 字号-二级字号 20
20
20
  --font-size-xxl: calc(var(--font-size) * 3.6); // 字号-一级字号 36
21
21
  // 字号
22
- --font-family: TencentSansW7, -apple-system, BlinkMacSystemFont, Segoe UI,
23
- Roboto, Oxygen, Ubuntu, Fira Sans, Droid Sans, Helvetica Neue, sans-serif !important;
22
+ --font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
23
+ Ubuntu, Fira Sans, Droid Sans, Helvetica Neue, sans-serif !important;
24
24
  // 图标尺寸
25
25
  --icon-size-s: 12px;
26
26
  --icon-size-base: 14px;
@@ -72,6 +72,6 @@
72
72
  // hover 主题色颜色
73
73
  --hover-light-primary: #e6eefa;
74
74
  // 选中色
75
- --color-selected: #213f72;
75
+ --color-selected: #344563;
76
76
  --scrollbar-color: #4b4b4be6;
77
77
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meixioacomponent",
3
- "version": "0.2.84",
3
+ "version": "0.2.88",
4
4
  "private": false,
5
5
  "author": "YuRi",
6
6
  "main": "lib/meixioacomponent.umd.min.js",
@@ -229,6 +229,8 @@ export default {
229
229
  display: flex;
230
230
  align-items: center;
231
231
  flex-flow: row nowrap;
232
+ box-sizing: border-box;
233
+ padding:0px var(--padding-5);
232
234
  justify-content: space-between;
233
235
  span {
234
236
  color: var(--font-color-d);
@@ -136,9 +136,8 @@ export default {
136
136
  }
137
137
  .event {
138
138
  cursor: pointer;
139
- transition: all 0.3s var(--ease-out);
140
139
  &:hover {
141
- background: var(--hover-gray);
140
+ // background: var(--hover-gray);
142
141
  i {
143
142
  color: var(--color-primary) !important;
144
143
  }
@@ -137,8 +137,8 @@ export default {
137
137
  }
138
138
  }
139
139
  .is-single {
140
- padding: 7px !important;
141
- background: transparent;
142
140
  border: none;
141
+ padding: 7px !important;
142
+ background: var(--color-gray-m);
143
143
  }
144
144
  </style>
@@ -1,3 +1,4 @@
1
+ import componentConfig from "../../../config/componentConfig";
1
2
  import useUpload from "../../../config/use/UseUpload";
2
3
  export const baseUploadMixins = {
3
4
  data() {
@@ -8,6 +9,13 @@ export const baseUploadMixins = {
8
9
  mounted() {},
9
10
  beforeDestroy() {},
10
11
 
12
+ props: {
13
+ uploadPath: {
14
+ default: () => {
15
+ return [0, 1];
16
+ },
17
+ },
18
+ },
11
19
  computed: {
12
20
  isMax() {
13
21
  if (this.module.length >= this.$props.max) {
@@ -28,6 +36,8 @@ export const baseUploadMixins = {
28
36
  this.module.push(list[i]);
29
37
  }
30
38
  }
39
+ const { uploadPath } = this.$props;
40
+ componentConfig.setUploadUrl(uploadPath[0], uploadPath[1]);
31
41
  if (!this.uploadLoading) {
32
42
  useUpload.toUpload(this.module ? this.module : list, this.uploadEd);
33
43
  }
@@ -52,9 +52,10 @@
52
52
  "
53
53
  ></baseAreaVue>
54
54
  <baseUploadVue
55
+ v-model="item.value"
55
56
  :max="formConfig.max"
56
57
  v-if="formType == `upload`"
57
- v-model="item.value"
58
+ :uploadPath="item.uploadPath"
58
59
  :class="[`form-item-${item.key}`]"
59
60
  ></baseUploadVue>
60
61
  </el-form-item>
@@ -188,9 +189,13 @@ export default {
188
189
 
189
190
  formdata() {
190
191
  let obj = {};
192
+
191
193
  this.module.forEach((item) => {
192
- obj[`${item.key}`] = item.value;
194
+ if (!item.renderHide) {
195
+ obj[`${item.key}`] = item.value;
196
+ }
193
197
  });
198
+
194
199
  return obj;
195
200
  },
196
201
 
@@ -223,7 +228,11 @@ export default {
223
228
  this.setChunkLength();
224
229
  },
225
230
  setChunkLength() {
226
- if (this.$props.rowNumber) {
231
+ const { formConfig } = this.$props;
232
+ if (formConfig.rowNumber) {
233
+ this.chunkLength = formConfig.rowNumber;
234
+ return;
235
+ } else if (this.$props.rowNumber) {
227
236
  this.chunkLength = this.$props.rowNumber;
228
237
  return;
229
238
  }
@@ -268,10 +277,7 @@ export default {
268
277
  let confrim = true;
269
278
  const rulesItem = this.$props.rules[params.config.key];
270
279
  if (rulesItem) {
271
- console.log(rulesItem);
272
- console.log(this.$refs.form);
273
280
  this.$refs.form.validateField(`${params.config.key}`, (errorMsg) => {
274
- console.log(errorMsg);
275
281
  if (errorMsg) {
276
282
  confrim = false;
277
283
  }
@@ -355,7 +361,7 @@ export default {
355
361
  if (this.loading) {
356
362
  setTimeout(() => {
357
363
  this.loading = false;
358
- }, 1500);
364
+ }, 750);
359
365
  }
360
366
  },
361
367
  },
@@ -130,7 +130,7 @@
130
130
  :size="size"
131
131
  ref="target"
132
132
  placeholder="选择日期"
133
- value-format="timestamp"
133
+ value-format="yyyy-MM-dd HH:mm:ss"
134
134
  :disabled="config.disabled"
135
135
  :prefix-icon="`el-icon-time`"
136
136
  style="width: 100%; height: 100%"
@@ -224,7 +224,7 @@ export default {
224
224
  mounted() {
225
225
  this.$nextTick(() => {
226
226
  if (this.$props.disableWatcher) {
227
- // this.triggerDisable();
227
+ this.triggerDisable();
228
228
  }
229
229
  });
230
230
  },
@@ -8,7 +8,7 @@
8
8
  @handleScreen="handleScreen"
9
9
  >
10
10
  <el-button
11
- size="medium"
11
+ size="small"
12
12
  :class="{
13
13
  'is-plain': !proScreenCardShow,
14
14
  }"
@@ -17,7 +17,7 @@
17
17
  :type="proScreenCardShow ? 'selected' : 'info'"
18
18
  >{{ handleScreenText }} <i :class="handleScreenIcon"></i>
19
19
  </el-button>
20
- <el-button size="medium" plain type="info" @click="handleOpenProScreen">
20
+ <el-button size="small" @click="handleOpenProScreen">
21
21
  <i class="meixicomponenticonfont meixicomponenticon-shaixuan"></i
22
22
  >高级筛选
23
23
  </el-button>
@@ -49,7 +49,7 @@ export default {
49
49
  },
50
50
  size: {
51
51
  type: String,
52
- default: "medium",
52
+ default: "small",
53
53
  },
54
54
  placeholder: { type: String },
55
55
  },
@@ -1293,7 +1293,7 @@
1293
1293
  color: #8f959e;
1294
1294
  }
1295
1295
  .el-input__inner:hover {
1296
- border-color:var(--color-primary);
1296
+ border-color: var(--color-primary);
1297
1297
  }
1298
1298
  .el-input__suffix {
1299
1299
  position: absolute;
@@ -4158,7 +4158,6 @@
4158
4158
  color: #8f959e;
4159
4159
  }
4160
4160
 
4161
-
4162
4161
  .el-input__suffix {
4163
4162
  position: absolute;
4164
4163
  height: 100%;
@@ -4494,7 +4493,6 @@
4494
4493
  color: #8f959e;
4495
4494
  }
4496
4495
 
4497
-
4498
4496
  .el-input__suffix {
4499
4497
  position: absolute;
4500
4498
  height: 100%;
@@ -5818,7 +5816,6 @@
5818
5816
  color: #8f959e;
5819
5817
  }
5820
5818
 
5821
-
5822
5819
  .el-input__suffix {
5823
5820
  position: absolute;
5824
5821
  height: 100%;
@@ -6342,7 +6339,7 @@
6342
6339
  display: contents;
6343
6340
  }
6344
6341
  .el-select:hover .el-input__inner {
6345
- border-color:var(--color-primary);
6342
+ border-color: var(--color-primary);
6346
6343
  }
6347
6344
  .el-select .el-input__inner {
6348
6345
  cursor: pointer;
@@ -6768,11 +6765,7 @@
6768
6765
  .el-button--medium.is-circle {
6769
6766
  padding: 10px;
6770
6767
  }
6771
- .el-button--small {
6772
- padding: 9px 15px;
6773
- font-size: 12px;
6774
- border-radius: 3px;
6775
- }
6768
+
6776
6769
  .el-button--small.is-round {
6777
6770
  padding: 9px 15px;
6778
6771
  }
@@ -9748,7 +9741,6 @@
9748
9741
  color: #8f959e;
9749
9742
  }
9750
9743
 
9751
-
9752
9744
  .el-input__suffix {
9753
9745
  position: absolute;
9754
9746
  height: 100%;
@@ -9797,7 +9789,7 @@
9797
9789
  }
9798
9790
  .el-input.is-disabled .el-input__inner {
9799
9791
  background-color: var(--color-table-header);
9800
- border-color:var(--color-gray-d);
9792
+ border-color: var(--color-gray-d);
9801
9793
  color: #8f959e;
9802
9794
  cursor: not-allowed;
9803
9795
  }
@@ -11478,7 +11470,6 @@
11478
11470
  color: #8f959e;
11479
11471
  }
11480
11472
 
11481
-
11482
11473
  .el-input__suffix {
11483
11474
  position: absolute;
11484
11475
  height: 100%;
@@ -12366,11 +12357,7 @@
12366
12357
  .el-button--medium.is-circle {
12367
12358
  padding: 10px;
12368
12359
  }
12369
- .el-button--small {
12370
- padding: 9px 15px;
12371
- font-size: 12px;
12372
- border-radius: 3px;
12373
- }
12360
+
12374
12361
  .el-button--small.is-round {
12375
12362
  padding: 9px 15px;
12376
12363
  }
@@ -15051,7 +15038,6 @@
15051
15038
  color: #8f959e;
15052
15039
  }
15053
15040
 
15054
-
15055
15041
  .el-input__suffix {
15056
15042
  position: absolute;
15057
15043
  height: 100%;
@@ -20057,7 +20043,6 @@
20057
20043
  color: #8f959e;
20058
20044
  }
20059
20045
 
20060
-
20061
20046
  .el-input__suffix {
20062
20047
  position: absolute;
20063
20048
  height: 100%;
@@ -22116,6 +22101,7 @@
22116
22101
  box-sizing: border-box;
22117
22102
  outline: 0;
22118
22103
  margin: 0;
22104
+ border: none !important;
22119
22105
  -webkit-transition: 0.1s;
22120
22106
  transition: 0.1s;
22121
22107
  font-weight: 500;
@@ -22373,6 +22359,12 @@
22373
22359
  color: var(--bg-white);
22374
22360
  outline: 0;
22375
22361
  }
22362
+ .el-button:focus,
22363
+ .el-button:hover {
22364
+ background-color: var(--color-gray-d);
22365
+ border-color: var(--color-gray-d);
22366
+ color: var(--font-color-d);
22367
+ }
22376
22368
  .el-button--danger.is-plain.is-disabled,
22377
22369
  .el-button--danger.is-plain.is-disabled:active,
22378
22370
  .el-button--danger.is-plain.is-disabled:focus,
@@ -22440,11 +22432,7 @@
22440
22432
  .el-button--medium.is-circle {
22441
22433
  padding: 10px;
22442
22434
  }
22443
- .el-button--small {
22444
- padding: 9px 15px;
22445
- font-size: 12px;
22446
- border-radius: 3px;
22447
- }
22435
+
22448
22436
  .el-button--small.is-round {
22449
22437
  padding: 9px 15px;
22450
22438
  }
@@ -23651,6 +23639,21 @@
23651
23639
  .el-button [class*="el-icon-"] + span {
23652
23640
  margin-left: 5px;
23653
23641
  }
23642
+
23643
+
23644
+ .el-button--bg-icon:focus, .el-button--bg-icon:hover {
23645
+ background: var(--hover-light-primary) !important;
23646
+ color: var(--color-primary) !important;
23647
+ }
23648
+ .el-button--bg-icon.is-current{
23649
+ background: var(--hover-light-primary) !important;
23650
+ color: var(--color-primary) !important;
23651
+ }
23652
+
23653
+
23654
+
23655
+
23656
+
23654
23657
  .el-button.is-plain:focus,
23655
23658
  .el-button.is-plain:hover {
23656
23659
  background: #030d20;
@@ -23995,8 +23998,8 @@
23995
23998
  padding: 10px;
23996
23999
  }
23997
24000
  .el-button--small {
23998
- padding: 8px 14px;
23999
- font-size: 12px;
24001
+ padding: var(--padding-4) calc(var(--padding-5) * 1.2);
24002
+ font-size: var(--font-size-base);
24000
24003
  border-radius: 3px;
24001
24004
  }
24002
24005
  .el-button--small.is-round {
@@ -19,8 +19,8 @@
19
19
  --font-size-xl: calc(var(--font-size) * 2); // 字号-二级字号 20
20
20
  --font-size-xxl: calc(var(--font-size) * 3.6); // 字号-一级字号 36
21
21
  // 字号
22
- --font-family: TencentSansW7, -apple-system, BlinkMacSystemFont, Segoe UI,
23
- Roboto, Oxygen, Ubuntu, Fira Sans, Droid Sans, Helvetica Neue, sans-serif !important;
22
+ --font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
23
+ Ubuntu, Fira Sans, Droid Sans, Helvetica Neue, sans-serif !important;
24
24
  // 图标尺寸
25
25
  --icon-size-s: 12px;
26
26
  --icon-size-base: 14px;
@@ -72,6 +72,6 @@
72
72
  // hover 主题色颜色
73
73
  --hover-light-primary: #e6eefa;
74
74
  // 选中色
75
- --color-selected: #213f72;
75
+ --color-selected: #344563;
76
76
  --scrollbar-color: #4b4b4be6;
77
77
  }
@@ -6,15 +6,20 @@ const componentConfig = {
6
6
  router: null,
7
7
  dynamicId: 0,
8
8
  uploadUrl: null,
9
+ uploadPrefix: null,
9
10
  eventBus: new Vue(),
10
11
  selectStore: null,
11
-
12
+ uploadStoreList: ["meixidev"],
12
13
  setDynamicId: () => {
13
14
  componentConfig.dynamicId += 1;
14
15
  },
15
16
 
16
- setUploadUrl: (url) => {
17
- componentConfig.uploadUrl = url;
17
+ setUploadPrefix: (url) => {
18
+ componentConfig.uploadPrefix = url;
19
+ },
20
+
21
+ setUploadUrl: (storeType, uploadType) => {
22
+ componentConfig.uploadUrl = `${componentConfig.uploadStoreList[storeType]}/${uploadType}/upload`;
18
23
  },
19
24
 
20
25
  initConfig: (_store, _router) => {
@@ -6,7 +6,7 @@ const ossInstance = (params, uploadProgressFn) => {
6
6
  // 创建 axios 实例
7
7
  const instance = axios.create({
8
8
  // API 请求的默认前缀
9
- baseURL: componentConfig.uploadUrl,
9
+ baseURL: `${componentConfig.uploadPrefix}/${componentConfig.uploadUrl}`,
10
10
  });
11
11
 
12
12
  // 异常拦截处理器
@@ -23,7 +23,7 @@ const ossInstance = (params, uploadProgressFn) => {
23
23
  // request 拦截器
24
24
  instance.interceptors.request.use((config) => {
25
25
  config.headers["Content-Type"] = "multipart/form-data";
26
- config.Authorization = GetToken("token");
26
+ config.headers["authorization"] = `Bearer ${GetToken("token")}`;
27
27
  config.onUploadProgress = (progressEvent) => {
28
28
  if (uploadProgressFn) {
29
29
  const percent = (progressEvent.loaded / progressEvent.total) * 100 || 0;
@@ -55,6 +55,7 @@ export default (file, uploadProgressFn, sourceToken) => {
55
55
  uploadProgressFn
56
56
  )
57
57
  .then((res) => {
58
+ console.log(res);
58
59
  const result = res.data;
59
60
  if (result.code == 200) {
60
61
  resolve(result.data);