muzhiyu-ui 1.0.8 → 1.0.10
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.
|
@@ -61,6 +61,14 @@
|
|
|
61
61
|
<script setup>
|
|
62
62
|
import { computed, useSlots, inject } from 'vue'
|
|
63
63
|
|
|
64
|
+
defineOptions({
|
|
65
|
+
name: 'mu-button',
|
|
66
|
+
options: {
|
|
67
|
+
virtualHost: true,
|
|
68
|
+
styleIsolation: 'shared'
|
|
69
|
+
}
|
|
70
|
+
})
|
|
71
|
+
|
|
64
72
|
const config = inject('muConfig', null)
|
|
65
73
|
|
|
66
74
|
const props = defineProps({
|
|
@@ -770,17 +770,15 @@ function handleClick(e) {
|
|
|
770
770
|
|
|
771
771
|
<style lang="scss" scoped>
|
|
772
772
|
.mu-icon {
|
|
773
|
-
display: inline-flex;
|
|
774
|
-
align-items: center;
|
|
775
|
-
justify-content: center;
|
|
776
|
-
|
|
773
|
+
display: inline-flex !important;
|
|
774
|
+
align-items: center !important;
|
|
775
|
+
justify-content: center !important;
|
|
776
|
+
vertical-align: middle !important;
|
|
777
|
+
line-height: 1 !important;
|
|
777
778
|
|
|
778
|
-
&__svg {
|
|
779
|
-
display: block;
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
&__image {
|
|
783
|
-
display: block;
|
|
779
|
+
&__svg, &__image {
|
|
780
|
+
display: block !important;
|
|
781
|
+
margin: auto !important;
|
|
784
782
|
}
|
|
785
783
|
|
|
786
784
|
&__fallback {
|
|
@@ -60,7 +60,11 @@ const pickerValue = ref([])
|
|
|
60
60
|
|
|
61
61
|
function getItemLabel(item) {
|
|
62
62
|
if (typeof item === 'object' && item !== null) {
|
|
63
|
-
|
|
63
|
+
if (props.labelKey && item[props.labelKey] !== undefined) return String(item[props.labelKey])
|
|
64
|
+
if (item.label !== undefined) return String(item.label)
|
|
65
|
+
if (item.text !== undefined) return String(item.text)
|
|
66
|
+
if (item.title !== undefined) return String(item.title)
|
|
67
|
+
if (item.name !== undefined) return String(item.name)
|
|
64
68
|
}
|
|
65
69
|
return String(item)
|
|
66
70
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "muzhiyu-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"description": "基于 UniApp Vue3 + SCSS 打造的全端极奢组件库",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"uni_modules": {
|
|
30
30
|
"id": "muzhiyu-ui",
|
|
31
31
|
"name": "muzhiyu-ui 极奢组件库",
|
|
32
|
-
"version": "1.0.
|
|
32
|
+
"version": "1.0.10",
|
|
33
33
|
"description": "基于 UniApp Vue3 + SCSS 打造的全端极奢 UI 组件库",
|
|
34
34
|
"site": "",
|
|
35
35
|
"displayName": "MuzhiyuUI 极奢全端组件库"
|