IT45 Vue3 ) script setup 내가 Pinia를 Vue3의 script setup으로 사용할 때, 쓰는 법 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 // store.js import { defineStore } from 'pinia'; import { ref } from 'vue'; export const useStore = defineStore('store', () => { const count = ref(0); const increase = (n = 1) => { count.value += n; }; const reset = () => { count.value = 0; }; return { count, increase, reset }; }); Colored by Color Scripter cs chrome의.. 2023. 3. 28. DevExtreme) DxDataGrid Merge Function Explain mergeColums : 병합하고 싶은 colum의 index를 조건으로 줍니다. 1. 해당 예시에서는 “col1” 을 우선 병합하고, 2. col1 + col4가 동일한 "col4"를 병합, 3. col1 + col2 + col4 가 일치하는 "col2"가 있다면 병합합니다. 우선순위 : col1[0], col4[3], col2[1] @cell-prepared="(...args) => onCellPrepared(...args, mergeColums)" 기본적인 함수 형태는 @cell-prepared="onCellPrepared"입니다. 파라미터로 해당 cell의 정보를 받아옵니다. 병합조건에 추가 하고 싶지만 병합을 원하지 않는 cell이 있을 경우, 병합을 원하는 column에 allo.. 2023. 3. 27. Python) zip(*iterables) 2. Built-in Functions — Python 3.3.7 documentation 2. Built-in Functions The Python interpreter has a number of functions and types built into it that are always available. They are listed here in alphabetical order. abs(x) Return the absolute value of a number. The argument may be an integer or a floating docs.python.org Make an iterator that aggregates elements from each of the iterables. Retu.. 2023. 1. 28. Python) for문으로 배열 만들기 arr1 = [0 for i in range(10)] arr2 = [[0]*10 for i in range(10)] 2023. 1. 26. 이전 1 2 3 4 ··· 12 다음