Initial commit: Book management system with Rust Loco backend and Vue 3 frontend
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
export default function buildFormatLongFn(args) {
|
||||
return function () {
|
||||
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
||||
// TODO: Remove String()
|
||||
var width = options.width ? String(options.width) : args.defaultWidth;
|
||||
var format = args.formats[width] || args.formats[args.defaultWidth];
|
||||
return format;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user