@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,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$5 = require("../../../directives/expose/index.cjs");
|
|
5
5
|
const getCss = require("@fangzhongya/utils/css/getCss");
|
|
6
6
|
const data = require("./data.cjs");
|
|
@@ -10,24 +10,24 @@ require("../../../hooks/index.cjs");
|
|
|
10
10
|
const index = require("../../../hooks/inherit/index.cjs");
|
|
11
11
|
const index$1 = require("../../../hooks/locale/index.cjs");
|
|
12
12
|
const index$2 = require("../../../hooks/cssname/index.cjs");
|
|
13
|
-
const _sfc_main = /* @__PURE__ */
|
|
13
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
14
14
|
...{ inheritAttrs: false },
|
|
15
15
|
__name: "index",
|
|
16
16
|
props: data.dataProps,
|
|
17
17
|
emits: data.dataEmits,
|
|
18
18
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
19
19
|
const attrs = index.useInherit();
|
|
20
|
-
const slots =
|
|
20
|
+
const slots = vues.useSlots();
|
|
21
21
|
const { getLocale } = index$1.useLocale();
|
|
22
22
|
const cs = index$2.useCssName("select-popover");
|
|
23
23
|
const props = __props;
|
|
24
24
|
const emit = __emit;
|
|
25
|
-
const visible =
|
|
26
|
-
const width =
|
|
27
|
-
const refInput =
|
|
28
|
-
const isfocus =
|
|
29
|
-
const isFiletr =
|
|
30
|
-
const value =
|
|
25
|
+
const visible = vues.ref(false);
|
|
26
|
+
const width = vues.ref(200);
|
|
27
|
+
const refInput = vues.ref();
|
|
28
|
+
const isfocus = vues.ref(false);
|
|
29
|
+
const isFiletr = vues.ref(false);
|
|
30
|
+
const value = vues.computed({
|
|
31
31
|
get() {
|
|
32
32
|
let v = props.modelValue;
|
|
33
33
|
return v;
|
|
@@ -36,7 +36,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
36
36
|
emit("update:modelValue", value2);
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
|
-
const isclear =
|
|
39
|
+
const isclear = vues.computed(() => {
|
|
40
40
|
if (props.readonly) {
|
|
41
41
|
return false;
|
|
42
42
|
}
|
|
@@ -80,72 +80,72 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
80
80
|
visible.value = !visible.value;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
|
|
83
|
+
vues.onMounted(() => {
|
|
84
84
|
setWidth();
|
|
85
85
|
});
|
|
86
86
|
__expose({
|
|
87
87
|
...data.dataExpose
|
|
88
88
|
});
|
|
89
89
|
return (_ctx, _cache) => {
|
|
90
|
-
return
|
|
90
|
+
return vues.openBlock(), vues.createBlock(vues.unref(index$3.Popover), {
|
|
91
91
|
trigger: "click",
|
|
92
|
-
"popper-class":
|
|
92
|
+
"popper-class": vues.unref(cs).z("popper"),
|
|
93
93
|
visible: visible.value,
|
|
94
94
|
disabled: props.disabled,
|
|
95
95
|
width: width.value
|
|
96
96
|
}, {
|
|
97
|
-
reference:
|
|
98
|
-
|
|
99
|
-
class: [
|
|
100
|
-
},
|
|
101
|
-
|
|
97
|
+
reference: vues.withCtx(() => [
|
|
98
|
+
vues.createElementVNode("div", vues.mergeProps({
|
|
99
|
+
class: [vues.unref(cs).z(), vues.unref(cs).is("disabled", props.disabled)]
|
|
100
|
+
}, vues.unref(attrs).root, { onClick }), [
|
|
101
|
+
vues.withDirectives((vues.openBlock(), vues.createBlock(vues.unref(index$4.Inputs), vues.mergeProps({
|
|
102
102
|
ref_key: "refInput",
|
|
103
103
|
ref: refInput,
|
|
104
104
|
modelValue: value.value,
|
|
105
105
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
106
|
-
},
|
|
106
|
+
}, vues.unref(attrs).assem, {
|
|
107
107
|
disabled: props.disabled,
|
|
108
108
|
readonly: props.readonly,
|
|
109
109
|
onInput,
|
|
110
110
|
onFocus,
|
|
111
111
|
onBlur,
|
|
112
112
|
clearable: false
|
|
113
|
-
}),
|
|
114
|
-
suffix:
|
|
115
|
-
isclear.value ? (
|
|
113
|
+
}), vues.createSlots({
|
|
114
|
+
suffix: vues.withCtx(() => [
|
|
115
|
+
isclear.value ? (vues.openBlock(), vues.createElementBlock("span", {
|
|
116
116
|
key: 0,
|
|
117
|
-
class:
|
|
118
|
-
onClick:
|
|
117
|
+
class: vues.normalizeClass([vues.unref(cs).z("select-icon"), "clear"]),
|
|
118
|
+
onClick: vues.withModifiers(onClear, ["stop"])
|
|
119
119
|
}, [..._cache[1] || (_cache[1] = [
|
|
120
|
-
|
|
120
|
+
vues.createElementVNode("svg", {
|
|
121
121
|
viewBox: "0 0 1024 1024",
|
|
122
122
|
xmlns: "http://www.w3.org/2000/svg",
|
|
123
123
|
"data-v-ea893728": ""
|
|
124
124
|
}, [
|
|
125
|
-
|
|
125
|
+
vues.createElementVNode("path", {
|
|
126
126
|
fill: "currentColor",
|
|
127
127
|
d: "m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"
|
|
128
128
|
}),
|
|
129
|
-
|
|
129
|
+
vues.createElementVNode("path", {
|
|
130
130
|
fill: "currentColor",
|
|
131
131
|
d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"
|
|
132
132
|
})
|
|
133
133
|
], -1)
|
|
134
|
-
])], 2)) :
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
class:
|
|
138
|
-
|
|
139
|
-
|
|
134
|
+
])], 2)) : vues.createCommentVNode("", true),
|
|
135
|
+
vues.renderSlot(_ctx.$slots, "suffix"),
|
|
136
|
+
vues.createElementVNode("span", {
|
|
137
|
+
class: vues.normalizeClass([
|
|
138
|
+
vues.unref(cs).z("select-icon"),
|
|
139
|
+
vues.unref(cs).is("reverse", visible.value)
|
|
140
140
|
])
|
|
141
141
|
}, [
|
|
142
|
-
|
|
143
|
-
_cache[2] || (_cache[2] =
|
|
142
|
+
vues.renderSlot(_ctx.$slots, vues.unref(data.dataSlot).iconSelect, {}, () => [
|
|
143
|
+
_cache[2] || (_cache[2] = vues.createElementVNode("svg", {
|
|
144
144
|
viewBox: "0 0 1024 1024",
|
|
145
145
|
xmlns: "http://www.w3.org/2000/svg",
|
|
146
146
|
"data-v-ea893728": ""
|
|
147
147
|
}, [
|
|
148
|
-
|
|
148
|
+
vues.createElementVNode("path", {
|
|
149
149
|
fill: "currentColor",
|
|
150
150
|
d: "M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"
|
|
151
151
|
})
|
|
@@ -155,21 +155,21 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
155
155
|
]),
|
|
156
156
|
_: 2
|
|
157
157
|
}, [
|
|
158
|
-
|
|
158
|
+
vues.renderList(Object.keys(vues.unref(slots)), (k, index2) => {
|
|
159
159
|
return {
|
|
160
160
|
name: k,
|
|
161
|
-
fn:
|
|
162
|
-
|
|
161
|
+
fn: vues.withCtx(() => [
|
|
162
|
+
vues.renderSlot(_ctx.$slots, k)
|
|
163
163
|
])
|
|
164
164
|
};
|
|
165
165
|
})
|
|
166
166
|
]), 1040, ["modelValue", "disabled", "readonly"])), [
|
|
167
|
-
[
|
|
167
|
+
[vues.unref(index$5.default), {}]
|
|
168
168
|
])
|
|
169
169
|
], 16)
|
|
170
170
|
]),
|
|
171
|
-
default:
|
|
172
|
-
|
|
171
|
+
default: vues.withCtx(() => [
|
|
172
|
+
vues.renderSlot(_ctx.$slots, vues.unref(data.dataSlot).default)
|
|
173
173
|
]),
|
|
174
174
|
_: 3
|
|
175
175
|
}, 8, ["popper-class", "visible", "disabled", "width"]);
|
|
@@ -1,11 +1,11 @@
|
|
|
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 use = require("../../common/use.cjs");
|
|
7
7
|
const _hoisted_1 = ["onClick"];
|
|
8
|
-
const _sfc_main = /* @__PURE__ */
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: data.dataProps,
|
|
11
11
|
emits: data.dataEmits,
|
|
@@ -13,21 +13,21 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
13
13
|
const cs = index.useCssName("select-scroll");
|
|
14
14
|
const props = __props;
|
|
15
15
|
const emit = __emit;
|
|
16
|
-
const h =
|
|
16
|
+
const h = vues.computed(() => {
|
|
17
17
|
let h2 = props.height || "";
|
|
18
18
|
return Number(h2.replace("px", ""));
|
|
19
19
|
});
|
|
20
20
|
let timeout;
|
|
21
|
-
const refScroll =
|
|
22
|
-
const index$1 =
|
|
23
|
-
|
|
21
|
+
const refScroll = vues.ref();
|
|
22
|
+
const index$1 = vues.ref(0);
|
|
23
|
+
vues.watch(
|
|
24
24
|
() => index$1.value,
|
|
25
25
|
() => {
|
|
26
26
|
setScroll(index$1.value);
|
|
27
27
|
emit("update:modelValue", index$1.value);
|
|
28
28
|
}
|
|
29
29
|
);
|
|
30
|
-
|
|
30
|
+
vues.watch(
|
|
31
31
|
() => props.modelValue,
|
|
32
32
|
() => {
|
|
33
33
|
setPropsValue();
|
|
@@ -105,11 +105,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
-
|
|
108
|
+
vues.onMounted(() => {
|
|
109
109
|
handleScroll();
|
|
110
110
|
setPropsValue();
|
|
111
111
|
});
|
|
112
|
-
|
|
112
|
+
vues.onBeforeUnmount(() => {
|
|
113
113
|
if (refScroll.value) {
|
|
114
114
|
refScroll.value.removeEventListener("scroll", () => {
|
|
115
115
|
});
|
|
@@ -119,46 +119,46 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
119
119
|
...data.dataExpose
|
|
120
120
|
});
|
|
121
121
|
return (_ctx, _cache) => {
|
|
122
|
-
return
|
|
123
|
-
class:
|
|
122
|
+
return vues.openBlock(), vues.createElementBlock("div", {
|
|
123
|
+
class: vues.normalizeClass(vues.unref(cs).z())
|
|
124
124
|
}, [
|
|
125
|
-
|
|
126
|
-
class:
|
|
127
|
-
style:
|
|
125
|
+
vues.createElementVNode("div", {
|
|
126
|
+
class: vues.normalizeClass(vues.unref(cs).z("div")),
|
|
127
|
+
style: vues.normalizeStyle({
|
|
128
128
|
height: h.value * (props.limit * 2 + 1) + "px"
|
|
129
129
|
})
|
|
130
130
|
}, [
|
|
131
|
-
|
|
132
|
-
class:
|
|
131
|
+
vues.createElementVNode("div", {
|
|
132
|
+
class: vues.normalizeClass(vues.unref(cs).z("box"))
|
|
133
133
|
}, [
|
|
134
|
-
|
|
135
|
-
class:
|
|
136
|
-
style:
|
|
134
|
+
vues.createElementVNode("div", {
|
|
135
|
+
class: vues.normalizeClass(vues.unref(cs).z("box-after")),
|
|
136
|
+
style: vues.normalizeStyle({
|
|
137
137
|
"margin-top": h.value / 2 * -1 + "px"
|
|
138
138
|
})
|
|
139
139
|
}, null, 6),
|
|
140
|
-
|
|
141
|
-
class:
|
|
142
|
-
style:
|
|
140
|
+
vues.createElementVNode("div", {
|
|
141
|
+
class: vues.normalizeClass(vues.unref(cs).z("box-before")),
|
|
142
|
+
style: vues.normalizeStyle({
|
|
143
143
|
"margin-top": h.value / 2 + "px"
|
|
144
144
|
})
|
|
145
145
|
}, null, 6),
|
|
146
|
-
|
|
146
|
+
vues.createElementVNode("div", {
|
|
147
147
|
ref_key: "refScroll",
|
|
148
148
|
ref: refScroll,
|
|
149
|
-
class:
|
|
149
|
+
class: vues.normalizeClass(vues.unref(cs).z("list"))
|
|
150
150
|
}, [
|
|
151
|
-
(
|
|
152
|
-
return
|
|
153
|
-
class:
|
|
154
|
-
onClick:
|
|
155
|
-
style:
|
|
151
|
+
(vues.openBlock(true), vues.createElementBlock(vues.Fragment, null, vues.renderList(props.options, (item, ind) => {
|
|
152
|
+
return vues.openBlock(), vues.createElementBlock("div", {
|
|
153
|
+
class: vues.normalizeClass([vues.unref(cs).z("list-li"), setClass(ind, item)]),
|
|
154
|
+
onClick: vues.withModifiers(($event) => onClick(ind, item), ["stop"]),
|
|
155
|
+
style: vues.normalizeStyle({
|
|
156
156
|
height: h.value + "px",
|
|
157
157
|
"line-height": h.value + "px",
|
|
158
158
|
"margin-top": ind == 0 ? h.value * props.limit + "px" : "",
|
|
159
159
|
"margin-bottom": ind == props.options.length - 1 ? h.value * props.limit + "px" : ""
|
|
160
160
|
})
|
|
161
|
-
},
|
|
161
|
+
}, vues.toDisplayString(vues.unref(use.useVueValue)(item, props.label)), 15, _hoisted_1);
|
|
162
162
|
}), 256))
|
|
163
163
|
], 2)
|
|
164
164
|
], 2)
|
|
@@ -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("../../popover/index.cjs");
|
|
5
5
|
const index$4 = require("../../button/index.cjs");
|
|
6
6
|
const index$5 = require("../../array/index.cjs");
|
|
@@ -10,7 +10,7 @@ const use = require("../../common/use.cjs");
|
|
|
10
10
|
const data = require("./data.cjs");
|
|
11
11
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
12
12
|
const index = require("../../../hooks/locale/index.cjs");
|
|
13
|
-
const _sfc_main = /* @__PURE__ */
|
|
13
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
14
14
|
__name: "index",
|
|
15
15
|
props: data.dataProps,
|
|
16
16
|
emits: data.dataEmits,
|
|
@@ -19,7 +19,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
19
19
|
const cs = index$1.useCssName("selector");
|
|
20
20
|
const props = __props;
|
|
21
21
|
const emit = __emit;
|
|
22
|
-
const data$1 =
|
|
22
|
+
const data$1 = vues.reactive({
|
|
23
23
|
timeShow: false,
|
|
24
24
|
sname: "",
|
|
25
25
|
ename: "",
|
|
@@ -28,22 +28,22 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
28
28
|
endVal: props.options.length - 1
|
|
29
29
|
//结束框value值
|
|
30
30
|
});
|
|
31
|
-
const isShow =
|
|
31
|
+
const isShow = vues.ref(false);
|
|
32
32
|
function onMousemove() {
|
|
33
33
|
isShow.value = true;
|
|
34
34
|
}
|
|
35
35
|
function onMouseout() {
|
|
36
36
|
isShow.value = false;
|
|
37
37
|
}
|
|
38
|
-
|
|
38
|
+
vues.watch(
|
|
39
39
|
[() => props.options, () => props.modelValue],
|
|
40
40
|
(newList, oldList) => {
|
|
41
41
|
setElValue(props.modelValue);
|
|
42
42
|
},
|
|
43
43
|
{ deep: true, immediate: true }
|
|
44
44
|
);
|
|
45
|
-
const zindex =
|
|
46
|
-
const yindex =
|
|
45
|
+
const zindex = vues.ref(0);
|
|
46
|
+
const yindex = vues.ref(0);
|
|
47
47
|
function setElValue(val) {
|
|
48
48
|
let arr = props.options;
|
|
49
49
|
let at = arr.length;
|
|
@@ -114,17 +114,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
114
114
|
...data.dataExpose
|
|
115
115
|
});
|
|
116
116
|
return (_ctx, _cache) => {
|
|
117
|
-
return
|
|
117
|
+
return vues.openBlock(), vues.createBlock(vues.unref(index$2.Popover), {
|
|
118
118
|
onAfterEnter: afterEnter,
|
|
119
119
|
placement: "bottom",
|
|
120
|
-
"popper-class":
|
|
120
|
+
"popper-class": vues.unref(cs).z("popper"),
|
|
121
121
|
trigger: "click",
|
|
122
122
|
width: props.width,
|
|
123
123
|
disabled: props.disabled,
|
|
124
124
|
visible: data$1.timeShow
|
|
125
125
|
}, {
|
|
126
|
-
reference:
|
|
127
|
-
|
|
126
|
+
reference: vues.withCtx(() => [
|
|
127
|
+
vues.createVNode(vues.unref(index$5.Array), {
|
|
128
128
|
rangeSeparator: props.rangeSeparator,
|
|
129
129
|
startPlaceholder: props.startPlaceholder,
|
|
130
130
|
endPlaceholder: props.endPlaceholder,
|
|
@@ -133,23 +133,23 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
133
133
|
modelValue: [data$1.sname, data$1.ename],
|
|
134
134
|
onFocus: _cache[0] || (_cache[0] = ($event) => data$1.timeShow = true),
|
|
135
135
|
onClear: onCancel,
|
|
136
|
-
compon:
|
|
136
|
+
compon: vues.unref(index$6.Inputs)
|
|
137
137
|
}, null, 8, ["rangeSeparator", "startPlaceholder", "endPlaceholder", "clearable", "modelValue", "compon"])
|
|
138
138
|
]),
|
|
139
|
-
default:
|
|
140
|
-
|
|
141
|
-
class:
|
|
139
|
+
default: vues.withCtx(() => [
|
|
140
|
+
vues.createElementVNode("div", {
|
|
141
|
+
class: vues.normalizeClass(vues.unref(cs).z("select"))
|
|
142
142
|
}, [
|
|
143
|
-
|
|
144
|
-
class:
|
|
143
|
+
vues.createElementVNode("div", {
|
|
144
|
+
class: vues.normalizeClass(vues.unref(cs).z("select-list"))
|
|
145
145
|
}, [
|
|
146
|
-
|
|
147
|
-
class:
|
|
146
|
+
vues.createElementVNode("div", {
|
|
147
|
+
class: vues.normalizeClass(vues.unref(cs).z("select-list-li"))
|
|
148
148
|
}, [
|
|
149
|
-
|
|
150
|
-
class:
|
|
151
|
-
},
|
|
152
|
-
|
|
149
|
+
vues.createElementVNode("div", {
|
|
150
|
+
class: vues.normalizeClass(vues.unref(cs).z("select-list-title"))
|
|
151
|
+
}, vues.toDisplayString(props.startPlaceholder), 3),
|
|
152
|
+
vues.createVNode(vues.unref(index$3.SelectScroll), {
|
|
153
153
|
modelValue: zindex.value,
|
|
154
154
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => zindex.value = $event),
|
|
155
155
|
max: yindex.value,
|
|
@@ -157,13 +157,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
157
157
|
options: props.options
|
|
158
158
|
}, null, 8, ["modelValue", "max", "label", "options"])
|
|
159
159
|
], 2),
|
|
160
|
-
|
|
161
|
-
class:
|
|
160
|
+
vues.createElementVNode("div", {
|
|
161
|
+
class: vues.normalizeClass(vues.unref(cs).z("select-list-li"))
|
|
162
162
|
}, [
|
|
163
|
-
|
|
164
|
-
class:
|
|
165
|
-
},
|
|
166
|
-
|
|
163
|
+
vues.createElementVNode("div", {
|
|
164
|
+
class: vues.normalizeClass(vues.unref(cs).z("select-list-title"))
|
|
165
|
+
}, vues.toDisplayString(props.endPlaceholder), 3),
|
|
166
|
+
vues.createVNode(vues.unref(index$3.SelectScroll), {
|
|
167
167
|
min: zindex.value,
|
|
168
168
|
modelValue: yindex.value,
|
|
169
169
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => yindex.value = $event),
|
|
@@ -172,24 +172,24 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
172
172
|
}, null, 8, ["min", "modelValue", "label", "options"])
|
|
173
173
|
], 2)
|
|
174
174
|
], 2),
|
|
175
|
-
|
|
176
|
-
class:
|
|
175
|
+
vues.createElementVNode("div", {
|
|
176
|
+
class: vues.normalizeClass(vues.unref(cs).z("select-buts"))
|
|
177
177
|
}, [
|
|
178
|
-
|
|
178
|
+
vues.createVNode(vues.unref(index$4.Button), {
|
|
179
179
|
text: "",
|
|
180
|
-
onClick:
|
|
180
|
+
onClick: vues.withModifiers(onCancel, ["stop"])
|
|
181
181
|
}, {
|
|
182
|
-
default:
|
|
183
|
-
|
|
182
|
+
default: vues.withCtx(() => [
|
|
183
|
+
vues.createTextVNode(vues.toDisplayString(vues.unref(getLocale)("close")), 1)
|
|
184
184
|
]),
|
|
185
185
|
_: 1
|
|
186
186
|
}),
|
|
187
|
-
|
|
187
|
+
vues.createVNode(vues.unref(index$4.Button), {
|
|
188
188
|
type: "primary",
|
|
189
|
-
onClick:
|
|
189
|
+
onClick: vues.withModifiers(onDetermine, ["stop"])
|
|
190
190
|
}, {
|
|
191
|
-
default:
|
|
192
|
-
|
|
191
|
+
default: vues.withCtx(() => [
|
|
192
|
+
vues.createTextVNode(vues.toDisplayString(vues.unref(getLocale)("form.confirm")), 1)
|
|
193
193
|
]),
|
|
194
194
|
_: 1
|
|
195
195
|
})
|
|
@@ -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$3 = require("../../../directives/expose/index.cjs");
|
|
5
5
|
const index$2 = require("element-plus/es/components/select/index");
|
|
6
6
|
const compareArray = require("@fangzhongya/utils/basic/array/compareArray");
|
|
@@ -8,17 +8,17 @@ const index = require("../../../hooks/inherit/index.cjs");
|
|
|
8
8
|
const use = require("../../common/use.cjs");
|
|
9
9
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
10
10
|
const data = require("./data.cjs");
|
|
11
|
-
const _sfc_main = /* @__PURE__ */
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
12
12
|
...{ inheritAttrs: false },
|
|
13
13
|
__name: "index",
|
|
14
14
|
props: data.dataProps,
|
|
15
15
|
emits: data.dataEmits,
|
|
16
16
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
17
|
-
const refEl =
|
|
18
|
-
const attrs = index.useInherit(
|
|
17
|
+
const refEl = vues.ref();
|
|
18
|
+
const attrs = index.useInherit(vues.useAttrs());
|
|
19
19
|
const cs = index$1.useCssName("selects");
|
|
20
20
|
const props = __props;
|
|
21
|
-
const placeholder =
|
|
21
|
+
const placeholder = vues.computed(() => {
|
|
22
22
|
if (typeof props.placeholder == "undefined") {
|
|
23
23
|
return "请选择";
|
|
24
24
|
} else {
|
|
@@ -46,34 +46,34 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
46
46
|
el: refEl
|
|
47
47
|
});
|
|
48
48
|
return (_ctx, _cache) => {
|
|
49
|
-
return
|
|
49
|
+
return vues.openBlock(), vues.createElementBlock("div", vues.mergeProps({
|
|
50
50
|
ref_key: "refEl",
|
|
51
51
|
ref: refEl
|
|
52
|
-
},
|
|
53
|
-
class:
|
|
52
|
+
}, vues.unref(attrs).root, {
|
|
53
|
+
class: vues.unref(cs).z()
|
|
54
54
|
}), [
|
|
55
|
-
|
|
56
|
-
class:
|
|
57
|
-
modelValue:
|
|
58
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
59
|
-
},
|
|
60
|
-
multiple:
|
|
55
|
+
vues.withDirectives((vues.openBlock(), vues.createBlock(vues.unref(index$2.ElSelect), vues.mergeProps({
|
|
56
|
+
class: vues.unref(cs).z("select"),
|
|
57
|
+
modelValue: vues.unref(value),
|
|
58
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vues.isRef(value) ? value.value = $event : null)
|
|
59
|
+
}, vues.unref(attrs).assem, {
|
|
60
|
+
multiple: vues.unref(multiple),
|
|
61
61
|
placeholder: placeholder.value,
|
|
62
62
|
onChange,
|
|
63
63
|
onRemoveTag
|
|
64
64
|
}), {
|
|
65
|
-
default:
|
|
66
|
-
(
|
|
67
|
-
return
|
|
68
|
-
label:
|
|
69
|
-
value:
|
|
65
|
+
default: vues.withCtx(() => [
|
|
66
|
+
(vues.openBlock(true), vues.createElementBlock(vues.Fragment, null, vues.renderList(props.options, (item) => {
|
|
67
|
+
return vues.openBlock(), vues.createBlock(vues.unref(index$2.ElOption), {
|
|
68
|
+
label: vues.unref(use.useVueValue)(item, props.label),
|
|
69
|
+
value: vues.unref(use.useVueValue)(item, props.prop),
|
|
70
70
|
disabled: item == null ? void 0 : item.disabled
|
|
71
71
|
}, null, 8, ["label", "value", "disabled"]);
|
|
72
72
|
}), 256))
|
|
73
73
|
]),
|
|
74
74
|
_: 1
|
|
75
75
|
}, 16, ["class", "modelValue", "multiple", "placeholder"])), [
|
|
76
|
-
[
|
|
76
|
+
[vues.unref(index$3.default), {}]
|
|
77
77
|
])
|
|
78
78
|
], 16);
|
|
79
79
|
};
|
|
@@ -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/slider/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("slider");
|
|
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.ElSlider), 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
|
})
|