Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
value(n) {
this.$emit('on-change', n);
this.fileList = toArray(n);
},
fileList(n) {
value(n) {
this.$emit('on-change', n);
this.fileList = toArray(n);
},
fileList(n) {
directives(directives) {
if (isUndef(directives)) return this;
$set(this._data, 'directives', this._data.directives.concat(toArray(directives)));
return this;
}
data() {
return {
modalVm: null,
fileList: toArray(this.value),
unique: uniqueId()
}
},
watch: {
value(n) {
n = toArray(n);
const data = this.$refs.tree.data;
this.type === 'selected' ? this.selected(data, n) : this.checked(data, n);
}
},
toFormValue(value) {
value = toArray(value);
this.choose(value);
this.parseValue = value;
return value;
}
value(n) {
if (this.$refs.upload.fileList.every(file => {
return !file.status || file.status === 'finished';
})) {
this.$refs.upload.fileList = toArray(n).map(parseFile);
this.uploadList = this.$refs.upload.fileList;
}
},
maxLength(n, o) {
data() {
return {
modalVm: null,
fileList: toArray(this.value),
unique: uniqueId()
}
},
watch: {
created() {
if (this.ctx.props.showFileList === undefined)
this.ctx.props.showFileList = false;
this.ctx.props.fileList = toArray(this.value).map(parseFile);
},
watch: {
setValue() {
const type = (this.type).toLocaleLowerCase();
if (type === 'selected')
this.$refs.tree.setCurrentKey(this.value);
else
this.$refs.tree.setCheckedKeys(toArray(this.value));
}
},