@mythpe/quasar-ui-qui 0.4.87 → 0.4.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.
package/package.json
CHANGED
|
@@ -54,6 +54,7 @@ interface P {
|
|
|
54
54
|
appendIconProps?: Props['appendIconProps'];
|
|
55
55
|
yesNo?: boolean;
|
|
56
56
|
genders?: boolean;
|
|
57
|
+
status?: boolean;
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
const props = withDefaults(defineProps<P>(), {
|
|
@@ -91,7 +92,9 @@ const props = withDefaults(defineProps<P>(), {
|
|
|
91
92
|
prependIconProps: undefined,
|
|
92
93
|
appendIcon: undefined,
|
|
93
94
|
appendIconProps: undefined,
|
|
94
|
-
yesNo: undefined
|
|
95
|
+
yesNo: undefined,
|
|
96
|
+
genders: undefined,
|
|
97
|
+
status: undefined
|
|
95
98
|
})
|
|
96
99
|
defineModel<Props['modelValue']>({ required: !1, default: undefined })
|
|
97
100
|
const loading = defineModel<Props['loading']>('loading', { required: !1, default: !1 })
|
|
@@ -130,6 +133,19 @@ const fetchData = async () => {
|
|
|
130
133
|
]
|
|
131
134
|
return
|
|
132
135
|
}
|
|
136
|
+
if (props.status) {
|
|
137
|
+
options.value = [
|
|
138
|
+
{
|
|
139
|
+
label: __('labels.active'),
|
|
140
|
+
value: true
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
label: __('labels.inactive'),
|
|
144
|
+
value: false
|
|
145
|
+
}
|
|
146
|
+
]
|
|
147
|
+
return
|
|
148
|
+
}
|
|
133
149
|
if (props.genders) {
|
|
134
150
|
options.value = [
|
|
135
151
|
{
|
|
@@ -13,11 +13,7 @@
|
|
|
13
13
|
import { useMyth } from '../../composable'
|
|
14
14
|
import type { MHelpRowProps } from '../../types'
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
text: undefined,
|
|
18
|
-
icon: undefined,
|
|
19
|
-
tooltip: !1
|
|
20
|
-
})
|
|
16
|
+
defineProps<MHelpRowProps>()
|
|
21
17
|
const { __ } = useMyth()
|
|
22
18
|
defineOptions({
|
|
23
19
|
name: 'MHelpRow',
|