@fangzhongya/fang-ui 0.1.55 → 0.1.56
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/audios/src/index2.cjs +16 -10
- package/dist/components/audios/src/index2.js +16 -10
- package/dist/components/box-adjust/src/index2.cjs +6 -4
- package/dist/components/box-adjust/src/index2.js +6 -4
- package/dist/components/box-title/src/index2.cjs +3 -2
- package/dist/components/box-title/src/index2.js +3 -2
- package/dist/components/buttons/src/data.d.ts +5 -5
- package/dist/components/buttons/src/index2.cjs +2 -2
- package/dist/components/buttons/src/index2.js +2 -2
- package/dist/components/cascaders/src/data.d.ts +5 -5
- package/dist/components/checks/src/data.d.ts +5 -5
- package/dist/components/common/list.d.ts +1 -1
- package/dist/components/common/use.cjs +1 -1
- package/dist/components/common/use.js +1 -1
- package/dist/components/dates/src/data.d.ts +5 -5
- package/dist/components/dates2/src/data.d.ts +5 -5
- package/dist/components/double/src/index2.cjs +3 -2
- package/dist/components/double/src/index2.js +3 -2
- package/dist/components/edit/src/index2.cjs +3 -2
- package/dist/components/edit/src/index2.js +3 -2
- package/dist/components/edit-data/src/area/array-json2.cjs +8 -4
- package/dist/components/edit-data/src/area/array-json2.js +8 -4
- package/dist/components/edit-data/src/area/array2.cjs +46 -8
- package/dist/components/edit-data/src/area/array2.js +47 -9
- package/dist/components/edit-data/src/area/editor2.cjs +22 -4
- package/dist/components/edit-data/src/area/editor2.js +22 -4
- package/dist/components/edit-data/src/area/general2.cjs +8 -1
- package/dist/components/edit-data/src/area/general2.js +8 -1
- package/dist/components/edit-data/src/area/object-json2.cjs +5 -1
- package/dist/components/edit-data/src/area/object-json2.js +5 -1
- package/dist/components/edit-data/src/area/object2.cjs +48 -11
- package/dist/components/edit-data/src/area/object2.js +49 -12
- package/dist/components/edit-data/src/data/array2.cjs +9 -5
- package/dist/components/edit-data/src/data/array2.js +9 -5
- package/dist/components/edit-data/src/data/bigint2.cjs +7 -3
- package/dist/components/edit-data/src/data/bigint2.js +7 -3
- package/dist/components/edit-data/src/data/boolean2.cjs +7 -3
- package/dist/components/edit-data/src/data/boolean2.js +7 -3
- package/dist/components/edit-data/src/data/date.cjs +4 -0
- package/dist/components/edit-data/src/data/date.js +4 -0
- package/dist/components/edit-data/src/data/date2.cjs +48 -0
- package/dist/components/edit-data/src/data/date2.js +48 -0
- package/dist/components/edit-data/src/data/function2.cjs +16 -7
- package/dist/components/edit-data/src/data/function2.js +17 -8
- package/dist/components/edit-data/src/data/null2.cjs +3 -1
- package/dist/components/edit-data/src/data/null2.js +4 -2
- package/dist/components/edit-data/src/data/number2.cjs +7 -3
- package/dist/components/edit-data/src/data/number2.js +7 -3
- package/dist/components/edit-data/src/data/object2.cjs +9 -5
- package/dist/components/edit-data/src/data/object2.js +9 -5
- package/dist/components/edit-data/src/data/other2.cjs +13 -5
- package/dist/components/edit-data/src/data/other2.js +14 -6
- package/dist/components/edit-data/src/data/string2.cjs +7 -3
- package/dist/components/edit-data/src/data/string2.js +7 -3
- package/dist/components/edit-data/src/data/symbol2.cjs +7 -3
- package/dist/components/edit-data/src/data/symbol2.js +7 -3
- package/dist/components/edit-data/src/data/undefined2.cjs +3 -1
- package/dist/components/edit-data/src/data/undefined2.js +4 -2
- package/dist/components/edit-data/src/data.cjs +10 -0
- package/dist/components/edit-data/src/data.d.ts +20 -0
- package/dist/components/edit-data/src/data.js +10 -0
- package/dist/components/edit-data/src/index2.cjs +31 -2
- package/dist/components/edit-data/src/index2.js +45 -16
- package/dist/components/edit-data-add/src/index2.cjs +2 -0
- package/dist/components/edit-data-add/src/index2.js +2 -0
- package/dist/components/edit-float/src/index2.cjs +3 -2
- package/dist/components/edit-float/src/index2.js +3 -2
- package/dist/components/history/src/index2.cjs +6 -4
- package/dist/components/history/src/index2.js +6 -4
- package/dist/components/input-array/src/index2.cjs +3 -2
- package/dist/components/input-array/src/index2.js +3 -2
- package/dist/components/input-history/src/index2.cjs +3 -2
- package/dist/components/input-history/src/index2.js +3 -2
- package/dist/components/input-select/src/index2.cjs +6 -4
- package/dist/components/input-select/src/index2.js +6 -4
- package/dist/components/labels/src/data.d.ts +5 -5
- package/dist/components/message/index.d.ts +11 -4
- package/dist/components/message/src/function.d.ts +11 -4
- package/dist/components/message-box/index.d.ts +2 -3
- package/dist/components/message-box/src/function.d.ts +2 -3
- package/dist/components/retract/index.css +23 -20
- package/dist/components/retract/index.scss +39 -20
- package/dist/components/retract/src/data.cjs +4 -1
- package/dist/components/retract/src/data.d.ts +4 -1
- package/dist/components/retract/src/data.js +4 -1
- package/dist/components/retract/src/index2.cjs +12 -10
- package/dist/components/retract/src/index2.js +9 -7
- package/dist/components/right-key/index.css +2 -1
- package/dist/components/right-key/index.scss +2 -1
- package/dist/components/right-key/src/data.cjs +7 -2
- package/dist/components/right-key/src/data.d.ts +5 -0
- package/dist/components/right-key/src/data.js +7 -2
- package/dist/components/right-key/src/index2.cjs +134 -60
- package/dist/components/right-key/src/index2.js +135 -61
- package/dist/components/selects/src/data.d.ts +5 -5
- package/dist/components/stick-window/src/index2.cjs +3 -2
- package/dist/components/stick-window/src/index2.js +3 -2
- package/dist/components/switchs/src/data.d.ts +5 -4
- package/dist/components/uploads/src/data.d.ts +5 -5
- package/dist/components/uploads/src/index2.cjs +26 -21
- package/dist/components/uploads/src/index2.js +15 -10
- package/dist/components/videos/src/index2.cjs +30 -19
- package/dist/components/videos/src/index2.js +30 -19
- package/dist/components/window/src/index2.cjs +9 -6
- package/dist/components/window/src/index2.js +9 -6
- package/dist/css/index.css +25 -21
- package/dist/css/retract.css +23 -20
- package/dist/css/right-key.css +2 -1
- package/dist/hooks/model/index.cjs +25 -0
- package/dist/hooks/model/index.d.ts +2 -0
- package/dist/hooks/model/index.js +25 -0
- package/dist/icons/index.json +1 -1
- package/dist/icons/vue/bar.cjs +2 -18
- package/dist/icons/vue/bar.js +1 -17
- package/dist/icons/vue/bar2.cjs +21 -2
- package/dist/icons/vue/bar2.js +21 -2
- package/dist/icons/vue/below.cjs +2 -18
- package/dist/icons/vue/below.js +1 -17
- package/dist/icons/vue/below2.cjs +21 -2
- package/dist/icons/vue/below2.js +21 -2
- package/dist/icons/vue/bicycle.cjs +2 -15
- package/dist/icons/vue/bicycle.js +1 -14
- package/dist/icons/vue/bicycle2.cjs +18 -2
- package/dist/icons/vue/bicycle2.js +18 -2
- package/dist/icons/vue/bottom-left.cjs +2 -22
- package/dist/icons/vue/bottom-left.js +1 -21
- package/dist/icons/vue/bottom-left2.cjs +25 -2
- package/dist/icons/vue/bottom-left2.js +25 -2
- package/dist/icons/vue/bottom-right.cjs +2 -22
- package/dist/icons/vue/bottom-right.js +1 -21
- package/dist/icons/vue/bottom-right2.cjs +25 -2
- package/dist/icons/vue/bottom-right2.js +25 -2
- package/dist/icons/vue/bottom.cjs +2 -18
- package/dist/icons/vue/bottom.js +1 -17
- package/dist/icons/vue/bottom2.cjs +21 -2
- package/dist/icons/vue/bottom2.js +21 -2
- package/dist/icons/vue/catalogue.cjs +2 -23
- package/dist/icons/vue/catalogue.js +1 -22
- package/dist/icons/vue/catalogue2.cjs +26 -2
- package/dist/icons/vue/catalogue2.js +26 -2
- package/dist/icons/vue/clear.cjs +2 -23
- package/dist/icons/vue/clear.js +1 -22
- package/dist/icons/vue/clear2.cjs +26 -2
- package/dist/icons/vue/clear2.js +26 -2
- package/dist/icons/vue/close.cjs +2 -18
- package/dist/icons/vue/close.js +1 -17
- package/dist/icons/vue/close2.cjs +21 -2
- package/dist/icons/vue/close2.js +21 -2
- package/dist/icons/vue/delete.cjs +2 -18
- package/dist/icons/vue/delete.js +1 -17
- package/dist/icons/vue/delete2.cjs +21 -2
- package/dist/icons/vue/delete2.js +21 -2
- package/dist/icons/vue/document.cjs +2 -23
- package/dist/icons/vue/document.js +1 -22
- package/dist/icons/vue/document2.cjs +26 -2
- package/dist/icons/vue/document2.js +26 -2
- package/dist/icons/vue/down.cjs +2 -18
- package/dist/icons/vue/down.js +1 -17
- package/dist/icons/vue/down2.cjs +21 -2
- package/dist/icons/vue/down2.js +21 -2
- package/dist/icons/vue/download.cjs +2 -18
- package/dist/icons/vue/download.js +1 -17
- package/dist/icons/vue/download2.cjs +21 -2
- package/dist/icons/vue/download2.js +21 -2
- package/dist/icons/vue/edit.cjs +2 -23
- package/dist/icons/vue/edit.js +1 -22
- package/dist/icons/vue/edit2.cjs +26 -2
- package/dist/icons/vue/edit2.js +26 -2
- package/dist/icons/vue/enter.cjs +2 -19
- package/dist/icons/vue/enter.js +1 -18
- package/dist/icons/vue/enter2.cjs +22 -2
- package/dist/icons/vue/enter2.js +22 -2
- package/dist/icons/vue/frame.cjs +2 -15
- package/dist/icons/vue/frame.js +1 -14
- package/dist/icons/vue/frame2.cjs +18 -2
- package/dist/icons/vue/frame2.js +18 -2
- package/dist/icons/vue/index.cjs +81 -54
- package/dist/icons/vue/index.js +54 -27
- package/dist/icons/vue/left.cjs +2 -18
- package/dist/icons/vue/left.js +1 -17
- package/dist/icons/vue/left2.cjs +21 -2
- package/dist/icons/vue/left2.js +21 -2
- package/dist/icons/vue/mute.cjs +2 -18
- package/dist/icons/vue/mute.js +1 -17
- package/dist/icons/vue/mute2.cjs +21 -2
- package/dist/icons/vue/mute2.js +21 -2
- package/dist/icons/vue/pause.cjs +2 -24
- package/dist/icons/vue/pause.js +1 -23
- package/dist/icons/vue/pause2.cjs +27 -2
- package/dist/icons/vue/pause2.js +27 -2
- package/dist/icons/vue/play.cjs +2 -19
- package/dist/icons/vue/play.js +1 -18
- package/dist/icons/vue/play2.cjs +22 -2
- package/dist/icons/vue/play2.js +22 -2
- package/dist/icons/vue/plus.cjs +2 -18
- package/dist/icons/vue/plus.js +1 -17
- package/dist/icons/vue/plus2.cjs +21 -2
- package/dist/icons/vue/plus2.js +21 -2
- package/dist/icons/vue/retreat.cjs +2 -19
- package/dist/icons/vue/retreat.js +1 -18
- package/dist/icons/vue/retreat2.cjs +22 -2
- package/dist/icons/vue/retreat2.js +22 -2
- package/dist/icons/vue/right.cjs +2 -18
- package/dist/icons/vue/right.js +1 -17
- package/dist/icons/vue/right2.cjs +21 -2
- package/dist/icons/vue/right2.js +21 -2
- package/dist/icons/vue/sound.cjs +2 -22
- package/dist/icons/vue/sound.js +1 -21
- package/dist/icons/vue/sound2.cjs +25 -2
- package/dist/icons/vue/sound2.js +25 -2
- package/dist/icons/vue/star.cjs +2 -22
- package/dist/icons/vue/star.js +1 -21
- package/dist/icons/vue/star2.cjs +25 -2
- package/dist/icons/vue/star2.js +25 -2
- package/dist/icons/vue/up.cjs +2 -18
- package/dist/icons/vue/up.js +1 -17
- package/dist/icons/vue/up2.cjs +21 -2
- package/dist/icons/vue/up2.js +21 -2
- package/dist/icons/vue/views.cjs +2 -18
- package/dist/icons/vue/views.js +1 -17
- package/dist/icons/vue/views2.cjs +21 -2
- package/dist/icons/vue/views2.js +21 -2
- package/dist/index.css +25 -21
- package/dist/utils/vues/index.d.ts +1 -0
- package/dist/utils/vues/shared.cjs +19 -0
- package/dist/utils/vues/shared.d.ts +5 -0
- package/dist/utils/vues/shared.js +19 -0
- package/package.json +12 -13
- package/dist/_virtual/_plugin-vue_export-helper.cjs +0 -10
- package/dist/_virtual/_plugin-vue_export-helper.js +0 -10
- /package/dist/components/{box-fun → box}/index.css +0 -0
- /package/dist/css/{box-fun.css → box.css} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, useAttrs, useSlots, ref, watch, onMounted, createElementBlock, openBlock, mergeProps, unref, createVNode, createBlock, createCommentVNode, withCtx, normalizeClass, createElementVNode, Fragment, renderList, withModifiers, toDisplayString, withKeys, createSlots, renderSlot, normalizeProps, guardReactiveProps, createTextVNode } from "vue";
|
|
2
2
|
import { Icon } from "../../icon/index.js";
|
|
3
|
-
import
|
|
3
|
+
import "../../../icons/vue/clear.js";
|
|
4
4
|
import { useExpose } from "../../../hooks/expose/index.js";
|
|
5
5
|
import { Popover } from "../../popover/index.js";
|
|
6
6
|
import { Button } from "../../button/index.js";
|
|
@@ -15,6 +15,7 @@ import "../../form/index.js";
|
|
|
15
15
|
import { useDisabled } from "element-plus/es/components/form/index";
|
|
16
16
|
import { replaceAfter } from "@fangzhongya/utils/basic/array/replaceAfter";
|
|
17
17
|
import { deleteArray } from "@fangzhongya/utils/basic/array/deleteArray";
|
|
18
|
+
import _sfc_main$1 from "../../../icons/vue/clear2.js";
|
|
18
19
|
const _hoisted_1 = ["onClick"];
|
|
19
20
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
20
21
|
...{ inheritAttrs: false },
|
|
@@ -164,7 +165,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
164
165
|
onClick: withModifiers(($event) => onClean(item), ["stop"])
|
|
165
166
|
}, {
|
|
166
167
|
default: withCtx(() => [
|
|
167
|
-
createVNode(
|
|
168
|
+
createVNode(_sfc_main$1)
|
|
168
169
|
]),
|
|
169
170
|
_: 1
|
|
170
171
|
}, 8, ["class", "onClick"])) : createCommentVNode("", true)
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const index$6 = require("../../icon/index.cjs");
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
require("../../../icons/vue/clear.cjs");
|
|
6
|
+
require("../../../icons/vue/below.cjs");
|
|
7
7
|
const data = require("./data.cjs");
|
|
8
8
|
const index$5 = require("../../inputs/index.cjs");
|
|
9
9
|
const index$4 = require("../../popover/index.cjs");
|
|
@@ -14,6 +14,8 @@ const getCss = require("@fangzhongya/utils/css/getCss");
|
|
|
14
14
|
require("../../form/index.cjs");
|
|
15
15
|
const index$2 = require("../../../hooks/props-default/index.cjs");
|
|
16
16
|
const index$3 = require("element-plus/es/components/form/index");
|
|
17
|
+
const clear_vue_vue_type_script_setup_true_lang = require("../../../icons/vue/clear2.cjs");
|
|
18
|
+
const below_vue_vue_type_script_setup_true_lang = require("../../../icons/vue/below2.cjs");
|
|
17
19
|
const _hoisted_1 = ["onClick"];
|
|
18
20
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
19
21
|
...{ inheritAttrs: false },
|
|
@@ -153,7 +155,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
153
155
|
onClick: vue.withModifiers(onClear, ["stop"])
|
|
154
156
|
}, {
|
|
155
157
|
default: vue.withCtx(() => [
|
|
156
|
-
vue.createVNode(
|
|
158
|
+
vue.createVNode(clear_vue_vue_type_script_setup_true_lang.default)
|
|
157
159
|
]),
|
|
158
160
|
_: 1
|
|
159
161
|
}, 8, ["class"])) : vue.createCommentVNode("", true),
|
|
@@ -166,7 +168,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
166
168
|
}, {
|
|
167
169
|
default: vue.withCtx(() => [
|
|
168
170
|
vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).iconSelect, {}, () => [
|
|
169
|
-
vue.createVNode(
|
|
171
|
+
vue.createVNode(below_vue_vue_type_script_setup_true_lang.default)
|
|
170
172
|
])
|
|
171
173
|
]),
|
|
172
174
|
_: 3
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, useAttrs, useSlots, ref, computed, onMounted, createBlock, openBlock, unref, withCtx, createElementVNode, normalizeClass, createElementBlock, Fragment, renderList, withModifiers, toDisplayString, mergeProps, createVNode, createSlots, createCommentVNode, renderSlot, normalizeProps, guardReactiveProps } from "vue";
|
|
2
2
|
import { Icon } from "../../icon/index.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import "../../../icons/vue/clear.js";
|
|
4
|
+
import "../../../icons/vue/below.js";
|
|
5
5
|
import { name, dataProps, dataExpose, dataSlot, dataEmits } from "./data.js";
|
|
6
6
|
import { Inputs } from "../../inputs/index.js";
|
|
7
7
|
import { Popover } from "../../popover/index.js";
|
|
@@ -12,6 +12,8 @@ import { getCss } from "@fangzhongya/utils/css/getCss";
|
|
|
12
12
|
import "../../form/index.js";
|
|
13
13
|
import { usePropsDefault, getProps } from "../../../hooks/props-default/index.js";
|
|
14
14
|
import { useDisabled } from "element-plus/es/components/form/index";
|
|
15
|
+
import _sfc_main$1 from "../../../icons/vue/clear2.js";
|
|
16
|
+
import _sfc_main$2 from "../../../icons/vue/below2.js";
|
|
15
17
|
const _hoisted_1 = ["onClick"];
|
|
16
18
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
17
19
|
...{ inheritAttrs: false },
|
|
@@ -151,7 +153,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
151
153
|
onClick: withModifiers(onClear, ["stop"])
|
|
152
154
|
}, {
|
|
153
155
|
default: withCtx(() => [
|
|
154
|
-
createVNode(
|
|
156
|
+
createVNode(_sfc_main$1)
|
|
155
157
|
]),
|
|
156
158
|
_: 1
|
|
157
159
|
}, 8, ["class"])) : createCommentVNode("", true),
|
|
@@ -164,7 +166,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
164
166
|
}, {
|
|
165
167
|
default: withCtx(() => [
|
|
166
168
|
renderSlot(_ctx.$slots, unref(dataSlot).iconSelect, {}, () => [
|
|
167
|
-
createVNode(
|
|
169
|
+
createVNode(_sfc_main$2)
|
|
168
170
|
])
|
|
169
171
|
]),
|
|
170
172
|
_: 3
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
|
2
|
-
import { comHandle } from '../../common/list';
|
|
2
|
+
import { comHandle, Options } from '../../common/list';
|
|
3
3
|
/**
|
|
4
4
|
* @title {h3} labels
|
|
5
5
|
*/
|
|
@@ -29,10 +29,10 @@ export declare const dataProps: {
|
|
|
29
29
|
};
|
|
30
30
|
options: {
|
|
31
31
|
type: {
|
|
32
|
-
(arrayLength: number):
|
|
33
|
-
(...items:
|
|
34
|
-
new (arrayLength: number):
|
|
35
|
-
new (...items:
|
|
32
|
+
(arrayLength: number): Options[];
|
|
33
|
+
(...items: Options[]): Options[];
|
|
34
|
+
new (arrayLength: number): Options[];
|
|
35
|
+
new (...items: Options[]): Options[];
|
|
36
36
|
isArray(arg: any): arg is any[];
|
|
37
37
|
readonly prototype: any[];
|
|
38
38
|
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { Plugin } from 'vue';
|
|
1
|
+
import { MessageFn, MessageTypedFn } from 'packages';
|
|
2
|
+
import { ObjectPlugin, AppContext, Plugin } from 'vue';
|
|
4
3
|
export * from './src/export';
|
|
5
|
-
declare const Message:
|
|
4
|
+
declare const Message: MessageFn & {
|
|
5
|
+
primary: MessageTypedFn;
|
|
6
|
+
success: MessageTypedFn;
|
|
7
|
+
warning: MessageTypedFn;
|
|
8
|
+
info: MessageTypedFn;
|
|
9
|
+
error: MessageTypedFn;
|
|
10
|
+
} & ObjectPlugin & {
|
|
11
|
+
_context: AppContext | null;
|
|
12
|
+
} & {
|
|
6
13
|
install: Plugin["install"];
|
|
7
14
|
};
|
|
8
15
|
export { Message };
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { MessageFn, MessageTypedFn } from 'packages';
|
|
2
|
+
import { ObjectPlugin, AppContext, Plugin } from 'vue';
|
|
3
|
+
export declare function withInstall<T>(fun: T, name: string): MessageFn & {
|
|
4
|
+
primary: MessageTypedFn;
|
|
5
|
+
success: MessageTypedFn;
|
|
6
|
+
warning: MessageTypedFn;
|
|
7
|
+
info: MessageTypedFn;
|
|
8
|
+
error: MessageTypedFn;
|
|
9
|
+
} & ObjectPlugin & {
|
|
10
|
+
_context: AppContext | null;
|
|
11
|
+
} & {
|
|
5
12
|
install: Plugin["install"];
|
|
6
13
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { SFCWithInstall } from 'element-plus/es/utils';
|
|
2
1
|
import { IElMessageBox } from 'packages';
|
|
3
|
-
import { AppContext } from 'vue';
|
|
2
|
+
import { ObjectPlugin, AppContext } from 'vue';
|
|
4
3
|
export * from './src/export';
|
|
5
|
-
declare const MessageBox:
|
|
4
|
+
declare const MessageBox: IElMessageBox & ObjectPlugin & {
|
|
6
5
|
install: Function;
|
|
7
6
|
_context: AppContext | null;
|
|
8
7
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { AppContext } from 'vue';
|
|
2
|
-
import { SFCWithInstall } from 'element-plus/es/utils';
|
|
1
|
+
import { AppContext, ObjectPlugin } from 'vue';
|
|
3
2
|
import { IElMessageBox } from 'packages';
|
|
4
|
-
export declare function withInstall<T>(fun: T, name: string):
|
|
3
|
+
export declare function withInstall<T>(fun: T, name: string): IElMessageBox & ObjectPlugin & {
|
|
5
4
|
install: Function;
|
|
6
5
|
_context: AppContext | null;
|
|
7
6
|
};
|
|
@@ -24,6 +24,9 @@
|
|
|
24
24
|
|
|
25
25
|
.retract {
|
|
26
26
|
position: relative;
|
|
27
|
+
--retract-width: 12px;
|
|
28
|
+
--retract-height: 40px;
|
|
29
|
+
--retract-width-adjust: 8px;
|
|
27
30
|
}
|
|
28
31
|
.retract-div.left, .retract-div.right {
|
|
29
32
|
height: 100%;
|
|
@@ -53,13 +56,13 @@
|
|
|
53
56
|
}
|
|
54
57
|
.retract .retract-but.is-left {
|
|
55
58
|
top: 50%;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
left: -
|
|
59
|
+
height: var(--retract-height);
|
|
60
|
+
margin-top: calc(var(--retract-height) / 2 * -1);
|
|
61
|
+
width: var(--retract-width);
|
|
62
|
+
left: calc(0 - var(--retract-width));
|
|
60
63
|
}
|
|
61
64
|
.retract .retract-but.is-left.is-adjust {
|
|
62
|
-
left: -
|
|
65
|
+
left: calc(var(--retract-width-adjust) - var(--retract-width));
|
|
63
66
|
}
|
|
64
67
|
.retract .retract-but.is-left .retract-icon {
|
|
65
68
|
transform: rotate(0);
|
|
@@ -69,13 +72,13 @@
|
|
|
69
72
|
}
|
|
70
73
|
.retract .retract-but.is-right {
|
|
71
74
|
top: 50%;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
right: -
|
|
75
|
+
height: var(--retract-height);
|
|
76
|
+
margin-top: calc(var(--retract-height) / 2 * -1);
|
|
77
|
+
width: var(--retract-width);
|
|
78
|
+
right: calc(0 - var(--retract-width));
|
|
76
79
|
}
|
|
77
80
|
.retract .retract-but.is-right.is-adjust {
|
|
78
|
-
right: -
|
|
81
|
+
right: calc(var(--retract-width-adjust) - var(--retract-width));
|
|
79
82
|
}
|
|
80
83
|
.retract .retract-but.is-right .retract-icon {
|
|
81
84
|
transform: rotate(-180deg);
|
|
@@ -85,13 +88,13 @@
|
|
|
85
88
|
}
|
|
86
89
|
.retract .retract-but.is-top {
|
|
87
90
|
left: 50%;
|
|
88
|
-
width:
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
top: -
|
|
91
|
+
width: var(--retract-height);
|
|
92
|
+
margin-left: calc(var(--retract-height) / 2 * -1);
|
|
93
|
+
height: var(--retract-width);
|
|
94
|
+
top: calc(0 - var(--retract-width));
|
|
92
95
|
}
|
|
93
96
|
.retract .retract-but.is-top.is-adjust {
|
|
94
|
-
top: -
|
|
97
|
+
top: calc(var(--retract-width-adjust) - var(--retract-width));
|
|
95
98
|
}
|
|
96
99
|
.retract .retract-but.is-top .retract-icon {
|
|
97
100
|
transform: rotate(90deg);
|
|
@@ -101,13 +104,13 @@
|
|
|
101
104
|
}
|
|
102
105
|
.retract .retract-but.is-bottom {
|
|
103
106
|
left: 50%;
|
|
104
|
-
width:
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
bottom: -
|
|
107
|
+
width: var(--retract-height);
|
|
108
|
+
margin-left: calc(var(--retract-height) / 2 * -1);
|
|
109
|
+
height: var(--retract-width);
|
|
110
|
+
bottom: calc(0 - var(--retract-width));
|
|
108
111
|
}
|
|
109
112
|
.retract .retract-but.is-bottom.is-adjust {
|
|
110
|
-
bottom: -
|
|
113
|
+
bottom: calc(var(--retract-width-adjust) - var(--retract-width));
|
|
111
114
|
}
|
|
112
115
|
.retract .retract-but.is-bottom .retract-icon {
|
|
113
116
|
transform: rotate(-90deg);
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
$retract: 'retract';
|
|
4
4
|
@include b($retract) {
|
|
5
5
|
position: relative;
|
|
6
|
+
#{vdm('width', $retract)}: 12px;
|
|
7
|
+
#{vdm('height', $retract)}: 40px;
|
|
8
|
+
#{vdm('width-adjust', $retract)}: 8px;
|
|
6
9
|
&-div {
|
|
7
10
|
&.left,
|
|
8
11
|
&.right {
|
|
@@ -34,12 +37,16 @@ $retract: 'retract';
|
|
|
34
37
|
}
|
|
35
38
|
&.is-left {
|
|
36
39
|
top: 50%;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
left: -
|
|
40
|
+
height: var(#{vdm('height', $retract)});
|
|
41
|
+
margin-top: calc(var(#{vdm('height', $retract)}) / 2 * -1);
|
|
42
|
+
width: var(#{vdm('width', $retract)});
|
|
43
|
+
left: calc(0 - var(#{vdm('width', $retract)}));
|
|
41
44
|
&.#{is('adjust')} {
|
|
42
|
-
left:
|
|
45
|
+
left: calc(
|
|
46
|
+
var(#{vdm('width-adjust', $retract)}) - var(
|
|
47
|
+
#{vdm('width', $retract)}
|
|
48
|
+
)
|
|
49
|
+
);
|
|
43
50
|
}
|
|
44
51
|
.#{$retract}-icon {
|
|
45
52
|
transform: rotate(0);
|
|
@@ -50,12 +57,16 @@ $retract: 'retract';
|
|
|
50
57
|
}
|
|
51
58
|
&.is-right {
|
|
52
59
|
top: 50%;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
right: -
|
|
60
|
+
height: var(#{vdm('height', $retract)});
|
|
61
|
+
margin-top: calc(var(#{vdm('height', $retract)}) / 2 * -1);
|
|
62
|
+
width: var(#{vdm('width', $retract)});
|
|
63
|
+
right: calc(0 - var(#{vdm('width', $retract)}));
|
|
57
64
|
&.#{is('adjust')} {
|
|
58
|
-
right:
|
|
65
|
+
right: calc(
|
|
66
|
+
var(#{vdm('width-adjust', $retract)}) - var(
|
|
67
|
+
#{vdm('width', $retract)}
|
|
68
|
+
)
|
|
69
|
+
);
|
|
59
70
|
}
|
|
60
71
|
.#{$retract}-icon {
|
|
61
72
|
transform: rotate(-180deg);
|
|
@@ -66,12 +77,16 @@ $retract: 'retract';
|
|
|
66
77
|
}
|
|
67
78
|
&.is-top {
|
|
68
79
|
left: 50%;
|
|
69
|
-
width:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
top: -
|
|
80
|
+
width: var(#{vdm('height', $retract)});
|
|
81
|
+
margin-left: calc(var(#{vdm('height', $retract)}) / 2 * -1);
|
|
82
|
+
height: var(#{vdm('width', $retract)});
|
|
83
|
+
top: calc(0 - var(#{vdm('width', $retract)}));
|
|
73
84
|
&.#{is('adjust')} {
|
|
74
|
-
top:
|
|
85
|
+
top: calc(
|
|
86
|
+
var(#{vdm('width-adjust', $retract)}) - var(
|
|
87
|
+
#{vdm('width', $retract)}
|
|
88
|
+
)
|
|
89
|
+
);
|
|
75
90
|
}
|
|
76
91
|
.#{$retract}-icon {
|
|
77
92
|
transform: rotate(90deg);
|
|
@@ -82,12 +97,16 @@ $retract: 'retract';
|
|
|
82
97
|
}
|
|
83
98
|
&.is-bottom {
|
|
84
99
|
left: 50%;
|
|
85
|
-
width:
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
bottom: -
|
|
100
|
+
width: var(#{vdm('height', $retract)});
|
|
101
|
+
margin-left: calc(var(#{vdm('height', $retract)}) / 2 * -1);
|
|
102
|
+
height: var(#{vdm('width', $retract)});
|
|
103
|
+
bottom: calc(0 - var(#{vdm('width', $retract)}));
|
|
89
104
|
&.#{is('adjust')} {
|
|
90
|
-
bottom:
|
|
105
|
+
bottom: calc(
|
|
106
|
+
var(#{vdm('width-adjust', $retract)}) - var(
|
|
107
|
+
#{vdm('width', $retract)}
|
|
108
|
+
)
|
|
109
|
+
);
|
|
91
110
|
}
|
|
92
111
|
.#{$retract}-icon {
|
|
93
112
|
transform: rotate(-90deg);
|
|
@@ -20,9 +20,12 @@ const dataProps = buildProps.buildProps({
|
|
|
20
20
|
},
|
|
21
21
|
isAdjust: {
|
|
22
22
|
type: Boolean
|
|
23
|
+
},
|
|
24
|
+
modelValue: {
|
|
25
|
+
type: Boolean
|
|
23
26
|
}
|
|
24
27
|
});
|
|
25
|
-
const dataEmits =
|
|
28
|
+
const dataEmits = ["update:modelValue"];
|
|
26
29
|
const dataSlot = {
|
|
27
30
|
default: "default",
|
|
28
31
|
icon: "icon"
|
|
@@ -23,11 +23,14 @@ export declare const dataProps: {
|
|
|
23
23
|
isAdjust: {
|
|
24
24
|
type: BooleanConstructor;
|
|
25
25
|
};
|
|
26
|
+
modelValue: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
};
|
|
26
29
|
};
|
|
27
30
|
export type DataProps = ExtractPropTypes<typeof dataProps>;
|
|
28
31
|
/**
|
|
29
32
|
*/
|
|
30
|
-
export declare const dataEmits:
|
|
33
|
+
export declare const dataEmits: string[];
|
|
31
34
|
export type DataEmits = typeof dataEmits;
|
|
32
35
|
/**
|
|
33
36
|
* @slot default 默认插槽
|
|
@@ -18,9 +18,12 @@ const dataProps = buildProps({
|
|
|
18
18
|
},
|
|
19
19
|
isAdjust: {
|
|
20
20
|
type: Boolean
|
|
21
|
+
},
|
|
22
|
+
modelValue: {
|
|
23
|
+
type: Boolean
|
|
21
24
|
}
|
|
22
25
|
});
|
|
23
|
-
const dataEmits =
|
|
26
|
+
const dataEmits = ["update:modelValue"];
|
|
24
27
|
const dataSlot = {
|
|
25
28
|
default: "default",
|
|
26
29
|
icon: "icon"
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
|
-
const index$
|
|
5
|
-
|
|
6
|
-
const index$
|
|
4
|
+
const index$5 = require("../../icon/index.cjs");
|
|
5
|
+
require("../../../icons/vue/right.cjs");
|
|
6
|
+
const index$4 = require("../../../directives/adjustment/index.cjs");
|
|
7
7
|
const data = require("./data.cjs");
|
|
8
8
|
const index$1 = require("../../../hooks/cssname/index.cjs");
|
|
9
9
|
const index = require("../../../hooks/locale/index.cjs");
|
|
10
10
|
const index$2 = require("../../../hooks/props-default/index.cjs");
|
|
11
|
+
const index$3 = require("../../../hooks/model/index.cjs");
|
|
12
|
+
const right_vue_vue_type_script_setup_true_lang = require("../../../icons/vue/right2.cjs");
|
|
11
13
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
12
14
|
__name: "index",
|
|
13
15
|
props: index$2.getProps(data.dataProps),
|
|
@@ -18,7 +20,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
18
20
|
const prs = __props;
|
|
19
21
|
const props = index$2.usePropsDefault(data.name, prs, data.dataProps);
|
|
20
22
|
const emit = __emit;
|
|
21
|
-
const visible =
|
|
23
|
+
const visible = index$3.useModel(props, emit);
|
|
22
24
|
function onClick() {
|
|
23
25
|
visible.value = !visible.value;
|
|
24
26
|
}
|
|
@@ -34,13 +36,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
34
36
|
}, [
|
|
35
37
|
vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).default)
|
|
36
38
|
], 2)), [
|
|
37
|
-
[vue.vShow, !visible
|
|
38
|
-
[vue.unref(index$
|
|
39
|
+
[vue.vShow, !vue.unref(visible)],
|
|
40
|
+
[vue.unref(index$4.default), {
|
|
39
41
|
is: vue.unref(props).isAdjust,
|
|
40
42
|
often: vue.unref(props).often,
|
|
41
43
|
dom: "div",
|
|
42
44
|
[vue.unref(props).direction]: {
|
|
43
|
-
interval:
|
|
45
|
+
interval: 8
|
|
44
46
|
// adjoin: 'div',
|
|
45
47
|
}
|
|
46
48
|
}]
|
|
@@ -53,12 +55,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
53
55
|
vue.unref(cs).is(vue.unref(props).direction, true)
|
|
54
56
|
])
|
|
55
57
|
}, [
|
|
56
|
-
vue.createVNode(vue.unref(index$
|
|
57
|
-
class: vue.normalizeClass([vue.unref(cs).z("icon"), vue.unref(cs).is("reverse", visible
|
|
58
|
+
vue.createVNode(vue.unref(index$5.Icon), {
|
|
59
|
+
class: vue.normalizeClass([vue.unref(cs).z("icon"), vue.unref(cs).is("reverse", vue.unref(visible))])
|
|
58
60
|
}, {
|
|
59
61
|
default: vue.withCtx(() => [
|
|
60
62
|
vue.renderSlot(_ctx.$slots, vue.unref(data.dataSlot).icon, {}, () => [
|
|
61
|
-
vue.createVNode(
|
|
63
|
+
vue.createVNode(right_vue_vue_type_script_setup_true_lang.default)
|
|
62
64
|
])
|
|
63
65
|
]),
|
|
64
66
|
_: 3
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, withDirectives, createElementVNode, renderSlot, vShow, withModifiers, createVNode, withCtx } from "vue";
|
|
2
2
|
import { Icon } from "../../icon/index.js";
|
|
3
|
-
import
|
|
3
|
+
import "../../../icons/vue/right.js";
|
|
4
4
|
import vAdjustment from "../../../directives/adjustment/index.js";
|
|
5
5
|
import { name, dataProps, dataExpose, dataSlot, dataEmits } from "./data.js";
|
|
6
6
|
import { useCssName } from "../../../hooks/cssname/index.js";
|
|
7
7
|
import { useLocale } from "../../../hooks/locale/index.js";
|
|
8
8
|
import { usePropsDefault, getProps } from "../../../hooks/props-default/index.js";
|
|
9
|
+
import { useModel } from "../../../hooks/model/index.js";
|
|
10
|
+
import _sfc_main$1 from "../../../icons/vue/right2.js";
|
|
9
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
12
|
__name: "index",
|
|
11
13
|
props: getProps(dataProps),
|
|
@@ -16,7 +18,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16
18
|
const prs = __props;
|
|
17
19
|
const props = usePropsDefault(name, prs, dataProps);
|
|
18
20
|
const emit = __emit;
|
|
19
|
-
const visible =
|
|
21
|
+
const visible = useModel(props, emit);
|
|
20
22
|
function onClick() {
|
|
21
23
|
visible.value = !visible.value;
|
|
22
24
|
}
|
|
@@ -32,13 +34,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
32
34
|
}, [
|
|
33
35
|
renderSlot(_ctx.$slots, unref(dataSlot).default)
|
|
34
36
|
], 2)), [
|
|
35
|
-
[vShow, !visible
|
|
37
|
+
[vShow, !unref(visible)],
|
|
36
38
|
[unref(vAdjustment), {
|
|
37
39
|
is: unref(props).isAdjust,
|
|
38
40
|
often: unref(props).often,
|
|
39
41
|
dom: "div",
|
|
40
42
|
[unref(props).direction]: {
|
|
41
|
-
interval:
|
|
43
|
+
interval: 8
|
|
42
44
|
// adjoin: 'div',
|
|
43
45
|
}
|
|
44
46
|
}]
|
|
@@ -52,11 +54,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
52
54
|
])
|
|
53
55
|
}, [
|
|
54
56
|
createVNode(unref(Icon), {
|
|
55
|
-
class: normalizeClass([unref(cs).z("icon"), unref(cs).is("reverse", visible
|
|
57
|
+
class: normalizeClass([unref(cs).z("icon"), unref(cs).is("reverse", unref(visible))])
|
|
56
58
|
}, {
|
|
57
59
|
default: withCtx(() => [
|
|
58
60
|
renderSlot(_ctx.$slots, unref(dataSlot).icon, {}, () => [
|
|
59
|
-
createVNode(
|
|
61
|
+
createVNode(_sfc_main$1)
|
|
60
62
|
])
|
|
61
63
|
]),
|
|
62
64
|
_: 3
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
.right-key-box {
|
|
26
26
|
width: 140px;
|
|
27
|
-
position:
|
|
27
|
+
position: fixed;
|
|
28
28
|
padding: 10px;
|
|
29
29
|
z-index: 9999;
|
|
30
30
|
background: #ffffff;
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
white-space: nowrap;
|
|
41
41
|
display: flex;
|
|
42
42
|
align-items: center;
|
|
43
|
+
box-sizing: border-box;
|
|
43
44
|
height: 40px;
|
|
44
45
|
padding: 8px 14px 8px 10px;
|
|
45
46
|
border-radius: 4px;
|
|
@@ -4,7 +4,7 @@ $right-key: 'right-key';
|
|
|
4
4
|
@include b($right-key) {
|
|
5
5
|
&-box {
|
|
6
6
|
width: 140px;
|
|
7
|
-
position:
|
|
7
|
+
position: fixed;
|
|
8
8
|
padding: 10px;
|
|
9
9
|
z-index: 9999;
|
|
10
10
|
background: #ffffff;
|
|
@@ -20,6 +20,7 @@ $right-key: 'right-key';
|
|
|
20
20
|
white-space: nowrap;
|
|
21
21
|
display: flex;
|
|
22
22
|
align-items: center;
|
|
23
|
+
box-sizing: border-box;
|
|
23
24
|
height: 40px;
|
|
24
25
|
padding: 8px 14px 8px 10px;
|
|
25
26
|
border-radius: 4px;
|
|
@@ -45,7 +45,7 @@ const dataProps = buildProps.buildProps({
|
|
|
45
45
|
*/
|
|
46
46
|
boxClass: {
|
|
47
47
|
type: [String]
|
|
48
|
-
}
|
|
48
|
+
},
|
|
49
49
|
// /**
|
|
50
50
|
// * @props { String, Function } prop=value 列表中对比的内容
|
|
51
51
|
// */
|
|
@@ -53,10 +53,15 @@ const dataProps = buildProps.buildProps({
|
|
|
53
53
|
// type: [String, Function],
|
|
54
54
|
// default: 'value',
|
|
55
55
|
// },
|
|
56
|
+
isSingle: {
|
|
57
|
+
type: Boolean,
|
|
58
|
+
default: false
|
|
59
|
+
}
|
|
56
60
|
});
|
|
57
61
|
const dataEmits = ["click-key", "click-right"];
|
|
58
62
|
const dataSlot = {
|
|
59
|
-
default: "default"
|
|
63
|
+
default: "default",
|
|
64
|
+
list: "list"
|
|
60
65
|
};
|
|
61
66
|
const dataExpose = {};
|
|
62
67
|
exports.dataEmits = dataEmits;
|
|
@@ -60,6 +60,10 @@ export declare const dataProps: {
|
|
|
60
60
|
boxClass: {
|
|
61
61
|
type: StringConstructor[];
|
|
62
62
|
};
|
|
63
|
+
isSingle: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
default: boolean;
|
|
66
|
+
};
|
|
63
67
|
to: {
|
|
64
68
|
type: StringConstructor;
|
|
65
69
|
default: FunctConfig;
|
|
@@ -84,6 +88,7 @@ export type DataEmits = typeof dataEmits;
|
|
|
84
88
|
*/
|
|
85
89
|
export declare const dataSlot: {
|
|
86
90
|
default: string;
|
|
91
|
+
list: string;
|
|
87
92
|
};
|
|
88
93
|
/**
|
|
89
94
|
*/
|
|
@@ -43,7 +43,7 @@ const dataProps = buildProps({
|
|
|
43
43
|
*/
|
|
44
44
|
boxClass: {
|
|
45
45
|
type: [String]
|
|
46
|
-
}
|
|
46
|
+
},
|
|
47
47
|
// /**
|
|
48
48
|
// * @props { String, Function } prop=value 列表中对比的内容
|
|
49
49
|
// */
|
|
@@ -51,10 +51,15 @@ const dataProps = buildProps({
|
|
|
51
51
|
// type: [String, Function],
|
|
52
52
|
// default: 'value',
|
|
53
53
|
// },
|
|
54
|
+
isSingle: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: false
|
|
57
|
+
}
|
|
54
58
|
});
|
|
55
59
|
const dataEmits = ["click-key", "click-right"];
|
|
56
60
|
const dataSlot = {
|
|
57
|
-
default: "default"
|
|
61
|
+
default: "default",
|
|
62
|
+
list: "list"
|
|
58
63
|
};
|
|
59
64
|
const dataExpose = {};
|
|
60
65
|
export {
|