Vue2 & ElementUI實現管理後臺之input得到焦點

在Vue中要給input設置焦點,須要註冊自定義指令。html Vue.directive('focus', function (el, option) { var defClass = 'el-input', defTag = 'input'; var value = option.value || true; if (typeof value =
相關文章
相關標籤/搜索