1// (c) 2023 W2 Co.,Ltd. 2/** 3 * ããã«ã¼ãã»ã¯ã·ã§ã³ 4 */ 5class SectionCommonDirMiniCart { 6 constructor() { 7 } 8 /** 9 * å®è¡ 10 * @param {any} liquidParam liquidããã®ãã©ã¡ã¼ã¿ã¼ 11 */ 12 run(liquidParam) { 13 this.addComponent(liquidParam); 14 } 15 /** 16 * ã³ã³ãã¼ãã³ã追å 17 */ 18 addComponent(liquidParam) { 19 const component = { 20 // text/x-templateè¦ç´ ã®id 21 template: '#mini-cart', 22 data() { 23 return lib.vue.common.MiniCartModel.create(); 24 }, 25 methods: { 26 /** 27 * æç» 28 */ 29 draw() { 30 lib.vue.common.MiniCartService.draw(liquidParam, this) 31 .then((result) => { 32 // æç»å¾ã®ä»»æã®å¦çãè¨è¿° 33 }); 34 }, 35 /** 36 * ããã«ã¼ããé ã 37 * @param {...any} args 弿° 38 */ 39 hideMiniCart: function (...args) { 40 lib.vue.common.MiniCartService.hideMiniCart(liquidParam, this, args); 41 }, 42 /** 43 * åååé¤ 44 * @param {...any} args 弿° 45 */ 46 deleteProduct(...args) { 47 lib.vue.common.MiniCartService.deleteProduct(liquidParam, this, args); 48 } 49 }, 50 // ã³ã³ãã¼ãã³ãã®å¼æ° 51 props: { 52 }, 53 watch: { 54 }, 55 computed: { 56 }, 57 created() { 58 }, 59 mounted() { 60 this.draw(); 61 g_vueManager.emitter.on('hide-mini-cart', this.hideMiniCart); 62 g_vueManager.emitter.on('update-mini-cart', this.draw); 63 }, 64 }; 65 g_vueManager.setComponent('mini-cart', component); 66 } 67}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.