@kengic/uni 0.6.3-beta.29 → 0.6.3-beta.30

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.
Files changed (2) hide show
  1. package/dist/util/kg.ts +5 -3
  2. package/package.json +1 -1
package/dist/util/kg.ts CHANGED
@@ -256,11 +256,13 @@ export class Kg {
256
256
  const _rightValue = value[1] as Dayjs;
257
257
 
258
258
  // 左侧日期的字符串
259
- let _leftStringValue = _leftValue && _leftValue.isValid() ? _leftValue.format('YYYY-MM-DD') : '';
259
+ let _leftStringValue = '';
260
+ if (_leftValue && _leftValue.isValid()) {
261
+ _leftStringValue = _leftValue.format('YYYY-MM-DD 00:00:00');
262
+ }
263
+
260
264
  // 右侧日期的字符串
261
265
  let _rightStringValue = '';
262
-
263
- _leftStringValue = `${_leftStringValue} 00:00:00`;
264
266
  if (_rightValue && _rightValue.isValid()) {
265
267
  _rightStringValue = _rightValue.add(1, 'day').format('YYYY-MM-DD 00:00:00');
266
268
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/uni",
3
- "version": "0.6.3-beta.29",
3
+ "version": "0.6.3-beta.30",
4
4
  "scripts": {
5
5
  "build": "npm run use-node && rimraf dist && vue-tsc && vite build",
6
6
  "------ -------------------------------------------": "",