@mythpe/quasar-ui-qui 0.2.4 → 0.2.5
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
|
@@ -67,22 +67,6 @@ const _toolbar = [
|
|
|
67
67
|
'size-7'
|
|
68
68
|
]
|
|
69
69
|
},
|
|
70
|
-
{
|
|
71
|
-
label: $q.lang.editor.fontSize,
|
|
72
|
-
icon: $q.iconSet.editor.fontSize,
|
|
73
|
-
fixedLabel: true,
|
|
74
|
-
fixedIcon: true,
|
|
75
|
-
list: 'no-icons',
|
|
76
|
-
options: [
|
|
77
|
-
'size-1',
|
|
78
|
-
'size-2',
|
|
79
|
-
'size-3',
|
|
80
|
-
'size-4',
|
|
81
|
-
'size-5',
|
|
82
|
-
'size-6',
|
|
83
|
-
'size-7'
|
|
84
|
-
]
|
|
85
|
-
},
|
|
86
70
|
{
|
|
87
71
|
label: $q.lang.editor.defaultFont,
|
|
88
72
|
icon: $q.iconSet.editor.font,
|
|
@@ -171,7 +171,12 @@ const input = useTemplateRef<InstanceType<typeof QSelect> | InstanceType<typeof
|
|
|
171
171
|
const scopes = reactive(inputScope)
|
|
172
172
|
const getViewModeValue = computed(() => {
|
|
173
173
|
if (props.viewModeValue === undefined) {
|
|
174
|
-
const i = getOptions.value.find(e =>
|
|
174
|
+
const i = getOptions.value.find((e) => {
|
|
175
|
+
if (typeof props.optionValue === 'function') {
|
|
176
|
+
return e[props.optionValue(e)] === value.value
|
|
177
|
+
}
|
|
178
|
+
return e[props.optionValue] === value.value
|
|
179
|
+
})
|
|
175
180
|
if (i) {
|
|
176
181
|
if (typeof props.optionLabel === 'function') {
|
|
177
182
|
return props.optionLabel(i)
|