Files
pet/uni_modules/uview-next/components/u-barcode/JsBarcode/help/fixOptions.js
T
2025-08-12 15:04:01 +08:00

12 lines
342 B
JavaScript

export default fixOptions;
function fixOptions(options){
// Fix the margins
options.marginTop = options.marginTop || options.margin;
options.marginBottom = options.marginBottom || options.margin;
options.marginRight = options.marginRight || options.margin;
options.marginLeft = options.marginLeft || options.margin;
return options;
}