GamePortrait/node_modules/.cache/babel-loader/a6f03af4c6810ee0a5973f8026ece2d5d3345b2914af432695420a252a88dbcc.json

1 line
1.5 KiB
JSON

{"ast":null,"code":"import { ref, watch, nextTick, computed } from \"vue\";\nimport { useStore } from \"vuex\";\nimport { waybillAsk, waybillConfig, autoask } from \"@/assets/js/waybill.js\";\nexport default {\n name: \"PlayWay\",\n components: {},\n props: {\n tableData: {\n type: Object,\n default: () => ({\n ludan: {},\n game_id: 1\n })\n }\n },\n setup(props) {\n const refItem = ref(null);\n const autoaskData = ref({});\n const store = useStore();\n const Type = computed(() => store.state.config.$Type);\n const Lang = computed(() => store.state.config.$lang);\n const toningShowBigWay = computed(() => store.state.config.toningShowBigWay);\n const timeStamp = computed(() => store.state.config.timeStamp);\n const askWay = type => {\n const data = props.tableData;\n waybillAsk(refItem.value, type, data, data.game_id);\n };\n const switchBigWay = () => {\n store.commit(\"config/toningShowBigWay\");\n };\n watch(() => [props.tableData.ludan, timeStamp.value, Type.value, toningShowBigWay.value], () => {\n nextTick(() => {\n waybillConfig(refItem.value, props.tableData, props.tableData.game_id);\n autoaskData.value = autoask(props.tableData);\n });\n }, {\n immediate: true,\n deep: true\n });\n return {\n Type,\n Lang,\n refItem,\n autoaskData,\n askWay,\n switchBigWay\n };\n }\n};","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}