vue3-element-dict 3.3.2 → 3.3.4
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/README.md +10 -0
- package/lib/style.css +1 -1
- package/lib/vue3-element-dict.js +6 -6
- package/package.json +1 -1
- package/types/index.d.ts +16 -21
package/README.md
CHANGED
|
@@ -20,6 +20,16 @@ vue3-element-dict是在vue3框架下对element-plus组件库的部分组件进
|
|
|
20
20
|
|
|
21
21
|
## 更新日志
|
|
22
22
|
|
|
23
|
+
### 3.3.4
|
|
24
|
+
|
|
25
|
+
1. 【优化】修复防抖和节流函数ts未声明问题
|
|
26
|
+
|
|
27
|
+
### 3.3.3
|
|
28
|
+
|
|
29
|
+
1. 【修复】修复`dict-checkbox`组件全选功能无效的问题
|
|
30
|
+
|
|
31
|
+
2. 【优化】动态组件及动态搜索组件新增样式,免去设置输入框等组件100%宽度的样式
|
|
32
|
+
|
|
23
33
|
### 3.3.2
|
|
24
34
|
|
|
25
35
|
1. 【修复】修复项目为按需引入时,`dict-autocomplete-email`组件无法使用的问题
|
package/lib/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.auto-height-wrapper[data-v-88db67bb]{width:100%;flex:1;min-height:0;overflow:hidden}.el-buttons-dict[data-v-ece290b6]{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;width:100%}.el-check-tag+.el-check-tag[data-v-5aadc1ab]{margin-left:4px}.check-all[data-v-
|
|
1
|
+
.auto-height-wrapper[data-v-88db67bb]{width:100%;flex:1;min-height:0;overflow:hidden}.el-buttons-dict[data-v-ece290b6]{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;width:100%}.el-check-tag+.el-check-tag[data-v-5aadc1ab]{margin-left:4px}.check-all[data-v-69fba94b]{margin-right:30px}.el-link-dict+.el-link-dict[data-v-4fe87a1a]{margin-left:4px}.el-text-dict+.el-text-dict[data-v-4fe87a1a]{margin-left:4px}.el-button-dict+.el-button-dict[data-v-4fe87a1a]{margin-left:4px}.el-tag-dict+.el-tag-dict[data-v-4fe87a1a]{margin-left:4px}.dict-dynamic-components.container-class[data-v-9bf02317]{width:100%;box-sizing:border-box;display:flex;align-items:flex-start;flex-wrap:wrap;container-type:inline-size;container-name:dynamic-components}@container dynamic-components (min-width: 768px){.dict-dynamic-components[data-v-9bf02317]>.comp-item.form:not(.full):not(.half):not(.three):not(.four){width:50%!important}}@container dynamic-components (min-width: 1024px){.dict-dynamic-components[data-v-9bf02317]>.comp-item.form:not(.full):not(.half):not(.three):not(.four){width:33.33333%!important}}@container dynamic-components (min-width: 1400px){.dict-dynamic-components[data-v-9bf02317]>.comp-item.form:not(.full):not(.half):not(.three):not(.four){width:25%!important}}.dict-dynamic-components[data-v-9bf02317]>.comp-item{width:100%!important}.dict-dynamic-components[data-v-9bf02317]>.comp-item :deep(.el-form-item__content){width:100%}.dict-dynamic-components[data-v-9bf02317]>.comp-item :deep(.el-form-item__content) .el-input{width:100%}.dict-dynamic-components[data-v-9bf02317]>.comp-item :deep(.el-form-item__content) .el-autocomplete{width:100%}.dict-dynamic-components[data-v-9bf02317]>.comp-item :deep(.el-form-item__content) .el-date-editor{width:100%}.dict-dynamic-components[data-v-9bf02317]>.comp-item :deep(.el-form-item__content) .el-select{width:100%}.dict-dynamic-components[data-v-9bf02317]>.comp-item :deep(.el-form-item__content) .el-cascader{width:100%!important}.dict-dynamic-components[data-v-9bf02317]>.comp-item.full{width:100%!important}.dict-dynamic-components[data-v-9bf02317]>.comp-item.half{width:50%!important}.dict-dynamic-components[data-v-9bf02317]>.comp-item.three{width:33.33333%!important}.dict-dynamic-components[data-v-9bf02317]>.comp-item.four{width:25%!important}.el-link-dict+.el-link-dict[data-v-75d5fd0a]{margin-left:4px}.el-text-dict+.el-text-dict[data-v-75d5fd0a]{margin-left:4px}.el-button-dict+.el-button-dict[data-v-75d5fd0a]{margin-left:4px}.el-tag-dict+.el-tag-dict[data-v-75d5fd0a]{margin-left:4px}.dict-clearfix[data-v-b107beb4]:after{content:"";display:table;clear:both}.dict-search-box[data-v-b107beb4]{width:100%;padding:0}.dict-search-box .el-form-item[data-v-b107beb4]{float:left}.dict-search-box .el-form-item.fr[data-v-b107beb4]{float:right}.dict-search-box .el-form-item.fr[data-v-b107beb4] .el-form-item__content{display:flex;justify-content:flex-end;align-items:center;margin-left:0!important}.dict-search-box .el-form-item.full[data-v-b107beb4]{width:100%}.dict-search-box .el-form-item.half[data-v-b107beb4]{width:50%}.dict-search-box .el-form-item.triple[data-v-b107beb4]{width:33.33%}.dict-search-box .el-form-item.quarter[data-v-b107beb4]{width:25%}.dict-search-box .el-form-item.hide[data-v-b107beb4]{display:none}.dict-search-box .el-form-item .no-underline[data-v-b107beb4]{margin-left:12px}.dict-search-box .el-form-item .no-underline .el-link__inner .el-icon[data-v-b107beb4]{transition:transform .3s}.dict-search-box .el-form-item .no-underline .el-link__inner .el-icon.rotate[data-v-b107beb4]{transform:rotate(180deg)}.dict-search-box .el-form-item .no-underline[data-v-b107beb4]:hover{text-decoration:none!important}.dict-search-box .el-form-item[data-v-b107beb4] .el-form-item__content,.dict-search-box .el-form-item[data-v-b107beb4] .el-form-item__content .el-input,.dict-search-box .el-form-item[data-v-b107beb4] .el-form-item__content .el-autocomplete,.dict-search-box .el-form-item[data-v-b107beb4] .el-form-item__content .el-date-editor,.dict-search-box .el-form-item[data-v-b107beb4] .el-form-item__content .el-select{width:100%}.dict-search-box .el-form-item[data-v-b107beb4] .el-form-item__content .el-cascader{width:100%!important}.el-select.no-clear:hover .el-select__caret.el-select__icon.el-select__clear,.el-select.no-clear .is-focused .el-select__caret.el-select__icon.el-select__clear{display:none!important}.el-select.no-clear:hover .el-select__suffix,.el-select.no-clear .is-focused .el-select__suffix{position:relative}.el-select.no-clear:hover .el-select__suffix,.el-select.no-clear .is-focused .el-select__suffix{width:14px;height:14px}.el-select.no-clear:hover .el-select__suffix:after,.el-select.no-clear .is-focused .el-select__suffix:after{content:"";position:absolute;top:2px;right:4px;width:6px;height:6px;border-left:1px solid #a8abb2;border-bottom:1px solid #a8abb2;border-top:0px solid transparent;transform:rotate(-45deg)}.el-link-dict+.el-link-dict[data-v-fa3bf048]{margin-left:4px}.el-text-dict+.el-text-dict[data-v-fa3bf048]{margin-left:4px}.el-button-dict+.el-button-dict[data-v-fa3bf048]{margin-left:4px}.el-tag-dict+.el-tag-dict[data-v-fa3bf048]{margin-left:4px}
|
package/lib/vue3-element-dict.js
CHANGED
|
@@ -2035,7 +2035,7 @@ const __vite_glob_0_7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
|
|
|
2035
2035
|
const K = P.length, W = V.value.length;
|
|
2036
2036
|
_.value = K === W, b.value = K > 0 && K < W;
|
|
2037
2037
|
}, F = (P) => {
|
|
2038
|
-
if (A(P), !g.value) {
|
|
2038
|
+
if (a.value = P, A(P), !g.value) {
|
|
2039
2039
|
x("dictChange", P);
|
|
2040
2040
|
return;
|
|
2041
2041
|
}
|
|
@@ -2151,14 +2151,14 @@ const __vite_glob_0_7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
|
|
|
2151
2151
|
z && (R.value[G] = z);
|
|
2152
2152
|
},
|
|
2153
2153
|
key: W[unref(y).format.value],
|
|
2154
|
-
|
|
2154
|
+
value: W[unref(y).format.value],
|
|
2155
2155
|
disabled: D.value || W[unref(y).format.disabled]
|
|
2156
2156
|
}, { ref_for: !0 }, T.value), {
|
|
2157
2157
|
default: withCtx(() => [
|
|
2158
2158
|
createTextVNode(toDisplayString(W[unref(y).format.label]), 1)
|
|
2159
2159
|
]),
|
|
2160
2160
|
_: 2
|
|
2161
|
-
}, 1040, ["
|
|
2161
|
+
}, 1040, ["value", "disabled"]))), 128))
|
|
2162
2162
|
]),
|
|
2163
2163
|
_: 2
|
|
2164
2164
|
}, [
|
|
@@ -2171,7 +2171,7 @@ const __vite_glob_0_7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
|
|
|
2171
2171
|
]), 1040, ["disabled", "modelValue"])
|
|
2172
2172
|
], 64));
|
|
2173
2173
|
}
|
|
2174
|
-
}), dictComponent$4 = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-
|
|
2174
|
+
}), dictComponent$4 = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-69fba94b"]]);
|
|
2175
2175
|
dictComponent$4.install = function(e) {
|
|
2176
2176
|
e.component(dictComponent$4.name, dictComponent$4);
|
|
2177
2177
|
};
|
|
@@ -3644,7 +3644,7 @@ const __vite_glob_0_9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.def
|
|
|
3644
3644
|
}, 16, ["model", "class", "colon"]);
|
|
3645
3645
|
};
|
|
3646
3646
|
}
|
|
3647
|
-
}), dictComponent$2 = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
3647
|
+
}), dictComponent$2 = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-9bf02317"]]);
|
|
3648
3648
|
dictComponent$2.install = function(e) {
|
|
3649
3649
|
e.component(dictComponent$2.name, dictComponent$2);
|
|
3650
3650
|
};
|
|
@@ -4373,7 +4373,7 @@ const __vite_glob_0_11 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
|
|
|
4373
4373
|
_: 3
|
|
4374
4374
|
}, 16, ["style", "model", "class"]));
|
|
4375
4375
|
}
|
|
4376
|
-
}), dictComponent$1 = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-
|
|
4376
|
+
}), dictComponent$1 = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-b107beb4"]]);
|
|
4377
4377
|
dictComponent$1.install = function(e) {
|
|
4378
4378
|
e.component(dictComponent$1.name, dictComponent$1);
|
|
4379
4379
|
};
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -203,27 +203,6 @@ export interface IFormatFunOut {
|
|
|
203
203
|
(arr: any, treeSetting: TreeSetting): string
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
/**
|
|
207
|
-
* 防抖函数
|
|
208
|
-
*
|
|
209
|
-
* @param func 需要防抖的函数
|
|
210
|
-
* @param wait 等待时长(毫秒),默认 300
|
|
211
|
-
* @param immediate 是否先立即触发一次,默认 false
|
|
212
|
-
* @param onlyOneTime 是否只触发一次,默认false
|
|
213
|
-
* @returns 防抖处理后的函数
|
|
214
|
-
*/
|
|
215
|
-
export declare function Debounce<T extends (...args: any[]) => any>(func: T, wait?: number, immediate?: boolean, onlyOneTime?: boolean): (...args: Parameters<T>) => void
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* 节流函数
|
|
219
|
-
*
|
|
220
|
-
* @param func 需要节流的函数
|
|
221
|
-
* @param wait 等待时长(毫秒),默认 300
|
|
222
|
-
* @param immediate 是否先立即触发一次,默认 false
|
|
223
|
-
* @returns 节流处理后的函数
|
|
224
|
-
*/
|
|
225
|
-
export declare function Throttle<T extends (...args: any[]) => any>(func: T, wait?: number, immediate?: boolean): (...args: Parameters<T>) => void
|
|
226
|
-
|
|
227
206
|
export type GetTreeLabelByCodesOptions = {
|
|
228
207
|
defaultVal?: string | number
|
|
229
208
|
emptyText?: string | number
|
|
@@ -484,6 +463,16 @@ export interface IToKebabCase {
|
|
|
484
463
|
(str: string): string
|
|
485
464
|
}
|
|
486
465
|
|
|
466
|
+
/** 防抖函数 */
|
|
467
|
+
export interface IDebounce {
|
|
468
|
+
<T extends (...args: any[]) => any>(func: T, wait?: number, immediate?: boolean, onlyOneTime?: boolean): (...args: Parameters<T>) => void
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
/** 节流函数 */
|
|
472
|
+
export interface IThrottle {
|
|
473
|
+
<T extends (...args: any[]) => any>(func: T, wait?: number, immediate?: boolean): (...args: Parameters<T>) => void
|
|
474
|
+
}
|
|
475
|
+
|
|
487
476
|
/**
|
|
488
477
|
* ========================================
|
|
489
478
|
* 导出的函数
|
|
@@ -613,6 +602,12 @@ export declare const toCamelCase: IToCamelCase
|
|
|
613
602
|
/** 转短横线命名 */
|
|
614
603
|
export declare const toKebabCase: IToKebabCase
|
|
615
604
|
|
|
605
|
+
/** 防抖函数 */
|
|
606
|
+
export declare const debounce: IDebounce
|
|
607
|
+
|
|
608
|
+
/** 节流函数 */
|
|
609
|
+
export declare const throttle: IThrottle
|
|
610
|
+
|
|
616
611
|
/** vue3-element-dict 插件安装函数 */
|
|
617
612
|
export interface Vue3ElementDictPlugin {
|
|
618
613
|
install(app: App, options: OptionalDictConfig): void
|