@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.
@@ -1,5 +1,5 @@
1
- import { defineComponent, ref, useAttrs, computed, openBlock, createBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, mergeModels, useModel, createElementVNode, normalizeProps, guardReactiveProps, createElementBlock, watch, resolveComponent, createVNode, isVNode } from "vue";
2
- import { ElButton, ElTag, ElInput, ElForm, ElFormItem, ElSelect, ElOption, ElCheckbox, ElRadio, ElRadioGroup, ElRadioButton, ElSwitch, ElCascader, ElDatePicker, ElTimePicker, ElUpload, ElTransfer, ElTable, ElTableColumn, ElTree, ElPagination, ElImage, ElProgress, ElBadge, ElCard, ElAlert, ElDialog, ElDrawer, ElPopover, ElTooltip, ElNotification as ElNotification$1, vLoading as vLoading$1, ElMenu, ElDropdown, ElTabs, ElTabPane, ElMenuItem, ElSubMenu, ElDropdownMenu, ElDropdownItem, ElCollapse, ElCollapseItem, ElMessageBox, ElMessage } from "element-plus";
1
+ import { defineComponent, ref, useAttrs, computed, openBlock, createBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, mergeModels, useModel, createElementVNode, normalizeProps, guardReactiveProps, inject, createElementBlock, watch, resolveComponent, createVNode, isVNode } from "vue";
2
+ import { ElButton, ElTag, ElInput, ElForm, ElFormItem, ElSelect, ElOption, ElCheckbox, ElRadio, ElRadioGroup, ElRadioButton, ElSwitch, ElCascader, ElDatePicker, ElTimePicker, ElUpload, ElTransfer, ElTable, ElTableColumn, ElTree, localeContextKey, ElPagination, ElImage, ElProgress, ElBadge, ElCard, ElAlert, ElDialog, ElDrawer, ElPopover, ElTooltip, ElNotification as ElNotification$1, vLoading as vLoading$1, ElMenu, ElDropdown, ElTabs, ElTabPane, ElMenuItem, ElSubMenu, ElDropdownMenu, ElDropdownItem, ElCollapse, ElCollapseItem, ElMessageBox, ElMessage } from "element-plus";
3
3
  import { ElMessage as ElMessage2 } from "element-plus";
4
4
  function useExpose(proxyElement) {
5
5
  const expose = new Proxy({}, {
@@ -631,12 +631,14 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
631
631
  const proxyElement = ref();
632
632
  const expose = useExpose(proxyElement);
633
633
  __expose(expose);
634
+ const injectedLocale = inject(localeContextKey, {});
635
+ const locale = computed(() => attrs.locale || injectedLocale.value);
634
636
  const defaultAttrs = {
635
637
  pageSizes: [20, 50, 100],
636
638
  layout: "sizes,prev, pager, next,total"
637
639
  };
638
640
  return (_ctx, _cache) => {
639
- return openBlock(), createBlock(unref(ElPagination), mergeProps({ ...defaultAttrs, ...unref(attrs) }, {
641
+ return openBlock(), createBlock(unref(ElPagination), mergeProps({ ...defaultAttrs, ...unref(attrs), locale: locale.value }, {
640
642
  ref_key: "proxyElement",
641
643
  ref: proxyElement
642
644
  }), createSlots({ _: 2 }, [