meixioacomponent 0.3.49 → 0.3.50

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": "meixioacomponent",
3
- "version": "0.3.49",
3
+ "version": "0.3.50",
4
4
  "private": false,
5
5
  "author": "YuRi",
6
6
  "main": "lib/meixioacomponent.umd.min.js",
@@ -152,9 +152,9 @@ export default {
152
152
  height: auto;
153
153
  cursor: pointer;
154
154
  &:hover {
155
- background: transparent !important;
155
+ background: inherit !important;
156
156
  i {
157
- color: var(--icon-color-d) !important;
157
+ color: inherit !important;
158
158
  }
159
159
  }
160
160
  }
@@ -12,29 +12,30 @@
12
12
  <slot name="popoverContent"></slot>
13
13
  </div>
14
14
  </template>
15
- <el-button
16
- v-if="!template"
17
- slot="reference"
18
- :size="buttonSize"
19
- :disabled="disabled"
20
- class="popover-button"
21
- :type="module ? 'selected' : 'info'"
22
- @click.stop="iconClick"
23
- :class="{ 'is-single': !buttonText && buttonIcon }"
24
- >
25
- <base-icon
26
- :size="`s`"
27
- :plain="true"
28
- v-if="buttonIcon"
29
- :event="!disabled"
30
- :name="buttonIcon"
31
- class="button-icon"
32
- :iconClass="iconClass"
33
- @iconClick="iconClick"
34
- :color="module ? 'text-white' : 'd'"
35
- ></base-icon>
36
- <span class="inner-span" v-if="buttonText">{{ buttonText }}</span>
37
- </el-button>
15
+ <template v-if="!template" slot="reference">
16
+ <el-button
17
+ :size="buttonSize"
18
+ :disabled="disabled"
19
+ class="popover-button"
20
+ :type="module ? 'selected' : 'info'"
21
+ @click.stop="buttonClick"
22
+ :class="{ 'is-single': !buttonText && buttonIcon }"
23
+ >
24
+ <base-icon
25
+ :size="`s`"
26
+ :plain="true"
27
+ v-if="buttonIcon"
28
+ :event="!disabled"
29
+ :name="buttonIcon"
30
+ class="button-icon"
31
+ :iconClass="iconClass"
32
+ @iconClick="iconClick"
33
+ :color="module ? 'text-white' : 'd'"
34
+ ></base-icon>
35
+ <span class="inner-span" v-if="buttonText">{{ buttonText }}</span>
36
+ </el-button>
37
+ </template>
38
+
38
39
  <template slot="reference" v-else>
39
40
  <slot name="popoverReference"></slot>
40
41
  </template>
@@ -117,6 +118,7 @@ export default {
117
118
  iconClick() {
118
119
  this.$refs.popover.doShow()
119
120
  },
121
+ buttonClick() {},
120
122
  },
121
123
  }
122
124
  </script>
@@ -50,7 +50,9 @@
50
50
  :size="`l`"
51
51
  :color="`d`"
52
52
  :event="true"
53
+ :plain="true"
53
54
  v-if="!disabled"
55
+ style="width: 32px; height: 32px;"
54
56
  :name="`meixicomponenticon-close`"
55
57
  @iconClick="handleDeleteUploadItem"
56
58
  ></base-icon>
package/src/App.vue CHANGED
@@ -1,8 +1,13 @@
1
1
  <template>
2
2
  <div id="app">
3
3
  <div style="height: 100vh;">
4
- <!-- <test></test> -->
5
- <base-upload v-model="test"></base-upload>
4
+ <test></test>
5
+ <!-- <base-upload v-model="test"></base-upload>
6
+
7
+ <base-popover-button
8
+ :buttonIcon="`meixicomponenticon-diqu`"
9
+ v-model="flag"
10
+ ></base-popover-button> -->
6
11
  </div>
7
12
  </div>
8
13
  </template>