Giter Site home page Giter Site logo

vue-todo's Introduction

수포자 공대생

  • 👋 I’m Junior Back-end Developer Jangwook Ryu.
  • 👀 I’m interested in Java, Kotlin,Spring, Architecture and OOP
  • 📫 Mail: [email protected]
  • 🏄🏻‍♂️ Log: blog

vue-todo's People

Contributors

rxjw95 avatar

Watchers

 avatar

vue-todo's Issues

TodoItem 더블 클릭 이벤트 emit 처리

더블 클릭시 상태값을 변경해서 input 태그로 렌더링했는데, 이렇게 되면 각 Item들이 중복해서 input 으로 렌더링된다.

그렇기 때문에 더블 클릭시 상위 컴포넌트로 emit하는 것이 좋을 것 같다.

Todoitem 수정 취소 이벤트 emit 처리

#1 과 마찬가지로 수정 취소하는 이벤트도 TodoItem 에서 처리했지만, 상위 컴포넌트로 emit해서 재렌더링이 맞다고 생각한다.
변경 상태값를 원래 TodoItem에서 사용했지만, 더블 클릭 이벤트로 인해서 props로 사용할 것이며 read-only 상태가 된다.
그렇기 때문에 변경 상태값을 다시 초기화하기 위해선 emit으로 상위 컴포넌트에서 취소 이벤트를 처리하고 재렌더링해야 한다.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.