@acnb/options 中文文档教程
acnb-options
acnb 的期权实用程序集合。
Usage
npm i @acnb/options
import { useBackgroundOptions } from "@acnb/options";
const backgroundOptions = useBackgroundOptions();
console.log(backgroundOptions);
// {
// enable: false,
// value: "",
// opacity: 0.85,
// repeat: false,
// }
const backgroundOptions = useBackgroundOptions({
enable: true,
});
console.log(backgroundOptions);
// {
// enable: true,
// value: "",
// opacity: 0.85,
// repeat: false,
// }
acnb-options
Collection of Option Utilities for acnb.
Usage
npm i @acnb/options
import { useBackgroundOptions } from "@acnb/options";
const backgroundOptions = useBackgroundOptions();
console.log(backgroundOptions);
// {
// enable: false,
// value: "",
// opacity: 0.85,
// repeat: false,
// }
const backgroundOptions = useBackgroundOptions({
enable: true,
});
console.log(backgroundOptions);
// {
// enable: true,
// value: "",
// opacity: 0.85,
// repeat: false,
// }