{ "vueinit": { "prefix": "vueinit", "body": [ "", "", "", "", "" ], "description": "vueinit" }, "List page": { "prefix": "lp", "body": [ "", " ", " ", "", " ", " ", "", "", "", "", "" ], "description": "Modal page" }, "Modal page": { "prefix": "mp", "body": [ "", "", "" ], "description": "Modal page" }, "form-submit": { "prefix": "form-submit", "body": [ "const formRef = ref(null);", "const handleSubmit = async (done) => {", " const res = await formRef.value?.validate();", "", " if (res) return;", "};" ], "description": "form-submit" }, "form-validate": { "prefix": "form-validate", "body": [ "const res = await formRef.value?.validate();", " ", "if (res) return;" ], "description": "form-validate" }, "use-modal": { "prefix": "use-modal", "body": [ "import useModal from '@/hooks/useModal';", "import { add, update} from '';", "const emit = defineEmits(['update']);", "const { visible, editType, form, show, hide, formRef, handleSubmit } =", " useModal({", " emit,", " add,", " update,", " defaultForm: {", " name: '',", " nick_name: '',", " deptId: '',", " },", " });", "", " defineExpose({", " show,", " });" ], "description": "use-modal" }, "form switch": { "prefix": "form-switch", "body": [ "", " ", "" ], "description": "form switch" }, "form radio map": { "prefix": "form-radio-map", "body": [ "", " ", " ", " {{ item }}", " ", " ", "" ], "description": "form radio map" }, "form radio array": { "prefix": "form-radio-array", "body": [ "", " ", " ", " {{ item }}", " ", " ", "" ], "description": "form radio array" }, "form select array": { "prefix": "form-select-array", "body": [ "", " ", " ", " {{ item }}", " ", " ", "" ], "description": "form select array" }, "form select map": { "prefix": "form-select-map", "body": [ "", " ", " ", " {{ item }}", " ", " ", "" ], "description": "form select map" }, "form textarea": { "prefix": "form-textarea", "body": [ "", " ", "" ], "description": "form textarea" }, "form number": { "prefix": "form-number", "body": [ "", " ", "" ], "description": "form number" }, "form input": { "prefix": "form-input", "body": [ "", " ", "" ], "description": "form input" } }