@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 index$4 = require("../../icon/index.cjs");
|
|
5
5
|
const clear = require("../../../icons/vue/clear.cjs");
|
|
6
6
|
const index$2 = require("../../../hooks/expose/index.cjs");
|
|
@@ -13,26 +13,26 @@ const index$5 = require("../../inputs/index.cjs");
|
|
|
13
13
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
14
14
|
const index = require("../../../hooks/inherit/index.cjs");
|
|
15
15
|
const _hoisted_1 = ["onClick"];
|
|
16
|
-
const _sfc_main = /* @__PURE__ */
|
|
16
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
17
17
|
...{ inheritAttrs: false },
|
|
18
18
|
__name: "index",
|
|
19
19
|
props: data.dataProps,
|
|
20
20
|
emits: data.dataEmits,
|
|
21
21
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
22
|
-
const attrs = index.useInherit(
|
|
23
|
-
const slots =
|
|
22
|
+
const attrs = index.useInherit(vue.useAttrs());
|
|
23
|
+
const slots = vue.useSlots();
|
|
24
24
|
const cs = index$1.useCssName("input-history");
|
|
25
25
|
const props = __props;
|
|
26
26
|
const emit = __emit;
|
|
27
|
-
const visible =
|
|
28
|
-
const width =
|
|
29
|
-
const refInput =
|
|
27
|
+
const visible = vue.ref(false);
|
|
28
|
+
const width = vue.ref(200);
|
|
29
|
+
const refInput = vue.ref();
|
|
30
30
|
const options = util.useStorage(
|
|
31
31
|
props.storage || (/* @__PURE__ */ new Date()).getTime() + "",
|
|
32
32
|
[]
|
|
33
33
|
);
|
|
34
|
-
const value =
|
|
35
|
-
|
|
34
|
+
const value = vue.ref("");
|
|
35
|
+
vue.watch(
|
|
36
36
|
() => props.modelValue,
|
|
37
37
|
() => {
|
|
38
38
|
value.value = props.modelValue || "";
|
|
@@ -87,7 +87,7 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
87
87
|
options.value = [];
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
|
|
90
|
+
vue.onMounted(() => {
|
|
91
91
|
setWidth();
|
|
92
92
|
});
|
|
93
93
|
__expose(
|
|
@@ -99,87 +99,87 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
99
99
|
)
|
|
100
100
|
);
|
|
101
101
|
return (_ctx, _cache) => {
|
|
102
|
-
return
|
|
103
|
-
class: [
|
|
104
|
-
},
|
|
105
|
-
|
|
102
|
+
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
103
|
+
class: [vue.unref(cs).z()]
|
|
104
|
+
}, vue.unref(attrs).root), [
|
|
105
|
+
vue.createVNode(vue.unref(index$3.Popover), {
|
|
106
106
|
trigger: "click",
|
|
107
|
-
"popper-class":
|
|
107
|
+
"popper-class": vue.unref(cs).z("popper"),
|
|
108
108
|
visible: visible.value,
|
|
109
|
-
disabled: props.disabled ||
|
|
109
|
+
disabled: props.disabled || vue.unref(options).length == 0,
|
|
110
110
|
width: width.value
|
|
111
111
|
}, {
|
|
112
|
-
reference:
|
|
113
|
-
|
|
112
|
+
reference: vue.withCtx(() => [
|
|
113
|
+
vue.createVNode(vue.unref(index$5.Inputs), vue.mergeProps({
|
|
114
114
|
ref_key: "refInput",
|
|
115
115
|
ref: refInput,
|
|
116
116
|
modelValue: value.value,
|
|
117
117
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
118
|
-
},
|
|
118
|
+
}, vue.unref(attrs).assem, {
|
|
119
119
|
disabled: props.disabled,
|
|
120
120
|
onInput,
|
|
121
121
|
onFocus,
|
|
122
122
|
onBlur,
|
|
123
|
-
onKeyup: _cache[1] || (_cache[1] =
|
|
123
|
+
onKeyup: _cache[1] || (_cache[1] = vue.withKeys(
|
|
124
124
|
() => {
|
|
125
125
|
if (!props.buts) onChange();
|
|
126
126
|
},
|
|
127
127
|
["enter", "native"]
|
|
128
128
|
)),
|
|
129
129
|
onClear
|
|
130
|
-
}),
|
|
131
|
-
|
|
130
|
+
}), vue.createSlots({ _: 2 }, [
|
|
131
|
+
vue.renderList(Object.keys(vue.unref(slots)), (k, index2) => {
|
|
132
132
|
return {
|
|
133
133
|
name: k,
|
|
134
|
-
fn:
|
|
135
|
-
|
|
134
|
+
fn: vue.withCtx(() => [
|
|
135
|
+
vue.renderSlot(_ctx.$slots, k)
|
|
136
136
|
])
|
|
137
137
|
};
|
|
138
138
|
})
|
|
139
139
|
]), 1040, ["modelValue", "disabled"])
|
|
140
140
|
]),
|
|
141
|
-
default:
|
|
142
|
-
|
|
141
|
+
default: vue.withCtx(() => [
|
|
142
|
+
vue.unref(options).length > 0 ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
143
143
|
key: 0,
|
|
144
|
-
class:
|
|
144
|
+
class: vue.normalizeClass(vue.unref(cs).z("select"))
|
|
145
145
|
}, [
|
|
146
|
-
|
|
147
|
-
class:
|
|
146
|
+
vue.createElementVNode("ul", {
|
|
147
|
+
class: vue.normalizeClass(vue.unref(cs).z("select-ul"))
|
|
148
148
|
}, [
|
|
149
|
-
(
|
|
150
|
-
return
|
|
151
|
-
class:
|
|
152
|
-
onClick:
|
|
149
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(options), (item) => {
|
|
150
|
+
return vue.openBlock(), vue.createElementBlock("li", {
|
|
151
|
+
class: vue.normalizeClass([vue.unref(cs).z("select-li")]),
|
|
152
|
+
onClick: vue.withModifiers(($event) => onClickSelect(item), ["stop"])
|
|
153
153
|
}, [
|
|
154
|
-
|
|
155
|
-
props.clean ? (
|
|
154
|
+
vue.createElementVNode("span", null, vue.toDisplayString(item), 1),
|
|
155
|
+
props.clean ? (vue.openBlock(), vue.createBlock(vue.unref(index$4.Icon), {
|
|
156
156
|
key: 0,
|
|
157
|
-
class:
|
|
158
|
-
onClick:
|
|
157
|
+
class: vue.normalizeClass([vue.unref(cs).z("select-li-clean")]),
|
|
158
|
+
onClick: vue.withModifiers(($event) => onClean(item), ["stop"])
|
|
159
159
|
}, {
|
|
160
|
-
default:
|
|
161
|
-
|
|
160
|
+
default: vue.withCtx(() => [
|
|
161
|
+
vue.createVNode(clear.default)
|
|
162
162
|
]),
|
|
163
163
|
_: 1
|
|
164
|
-
}, 8, ["class", "onClick"])) :
|
|
164
|
+
}, 8, ["class", "onClick"])) : vue.createCommentVNode("", true)
|
|
165
165
|
], 10, _hoisted_1);
|
|
166
166
|
}), 256))
|
|
167
167
|
], 2)
|
|
168
|
-
], 2)) :
|
|
168
|
+
], 2)) : vue.createCommentVNode("", true)
|
|
169
169
|
]),
|
|
170
170
|
_: 3
|
|
171
171
|
}, 8, ["popper-class", "visible", "disabled", "width"]),
|
|
172
|
-
props.buts ? (
|
|
172
|
+
props.buts ? (vue.openBlock(), vue.createBlock(vue.unref(index$6.Button), vue.mergeProps({
|
|
173
173
|
key: 0,
|
|
174
|
-
class: [
|
|
174
|
+
class: [vue.unref(cs).z("but"), props.buts.class]
|
|
175
175
|
}, props.buts, {
|
|
176
|
-
onClick:
|
|
176
|
+
onClick: vue.withModifiers(onChange, ["stop"])
|
|
177
177
|
}), {
|
|
178
|
-
default:
|
|
179
|
-
|
|
178
|
+
default: vue.withCtx(() => [
|
|
179
|
+
vue.createTextVNode(vue.toDisplayString(props.buts.label), 1)
|
|
180
180
|
]),
|
|
181
181
|
_: 1
|
|
182
|
-
}, 16, ["class"])) :
|
|
182
|
+
}, 16, ["class"])) : vue.createCommentVNode("", true)
|
|
183
183
|
], 16);
|
|
184
184
|
};
|
|
185
185
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
3
|
+
const vue = require("vue");
|
|
4
4
|
const local = require("../../../utils/local.cjs");
|
|
5
5
|
function replaceAfter(arr, obj, id, is) {
|
|
6
6
|
const varr = [];
|
|
@@ -82,8 +82,8 @@ const useStorage = (storage, d, is) => {
|
|
|
82
82
|
get = local.getSession;
|
|
83
83
|
set = local.setSession;
|
|
84
84
|
}
|
|
85
|
-
const value =
|
|
86
|
-
const w =
|
|
85
|
+
const value = vue.ref(get(storage) || d);
|
|
86
|
+
const w = vue.watch(
|
|
87
87
|
() => value.value,
|
|
88
88
|
(v) => {
|
|
89
89
|
set(storage, v);
|
|
@@ -92,7 +92,7 @@ const useStorage = (storage, d, is) => {
|
|
|
92
92
|
deep: true
|
|
93
93
|
}
|
|
94
94
|
);
|
|
95
|
-
|
|
95
|
+
vue.onUnmounted(() => {
|
|
96
96
|
w();
|
|
97
97
|
});
|
|
98
98
|
return value;
|
|
@@ -1,25 +1,25 @@
|
|
|
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("../../../hooks/expose/index.cjs");
|
|
5
5
|
const index$3 = require("../../input-number/index.cjs");
|
|
6
6
|
const data = require("./data.cjs");
|
|
7
7
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
8
8
|
const index = require("../../../hooks/inherit/index.cjs");
|
|
9
|
-
const _sfc_main = /* @__PURE__ */
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
10
10
|
...{ inheritAttrs: false },
|
|
11
11
|
__name: "index",
|
|
12
12
|
props: data.dataProps,
|
|
13
13
|
emits: data.dataEmits,
|
|
14
14
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
15
|
-
const attrs = index.useInherit(
|
|
15
|
+
const attrs = index.useInherit(vue.useAttrs());
|
|
16
16
|
const cs = index$1.useCssName("input-num");
|
|
17
17
|
const props = __props;
|
|
18
|
-
const slots =
|
|
18
|
+
const slots = vue.useSlots();
|
|
19
19
|
const emit = __emit;
|
|
20
|
-
const refEl =
|
|
21
|
-
const elRef =
|
|
22
|
-
const value =
|
|
20
|
+
const refEl = vue.ref();
|
|
21
|
+
const elRef = vue.ref();
|
|
22
|
+
const value = vue.computed({
|
|
23
23
|
get() {
|
|
24
24
|
let v = props.modelValue;
|
|
25
25
|
return v;
|
|
@@ -37,25 +37,25 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
37
37
|
)
|
|
38
38
|
);
|
|
39
39
|
return (_ctx, _cache) => {
|
|
40
|
-
return
|
|
40
|
+
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
41
41
|
ref_key: "refEl",
|
|
42
42
|
ref: refEl,
|
|
43
|
-
class:
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
class:
|
|
43
|
+
class: vue.unref(cs).z()
|
|
44
|
+
}, vue.unref(attrs).root), [
|
|
45
|
+
vue.createVNode(vue.unref(index$3.InputNumber), vue.mergeProps({
|
|
46
|
+
class: vue.unref(cs).z("input"),
|
|
47
47
|
ref_key: "elRef",
|
|
48
48
|
ref: elRef,
|
|
49
49
|
modelValue: value.value,
|
|
50
50
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
51
|
-
},
|
|
51
|
+
}, vue.unref(attrs).assem, {
|
|
52
52
|
placeholder: props.placeholder
|
|
53
|
-
}),
|
|
54
|
-
|
|
53
|
+
}), vue.createSlots({ _: 2 }, [
|
|
54
|
+
vue.renderList(Object.keys(vue.unref(slots)), (k, index2) => {
|
|
55
55
|
return {
|
|
56
56
|
name: k,
|
|
57
|
-
fn:
|
|
58
|
-
|
|
57
|
+
fn: vue.withCtx(() => [
|
|
58
|
+
vue.renderSlot(_ctx.$slots, k)
|
|
59
59
|
])
|
|
60
60
|
};
|
|
61
61
|
})
|
|
@@ -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/input-number/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("input-number");
|
|
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.ElInputNumber), 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
|
})
|
|
@@ -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("../../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__ */ vue.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(vue.useAttrs());
|
|
22
|
+
const slots = vue.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 = vue.ref(false);
|
|
27
|
+
const width = vue.ref(200);
|
|
28
|
+
const refInput = vue.ref();
|
|
29
|
+
const isfocus = vue.ref(false);
|
|
30
|
+
const isFiletr = vue.ref(false);
|
|
31
|
+
const value = vue.computed({
|
|
32
32
|
get() {
|
|
33
33
|
let v = props.modelValue;
|
|
34
34
|
return v;
|
|
@@ -37,7 +37,7 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
37
37
|
emit("update:modelValue", value2);
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
|
-
const options =
|
|
40
|
+
const options = vue.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__ */ vues.defineComponent({
|
|
|
47
47
|
}
|
|
48
48
|
return props.options;
|
|
49
49
|
});
|
|
50
|
-
const isclear =
|
|
50
|
+
const isclear = vue.computed(() => {
|
|
51
51
|
if (props.readonly) {
|
|
52
52
|
return false;
|
|
53
53
|
}
|
|
@@ -111,89 +111,89 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
111
111
|
visible.value = !visible.value;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
|
|
114
|
+
vue.onMounted(() => {
|
|
115
115
|
setWidth();
|
|
116
116
|
});
|
|
117
117
|
__expose({
|
|
118
118
|
...data.dataExpose
|
|
119
119
|
});
|
|
120
120
|
return (_ctx, _cache) => {
|
|
121
|
-
return
|
|
121
|
+
return vue.openBlock(), vue.createBlock(vue.unref(index$2.Popover), {
|
|
122
122
|
trigger: "click",
|
|
123
|
-
"popper-class":
|
|
123
|
+
"popper-class": vue.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: vue.withCtx(() => [
|
|
129
|
+
vue.createElementVNode("div", vue.mergeProps({
|
|
130
|
+
class: [vue.unref(cs).z(), vue.unref(cs).is("disabled", props.disabled)]
|
|
131
|
+
}, vue.unref(attrs).root, { onClick }), [
|
|
132
|
+
vue.createVNode(vue.unref(index$3.Input), vue.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
|
+
}, vue.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
|
+
}), vue.createSlots({
|
|
145
|
+
suffix: vue.withCtx(() => [
|
|
146
|
+
isclear.value ? (vue.openBlock(), vue.createBlock(vue.unref(index$4.Icon), {
|
|
147
147
|
key: 0,
|
|
148
|
-
class:
|
|
149
|
-
onClick:
|
|
148
|
+
class: vue.normalizeClass([vue.unref(cs).z("select-icon"), "clear"]),
|
|
149
|
+
onClick: vue.withModifiers(onClear, ["stop"])
|
|
150
150
|
}, {
|
|
151
|
-
default:
|
|
152
|
-
|
|
151
|
+
default: vue.withCtx(() => [
|
|
152
|
+
vue.createVNode(clear.default)
|
|
153
153
|
]),
|
|
154
154
|
_: 1
|
|
155
|
-
}, 8, ["class"])) :
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
class:
|
|
159
|
-
|
|
160
|
-
|
|
155
|
+
}, 8, ["class"])) : vue.createCommentVNode("", true),
|
|
156
|
+
vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).suffix),
|
|
157
|
+
vue.createElementVNode("span", {
|
|
158
|
+
class: vue.normalizeClass([
|
|
159
|
+
vue.unref(cs).z("select-icon"),
|
|
160
|
+
vue.unref(cs).is("reverse", visible.value)
|
|
161
161
|
])
|
|
162
162
|
}, [
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).iconSelect, {}, () => [
|
|
164
|
+
vue.createVNode(below.default)
|
|
165
165
|
])
|
|
166
166
|
], 2)
|
|
167
167
|
]),
|
|
168
168
|
_: 2
|
|
169
169
|
}, [
|
|
170
|
-
|
|
170
|
+
vue.renderList(Object.keys(vue.unref(slots)), (k, index2) => {
|
|
171
171
|
return {
|
|
172
172
|
name: k,
|
|
173
|
-
fn:
|
|
174
|
-
|
|
173
|
+
fn: vue.withCtx(() => [
|
|
174
|
+
vue.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: vue.withCtx(() => [
|
|
182
|
+
vue.createElementVNode("div", {
|
|
183
|
+
class: vue.normalizeClass(vue.unref(cs).z("select"))
|
|
184
184
|
}, [
|
|
185
|
-
|
|
186
|
-
class:
|
|
185
|
+
vue.createElementVNode("ul", {
|
|
186
|
+
class: vue.normalizeClass(vue.unref(cs).z("select-ul"))
|
|
187
187
|
}, [
|
|
188
|
-
(
|
|
189
|
-
return
|
|
190
|
-
class:
|
|
191
|
-
|
|
192
|
-
|
|
188
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(options.value, (item) => {
|
|
189
|
+
return vue.openBlock(), vue.createElementBlock("li", {
|
|
190
|
+
class: vue.normalizeClass([
|
|
191
|
+
vue.unref(cs).z("select-li"),
|
|
192
|
+
vue.unref(cs).is("disabled", item == null ? void 0 : item.disabled),
|
|
193
193
|
getSelected(item)
|
|
194
194
|
]),
|
|
195
|
-
onClick:
|
|
196
|
-
},
|
|
195
|
+
onClick: vue.withModifiers(($event) => onClickSelect(item), ["stop"])
|
|
196
|
+
}, vue.toDisplayString(vue.unref(use.useVueValue)(item, props.label)), 11, _hoisted_1);
|
|
197
197
|
}), 256))
|
|
198
198
|
], 2)
|
|
199
199
|
], 2)
|
|
@@ -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/input-tag/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("input-tag");
|
|
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.ElInputTag), 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
|
})
|
|
@@ -1,28 +1,28 @@
|
|
|
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("../../input/index.cjs");
|
|
5
5
|
const data = require("./data.cjs");
|
|
6
6
|
const index$2 = require("../../../hooks/cssname/index.cjs");
|
|
7
7
|
const index$1 = require("../../../hooks/inherit/index.cjs");
|
|
8
8
|
const index$3 = require("../../../hooks/expose/index.cjs");
|
|
9
9
|
const index = require("../../../hooks/locale/index.cjs");
|
|
10
|
-
const _sfc_main = /* @__PURE__ */
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ vue.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(vue.useAttrs());
|
|
18
18
|
const cs = index$2.useCssName("inputs");
|
|
19
19
|
const props = __props;
|
|
20
|
-
const slots =
|
|
20
|
+
const slots = vue.useSlots();
|
|
21
21
|
const emit = __emit;
|
|
22
|
-
const refEl =
|
|
23
|
-
const elRef =
|
|
22
|
+
const refEl = vue.ref();
|
|
23
|
+
const elRef = vue.ref();
|
|
24
24
|
const once = setOnce();
|
|
25
|
-
const placeholder =
|
|
25
|
+
const placeholder = vue.computed(() => {
|
|
26
26
|
if (typeof props.placeholder == "undefined") {
|
|
27
27
|
return getLocale("form.import");
|
|
28
28
|
} else {
|
|
@@ -33,7 +33,7 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
-
const value =
|
|
36
|
+
const value = vue.computed({
|
|
37
37
|
get() {
|
|
38
38
|
let v = props.modelValue;
|
|
39
39
|
return v;
|
|
@@ -60,23 +60,23 @@ const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
|
60
60
|
)
|
|
61
61
|
);
|
|
62
62
|
return (_ctx, _cache) => {
|
|
63
|
-
return
|
|
63
|
+
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
64
64
|
ref_key: "refEl",
|
|
65
65
|
ref: refEl,
|
|
66
|
-
class:
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
class:
|
|
66
|
+
class: vue.unref(cs).z()
|
|
67
|
+
}, vue.unref(attrs).root), [
|
|
68
|
+
vue.createVNode(vue.unref(index$4.Input), vue.mergeProps({
|
|
69
|
+
class: vue.unref(cs).z("input"),
|
|
70
70
|
ref_key: "elRef",
|
|
71
71
|
ref: elRef,
|
|
72
72
|
modelValue: value.value,
|
|
73
73
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event)
|
|
74
|
-
},
|
|
75
|
-
|
|
74
|
+
}, vue.unref(attrs).assem, { placeholder: placeholder.value }), vue.createSlots({ _: 2 }, [
|
|
75
|
+
vue.renderList(Object.keys(vue.unref(slots)), (k, index2) => {
|
|
76
76
|
return {
|
|
77
77
|
name: k,
|
|
78
|
-
fn:
|
|
79
|
-
|
|
78
|
+
fn: vue.withCtx(() => [
|
|
79
|
+
vue.renderSlot(_ctx.$slots, k)
|
|
80
80
|
])
|
|
81
81
|
};
|
|
82
82
|
})
|