@fangzhongya/fang-ui 0.0.27 → 0.0.28
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/button/index.d.ts +1 -1
- package/dist/components/button/src/index.d.ts +2 -2
- package/dist/components/dates/index.css +1 -1
- package/dist/components/dates/index.scss +4 -6
- package/dist/components/dialog/src/index.cjs +5 -9
- package/dist/components/dialog/src/index.js +6 -10
- package/dist/components/dialog/style/index2.scss +3 -0
- package/dist/components/forms/src/data.cjs +1 -1
- package/dist/components/forms/src/data.js +1 -1
- package/dist/components/input/index.d.ts +1 -1
- package/dist/components/input/src/index.d.ts +2 -2
- package/dist/components/input-history/src/util.d.ts +17 -0
- package/dist/components/input-select/index.d.ts +1 -1
- package/dist/components/input-select/src/index.d.ts +2 -2
- package/dist/components/right-key/src/data.cjs +1 -1
- package/dist/components/right-key/src/data.js +1 -1
- package/dist/components/right-key/src/index.cjs +1 -0
- package/dist/components/right-key/src/index.js +1 -0
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/components/tooltip/src/index.d.ts +2 -2
- package/dist/index.css +1 -1
- package/package.json +2 -2
|
@@ -278,7 +278,7 @@ declare const Button: {
|
|
|
278
278
|
};
|
|
279
279
|
}>> & {
|
|
280
280
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
281
|
-
}, "size" | "type" | "link" | "circle" | "text" | "
|
|
281
|
+
}, "size" | "type" | "link" | "circle" | "text" | "disabled" | "nativeType" | "loading" | "loadingIcon" | "plain" | "bg" | "autofocus" | "round" | "dark" | "autoInsertSpace" | "tag" | "ref" | "shouldAddSpace"> & ShallowUnwrapRef<{
|
|
282
282
|
ref: Ref<HTMLButtonElement | undefined>;
|
|
283
283
|
size: ComputedRef<"" | "small" | "default" | "large">;
|
|
284
284
|
type: ComputedRef<string>;
|
|
@@ -278,7 +278,7 @@ declare function __VLS_template(): {
|
|
|
278
278
|
};
|
|
279
279
|
}>> & {
|
|
280
280
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
281
|
-
}, "size" | "type" | "link" | "circle" | "text" | "
|
|
281
|
+
}, "size" | "type" | "link" | "circle" | "text" | "disabled" | "nativeType" | "loading" | "loadingIcon" | "plain" | "bg" | "autofocus" | "round" | "dark" | "autoInsertSpace" | "tag" | "ref" | "shouldAddSpace"> & ShallowUnwrapRef<{
|
|
282
282
|
ref: Ref<HTMLButtonElement | undefined>;
|
|
283
283
|
size: ComputedRef<"" | "small" | "default" | "large">;
|
|
284
284
|
type: ComputedRef<string>;
|
|
@@ -572,7 +572,7 @@ declare const __VLS_component: DefineComponent<{}, {
|
|
|
572
572
|
};
|
|
573
573
|
}>> & {
|
|
574
574
|
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
575
|
-
}, "size" | "type" | "link" | "circle" | "text" | "
|
|
575
|
+
}, "size" | "type" | "link" | "circle" | "text" | "disabled" | "nativeType" | "loading" | "loadingIcon" | "plain" | "bg" | "autofocus" | "round" | "dark" | "autoInsertSpace" | "tag" | "ref" | "shouldAddSpace"> & ShallowUnwrapRef<{
|
|
576
576
|
ref: Ref<HTMLButtonElement | undefined>;
|
|
577
577
|
size: ComputedRef<"" | "small" | "default" | "large">;
|
|
578
578
|
type: ComputedRef<string>;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const es = require("element-plus/es");
|
|
4
|
-
require("element-plus/es/components/base/style/css");
|
|
5
|
-
require("element-plus/es/components/dialog/style/css");
|
|
6
|
-
require("element-plus/es/components/button/style/css");
|
|
7
3
|
const vue = require("vue");
|
|
8
4
|
const data = require("./data.cjs");
|
|
5
|
+
const ElDialog = require("element-plus/es/components/dialog/index");
|
|
6
|
+
const ElButton = require("element-plus/es/components/button/index");
|
|
9
7
|
const index = require("../../../hooks/cssname/index.cjs");
|
|
10
8
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
11
9
|
__name: "index",
|
|
@@ -34,9 +32,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
34
32
|
};
|
|
35
33
|
__expose({});
|
|
36
34
|
return (_ctx, _cache) => {
|
|
37
|
-
|
|
38
|
-
const _component_el_dialog = es.ElDialog;
|
|
39
|
-
return vue.openBlock(), vue.createBlock(_component_el_dialog, vue.mergeProps(vue.unref(attrs), {
|
|
35
|
+
return vue.openBlock(), vue.createBlock(vue.unref(ElDialog), vue.mergeProps(vue.unref(attrs), {
|
|
40
36
|
class: vue.unref(cs).z(),
|
|
41
37
|
modelValue: value.value,
|
|
42
38
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
@@ -59,14 +55,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
59
55
|
vue.createElementVNode("div", {
|
|
60
56
|
class: vue.normalizeClass(vue.unref(cs).z("footer"))
|
|
61
57
|
}, [
|
|
62
|
-
vue.createVNode(
|
|
58
|
+
vue.createVNode(vue.unref(ElButton), { onClick: onClose }, {
|
|
63
59
|
default: vue.withCtx(() => _cache[1] || (_cache[1] = [
|
|
64
60
|
vue.createTextVNode("关闭")
|
|
65
61
|
])),
|
|
66
62
|
_: 1,
|
|
67
63
|
__: [1]
|
|
68
64
|
}),
|
|
69
|
-
vue.createVNode(
|
|
65
|
+
vue.createVNode(vue.unref(ElButton), {
|
|
70
66
|
type: "primary",
|
|
71
67
|
onClick: onSubmit
|
|
72
68
|
}, {
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "element-plus/es/components/base/style/css";
|
|
3
|
-
import "element-plus/es/components/dialog/style/css";
|
|
4
|
-
import "element-plus/es/components/button/style/css";
|
|
5
|
-
import { defineComponent, useAttrs, useSlots, computed, createBlock, openBlock, mergeProps, unref, createSlots, renderList, withCtx, renderSlot, createElementVNode, normalizeClass, createVNode, createTextVNode } from "vue";
|
|
1
|
+
import { defineComponent, useAttrs, useSlots, computed, createBlock, openBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, createElementVNode, normalizeClass, createVNode, createTextVNode } from "vue";
|
|
6
2
|
import { dataEmits, dataProps } from "./data.js";
|
|
3
|
+
import ElDialog from "element-plus/es/components/dialog/index";
|
|
4
|
+
import ElButton from "element-plus/es/components/button/index";
|
|
7
5
|
import { useCssName } from "../../../hooks/cssname/index.js";
|
|
8
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
7
|
__name: "index",
|
|
@@ -32,9 +30,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
32
30
|
};
|
|
33
31
|
__expose({});
|
|
34
32
|
return (_ctx, _cache) => {
|
|
35
|
-
|
|
36
|
-
const _component_el_dialog = ElDialog;
|
|
37
|
-
return openBlock(), createBlock(_component_el_dialog, mergeProps(unref(attrs), {
|
|
33
|
+
return openBlock(), createBlock(unref(ElDialog), mergeProps(unref(attrs), {
|
|
38
34
|
class: unref(cs).z(),
|
|
39
35
|
modelValue: value.value,
|
|
40
36
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
@@ -57,14 +53,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
57
53
|
createElementVNode("div", {
|
|
58
54
|
class: normalizeClass(unref(cs).z("footer"))
|
|
59
55
|
}, [
|
|
60
|
-
createVNode(
|
|
56
|
+
createVNode(unref(ElButton), { onClick: onClose }, {
|
|
61
57
|
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
62
58
|
createTextVNode("关闭")
|
|
63
59
|
])),
|
|
64
60
|
_: 1,
|
|
65
61
|
__: [1]
|
|
66
62
|
}),
|
|
67
|
-
createVNode(
|
|
63
|
+
createVNode(unref(ElButton), {
|
|
68
64
|
type: "primary",
|
|
69
65
|
onClick: onSubmit
|
|
70
66
|
}, {
|
|
@@ -504,7 +504,7 @@ declare const Input: {
|
|
|
504
504
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
505
505
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
506
506
|
onClear?: (() => any) | undefined;
|
|
507
|
-
}, "clear" | "type" | "input" | "select" | "textarea" | "modelValue" | "
|
|
507
|
+
}, "clear" | "type" | "input" | "select" | "textarea" | "modelValue" | "disabled" | "autofocus" | "ref" | "id" | "tabindex" | "validateEvent" | "focus" | "blur" | "clearable" | "readonly" | "inputmode" | "autosize" | "autocomplete" | "showPassword" | "showWordLimit" | "containerRole" | "inputStyle" | "rows" | "textareaStyle" | "isComposing" | "resizeTextarea"> & ShallowUnwrapRef<{
|
|
508
508
|
input: ShallowRef<HTMLInputElement | undefined>;
|
|
509
509
|
textarea: ShallowRef<HTMLTextAreaElement | undefined>;
|
|
510
510
|
ref: ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
@@ -504,7 +504,7 @@ declare function __VLS_template(): {
|
|
|
504
504
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
505
505
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
506
506
|
onClear?: (() => any) | undefined;
|
|
507
|
-
}, "clear" | "type" | "input" | "select" | "textarea" | "modelValue" | "
|
|
507
|
+
}, "clear" | "type" | "input" | "select" | "textarea" | "modelValue" | "disabled" | "autofocus" | "ref" | "id" | "tabindex" | "validateEvent" | "focus" | "blur" | "clearable" | "readonly" | "inputmode" | "autosize" | "autocomplete" | "showPassword" | "showWordLimit" | "containerRole" | "inputStyle" | "rows" | "textareaStyle" | "isComposing" | "resizeTextarea"> & ShallowUnwrapRef<{
|
|
508
508
|
input: ShallowRef<HTMLInputElement | undefined>;
|
|
509
509
|
textarea: ShallowRef<HTMLTextAreaElement | undefined>;
|
|
510
510
|
ref: ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
@@ -1030,7 +1030,7 @@ declare const __VLS_component: DefineComponent<{}, {
|
|
|
1030
1030
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
1031
1031
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
1032
1032
|
onClear?: (() => any) | undefined;
|
|
1033
|
-
}, "clear" | "type" | "input" | "select" | "textarea" | "modelValue" | "
|
|
1033
|
+
}, "clear" | "type" | "input" | "select" | "textarea" | "modelValue" | "disabled" | "autofocus" | "ref" | "id" | "tabindex" | "validateEvent" | "focus" | "blur" | "clearable" | "readonly" | "inputmode" | "autosize" | "autocomplete" | "showPassword" | "showWordLimit" | "containerRole" | "inputStyle" | "rows" | "textareaStyle" | "isComposing" | "resizeTextarea"> & ShallowUnwrapRef<{
|
|
1034
1034
|
input: ShallowRef<HTMLInputElement | undefined>;
|
|
1035
1035
|
textarea: ShallowRef<HTMLTextAreaElement | undefined>;
|
|
1036
1036
|
ref: ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Ref, UnwrapRef } from 'vue';
|
|
2
|
+
import { IfAny } from '@vue/shared';
|
|
3
|
+
/**
|
|
4
|
+
* 删除已经存在数组值,把新值添加最后
|
|
5
|
+
* @param {Array<T>} arr 当前数组
|
|
6
|
+
* @param {Object} obj 要处理的对象
|
|
7
|
+
* @param {string} id 比对的对应属性名称
|
|
8
|
+
* @param {string} is 是否在前面添加
|
|
9
|
+
* @returns {Array<T>} 判断后的数组值
|
|
10
|
+
*/
|
|
11
|
+
export declare function replaceAfter<T>(arr: Array<T>, obj: T, id?: string, is?: boolean): Array<T>;
|
|
12
|
+
/**
|
|
13
|
+
* 删除数组中的值
|
|
14
|
+
*/
|
|
15
|
+
export declare function deleteArray<T>(arr: Array<T>, obj: T, key?: string, is?: boolean): T[] | undefined;
|
|
16
|
+
export declare const useStorage: <T>(storage: string, d: any, is?: boolean) => [T] extends [ Ref<any, any>] ? IfAny<T, Ref<T, T>, T> : Ref<UnwrapRef<T>, T | UnwrapRef<T>>;
|
|
17
|
+
export type UseStorageReturn = ReturnType<typeof useStorage>;
|
|
@@ -553,7 +553,7 @@ declare const InputSelect: {
|
|
|
553
553
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
554
554
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
555
555
|
onClear?: (() => any) | undefined;
|
|
556
|
-
}, "clear" | "type" | "input" | "select" | "textarea" | "modelValue" | "
|
|
556
|
+
}, "clear" | "type" | "input" | "select" | "textarea" | "modelValue" | "disabled" | "autofocus" | "ref" | "id" | "tabindex" | "validateEvent" | "focus" | "blur" | "clearable" | "readonly" | "inputmode" | "autosize" | "autocomplete" | "showPassword" | "showWordLimit" | "containerRole" | "inputStyle" | "rows" | "textareaStyle" | "isComposing" | "resizeTextarea"> & ShallowUnwrapRef<{
|
|
557
557
|
input: ShallowRef<HTMLInputElement | undefined>;
|
|
558
558
|
textarea: ShallowRef<HTMLTextAreaElement | undefined>;
|
|
559
559
|
ref: ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
@@ -504,7 +504,7 @@ declare function __VLS_template(): {
|
|
|
504
504
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
505
505
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
506
506
|
onClear?: (() => any) | undefined;
|
|
507
|
-
}, "clear" | "type" | "input" | "select" | "textarea" | "modelValue" | "
|
|
507
|
+
}, "clear" | "type" | "input" | "select" | "textarea" | "modelValue" | "disabled" | "autofocus" | "ref" | "id" | "tabindex" | "validateEvent" | "focus" | "blur" | "clearable" | "readonly" | "inputmode" | "autosize" | "autocomplete" | "showPassword" | "showWordLimit" | "containerRole" | "inputStyle" | "rows" | "textareaStyle" | "isComposing" | "resizeTextarea"> & ShallowUnwrapRef<{
|
|
508
508
|
input: ShallowRef<HTMLInputElement | undefined>;
|
|
509
509
|
textarea: ShallowRef<HTMLTextAreaElement | undefined>;
|
|
510
510
|
ref: ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
@@ -1122,7 +1122,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
1122
1122
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
1123
1123
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
1124
1124
|
onClear?: (() => any) | undefined;
|
|
1125
|
-
}, "clear" | "type" | "input" | "select" | "textarea" | "modelValue" | "
|
|
1125
|
+
}, "clear" | "type" | "input" | "select" | "textarea" | "modelValue" | "disabled" | "autofocus" | "ref" | "id" | "tabindex" | "validateEvent" | "focus" | "blur" | "clearable" | "readonly" | "inputmode" | "autosize" | "autocomplete" | "showPassword" | "showWordLimit" | "containerRole" | "inputStyle" | "rows" | "textareaStyle" | "isComposing" | "resizeTextarea"> & ShallowUnwrapRef<{
|
|
1126
1126
|
input: ShallowRef<HTMLInputElement | undefined>;
|
|
1127
1127
|
textarea: ShallowRef<HTMLTextAreaElement | undefined>;
|
|
1128
1128
|
ref: ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
@@ -879,7 +879,7 @@ declare const Tooltip: {
|
|
|
879
879
|
} & {
|
|
880
880
|
readonly default: "tooltip";
|
|
881
881
|
};
|
|
882
|
-
}>>, "
|
|
882
|
+
}>>, "visible" | "onOpen" | "onClose" | "disabled" | "teleported" | "hide" | "showAfter" | "hideAfter" | "autoClose" | "effect" | "open" | "offset" | "persistent" | "trigger" | "triggerKeys" | "placement" | "popperOptions" | "content" | "enterable" | "showArrow" | "popperRef" | "role" | "contentRef" | "arrowOffset" | "virtualTriggering" | "rawContent" | "pure" | "focusOnShow" | "trapping" | "stopPopperMouseEvent" | "boundariesPadding" | "fallbackPlacements" | "gpuAcceleration" | "strategy" | "isFocusInsideContent" | "updatePopper"> & ShallowUnwrapRef<{
|
|
883
883
|
popperRef: Ref< PopperInstance | undefined>;
|
|
884
884
|
contentRef: Ref< TooltipContentInstance | undefined>;
|
|
885
885
|
isFocusInsideContent: (event?: FocusEvent) => boolean | undefined;
|
|
@@ -879,7 +879,7 @@ declare function __VLS_template(): {
|
|
|
879
879
|
} & {
|
|
880
880
|
readonly default: "tooltip";
|
|
881
881
|
};
|
|
882
|
-
}>>, "
|
|
882
|
+
}>>, "visible" | "onOpen" | "onClose" | "disabled" | "teleported" | "hide" | "showAfter" | "hideAfter" | "autoClose" | "effect" | "open" | "offset" | "persistent" | "trigger" | "triggerKeys" | "placement" | "popperOptions" | "content" | "enterable" | "showArrow" | "popperRef" | "role" | "contentRef" | "arrowOffset" | "virtualTriggering" | "rawContent" | "pure" | "focusOnShow" | "trapping" | "stopPopperMouseEvent" | "boundariesPadding" | "fallbackPlacements" | "gpuAcceleration" | "strategy" | "isFocusInsideContent" | "updatePopper"> & ShallowUnwrapRef<{
|
|
883
883
|
popperRef: Ref< PopperInstance | undefined>;
|
|
884
884
|
contentRef: Ref< TooltipContentInstance | undefined>;
|
|
885
885
|
isFocusInsideContent: (event?: FocusEvent) => boolean | undefined;
|
|
@@ -1774,7 +1774,7 @@ declare const __VLS_component: DefineComponent<{}, {
|
|
|
1774
1774
|
} & {
|
|
1775
1775
|
readonly default: "tooltip";
|
|
1776
1776
|
};
|
|
1777
|
-
}>>, "
|
|
1777
|
+
}>>, "visible" | "onOpen" | "onClose" | "disabled" | "teleported" | "hide" | "showAfter" | "hideAfter" | "autoClose" | "effect" | "open" | "offset" | "persistent" | "trigger" | "triggerKeys" | "placement" | "popperOptions" | "content" | "enterable" | "showArrow" | "popperRef" | "role" | "contentRef" | "arrowOffset" | "virtualTriggering" | "rawContent" | "pure" | "focusOnShow" | "trapping" | "stopPopperMouseEvent" | "boundariesPadding" | "fallbackPlacements" | "gpuAcceleration" | "strategy" | "isFocusInsideContent" | "updatePopper"> & ShallowUnwrapRef<{
|
|
1778
1778
|
popperRef: Ref< PopperInstance | undefined>;
|
|
1779
1779
|
contentRef: Ref< TooltipContentInstance | undefined>;
|
|
1780
1780
|
isFocusInsideContent: (event?: FocusEvent) => boolean | undefined;
|
package/dist/index.css
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fangzhongya/fang-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.28",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description ": "fang-ui",
|
|
7
7
|
"keywords": [
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"vuedraggable": "4.1.0",
|
|
49
49
|
"vxe-table": "4.14.4",
|
|
50
50
|
"@fang-ui/components": "0.0.1-0",
|
|
51
|
-
"@fang-ui/hooks": "0.0.1-0",
|
|
52
51
|
"@fang-ui/directives": "0.0.1-0",
|
|
52
|
+
"@fang-ui/hooks": "0.0.1-0",
|
|
53
53
|
"@fang-ui/locale": "0.0.1-0",
|
|
54
54
|
"@fang-ui/icons": "0.0.1-0",
|
|
55
55
|
"@fang-ui/theme": "0.0.1-0",
|