ã¯ãã¯ããã¯beta
- ã¯ããã«
- ã¤ã³ã¹ã¿ã³ã¹ããããã£ã®è¿½å
- ãã©ã¼ã ã®ããªãã¼ã·ã§ã³
- ç·¨éå¯è½ãª SVG ã¢ã¤ã³ã³ã·ã¹ãã
- CMS ã«ããããã°ã®ä½æ
- Vue ã³ã³ãã¼ãã³ãã®åä½ãã¹ã
- ã«ã¹ã¿ã ã¹ã¯ãã¼ã«ãã£ã¬ã¯ãã£ãã®ä½æ
- VS Code ã«ãããããã°
- axios ãå©ç¨ãã API ã®ä½¿ç¨
- ã¡ã¢ãªãªã¼ã¯ãåé¿ãã
- ã¯ã©ã¤ã¢ã³ããµã¤ãã¹ãã¬ã¼ã¸
- Vue ã³ã³ãã¼ãã³ãã npm ããã±ã¼ã¸åãã
- Vue.js ã¢ããªã±ã¼ã·ã§ã³ã Docker åãã
- Practical use of scoped slots with GoogleMaps
v2.x 以åã®ããã¥ã¡ã³ãã§ãã v3.x ã®ããã¥ã¡ã³ããè¦ããå ´åã¯ãã¡ã
ã¯ããã«
æçµæ´æ°æ¥: 2020å¹´5æ16æ¥
â ï¸æ³¨æ: ã¯ãã¯ããã¯ã¯éæ追å ããã¾ãããã®ãããä¸é¨ã®ã»ã¯ã·ã§ã³ã§ã¯æªç¿»è¨³ã®ç®æãããã¾ããç¾å¨ç¿»è¨³ä½æ¥ä¸ä¸è¦§ã¯ãã¡ãã§ããä½æ¥ä¸ã®è¨äºã«ã¤ãã¦ã¯ãã°ãããå¾ ã¡ä¸ããðã翻訳ã®ãæä¼ãããããæ¹ã¯ããã¡ãã®ç¿»è¨³ã¬ã¤ãããèªã¿ãã ããã
ã¯ãã¯ããã¯ã¨ã¬ã¤ãã®éã
ã¯ãã¯ããã¯ã¨ã¬ã¤ãã¯ã©ã®ããã«ç°ãªãã®ã§ããããï¼ãªãã¯ãã¯ããã¯ãå¿ è¦ãªã®ã§ããããï¼
-
ããç¦ç¹ãå½ã¦ã¦: ã¬ã¤ãã¨ãããã®ã¯ãæ¬è³ªçã«ã¹ãã¼ãªã¼ãä¼ãããã®ã§ãã åã»ã¯ã·ã§ã³ã¯ãåã®åã»ã¯ã·ã§ã³ã®ç¥èãå ã«æãç«ã£ã¦ãã¾ãã ä¸æ¹ã§ãã®ã¯ãã¯ããã¯ã¯ãåã¬ã·ããç¬ç«ãã¦ãã¾ããã¤ã¾ãããããæå³ãããã¨ã¯ãä¸è¬çãªå ¨ä½åãææ¡ãããã¨ããããããåã¬ã·ãã Vue ã®ç¹å®ã®å´é¢ã«ç¦ç¹ãå½ã¦ããã¨ãã§ããã¨ãããã¨ã§ãã
ããæ·±ã: ã¬ã¤ãã§ã¯èª¬æãé·ããªããã¨ãé¿ããããã«ãåæ©è½ãç解ããã®ã«å½¹ç«ã¤æããããããªä¾ã使ç¨ãã¦ãã¾ãã ã¯ãã¯ããã¯ã§ã¯ãããè¤éãªä¾ã使ç¨ãããã¨ã§ãèå³æ·±ãæ¹æ³ã§æ©è½ãçµã¿åããããã¨ãã§ãã¾ãã ããããã®ã¬ã·ãã¯ããã®ç²ç¹ãå®å ¨ã«å¦ç¿ããããã«ãé·ããªãå¯è½æ§ãããã¾ããå¿ ç¶çã«è©³ç´°ã«ãªãã¾ãã
JavaScript ã®å¦ç¿: ã¬ã¤ãã§ã¯ãå°ãªãã¨ã ES5 JavaScript ã«ç²¾éãã¦ããå¿ è¦ãããã¾ãã ä¾ãã°ã
Array.prototype.filter
ããªã¹ãããã£ã«ã¿ããç®åºããããã£ã§ã©ã®ããã«åä½ãããã¯èª¬æãã¾ããã 対ãã¦ã¯ãã¯ããã¯ã§ã¯ãJavaScript ã®éè¦ãªæ©è½( ES6/2015+ ãå«ã)ãæ¢æ±ãããããã©ã®ããã«è¯ã Vue ã¢ããªã±ã¼ã·ã§ã³ã®æ§ç¯ã«å½¹ç«ã¤ããã¨ãããã¨ã«ã¤ãã¦èª¬æãã¾ããã¨ã³ã·ã¹ãã ãå¦ç¿ãã: é«åº¦ãªæ©è½ã«ã¤ãã¦ã¯ãã¨ã³ã·ã¹ãã ã®ç¥èãåæã«ãã¦ãã¾ãã ä¾ãã°ã Webpack ã§åä¸ãã¡ã¤ã«ã³ã³ãã¼ãã³ãã使ç¨ããå ´åã Webpack config ã® Vue 以å¤ã®é¨åã®è¨å®ã«ã¤ãã¦ã¯èª¬æãã¾ããã ã¯ãã¯ããã¯ã§ã¯ããã®ã¾ã¾ã®å ´æã§ãããã®ã¨ã³ã·ã¹ãã ãã©ã¤ãã©ãªç¾¤ãããæ·±ãå¦ç¿ããä½è£ãããã¾ãã - å°ãªãã¨ãã Vue éçºè ã«ã¨ã£ã¦ä¸è¬çã«æç¨ãªç¨åº¦ã¾ã§ã
ãããã®éãã¨ã¨ãã«ãã¯ãã¯ããã¯ã¯ã¹ããããã¤ã¹ãããã®ããã¥ã¢ã« ã§ã¯ãªã ç¹ã«æ³¨æãã¦ãã ããããã®å 容ã®å¤§é¨åã«ã¤ãã¦ã¯ãHTML ã CSSãJavaScriptãnpm/yarn ãªã©ã«ã¤ãã¦ã®åºæ¬çãªç¥èããããã¨ãåæã¨ãã¦ãã¾ãã
ã¯ãã¯ããã¯ã¸ã®è²¢ç®
ç§ãã¡ãç®æãã¦ãããã®
ã¯ãã¯ããã¯ã¯ä¸è¬çãªãã®ãèå³æ·±ãã¦ã¼ã¹ã±ã¼ã¹ã®ã©ã¡ããé²ããããã®å ·ä½ä¾ãéçºè ãã¡ã«æä¾ããããè¤éãªå 容ãå¾ã ã«èª¬æãã¦ããã¾ããç§ãã¡ã®ç®æ¨ã¯ãç°¡åãªå ¥éä¾ãè¶ ããåºãé©ç¨å¯è½ãªã³ã³ã»ããã¨ããã®ã¢ããã¼ãã«å¯¾ãã注æç¹ãå®è¨¼ãããã¨ã§ãã
è²¢ç®ã«èå³ãããã°ã cookbook idea ã¿ã°ãã¤ãã¦ãã Issue ä¸ã«ããªãã®ã³ã³ã»ãããæåºãããã¨ããã³ã©ãã¬ã¼ã·ã§ã³ãéå§ãã¦ãã ãããç§ãã¡ããã«ãªã¯ã¨ã¹ããæåããããã«ãæä¼ããã¾ãã ããªãã®ã¢ã¤ãã£ã¢ãæ¿èªãããããå¯è½ãªéããã³ãã¬ã¼ãã«å¾ã£ã¦ãã ããã ä¸é¨ã®ã»ã¯ã·ã§ã³ã¯å¿ é ã§ãããã¤ãã¯ä»»æã§ãã æ°å¤é ã«ãããã¨ãå¼·ãæ¨å¥¨ããã¾ãããå¿ é ã§ã¯ããã¾ããã
ã¬ã·ãã¯ä¸è¬çã«:
- ç¹å®ã®å ±éã®åé¡ã解決ãã¾ã
- å¯è½ãªéããããããªä¾ããå§ã¾ãã¾ã
- ä¸åº¦ã«ï¼ã¤ãã¤è¤éãªãã®ãç´¹ä»ããã¾ã
- ã³ã³ã»ãããåã³èª¬æããã®ã§ã¯ãªããä»ã®ããã¥ã¡ã³ãã«ãªã³ã¯ãã¾ã
- ç²¾éãããã¨ãããåé¡ã示ãã¾ãã
- çµæã ãã§ã¯ãªããããã»ã¹ã説æãã¾ã
- ããªãã®æ¹æ³ã®é·æã¨çæããã¾ãé©åã§ã¯ãªãå ´åãå«ãã¦èª¬æãã¾ã
- ãã該å½ããå ´åã代æ¿æ¡ãæããå¥ã®ã¬ã·ãã§å¦ç¿ãããã¨ãã§ãã¾ã
ã¾ãã以ä¸ã®ãã³ãã¬ã¼ãã«å¾ã£ã¦ãã ãããããããªãããããããããããããã«å¿ ãããããã¼ã«æ²¿ãå¿ è¦ã¯ããã¾ããããããã«ããããã¹ã¦ã®ã¬ã·ãã¯ããæç¹ã§ãå¯è½ãªãä¸è¨ã®ãã¿ã¼ã³ãå©ç¨ããã»ã¯ã·ã§ã³ã®ä»£æ¿æ¡ããã¨ã«ãæç« è¡¨ç¾ã«ã¤ãã¦ã®è°è«ãçµãå¿ è¦ãããã¾ãã
åºæ¬ä¾
å¿ é
- ã²ã¨ãã¨ããµããã¨ã§åé¡ãæ確ã«ãã¦ãã ããã
- ã²ã¨ãã¨ããµããã¨ã§æããããããªè§£æ±ºçã説æãã¦ãã ããã
- æå°ã®ã³ã¼ããµã³ãã«ã§ç¤ºãã¦ãã ããã
- ã²ã¨ãã¨ã§éæããããã®ã¯ä½ã説æãã¦ãã ããã
価å¤ã®è©³ç´°
å¿ é
- ä¾ãè¦ãªãããæã¤ãããããªãå ±éã®è³ªåã«ã¤ãã¦åãæ±ã£ã¦ãã ããã (ãããã¯ã¯ã©ã¼ãã¯ããã«æé©ã§ã)
- ä¸è¬çãªå¤±æä¾ã¨ããã®åé¿æ¹æ³ã示ãã¦ãã ããã
- ã¨ã¦ãã·ã³ãã«ãªã³ã¼ããµã³ãã«ã§ã°ãããã¿ã¼ã³ã¨ããããã¿ã¼ã³ã示ãã¦ãã ããã
- ãªãããã説å¾åã®ãããµã³ãã«ãªã®ãè°è«ãã¦ãã ããã åç §ãªã³ã¯ã¯å¿ é ã§ã¯ããã¾ããããæ¨å¥¨ããã¦ãã¾ãã
å®ä¾
å¿ é
次ã®ããããã®æ¹æ³ã§ãä¸è¬çãªãã¾ãã¯èå³æ·±ãã¦ã¼ã¹ã±ã¼ã¹ãæä¾ããã³ã¼ãã試ãã¦ãã ãã:
- ããã¤ãã®ç°¡æ½ãªã»ããã¢ãããæ¸ã¾ããããããã¯ã
- codepen/jsfiddle ã§ãµã³ãã«ãå®è¡ãã
ããå¾è ãé¸æããå ´åãããã¯ã©ããªãã®ããã¾ãã©ã®ããã«åä½ãããã«ã¤ãã¦ãã£ããã¨è©±ãå¿ è¦ãããã¾ãã
ãã®ä»ã®ã³ã³ãã¯ã¹ã
ä»»æ
ã©ãã«é©ç¨ããã®ãããªãããããã¾ãããã®ãã¨ãããã¿ã¼ã³ã«ã¤ãã¦æ¸ãã¨ãã«ã¨ã¦ãå½¹ç«ã¡ã¾ããèªåã§ãããã¾ãã¯ã人ã ã«ããã®åèè³æãè¦ãã¦ã³ã¼ããå®è¡ãã¦ãã ããã
ãã®ãã¿ã¼ã³ãé¿ããã¨ã
ä»»æ
ãã®ã»ã¯ã·ã§ã³ã¯å¿ é ã§ã¯ããã¾ããããå¼·ããå§ããã¾ãã ããã¯ç¶æ ã®å¤åã«åºã¥ãã¦ã¯ã©ã¹ãåãæ¿ãããªã©é常ã«ã·ã³ãã«ãªãã®ãæ¸ãã«ã¯åãã¦ãããã mixins ã®ãããªããã«é«åº¦ãªãã¿ã¼ã³ã§ã¯æå³ãæãã¾ãã éçºã«é¢ããã»ã¨ãã©ã®è³ªåã«å¯¾ãã¦ã®çã㯠âæã¨å ´åã«ãã!â ã§ãã ãã®ã»ã¯ã·ã§ã³ã§ã¯ãããåãå ¥ãã¾ãã ããã§ã¯ããã¿ã¼ã³ãæç¨ãªã¨ãããããé¿ããã¹ãã¨ããã¾ãä»ã®ãã®ããªã«ãæå³ããªãã¨ããªã©ã«ã¤ãã¦ãé ããã¨ãªãè¦ã¦ããã¾ãã
代æ¿ãã¿ã¼ã³
å¿ é
ãã®ã»ã¯ã·ã§ã³ã¯ãåé¿ã«é¢ããä¸è¨ã®ã»ã¯ã·ã§ã³ãæä¾ããã¨ãå¿ é ã«ãªãã¾ãããç¹å®ã®ç¶æ³ä¸ã§ã¢ã³ããã¿ã¼ã³ã«ãªããã¨è¨ãããèªè ãä¸å®ã«ãããªãããã«ããå¥ã®æ¹æ³ãæ¢ããã¨ã¯éè¦ã§ããããããã¨ãã«ã¯ãã¦ã§ãã¯å¤§ããªéåä½ã ã¨ãããã¨ããå¤ãã®äººã ãç°ãªã£ãã³ã¼ããã¼ã¹ãæã¡ãç°ãªã£ãç®æ¨ã解決ãããã¨ãã¦ãããã¨ãèæ ®ãã¦ãã ãããã¢ããªã±ã¼ã·ã§ã³ã¯å¤§è¦æ¨¡ã¾ãã¯å°è¦æ¨¡ã§ããï¼ãVue ãæ¢åã®ããã¸ã§ã¯ãã«çµ±åãã¦ãã¾ããï¼ã¾ãã¯æ°ããæ§ç¯ãã¦ãã¾ããï¼1ã¤ã¾ãã¯ããããã®ç®æ¨ã解決ãããã¨ãã¦ãã¾ããï¼éåæãã¼ã¿ã¯ããããããã¾ããï¼ãããã®æ¸å¿µã¯ãã¹ã¦ä»£æ¿ã®å®è£ ã«å½±é¿ãã¾ããè¯ãã¯ãã¯ããã¯ã¬ã·ãã¯ãéçºè ã«ãã®ã³ã³ãã¯ã¹ããæä¾ãã¾ãã
æå¾ã«
ãã®ããã¥ã¡ã³ãã¼ã·ã§ã³ã«è²¢ç®ããããã«ã¯ããããã®æéãå¿ è¦ã§ããããããªããç§ãã¡ã®ããã¥ã¡ã³ãã«ãã«ãªã¯ã¨ã¹ããéã£ã¦ããã ããããæè¬ãã¾ãã