Browse Source

无JIRA fix: 吸取经验,防止别人乱改塞undefined之类的,加个判断

research/test
dailer 1 year ago
parent
commit
40f90200c9
  1. 3
      packages/fineui/src/core/constant/writable.var.js

3
packages/fineui/src/core/constant/writable.var.js

@ -48,6 +48,9 @@ PropertyDescriptors["pixRatio"] = {
export let StartOfWeek = 1;
export const setStartOfWeek = v => {
if (![0, 1].includes(v)) {
throw new Error("setStartOfWeek must be 0 or 1");
}
StartOfWeek = v;
};
PropertyDescriptors["StartOfWeek"] = {

Loading…
Cancel
Save