first commit
This commit is contained in:
10
uni_modules/tdesign-uniapp/components/message/config.js
Normal file
10
uni_modules/tdesign-uniapp/components/message/config.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import props from './props';
|
||||
|
||||
|
||||
export const messageDefaultData = Object.keys(props).reduce((acc, key) => {
|
||||
const result = props[key].default;
|
||||
return {
|
||||
...acc,
|
||||
[key]: typeof result === 'function' ? result() : result,
|
||||
};
|
||||
}, {});
|
||||
Reference in New Issue
Block a user