본문 바로가기

프로그램개발/Vue

el-table-v2 / cellRenderer 예제 vite에서 jsx를 사용 하기위해 플러그인 설치 npm instsall @vitejs/plugin-vue-jsx --save vite.config.js 설정 import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' import vueJsx from '@vitejs/plugin-vue-jsx'; export default defineConfig({ plugins: [vue(), vueJsx()], resolve: { alias: [ { find: '@', replacement: '/src' }, { find: /^~@/, replacement: '/src' } ], extensions: ['.mjs', '.js', '.ts', '... 더보기
vue lifecycle lifecycle 더보기
vue 초기 셋팅 nodejs 설치 다운로드 URL : https://nodejs.org/ko/ Node.js Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. nodejs.org 현시점 기준으로 16.x를 설치하자. 최신 버젼은 안되는게 은근 많고 피곤함. vue cli설치 $ npm install -g @vue/cli 설치 버젼 확인 $ vue --version @vue/cli 5.0.4 폴더를 하나 만들고 초기 vue 프로젝트 생성한다. $ vue create 프로젝트명(소문자) vue3는 현시점 기준 아직 문제가 좀 많으므로 2버젼으로 생성한다. 일단 돌아는 가는 지 테스트 $ npm run serve App running at: - .. 더보기
vue에 폰트 포함하기. 소스에 폰트 때려넣기. css파일을 작성해 줍니다. [NotoSansKR.css] @font-face { font-family: 'Noto Sans KR'; font-style: normal; font-weight: 100; src: url(./notosanskr/NotoSansKR-Thin.woff2) format('woff2'), url(./notosanskr/NotoSansKR-Thin.woff) format('woff'), url(./notosanskr/NotoSansKR-Thin.otf) format('opentype'); } @font-face { font-family: 'Noto Sans KR'; font-style: normal; font-weight: 300; src: url(./noto.. 더보기