@opentinyvue/vue-date-table 2.21.0 → 2.22.1
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/lib/index.js +9 -7
- package/lib/pc.js +1 -1
- package/package.json +8 -7
package/lib/index.js
CHANGED
|
@@ -7,10 +7,10 @@ function _extends() {
|
|
|
7
7
|
return n;
|
|
8
8
|
}, _extends.apply(null, arguments);
|
|
9
9
|
}
|
|
10
|
-
import { defineComponent, $
|
|
10
|
+
import { defineComponent, $props, $setup, $prefix } from "@opentinyvue/vue-common";
|
|
11
11
|
import PcTemplate from "./pc.js";
|
|
12
12
|
import MobileFirstTemplate from "./mobile-first.js";
|
|
13
|
-
import {
|
|
13
|
+
import { isDate1 } from "@opentinyvue/utils";
|
|
14
14
|
import "@opentinyvue/vue-theme/date-table/index.css";
|
|
15
15
|
var template = function template2(mode) {
|
|
16
16
|
var _process$env;
|
|
@@ -31,7 +31,7 @@ var DateTable = defineComponent({
|
|
|
31
31
|
date: {},
|
|
32
32
|
defaultValue: {
|
|
33
33
|
validator: function validator(val) {
|
|
34
|
-
return val === null ||
|
|
34
|
+
return val === null || isDate1(val) || Array.isArray(val) && val.every(isDate1);
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
disabledDate: {},
|
|
@@ -59,9 +59,11 @@ var DateTable = defineComponent({
|
|
|
59
59
|
},
|
|
60
60
|
showWeekNumber: {
|
|
61
61
|
type: Boolean,
|
|
62
|
-
default:
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
default: false
|
|
63
|
+
},
|
|
64
|
+
readonly: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
default: false
|
|
65
67
|
},
|
|
66
68
|
value: {},
|
|
67
69
|
formatWeeks: Function
|
|
@@ -74,7 +76,7 @@ var DateTable = defineComponent({
|
|
|
74
76
|
});
|
|
75
77
|
}
|
|
76
78
|
});
|
|
77
|
-
var version = "2.
|
|
79
|
+
var version = "2.undefined";
|
|
78
80
|
DateTable.install = function(Vue) {
|
|
79
81
|
Vue.component(DateTable.name, DateTable);
|
|
80
82
|
};
|
package/lib/pc.js
CHANGED
|
@@ -33,7 +33,7 @@ function normalizeComponent(scriptExports, render, staticRenderFns, functionalTe
|
|
|
33
33
|
|
|
34
34
|
var __vue2_script = defineComponent({
|
|
35
35
|
emits: ["changerange", "pick"],
|
|
36
|
-
props: [].concat(props, ["cellClassName", "date", "defaultValue", "disabledDate", "firstDayOfWeek", "maxDate", "minDate", "rangeState", "selectionMode", "showWeekNumber", "value", "formatWeeks"]),
|
|
36
|
+
props: [].concat(props, ["cellClassName", "date", "defaultValue", "disabledDate", "firstDayOfWeek", "maxDate", "minDate", "rangeState", "selectionMode", "showWeekNumber", "value", "formatWeeks", "readonly"]),
|
|
37
37
|
setup: function setup$1(props2, context) {
|
|
38
38
|
return setup({
|
|
39
39
|
props: props2,
|
package/package.json
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-date-table",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "2.22.1",
|
|
4
5
|
"description": "",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"sideEffects": false,
|
|
5
8
|
"main": "./lib/index.js",
|
|
6
9
|
"module": "./lib/index.js",
|
|
7
|
-
"sideEffects": false,
|
|
8
|
-
"type": "module",
|
|
9
10
|
"dependencies": {
|
|
10
|
-
"@opentinyvue/
|
|
11
|
-
"@opentinyvue/vue-
|
|
12
|
-
"@opentinyvue/vue-
|
|
11
|
+
"@opentinyvue/utils": "~3.22.0",
|
|
12
|
+
"@opentinyvue/vue-common": "~2.22.0",
|
|
13
|
+
"@opentinyvue/vue-renderless": "~3.22.0",
|
|
14
|
+
"@opentinyvue/vue-theme": "~3.22.0"
|
|
13
15
|
},
|
|
14
|
-
"license": "MIT",
|
|
15
16
|
"types": "index.d.ts",
|
|
16
17
|
"scripts": {
|
|
17
18
|
"build": "pnpm -w build:ui $npm_package_name",
|