uview-plus 3.3.36 → 3.3.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +5 -0
- package/components/u-datetime-picker/u-datetime-picker.vue +8 -6
- package/libs/function/index.js +1 -0
- package/libs/util/gcanvas/bridge/bridge-weex.js +0 -0
- package/libs/util/gcanvas/context-2d/FillStyleLinearGradient.js +0 -0
- package/libs/util/gcanvas/context-2d/FillStylePattern.js +0 -0
- package/libs/util/gcanvas/context-2d/FillStyleRadialGradient.js +0 -0
- package/libs/util/gcanvas/context-2d/RenderingContext.js +0 -0
- package/libs/util/gcanvas/context-webgl/ActiveInfo.js +0 -0
- package/libs/util/gcanvas/context-webgl/Buffer.js +0 -0
- package/libs/util/gcanvas/context-webgl/Framebuffer.js +0 -0
- package/libs/util/gcanvas/context-webgl/GLenum.js +0 -0
- package/libs/util/gcanvas/context-webgl/GLmethod.js +0 -0
- package/libs/util/gcanvas/context-webgl/GLtype.js +0 -0
- package/libs/util/gcanvas/context-webgl/Program.js +0 -0
- package/libs/util/gcanvas/context-webgl/Renderbuffer.js +0 -0
- package/libs/util/gcanvas/context-webgl/RenderingContext.js +0 -0
- package/libs/util/gcanvas/context-webgl/Shader.js +0 -0
- package/libs/util/gcanvas/context-webgl/ShaderPrecisionFormat.js +0 -0
- package/libs/util/gcanvas/context-webgl/Texture.js +0 -0
- package/libs/util/gcanvas/context-webgl/UniformLocation.js +0 -0
- package/libs/util/gcanvas/context-webgl/classUtils.js +0 -0
- package/libs/util/gcanvas/env/canvas.js +0 -0
- package/libs/util/gcanvas/env/image.js +0 -0
- package/libs/util/gcanvas/env/tool.js +0 -0
- package/libs/util/gcanvas/index.js +0 -0
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -335,11 +335,12 @@
|
|
|
335
335
|
if (this.filter) {
|
|
336
336
|
values = this.filter(type, values)
|
|
337
337
|
if (!values || (values && values.length == 0)) {
|
|
338
|
-
uni.showToast({
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
})
|
|
338
|
+
// uni.showToast({
|
|
339
|
+
// title: '日期filter结果不能为空',
|
|
340
|
+
// icon: 'error',
|
|
341
|
+
// mask: true
|
|
342
|
+
// })
|
|
343
|
+
console.log('日期filter结果不能为空')
|
|
343
344
|
}
|
|
344
345
|
}
|
|
345
346
|
return { type, values }
|
|
@@ -353,7 +354,8 @@
|
|
|
353
354
|
// 得出合法的时间
|
|
354
355
|
correctValue(value) {
|
|
355
356
|
const isDateMode = this.mode !== 'time'
|
|
356
|
-
if (isDateMode && !test.date(value)) {
|
|
357
|
+
// if (isDateMode && !test.date(value)) {
|
|
358
|
+
if (isDateMode && !dayjs.unix(value).isValid()) {
|
|
357
359
|
// 如果是日期类型,但是又没有设置合法的当前时间的话,使用最小时间为当前时间
|
|
358
360
|
value = this.minDate
|
|
359
361
|
} else if (!isDateMode && !value) {
|
package/libs/function/index.js
CHANGED
|
@@ -119,6 +119,7 @@ export function $parent(name = undefined) {
|
|
|
119
119
|
// 通过while历遍,这里主要是为了H5需要多层解析的问题
|
|
120
120
|
while (parent) {
|
|
121
121
|
// 父组件
|
|
122
|
+
name = name.replace(/up-([a-zA-Z0-9-_]+)/g, 'u-$1')
|
|
122
123
|
if (parent.$options && parent.$options.name !== name) {
|
|
123
124
|
// 如果组件的name不相等,继续上一级寻找
|
|
124
125
|
parent = parent.$parent
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|