1 line
6.0 KiB
JSON
1 line
6.0 KiB
JSON
{"ast":null,"code":"import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\";\nconst _withScopeId = n => (_pushScopeId(\"data-v-1fea7648\"), n = n(), _popScopeId(), n);\nconst _hoisted_1 = {\n class: \"toning-result\"\n};\nconst _hoisted_2 = {\n class: \"text\"\n};\nconst _hoisted_3 = {\n class: \"text\"\n};\nexport function render(_ctx, _cache, $props, $setup, $data, $options) {\n return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [$props.sendMode == 'openingToningResult' ? (_openBlock(), _createElementBlock(_Fragment, {\n key: 0\n }, [_createElementVNode(\"div\", _hoisted_2, _toDisplayString($props.result == 1 || $props.result == 3 ? _ctx.Lang[_ctx.Type].odd : $props.result == 0 || $props.result == 2 || $props.result == 4 ? _ctx.Lang[_ctx.Type].even : \"\"), 1 /* TEXT */), _createElementVNode(\"span\", {\n class: _normalizeClass([\"round\", {\n red: $props.result == 3 || $props.result == 4\n }])\n }, null, 2 /* CLASS */), _createElementVNode(\"span\", {\n class: _normalizeClass([\"round\", {\n red: $props.result == 3 || $props.result == 4\n }])\n }, null, 2 /* CLASS */), _createElementVNode(\"span\", {\n class: _normalizeClass([\"round\", {\n red: $props.result == 2 || $props.result == 3 || $props.result == 4\n }])\n }, null, 2 /* CLASS */), _createElementVNode(\"span\", {\n class: _normalizeClass([\"round\", [{\n red: $props.result == 1 || $props.result == 2 || $props.result == 4\n }, {\n black: $props.result == 0 || $props.result == 3\n }]])\n }, _toDisplayString($props.result), 3 /* TEXT, CLASS */), _createElementVNode(\"div\", _hoisted_3, _toDisplayString($props.result == 0 || $props.result == 1 ? _ctx.Lang[_ctx.Type].small : $props.result == 3 || $props.result == 4 ? _ctx.Lang[_ctx.Type].big : \"\"), 1 /* TEXT */)], 64 /* STABLE_FRAGMENT */)) : _createCommentVNode(\"v-if\", true)]);\n}","map":{"version":3,"names":["class","_createElementBlock","_hoisted_1","$props","sendMode","_Fragment","key","_createElementVNode","_hoisted_2","_toDisplayString","result","_ctx","Lang","Type","odd","even","_normalizeClass","red","_hoisted_3","small","big"],"sources":["/Users/li/Desktop/work/work2/OG/GamePortrait/src/components/ToningResult.vue"],"sourcesContent":["<template>\n <div class=\"toning-result\">\n <template v-if=\"sendMode == 'openingToningResult'\">\n <div class=\"text\">\n {{\n result == 1 || result == 3\n ? Lang[Type].odd\n : result == 0 || result == 2 || result == 4\n ? Lang[Type].even\n : \"\"\n }}\n </div>\n <span class=\"round\" :class=\"{ red: result == 3 || result == 4 }\"></span>\n <span class=\"round\" :class=\"{ red: result == 3 || result == 4 }\"></span>\n <span\n class=\"round\"\n :class=\"{ red: result == 2 || result == 3 || result == 4 }\"\n ></span>\n <span\n class=\"round\"\n :class=\"[\n { red: result == 1 || result == 2 || result == 4 },\n { black: result == 0 || result == 3 }\n ]\"\n >\n {{ result }}\n </span>\n <div class=\"text\">\n {{\n result == 0 || result == 1\n ? Lang[Type].small\n : result == 3 || result == 4\n ? Lang[Type].big\n : \"\"\n }}\n </div>\n </template>\n </div>\n</template>\n\n<script>\nimport { mapState } from \"vuex\"\nexport default {\n name: \"toningResult\",\n props: {\n result: {\n type: Number,\n default: null\n },\n sendMode: {\n type: String,\n default: \"\"\n }\n },\n computed: {\n ...mapState({\n Lang: (state) => state.config.$lang,\n Type: (state) => state.config.$Type\n })\n }\n}\n</script>\n<style lang=\"scss\" scoped>\n.toning-result {\n width: 100%;\n height: 100%;\n position: absolute;\n left: 0;\n top: 0;\n background: rgba(0, 0, 0, 0.8);\n display: flex;\n align-items: center;\n justify-content: center;\n transform: rotateX(0deg);\n .text {\n font-size: 1rem;\n font-weight: 600;\n margin: 0 0.2rem;\n color: #ddd;\n }\n .round {\n width: 1rem;\n height: 1rem;\n border-radius: 1rem;\n background: #ddd;\n margin: 0 0.3rem;\n line-height: 1rem;\n text-align: center;\n font-size: 0.55rem;\n font-weight: 600;\n color: #fff;\n &.black {\n color: #222;\n }\n &.red {\n background: #fe8365;\n }\n }\n}\n</style>\n"],"mappings":";;;EACOA,KAAK,EAAC;AAAe;;EAEjBA,KAAK,EAAC;AAAM;;EAwBZA,KAAK,EAAC;AAAM;;uBA1BrBC,mBAAA,CAoCM,OApCNC,UAoCM,GAnCYC,MAAA,CAAAC,QAAQ,6B,cAAxBH,mBAAA,CAkCWI,SAAA;IAAAC,GAAA;EAAA,IAjCTC,mBAAA,CAQM,OARNC,UAQM,EAAAC,gBAAA,CANFN,MAAA,CAAAO,MAAM,SAASP,MAAA,CAAAO,MAAM,QAAoBC,IAAA,CAAAC,IAAI,CAACD,IAAA,CAAAE,IAAI,EAAEC,GAAG,GAAeX,MAAA,CAAAO,MAAM,SAASP,MAAA,CAAAO,MAAM,SAASP,MAAA,CAAAO,MAAM,QAAoBC,IAAA,CAAAC,IAAI,CAACD,IAAA,CAAAE,IAAI,EAAEE,IAAI,G,oBAOjJR,mBAAA,CAAwE;IAAlEP,KAAK,EAAAgB,eAAA,EAAC,OAAO;MAAAC,GAAA,EAAgBd,MAAA,CAAAO,MAAM,SAASP,MAAA,CAAAO,MAAM;IAAA;2BACxDH,mBAAA,CAAwE;IAAlEP,KAAK,EAAAgB,eAAA,EAAC,OAAO;MAAAC,GAAA,EAAgBd,MAAA,CAAAO,MAAM,SAASP,MAAA,CAAAO,MAAM;IAAA;2BACxDH,mBAAA,CAGQ;IAFNP,KAAK,EAAAgB,eAAA,EAAC,OAAO;MAAAC,GAAA,EACEd,MAAA,CAAAO,MAAM,SAASP,MAAA,CAAAO,MAAM,SAASP,MAAA,CAAAO,MAAM;IAAA;2BAErDH,mBAAA,CAQO;IAPLP,KAAK,EAAAgB,eAAA,EAAC,OAAO,G;WACcb,MAAA,CAAAO,MAAM,SAASP,MAAA,CAAAO,MAAM,SAASP,MAAA,CAAAO,MAAM;IAA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