z-vue-design 0.0.45 → 0.0.46

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.
@@ -1,166 +0,0 @@
1
- import { _ as t, s as U, p as c, u as O, V as D, b as d } from "./index-6Ix6s3k-.mjs";
2
- import { defineComponent as N, ref as B, createVNode as w } from "vue";
3
- import { g as H, c as R, d as V, r as M, a as W } from "./zh_CN-CPK2j7_3.mjs";
4
- import { o as S } from "./KeyCode-B41xy4QZ.mjs";
5
- const T = () => ({
6
- format: String,
7
- showNow: c(),
8
- showHour: c(),
9
- showMinute: c(),
10
- showSecond: c(),
11
- use12Hours: c(),
12
- hourStep: Number,
13
- minuteStep: Number,
14
- secondStep: Number,
15
- hideDisabledOptions: c(),
16
- popupClassName: String,
17
- status: U()
18
- });
19
- function $(u) {
20
- const _ = H(u, t(t({}, T()), {
21
- order: {
22
- type: Boolean,
23
- default: !0
24
- }
25
- })), {
26
- TimePicker: I,
27
- RangePicker: y
28
- } = _, j = N({
29
- name: "ATimePicker",
30
- inheritAttrs: !1,
31
- props: t(t(t(t({}, R()), V()), T()), {
32
- addon: {
33
- type: Function
34
- }
35
- }),
36
- slots: Object,
37
- setup(m, g) {
38
- let {
39
- slots: i,
40
- expose: C,
41
- emit: n,
42
- attrs: h
43
- } = g;
44
- const r = m, a = O();
45
- D(!(i.addon || r.addon), "TimePicker", "`addon` is deprecated. Please use `v-slot:renderExtraFooter` instead.");
46
- const s = B();
47
- C({
48
- focus: () => {
49
- var o;
50
- (o = s.value) === null || o === void 0 || o.focus();
51
- },
52
- blur: () => {
53
- var o;
54
- (o = s.value) === null || o === void 0 || o.blur();
55
- }
56
- });
57
- const f = (o, F) => {
58
- n("update:value", o), n("change", o, F), a.onFieldChange();
59
- }, k = (o) => {
60
- n("update:open", o), n("openChange", o);
61
- }, P = (o) => {
62
- n("focus", o);
63
- }, v = (o) => {
64
- n("blur", o), a.onFieldBlur();
65
- }, b = (o) => {
66
- n("ok", o);
67
- };
68
- return () => {
69
- const {
70
- id: o = a.id.value
71
- } = r;
72
- return w(I, d(d(d({}, h), S(r, ["onUpdate:value", "onUpdate:open"])), {}, {
73
- id: o,
74
- dropdownClassName: r.popupClassName,
75
- mode: void 0,
76
- ref: s,
77
- renderExtraFooter: r.addon || i.addon || r.renderExtraFooter || i.renderExtraFooter,
78
- onChange: f,
79
- onOpenChange: k,
80
- onFocus: P,
81
- onBlur: v,
82
- onOk: b
83
- }), i);
84
- };
85
- }
86
- }), A = N({
87
- name: "ATimeRangePicker",
88
- inheritAttrs: !1,
89
- props: t(t(t(t({}, R()), M()), T()), {
90
- order: {
91
- type: Boolean,
92
- default: !0
93
- }
94
- }),
95
- slots: Object,
96
- setup(m, g) {
97
- let {
98
- slots: i,
99
- expose: C,
100
- emit: n,
101
- attrs: h
102
- } = g;
103
- const r = m, a = B(), s = O();
104
- C({
105
- focus: () => {
106
- var e;
107
- (e = a.value) === null || e === void 0 || e.focus();
108
- },
109
- blur: () => {
110
- var e;
111
- (e = a.value) === null || e === void 0 || e.blur();
112
- }
113
- });
114
- const f = (e, l) => {
115
- n("update:value", e), n("change", e, l), s.onFieldChange();
116
- }, k = (e) => {
117
- n("update:open", e), n("openChange", e);
118
- }, P = (e) => {
119
- n("focus", e);
120
- }, v = (e) => {
121
- n("blur", e), s.onFieldBlur();
122
- }, b = (e, l) => {
123
- n("panelChange", e, l);
124
- }, o = (e) => {
125
- n("ok", e);
126
- }, F = (e, l, E) => {
127
- n("calendarChange", e, l, E);
128
- };
129
- return () => {
130
- const {
131
- id: e = s.id.value
132
- } = r;
133
- return w(y, d(d(d({}, h), S(r, ["onUpdate:open", "onUpdate:value"])), {}, {
134
- id: e,
135
- dropdownClassName: r.popupClassName,
136
- picker: "time",
137
- mode: void 0,
138
- ref: a,
139
- onChange: f,
140
- onOpenChange: k,
141
- onFocus: P,
142
- onBlur: v,
143
- onPanelChange: b,
144
- onOk: o,
145
- onCalendarChange: F
146
- }), i);
147
- };
148
- }
149
- });
150
- return {
151
- TimePicker: j,
152
- TimeRangePicker: A
153
- };
154
- }
155
- const {
156
- TimePicker: p,
157
- TimeRangePicker: x
158
- } = $(W), K = t(p, {
159
- TimePicker: p,
160
- TimeRangePicker: x,
161
- install: (u) => (u.component(p.name, p), u.component(x.name, x), u)
162
- });
163
- export {
164
- K as T,
165
- x as a
166
- };