meixioacomponent 0.4.46 → 0.4.49

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.
@@ -24,7 +24,7 @@
24
24
  --font-color-ds: #8f959e;
25
25
  // 字体颜色 按钮等primary 里面文字的白色非必要不要改
26
26
  --text-white: white;
27
- --form-label-color: #42526e;
27
+ --form-label-color: #42526E;
28
28
  // 下拉 使用的组件包括:下拉菜单 / 气泡确认框 / 选择器 /
29
29
  --shadow-down: 0px 4px 10px rgba(0, 0, 0, 0.05);
30
30
  // fixed 使用的组件包括:全局提示 / 消息通知
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meixioacomponent",
3
- "version": "0.4.46",
3
+ "version": "0.4.49",
4
4
  "private": false,
5
5
  "author": "YuRi",
6
6
  "main": "lib/meixioacomponent.umd.min.js",
@@ -34,7 +34,18 @@
34
34
  v-if="item.template"
35
35
  ></slot>
36
36
 
37
- <span v-else class="cell-content-text">
37
+ <span
38
+ v-else
39
+ class="cell-content-text"
40
+ :style="{
41
+ color: item.color,
42
+ }"
43
+ :class="[
44
+ item.fn ? 'handle-primary' : '',
45
+ item.type ? item.type : '',
46
+ ]"
47
+ @click="rowClick(item, scope.row)"
48
+ >
38
49
  {{ scope.row[`${item.value}`] }}
39
50
  </span>
40
51
  </template>
@@ -78,6 +89,12 @@ export default {
78
89
  default: 'auto',
79
90
  },
80
91
  },
92
+ methods: {
93
+ rowClick(item, row) {
94
+ if (!item.fn) return
95
+ item.fn(row)
96
+ },
97
+ },
81
98
  }
82
99
  </script>
83
100
 
@@ -105,4 +122,33 @@ export default {
105
122
  }
106
123
  // background: var(--color-gray-d);
107
124
  }
125
+
126
+ .handle-primary {
127
+ cursor: pointer;
128
+ text-decoration: underline !important;
129
+ }
130
+
131
+ .primary,
132
+ .handle-primary {
133
+ color: var(--color-primary) !important;
134
+ }
135
+
136
+ .success {
137
+ color: var(--color-success) !important;
138
+ }
139
+ .error {
140
+ color: var(--color-error) !important;
141
+ }
142
+
143
+ .warn {
144
+ color: var(--color-warn) !important;
145
+ }
146
+
147
+ .primary,
148
+ .handle-primary,
149
+ .success,
150
+ .error,
151
+ .warn {
152
+ font-weight: var(--font-weight-g);
153
+ }
108
154
  </style>
@@ -22,14 +22,14 @@
22
22
 
23
23
  <script>
24
24
  export default {
25
- name: "baseSection",
25
+ name: 'baseSection',
26
26
  data() {
27
- return {};
27
+ return {}
28
28
  },
29
29
  mounted() {
30
30
  this.$nextTick(() => {
31
- this.init();
32
- });
31
+ this.init()
32
+ })
33
33
  },
34
34
  beforeDestroy() {},
35
35
  props: {
@@ -55,24 +55,24 @@ export default {
55
55
  computed: {
56
56
  module: {
57
57
  set(val) {
58
- this.$emit("input", val);
58
+ this.$emit('input', val)
59
59
  },
60
60
  get() {
61
- return this.$props.value;
61
+ return this.$props.value
62
62
  },
63
63
  },
64
64
  },
65
65
  methods: {
66
66
  init() {
67
- if (!this.$props.event) return;
67
+ if (!this.$props.event) return
68
68
  },
69
69
  handleOpen() {
70
- if (this.$props.disable) return;
71
- this.module = !this.module;
72
- this.$emit("visibleContent", this.module);
70
+ if (this.$props.disable) return
71
+ this.module = !this.module
72
+ this.$emit('visibleContent', this.module)
73
73
  },
74
74
  },
75
- };
75
+ }
76
76
  </script>
77
77
 
78
78
  <style lang="less" scoped>
@@ -106,9 +106,22 @@ export default {
106
106
  }
107
107
  }
108
108
  .header-text {
109
+ position: relative;
110
+ display: inline-block;
109
111
  color: var(--font-color-d);
110
112
  font-size: var(--font-size-base);
111
113
  font-weight: var(--font-weight-kg);
114
+ margin-left: var(--margin-4);
115
+ &::before {
116
+ top: 0px;
117
+ left: -10px;
118
+ width: 4px;
119
+ height: 100%;
120
+ content: '';
121
+ position: absolute;
122
+ border-radius: var(--radius);
123
+ background: var(--color-primary);
124
+ }
112
125
  }
113
126
  .section-content {
114
127
  padding: calc(var(--padding-4) * 2) 0px;
@@ -24,7 +24,9 @@
24
24
  v-if="formType != 'template'"
25
25
  :class="[`${flexClass}`, size]"
26
26
  >
27
- <span slot="label" class="item-label">{{ item.label }}</span>
27
+ <span slot="label" class="item-label lable-text">
28
+ {{ item.label }}
29
+ </span>
28
30
 
29
31
  <template>
30
32
  <pro_form_itemVue
@@ -500,5 +502,11 @@ export default {
500
502
  padding-top: 0px;
501
503
  }
502
504
  }
505
+
506
+ .lable-text {
507
+ color: var(--form-label-color) !important;
508
+ font-weight: 400 !important;
509
+ font-size: var(--font-size-base);
510
+ }
503
511
  }
504
512
  </style>
@@ -432,11 +432,8 @@ export default {
432
432
  type: item.type,
433
433
  result: item.fn(val),
434
434
  }
435
-
436
-
437
- this.$emit('disableWatcherResult', obj)
438
-
439
435
 
436
+ this.$emit('disableWatcherResult', obj)
440
437
  })
441
438
  },
442
439
  },
@@ -555,6 +552,8 @@ export default {
555
552
  }
556
553
  }
557
554
 
555
+
556
+
558
557
  .item-content {
559
558
  /deep/ textarea {
560
559
  border: 0px !important;
@@ -24,7 +24,7 @@
24
24
  --font-color-ds: #8f959e;
25
25
  // 字体颜色 按钮等primary 里面文字的白色非必要不要改
26
26
  --text-white: white;
27
- --form-label-color: #42526e;
27
+ --form-label-color: #42526E;
28
28
  // 下拉 使用的组件包括:下拉菜单 / 气泡确认框 / 选择器 /
29
29
  --shadow-down: 0px 4px 10px rgba(0, 0, 0, 0.05);
30
30
  // fixed 使用的组件包括:全局提示 / 消息通知
package/src/App.vue CHANGED
@@ -1,12 +1,8 @@
1
1
  <template>
2
2
  <div id="app">
3
3
  <div style="height: 100vh;">
4
- <!-- <testVue></testVue> -->
5
- <base-number-input
6
- style="width: 200px; margin-left: 20px; margin-top: 20px;"
7
- v-model="test"
8
- :controls="true"
9
- ></base-number-input>
4
+ <testVue></testVue>
5
+
10
6
  </div>
11
7
  </div>
12
8
  </template>
@@ -544,7 +544,7 @@ export default {
544
544
  <!-- 普通表单 -->
545
545
 
546
546
  <!-- 上传表单 -->
547
- <template>
547
+ <!-- <template>
548
548
  <base-dialog-form
549
549
  ref="dialogFormVue"
550
550
  :title="`测试表格`"
@@ -782,9 +782,9 @@ export default {
782
782
  }
783
783
  </script>
784
784
 
785
- <style></style>
785
+ <style></style> -->
786
786
 
787
- <!-- <template>
787
+ <template>
788
788
  <base-form-wrap
789
789
  :rowNumber="2"
790
790
  :disables="disables"
@@ -826,4 +826,4 @@ export default {
826
826
  }
827
827
  </script>
828
828
 
829
- <style lang="less" scoped></style> -->
829
+ <style lang="less" scoped></style>
package/vue.config.js CHANGED
@@ -8,7 +8,7 @@ module.exports = {
8
8
  extract: false,
9
9
  },
10
10
 
11
- productionSourceMap: true,
11
+ productionSourceMap: false,
12
12
 
13
13
  devServer: {
14
14
  proxy: {