{"version":3,"file":"KrLocationSetting.cjs","sources":["../../../../../packages/src/kr-location-setting/KrLocationSetting.vue"],"sourcesContent":["<template>\n    <div class=\"setting-box\">\n        <div class=\"setting-title\">选项设置</div>\n        <div class=\"setting-content\">\n            <div class=\"setting-content-item\">\n                <div class=\"type-box\">\n                    <div class=\"type-box1\" @click=\"choseType('1')\" :style=\"dataList.pattern == '1' ? choseStyle : {}\">地图模式</div>\n                    <div class=\"type-box1\" @click=\"choseType('2')\" :style=\"dataList.pattern == '2' ? choseStyle : {}\">填空模式</div>\n                </div>\n            </div>\n            <div class=\"setting-content-item\">\n                <el-checkbox v-model=\"dataList.noModify\" label=\"禁止手动修改位置\" size=\"large\" />\n            </div>\n        </div>\n    </div>\n</template>\n<script setup name=\"kr-location-setting\">\nconst props = defineProps({\n    dataList: {\n        type: Object,\n        default: () => ({}),\n    },\n});\n\nconst choseStyle = {\n    color: \"rgba(34, 64, 195, 1)\",\n    background: \"rgba(127, 148, 242, 0.1)\",\n    border: \"1px solid rgba(127, 148, 242, 1)\",\n};\n\n// 选择输入类型\nfunction choseType(type) {\n    props.dataList.pattern = type;\n}\n</script>\n<style lang=\"scss\" scoped>\n@import \"@/css/setting.scss\";\n.type-box {\n    display: flex;\n    margin-top: 8px;\n    .type-box1 {\n        width: 98px;\n        height: 35px;\n        line-height: 35px;\n        text-align: center;\n        opacity: 1;\n        border-radius: 4px;\n        background: rgba(255, 255, 255, 1);\n        border: 1px solid rgba(229, 232, 238, 1);\n        cursor: pointer;\n        &:first-child {\n            margin-right: 30px;\n        }\n    }\n}\n</style>\n"],"names":["choseStyle","choseType","type","props"],"mappings":"goBAwBAA,EAAA,CACA,MAAA,uBACA,WAAA,2BACA,OAAA,kCACA,EAGA,SAAAC,EAAAC,EAAA,CACAC,EAAA,SAAA,QAAAD,CACA"}