@fangzhongya/fang-ui 0.0.70 → 0.0.71
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/dist/components/alert/src/index2.cjs +10 -10
- package/dist/components/array/src/index2.cjs +45 -45
- package/dist/components/autocomplete/src/index2.cjs +10 -10
- package/dist/components/box/src/index2.cjs +21 -21
- package/dist/components/box-adjust/src/index2.cjs +27 -27
- package/dist/components/box-local/src/index2.cjs +20 -20
- package/dist/components/box-mask/src/index2.cjs +5 -5
- package/dist/components/box-teleport/src/index2.cjs +5 -5
- package/dist/components/box-title/src/index2.cjs +15 -15
- package/dist/components/button/src/index2.cjs +9 -9
- package/dist/components/buttons/src/index2.cjs +20 -20
- package/dist/components/card/src/index2.cjs +10 -10
- package/dist/components/cascader/src/index2.cjs +10 -10
- package/dist/components/cascader-panel/src/index2.cjs +10 -10
- package/dist/components/cascaders/src/index2.cjs +17 -17
- package/dist/components/checkbox/src/index2.cjs +10 -10
- package/dist/components/checkbox-group/src/index2.cjs +10 -10
- package/dist/components/checks/src/index2.cjs +31 -31
- package/dist/components/choice-select/src/index2.cjs +5 -5
- package/dist/components/collapse/src/index2.cjs +10 -10
- package/dist/components/collapse-item/src/index2.cjs +10 -10
- package/dist/components/color-picker/src/index2.cjs +10 -10
- package/dist/components/common/list.cjs +5 -5
- package/dist/components/common/use.cjs +5 -5
- package/dist/components/company-select/src/index2.cjs +19 -19
- package/dist/components/config-provider/src/index2.cjs +10 -10
- package/dist/components/date-picker/src/index2.cjs +10 -10
- package/dist/components/dates/src/index2.cjs +12 -12
- package/dist/components/dates-divide/src/index2.cjs +20 -20
- package/dist/components/dates-picker/src/index2.cjs +15 -15
- package/dist/components/dates2/src/index2.cjs +26 -26
- package/dist/components/department-select/src/index2.cjs +11 -11
- package/dist/components/dialog/src/index2.cjs +10 -10
- package/dist/components/dialogs/src/index2.cjs +23 -23
- package/dist/components/divider/src/index2.cjs +10 -10
- package/dist/components/drawer/src/index2.cjs +10 -10
- package/dist/components/dropdown/src/index2.cjs +10 -10
- package/dist/components/dropdown-item/src/index2.cjs +10 -10
- package/dist/components/dropdown-menu/src/index2.cjs +10 -10
- package/dist/components/edit/src/index2.cjs +24 -24
- package/dist/components/edit-float/src/index2.cjs +40 -40
- package/dist/components/form/src/index2.cjs +10 -10
- package/dist/components/form-item/src/index2.cjs +10 -10
- package/dist/components/forms/src/index2.cjs +65 -65
- package/dist/components/forms/src/setup.cjs +12 -12
- package/dist/components/forms-div/src/index2.cjs +11 -11
- package/dist/components/forms-drag/src/index2.cjs +73 -73
- package/dist/components/forms-item/src/index2.cjs +45 -45
- package/dist/components/forms-item/src/label.cjs +4 -4
- package/dist/components/forms-items/src/index2.cjs +23 -23
- package/dist/components/global-config/src/index.cjs +5 -5
- package/dist/components/history/src/index2.cjs +26 -26
- package/dist/components/icon/src/index2.cjs +23 -23
- package/dist/components/icon-picker/src/index2.cjs +52 -52
- package/dist/components/iframe/src/index2.cjs +10 -10
- package/dist/components/image/src/index2.cjs +10 -10
- package/dist/components/images/src/index2.cjs +16 -16
- package/dist/components/input/src/index2.cjs +10 -10
- package/dist/components/input-array/src/index2.cjs +38 -38
- package/dist/components/input-history/src/index2.cjs +48 -48
- package/dist/components/input-history/src/util.cjs +4 -4
- package/dist/components/input-num/src/index2.cjs +17 -17
- package/dist/components/input-number/src/index2.cjs +10 -10
- package/dist/components/input-select/src/index2.cjs +51 -51
- package/dist/components/input-tag/src/index2.cjs +10 -10
- package/dist/components/inputs/src/index2.cjs +17 -17
- package/dist/components/keep-com/src/index2.cjs +16 -16
- package/dist/components/labels/src/index2.cjs +13 -13
- package/dist/components/list/src/index2.cjs +24 -24
- package/dist/components/lists/src/index2.cjs +51 -51
- package/dist/components/listsp/src/index2.cjs +34 -34
- package/dist/components/mention/src/index2.cjs +10 -10
- package/dist/components/menus/src/index2.cjs +16 -16
- package/dist/components/menus/src/menu-ll2.cjs +11 -11
- package/dist/components/no-data/src/index2.cjs +5 -5
- package/dist/components/option/src/index2.cjs +9 -9
- package/dist/components/option-group/src/index2.cjs +10 -10
- package/dist/components/page/src/index2.cjs +77 -77
- package/dist/components/page/src/set-column2.cjs +54 -54
- package/dist/components/pagination/src/index2.cjs +10 -10
- package/dist/components/paging/src/index2.cjs +13 -13
- package/dist/components/popconfirm/src/index2.cjs +10 -10
- package/dist/components/popover/src/index2.cjs +10 -10
- package/dist/components/popup/src/index2.cjs +29 -29
- package/dist/components/radio/src/index2.cjs +10 -10
- package/dist/components/radio-group/src/index2.cjs +10 -10
- package/dist/components/retract/src/index2.cjs +14 -14
- package/dist/components/right-key/src/index2.cjs +30 -30
- package/dist/components/role-select/src/index2.cjs +38 -38
- package/dist/components/seamless-scroll/src/index2.cjs +24 -24
- package/dist/components/select/src/index2.cjs +10 -10
- package/dist/components/select-dialog/src/index2.cjs +65 -65
- package/dist/components/select-popover/src/index2.cjs +42 -42
- package/dist/components/select-scroll/src/index2.cjs +30 -30
- package/dist/components/selector/src/index2.cjs +39 -39
- package/dist/components/selects/src/index2.cjs +20 -20
- package/dist/components/slider/src/index2.cjs +10 -10
- package/dist/components/stick-div/src/index2.cjs +17 -17
- package/dist/components/stick-edge/src/index2.cjs +10 -10
- package/dist/components/stick-window/src/index2.cjs +22 -22
- package/dist/components/switch/src/index2.cjs +10 -10
- package/dist/components/switchs/src/index2.cjs +15 -15
- package/dist/components/tab-pane/src/index2.cjs +10 -10
- package/dist/components/tables/common/img2.cjs +7 -7
- package/dist/components/tables/common/pagin.cjs +16 -16
- package/dist/components/tables/common/table-but2.cjs +10 -10
- package/dist/components/tables/common/table-color2.cjs +7 -7
- package/dist/components/tables/common/table-list2.cjs +9 -9
- package/dist/components/tables/common/util.cjs +2 -2
- package/dist/components/tables/src/column.cjs +5 -5
- package/dist/components/tables/src/columns2.cjs +2 -2
- package/dist/components/tables/src/columns3.cjs +2 -2
- package/dist/components/tables/src/index2.cjs +29 -29
- package/dist/components/tablesp/src/index2.cjs +35 -35
- package/dist/components/tabless/src/index2.cjs +48 -48
- package/dist/components/tablesv/src/column.cjs +16 -16
- package/dist/components/tablesv/src/columns2.cjs +2 -2
- package/dist/components/tablesv/src/columns3.cjs +2 -2
- package/dist/components/tablesv/src/index2.cjs +30 -30
- package/dist/components/tablesvp/src/index2.cjs +30 -30
- package/dist/components/tabs/src/index2.cjs +10 -10
- package/dist/components/text/src/index2.cjs +8 -8
- package/dist/components/time-picker/src/index2.cjs +10 -10
- package/dist/components/time-select/src/index2.cjs +10 -10
- package/dist/components/tooltip/src/index2.cjs +10 -10
- package/dist/components/transfer/src/index2.cjs +10 -10
- package/dist/components/tree/src/index2.cjs +10 -10
- package/dist/components/tree-select/src/index2.cjs +10 -10
- package/dist/components/tree-select-box/src/index2.cjs +29 -29
- package/dist/components/upload/src/index2.cjs +10 -10
- package/dist/components/user-select/src/index2.cjs +99 -99
- package/dist/components/window/src/index2.cjs +61 -61
- package/dist/directives/scroll/index.cjs +24 -6
- package/dist/directives/scroll/index.js +3 -1
- package/dist/hooks/event-aliass/index.cjs +2 -2
- package/dist/hooks/global-config/index.cjs +8 -8
- package/dist/hooks/inherit/index.cjs +2 -2
- package/dist/hooks/locale/index.cjs +7 -7
- package/dist/icons/iconify.cjs +3 -3
- package/dist/icons/index.css +39 -39
- package/dist/icons/index.json +10 -10
- package/dist/icons/vue/bar.cjs +3 -3
- package/dist/icons/vue/below.cjs +3 -3
- package/dist/icons/vue/bicycle.cjs +3 -3
- package/dist/icons/vue/bottom-left.cjs +4 -4
- package/dist/icons/vue/bottom-right.cjs +4 -4
- package/dist/icons/vue/bottom.cjs +3 -3
- package/dist/icons/vue/clear.cjs +5 -5
- package/dist/icons/vue/close.cjs +3 -3
- package/dist/icons/vue/edit.cjs +5 -5
- package/dist/icons/vue/frame.cjs +3 -3
- package/dist/icons/vue/left.cjs +3 -3
- package/dist/icons/vue/right.cjs +3 -3
- package/dist/icons/vue/star.cjs +4 -4
- package/dist/utils/vues/common.cjs +2 -2
- package/package.json +5 -5
- /package/dist/components/{forms-item → forms-items}/index.css +0 -0
- /package/dist/css/{forms-item.css → forms-items.css} +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
const data = require("./data.cjs");
|
|
5
5
|
const index = require("../../../hooks/cssname/index.cjs");
|
|
6
6
|
const index$1 = require("element-plus/es/components/collapse/index");
|
|
7
|
-
const _sfc_main = /* @__PURE__ */
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
8
8
|
__name: "index",
|
|
9
9
|
props: data.dataProps,
|
|
10
10
|
emits: data.dataEmits,
|
|
11
11
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
12
|
-
const attrs =
|
|
13
|
-
const slots =
|
|
12
|
+
const attrs = vues.useAttrs();
|
|
13
|
+
const slots = vues.useSlots();
|
|
14
14
|
const cs = index.useCssName("collapse-item");
|
|
15
15
|
const props = __props;
|
|
16
16
|
const emit = __emit;
|
|
@@ -18,14 +18,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
18
18
|
...data.dataExpose
|
|
19
19
|
});
|
|
20
20
|
return (_ctx, _cache) => {
|
|
21
|
-
return
|
|
22
|
-
class:
|
|
23
|
-
},
|
|
24
|
-
|
|
21
|
+
return vues.openBlock(), vues.createBlock(vues.unref(index$1.ElCollapseItem), vues.mergeProps({
|
|
22
|
+
class: vues.unref(cs).z()
|
|
23
|
+
}, vues.unref(attrs)), vues.createSlots({ _: 2 }, [
|
|
24
|
+
vues.renderList(Object.keys(vues.unref(slots)), (k) => {
|
|
25
25
|
return {
|
|
26
26
|
name: k,
|
|
27
|
-
fn:
|
|
28
|
-
|
|
27
|
+
fn: vues.withCtx((scope) => [
|
|
28
|
+
vues.renderSlot(_ctx.$slots, k, vues.normalizeProps(vues.guardReactiveProps(scope)))
|
|
29
29
|
])
|
|
30
30
|
};
|
|
31
31
|
})
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
const data = require("./data.cjs");
|
|
5
5
|
const index = require("../../../hooks/cssname/index.cjs");
|
|
6
6
|
const index$1 = require("element-plus/es/components/color-picker/index");
|
|
7
|
-
const _sfc_main = /* @__PURE__ */
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
8
8
|
__name: "index",
|
|
9
9
|
props: data.dataProps,
|
|
10
10
|
emits: data.dataEmits,
|
|
11
11
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
12
|
-
const attrs =
|
|
13
|
-
const slots =
|
|
12
|
+
const attrs = vues.useAttrs();
|
|
13
|
+
const slots = vues.useSlots();
|
|
14
14
|
const cs = index.useCssName("color-picker");
|
|
15
15
|
const props = __props;
|
|
16
16
|
const emit = __emit;
|
|
@@ -18,14 +18,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
18
18
|
...data.dataExpose
|
|
19
19
|
});
|
|
20
20
|
return (_ctx, _cache) => {
|
|
21
|
-
return
|
|
22
|
-
class:
|
|
23
|
-
},
|
|
24
|
-
|
|
21
|
+
return vues.openBlock(), vues.createBlock(vues.unref(index$1.ElColorPicker), vues.mergeProps({
|
|
22
|
+
class: vues.unref(cs).z()
|
|
23
|
+
}, vues.unref(attrs)), vues.createSlots({ _: 2 }, [
|
|
24
|
+
vues.renderList(Object.keys(vues.unref(slots)), (k) => {
|
|
25
25
|
return {
|
|
26
26
|
name: k,
|
|
27
|
-
fn:
|
|
28
|
-
|
|
27
|
+
fn: vues.withCtx((scope) => [
|
|
28
|
+
vues.renderSlot(_ctx.$slots, k, vues.normalizeProps(vues.guardReactiveProps(scope)))
|
|
29
29
|
])
|
|
30
30
|
};
|
|
31
31
|
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
const use = require("./use.cjs");
|
|
5
5
|
const props = {
|
|
6
6
|
/**
|
|
@@ -65,7 +65,7 @@ function isValue(v) {
|
|
|
65
65
|
return false;
|
|
66
66
|
}
|
|
67
67
|
function comHandle(props2, emit, config) {
|
|
68
|
-
const selectMultiple =
|
|
68
|
+
const selectMultiple = vues.ref(false);
|
|
69
69
|
let getMultipleValue = (v) => {
|
|
70
70
|
if (config == null ? void 0 : config.getValue) return config.getValue(v);
|
|
71
71
|
return v;
|
|
@@ -73,7 +73,7 @@ function comHandle(props2, emit, config) {
|
|
|
73
73
|
let setMultipleValue = (v) => {
|
|
74
74
|
return v;
|
|
75
75
|
};
|
|
76
|
-
const value =
|
|
76
|
+
const value = vues.computed({
|
|
77
77
|
get() {
|
|
78
78
|
return setMultipleValue(props2.modelValue);
|
|
79
79
|
},
|
|
@@ -87,7 +87,7 @@ function comHandle(props2, emit, config) {
|
|
|
87
87
|
emit("update:modelValue", v, props2.modelValue);
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
|
-
|
|
90
|
+
vues.watch(() => props2.multiple, setMultiple, {
|
|
91
91
|
immediate: true
|
|
92
92
|
});
|
|
93
93
|
function getValueObjs(v) {
|
|
@@ -162,7 +162,7 @@ function comHandle(props2, emit, config) {
|
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
if (props2.load) {
|
|
165
|
-
|
|
165
|
+
vues.watch(
|
|
166
166
|
() => props2.options,
|
|
167
167
|
() => {
|
|
168
168
|
if (props2.options && props2.options.length > 0) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
require("../../utils/index.cjs");
|
|
5
5
|
const isObject = require("@fangzhongya/utils/basic/object/isObject");
|
|
6
6
|
const util = require("../../utils/util.cjs");
|
|
@@ -178,9 +178,9 @@ function setComponString(value, obj, componObj, data, optionss, compons) {
|
|
|
178
178
|
const compon = obj.compon;
|
|
179
179
|
const tcom = lineToLargeHump.lineToLargeHump(compon);
|
|
180
180
|
if (Object.keys(compons).includes(tcom)) {
|
|
181
|
-
return
|
|
181
|
+
return vues.h(compons[tcom], componObj);
|
|
182
182
|
} else {
|
|
183
|
-
return
|
|
183
|
+
return vues.h(compon, componObj);
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
function getOnObjs(obj, data, emit, ...arrs) {
|
|
@@ -207,7 +207,7 @@ function useSetSlot(obj, data, slots, index) {
|
|
|
207
207
|
if (slotname) {
|
|
208
208
|
const slot = slots[slotname];
|
|
209
209
|
if (slot) {
|
|
210
|
-
const value =
|
|
210
|
+
const value = vues.computed({
|
|
211
211
|
get() {
|
|
212
212
|
return getValue(obj, data, index);
|
|
213
213
|
},
|
|
@@ -247,7 +247,7 @@ function useSetCompon(obj, data, optionss, compons, emit, index) {
|
|
|
247
247
|
compons
|
|
248
248
|
);
|
|
249
249
|
} else {
|
|
250
|
-
return
|
|
250
|
+
return vues.h(obj.compon, componObj);
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
const index$2 = require("../../select/index.cjs");
|
|
5
5
|
const index$3 = require("../../option/index.cjs");
|
|
6
6
|
const data = require("./data.cjs");
|
|
@@ -8,7 +8,7 @@ require("../../../hooks/index.cjs");
|
|
|
8
8
|
const index = require("../../../hooks/locale/index.cjs");
|
|
9
9
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
10
10
|
const _hoisted_1 = { key: 0 };
|
|
11
|
-
const _sfc_main = /* @__PURE__ */
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
12
12
|
__name: "index",
|
|
13
13
|
props: data.dataProps,
|
|
14
14
|
emits: data.dataEmits,
|
|
@@ -17,8 +17,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
17
17
|
const cs = index$1.useCssName("company-select");
|
|
18
18
|
const props = __props;
|
|
19
19
|
const emit = __emit;
|
|
20
|
-
const mvalue =
|
|
21
|
-
|
|
20
|
+
const mvalue = vues.ref([]);
|
|
21
|
+
vues.watch(
|
|
22
22
|
() => props.modelValue,
|
|
23
23
|
() => {
|
|
24
24
|
mvalue.value = props.modelValue || [];
|
|
@@ -29,10 +29,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
29
29
|
deep: true
|
|
30
30
|
}
|
|
31
31
|
);
|
|
32
|
-
const psprops =
|
|
32
|
+
const psprops = vues.computed(() => {
|
|
33
33
|
return Object.assign({}, data.companySelect, props.props);
|
|
34
34
|
});
|
|
35
|
-
const remoteData =
|
|
35
|
+
const remoteData = vues.ref([]);
|
|
36
36
|
const getList = () => {
|
|
37
37
|
if (psprops.value.lazy) {
|
|
38
38
|
return remoteData.value;
|
|
@@ -40,10 +40,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
40
40
|
return props.options;
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
-
const loading =
|
|
44
|
-
const options =
|
|
43
|
+
const loading = vues.ref([]);
|
|
44
|
+
const options = vues.ref([]);
|
|
45
45
|
function getOptions() {
|
|
46
|
-
|
|
46
|
+
vues.nextTick(() => {
|
|
47
47
|
const arrs = props.labels || [];
|
|
48
48
|
if (psprops.value.checkStrictly) {
|
|
49
49
|
const values = [];
|
|
@@ -158,16 +158,16 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
158
158
|
...data.dataExpose
|
|
159
159
|
});
|
|
160
160
|
return (_ctx, _cache) => {
|
|
161
|
-
return
|
|
162
|
-
class:
|
|
161
|
+
return vues.openBlock(), vues.createElementBlock("div", {
|
|
162
|
+
class: vues.normalizeClass(vues.unref(cs).z())
|
|
163
163
|
}, [
|
|
164
|
-
(
|
|
165
|
-
return
|
|
166
|
-
class:
|
|
164
|
+
(vues.openBlock(true), vues.createElementBlock(vues.Fragment, null, vues.renderList(props.labels, (item, index2) => {
|
|
165
|
+
return vues.openBlock(), vues.createElementBlock("div", {
|
|
166
|
+
class: vues.normalizeClass(vues.unref(cs).z("li")),
|
|
167
167
|
key: index2
|
|
168
168
|
}, [
|
|
169
|
-
item.name ? (
|
|
170
|
-
|
|
169
|
+
item.name ? (vues.openBlock(), vues.createElementBlock("span", _hoisted_1, vues.toDisplayString(item.name), 1)) : vues.createCommentVNode("", true),
|
|
170
|
+
vues.createVNode(vues.unref(index$2.Select), {
|
|
171
171
|
disabled: item.disabled,
|
|
172
172
|
readonly: item.readonly,
|
|
173
173
|
onChange: (v) => {
|
|
@@ -178,9 +178,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
178
178
|
modelValue: mvalue.value[index2],
|
|
179
179
|
loading: loading.value[index2]
|
|
180
180
|
}, {
|
|
181
|
-
default:
|
|
182
|
-
(
|
|
183
|
-
return
|
|
181
|
+
default: vues.withCtx(() => [
|
|
182
|
+
(vues.openBlock(true), vues.createElementBlock(vues.Fragment, null, vues.renderList(options.value[index2], (obj) => {
|
|
183
|
+
return vues.openBlock(), vues.createBlock(vues.unref(index$3.Option), {
|
|
184
184
|
label: obj[psprops.value.label],
|
|
185
185
|
value: obj[psprops.value.value],
|
|
186
186
|
disabled: obj[psprops.value.disabled]
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
const data = require("./data.cjs");
|
|
5
5
|
const index = require("../../../hooks/cssname/index.cjs");
|
|
6
6
|
const ElConfigProvider = require("element-plus/es/components/config-provider/index");
|
|
7
|
-
const _sfc_main = /* @__PURE__ */
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
8
8
|
__name: "index",
|
|
9
9
|
props: data.dataProps,
|
|
10
10
|
emits: data.dataEmits,
|
|
11
11
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
12
|
-
const attrs =
|
|
13
|
-
const slots =
|
|
12
|
+
const attrs = vues.useAttrs();
|
|
13
|
+
const slots = vues.useSlots();
|
|
14
14
|
const cs = index.useCssName("config-provider");
|
|
15
15
|
const props = __props;
|
|
16
16
|
const emit = __emit;
|
|
@@ -18,14 +18,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
18
18
|
...data.dataExpose
|
|
19
19
|
});
|
|
20
20
|
return (_ctx, _cache) => {
|
|
21
|
-
return
|
|
22
|
-
class:
|
|
23
|
-
},
|
|
24
|
-
|
|
21
|
+
return vues.openBlock(), vues.createBlock(vues.unref(ElConfigProvider.ElConfigProvider), vues.mergeProps({
|
|
22
|
+
class: vues.unref(cs).z()
|
|
23
|
+
}, vues.unref(attrs)), vues.createSlots({ _: 2 }, [
|
|
24
|
+
vues.renderList(Object.keys(vues.unref(slots)), (k) => {
|
|
25
25
|
return {
|
|
26
26
|
name: k,
|
|
27
|
-
fn:
|
|
28
|
-
|
|
27
|
+
fn: vues.withCtx((scope) => [
|
|
28
|
+
vues.renderSlot(_ctx.$slots, k, vues.normalizeProps(vues.guardReactiveProps(scope)))
|
|
29
29
|
])
|
|
30
30
|
};
|
|
31
31
|
})
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
const data = require("./data.cjs");
|
|
5
5
|
const index = require("../../../hooks/cssname/index.cjs");
|
|
6
6
|
const index$1 = require("element-plus/es/components/date-picker/index");
|
|
7
|
-
const _sfc_main = /* @__PURE__ */
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
8
8
|
__name: "index",
|
|
9
9
|
props: data.dataProps,
|
|
10
10
|
emits: data.dataEmits,
|
|
11
11
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
12
|
-
const attrs =
|
|
13
|
-
const slots =
|
|
12
|
+
const attrs = vues.useAttrs();
|
|
13
|
+
const slots = vues.useSlots();
|
|
14
14
|
const cs = index.useCssName("date-picker");
|
|
15
15
|
const props = __props;
|
|
16
16
|
const emit = __emit;
|
|
@@ -18,14 +18,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
18
18
|
...data.dataExpose
|
|
19
19
|
});
|
|
20
20
|
return (_ctx, _cache) => {
|
|
21
|
-
return
|
|
22
|
-
class:
|
|
23
|
-
},
|
|
24
|
-
|
|
21
|
+
return vues.openBlock(), vues.createBlock(vues.unref(index$1.ElDatePicker), vues.mergeProps({
|
|
22
|
+
class: vues.unref(cs).z()
|
|
23
|
+
}, vues.unref(attrs)), vues.createSlots({ _: 2 }, [
|
|
24
|
+
vues.renderList(Object.keys(vues.unref(slots)), (k) => {
|
|
25
25
|
return {
|
|
26
26
|
name: k,
|
|
27
|
-
fn:
|
|
28
|
-
|
|
27
|
+
fn: vues.withCtx((scope) => [
|
|
28
|
+
vues.renderSlot(_ctx.$slots, k, vues.normalizeProps(vues.guardReactiveProps(scope)))
|
|
29
29
|
])
|
|
30
30
|
};
|
|
31
31
|
})
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
const data = require("./data.cjs");
|
|
5
5
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
6
6
|
const index = require("../../../hooks/inherit/index.cjs");
|
|
7
7
|
const index$2 = require("element-plus/es/components/date-picker/index");
|
|
8
|
-
const _sfc_main = /* @__PURE__ */
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
9
9
|
...{ inheritAttrs: false },
|
|
10
10
|
__name: "index",
|
|
11
11
|
props: data.dataProps,
|
|
12
12
|
emits: data.dataEmits,
|
|
13
13
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
14
|
-
const attrs = index.useInherit(
|
|
15
|
-
const refEl =
|
|
14
|
+
const attrs = index.useInherit(vues.useAttrs());
|
|
15
|
+
const refEl = vues.ref();
|
|
16
16
|
const cs = index$1.useCssName("dates");
|
|
17
17
|
const props = __props;
|
|
18
18
|
const emit = __emit;
|
|
@@ -22,16 +22,16 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
22
22
|
...data.dataExpose
|
|
23
23
|
});
|
|
24
24
|
return (_ctx, _cache) => {
|
|
25
|
-
return
|
|
25
|
+
return vues.openBlock(), vues.createElementBlock("div", vues.mergeProps({
|
|
26
26
|
ref_key: "refEl",
|
|
27
27
|
ref: refEl,
|
|
28
|
-
class: [
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
class: [
|
|
32
|
-
},
|
|
33
|
-
modelValue:
|
|
34
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
28
|
+
class: [vues.unref(cs).z()]
|
|
29
|
+
}, vues.unref(attrs).root), [
|
|
30
|
+
vues.createVNode(vues.unref(index$2.ElDatePicker), vues.mergeProps({
|
|
31
|
+
class: [vues.unref(cs).z("date")]
|
|
32
|
+
}, vues.unref(attrs).assem, {
|
|
33
|
+
modelValue: vues.unref(value),
|
|
34
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vues.isRef(value) ? value.value = $event : null)
|
|
35
35
|
}), null, 16, ["class", "modelValue"])
|
|
36
36
|
], 16);
|
|
37
37
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
const data = require("./data.cjs");
|
|
5
5
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
6
6
|
const util = require("../../dates2/src/util.cjs");
|
|
7
7
|
const index$2 = require("element-plus/es/components/date-picker/index");
|
|
8
8
|
const use = require("../../common/use.cjs");
|
|
9
9
|
const index = require("../../../hooks/locale/index.cjs");
|
|
10
|
-
const _sfc_main = /* @__PURE__ */
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
11
11
|
__name: "index",
|
|
12
12
|
props: data.dataProps,
|
|
13
13
|
emits: data.dataEmits,
|
|
@@ -34,7 +34,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
34
34
|
return props.defaultTime;
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
|
-
const start =
|
|
37
|
+
const start = vues.computed({
|
|
38
38
|
set(value) {
|
|
39
39
|
const v = [value, end.value];
|
|
40
40
|
emit("update:modelValue", v);
|
|
@@ -44,7 +44,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
44
44
|
return v[0] || "";
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
|
-
const end =
|
|
47
|
+
const end = vues.computed({
|
|
48
48
|
set(value) {
|
|
49
49
|
const v = [start.value, value];
|
|
50
50
|
emit("update:modelValue", v);
|
|
@@ -54,10 +54,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
54
54
|
return v[1] || "";
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
|
-
const e =
|
|
57
|
+
const e = vues.computed(() => {
|
|
58
58
|
return util.getDate(end.value).valueOf();
|
|
59
59
|
});
|
|
60
|
-
const s =
|
|
60
|
+
const s = vues.computed(() => {
|
|
61
61
|
return util.getDate(start.value).valueOf();
|
|
62
62
|
});
|
|
63
63
|
function disabledDateStart(time) {
|
|
@@ -78,27 +78,27 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
78
78
|
...data.dataExpose
|
|
79
79
|
});
|
|
80
80
|
return (_ctx, _cache) => {
|
|
81
|
-
return
|
|
82
|
-
class:
|
|
81
|
+
return vues.openBlock(), vues.createElementBlock("div", {
|
|
82
|
+
class: vues.normalizeClass(vues.unref(cs).z())
|
|
83
83
|
}, [
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
vues.renderSlot(_ctx.$slots, vues.unref(data.dataSlot).prefix),
|
|
85
|
+
vues.createVNode(vues.unref(index$2.ElDatePicker), {
|
|
86
86
|
"disabled-date": disabledDateStart,
|
|
87
|
-
type:
|
|
88
|
-
format:
|
|
89
|
-
placeholder:
|
|
87
|
+
type: vues.unref(props).type,
|
|
88
|
+
format: vues.unref(props).format,
|
|
89
|
+
placeholder: vues.unref(props).startPlaceholder,
|
|
90
90
|
"default-time": setDefaultTime(0),
|
|
91
91
|
modelValue: start.value,
|
|
92
92
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => start.value = $event)
|
|
93
93
|
}, null, 8, ["type", "format", "placeholder", "default-time", "modelValue"]),
|
|
94
|
-
|
|
95
|
-
class:
|
|
96
|
-
},
|
|
97
|
-
|
|
94
|
+
vues.createElementVNode("span", {
|
|
95
|
+
class: vues.normalizeClass(vues.unref(cs).z("range"))
|
|
96
|
+
}, vues.toDisplayString(vues.unref(props).rangeSeparator), 3),
|
|
97
|
+
vues.createVNode(vues.unref(index$2.ElDatePicker), {
|
|
98
98
|
"disabled-date": disabledDateEnd,
|
|
99
|
-
placeholder:
|
|
100
|
-
type:
|
|
101
|
-
format:
|
|
99
|
+
placeholder: vues.unref(props).endPlaceholder,
|
|
100
|
+
type: vues.unref(props).type,
|
|
101
|
+
format: vues.unref(props).format,
|
|
102
102
|
"default-time": setDefaultTime(1),
|
|
103
103
|
modelValue: end.value,
|
|
104
104
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => end.value = $event)
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
const data = require("./data.cjs");
|
|
5
5
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
6
6
|
const index = require("../../../hooks/inherit/index.cjs");
|
|
7
7
|
const util = require("./util.cjs");
|
|
8
8
|
const index$2 = require("element-plus/es/components/date-picker/index");
|
|
9
|
-
const _sfc_main = /* @__PURE__ */
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
10
10
|
...{ inheritAttrs: false },
|
|
11
11
|
__name: "index",
|
|
12
12
|
props: data.dataProps,
|
|
13
13
|
emits: data.dataEmits,
|
|
14
14
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
15
|
-
const attrs = index.useInherit(
|
|
16
|
-
const slots =
|
|
15
|
+
const attrs = index.useInherit(vues.useAttrs());
|
|
16
|
+
const slots = vues.useSlots();
|
|
17
17
|
const cs = index$1.useCssName("dates-picker");
|
|
18
18
|
const props = __props;
|
|
19
19
|
const emit = __emit;
|
|
20
|
-
const types =
|
|
20
|
+
const types = vues.computed(() => {
|
|
21
21
|
return util.getType(props.type);
|
|
22
22
|
});
|
|
23
|
-
const value =
|
|
23
|
+
const value = vues.computed({
|
|
24
24
|
get() {
|
|
25
25
|
let v = props.modelValue;
|
|
26
26
|
return v;
|
|
@@ -41,21 +41,21 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
41
41
|
getValue
|
|
42
42
|
});
|
|
43
43
|
return (_ctx, _cache) => {
|
|
44
|
-
return
|
|
45
|
-
class: [
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
return vues.openBlock(), vues.createElementBlock("div", vues.mergeProps({
|
|
45
|
+
class: [vues.unref(cs).z()]
|
|
46
|
+
}, vues.unref(attrs).root), [
|
|
47
|
+
vues.renderSlot(_ctx.$slots, vues.unref(data.dataSlot).prefix),
|
|
48
|
+
vues.createVNode(vues.unref(index$2.ElDatePicker), vues.mergeProps(vues.unref(attrs).assem, {
|
|
49
49
|
type: types.value.type,
|
|
50
50
|
format: props.format || types.value.format,
|
|
51
51
|
modelValue: value.value,
|
|
52
52
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
53
|
-
}),
|
|
54
|
-
|
|
53
|
+
}), vues.createSlots({ _: 2 }, [
|
|
54
|
+
vues.renderList(Object.keys(vues.unref(slots)), (k, index2) => {
|
|
55
55
|
return {
|
|
56
56
|
name: k,
|
|
57
|
-
fn:
|
|
58
|
-
|
|
57
|
+
fn: vues.withCtx((scope) => [
|
|
58
|
+
vues.renderSlot(_ctx.$slots, k, vues.normalizeProps(vues.guardReactiveProps(scope)))
|
|
59
59
|
])
|
|
60
60
|
};
|
|
61
61
|
})
|