@fangzhongya/fang-ui 0.0.69 → 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/data.cjs +7 -0
- package/dist/components/stick-div/src/data.d.ts +7 -0
- package/dist/components/stick-div/src/data.js +7 -0
- package/dist/components/stick-div/src/index2.cjs +46 -54
- package/dist/components/stick-div/src/index2.js +32 -40
- 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/drag/index.cjs +3 -0
- package/dist/directives/drag/index.js +3 -0
- package/dist/directives/scroll/index.cjs +24 -6
- package/dist/directives/scroll/index.js +3 -1
- package/dist/directives/stick/index.cjs +3 -1
- package/dist/directives/stick/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 +33 -33
- package/dist/icons/index.json +11 -11
- 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 +6 -6
- /package/dist/components/{global-config → keep-com}/index.css +0 -0
- /package/dist/css/{global-config.css → keep-com.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$4 = require("../../icon/index.cjs");
|
|
5
5
|
const clear = require("../../../icons/vue/clear.cjs");
|
|
6
6
|
const below = require("../../../icons/vue/below.cjs");
|
|
@@ -12,23 +12,23 @@ const use = require("../../common/use.cjs");
|
|
|
12
12
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
13
13
|
const getCss = require("@fangzhongya/utils/css/getCss");
|
|
14
14
|
const _hoisted_1 = ["onClick"];
|
|
15
|
-
const _sfc_main = /* @__PURE__ */
|
|
15
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
16
16
|
...{ inheritAttrs: false },
|
|
17
17
|
__name: "index",
|
|
18
18
|
props: data.dataProps,
|
|
19
19
|
emits: data.dataEmits,
|
|
20
20
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
21
|
-
const attrs = index.useInherit(
|
|
22
|
-
const slots =
|
|
21
|
+
const attrs = index.useInherit(vues.useAttrs());
|
|
22
|
+
const slots = vues.useSlots();
|
|
23
23
|
const cs = index$1.useCssName("input-select");
|
|
24
24
|
const props = __props;
|
|
25
25
|
const emit = __emit;
|
|
26
|
-
const visible =
|
|
27
|
-
const width =
|
|
28
|
-
const refInput =
|
|
29
|
-
const isfocus =
|
|
30
|
-
const isFiletr =
|
|
31
|
-
const value =
|
|
26
|
+
const visible = vues.ref(false);
|
|
27
|
+
const width = vues.ref(200);
|
|
28
|
+
const refInput = vues.ref();
|
|
29
|
+
const isfocus = vues.ref(false);
|
|
30
|
+
const isFiletr = vues.ref(false);
|
|
31
|
+
const value = vues.computed({
|
|
32
32
|
get() {
|
|
33
33
|
let v = props.modelValue;
|
|
34
34
|
return v;
|
|
@@ -37,7 +37,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
37
37
|
emit("update:modelValue", value2);
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
|
-
const options =
|
|
40
|
+
const options = vues.computed(() => {
|
|
41
41
|
if (props.filterable && value.value && isFiletr.value) {
|
|
42
42
|
return props.options.filter((o) => {
|
|
43
43
|
return (use.useVueValue(o, props.prop) + "").includes(
|
|
@@ -47,7 +47,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
47
47
|
}
|
|
48
48
|
return props.options;
|
|
49
49
|
});
|
|
50
|
-
const isclear =
|
|
50
|
+
const isclear = vues.computed(() => {
|
|
51
51
|
if (props.readonly) {
|
|
52
52
|
return false;
|
|
53
53
|
}
|
|
@@ -111,89 +111,89 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
111
111
|
visible.value = !visible.value;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
|
|
114
|
+
vues.onMounted(() => {
|
|
115
115
|
setWidth();
|
|
116
116
|
});
|
|
117
117
|
__expose({
|
|
118
118
|
...data.dataExpose
|
|
119
119
|
});
|
|
120
120
|
return (_ctx, _cache) => {
|
|
121
|
-
return
|
|
121
|
+
return vues.openBlock(), vues.createBlock(vues.unref(index$2.ElPopover), {
|
|
122
122
|
trigger: "click",
|
|
123
|
-
"popper-class":
|
|
123
|
+
"popper-class": vues.unref(cs).z("popper"),
|
|
124
124
|
visible: visible.value,
|
|
125
125
|
disabled: props.disabled || !(options.value && options.value.length > 0),
|
|
126
126
|
width: width.value
|
|
127
127
|
}, {
|
|
128
|
-
reference:
|
|
129
|
-
|
|
130
|
-
class: [
|
|
131
|
-
},
|
|
132
|
-
|
|
128
|
+
reference: vues.withCtx(() => [
|
|
129
|
+
vues.createElementVNode("div", vues.mergeProps({
|
|
130
|
+
class: [vues.unref(cs).z(), vues.unref(cs).is("disabled", props.disabled)]
|
|
131
|
+
}, vues.unref(attrs).root, { onClick }), [
|
|
132
|
+
vues.createVNode(vues.unref(index$3.ElInput), vues.mergeProps({
|
|
133
133
|
ref_key: "refInput",
|
|
134
134
|
ref: refInput,
|
|
135
135
|
modelValue: value.value,
|
|
136
136
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
137
|
-
},
|
|
137
|
+
}, vues.unref(attrs).assem, {
|
|
138
138
|
disabled: props.disabled,
|
|
139
139
|
readonly: props.readonly,
|
|
140
140
|
onInput,
|
|
141
141
|
onFocus,
|
|
142
142
|
onBlur,
|
|
143
143
|
clearable: false
|
|
144
|
-
}),
|
|
145
|
-
suffix:
|
|
146
|
-
isclear.value ? (
|
|
144
|
+
}), vues.createSlots({
|
|
145
|
+
suffix: vues.withCtx(() => [
|
|
146
|
+
isclear.value ? (vues.openBlock(), vues.createBlock(vues.unref(index$4.Icon), {
|
|
147
147
|
key: 0,
|
|
148
|
-
class:
|
|
149
|
-
onClick:
|
|
148
|
+
class: vues.normalizeClass([vues.unref(cs).z("select-icon"), "clear"]),
|
|
149
|
+
onClick: vues.withModifiers(onClear, ["stop"])
|
|
150
150
|
}, {
|
|
151
|
-
default:
|
|
152
|
-
|
|
151
|
+
default: vues.withCtx(() => [
|
|
152
|
+
vues.createVNode(clear.default)
|
|
153
153
|
]),
|
|
154
154
|
_: 1
|
|
155
|
-
}, 8, ["class"])) :
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
class:
|
|
159
|
-
|
|
160
|
-
|
|
155
|
+
}, 8, ["class"])) : vues.createCommentVNode("", true),
|
|
156
|
+
vues.renderSlot(_ctx.$slots, vues.unref(data.dataSlot).suffix),
|
|
157
|
+
vues.createElementVNode("span", {
|
|
158
|
+
class: vues.normalizeClass([
|
|
159
|
+
vues.unref(cs).z("select-icon"),
|
|
160
|
+
vues.unref(cs).is("reverse", visible.value)
|
|
161
161
|
])
|
|
162
162
|
}, [
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
vues.renderSlot(_ctx.$slots, vues.unref(data.dataSlot).iconSelect, {}, () => [
|
|
164
|
+
vues.createVNode(below.default)
|
|
165
165
|
])
|
|
166
166
|
], 2)
|
|
167
167
|
]),
|
|
168
168
|
_: 2
|
|
169
169
|
}, [
|
|
170
|
-
|
|
170
|
+
vues.renderList(Object.keys(vues.unref(slots)), (k, index2) => {
|
|
171
171
|
return {
|
|
172
172
|
name: k,
|
|
173
|
-
fn:
|
|
174
|
-
|
|
173
|
+
fn: vues.withCtx(() => [
|
|
174
|
+
vues.renderSlot(_ctx.$slots, k)
|
|
175
175
|
])
|
|
176
176
|
};
|
|
177
177
|
})
|
|
178
178
|
]), 1040, ["modelValue", "disabled", "readonly"])
|
|
179
179
|
], 16)
|
|
180
180
|
]),
|
|
181
|
-
default:
|
|
182
|
-
|
|
183
|
-
class:
|
|
181
|
+
default: vues.withCtx(() => [
|
|
182
|
+
vues.createElementVNode("div", {
|
|
183
|
+
class: vues.normalizeClass(vues.unref(cs).z("select"))
|
|
184
184
|
}, [
|
|
185
|
-
|
|
186
|
-
class:
|
|
185
|
+
vues.createElementVNode("ul", {
|
|
186
|
+
class: vues.normalizeClass(vues.unref(cs).z("select-ul"))
|
|
187
187
|
}, [
|
|
188
|
-
(
|
|
189
|
-
return
|
|
190
|
-
class:
|
|
191
|
-
|
|
192
|
-
|
|
188
|
+
(vues.openBlock(true), vues.createElementBlock(vues.Fragment, null, vues.renderList(options.value, (item) => {
|
|
189
|
+
return vues.openBlock(), vues.createElementBlock("li", {
|
|
190
|
+
class: vues.normalizeClass([
|
|
191
|
+
vues.unref(cs).z("select-li"),
|
|
192
|
+
vues.unref(cs).is("disabled", item == null ? void 0 : item.disabled),
|
|
193
193
|
getSelected(item)
|
|
194
194
|
]),
|
|
195
|
-
onClick:
|
|
196
|
-
},
|
|
195
|
+
onClick: vues.withModifiers(($event) => onClickSelect(item), ["stop"])
|
|
196
|
+
}, vues.toDisplayString(vues.unref(use.useVueValue)(item, props.label)), 11, _hoisted_1);
|
|
197
197
|
}), 256))
|
|
198
198
|
], 2)
|
|
199
199
|
], 2)
|
|
@@ -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/input-tag/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("input-tag");
|
|
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.ElInputTag), vues.mergeProps({
|
|
22
|
+
class: vues.unref(cs).z()
|
|
23
|
+
}, vues.unref(attrs)), vues.createSlots({ _: 2 }, [
|
|
24
|
+
vues.renderList(Object.keys(vues.unref(slots)), (k) => {
|
|
25
25
|
return {
|
|
26
26
|
name: k,
|
|
27
|
-
fn:
|
|
28
|
-
|
|
27
|
+
fn: vues.withCtx((scope) => [
|
|
28
|
+
vues.renderSlot(_ctx.$slots, k, vues.normalizeProps(vues.guardReactiveProps(scope)))
|
|
29
29
|
])
|
|
30
30
|
};
|
|
31
31
|
})
|
|
@@ -1,27 +1,27 @@
|
|
|
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$4 = require("../../../directives/expose/index.cjs");
|
|
5
5
|
const index$3 = require("element-plus/es/components/input/index");
|
|
6
6
|
const data = require("./data.cjs");
|
|
7
7
|
const index$2 = require("../../../hooks/cssname/index.cjs");
|
|
8
8
|
const index$1 = require("../../../hooks/inherit/index.cjs");
|
|
9
9
|
const index = require("../../../hooks/locale/index.cjs");
|
|
10
|
-
const _sfc_main = /* @__PURE__ */
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
11
11
|
...{ inheritAttrs: false },
|
|
12
12
|
__name: "index",
|
|
13
13
|
props: data.dataProps,
|
|
14
14
|
emits: data.dataEmits,
|
|
15
15
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
16
16
|
const { getLocale } = index.useLocale();
|
|
17
|
-
const attrs = index$1.useInherit(
|
|
17
|
+
const attrs = index$1.useInherit(vues.useAttrs());
|
|
18
18
|
const cs = index$2.useCssName("inputs");
|
|
19
19
|
const props = __props;
|
|
20
|
-
const slots =
|
|
20
|
+
const slots = vues.useSlots();
|
|
21
21
|
const emit = __emit;
|
|
22
|
-
const refEl =
|
|
22
|
+
const refEl = vues.ref();
|
|
23
23
|
const once = setOnce();
|
|
24
|
-
const placeholder =
|
|
24
|
+
const placeholder = vues.computed(() => {
|
|
25
25
|
if (typeof props.placeholder == "undefined") {
|
|
26
26
|
return getLocale("form.import");
|
|
27
27
|
} else {
|
|
@@ -32,7 +32,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
|
-
const value =
|
|
35
|
+
const value = vues.computed({
|
|
36
36
|
get() {
|
|
37
37
|
let v = props.modelValue;
|
|
38
38
|
return v;
|
|
@@ -54,26 +54,26 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
54
54
|
el: refEl
|
|
55
55
|
});
|
|
56
56
|
return (_ctx, _cache) => {
|
|
57
|
-
return
|
|
57
|
+
return vues.openBlock(), vues.createElementBlock("div", vues.mergeProps({
|
|
58
58
|
ref_key: "refEl",
|
|
59
59
|
ref: refEl,
|
|
60
|
-
class:
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
class:
|
|
60
|
+
class: vues.unref(cs).z()
|
|
61
|
+
}, vues.unref(attrs).root), [
|
|
62
|
+
vues.withDirectives((vues.openBlock(), vues.createBlock(vues.unref(index$3.ElInput), vues.mergeProps({
|
|
63
|
+
class: vues.unref(cs).z("input"),
|
|
64
64
|
modelValue: value.value,
|
|
65
65
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
66
|
-
},
|
|
67
|
-
|
|
66
|
+
}, vues.unref(attrs).assem, { placeholder: placeholder.value }), vues.createSlots({ _: 2 }, [
|
|
67
|
+
vues.renderList(Object.keys(vues.unref(slots)), (k, index2) => {
|
|
68
68
|
return {
|
|
69
69
|
name: k,
|
|
70
|
-
fn:
|
|
71
|
-
|
|
70
|
+
fn: vues.withCtx(() => [
|
|
71
|
+
vues.renderSlot(_ctx.$slots, k)
|
|
72
72
|
])
|
|
73
73
|
};
|
|
74
74
|
})
|
|
75
75
|
]), 1040, ["class", "modelValue", "placeholder"])), [
|
|
76
|
-
[
|
|
76
|
+
[vues.unref(index$4.default), {}]
|
|
77
77
|
])
|
|
78
78
|
], 16);
|
|
79
79
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
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$2 = require("../../../hooks/cssname/index.cjs");
|
|
6
6
|
const index$1 = require("../../../hooks/locale/index.cjs");
|
|
7
7
|
const index = require("../../../hooks/inherit/index.cjs");
|
|
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,
|
|
12
12
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
13
|
-
const attrs = index.useInherit(
|
|
13
|
+
const attrs = index.useInherit(vues.useAttrs());
|
|
14
14
|
const { getLocale } = index$1.useLocale();
|
|
15
15
|
const cs = index$2.useCssName("keep-com");
|
|
16
16
|
const props = __props;
|
|
17
17
|
const emit = __emit;
|
|
18
|
-
const hideComs =
|
|
19
|
-
const value =
|
|
18
|
+
const hideComs = vues.reactive([]);
|
|
19
|
+
const value = vues.computed(() => {
|
|
20
20
|
return props.is;
|
|
21
21
|
});
|
|
22
22
|
const sethideComs = () => {
|
|
@@ -25,7 +25,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
25
25
|
if (!hideComs.map((o) => o.name).includes(name)) {
|
|
26
26
|
hideComs.push({
|
|
27
27
|
name,
|
|
28
|
-
component:
|
|
28
|
+
component: vues.h(vues.resolveComponent(name), {
|
|
29
29
|
...attrs.assem,
|
|
30
30
|
style: {
|
|
31
31
|
display: value.value != name ? "block" : "none"
|
|
@@ -35,7 +35,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
|
|
38
|
+
vues.watch(
|
|
39
39
|
[
|
|
40
40
|
() => props.is,
|
|
41
41
|
() => props.hides,
|
|
@@ -51,24 +51,24 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
51
51
|
deep: true
|
|
52
52
|
}
|
|
53
53
|
);
|
|
54
|
-
const HideComponent =
|
|
54
|
+
const HideComponent = vues.defineComponent({
|
|
55
55
|
props: {},
|
|
56
56
|
setup() {
|
|
57
|
-
return
|
|
57
|
+
return vues.h("div", {}, hideComs);
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
__expose({
|
|
61
61
|
...data.dataExpose
|
|
62
62
|
});
|
|
63
63
|
return (_ctx, _cache) => {
|
|
64
|
-
return
|
|
65
|
-
class:
|
|
66
|
-
},
|
|
67
|
-
|
|
68
|
-
[
|
|
64
|
+
return vues.openBlock(), vues.createElementBlock("div", vues.mergeProps({
|
|
65
|
+
class: vues.unref(cs).z()
|
|
66
|
+
}, vues.unref(attrs).root), [
|
|
67
|
+
vues.withDirectives(vues.createVNode(vues.unref(HideComponent), null, null, 512), [
|
|
68
|
+
[vues.vShow, props.hides.includes(props.is)]
|
|
69
69
|
]),
|
|
70
|
-
|
|
71
|
-
[
|
|
70
|
+
vues.withDirectives((vues.openBlock(), vues.createBlock(vues.resolveDynamicComponent(props.is), vues.normalizeProps(vues.guardReactiveProps(vues.unref(attrs).assem)), null, 16)), [
|
|
71
|
+
[vues.vShow, !props.hides.includes(props.is)]
|
|
72
72
|
])
|
|
73
73
|
], 16);
|
|
74
74
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
const index$2 = require("../../checks/index.cjs");
|
|
5
5
|
const index$1 = require("../../selects/index.cjs");
|
|
6
6
|
const use = require("../../common/use.cjs");
|
|
7
7
|
const index = require("../../../hooks/cssname/index.cjs");
|
|
8
8
|
const data = require("./data.cjs");
|
|
9
9
|
const wholeClass = "labels-li-whole";
|
|
10
|
-
const _sfc_main = /* @__PURE__ */
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
11
11
|
__name: "index",
|
|
12
12
|
props: data.dataProps,
|
|
13
13
|
emits: data.dataEmits,
|
|
@@ -15,7 +15,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
15
15
|
const cs = index.useCssName("labels");
|
|
16
16
|
const props = __props;
|
|
17
17
|
const emit = __emit;
|
|
18
|
-
const comps =
|
|
18
|
+
const comps = vues.computed(() => {
|
|
19
19
|
if (props.select) {
|
|
20
20
|
return index$1.Selects;
|
|
21
21
|
} else {
|
|
@@ -36,7 +36,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
const wholeValue = "__Symbol('whole')__" + (/* @__PURE__ */ new Date()).valueOf();
|
|
39
|
-
const options =
|
|
39
|
+
const options = vues.computed(() => {
|
|
40
40
|
const opts = [...props.options];
|
|
41
41
|
if (!props.nowhole) {
|
|
42
42
|
const obj = {
|
|
@@ -52,7 +52,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
52
52
|
}
|
|
53
53
|
return opts;
|
|
54
54
|
});
|
|
55
|
-
const valueMultiple =
|
|
55
|
+
const valueMultiple = vues.computed({
|
|
56
56
|
get() {
|
|
57
57
|
if (value.value !== void 0) {
|
|
58
58
|
if (value.value.length === props.options.filter((item) => !item.disabled).length) {
|
|
@@ -95,20 +95,20 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
return (_ctx, _cache) => {
|
|
98
|
-
return
|
|
99
|
-
class:
|
|
98
|
+
return vues.openBlock(), vues.createElementBlock("div", {
|
|
99
|
+
class: vues.normalizeClass([vues.unref(cs).z(), vues.unref(cs).is("compact", props.compact)])
|
|
100
100
|
}, [
|
|
101
|
-
|
|
102
|
-
class: [
|
|
101
|
+
vues.unref(multiple) ? (vues.openBlock(), vues.createBlock(vues.resolveDynamicComponent(comps.value), vues.mergeProps({ key: 0 }, props, {
|
|
102
|
+
class: [vues.unref(cs).z("whole")],
|
|
103
103
|
options: options.value,
|
|
104
104
|
modelValue: valueMultiple.value,
|
|
105
105
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => valueMultiple.value = $event),
|
|
106
|
-
multiple:
|
|
106
|
+
multiple: vues.unref(multiple),
|
|
107
107
|
onClickMultiple: onClickWholes
|
|
108
|
-
}), null, 16, ["class", "options", "modelValue", "multiple"])) : (
|
|
108
|
+
}), null, 16, ["class", "options", "modelValue", "multiple"])) : (vues.openBlock(), vues.createBlock(vues.resolveDynamicComponent(comps.value), vues.mergeProps({ key: 1 }, props, {
|
|
109
109
|
options: options.value,
|
|
110
|
-
modelValue:
|
|
111
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) =>
|
|
110
|
+
modelValue: vues.unref(value),
|
|
111
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vues.isRef(value) ? value.value = $event : null)
|
|
112
112
|
}), null, 16, ["options", "modelValue"]))
|
|
113
113
|
], 2);
|
|
114
114
|
};
|
|
@@ -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 util = require("./util.cjs");
|
|
5
5
|
const css = require("../../common/css.cjs");
|
|
6
6
|
const use = require("../../common/use.cjs");
|
|
@@ -12,7 +12,7 @@ const img_vue_vue_type_script_setup_true_lang = require("../../tables/common/img
|
|
|
12
12
|
const Components = {
|
|
13
13
|
Img: img_vue_vue_type_script_setup_true_lang.default
|
|
14
14
|
};
|
|
15
|
-
const _sfc_main =
|
|
15
|
+
const _sfc_main = vues.defineComponent({
|
|
16
16
|
emits: data.dataEmits,
|
|
17
17
|
components: Components,
|
|
18
18
|
expose: data.dataExpose,
|
|
@@ -20,9 +20,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
20
20
|
setup(props, { emit, slots }) {
|
|
21
21
|
const compons$1 = compons.getCompons(props.compons);
|
|
22
22
|
const cs = index.useCssName("list");
|
|
23
|
-
const isfocus =
|
|
24
|
-
const rowObj =
|
|
25
|
-
const borderColor =
|
|
23
|
+
const isfocus = vues.ref(false);
|
|
24
|
+
const rowObj = vues.ref();
|
|
25
|
+
const borderColor = vues.computed(() => {
|
|
26
26
|
const d = "#ccc";
|
|
27
27
|
if (typeof props.border === "boolean") {
|
|
28
28
|
return d;
|
|
@@ -67,19 +67,19 @@ const _sfc_main = vue.defineComponent({
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
if (is) {
|
|
70
|
-
arr.push(
|
|
70
|
+
arr.push(vues.h("tr", {}, trs));
|
|
71
71
|
trs = [];
|
|
72
72
|
}
|
|
73
73
|
trs.push(...getTd(obj, index2));
|
|
74
74
|
if (lin >= props.column) {
|
|
75
|
-
arr.push(
|
|
75
|
+
arr.push(vues.h("tr", {}, trs));
|
|
76
76
|
trs = [];
|
|
77
77
|
lin = 0;
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
81
|
if (trs.length > 0) {
|
|
82
|
-
arr.push(
|
|
82
|
+
arr.push(vues.h("tr", {}, trs));
|
|
83
83
|
}
|
|
84
84
|
return arr;
|
|
85
85
|
};
|
|
@@ -105,9 +105,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
if (is) {
|
|
108
|
-
arr.push(
|
|
108
|
+
arr.push(vues.h("tr", {}, trls));
|
|
109
109
|
trls = [];
|
|
110
|
-
arr.push(
|
|
110
|
+
arr.push(vues.h("tr", {}, trvs));
|
|
111
111
|
trvs = [];
|
|
112
112
|
}
|
|
113
113
|
if (obj.isdiv) {
|
|
@@ -117,8 +117,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
117
117
|
trvs.push(getValue(obj, index2));
|
|
118
118
|
}
|
|
119
119
|
if (lin >= props.column) {
|
|
120
|
-
arr.push(
|
|
121
|
-
arr.push(
|
|
120
|
+
arr.push(vues.h("tr", {}, trls));
|
|
121
|
+
arr.push(vues.h("tr", {}, trvs));
|
|
122
122
|
trls = [];
|
|
123
123
|
trvs = [];
|
|
124
124
|
lin = 0;
|
|
@@ -126,13 +126,13 @@ const _sfc_main = vue.defineComponent({
|
|
|
126
126
|
}
|
|
127
127
|
});
|
|
128
128
|
if (trls.length > 0) {
|
|
129
|
-
arr.push(
|
|
130
|
-
arr.push(
|
|
129
|
+
arr.push(vues.h("tr", {}, trls));
|
|
130
|
+
arr.push(vues.h("tr", {}, trvs));
|
|
131
131
|
}
|
|
132
132
|
return arr;
|
|
133
133
|
};
|
|
134
134
|
const getlabel = (obj, index2) => {
|
|
135
|
-
return
|
|
135
|
+
return vues.h(
|
|
136
136
|
"th",
|
|
137
137
|
{
|
|
138
138
|
style: {
|
|
@@ -152,7 +152,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
152
152
|
}
|
|
153
153
|
},
|
|
154
154
|
[
|
|
155
|
-
|
|
155
|
+
vues.h(
|
|
156
156
|
"span",
|
|
157
157
|
{
|
|
158
158
|
class: cs.z("table-label")
|
|
@@ -175,7 +175,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
175
175
|
const getChildrenValue = (obj, index2) => {
|
|
176
176
|
if (obj.children) {
|
|
177
177
|
return [
|
|
178
|
-
|
|
178
|
+
vues.h(
|
|
179
179
|
"div",
|
|
180
180
|
{
|
|
181
181
|
class: cs.z("table-children")
|
|
@@ -187,7 +187,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
187
187
|
];
|
|
188
188
|
} else {
|
|
189
189
|
return [
|
|
190
|
-
|
|
190
|
+
vues.h(
|
|
191
191
|
"span",
|
|
192
192
|
{
|
|
193
193
|
class: cs.z("table-value")
|
|
@@ -209,7 +209,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
209
209
|
}
|
|
210
210
|
};
|
|
211
211
|
const getValue = (obj, index2, isRow) => {
|
|
212
|
-
return
|
|
212
|
+
return vues.h(
|
|
213
213
|
"td",
|
|
214
214
|
{
|
|
215
215
|
style: css.setStyles(obj, props.value, props),
|
|
@@ -237,14 +237,14 @@ const _sfc_main = vue.defineComponent({
|
|
|
237
237
|
}
|
|
238
238
|
if (props.labelPosition == "auto") {
|
|
239
239
|
return [
|
|
240
|
-
|
|
240
|
+
vues.h(
|
|
241
241
|
"td",
|
|
242
242
|
{
|
|
243
243
|
colspan: setColspan(obj),
|
|
244
244
|
class: cs.is("whole", obj.whole)
|
|
245
245
|
},
|
|
246
246
|
[
|
|
247
|
-
|
|
247
|
+
vues.h(
|
|
248
248
|
"div",
|
|
249
249
|
{
|
|
250
250
|
class: cs.z("table-auto")
|
|
@@ -280,7 +280,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
280
280
|
};
|
|
281
281
|
const renderValue = () => {
|
|
282
282
|
if (props.list && props.list.length > 0) {
|
|
283
|
-
return
|
|
283
|
+
return vues.h(
|
|
284
284
|
"div",
|
|
285
285
|
{
|
|
286
286
|
class: cs.z("div"),
|
|
@@ -294,7 +294,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
294
294
|
// },
|
|
295
295
|
},
|
|
296
296
|
[
|
|
297
|
-
|
|
297
|
+
vues.h(
|
|
298
298
|
"table",
|
|
299
299
|
{
|
|
300
300
|
class: [
|
|
@@ -318,7 +318,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
318
318
|
return "";
|
|
319
319
|
}
|
|
320
320
|
};
|
|
321
|
-
|
|
321
|
+
vues.onMounted(() => {
|
|
322
322
|
if (window) {
|
|
323
323
|
window.addEventListener("click", () => {
|
|
324
324
|
isfocus.value = false;
|