Browse Source

Merge pull request #240271 in DEC/fineui from master to feature/x

* commit '2e64d467c439c87f413805861758e8cfed5c46af':
  无JIRA fix: 吸取经验,防止别人乱改塞undefined之类的,加个判断
research/test
superman 1 year ago
parent
commit
c929ea9fe3
  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 let StartOfWeek = 1;
export const setStartOfWeek = v => { export const setStartOfWeek = v => {
if (![0, 1].includes(v)) {
throw new Error("setStartOfWeek must be 0 or 1");
}
StartOfWeek = v; StartOfWeek = v;
}; };
PropertyDescriptors["StartOfWeek"] = { PropertyDescriptors["StartOfWeek"] = {

Loading…
Cancel
Save