@fangzhongya/fang-ui 0.1.46 → 0.1.48
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/cascaders/index.css +6 -0
- package/dist/components/cascaders/index.scss +6 -0
- package/dist/components/common/compons/components.cjs +0 -16
- package/dist/components/common/compons/components.d.ts +0 -8
- package/dist/components/common/compons/components.js +0 -16
- package/dist/components/common/compons/index.scss +0 -8
- package/dist/components/common/compons/index2.scss +0 -8
- package/dist/components/dates-divide/index.css +6 -0
- package/dist/components/dates-divide/index.scss +6 -0
- package/dist/components/dates-divide/src/index2.cjs +4 -2
- package/dist/components/dates-divide/src/index2.js +4 -2
- package/dist/components/dates-picker/index.css +2 -2
- package/dist/components/dates-picker/index.scss +4 -4
- package/dist/components/dates-picker/src/index2.cjs +2 -1
- package/dist/components/dates-picker/src/index2.js +2 -1
- package/dist/components/dates2/index.css +9 -0
- package/dist/components/dates2/index.scss +3 -0
- package/dist/components/dates2/src/index2.cjs +6 -4
- package/dist/components/dates2/src/index2.js +6 -4
- package/dist/components/double/index.css +45 -10
- package/dist/components/double/index.scss +30 -17
- package/dist/components/double/src/data.cjs +24 -5
- package/dist/components/double/src/data.d.ts +23 -1
- package/dist/components/double/src/data.js +24 -5
- package/dist/components/double/src/index2.cjs +129 -64
- package/dist/components/double/src/index2.js +126 -61
- package/dist/components/double/style/index2.scss +1 -0
- package/dist/components/forms/common/config.cjs +3 -2
- package/dist/components/forms/common/config.js +3 -2
- package/dist/components/forms/index.css +74 -162
- package/dist/components/forms/src/util.cjs +30 -33
- package/dist/components/forms/src/util.js +29 -32
- package/dist/components/forms-item/index.css +3 -0
- package/dist/components/forms-item/index.scss +5 -0
- package/dist/components/forms-items/index.css +3 -0
- package/dist/components/input-history/index.css +3 -0
- package/dist/components/input-history/index.scss +3 -1
- package/dist/components/input-history/src/data.d.ts +1 -0
- package/dist/components/input-history/src/index2.cjs +23 -19
- package/dist/components/input-history/src/index2.js +15 -11
- package/dist/components/input-select/index.css +35 -7
- package/dist/components/input-select/index.scss +10 -7
- package/dist/components/input-select/src/index2.cjs +26 -19
- package/dist/components/input-select/src/index2.js +23 -16
- package/dist/components/input-select/style/index2.scss +2 -1
- package/dist/components/list/src/index2.cjs +5 -0
- package/dist/components/list/src/index2.js +6 -1
- package/dist/components/page/index.css +74 -162
- package/dist/components/scss/function.scss +3 -1
- package/dist/components/select-scroll/src/index2.cjs +1 -1
- package/dist/components/select-scroll/src/index2.js +2 -2
- package/dist/components/selector/index.css +50 -10
- package/dist/components/selector/index.scss +5 -0
- package/dist/components/selector/src/data.cjs +7 -3
- package/dist/components/selector/src/data.d.ts +8 -4
- package/dist/components/selector/src/data.js +7 -3
- package/dist/components/selector/src/index2.cjs +127 -91
- package/dist/components/selector/src/index2.js +124 -88
- package/dist/components/tables/common/pagin.d.ts +4 -4
- package/dist/components/tables/src/index2.cjs +9 -3
- package/dist/components/tables/src/index2.js +10 -4
- package/dist/components/tablesv/src/index2.cjs +9 -3
- package/dist/components/tablesv/src/index2.js +10 -4
- package/dist/css/cascaders.css +6 -0
- package/dist/css/dates-divide.css +6 -0
- package/dist/css/dates-picker.css +2 -2
- package/dist/css/dates2.css +9 -0
- package/dist/css/double.css +45 -10
- package/dist/css/forms-item.css +3 -0
- package/dist/css/forms-items.css +3 -0
- package/dist/css/forms.css +74 -162
- package/dist/css/index.css +227 -186
- package/dist/css/input-history.css +3 -0
- package/dist/css/input-select.css +35 -7
- package/dist/css/page.css +74 -162
- package/dist/css/selector.css +50 -10
- package/dist/icons/index.json +1 -1
- package/dist/index.css +227 -186
- package/dist/type.d.ts +2 -2
- package/package.json +5 -5
- /package/dist/components/{global-config → keep-com}/index.css +0 -0
- /package/dist/css/{global-config.css → keep-com.css} +0 -0
|
@@ -8,17 +8,9 @@ const DateVue = vue.defineAsyncComponent(() => Promise.resolve().then(() => requ
|
|
|
8
8
|
const InputVue = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("../../inputs/index.cjs")));
|
|
9
9
|
const LabelsVue = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("../../labels/index.cjs")));
|
|
10
10
|
const SwitchVue = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("../../switchs/index.cjs")));
|
|
11
|
-
const ButtonsVue = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("../../buttons/index.cjs")));
|
|
12
11
|
const DateDivideVue = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("../../dates-divide/index.cjs")));
|
|
13
12
|
const DatePickerVue = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("../../dates-picker/index.cjs")));
|
|
14
|
-
const EditFloatVue = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("../../edit-float/index.cjs")));
|
|
15
|
-
const EditVue = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("../../edit/index.cjs")));
|
|
16
|
-
const HistoryVue = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("../../history/index.cjs")));
|
|
17
|
-
const ImagesVue = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("../../images/index.cjs")));
|
|
18
|
-
const InputArrayVue = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("../../input-array/index.cjs")));
|
|
19
|
-
const InputHistoryVue = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("../../input-history/index.cjs")));
|
|
20
13
|
const InputSelectVue = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("../../input-select/index.cjs")));
|
|
21
|
-
const SelectScrollVue = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("../../select-scroll/index.cjs")));
|
|
22
14
|
const SelectorVue = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("../../selector/index.cjs")));
|
|
23
15
|
const CascaderVue = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("../../cascaders/index.cjs")));
|
|
24
16
|
const InputNumVue = vue.defineAsyncComponent(() => Promise.resolve().then(() => require("../../input-num/index.cjs")));
|
|
@@ -32,17 +24,9 @@ const components = {
|
|
|
32
24
|
Input: InputVue,
|
|
33
25
|
Labels: LabelsVue,
|
|
34
26
|
Switch: SwitchVue,
|
|
35
|
-
Buttons: ButtonsVue,
|
|
36
27
|
DateDivide: DateDivideVue,
|
|
37
28
|
DatePicker: DatePickerVue,
|
|
38
|
-
EditFloat: EditFloatVue,
|
|
39
|
-
Edit: EditVue,
|
|
40
|
-
History: HistoryVue,
|
|
41
|
-
Images: ImagesVue,
|
|
42
|
-
InputArray: InputArrayVue,
|
|
43
|
-
InputHistory: InputHistoryVue,
|
|
44
29
|
InputSelect: InputSelectVue,
|
|
45
|
-
SelectScroll: SelectScrollVue,
|
|
46
30
|
Selector: SelectorVue,
|
|
47
31
|
Cascader: CascaderVue,
|
|
48
32
|
InputNum: InputNumVue,
|
|
@@ -8,17 +8,9 @@ export declare const components: {
|
|
|
8
8
|
Input: SFCWithInstall<DefineComponent<{}, {}, any>>;
|
|
9
9
|
Labels: SFCWithInstall<DefineComponent<{}, {}, any>>;
|
|
10
10
|
Switch: SFCWithInstall<DefineComponent<{}, {}, any>>;
|
|
11
|
-
Buttons: SFCWithInstall<DefineComponent<{}, {}, any>>;
|
|
12
11
|
DateDivide: SFCWithInstall<DefineComponent<{}, {}, any>>;
|
|
13
12
|
DatePicker: SFCWithInstall<DefineComponent<{}, {}, any>>;
|
|
14
|
-
EditFloat: SFCWithInstall<DefineComponent<{}, {}, any>>;
|
|
15
|
-
Edit: SFCWithInstall<DefineComponent<{}, {}, any>>;
|
|
16
|
-
History: SFCWithInstall<DefineComponent<{}, {}, any>>;
|
|
17
|
-
Images: SFCWithInstall<DefineComponent<{}, {}, any>>;
|
|
18
|
-
InputArray: SFCWithInstall<DefineComponent<{}, {}, any>>;
|
|
19
|
-
InputHistory: SFCWithInstall<DefineComponent<{}, {}, any>>;
|
|
20
13
|
InputSelect: SFCWithInstall<DefineComponent<{}, {}, any>>;
|
|
21
|
-
SelectScroll: SFCWithInstall<DefineComponent<{}, {}, any>>;
|
|
22
14
|
Selector: SFCWithInstall<DefineComponent<{}, {}, any>>;
|
|
23
15
|
Cascader: SFCWithInstall<DefineComponent<{}, {}, any>>;
|
|
24
16
|
InputNum: SFCWithInstall<DefineComponent<{}, {}, any>>;
|
|
@@ -6,17 +6,9 @@ const DateVue = defineAsyncComponent(() => import("../../dates/index.js"));
|
|
|
6
6
|
const InputVue = defineAsyncComponent(() => import("../../inputs/index.js"));
|
|
7
7
|
const LabelsVue = defineAsyncComponent(() => import("../../labels/index.js"));
|
|
8
8
|
const SwitchVue = defineAsyncComponent(() => import("../../switchs/index.js"));
|
|
9
|
-
const ButtonsVue = defineAsyncComponent(() => import("../../buttons/index.js"));
|
|
10
9
|
const DateDivideVue = defineAsyncComponent(() => import("../../dates-divide/index.js"));
|
|
11
10
|
const DatePickerVue = defineAsyncComponent(() => import("../../dates-picker/index.js"));
|
|
12
|
-
const EditFloatVue = defineAsyncComponent(() => import("../../edit-float/index.js"));
|
|
13
|
-
const EditVue = defineAsyncComponent(() => import("../../edit/index.js"));
|
|
14
|
-
const HistoryVue = defineAsyncComponent(() => import("../../history/index.js"));
|
|
15
|
-
const ImagesVue = defineAsyncComponent(() => import("../../images/index.js"));
|
|
16
|
-
const InputArrayVue = defineAsyncComponent(() => import("../../input-array/index.js"));
|
|
17
|
-
const InputHistoryVue = defineAsyncComponent(() => import("../../input-history/index.js"));
|
|
18
11
|
const InputSelectVue = defineAsyncComponent(() => import("../../input-select/index.js"));
|
|
19
|
-
const SelectScrollVue = defineAsyncComponent(() => import("../../select-scroll/index.js"));
|
|
20
12
|
const SelectorVue = defineAsyncComponent(() => import("../../selector/index.js"));
|
|
21
13
|
const CascaderVue = defineAsyncComponent(() => import("../../cascaders/index.js"));
|
|
22
14
|
const InputNumVue = defineAsyncComponent(() => import("../../input-num/index.js"));
|
|
@@ -30,17 +22,9 @@ const components = {
|
|
|
30
22
|
Input: InputVue,
|
|
31
23
|
Labels: LabelsVue,
|
|
32
24
|
Switch: SwitchVue,
|
|
33
|
-
Buttons: ButtonsVue,
|
|
34
25
|
DateDivide: DateDivideVue,
|
|
35
26
|
DatePicker: DatePickerVue,
|
|
36
|
-
EditFloat: EditFloatVue,
|
|
37
|
-
Edit: EditVue,
|
|
38
|
-
History: HistoryVue,
|
|
39
|
-
Images: ImagesVue,
|
|
40
|
-
InputArray: InputArrayVue,
|
|
41
|
-
InputHistory: InputHistoryVue,
|
|
42
27
|
InputSelect: InputSelectVue,
|
|
43
|
-
SelectScroll: SelectScrollVue,
|
|
44
28
|
Selector: SelectorVue,
|
|
45
29
|
Cascader: CascaderVue,
|
|
46
30
|
InputNum: InputNumVue,
|
|
@@ -5,17 +5,9 @@
|
|
|
5
5
|
@use '../../inputs/index.scss' as *;
|
|
6
6
|
@use '../../labels/index.scss' as *;
|
|
7
7
|
@use '../../switchs/index.scss' as *;
|
|
8
|
-
@use '../../buttons/index.scss' as *;
|
|
9
8
|
@use '../../dates-divide/index.scss' as *;
|
|
10
9
|
@use '../../dates-picker/index.scss' as *;
|
|
11
|
-
@use '../../edit-float/index.scss' as *;
|
|
12
|
-
@use '../../edit/index.scss' as *;
|
|
13
|
-
@use '../../history/index.scss' as *;
|
|
14
|
-
@use '../../images/index.scss' as *;
|
|
15
|
-
@use '../../input-array/index.scss' as *;
|
|
16
|
-
@use '../../input-history/index.scss' as *;
|
|
17
10
|
@use '../../input-select/index.scss' as *;
|
|
18
|
-
@use '../../select-scroll/index.scss' as *;
|
|
19
11
|
@use '../../selector/index.scss' as *;
|
|
20
12
|
@use '../../cascaders/index.scss' as *;
|
|
21
13
|
@use '../../input-num/index.scss' as *;
|
|
@@ -5,17 +5,9 @@
|
|
|
5
5
|
@use '../../inputs/style/index2.scss' as *;
|
|
6
6
|
@use '../../labels/style/index2.scss' as *;
|
|
7
7
|
@use '../../switchs/style/index2.scss' as *;
|
|
8
|
-
@use '../../buttons/style/index2.scss' as *;
|
|
9
8
|
@use '../../dates-divide/style/index2.scss' as *;
|
|
10
9
|
@use '../../dates-picker/style/index2.scss' as *;
|
|
11
|
-
@use '../../edit-float/style/index2.scss' as *;
|
|
12
|
-
@use '../../edit/style/index2.scss' as *;
|
|
13
|
-
@use '../../history/style/index2.scss' as *;
|
|
14
|
-
@use '../../images/style/index2.scss' as *;
|
|
15
|
-
@use '../../input-array/style/index2.scss' as *;
|
|
16
|
-
@use '../../input-history/style/index2.scss' as *;
|
|
17
10
|
@use '../../input-select/style/index2.scss' as *;
|
|
18
|
-
@use '../../select-scroll/style/index2.scss' as *;
|
|
19
11
|
@use '../../selector/style/index2.scss' as *;
|
|
20
12
|
@use '../../cascaders/style/index2.scss' as *;
|
|
21
13
|
@use '../../input-num/style/index2.scss' as *;
|
|
@@ -4,7 +4,13 @@ $dates-divide: 'dates-divide';
|
|
|
4
4
|
@include b($dates-divide) {
|
|
5
5
|
display: inline-flex;
|
|
6
6
|
align-items: center;
|
|
7
|
+
width: 100%;
|
|
7
8
|
&-range {
|
|
8
9
|
padding: 0 10px;
|
|
9
10
|
}
|
|
11
|
+
.#{z($dates-divide, 'date')} {
|
|
12
|
+
height: 100%;
|
|
13
|
+
width: 100%;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
}
|
|
10
16
|
}
|
|
@@ -92,6 +92,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
92
92
|
}, [
|
|
93
93
|
vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).prefix),
|
|
94
94
|
vue.createVNode(vue.unref(index$3.DatePicker), {
|
|
95
|
+
class: vue.normalizeClass(vue.unref(cs).z("date")),
|
|
95
96
|
"disabled-date": disabledDateStart,
|
|
96
97
|
type: vue.unref(props).type,
|
|
97
98
|
format: vue.unref(props).format,
|
|
@@ -99,11 +100,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
99
100
|
"default-time": setDefaultTime(0),
|
|
100
101
|
modelValue: start.value,
|
|
101
102
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => start.value = $event)
|
|
102
|
-
}, null, 8, ["type", "format", "placeholder", "default-time", "modelValue"]),
|
|
103
|
+
}, null, 8, ["class", "type", "format", "placeholder", "default-time", "modelValue"]),
|
|
103
104
|
vue.createElementVNode("span", {
|
|
104
105
|
class: vue.normalizeClass(vue.unref(cs).z("range"))
|
|
105
106
|
}, vue.toDisplayString(vue.unref(props).rangeSeparator), 3),
|
|
106
107
|
vue.createVNode(vue.unref(index$3.DatePicker), {
|
|
108
|
+
class: vue.normalizeClass(vue.unref(cs).z("date")),
|
|
107
109
|
"disabled-date": disabledDateEnd,
|
|
108
110
|
placeholder: vue.unref(props).endPlaceholder,
|
|
109
111
|
type: vue.unref(props).type,
|
|
@@ -111,7 +113,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
111
113
|
"default-time": setDefaultTime(1),
|
|
112
114
|
modelValue: end.value,
|
|
113
115
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => end.value = $event)
|
|
114
|
-
}, null, 8, ["placeholder", "type", "format", "default-time", "modelValue"])
|
|
116
|
+
}, null, 8, ["class", "placeholder", "type", "format", "default-time", "modelValue"])
|
|
115
117
|
], 2);
|
|
116
118
|
};
|
|
117
119
|
}
|
|
@@ -90,6 +90,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
90
90
|
}, [
|
|
91
91
|
renderSlot(_ctx.$slots, unref(dataSlot).prefix),
|
|
92
92
|
createVNode(unref(DatePicker), {
|
|
93
|
+
class: normalizeClass(unref(cs).z("date")),
|
|
93
94
|
"disabled-date": disabledDateStart,
|
|
94
95
|
type: unref(props).type,
|
|
95
96
|
format: unref(props).format,
|
|
@@ -97,11 +98,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
97
98
|
"default-time": setDefaultTime(0),
|
|
98
99
|
modelValue: start.value,
|
|
99
100
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => start.value = $event)
|
|
100
|
-
}, null, 8, ["type", "format", "placeholder", "default-time", "modelValue"]),
|
|
101
|
+
}, null, 8, ["class", "type", "format", "placeholder", "default-time", "modelValue"]),
|
|
101
102
|
createElementVNode("span", {
|
|
102
103
|
class: normalizeClass(unref(cs).z("range"))
|
|
103
104
|
}, toDisplayString(unref(props).rangeSeparator), 3),
|
|
104
105
|
createVNode(unref(DatePicker), {
|
|
106
|
+
class: normalizeClass(unref(cs).z("date")),
|
|
105
107
|
"disabled-date": disabledDateEnd,
|
|
106
108
|
placeholder: unref(props).endPlaceholder,
|
|
107
109
|
type: unref(props).type,
|
|
@@ -109,7 +111,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
109
111
|
"default-time": setDefaultTime(1),
|
|
110
112
|
modelValue: end.value,
|
|
111
113
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => end.value = $event)
|
|
112
|
-
}, null, 8, ["placeholder", "type", "format", "default-time", "modelValue"])
|
|
114
|
+
}, null, 8, ["class", "placeholder", "type", "format", "default-time", "modelValue"])
|
|
113
115
|
], 2);
|
|
114
116
|
};
|
|
115
117
|
}
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
line-height: var(--lable-array-height);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
.
|
|
25
|
+
.dates-picker .dates-picker-date {
|
|
26
26
|
height: 100%;
|
|
27
27
|
width: 100%;
|
|
28
28
|
box-sizing: border-box;
|
|
29
29
|
}
|
|
30
|
-
.
|
|
30
|
+
.dates-picker .dates-picker-separate {
|
|
31
31
|
display: flex;
|
|
32
32
|
align-items: center;
|
|
33
33
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
@use '../scss/common.scss' as *;
|
|
2
2
|
@use '../date-picker/index.scss' as *;
|
|
3
|
-
$
|
|
4
|
-
@include b($
|
|
5
|
-
.#{z($
|
|
3
|
+
$dates-picker: 'dates-picker';
|
|
4
|
+
@include b($dates-picker) {
|
|
5
|
+
.#{z($dates-picker, 'date')} {
|
|
6
6
|
height: 100%;
|
|
7
7
|
width: 100%;
|
|
8
8
|
box-sizing: border-box;
|
|
9
9
|
}
|
|
10
|
-
.#{z($
|
|
10
|
+
.#{z($dates-picker, 'separate')} {
|
|
11
11
|
display: flex;
|
|
12
12
|
align-items: center;
|
|
13
13
|
}
|
|
@@ -58,6 +58,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
58
58
|
}, vue.unref(attrs).root), [
|
|
59
59
|
vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).prefix),
|
|
60
60
|
vue.createVNode(vue.unref(index$3.DatePicker), vue.mergeProps(vue.unref(attrs).assem, {
|
|
61
|
+
class: [vue.unref(cs).z("date")],
|
|
61
62
|
type: types.value.type,
|
|
62
63
|
format: vue.unref(props).format || types.value.format,
|
|
63
64
|
"disabled-date": disabledDate,
|
|
@@ -72,7 +73,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
72
73
|
])
|
|
73
74
|
};
|
|
74
75
|
})
|
|
75
|
-
]), 1040, ["type", "format", "modelValue"])
|
|
76
|
+
]), 1040, ["class", "type", "format", "modelValue"])
|
|
76
77
|
], 16);
|
|
77
78
|
};
|
|
78
79
|
}
|
|
@@ -56,6 +56,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
56
56
|
}, unref(attrs).root), [
|
|
57
57
|
renderSlot(_ctx.$slots, unref(dataSlot).prefix),
|
|
58
58
|
createVNode(unref(DatePicker), mergeProps(unref(attrs).assem, {
|
|
59
|
+
class: [unref(cs).z("date")],
|
|
59
60
|
type: types.value.type,
|
|
60
61
|
format: unref(props).format || types.value.format,
|
|
61
62
|
"disabled-date": disabledDate,
|
|
@@ -70,7 +71,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
70
71
|
])
|
|
71
72
|
};
|
|
72
73
|
})
|
|
73
|
-
]), 1040, ["type", "format", "modelValue"])
|
|
74
|
+
]), 1040, ["class", "type", "format", "modelValue"])
|
|
74
75
|
], 16);
|
|
75
76
|
};
|
|
76
77
|
}
|
|
@@ -25,10 +25,16 @@
|
|
|
25
25
|
.dates-divide {
|
|
26
26
|
display: inline-flex;
|
|
27
27
|
align-items: center;
|
|
28
|
+
width: 100%;
|
|
28
29
|
}
|
|
29
30
|
.dates-divide-range {
|
|
30
31
|
padding: 0 10px;
|
|
31
32
|
}
|
|
33
|
+
.dates-divide .dates-divide-date {
|
|
34
|
+
height: 100%;
|
|
35
|
+
width: 100%;
|
|
36
|
+
box-sizing: border-box;
|
|
37
|
+
}
|
|
32
38
|
|
|
33
39
|
.selects-select {
|
|
34
40
|
height: 100%;
|
|
@@ -47,4 +53,7 @@
|
|
|
47
53
|
.dates2 .dates2-separate {
|
|
48
54
|
display: flex;
|
|
49
55
|
align-items: center;
|
|
56
|
+
}
|
|
57
|
+
.dates2 .dates2-separate-select {
|
|
58
|
+
width: 120px;
|
|
50
59
|
}
|
|
@@ -67,22 +67,23 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
67
67
|
return (_ctx, _cache) => {
|
|
68
68
|
var _a, _b, _c;
|
|
69
69
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
70
|
-
class:
|
|
70
|
+
class: vue.unref(cs).z()
|
|
71
71
|
}, vue.unref(attrs).root), [
|
|
72
72
|
vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).prefix),
|
|
73
73
|
vue.unref(props).separate && vue.unref(multiple) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
74
74
|
key: 0,
|
|
75
|
-
class: vue.normalizeClass(
|
|
75
|
+
class: vue.normalizeClass(vue.unref(cs).z("separate"))
|
|
76
76
|
}, [
|
|
77
77
|
vue.unref(props).shortcuts && vue.unref(props).shortcuts.length > 0 ? (vue.openBlock(), vue.createBlock(vue.unref(index$4.Selects), {
|
|
78
78
|
key: 0,
|
|
79
|
+
class: vue.normalizeClass(vue.unref(cs).z("separate-select")),
|
|
79
80
|
options: vue.unref(props).shortcuts,
|
|
80
81
|
optobj: "",
|
|
81
82
|
placeholder: vue.unref(getLocale)("quick"),
|
|
82
83
|
onChange,
|
|
83
84
|
label: "text",
|
|
84
85
|
prop: "text"
|
|
85
|
-
}, null, 8, ["options", "placeholder"])) : vue.createCommentVNode("", true),
|
|
86
|
+
}, null, 8, ["class", "options", "placeholder"])) : vue.createCommentVNode("", true),
|
|
86
87
|
vue.createVNode(vue.unref(index$5.DatesDivide), vue.mergeProps(vue.unref(attrs).assem, {
|
|
87
88
|
type: ((_a = types.value) == null ? void 0 : _a.type) || vue.unref(props).type,
|
|
88
89
|
format: vue.unref(props).format || ((_b = types.value) == null ? void 0 : _b.format),
|
|
@@ -92,6 +93,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
92
93
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(value) ? value.value = $event : null)
|
|
93
94
|
}), null, 16, ["type", "format", "modelValue"])
|
|
94
95
|
], 2)) : (vue.openBlock(), vue.createBlock(vue.unref(index$6.DatePicker), vue.mergeProps({ key: 1 }, vue.unref(attrs).assem, {
|
|
96
|
+
class: vue.unref(cs).z("date"),
|
|
95
97
|
type: type.value,
|
|
96
98
|
format: vue.unref(props).format || ((_c = types.value) == null ? void 0 : _c.format),
|
|
97
99
|
"default-time": vue.unref(multiple) ? defaultTime : void 0,
|
|
@@ -108,7 +110,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
108
110
|
])
|
|
109
111
|
};
|
|
110
112
|
})
|
|
111
|
-
]), 1040, ["type", "format", "default-time", "shortcuts", "modelValue"]))
|
|
113
|
+
]), 1040, ["class", "type", "format", "default-time", "shortcuts", "modelValue"]))
|
|
112
114
|
], 16);
|
|
113
115
|
};
|
|
114
116
|
}
|
|
@@ -65,22 +65,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
65
65
|
return (_ctx, _cache) => {
|
|
66
66
|
var _a, _b, _c;
|
|
67
67
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
68
|
-
class:
|
|
68
|
+
class: unref(cs).z()
|
|
69
69
|
}, unref(attrs).root), [
|
|
70
70
|
renderSlot(_ctx.$slots, unref(dataSlot).prefix),
|
|
71
71
|
unref(props).separate && unref(multiple) ? (openBlock(), createElementBlock("div", {
|
|
72
72
|
key: 0,
|
|
73
|
-
class: normalizeClass(
|
|
73
|
+
class: normalizeClass(unref(cs).z("separate"))
|
|
74
74
|
}, [
|
|
75
75
|
unref(props).shortcuts && unref(props).shortcuts.length > 0 ? (openBlock(), createBlock(unref(Selects), {
|
|
76
76
|
key: 0,
|
|
77
|
+
class: normalizeClass(unref(cs).z("separate-select")),
|
|
77
78
|
options: unref(props).shortcuts,
|
|
78
79
|
optobj: "",
|
|
79
80
|
placeholder: unref(getLocale)("quick"),
|
|
80
81
|
onChange,
|
|
81
82
|
label: "text",
|
|
82
83
|
prop: "text"
|
|
83
|
-
}, null, 8, ["options", "placeholder"])) : createCommentVNode("", true),
|
|
84
|
+
}, null, 8, ["class", "options", "placeholder"])) : createCommentVNode("", true),
|
|
84
85
|
createVNode(unref(DatesDivide), mergeProps(unref(attrs).assem, {
|
|
85
86
|
type: ((_a = types.value) == null ? void 0 : _a.type) || unref(props).type,
|
|
86
87
|
format: unref(props).format || ((_b = types.value) == null ? void 0 : _b.format),
|
|
@@ -90,6 +91,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
90
91
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(value) ? value.value = $event : null)
|
|
91
92
|
}), null, 16, ["type", "format", "modelValue"])
|
|
92
93
|
], 2)) : (openBlock(), createBlock(unref(DatePicker), mergeProps({ key: 1 }, unref(attrs).assem, {
|
|
94
|
+
class: unref(cs).z("date"),
|
|
93
95
|
type: type.value,
|
|
94
96
|
format: unref(props).format || ((_c = types.value) == null ? void 0 : _c.format),
|
|
95
97
|
"default-time": unref(multiple) ? defaultTime : void 0,
|
|
@@ -106,7 +108,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
106
108
|
])
|
|
107
109
|
};
|
|
108
110
|
})
|
|
109
|
-
]), 1040, ["type", "format", "default-time", "shortcuts", "modelValue"]))
|
|
111
|
+
]), 1040, ["class", "type", "format", "default-time", "shortcuts", "modelValue"]))
|
|
110
112
|
], 16);
|
|
111
113
|
};
|
|
112
114
|
}
|
|
@@ -22,26 +22,63 @@
|
|
|
22
22
|
line-height: var(--lable-array-height);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
.icon {
|
|
26
|
+
--color: inherit;
|
|
27
|
+
height: 1em;
|
|
28
|
+
width: 1em;
|
|
29
|
+
line-height: 1em;
|
|
30
|
+
display: inline-flex;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
align-items: center;
|
|
33
|
+
position: relative;
|
|
34
|
+
fill: currentColor;
|
|
35
|
+
color: var(--color);
|
|
36
|
+
font-size: inherit;
|
|
37
|
+
}
|
|
38
|
+
.icon-cont {
|
|
39
|
+
border: 0;
|
|
40
|
+
display: inline-flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
object-fit: contain;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
font-size: inherit !important;
|
|
45
|
+
width: inherit !important;
|
|
46
|
+
height: inherit !important;
|
|
47
|
+
}
|
|
48
|
+
|
|
25
49
|
.double {
|
|
26
50
|
width: 100%;
|
|
27
51
|
display: inline-flex;
|
|
28
52
|
align-items: center;
|
|
29
|
-
box-sizing:
|
|
30
|
-
padding:
|
|
53
|
+
box-sizing: border-box;
|
|
54
|
+
padding: 1px 1px;
|
|
31
55
|
position: relative;
|
|
32
56
|
box-shadow: 0 0 0 1px var(--el-input-border-color, var(--el-border-color)) inset;
|
|
33
57
|
border-radius: var(--el-input-border-radius, var(--el-border-radius-base));
|
|
34
58
|
}
|
|
35
59
|
.double.is-focus {
|
|
36
|
-
box-shadow: 0 0 0 1px var(--color-primary) inset;
|
|
60
|
+
box-shadow: 0 0 0 1px var(--el-color-primary) inset;
|
|
61
|
+
}
|
|
62
|
+
.double.is-error {
|
|
63
|
+
box-shadow: 0 0 0 1px var(--el-color-danger) inset;
|
|
64
|
+
}
|
|
65
|
+
.double.is-disabled {
|
|
66
|
+
cursor: not-allowed;
|
|
67
|
+
background-color: var(--el-disabled-bg-color);
|
|
68
|
+
}
|
|
69
|
+
.double.is-disabled .double-range {
|
|
70
|
+
color: var(--el-disabled-text-color);
|
|
37
71
|
}
|
|
38
72
|
.double-error {
|
|
39
73
|
position: absolute;
|
|
40
|
-
|
|
41
|
-
color:
|
|
42
|
-
|
|
74
|
+
padding-top: 2px;
|
|
75
|
+
color: var(--el-color-danger);
|
|
76
|
+
bottom: -15px;
|
|
77
|
+
font-size: 12px;
|
|
78
|
+
line-height: 1;
|
|
43
79
|
border-radius: 4px;
|
|
44
80
|
left: 12px;
|
|
81
|
+
white-space: nowrap;
|
|
45
82
|
}
|
|
46
83
|
.double-error.type-1 {
|
|
47
84
|
left: calc(50% + 24px);
|
|
@@ -57,6 +94,8 @@
|
|
|
57
94
|
.double-value {
|
|
58
95
|
flex: 1;
|
|
59
96
|
height: 100%;
|
|
97
|
+
display: flex;
|
|
98
|
+
align-items: center;
|
|
60
99
|
}
|
|
61
100
|
.double-range {
|
|
62
101
|
padding: 0 5px;
|
|
@@ -68,10 +107,6 @@
|
|
|
68
107
|
justify-content: center;
|
|
69
108
|
padding: 5px;
|
|
70
109
|
}
|
|
71
|
-
.double-clear svg {
|
|
72
|
-
width: 1rem;
|
|
73
|
-
height: 1rem;
|
|
74
|
-
}
|
|
75
110
|
.double .el-input .el-input__wrapper {
|
|
76
111
|
border: none;
|
|
77
112
|
box-shadow: none;
|
|
@@ -1,31 +1,46 @@
|
|
|
1
1
|
@use '../scss/common.scss' as *;
|
|
2
|
-
|
|
2
|
+
@use '../icon/index.scss' as *;
|
|
3
3
|
$double: 'double';
|
|
4
4
|
@include b($double) {
|
|
5
5
|
width: 100%;
|
|
6
6
|
display: inline-flex;
|
|
7
7
|
align-items: center;
|
|
8
|
-
box-sizing:
|
|
9
|
-
padding:
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
padding: 1px 1px;
|
|
10
10
|
position: relative;
|
|
11
|
-
box-shadow: 0 0 0 1px
|
|
12
|
-
|
|
11
|
+
box-shadow: 0 0 0 1px var(ve('input-border-color'), var(ve('border-color')))
|
|
12
|
+
inset;
|
|
13
13
|
border-radius: var(
|
|
14
|
-
|
|
15
|
-
var(
|
|
14
|
+
ve('input-border-radius'),
|
|
15
|
+
var(ve('border-radius-base'))
|
|
16
16
|
);
|
|
17
17
|
|
|
18
18
|
&.#{is('focus')} {
|
|
19
|
-
box-shadow: 0 0 0 1px var(
|
|
19
|
+
box-shadow: 0 0 0 1px var(ve('color-primary')) inset;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&.#{is('error')} {
|
|
23
|
+
box-shadow: 0 0 0 1px var(ve('color-danger')) inset;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.#{is('disabled')} {
|
|
27
|
+
cursor: not-allowed;
|
|
28
|
+
background-color: var(ve('disabled-bg-color'));
|
|
29
|
+
.#{z($double, 'range')} {
|
|
30
|
+
color: var(ve('disabled-text-color'));
|
|
31
|
+
}
|
|
20
32
|
}
|
|
21
33
|
|
|
22
34
|
&-error {
|
|
23
35
|
position: absolute;
|
|
24
|
-
|
|
25
|
-
color:
|
|
26
|
-
|
|
36
|
+
padding-top: 2px;
|
|
37
|
+
color: var(ve('color-danger'));
|
|
38
|
+
bottom: -15px;
|
|
39
|
+
font-size: 12px;
|
|
40
|
+
line-height: 1;
|
|
27
41
|
border-radius: 4px;
|
|
28
42
|
left: 12px;
|
|
43
|
+
white-space: nowrap;
|
|
29
44
|
&.type-1 {
|
|
30
45
|
left: calc(50% + 24px);
|
|
31
46
|
&.#{is('clear')} {
|
|
@@ -42,6 +57,8 @@ $double: 'double';
|
|
|
42
57
|
&-value {
|
|
43
58
|
flex: 1;
|
|
44
59
|
height: 100%;
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: center;
|
|
45
62
|
}
|
|
46
63
|
|
|
47
64
|
&-range {
|
|
@@ -54,14 +71,10 @@ $double: 'double';
|
|
|
54
71
|
display: inline-flex;
|
|
55
72
|
justify-content: center;
|
|
56
73
|
padding: 5px;
|
|
57
|
-
svg {
|
|
58
|
-
width: 1rem;
|
|
59
|
-
height: 1rem;
|
|
60
|
-
}
|
|
61
74
|
}
|
|
62
75
|
|
|
63
|
-
.#{
|
|
64
|
-
.#{
|
|
76
|
+
.#{el('input')} {
|
|
77
|
+
.#{el('input', '', 'wrapper')} {
|
|
65
78
|
border: none;
|
|
66
79
|
box-shadow: none;
|
|
67
80
|
input {
|