Skip to content
代码片段 群组 项目
提交 88d74596 编辑于 作者: Kushal Pandya's avatar Kushal Pandya
浏览文件

Merge branch '373843-no-default-injects' into 'master'

No related branches found
No related tags found
无相关合并请求
...@@ -5,31 +5,7 @@ export default { ...@@ -5,31 +5,7 @@ export default {
components: { components: {
ListboxInput, ListboxInput,
}, },
inject: { inject: ['label', 'name', 'emails', 'emptyValueText', 'value', 'disabled'],
label: {
from: 'label',
default: '',
},
name: {
from: 'name',
},
emails: {
from: 'emails',
default: () => [],
},
emptyValueText: {
from: 'emptyValueText',
required: true,
},
value: {
from: 'value',
default: '',
},
disabled: {
from: 'disabled',
default: false,
},
},
data() { data() {
return { return {
selected: this.value, selected: this.value,
......
...@@ -10,7 +10,7 @@ const initNotificationEmailListboxInputs = () => { ...@@ -10,7 +10,7 @@ const initNotificationEmailListboxInputs = () => {
const els = [...document.querySelectorAll('.js-notification-email-listbox-input')]; const els = [...document.querySelectorAll('.js-notification-email-listbox-input')];
els.forEach((el, index) => { els.forEach((el, index) => {
const { label, name, emptyValueText, value } = el.dataset; const { label, name, emptyValueText, value = '' } = el.dataset;
return new Vue({ return new Vue({
el, el,
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册