+
()
const emit = defineEmits<{
@@ -77,12 +80,23 @@
{ immediate: true }
)
+ watch(
+ () => props.disabled,
+ (disabled) => {
+ if (disabled) {
+ stylePopupVisible.value = false
+ }
+ }
+ )
+
const openStylePopup = () => {
+ if (props.disabled) return
tempSelectedValue.value = props.modelValue
stylePopupVisible.value = true
}
const selectStyle = (value: string) => {
+ if (props.disabled) return
tempSelectedValue.value = value
confirmStyle()
}
@@ -132,6 +146,12 @@
z-index: 1;
cursor: pointer;
}
+
+ .is-disabled {
+ .fida-style-select-trigger {
+ cursor: not-allowed;
+ }
+ }