UNPKG

gdy-quill-editor

Version:

基于Quill的vue编辑器组件 npm@0.1.6

25 lines (24 loc) 730 B
if (typeof Object.assign !== 'function') { Object.defineProperty(Object, 'assign', { value(target, varArgs, ...rest) { const arg = [target, varArgs, ...rest] if (target == null) { throw new TypeError('Cannot convert undefined or null to object') } const to = Object(target) for (let index = 1; index < arg.length; index++) { const nextSource = arg[index] if (nextSource != null) { for (const nextKey in nextSource) { if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) { to[nextKey] = nextSource[nextKey] } } } } return to }, writable: true, configurable: true, }) }