@fangzhongya/fang-ui 0.0.98 → 0.0.99
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 +11 -11
- package/dist/components/array/src/index2.cjs +45 -45
- package/dist/components/audios/src/index2.cjs +54 -54
- package/dist/components/autocomplete/src/index2.cjs +11 -11
- package/dist/components/box/src/index2.cjs +21 -21
- package/dist/components/box-adjust/index.css +17 -0
- package/dist/components/box-adjust/index.scss +18 -0
- package/dist/components/box-adjust/src/data.cjs +17 -1
- package/dist/components/box-adjust/src/data.d.ts +16 -0
- package/dist/components/box-adjust/src/data.js +17 -1
- package/dist/components/box-adjust/src/index2.cjs +69 -35
- package/dist/components/box-adjust/src/index2.js +37 -3
- 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 +11 -11
- package/dist/components/buttons/src/index2.cjs +20 -20
- package/dist/components/card/src/index2.cjs +11 -11
- package/dist/components/cascader/src/index2.cjs +11 -11
- package/dist/components/cascader-panel/src/index2.cjs +11 -11
- package/dist/components/cascaders/src/index2.cjs +17 -17
- package/dist/components/checkbox/src/index2.cjs +11 -11
- package/dist/components/checkbox-button/src/index2.cjs +11 -11
- package/dist/components/checkbox-group/src/index2.cjs +11 -11
- 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 +11 -11
- package/dist/components/collapse-item/src/index2.cjs +11 -11
- package/dist/components/color-picker/src/index2.cjs +11 -11
- 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 +11 -11
- package/dist/components/date-picker/src/index2.cjs +11 -11
- package/dist/components/date-picker/style/element.scss +1 -1
- package/dist/components/date-picker-panel/src/index2.cjs +11 -11
- 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 +10 -10
- package/dist/components/dialog/src/index2.cjs +11 -11
- package/dist/components/dialogs/src/index2.cjs +23 -23
- package/dist/components/divider/src/index2.cjs +11 -11
- package/dist/components/drawer/src/index2.cjs +11 -11
- package/dist/components/dropdown/src/index2.cjs +11 -11
- package/dist/components/dropdown-item/src/index2.cjs +11 -11
- package/dist/components/dropdown-menu/src/index2.cjs +11 -11
- 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 +11 -11
- package/dist/components/form-item/src/index2.cjs +11 -11
- package/dist/components/forms/index.css +22 -0
- 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/full-screen/src/index2.cjs +11 -11
- 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/data.cjs +1 -1
- package/dist/components/iframe/src/data.js +1 -1
- package/dist/components/iframe/src/index2.cjs +15 -10
- package/dist/components/iframe/src/index2.js +5 -0
- package/dist/components/image/src/index2.cjs +11 -11
- package/dist/components/image-viewer/src/index2.cjs +11 -11
- package/dist/components/images/src/index2.cjs +17 -17
- package/dist/components/input/src/index2.cjs +11 -11
- package/dist/components/input-array/src/index2.cjs +38 -38
- package/dist/components/input-history/src/index2.cjs +47 -47
- 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 +11 -11
- package/dist/components/input-select/src/index2.cjs +51 -51
- package/dist/components/input-tag/src/index2.cjs +11 -11
- 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 +35 -35
- package/dist/components/mention/src/index2.cjs +11 -11
- package/dist/components/menu/src/index2.cjs +11 -11
- package/dist/components/menu-item/src/index2.cjs +11 -11
- package/dist/components/menu-item-group/src/index2.cjs +11 -11
- 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 +10 -10
- package/dist/components/option-group/src/index2.cjs +11 -11
- package/dist/components/page/index.css +22 -0
- 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 +11 -11
- package/dist/components/paging/src/index2.cjs +13 -13
- package/dist/components/popconfirm/src/index2.cjs +11 -11
- package/dist/components/popover/src/index2.cjs +11 -11
- package/dist/components/popup/src/index2.cjs +29 -29
- package/dist/components/radio/src/index2.cjs +11 -11
- package/dist/components/radio-button/src/index2.cjs +11 -11
- package/dist/components/radio-group/src/index2.cjs +11 -11
- 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/scrollbar/src/index2.cjs +11 -11
- package/dist/components/seamless-scroll/src/index2.cjs +24 -24
- package/dist/components/select/src/index2.cjs +11 -11
- package/dist/components/select-dialog/src/index2.cjs +65 -65
- package/dist/components/select-popover/src/index2.cjs +41 -41
- 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 +11 -11
- package/dist/components/sliders/src/index2.cjs +13 -13
- 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/sub-menu/src/index2.cjs +10 -10
- package/dist/components/switch/src/index2.cjs +11 -11
- package/dist/components/switchs/src/index2.cjs +15 -15
- package/dist/components/tab-pane/src/index2.cjs +11 -11
- package/dist/components/table/src/index2.cjs +11 -11
- package/dist/components/table-column/src/index2.cjs +11 -11
- 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 +36 -36
- package/dist/components/tabless/src/index2.cjs +49 -49
- 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 +11 -11
- package/dist/components/tag/src/index2.cjs +11 -11
- package/dist/components/text/src/index2.cjs +11 -11
- package/dist/components/text/style/element.scss +1 -1
- package/dist/components/texts/src/index2.cjs +8 -8
- package/dist/components/time-picker/src/index2.cjs +11 -11
- package/dist/components/time-select/src/index2.cjs +11 -11
- package/dist/components/tooltip/src/index2.cjs +11 -11
- package/dist/components/transfer/src/index2.cjs +11 -11
- package/dist/components/tree/src/index2.cjs +11 -11
- package/dist/components/tree-select/src/index2.cjs +11 -11
- package/dist/components/tree-select-box/src/index2.cjs +29 -29
- package/dist/components/upload/src/index2.cjs +11 -11
- package/dist/components/uploads/index.css +22 -0
- package/dist/components/uploads/index.scss +23 -0
- package/dist/components/uploads/src/index2.cjs +128 -138
- package/dist/components/uploads/src/index2.js +61 -71
- package/dist/components/uploads/src/util.cjs +80 -0
- package/dist/components/uploads/src/util.d.ts +10 -0
- package/dist/components/uploads/src/util.js +80 -0
- package/dist/components/uploads/src/views.cjs +4 -0
- package/dist/components/uploads/src/views.js +4 -0
- package/dist/components/uploads/src/views2.cjs +77 -0
- package/dist/components/uploads/src/views2.js +77 -0
- package/dist/components/user-select/src/index2.cjs +99 -99
- package/dist/components/videos/src/index2.cjs +97 -97
- package/dist/components/window/src/index2.cjs +61 -61
- package/dist/css/box-adjust.css +17 -0
- package/dist/css/forms.css +22 -0
- package/dist/css/index.css +39 -0
- package/dist/css/page.css +22 -0
- package/dist/css/uploads.css +22 -0
- package/dist/directives/scroll/index.cjs +6 -24
- package/dist/directives/scroll/index.js +1 -3
- package/dist/hooks/event-aliass/index.cjs +2 -2
- package/dist/hooks/full-screen/index.cjs +5 -5
- 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 +79 -79
- package/dist/icons/index.json +35 -35
- 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/catalogue.cjs +5 -5
- package/dist/icons/vue/clear.cjs +5 -5
- package/dist/icons/vue/close.cjs +3 -3
- package/dist/icons/vue/delete.cjs +3 -3
- package/dist/icons/vue/document.cjs +5 -5
- package/dist/icons/vue/down.cjs +3 -3
- package/dist/icons/vue/download.cjs +3 -3
- package/dist/icons/vue/edit.cjs +5 -5
- package/dist/icons/vue/enter.cjs +3 -3
- package/dist/icons/vue/frame.cjs +3 -3
- package/dist/icons/vue/left.cjs +3 -3
- package/dist/icons/vue/mute.cjs +3 -3
- package/dist/icons/vue/pause.cjs +4 -4
- package/dist/icons/vue/play.cjs +3 -3
- package/dist/icons/vue/plus.cjs +3 -3
- package/dist/icons/vue/retreat.cjs +3 -3
- package/dist/icons/vue/right.cjs +3 -3
- package/dist/icons/vue/sound.cjs +4 -4
- package/dist/icons/vue/star.cjs +4 -4
- package/dist/icons/vue/up.cjs +3 -3
- package/dist/icons/vue/views.cjs +5 -5
- package/dist/icons/vue/views.js +2 -2
- package/dist/index.css +39 -0
- package/dist/utils/vues/common.cjs +2 -2
- package/package.json +3 -3
- /package/dist/components/{alert → divider}/index.css +0 -0
- /package/dist/css/{alert.css → divider.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 vue = require("vue");
|
|
4
4
|
const getCss = require("@fangzhongya/utils/css/getCss");
|
|
5
5
|
const data = require("./data.cjs");
|
|
6
6
|
const index$3 = require("../../popover/index.cjs");
|
|
@@ -9,24 +9,24 @@ require("../../../hooks/index.cjs");
|
|
|
9
9
|
const index = require("../../../hooks/inherit/index.cjs");
|
|
10
10
|
const index$1 = require("../../../hooks/locale/index.cjs");
|
|
11
11
|
const index$2 = require("../../../hooks/cssname/index.cjs");
|
|
12
|
-
const _sfc_main = /* @__PURE__ */
|
|
12
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
13
13
|
...{ inheritAttrs: false },
|
|
14
14
|
__name: "index",
|
|
15
15
|
props: data.dataProps,
|
|
16
16
|
emits: data.dataEmits,
|
|
17
17
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
18
18
|
const attrs = index.useInherit();
|
|
19
|
-
const slots =
|
|
19
|
+
const slots = vue.useSlots();
|
|
20
20
|
const { getLocale } = index$1.useLocale();
|
|
21
21
|
const cs = index$2.useCssName("select-popover");
|
|
22
22
|
const props = __props;
|
|
23
23
|
const emit = __emit;
|
|
24
|
-
const visible =
|
|
25
|
-
const width =
|
|
26
|
-
const refInput =
|
|
27
|
-
const isfocus =
|
|
28
|
-
const isFiletr =
|
|
29
|
-
const value =
|
|
24
|
+
const visible = vue.ref(false);
|
|
25
|
+
const width = vue.ref(200);
|
|
26
|
+
const refInput = vue.ref();
|
|
27
|
+
const isfocus = vue.ref(false);
|
|
28
|
+
const isFiletr = vue.ref(false);
|
|
29
|
+
const value = vue.computed({
|
|
30
30
|
get() {
|
|
31
31
|
let v = props.modelValue;
|
|
32
32
|
return v;
|
|
@@ -35,7 +35,7 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
35
35
|
emit("update:modelValue", value2);
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
|
-
const isclear =
|
|
38
|
+
const isclear = vue.computed(() => {
|
|
39
39
|
if (props.readonly) {
|
|
40
40
|
return false;
|
|
41
41
|
}
|
|
@@ -79,72 +79,72 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
79
79
|
visible.value = !visible.value;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
|
|
82
|
+
vue.onMounted(() => {
|
|
83
83
|
setWidth();
|
|
84
84
|
});
|
|
85
85
|
__expose({
|
|
86
86
|
...data.dataExpose
|
|
87
87
|
});
|
|
88
88
|
return (_ctx, _cache) => {
|
|
89
|
-
return
|
|
89
|
+
return vue.openBlock(), vue.createBlock(vue.unref(index$3.Popover), {
|
|
90
90
|
trigger: "click",
|
|
91
|
-
"popper-class":
|
|
91
|
+
"popper-class": vue.unref(cs).z("popper"),
|
|
92
92
|
visible: visible.value,
|
|
93
93
|
disabled: props.disabled,
|
|
94
94
|
width: width.value
|
|
95
95
|
}, {
|
|
96
|
-
reference:
|
|
97
|
-
|
|
98
|
-
class: [
|
|
99
|
-
},
|
|
100
|
-
|
|
96
|
+
reference: vue.withCtx(() => [
|
|
97
|
+
vue.createElementVNode("div", vue.mergeProps({
|
|
98
|
+
class: [vue.unref(cs).z(), vue.unref(cs).is("disabled", props.disabled)]
|
|
99
|
+
}, vue.unref(attrs).root, { onClick }), [
|
|
100
|
+
vue.createVNode(vue.unref(index$4.Inputs), vue.mergeProps({
|
|
101
101
|
ref_key: "refInput",
|
|
102
102
|
ref: refInput,
|
|
103
103
|
modelValue: value.value,
|
|
104
104
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
105
|
-
},
|
|
105
|
+
}, vue.unref(attrs).assem, {
|
|
106
106
|
disabled: props.disabled,
|
|
107
107
|
readonly: props.readonly,
|
|
108
108
|
onInput,
|
|
109
109
|
onFocus,
|
|
110
110
|
onBlur,
|
|
111
111
|
clearable: false
|
|
112
|
-
}),
|
|
113
|
-
suffix:
|
|
114
|
-
isclear.value ? (
|
|
112
|
+
}), vue.createSlots({
|
|
113
|
+
suffix: vue.withCtx(() => [
|
|
114
|
+
isclear.value ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
115
115
|
key: 0,
|
|
116
|
-
class:
|
|
117
|
-
onClick:
|
|
116
|
+
class: vue.normalizeClass([vue.unref(cs).z("select-icon"), "clear"]),
|
|
117
|
+
onClick: vue.withModifiers(onClear, ["stop"])
|
|
118
118
|
}, [..._cache[1] || (_cache[1] = [
|
|
119
|
-
|
|
119
|
+
vue.createElementVNode("svg", {
|
|
120
120
|
viewBox: "0 0 1024 1024",
|
|
121
121
|
xmlns: "http://www.w3.org/2000/svg",
|
|
122
122
|
"data-v-ea893728": ""
|
|
123
123
|
}, [
|
|
124
|
-
|
|
124
|
+
vue.createElementVNode("path", {
|
|
125
125
|
fill: "currentColor",
|
|
126
126
|
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"
|
|
127
127
|
}),
|
|
128
|
-
|
|
128
|
+
vue.createElementVNode("path", {
|
|
129
129
|
fill: "currentColor",
|
|
130
130
|
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"
|
|
131
131
|
})
|
|
132
132
|
], -1)
|
|
133
|
-
])], 2)) :
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
class:
|
|
137
|
-
|
|
138
|
-
|
|
133
|
+
])], 2)) : vue.createCommentVNode("", true),
|
|
134
|
+
vue.renderSlot(_ctx.$slots, "suffix"),
|
|
135
|
+
vue.createElementVNode("span", {
|
|
136
|
+
class: vue.normalizeClass([
|
|
137
|
+
vue.unref(cs).z("select-icon"),
|
|
138
|
+
vue.unref(cs).is("reverse", visible.value)
|
|
139
139
|
])
|
|
140
140
|
}, [
|
|
141
|
-
|
|
142
|
-
_cache[2] || (_cache[2] =
|
|
141
|
+
vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).iconSelect, {}, () => [
|
|
142
|
+
_cache[2] || (_cache[2] = vue.createElementVNode("svg", {
|
|
143
143
|
viewBox: "0 0 1024 1024",
|
|
144
144
|
xmlns: "http://www.w3.org/2000/svg",
|
|
145
145
|
"data-v-ea893728": ""
|
|
146
146
|
}, [
|
|
147
|
-
|
|
147
|
+
vue.createElementVNode("path", {
|
|
148
148
|
fill: "currentColor",
|
|
149
149
|
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"
|
|
150
150
|
})
|
|
@@ -154,19 +154,19 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
154
154
|
]),
|
|
155
155
|
_: 2
|
|
156
156
|
}, [
|
|
157
|
-
|
|
157
|
+
vue.renderList(Object.keys(vue.unref(slots)), (k, index2) => {
|
|
158
158
|
return {
|
|
159
159
|
name: k,
|
|
160
|
-
fn:
|
|
161
|
-
|
|
160
|
+
fn: vue.withCtx(() => [
|
|
161
|
+
vue.renderSlot(_ctx.$slots, k)
|
|
162
162
|
])
|
|
163
163
|
};
|
|
164
164
|
})
|
|
165
165
|
]), 1040, ["modelValue", "disabled", "readonly"])
|
|
166
166
|
], 16)
|
|
167
167
|
]),
|
|
168
|
-
default:
|
|
169
|
-
|
|
168
|
+
default: vue.withCtx(() => [
|
|
169
|
+
vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).default)
|
|
170
170
|
]),
|
|
171
171
|
_: 3
|
|
172
172
|
}, 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 vue = 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__ */ vue.defineComponent({
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: data.dataProps,
|
|
11
11
|
emits: data.dataEmits,
|
|
@@ -13,21 +13,21 @@ const _sfc_main = /* @__PURE__ */ vues.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 = vue.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 = vue.ref();
|
|
22
|
+
const index$1 = vue.ref(0);
|
|
23
|
+
vue.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
|
+
vue.watch(
|
|
31
31
|
() => props.modelValue,
|
|
32
32
|
() => {
|
|
33
33
|
setPropsValue();
|
|
@@ -105,11 +105,11 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
-
|
|
108
|
+
vue.onMounted(() => {
|
|
109
109
|
handleScroll();
|
|
110
110
|
setPropsValue();
|
|
111
111
|
});
|
|
112
|
-
|
|
112
|
+
vue.onBeforeUnmount(() => {
|
|
113
113
|
if (refScroll.value) {
|
|
114
114
|
refScroll.value.removeEventListener("scroll", () => {
|
|
115
115
|
});
|
|
@@ -119,46 +119,46 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
119
119
|
...data.dataExpose
|
|
120
120
|
});
|
|
121
121
|
return (_ctx, _cache) => {
|
|
122
|
-
return
|
|
123
|
-
class:
|
|
122
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
123
|
+
class: vue.normalizeClass(vue.unref(cs).z())
|
|
124
124
|
}, [
|
|
125
|
-
|
|
126
|
-
class:
|
|
127
|
-
style:
|
|
125
|
+
vue.createElementVNode("div", {
|
|
126
|
+
class: vue.normalizeClass(vue.unref(cs).z("div")),
|
|
127
|
+
style: vue.normalizeStyle({
|
|
128
128
|
height: h.value * (props.limit * 2 + 1) + "px"
|
|
129
129
|
})
|
|
130
130
|
}, [
|
|
131
|
-
|
|
132
|
-
class:
|
|
131
|
+
vue.createElementVNode("div", {
|
|
132
|
+
class: vue.normalizeClass(vue.unref(cs).z("box"))
|
|
133
133
|
}, [
|
|
134
|
-
|
|
135
|
-
class:
|
|
136
|
-
style:
|
|
134
|
+
vue.createElementVNode("div", {
|
|
135
|
+
class: vue.normalizeClass(vue.unref(cs).z("box-after")),
|
|
136
|
+
style: vue.normalizeStyle({
|
|
137
137
|
"margin-top": h.value / 2 * -1 + "px"
|
|
138
138
|
})
|
|
139
139
|
}, null, 6),
|
|
140
|
-
|
|
141
|
-
class:
|
|
142
|
-
style:
|
|
140
|
+
vue.createElementVNode("div", {
|
|
141
|
+
class: vue.normalizeClass(vue.unref(cs).z("box-before")),
|
|
142
|
+
style: vue.normalizeStyle({
|
|
143
143
|
"margin-top": h.value / 2 + "px"
|
|
144
144
|
})
|
|
145
145
|
}, null, 6),
|
|
146
|
-
|
|
146
|
+
vue.createElementVNode("div", {
|
|
147
147
|
ref_key: "refScroll",
|
|
148
148
|
ref: refScroll,
|
|
149
|
-
class:
|
|
149
|
+
class: vue.normalizeClass(vue.unref(cs).z("list"))
|
|
150
150
|
}, [
|
|
151
|
-
(
|
|
152
|
-
return
|
|
153
|
-
class:
|
|
154
|
-
onClick:
|
|
155
|
-
style:
|
|
151
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(props.options, (item, ind) => {
|
|
152
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
153
|
+
class: vue.normalizeClass([vue.unref(cs).z("list-li"), setClass(ind, item)]),
|
|
154
|
+
onClick: vue.withModifiers(($event) => onClick(ind, item), ["stop"]),
|
|
155
|
+
style: vue.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
|
+
}, vue.toDisplayString(vue.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 vue = 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__ */ vue.defineComponent({
|
|
14
14
|
__name: "index",
|
|
15
15
|
props: data.dataProps,
|
|
16
16
|
emits: data.dataEmits,
|
|
@@ -19,7 +19,7 @@ const _sfc_main = /* @__PURE__ */ vues.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 = vue.reactive({
|
|
23
23
|
timeShow: false,
|
|
24
24
|
sname: "",
|
|
25
25
|
ename: "",
|
|
@@ -28,22 +28,22 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
28
28
|
endVal: props.options.length - 1
|
|
29
29
|
//结束框value值
|
|
30
30
|
});
|
|
31
|
-
const isShow =
|
|
31
|
+
const isShow = vue.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
|
+
vue.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 = vue.ref(0);
|
|
46
|
+
const yindex = vue.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__ */ vues.defineComponent({
|
|
|
114
114
|
...data.dataExpose
|
|
115
115
|
});
|
|
116
116
|
return (_ctx, _cache) => {
|
|
117
|
-
return
|
|
117
|
+
return vue.openBlock(), vue.createBlock(vue.unref(index$2.Popover), {
|
|
118
118
|
onAfterEnter: afterEnter,
|
|
119
119
|
placement: "bottom",
|
|
120
|
-
"popper-class":
|
|
120
|
+
"popper-class": vue.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: vue.withCtx(() => [
|
|
127
|
+
vue.createVNode(vue.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__ */ vues.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: vue.unref(index$6.Inputs)
|
|
137
137
|
}, null, 8, ["rangeSeparator", "startPlaceholder", "endPlaceholder", "clearable", "modelValue", "compon"])
|
|
138
138
|
]),
|
|
139
|
-
default:
|
|
140
|
-
|
|
141
|
-
class:
|
|
139
|
+
default: vue.withCtx(() => [
|
|
140
|
+
vue.createElementVNode("div", {
|
|
141
|
+
class: vue.normalizeClass(vue.unref(cs).z("select"))
|
|
142
142
|
}, [
|
|
143
|
-
|
|
144
|
-
class:
|
|
143
|
+
vue.createElementVNode("div", {
|
|
144
|
+
class: vue.normalizeClass(vue.unref(cs).z("select-list"))
|
|
145
145
|
}, [
|
|
146
|
-
|
|
147
|
-
class:
|
|
146
|
+
vue.createElementVNode("div", {
|
|
147
|
+
class: vue.normalizeClass(vue.unref(cs).z("select-list-li"))
|
|
148
148
|
}, [
|
|
149
|
-
|
|
150
|
-
class:
|
|
151
|
-
},
|
|
152
|
-
|
|
149
|
+
vue.createElementVNode("div", {
|
|
150
|
+
class: vue.normalizeClass(vue.unref(cs).z("select-list-title"))
|
|
151
|
+
}, vue.toDisplayString(props.startPlaceholder), 3),
|
|
152
|
+
vue.createVNode(vue.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__ */ vues.defineComponent({
|
|
|
157
157
|
options: props.options
|
|
158
158
|
}, null, 8, ["modelValue", "max", "label", "options"])
|
|
159
159
|
], 2),
|
|
160
|
-
|
|
161
|
-
class:
|
|
160
|
+
vue.createElementVNode("div", {
|
|
161
|
+
class: vue.normalizeClass(vue.unref(cs).z("select-list-li"))
|
|
162
162
|
}, [
|
|
163
|
-
|
|
164
|
-
class:
|
|
165
|
-
},
|
|
166
|
-
|
|
163
|
+
vue.createElementVNode("div", {
|
|
164
|
+
class: vue.normalizeClass(vue.unref(cs).z("select-list-title"))
|
|
165
|
+
}, vue.toDisplayString(props.endPlaceholder), 3),
|
|
166
|
+
vue.createVNode(vue.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__ */ vues.defineComponent({
|
|
|
172
172
|
}, null, 8, ["min", "modelValue", "label", "options"])
|
|
173
173
|
], 2)
|
|
174
174
|
], 2),
|
|
175
|
-
|
|
176
|
-
class:
|
|
175
|
+
vue.createElementVNode("div", {
|
|
176
|
+
class: vue.normalizeClass(vue.unref(cs).z("select-buts"))
|
|
177
177
|
}, [
|
|
178
|
-
|
|
178
|
+
vue.createVNode(vue.unref(index$4.Button), {
|
|
179
179
|
text: "",
|
|
180
|
-
onClick:
|
|
180
|
+
onClick: vue.withModifiers(onCancel, ["stop"])
|
|
181
181
|
}, {
|
|
182
|
-
default:
|
|
183
|
-
|
|
182
|
+
default: vue.withCtx(() => [
|
|
183
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(getLocale)("close")), 1)
|
|
184
184
|
]),
|
|
185
185
|
_: 1
|
|
186
186
|
}),
|
|
187
|
-
|
|
187
|
+
vue.createVNode(vue.unref(index$4.Button), {
|
|
188
188
|
type: "primary",
|
|
189
|
-
onClick:
|
|
189
|
+
onClick: vue.withModifiers(onDetermine, ["stop"])
|
|
190
190
|
}, {
|
|
191
|
-
default:
|
|
192
|
-
|
|
191
|
+
default: vue.withCtx(() => [
|
|
192
|
+
vue.createTextVNode(vue.toDisplayString(vue.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 vue = require("vue");
|
|
4
4
|
const index$4 = require("../../select/index.cjs");
|
|
5
5
|
const index$5 = require("../../option/index.cjs");
|
|
6
6
|
const compareArray = require("@fangzhongya/utils/basic/array/compareArray");
|
|
@@ -10,19 +10,19 @@ const index$2 = require("../../../hooks/cssname/index.cjs");
|
|
|
10
10
|
const index$3 = require("../../../hooks/expose/index.cjs");
|
|
11
11
|
const data = require("./data.cjs");
|
|
12
12
|
const index = require("../../../hooks/locale/index.cjs");
|
|
13
|
-
const _sfc_main = /* @__PURE__ */
|
|
13
|
+
const _sfc_main = /* @__PURE__ */ vue.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 { getLocale } = index.useLocale();
|
|
20
|
-
const refEl =
|
|
21
|
-
const elRef =
|
|
22
|
-
const attrs = index$1.useInherit(
|
|
20
|
+
const refEl = vue.ref();
|
|
21
|
+
const elRef = vue.ref();
|
|
22
|
+
const attrs = index$1.useInherit(vue.useAttrs());
|
|
23
23
|
const cs = index$2.useCssName("selects");
|
|
24
24
|
const props = __props;
|
|
25
|
-
const placeholder =
|
|
25
|
+
const placeholder = vue.computed(() => {
|
|
26
26
|
if (typeof props.placeholder == "undefined") {
|
|
27
27
|
return getLocale("form.select");
|
|
28
28
|
} else {
|
|
@@ -55,29 +55,29 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
55
55
|
)
|
|
56
56
|
);
|
|
57
57
|
return (_ctx, _cache) => {
|
|
58
|
-
return
|
|
58
|
+
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
59
59
|
ref_key: "refEl",
|
|
60
60
|
ref: refEl
|
|
61
|
-
},
|
|
62
|
-
class:
|
|
61
|
+
}, vue.unref(attrs).root, {
|
|
62
|
+
class: vue.unref(cs).z()
|
|
63
63
|
}), [
|
|
64
|
-
|
|
65
|
-
class:
|
|
64
|
+
vue.createVNode(vue.unref(index$4.Select), vue.mergeProps({
|
|
65
|
+
class: vue.unref(cs).z("select"),
|
|
66
66
|
ref_key: "elRef",
|
|
67
67
|
ref: elRef,
|
|
68
|
-
modelValue:
|
|
69
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
70
|
-
},
|
|
71
|
-
multiple:
|
|
68
|
+
modelValue: vue.unref(value),
|
|
69
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(value) ? value.value = $event : null)
|
|
70
|
+
}, vue.unref(attrs).assem, {
|
|
71
|
+
multiple: vue.unref(multiple),
|
|
72
72
|
placeholder: placeholder.value,
|
|
73
73
|
onChange,
|
|
74
74
|
onRemoveTag
|
|
75
75
|
}), {
|
|
76
|
-
default:
|
|
77
|
-
(
|
|
78
|
-
return
|
|
79
|
-
label:
|
|
80
|
-
value:
|
|
76
|
+
default: vue.withCtx(() => [
|
|
77
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(props.options, (item) => {
|
|
78
|
+
return vue.openBlock(), vue.createBlock(vue.unref(index$5.Option), {
|
|
79
|
+
label: vue.unref(use.useVueValue)(item, props.label),
|
|
80
|
+
value: vue.unref(use.useVueValue)(item, props.prop),
|
|
81
81
|
disabled: item == null ? void 0 : item.disabled
|
|
82
82
|
}, null, 8, ["label", "value", "disabled"]);
|
|
83
83
|
}), 256))
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vue = require("vue");
|
|
4
4
|
const data = require("./data.cjs");
|
|
5
5
|
const index = require("../../../hooks/cssname/index.cjs");
|
|
6
6
|
const index$1 = require("../../../hooks/expose/index.cjs");
|
|
7
7
|
const index$2 = require("element-plus/es/components/slider/index");
|
|
8
|
-
const _sfc_main = /* @__PURE__ */
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: data.dataProps,
|
|
11
11
|
emits: data.dataEmits,
|
|
12
12
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
13
|
-
const attrs =
|
|
14
|
-
const slots =
|
|
13
|
+
const attrs = vue.useAttrs();
|
|
14
|
+
const slots = vue.useSlots();
|
|
15
15
|
const cs = index.useCssName("slider");
|
|
16
16
|
const props = __props;
|
|
17
17
|
const emit = __emit;
|
|
18
|
-
const elRef =
|
|
18
|
+
const elRef = vue.ref();
|
|
19
19
|
__expose(
|
|
20
20
|
index$1.useExpose(
|
|
21
21
|
{
|
|
@@ -25,16 +25,16 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
25
25
|
)
|
|
26
26
|
);
|
|
27
27
|
return (_ctx, _cache) => {
|
|
28
|
-
return
|
|
28
|
+
return vue.openBlock(), vue.createBlock(vue.unref(index$2.ElSlider), vue.mergeProps({
|
|
29
29
|
ref_key: "elRef",
|
|
30
30
|
ref: elRef,
|
|
31
|
-
class:
|
|
32
|
-
},
|
|
33
|
-
|
|
31
|
+
class: vue.unref(cs).z()
|
|
32
|
+
}, vue.unref(attrs)), vue.createSlots({ _: 2 }, [
|
|
33
|
+
vue.renderList(Object.keys(vue.unref(slots)), (k) => {
|
|
34
34
|
return {
|
|
35
35
|
name: k,
|
|
36
|
-
fn:
|
|
37
|
-
|
|
36
|
+
fn: vue.withCtx((scope) => [
|
|
37
|
+
vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope || {})))
|
|
38
38
|
])
|
|
39
39
|
};
|
|
40
40
|
})
|