@ganwei-web/gw-base-components-plus 1.0.20 → 1.0.21
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/customDirective/getUserPermissionList.js +53 -0
- package/customDirective/index.js +15 -0
- package/customDirective/interfaceDefinition.ts +10 -0
- package/customDirective/permission.js +61 -0
- package/element-plus-adapter/dist/ElementPlusAdapter.cjs +3 -1
- package/element-plus-adapter/dist/ElementPlusAdapter.cjs.map +1 -1
- package/element-plus-adapter/dist/ElementPlusAdapter.css +1 -1
- package/element-plus-adapter/dist/ElementPlusAdapter.iife.js +3 -1
- package/element-plus-adapter/dist/ElementPlusAdapter.iife.js.map +1 -1
- package/element-plus-adapter/dist/ElementPlusAdapter.js +5 -3
- package/element-plus-adapter/dist/ElementPlusAdapter.js.map +1 -1
- package/package.json +1 -1
|
@@ -630,12 +630,14 @@ var ElementPlusAdapter = function(exports, elementPlus, vue) {
|
|
|
630
630
|
const proxyElement = vue.ref();
|
|
631
631
|
const expose = useExpose(proxyElement);
|
|
632
632
|
__expose(expose);
|
|
633
|
+
const injectedLocale = vue.inject(elementPlus.localeContextKey, {});
|
|
634
|
+
const locale = vue.computed(() => attrs.locale || injectedLocale.value);
|
|
633
635
|
const defaultAttrs = {
|
|
634
636
|
pageSizes: [20, 50, 100],
|
|
635
637
|
layout: "sizes,prev, pager, next,total"
|
|
636
638
|
};
|
|
637
639
|
return (_ctx, _cache) => {
|
|
638
|
-
return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElPagination), vue.mergeProps({ ...defaultAttrs, ...vue.unref(attrs) }, {
|
|
640
|
+
return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElPagination), vue.mergeProps({ ...defaultAttrs, ...vue.unref(attrs), locale: locale.value }, {
|
|
639
641
|
ref_key: "proxyElement",
|
|
640
642
|
ref: proxyElement
|
|
641
643
|
}), vue.createSlots({ _: 2 }, [
|