@opentinyvue/vue-date-picker 2.21.0 → 2.22.0
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 +3 -10
- package/lib/pc.js +1 -1
- package/package.json +10 -11
- package/lib/mobile.js +0 -113
- package/src/mobile.vue.d.ts +0 -2
package/lib/index.js
CHANGED
|
@@ -7,21 +7,14 @@ function _extends() {
|
|
|
7
7
|
return n;
|
|
8
8
|
}, _extends.apply(null, arguments);
|
|
9
9
|
}
|
|
10
|
-
import { defineComponent, $
|
|
10
|
+
import { defineComponent, $setup, $prefix } from "@opentinyvue/vue-common";
|
|
11
11
|
import { iconClose } from "@opentinyvue/vue-icon";
|
|
12
12
|
import { api } from "@opentinyvue/vue-renderless/picker/vue";
|
|
13
13
|
import PcTemplate from "./pc.js";
|
|
14
|
-
import MobileTemplate from "./mobile.js";
|
|
15
14
|
import "@opentinyvue/vue-theme/date-picker/index.css";
|
|
16
15
|
var template = function template2(mode) {
|
|
17
16
|
var _process$env;
|
|
18
|
-
|
|
19
|
-
if ("pc" === (tinyMode || mode)) {
|
|
20
|
-
return PcTemplate;
|
|
21
|
-
}
|
|
22
|
-
if ("mobile" === (tinyMode || mode)) {
|
|
23
|
-
return MobileTemplate;
|
|
24
|
-
}
|
|
17
|
+
typeof process === "object" ? (_process$env = process.env) == null ? void 0 : _process$env.TINY_MODE : null;
|
|
25
18
|
return PcTemplate;
|
|
26
19
|
};
|
|
27
20
|
var currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
@@ -252,7 +245,7 @@ var DatePicker = defineComponent({
|
|
|
252
245
|
});
|
|
253
246
|
}
|
|
254
247
|
});
|
|
255
|
-
var version = "2.
|
|
248
|
+
var version = "2.22.0";
|
|
256
249
|
DatePicker.model = {
|
|
257
250
|
prop: "modelValue",
|
|
258
251
|
event: "update:modelValue"
|
package/lib/pc.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Picker from '@opentinyvue/vue-picker';
|
|
2
2
|
import { $props } from '@opentinyvue/vue-common';
|
|
3
|
-
import { extend } from '@opentinyvue/
|
|
3
|
+
import { extend } from '@opentinyvue/utils';
|
|
4
4
|
|
|
5
5
|
function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
6
6
|
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
package/package.json
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-date-picker",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "2.22.0",
|
|
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-common": "~2.
|
|
12
|
-
"@opentinyvue/vue-
|
|
13
|
-
"@opentinyvue/vue-
|
|
14
|
-
"@opentinyvue/vue-
|
|
15
|
-
"@opentinyvue/vue-
|
|
16
|
-
"@opentinyvue/vue-theme": "~3.21.0"
|
|
11
|
+
"@opentinyvue/utils": "~2.22.0",
|
|
12
|
+
"@opentinyvue/vue-common": "~2.22.0",
|
|
13
|
+
"@opentinyvue/vue-icon": "~2.22.0",
|
|
14
|
+
"@opentinyvue/vue-picker": "~2.22.0",
|
|
15
|
+
"@opentinyvue/vue-renderless": "~3.22.0",
|
|
16
|
+
"@opentinyvue/vue-theme": "~3.22.0"
|
|
17
17
|
},
|
|
18
|
-
"license": "MIT",
|
|
19
18
|
"types": "index.d.ts",
|
|
20
19
|
"scripts": {
|
|
21
20
|
"build": "pnpm -w build:ui $npm_package_name",
|
package/lib/mobile.js
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { defineComponent, props, setup } from '@opentinyvue/vue-common';
|
|
2
|
-
import { renderless, api } from '@opentinyvue/vue-renderless/date-picker/vue';
|
|
3
|
-
import MiniPicker from '@opentinyvue/vue-mini-picker';
|
|
4
|
-
import Input from '@opentinyvue/vue-input';
|
|
5
|
-
import { iconCloseCircle } from '@opentinyvue/vue-icon';
|
|
6
|
-
|
|
7
|
-
function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
|
|
8
|
-
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
|
|
9
|
-
if (render) {
|
|
10
|
-
options.render = render;
|
|
11
|
-
options.staticRenderFns = staticRenderFns;
|
|
12
|
-
options._compiled = true;
|
|
13
|
-
}
|
|
14
|
-
var hook;
|
|
15
|
-
if (injectStyles) {
|
|
16
|
-
hook = injectStyles;
|
|
17
|
-
}
|
|
18
|
-
if (hook) {
|
|
19
|
-
if (options.functional) {
|
|
20
|
-
options._injectStyles = hook;
|
|
21
|
-
var originalRender = options.render;
|
|
22
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
23
|
-
hook.call(context);
|
|
24
|
-
return originalRender(h, context);
|
|
25
|
-
};
|
|
26
|
-
} else {
|
|
27
|
-
var existing = options.beforeCreate;
|
|
28
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
return {
|
|
32
|
-
exports: scriptExports,
|
|
33
|
-
options
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
var __vue2_script = defineComponent({
|
|
38
|
-
components: {
|
|
39
|
-
TinyMiniPicker: MiniPicker,
|
|
40
|
-
TinyInput: Input,
|
|
41
|
-
IconClose: iconCloseCircle()
|
|
42
|
-
},
|
|
43
|
-
props: [].concat(props, ["modelValue", "type", "clearable", "visible", "minDate", "maxDate", "formatter"]),
|
|
44
|
-
setup: function setup$1(props2, context) {
|
|
45
|
-
return setup({
|
|
46
|
-
props: props2,
|
|
47
|
-
context,
|
|
48
|
-
renderless,
|
|
49
|
-
api
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
var render = function render2() {
|
|
54
|
-
var _vm = this;
|
|
55
|
-
var _h = _vm.$createElement;
|
|
56
|
-
var _c = _vm._self._c || _h;
|
|
57
|
-
return _c("div", [_c("tiny-input", {
|
|
58
|
-
ref: "refrence",
|
|
59
|
-
attrs: {
|
|
60
|
-
"readOnly": "true",
|
|
61
|
-
"_mode": _vm._mode
|
|
62
|
-
},
|
|
63
|
-
on: {
|
|
64
|
-
"hook-mounted": _vm.hookMounted,
|
|
65
|
-
"focus": _vm.showPickerAndLockScroll
|
|
66
|
-
},
|
|
67
|
-
model: {
|
|
68
|
-
value: _vm.state.displayValue,
|
|
69
|
-
callback: function callback($$v) {
|
|
70
|
-
_vm.$set(_vm.state, "displayValue", $$v);
|
|
71
|
-
},
|
|
72
|
-
expression: "state.displayValue"
|
|
73
|
-
}
|
|
74
|
-
}, [!_vm.state.clearable ? _c("icon-close", {
|
|
75
|
-
attrs: {
|
|
76
|
-
"slot": "suffix"
|
|
77
|
-
},
|
|
78
|
-
on: {
|
|
79
|
-
"click": _vm.clearDisplayValue
|
|
80
|
-
},
|
|
81
|
-
slot: "suffix"
|
|
82
|
-
}) : _vm._e()], 1), _c("tiny-mini-picker", {
|
|
83
|
-
ref: "picker",
|
|
84
|
-
attrs: {
|
|
85
|
-
"columns": _vm.state.columns
|
|
86
|
-
},
|
|
87
|
-
on: {
|
|
88
|
-
"change": _vm.onChange,
|
|
89
|
-
"confirm": _vm.onConfirm,
|
|
90
|
-
"cancel": _vm.onCancel
|
|
91
|
-
},
|
|
92
|
-
model: {
|
|
93
|
-
value: _vm.state.visible,
|
|
94
|
-
callback: function callback($$v) {
|
|
95
|
-
_vm.$set(_vm.state, "visible", $$v);
|
|
96
|
-
},
|
|
97
|
-
expression: "state.visible"
|
|
98
|
-
}
|
|
99
|
-
})], 1);
|
|
100
|
-
};
|
|
101
|
-
var staticRenderFns = [];
|
|
102
|
-
var __cssModules = {};
|
|
103
|
-
var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles);
|
|
104
|
-
function __vue2_injectStyles(context) {
|
|
105
|
-
for (var o in __cssModules) {
|
|
106
|
-
this[o] = __cssModules[o];
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
var mobile = /* @__PURE__ */ function() {
|
|
110
|
-
return __component__.exports;
|
|
111
|
-
}();
|
|
112
|
-
|
|
113
|
-
export { mobile as default };
|
package/src/mobile.vue.d.ts
DELETED