UNPKG

zgg-ui

Version:

2.0.1 正式版本 基于 Vue 3、UniApp 和 TypeScript 开发的多端适配移动端 UI 组件库,旨在提供丰富的组件集合,帮助开发者快速构建多端响应式的移动应用界面

28 lines (22 loc) 520 B
import { assignValue } from './_assignValue' export function copyObject( source: any, props: any, object: any, customizer?: any ) { object || (object = {}) let index = -1 const length = props.length while (++index < length) { const key = props[index] let newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined if (newValue === undefined) { newValue = source[key] } assignValue(object, key, newValue) } return object }