@fangzhongya/fang-ui 0.0.70 → 0.0.72
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/index.scss +2 -2
- package/dist/components/index2.scss +2 -2
- package/dist/components/input/src/index2.cjs +10 -10
- package/dist/components/input-array/src/index2.cjs +38 -38
- package/dist/components/input-history/src/index2.cjs +48 -48
- package/dist/components/input-history/src/util.cjs +4 -4
- package/dist/components/input-num/src/index2.cjs +17 -17
- package/dist/components/input-number/src/index2.cjs +10 -10
- package/dist/components/input-select/src/index2.cjs +51 -51
- package/dist/components/input-tag/src/index2.cjs +10 -10
- package/dist/components/inputs/src/index2.cjs +17 -17
- package/dist/components/keep-com/src/index2.cjs +16 -16
- package/dist/components/labels/src/index2.cjs +13 -13
- package/dist/components/list/src/index2.cjs +24 -24
- package/dist/components/lists/src/index2.cjs +51 -51
- package/dist/components/listsp/src/index2.cjs +34 -34
- package/dist/components/mention/src/index2.cjs +10 -10
- package/dist/components/menus/src/index2.cjs +16 -16
- package/dist/components/menus/src/menu-ll2.cjs +11 -11
- package/dist/components/no-data/src/index2.cjs +5 -5
- package/dist/components/option/src/index2.cjs +9 -9
- package/dist/components/option-group/src/index2.cjs +10 -10
- package/dist/components/page/src/index2.cjs +77 -77
- package/dist/components/page/src/set-column2.cjs +54 -54
- package/dist/components/pagination/src/index2.cjs +10 -10
- package/dist/components/paging/src/index2.cjs +13 -13
- package/dist/components/popconfirm/src/index2.cjs +10 -10
- package/dist/components/popover/src/index2.cjs +10 -10
- package/dist/components/popup/src/index2.cjs +29 -29
- package/dist/components/radio/src/index2.cjs +10 -10
- package/dist/components/radio-group/src/index2.cjs +10 -10
- package/dist/components/retract/src/index2.cjs +14 -14
- package/dist/components/right-key/src/index2.cjs +30 -30
- package/dist/components/role-select/src/index2.cjs +38 -38
- package/dist/components/seamless-scroll/src/index2.cjs +24 -24
- package/dist/components/select/src/index2.cjs +10 -10
- package/dist/components/select-dialog/src/index2.cjs +65 -65
- package/dist/components/select-popover/src/index2.cjs +42 -42
- package/dist/components/select-scroll/src/index2.cjs +30 -30
- package/dist/components/selector/src/index2.cjs +39 -39
- package/dist/components/selects/src/index2.cjs +20 -20
- package/dist/components/slider/src/index2.cjs +10 -10
- package/dist/components/stick-div/src/index2.cjs +17 -17
- package/dist/components/stick-edge/src/index2.cjs +10 -10
- package/dist/components/stick-window/src/index2.cjs +22 -22
- package/dist/components/switch/src/index2.cjs +10 -10
- package/dist/components/switchs/src/index2.cjs +15 -15
- package/dist/components/tab-pane/src/index2.cjs +10 -10
- package/dist/components/tables/common/img2.cjs +7 -7
- package/dist/components/tables/common/pagin.cjs +16 -16
- package/dist/components/tables/common/table-but2.cjs +10 -10
- package/dist/components/tables/common/table-color2.cjs +7 -7
- package/dist/components/tables/common/table-list2.cjs +9 -9
- package/dist/components/tables/common/util.cjs +2 -2
- package/dist/components/tables/src/column.cjs +5 -5
- package/dist/components/tables/src/columns2.cjs +2 -2
- package/dist/components/tables/src/columns3.cjs +2 -2
- package/dist/components/tables/src/index2.cjs +29 -29
- package/dist/components/tablesp/src/index2.cjs +35 -35
- package/dist/components/tabless/src/index2.cjs +48 -48
- package/dist/components/tablesv/src/column.cjs +16 -16
- package/dist/components/tablesv/src/columns2.cjs +2 -2
- package/dist/components/tablesv/src/columns3.cjs +2 -2
- package/dist/components/tablesv/src/index2.cjs +30 -30
- package/dist/components/tablesvp/src/index2.cjs +30 -30
- package/dist/components/tabs/src/index2.cjs +10 -10
- package/dist/components/text/src/index2.cjs +8 -8
- package/dist/components/time-picker/src/index2.cjs +10 -10
- package/dist/components/time-select/src/index2.cjs +10 -10
- package/dist/components/tooltip/src/index2.cjs +10 -10
- package/dist/components/transfer/src/index2.cjs +10 -10
- package/dist/components/tree/src/index2.cjs +10 -10
- package/dist/components/tree-select/src/index2.cjs +10 -10
- package/dist/components/tree-select-box/src/index2.cjs +29 -29
- package/dist/components/upload/src/index2.cjs +10 -10
- package/dist/components/user-select/src/index2.cjs +99 -99
- package/dist/components/window/src/index2.cjs +61 -61
- package/dist/css/index.css +22 -23
- package/dist/directives/expose/index.cjs +3 -2
- package/dist/directives/expose/index.js +3 -2
- package/dist/directives/scroll/index.cjs +24 -6
- package/dist/directives/scroll/index.js +3 -1
- package/dist/hooks/event-aliass/index.cjs +2 -2
- package/dist/hooks/global-config/index.cjs +8 -8
- package/dist/hooks/inherit/index.cjs +2 -2
- package/dist/hooks/locale/index.cjs +7 -7
- package/dist/icons/iconify.cjs +3 -3
- package/dist/icons/index.css +34 -34
- package/dist/icons/index.json +9 -9
- 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/index.css +22 -23
- package/dist/utils/vues/common.cjs +2 -2
- package/package.json +5 -5
- /package/dist/components/{forms-item → forms-items}/index.css +0 -0
- /package/dist/css/{forms-item.css → forms-items.css} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
const index$5 = require("../../icon/index.cjs");
|
|
5
5
|
const bar = require("../../../icons/vue/bar.cjs");
|
|
6
6
|
const frame = require("../../../icons/vue/frame.cjs");
|
|
@@ -19,13 +19,13 @@ const index$6 = require("../../../directives/drag/index.cjs");
|
|
|
19
19
|
const use = require("../../common/use.cjs");
|
|
20
20
|
const _hoisted_1 = ["title"];
|
|
21
21
|
const _hoisted_2 = ["title"];
|
|
22
|
-
const _sfc_main = /* @__PURE__ */
|
|
22
|
+
const _sfc_main = /* @__PURE__ */ vues.defineComponent({
|
|
23
23
|
__name: "index",
|
|
24
24
|
props: data.dataProps,
|
|
25
25
|
emits: data.dataEmits,
|
|
26
26
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
27
27
|
const wykey = Symbol("Window-" + (/* @__PURE__ */ new Date()).getTime() + Math.random());
|
|
28
|
-
const refBody =
|
|
28
|
+
const refBody = vues.shallowRef();
|
|
29
29
|
const { getLocale } = index.useLocale();
|
|
30
30
|
const cs = index$1.useCssName("window");
|
|
31
31
|
const prs = __props;
|
|
@@ -35,12 +35,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
37
|
const emit = __emit;
|
|
38
|
-
const isMax =
|
|
39
|
-
const isMin =
|
|
40
|
-
const isClose =
|
|
41
|
-
const refBox =
|
|
42
|
-
const position =
|
|
43
|
-
|
|
38
|
+
const isMax = vues.shallowRef(props.max);
|
|
39
|
+
const isMin = vues.shallowRef(false);
|
|
40
|
+
const isClose = vues.shallowRef(true);
|
|
41
|
+
const refBox = vues.shallowRef();
|
|
42
|
+
const position = vues.shallowRef({});
|
|
43
|
+
vues.watch(
|
|
44
44
|
() => props.modelValue,
|
|
45
45
|
() => {
|
|
46
46
|
console.log("props.modelValue", props.modelValue);
|
|
@@ -48,7 +48,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
48
48
|
isClose.value = false;
|
|
49
49
|
isMin.value = false;
|
|
50
50
|
if (props.closeHave) {
|
|
51
|
-
|
|
51
|
+
vues.nextTick(() => {
|
|
52
52
|
setPosition();
|
|
53
53
|
});
|
|
54
54
|
} else {
|
|
@@ -100,13 +100,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
100
100
|
emit("update:modelValue", false);
|
|
101
101
|
emit("close");
|
|
102
102
|
};
|
|
103
|
-
|
|
103
|
+
vues.watch(
|
|
104
104
|
() => isMin.value,
|
|
105
105
|
() => {
|
|
106
106
|
setMin();
|
|
107
107
|
}
|
|
108
108
|
);
|
|
109
|
-
|
|
109
|
+
vues.watch(
|
|
110
110
|
() => isMax.value,
|
|
111
111
|
() => {
|
|
112
112
|
setMax();
|
|
@@ -168,13 +168,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
168
168
|
emit("changesize");
|
|
169
169
|
}
|
|
170
170
|
function setBoxClass(oldValue = "") {
|
|
171
|
-
|
|
171
|
+
vues.nextTick(() => {
|
|
172
172
|
setClassName.setClassName(refBox.value, props.boxClass, oldValue);
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
175
|
let stop;
|
|
176
|
-
|
|
177
|
-
stop =
|
|
176
|
+
vues.onMounted(() => {
|
|
177
|
+
stop = vues.watch(
|
|
178
178
|
() => props.boxClass,
|
|
179
179
|
(newValue, oldValue) => {
|
|
180
180
|
setBoxClass(oldValue);
|
|
@@ -182,7 +182,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
182
182
|
{ immediate: true }
|
|
183
183
|
);
|
|
184
184
|
});
|
|
185
|
-
|
|
185
|
+
vues.onUnmounted(() => {
|
|
186
186
|
if (stop) {
|
|
187
187
|
stop();
|
|
188
188
|
}
|
|
@@ -194,65 +194,65 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
194
194
|
...data.dataExpose
|
|
195
195
|
});
|
|
196
196
|
return (_ctx, _cache) => {
|
|
197
|
-
return
|
|
198
|
-
disabled:
|
|
199
|
-
to:
|
|
197
|
+
return vues.openBlock(), vues.createBlock(vues.unref(index$2.BoxTeleport), {
|
|
198
|
+
disabled: vues.unref(props).disabled,
|
|
199
|
+
to: vues.unref(props).to
|
|
200
200
|
}, {
|
|
201
|
-
default:
|
|
202
|
-
!isClose.value ? (
|
|
201
|
+
default: vues.withCtx(() => [
|
|
202
|
+
!isClose.value ? (vues.openBlock(), vues.createElementBlock("div", {
|
|
203
203
|
key: 0,
|
|
204
204
|
ref_key: "refBox",
|
|
205
205
|
ref: refBox,
|
|
206
|
-
class:
|
|
206
|
+
class: vues.normalizeClass(vues.unref(cs).z())
|
|
207
207
|
}, [
|
|
208
|
-
|
|
208
|
+
vues.unref(props).mask ? (vues.openBlock(), vues.createBlock(vues.unref(index$3.BoxMask), {
|
|
209
209
|
key: 0,
|
|
210
210
|
onClick: onMaskClose,
|
|
211
|
-
cssprefix:
|
|
212
|
-
}, null, 8, ["cssprefix"])) :
|
|
213
|
-
|
|
211
|
+
cssprefix: vues.unref(props).cssprefix || vues.unref(cs).z()
|
|
212
|
+
}, null, 8, ["cssprefix"])) : vues.createCommentVNode("", true),
|
|
213
|
+
vues.withDirectives((vues.openBlock(), vues.createElementBlock("div", {
|
|
214
214
|
ref_key: "refBody",
|
|
215
215
|
ref: refBody,
|
|
216
|
-
class:
|
|
216
|
+
class: vues.normalizeClass(vues.unref(cs).z("body"))
|
|
217
217
|
}, [
|
|
218
|
-
|
|
219
|
-
|
|
218
|
+
vues.renderSlot(_ctx.$slots, vues.unref(data.dataSlot).title, {}, () => [
|
|
219
|
+
vues.createVNode(vues.unref(index$4.BoxTitle), {
|
|
220
220
|
onClose,
|
|
221
|
-
title:
|
|
221
|
+
title: vues.unref(props).title
|
|
222
222
|
}, {
|
|
223
|
-
icon:
|
|
224
|
-
!
|
|
223
|
+
icon: vues.withCtx(() => [
|
|
224
|
+
!vues.unref(props).noMin ? (vues.openBlock(), vues.createElementBlock("span", {
|
|
225
225
|
key: 0,
|
|
226
|
-
title:
|
|
226
|
+
title: vues.unref(getLocale)("minh"),
|
|
227
227
|
onClick: onMin,
|
|
228
|
-
class:
|
|
229
|
-
|
|
230
|
-
|
|
228
|
+
class: vues.normalizeClass([
|
|
229
|
+
vues.unref(cs).z("title-icon"),
|
|
230
|
+
vues.unref(cs).z("title-min")
|
|
231
231
|
])
|
|
232
232
|
}, [
|
|
233
|
-
|
|
234
|
-
default:
|
|
235
|
-
|
|
236
|
-
|
|
233
|
+
vues.createVNode(vues.unref(index$5.Icon), null, {
|
|
234
|
+
default: vues.withCtx(() => [
|
|
235
|
+
vues.renderSlot(_ctx.$slots, vues.unref(data.dataSlot)["icon-min"], {}, () => [
|
|
236
|
+
vues.createVNode(bar.default)
|
|
237
237
|
])
|
|
238
238
|
]),
|
|
239
239
|
_: 3
|
|
240
240
|
})
|
|
241
|
-
], 10, _hoisted_1)) :
|
|
242
|
-
|
|
243
|
-
title:
|
|
241
|
+
], 10, _hoisted_1)) : vues.createCommentVNode("", true),
|
|
242
|
+
vues.createElementVNode("span", {
|
|
243
|
+
title: vues.unref(getLocale)(isMax.value ? "tmaxh" : "maxh"),
|
|
244
244
|
onClick: onMax,
|
|
245
|
-
class:
|
|
246
|
-
|
|
247
|
-
|
|
245
|
+
class: vues.normalizeClass([
|
|
246
|
+
vues.unref(cs).z("title-icon"),
|
|
247
|
+
vues.unref(cs).z("title-max")
|
|
248
248
|
])
|
|
249
249
|
}, [
|
|
250
|
-
|
|
251
|
-
default:
|
|
252
|
-
isMax.value ?
|
|
253
|
-
|
|
254
|
-
]) :
|
|
255
|
-
|
|
250
|
+
vues.createVNode(vues.unref(index$5.Icon), null, {
|
|
251
|
+
default: vues.withCtx(() => [
|
|
252
|
+
isMax.value ? vues.renderSlot(_ctx.$slots, vues.unref(data.dataSlot)["icon-full"], { key: 0 }, () => [
|
|
253
|
+
vues.createVNode(star.default)
|
|
254
|
+
]) : vues.renderSlot(_ctx.$slots, vues.unref(data.dataSlot)["icon-max"], { key: 1 }, () => [
|
|
255
|
+
vues.createVNode(frame.default)
|
|
256
256
|
])
|
|
257
257
|
]),
|
|
258
258
|
_: 3
|
|
@@ -262,24 +262,24 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
262
262
|
_: 3
|
|
263
263
|
}, 8, ["title"])
|
|
264
264
|
]),
|
|
265
|
-
|
|
266
|
-
class:
|
|
265
|
+
vues.createElementVNode("div", {
|
|
266
|
+
class: vues.normalizeClass(vues.unref(cs).z("body-div"))
|
|
267
267
|
}, [
|
|
268
|
-
|
|
268
|
+
vues.renderSlot(_ctx.$slots, vues.unref(data.dataSlot).default)
|
|
269
269
|
], 2),
|
|
270
|
-
|
|
270
|
+
vues.renderSlot(_ctx.$slots, vues.unref(data.dataSlot).footer)
|
|
271
271
|
], 2)), [
|
|
272
|
-
[
|
|
273
|
-
dom:
|
|
272
|
+
[vues.unref(index$6.default), {
|
|
273
|
+
dom: vues.unref(props).drag,
|
|
274
274
|
onMousedown
|
|
275
275
|
}],
|
|
276
|
-
[
|
|
277
|
-
often:
|
|
276
|
+
[vues.unref(index$7.default), {
|
|
277
|
+
often: vues.unref(props).often,
|
|
278
278
|
onChange: onChangeAdjust,
|
|
279
279
|
all: { position: true, getDisabled }
|
|
280
280
|
}]
|
|
281
281
|
])
|
|
282
|
-
], 2)) :
|
|
282
|
+
], 2)) : vues.createCommentVNode("", true)
|
|
283
283
|
]),
|
|
284
284
|
_: 3
|
|
285
285
|
}, 8, ["disabled", "to"]);
|
package/dist/css/index.css
CHANGED
|
@@ -1291,29 +1291,6 @@
|
|
|
1291
1291
|
justify-content: flex-end;
|
|
1292
1292
|
}
|
|
1293
1293
|
|
|
1294
|
-
.tabless {
|
|
1295
|
-
width: 100%;
|
|
1296
|
-
height: var(--tabless-height);
|
|
1297
|
-
flex: 1;
|
|
1298
|
-
display: flex;
|
|
1299
|
-
flex-direction: column;
|
|
1300
|
-
}
|
|
1301
|
-
.tabless-main {
|
|
1302
|
-
display: flex;
|
|
1303
|
-
flex-direction: column;
|
|
1304
|
-
flex: 1;
|
|
1305
|
-
width: 100%;
|
|
1306
|
-
}
|
|
1307
|
-
.tabless-main.is-radio .el-table__header .el-table-column--selection .el-checkbox {
|
|
1308
|
-
display: none;
|
|
1309
|
-
}
|
|
1310
|
-
.tabless-paginat {
|
|
1311
|
-
overflow: hidden;
|
|
1312
|
-
}
|
|
1313
|
-
.tabless-paginat .el-pagination {
|
|
1314
|
-
justify-content: flex-end;
|
|
1315
|
-
}
|
|
1316
|
-
|
|
1317
1294
|
.tablesv {
|
|
1318
1295
|
width: 100%;
|
|
1319
1296
|
min-height: 100px;
|
|
@@ -1395,4 +1372,26 @@
|
|
|
1395
1372
|
left: 0;
|
|
1396
1373
|
z-index: 1;
|
|
1397
1374
|
opacity: 0;
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
.tablesvp {
|
|
1378
|
+
width: 100%;
|
|
1379
|
+
height: var(--tablesvp-height);
|
|
1380
|
+
display: flex;
|
|
1381
|
+
flex-direction: column;
|
|
1382
|
+
}
|
|
1383
|
+
.tablesvp-main {
|
|
1384
|
+
display: flex;
|
|
1385
|
+
flex-direction: column;
|
|
1386
|
+
flex: 1;
|
|
1387
|
+
width: 100%;
|
|
1388
|
+
}
|
|
1389
|
+
.tablesvp-main.is-radio .el-table__header .el-table-column--selection .el-checkbox {
|
|
1390
|
+
display: none;
|
|
1391
|
+
}
|
|
1392
|
+
.tablesvp-paginat {
|
|
1393
|
+
overflow: hidden;
|
|
1394
|
+
}
|
|
1395
|
+
.tablesvp-paginat .el-pagination {
|
|
1396
|
+
justify-content: flex-end;
|
|
1398
1397
|
}
|
|
@@ -4,9 +4,10 @@ const hasOwn = require("@fangzhongya/utils/basic/object/hasOwn");
|
|
|
4
4
|
const vExpose = {
|
|
5
5
|
name: "expose",
|
|
6
6
|
created(el, binding, vnode) {
|
|
7
|
-
|
|
7
|
+
var _a;
|
|
8
|
+
const exposed = (_a = vnode == null ? void 0 : vnode.ctx) == null ? void 0 : _a.exposed;
|
|
8
9
|
if (exposed) {
|
|
9
|
-
if (binding.instance) {
|
|
10
|
+
if (binding == null ? void 0 : binding.instance) {
|
|
10
11
|
const instance = binding.instance;
|
|
11
12
|
let value = binding.value;
|
|
12
13
|
if (value && typeof value == "string") {
|
|
@@ -2,9 +2,10 @@ import { hasOwn } from "@fangzhongya/utils/basic/object/hasOwn";
|
|
|
2
2
|
const vExpose = {
|
|
3
3
|
name: "expose",
|
|
4
4
|
created(el, binding, vnode) {
|
|
5
|
-
|
|
5
|
+
var _a;
|
|
6
|
+
const exposed = (_a = vnode == null ? void 0 : vnode.ctx) == null ? void 0 : _a.exposed;
|
|
6
7
|
if (exposed) {
|
|
7
|
-
if (binding.instance) {
|
|
8
|
+
if (binding == null ? void 0 : binding.instance) {
|
|
8
9
|
const instance = binding.instance;
|
|
9
10
|
let value = binding.value;
|
|
10
11
|
if (value && typeof value == "string") {
|
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
|
+
function _interopNamespaceDefault(e) {
|
|
5
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
6
|
+
if (e) {
|
|
7
|
+
for (const k in e) {
|
|
8
|
+
if (k !== "default") {
|
|
9
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
10
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: () => e[k]
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
n.default = e;
|
|
18
|
+
return Object.freeze(n);
|
|
19
|
+
}
|
|
20
|
+
const vues__namespace = /* @__PURE__ */ _interopNamespaceDefault(vues);
|
|
21
|
+
const toValue = (vues__namespace == null ? void 0 : vues__namespace.toValue) ?? vues__namespace.unref;
|
|
4
22
|
const vScroll = {
|
|
5
23
|
name: "scroll",
|
|
6
24
|
mounted(el, binding) {
|
|
@@ -43,7 +61,7 @@ const vScroll = {
|
|
|
43
61
|
if (isf) {
|
|
44
62
|
fun();
|
|
45
63
|
} else {
|
|
46
|
-
if (!
|
|
64
|
+
if (!toValue(value.load) && !toValue(value.end)) {
|
|
47
65
|
fun();
|
|
48
66
|
}
|
|
49
67
|
}
|
|
@@ -63,8 +81,8 @@ const vScroll = {
|
|
|
63
81
|
adddmm.className = cssname;
|
|
64
82
|
adddmm.style.display = "none";
|
|
65
83
|
dom.appendChild(adddmm);
|
|
66
|
-
|
|
67
|
-
const v =
|
|
84
|
+
vues.watch(value.load, () => {
|
|
85
|
+
const v = toValue(value.load);
|
|
68
86
|
if (v) {
|
|
69
87
|
adddmm.className = cssname + " " + cssname + "-load";
|
|
70
88
|
adddmm.style.display = "block";
|
|
@@ -73,8 +91,8 @@ const vScroll = {
|
|
|
73
91
|
adddmm.style.display = "none";
|
|
74
92
|
}
|
|
75
93
|
});
|
|
76
|
-
|
|
77
|
-
const v =
|
|
94
|
+
vues.watch(value.end, () => {
|
|
95
|
+
const v = toValue(value.end);
|
|
78
96
|
if (v) {
|
|
79
97
|
setTimeout(() => {
|
|
80
98
|
adddmm.className = cssname + " " + cssname + "-end";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
require("../../utils/util.cjs");
|
|
5
5
|
const firstUpper = require("@fangzhongya/utils/basic/string/firstUpper");
|
|
6
6
|
const splitUpper = require("@fangzhongya/utils/basic/string/splitUpper");
|
|
@@ -69,7 +69,7 @@ function eventAlias(key, callback, obj, $event) {
|
|
|
69
69
|
callback(obj[v]);
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
|
-
const wc =
|
|
72
|
+
const wc = vues.withModifiers(fn, ns);
|
|
73
73
|
wc();
|
|
74
74
|
} else {
|
|
75
75
|
callback(obj[v]);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
const enums = require("../../utils/enums.cjs");
|
|
5
5
|
const getOnlyKey = require("../../utils/getOnlyKey.cjs");
|
|
6
|
-
const globalConfig =
|
|
6
|
+
const globalConfig = vues.ref({});
|
|
7
7
|
const { GlobalConfig } = enums.SymbolKey;
|
|
8
8
|
function useGlobalConfig(key, defaultValue) {
|
|
9
|
-
const config =
|
|
9
|
+
const config = vues.getCurrentInstance() ? vues.inject(getOnlyKey.getOnlyKey(GlobalConfig), globalConfig) : globalConfig;
|
|
10
10
|
if (key) {
|
|
11
|
-
return
|
|
11
|
+
return vues.computed(() => {
|
|
12
12
|
var _a;
|
|
13
13
|
return ((_a = config.value) == null ? void 0 : _a[key]) ?? defaultValue;
|
|
14
14
|
});
|
|
@@ -32,11 +32,11 @@ function setGlobalConfig(obj, key) {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
function provideGlobalConfig(config, app, global = false) {
|
|
35
|
-
const inSetup = !!
|
|
35
|
+
const inSetup = !!vues.getCurrentInstance();
|
|
36
36
|
const oldConfig = inSetup ? useGlobalConfig() : void 0;
|
|
37
|
-
const provideFn = (app == null ? void 0 : app.provide) ?? (inSetup ?
|
|
38
|
-
const context =
|
|
39
|
-
const cfg =
|
|
37
|
+
const provideFn = (app == null ? void 0 : app.provide) ?? (inSetup ? vues.provide : void 0);
|
|
38
|
+
const context = vues.computed(() => {
|
|
39
|
+
const cfg = vues.unref(config);
|
|
40
40
|
if (!(oldConfig == null ? void 0 : oldConfig.value)) return cfg;
|
|
41
41
|
return mergeConfig(oldConfig.value, cfg);
|
|
42
42
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
require("../../utils/index.cjs");
|
|
5
5
|
const humpToLine = require("@fangzhongya/utils/name/humpToLine");
|
|
6
6
|
const roots = ["class", "style"];
|
|
7
|
-
const useInherit = (attrs =
|
|
7
|
+
const useInherit = (attrs = vues.useAttrs()) => {
|
|
8
8
|
const root = {};
|
|
9
9
|
const assem = {};
|
|
10
10
|
Object.keys(attrs).forEach((key) => {
|
|
@@ -3,12 +3,12 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const index = require("../global-config/index.cjs");
|
|
4
4
|
const zhCn = require("../../locale/zh-cn.cjs");
|
|
5
5
|
const en = require("../../locale/en.cjs");
|
|
6
|
-
const
|
|
6
|
+
const vues = require("vue");
|
|
7
7
|
require("../../utils/util.cjs");
|
|
8
8
|
const objValue = require("@fangzhongya/utils/basic/object/objValue");
|
|
9
9
|
function buildTranslator(locale) {
|
|
10
10
|
return (path, ...values) => {
|
|
11
|
-
let v = objValue.getObjValue(path,
|
|
11
|
+
let v = objValue.getObjValue(path, vues.unref(locale).value) || "";
|
|
12
12
|
if (values.length > 0) {
|
|
13
13
|
values.forEach((z, i) => {
|
|
14
14
|
v = v.replaceAll("$" + (i + 1), z);
|
|
@@ -20,15 +20,15 @@ function buildTranslator(locale) {
|
|
|
20
20
|
function buildLocaleAdd(locale, lang) {
|
|
21
21
|
return (...arr) => {
|
|
22
22
|
if (lang.value == "zh-cn") {
|
|
23
|
-
return arr.map((o) => objValue.getObjValue(o,
|
|
23
|
+
return arr.map((o) => objValue.getObjValue(o, vues.unref(locale).value)).join("");
|
|
24
24
|
} else {
|
|
25
|
-
return arr.map((o) => objValue.getObjValue(o,
|
|
25
|
+
return arr.map((o) => objValue.getObjValue(o, vues.unref(locale).value)).join(" ");
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
function buildLocaleContext(locale) {
|
|
30
|
-
const lang =
|
|
31
|
-
const localeRef =
|
|
30
|
+
const lang = vues.computed(() => vues.unref(locale).name);
|
|
31
|
+
const localeRef = vues.isRef(locale) ? locale : vues.ref(locale);
|
|
32
32
|
return {
|
|
33
33
|
lang,
|
|
34
34
|
locale: localeRef,
|
|
@@ -39,7 +39,7 @@ function buildLocaleContext(locale) {
|
|
|
39
39
|
function useLocale() {
|
|
40
40
|
const locale = index.useGlobalConfig("locale");
|
|
41
41
|
return buildLocaleContext(
|
|
42
|
-
|
|
42
|
+
vues.computed(() => {
|
|
43
43
|
if (typeof locale.value == "string") {
|
|
44
44
|
return {
|
|
45
45
|
en: en.default,
|
package/dist/icons/iconify.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
3
|
+
const vues = require("vue");
|
|
4
4
|
const lineToLargeHump = require("@fangzhongya/utils/name/lineToLargeHump");
|
|
5
5
|
const config = require("./config.cjs");
|
|
6
6
|
function createSVG(obj) {
|
|
@@ -11,11 +11,11 @@ function createSVG(obj) {
|
|
|
11
11
|
obj.height || 24
|
|
12
12
|
].join(" ");
|
|
13
13
|
const name = "icon-" + obj.name;
|
|
14
|
-
return
|
|
14
|
+
return vues.defineComponent({
|
|
15
15
|
name: lineToLargeHump.lineToLargeHump(name),
|
|
16
16
|
props: {},
|
|
17
17
|
render() {
|
|
18
|
-
return
|
|
18
|
+
return vues.h(
|
|
19
19
|
"svg",
|
|
20
20
|
{
|
|
21
21
|
xmlns: "http://www.w3.org/2000/svg",
|