{{ title }}
-
+
+
{{ option.name }}
-
+
+
@@ -17,19 +18,18 @@
import { PropType } from 'vue';
import { useAppStore } from '@/store';
import FormWrapper from './form-wrapper.vue';
+ import { RadioOption } from '@arco-design/web-vue/es/radio/interface';
interface OptionsProps {
name: string;
key: string;
type?: string;
defaultVal?: boolean | string | number;
+ options?: Array
;
}
defineProps({
- title: {
- type: String,
- default: '',
- },
+ title: String,
options: {
type: Array as PropType,
default() {
@@ -56,13 +56,17 @@
menuCollapse: false,
});
}
+ // 修改配置
appStore.updateSettings({ [key]: value });
+ // TODO 同步偏好
+
};