Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function getFileName(pic) {
return toString(pic).split('/').pop()
}
function getFileName(file) {
return toString(file).split('/').pop()
}
export function getFileName(pic) {
return toString(pic).split('/').pop()
}
};
}
} catch (e) {
}
}
},
}), vNode.make('div', {slot: 'footer'}, [
vNode.button({
on: {
click: () => {
_vm.onClose();
this.onCancel()
}
}
}, [toString(closeBtnText)]),
vNode.button({
props: {type: 'primary'}, on: {
click: () => {
this.onOk() !== false && _vm.onClose();
}
}
}, [toString(okBtnText)])
])]
});
}
'fc-spin': true
}
}, [
vNode.icon({
props: {
type: 'load-c',
size: 18
},
class: {
'fc-spin-icon-load': true
},
key: 'ifspi' + unique
}),
vNode.make('div', {
domProps: {
innerHTML: toString(this._props.loadingText)
},
key: 'ifspd' + unique
})
])
}
function setComponent(id, component) {
if (component) {
return _vue.component(toString(id), component);
} else if (id)
return components[toString(id)];
else
return {...components};
}
VData.prototype[key] = function (obj, val) {
if (isUndef(obj)) return this;
if (isPlainObject(obj)) {
$set(this._data, key, extend(this._data[key], obj));
} else {
$set(this._data[key], toString(obj), val);
}
return this;
};
});