8000 [Bug Report] View UI Plus DatePicker 日期选择器 不显示,并浏览器报错 · Issue #139 · view-design/ViewUIPlus · GitHub
[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] View UI Plus DatePicker 日期选择器 不显示,并浏览器报错 #139

Closed
danceboy-520 opened this issue Jul 21, 2022 · 2 comments
Labels
invalid This doesn't seem right

Comments

@danceboy-520
Copy link

我使用的是非template方式运行的:

浏览器出现的错误:

   Uncaught TypeError: Cannot read properties of null (reading 'slice')
at Core.min.js?v=zk77Yc3x8j8r5tvkSK6ieZDy7dphdgXN0hthKNTzL2E:formatted:31690:31
at Proxy.datePanelLabel (Core.min.js?v=zk77Yc3x8j8r5tvkSK6ieZDy7dphdgXN0hthKNTzL2E:formatted:33540:49)
at ReactiveEffect.run (Core.min.js?v=zk77Yc3x8j8r5tvkSK6ieZDy7dphdgXN0hthKNTzL2E:formatted:593:29)
at get value [as value] (Core.min.js?v=zk77Yc3x8j8r5tvkSK6ieZDy7dphdgXN0hthKNTzL2E:formatted:1575:43)
at Object.get [as datePanelLabel] (Core.min.js?v=zk77Yc3x8j8r5tvkSK6ieZDy7dphdgXN0hthKNTzL2E:formatted:4885:32)
at Proxy.I0 (Core.min.js?v=zk77Yc3x8j8r5tvkSK6ieZDy7dphdgXN0hthKNTzL2E:formatted:33639:35)
at renderComponentRoot (Core.min.js?v=zk77Yc3x8j8r5tvkSK6ieZDy7dphdgXN0hthKNTzL2E:formatted:2487:48)
at ReactiveEffect.componentUpdateFn [as fn] (Core.min.js?v=zk77Yc3x8j8r5tvkSK6ieZDy7dphdgXN0hthKNTzL2E:formatted:6880:61)
at ReactiveEffect.run (Core.min.js?v=zk77Yc3x8j8r5tvkSK6ieZDy7dphdgXN0hthKNTzL2E:formatted:593:29)
at instance.update (Core.min.js?v=zk77Yc3x8j8r5tvkSK6ieZDy7dphdgXN0hthKNTzL2E:formatted:6989:58)

代码错误位置:

, n = new RegExp(["yyyy", "Mmmm", "mmmm", "Mmm", "mmm", "mm", "m"].join("|"),"g");
return function(i, l, r) {
const s = /([[^\]]+])([^\[\]]+)([[^\]]+])/
, a = l.match(s).slice(1)//代码错误位置
, o = a[1]
, d = [a[0], a[2]].map(c=>({
label: c.replace(/[[^\]]+]/, m=>m.slice(1, -1).replace(n, C=>e[C](r, i))),
type: c.indexOf("yy") != -1 ? "year" : "month"
}));
return {
separator: o,
labels: d
}
}

浏览器出现的警告:

   [Vue warn]: Unhandled error during execution of render function 

at <DatePickerPanel ref="pickerPanel" visible=false showTime=false ... >
at <BaseTransition appear=false persisted=false mode=undefined ... >
at
at <Drop ref="drop" visible=false classes= Object ... >
at <CalendarPicker type="date" modelValue="" onUpdate:modelValue=fnonUpdate:modelValue ... >
at
at <ICol span="12" offset="" f="QUALIFYING_DATE" ... >
at
at <IForm rules= Object i="0" fi="0" ... >
at
at
at

@danceboy-520
Copy link
Author

同时我使用的是vue3 steup方式

@danceboy-520 danceboy-520 changed the title View UI Plus DatePicker 日期选择器 不显示,并浏览器报错 [Bug Report] View UI Plus DatePicker 日期选择器 不显示,并浏览器报错 Jul 21, 2022
@icarusion icarusion added the invalid This doesn't seem right label Jul 21, 2022
@icarusion
Copy link
Member

按要求提issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants
0