ll-plus 2.8.1 → 2.8.3
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/es/components/config-provider/index.d.ts +37 -2
- package/es/components/config-provider/src/config-provider.d.ts +18 -2
- package/es/components/config-provider/src/config-provider.vue.d.ts +37 -2
- package/es/components/table/index.d.ts +20 -0
- package/es/components/table/src/components/main-table.vue.d.ts +1 -0
- package/es/components/table/src/components/pagination.vue.d.ts +13 -0
- package/es/components/table/src/config/main-table.d.ts +1 -1
- package/es/components/table/src/config/pagination.d.ts +6 -0
- package/es/components/table/src/config/table.d.ts +2 -0
- package/es/components/table/src/table.vue.d.ts +20 -0
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/use-locale/index.d.ts +15 -0
- package/es/index.mjs +2 -0
- package/es/index.mjs.map +1 -1
- package/es/locale/index.d.ts +10 -0
- package/es/locale/lang/en.d.ts +9 -0
- package/es/locale/lang/zh-cn.d.ts +9 -0
- package/es/locale/lang/zh-tw.d.ts +9 -0
- package/es/packages/components/config-provider/index.mjs +1 -1
- package/es/packages/components/config-provider/src/config-provider.mjs +29 -0
- package/es/packages/components/config-provider/src/config-provider.mjs.map +1 -1
- package/es/packages/components/config-provider/src/config-provider.vue2.mjs +18 -3
- package/es/packages/components/config-provider/src/config-provider.vue2.mjs.map +1 -1
- package/es/packages/components/index.mjs +1 -0
- package/es/packages/components/index.mjs.map +1 -1
- package/es/packages/components/table/src/components/main-table.vue2.mjs +4 -1
- package/es/packages/components/table/src/components/main-table.vue2.mjs.map +1 -1
- package/es/packages/components/table/src/components/pagination.vue2.mjs +5 -2
- package/es/packages/components/table/src/components/pagination.vue2.mjs.map +1 -1
- package/es/packages/components/table/src/config/main-table.mjs.map +1 -1
- package/es/packages/components/table/src/config/pagination.mjs +6 -0
- package/es/packages/components/table/src/config/pagination.mjs.map +1 -1
- package/es/packages/hooks/index.mjs +1 -0
- package/es/packages/hooks/index.mjs.map +1 -1
- package/es/packages/hooks/use-locale/index.mjs +29 -0
- package/es/packages/hooks/use-locale/index.mjs.map +1 -0
- package/es/packages/locale/index.mjs +6 -0
- package/es/packages/locale/index.mjs.map +1 -0
- package/es/packages/locale/lang/en.mjs +12 -0
- package/es/packages/locale/lang/en.mjs.map +1 -0
- package/es/packages/locale/lang/zh-cn.mjs +12 -0
- package/es/packages/locale/lang/zh-cn.mjs.map +1 -0
- package/es/packages/locale/lang/zh-tw.mjs +12 -0
- package/es/packages/locale/lang/zh-tw.mjs.map +1 -0
- package/index.full.js +93 -4
- package/index.full.min.js +34 -24
- package/index.full.min.js.map +1 -1
- package/index.full.min.mjs +34 -24
- package/index.full.min.mjs.map +1 -1
- package/index.full.mjs +89 -6
- package/lib/components/config-provider/index.d.ts +37 -2
- package/lib/components/config-provider/src/config-provider.d.ts +18 -2
- package/lib/components/config-provider/src/config-provider.vue.d.ts +37 -2
- package/lib/components/table/index.d.ts +20 -0
- package/lib/components/table/src/components/main-table.vue.d.ts +1 -0
- package/lib/components/table/src/components/pagination.vue.d.ts +13 -0
- package/lib/components/table/src/config/main-table.d.ts +1 -1
- package/lib/components/table/src/config/pagination.d.ts +6 -0
- package/lib/components/table/src/config/table.d.ts +2 -0
- package/lib/components/table/src/table.vue.d.ts +20 -0
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/use-locale/index.d.ts +15 -0
- package/lib/index.js +10 -2
- package/lib/index.js.map +1 -1
- package/lib/locale/index.d.ts +10 -0
- package/lib/locale/lang/en.d.ts +9 -0
- package/lib/locale/lang/zh-cn.d.ts +9 -0
- package/lib/locale/lang/zh-tw.d.ts +9 -0
- package/lib/packages/components/config-provider/index.js +4 -3
- package/lib/packages/components/config-provider/index.js.map +1 -1
- package/lib/packages/components/config-provider/src/config-provider.js +29 -0
- package/lib/packages/components/config-provider/src/config-provider.js.map +1 -1
- package/lib/packages/components/config-provider/src/config-provider.vue2.js +17 -2
- package/lib/packages/components/config-provider/src/config-provider.vue2.js.map +1 -1
- package/lib/packages/components/index.js +2 -0
- package/lib/packages/components/index.js.map +1 -1
- package/lib/packages/components/table/src/components/main-table.vue2.js +4 -1
- package/lib/packages/components/table/src/components/main-table.vue2.js.map +1 -1
- package/lib/packages/components/table/src/components/pagination.vue2.js +4 -1
- package/lib/packages/components/table/src/components/pagination.vue2.js.map +1 -1
- package/lib/packages/components/table/src/config/main-table.js.map +1 -1
- package/lib/packages/components/table/src/config/pagination.js +6 -0
- package/lib/packages/components/table/src/config/pagination.js.map +1 -1
- package/lib/packages/hooks/index.js +8 -2
- package/lib/packages/hooks/index.js.map +1 -1
- package/lib/packages/hooks/use-locale/index.js +35 -0
- package/lib/packages/hooks/use-locale/index.js.map +1 -0
- package/lib/packages/locale/index.js +12 -0
- package/lib/packages/locale/index.js.map +1 -0
- package/lib/packages/locale/lang/en.js +16 -0
- package/lib/packages/locale/lang/en.js.map +1 -0
- package/lib/packages/locale/lang/zh-cn.js +16 -0
- package/lib/packages/locale/lang/zh-cn.js.map +1 -0
- package/lib/packages/locale/lang/zh-tw.js +16 -0
- package/lib/packages/locale/lang/zh-tw.js.map +1 -0
- package/package.json +1 -1
- package/types/packages/components/config-provider/index.d.ts +37 -2
- package/types/packages/components/config-provider/src/config-provider.d.ts +18 -2
- package/types/packages/components/config-provider/src/config-provider.vue.d.ts +37 -2
- package/types/packages/components/table/index.d.ts +20 -0
- package/types/packages/components/table/src/components/main-table.vue.d.ts +1 -0
- package/types/packages/components/table/src/components/pagination.vue.d.ts +13 -0
- package/types/packages/components/table/src/config/main-table.d.ts +1 -1
- package/types/packages/components/table/src/config/pagination.d.ts +6 -0
- package/types/packages/components/table/src/config/table.d.ts +2 -0
- package/types/packages/components/table/src/table.vue.d.ts +20 -0
- package/types/packages/hooks/index.d.ts +1 -0
- package/types/packages/hooks/use-locale/index.d.ts +15 -0
- package/types/packages/locale/index.d.ts +10 -0
- package/types/packages/locale/lang/en.d.ts +9 -0
- package/types/packages/locale/lang/zh-cn.d.ts +9 -0
- package/types/packages/locale/lang/zh-tw.d.ts +9 -0
package/index.full.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import require$$0, { warn, unref, defineComponent, ref, computed, watch, resolveComponent, openBlock, createBlock, normalizeClass, withCtx, createVNode, createElementVNode, mergeProps, createElementBlock, createTextVNode, createCommentVNode, watchEffect, Fragment, renderList, toDisplayString, withModifiers, inject, useAttrs, withDirectives, vShow, normalizeStyle, provide, normalizeProps, guardReactiveProps, renderSlot, onUnmounted, createSlots, onBeforeUnmount, onMounted, getCurrentInstance, shallowRef, reactive, nextTick, createApp, toRefs, resolveDynamicComponent, markRaw, h,
|
|
1
|
+
import require$$0, { warn, unref, defineComponent, ref, computed, watch, resolveComponent, openBlock, createBlock, normalizeClass, withCtx, createVNode, createElementVNode, mergeProps, createElementBlock, createTextVNode, createCommentVNode, watchEffect, Fragment, renderList, toDisplayString, withModifiers, inject, useAttrs, withDirectives, vShow, normalizeStyle, provide, normalizeProps, guardReactiveProps, renderSlot, isRef, onUnmounted, createSlots, onBeforeUnmount, onMounted, getCurrentInstance, shallowRef, reactive, nextTick, createApp, toRefs, resolveDynamicComponent, markRaw, h, toRef } from 'vue';
|
|
2
2
|
export { isVNode } from 'vue';
|
|
3
3
|
import { Form as Form$1, Drawer as Drawer$2, Button as Button$1, Cascader as Cascader$1, Checkbox as Checkbox$1, Row, Col, DatePicker as DatePicker$1, RangePicker, theme, InputNumber as InputNumber$1, RadioGroup as RadioGroup$1, Radio as Radio$1, CheckboxGroup as CheckboxGroup$1, Select as Select$1, Tabs, TabPane, FormItem as FormItem$1, Input as Input$1, Modal as Modal$2, RadioButton as RadioButton$1, Segmented as Segmented$1, SelectOption as SelectOption$1, SelectOptGroup as SelectOptGroup$1, Steps as Steps$1, Switch as Switch$1, Popover, Textarea as Textarea$1, TimePicker as TimePicker$1, TimeRangePicker, Tree as Tree$1, message, Watermark as Watermark$1 } from 'ant-design-vue';
|
|
4
4
|
import * as monaco from 'monaco-editor';
|
|
@@ -788,6 +788,11 @@ function baseGet(object, path) {
|
|
|
788
788
|
return index && index == length ? object : void 0;
|
|
789
789
|
}
|
|
790
790
|
|
|
791
|
+
function get(object, path, defaultValue) {
|
|
792
|
+
var result = object == null ? void 0 : baseGet(object, path);
|
|
793
|
+
return result === void 0 ? defaultValue : result;
|
|
794
|
+
}
|
|
795
|
+
|
|
791
796
|
function arrayPush(array, values) {
|
|
792
797
|
var index = -1, length = values.length, offset = array.length;
|
|
793
798
|
while (++index < length) {
|
|
@@ -5407,6 +5412,37 @@ var Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$1m, [["__file", "avatar.vue"]
|
|
|
5407
5412
|
|
|
5408
5413
|
const LlAvatar = withInstall(Avatar);
|
|
5409
5414
|
|
|
5415
|
+
var ZhCN = {
|
|
5416
|
+
name: "zh-cn",
|
|
5417
|
+
ll: {
|
|
5418
|
+
table: {
|
|
5419
|
+
operate: "\u64CD\u4F5C"
|
|
5420
|
+
}
|
|
5421
|
+
}
|
|
5422
|
+
};
|
|
5423
|
+
|
|
5424
|
+
const buildTranslator = (locale) => (path, option) => translate(path, option, unref(locale));
|
|
5425
|
+
const translate = (path, option, locale) => get(locale, path, path).replace(
|
|
5426
|
+
/\{(\w+)\}/g,
|
|
5427
|
+
(_, key) => `${option?.[key] ?? `{${key}}`}`
|
|
5428
|
+
);
|
|
5429
|
+
const buildLocaleContext = (locale) => {
|
|
5430
|
+
const lang = computed(() => unref(locale).name);
|
|
5431
|
+
const localeRef = isRef(locale) ? locale : ref(locale);
|
|
5432
|
+
console.log(localeRef, "localeRef");
|
|
5433
|
+
return {
|
|
5434
|
+
lang,
|
|
5435
|
+
locale: localeRef,
|
|
5436
|
+
t: buildTranslator(locale)
|
|
5437
|
+
};
|
|
5438
|
+
};
|
|
5439
|
+
const localeContextKey = Symbol("localeContextKey");
|
|
5440
|
+
const useLocale = (localeOverrides) => {
|
|
5441
|
+
console.log(localeOverrides, "localeOverrides");
|
|
5442
|
+
const locale = localeOverrides || inject(localeContextKey, ref());
|
|
5443
|
+
return buildLocaleContext(computed(() => locale.value || ZhCN));
|
|
5444
|
+
};
|
|
5445
|
+
|
|
5410
5446
|
function useScroll() {
|
|
5411
5447
|
const scrollRef = ref();
|
|
5412
5448
|
const scrollPosition = ref();
|
|
@@ -48624,25 +48660,62 @@ var ColorPicker = /* @__PURE__ */ _export_sfc(_sfc_main$1a, [["__file", "color-p
|
|
|
48624
48660
|
|
|
48625
48661
|
const LlColorPicker = withInstall(ColorPicker);
|
|
48626
48662
|
|
|
48663
|
+
const componentSize = ["small", "middle", "large"];
|
|
48664
|
+
const configProviderProps = buildProps({
|
|
48665
|
+
// buildProps和defineprops一样
|
|
48666
|
+
/**
|
|
48667
|
+
* @description 设置为 false 时,移除按钮中 2 个汉字之间的空格
|
|
48668
|
+
*/
|
|
48669
|
+
autoInsertSpaceInButton: {
|
|
48670
|
+
type: Boolean,
|
|
48671
|
+
default: false
|
|
48672
|
+
},
|
|
48673
|
+
/**
|
|
48674
|
+
* @description 设置 antd 组件大小
|
|
48675
|
+
*/
|
|
48676
|
+
componentSize: {
|
|
48677
|
+
type: String,
|
|
48678
|
+
values: componentSize
|
|
48679
|
+
},
|
|
48680
|
+
/**
|
|
48681
|
+
* @description 多语言
|
|
48682
|
+
*/
|
|
48683
|
+
locale: {
|
|
48684
|
+
type: definePropType(Object)
|
|
48685
|
+
}
|
|
48686
|
+
});
|
|
48687
|
+
|
|
48627
48688
|
var _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
48628
48689
|
...{
|
|
48629
48690
|
name: "LlConfigProvider"
|
|
48630
48691
|
},
|
|
48631
48692
|
__name: "config-provider",
|
|
48693
|
+
props: configProviderProps,
|
|
48632
48694
|
setup(__props) {
|
|
48633
48695
|
const attrs = useAttrs();
|
|
48696
|
+
const props = __props;
|
|
48634
48697
|
const bem = createNamespace("config-provider");
|
|
48698
|
+
provide(
|
|
48699
|
+
localeContextKey,
|
|
48700
|
+
computed(() => {
|
|
48701
|
+
return props.locale;
|
|
48702
|
+
})
|
|
48703
|
+
);
|
|
48635
48704
|
return (_ctx, _cache) => {
|
|
48636
48705
|
const _component_a_config_provider = resolveComponent("a-config-provider");
|
|
48637
48706
|
return openBlock(), createBlock(_component_a_config_provider, mergeProps({
|
|
48638
48707
|
class: unref(bem).b()
|
|
48639
|
-
}, unref(attrs)
|
|
48708
|
+
}, unref(attrs), {
|
|
48709
|
+
"auto-insert-space-in-button": _ctx.autoInsertSpaceInButton,
|
|
48710
|
+
"component-size": _ctx.componentSize,
|
|
48711
|
+
locale: _ctx.locale
|
|
48712
|
+
}), {
|
|
48640
48713
|
default: withCtx(() => [
|
|
48641
48714
|
renderSlot(_ctx.$slots, "default")
|
|
48642
48715
|
]),
|
|
48643
48716
|
_: 3
|
|
48644
48717
|
/* FORWARDED */
|
|
48645
|
-
}, 16, ["class"]);
|
|
48718
|
+
}, 16, ["class", "auto-insert-space-in-button", "component-size", "locale"]);
|
|
48646
48719
|
};
|
|
48647
48720
|
}
|
|
48648
48721
|
});
|
|
@@ -75731,6 +75804,12 @@ const tablePaginationProps = buildProps({
|
|
|
75731
75804
|
total: {
|
|
75732
75805
|
type: Number
|
|
75733
75806
|
},
|
|
75807
|
+
/**
|
|
75808
|
+
* @description 用于显示数据总量和当前数据顺序
|
|
75809
|
+
*/
|
|
75810
|
+
showTotal: {
|
|
75811
|
+
type: Function
|
|
75812
|
+
},
|
|
75734
75813
|
/**
|
|
75735
75814
|
* @description 页码或 pageSize 改变的回调,参数是改变后的页码及每页条数
|
|
75736
75815
|
*/
|
|
@@ -82964,6 +83043,7 @@ var _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
82964
83043
|
const props = __props;
|
|
82965
83044
|
const emits = __emit;
|
|
82966
83045
|
const attrs = useAttrs();
|
|
83046
|
+
const { t } = useLocale();
|
|
82967
83047
|
const newColumns = ref([]);
|
|
82968
83048
|
const settingColumns = ref([]);
|
|
82969
83049
|
const newDataSource = ref([]);
|
|
@@ -82995,7 +83075,7 @@ var _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
82995
83075
|
width = operateWidth;
|
|
82996
83076
|
}
|
|
82997
83077
|
newColumns.value.push({
|
|
82998
|
-
title: "
|
|
83078
|
+
title: t("ll.table.operate"),
|
|
82999
83079
|
dataIndex: "",
|
|
83000
83080
|
key: "operate",
|
|
83001
83081
|
maxWidth,
|
|
@@ -83611,7 +83691,10 @@ var _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
83611
83691
|
"show-size-changer": "",
|
|
83612
83692
|
"show-total": (total) => `\u5171 ${total} \u6761`,
|
|
83613
83693
|
onChange: handlePageChange
|
|
83614
|
-
}), null, 16, ["class", "current", "page-size", "total", "show-total"])
|
|
83694
|
+
}), null, 16, ["class", "current", "page-size", "total", "show-total"]),
|
|
83695
|
+
createCommentVNode(' :show-total="(total: number) => `\u5171 ${total} \u6761`" '),
|
|
83696
|
+
createCommentVNode(' :show-total="(total, range) => showTotal?.(total, range)" '),
|
|
83697
|
+
createCommentVNode(' <a-pagination\n v-bind="attrs"\n :class="`${bem.e(\'pagination\')}`"\n :current="props.current"\n :page-size="props.pageSize"\n :total="props.total"\n show-size-changer\n show-quick-jumper\n :show-total="(total, range) => showTotal?.(total, range)"\n @change="handlePageChange"\n /> ')
|
|
83615
83698
|
],
|
|
83616
83699
|
2
|
|
83617
83700
|
/* CLASS */
|
|
@@ -85737,4 +85820,4 @@ var installer = makeInstaller([...Components]);
|
|
|
85737
85820
|
|
|
85738
85821
|
const install = installer.install;
|
|
85739
85822
|
|
|
85740
|
-
export { ALL_VALUE, AVATAR_IMG, Color, DEFAULT_METHOD, DEFAULT_TYPE, FALLBACK_IMAGE, FALL_BACK_IMG, HEADER_SRARCH_HEIGHT, ILlUploadDragProps, ImenuSwitchType, LEFT_SELECT_MIN_WIDTH, LlAdvancedFiltering, LlAdvancedFilteringParams, LlAdvancedFilteringTags, LlApiComponent, LlAvatar, LlBreadcrumbCard, LlButton, LlCascader, LlCheckbox, LlCheckboxGroup, LlCodeEditor, LlColorPicker, LlConfigProvider, LlCropperImage, LlCropperModal, LlDatePicker, LlDateRange, LlDescriptions, LlDescriptionsItem, LlDrawer, LlDropdown, LlDropdownButton, LlDropdownButtonSimple, LlEasyCron, LlEmpty, LlForm, LlFormComponent, LlFormItem, LlIcon, LlIconBase, LlIconPicker, LlImage, LlImagePreviewGroup, LlInput, LlInputNumber, LlKeyValue, LlMarkdownEditor, LlMarkdownViewer, LlModal, LlNewDrawer, LlNewModal, LlNumberRange, LlOperateIcon, LlOperateTree, LlRadio, LlRadioButton, LlRadioGroup, LlRichTextEditor, LlSecondConfirmation, LlSegmented, LlSelect, LlSelectGroup, LlSelectOptGroup, LlSelectOption, LlSpace, LlSteps, LlSwitch, LlTable, LlTabsSimple, LlTagGroup, LlTextarea, LlTimePicker, LlTimeRange, LlTooltip, LlTree, LlTreeSearch, LlUploadDrag, LlUploadImage, LlUriInput, LlWatermark, OPTIONS_KEY, OperateTreeEmits, PAGINATION_HEIGHT, THROTTLE_TIME, TypeEnum, addUnit, advancedFilteringEmits, advancedFilteringParamsEmits, advancedFilteringParamsProps, advancedFilteringProps, advancedFilteringTagsEmits, alphaSliderProps, apiComponentEmits, apiComponentProps, apiModalEmits, apiModalProps, apiUrlEmits, apiUrlProps, avatarEmits, avatarProps, avatarType, batchEditingEmits, batchEditingOptions, batchEditingProps, bodyEmits, bodyList, bodyProps, breadcrumbCardEmits, breadcrumbCardProps, buildProp, buildProps, buttonProps, calcRPN, checkboxGroupProps, checkboxProps, checkedType, clickInputEmits, clickInputProps, codeEditorEmits, codeEditorProps, codeThemeList, colorFormatOptions, colorPickerEmits, colorPickerProps, contentTypeOptions, createNamespace, cropperImageEmits, cropperImageProps, cropperModalEmits, cropperModalProps, customOverlay, dataURLtoBlob, dateUtil, deepCompare, deepUnref, installer as default, defaultButtonProps, defaultCropperOptions, defaultEditorConfig, defaultOptions, defaultToolbarConfig, definePropType, descriptionsItemProps, descriptionsProps, displayedRgb, drawerEmits, drawerOptions, drawerProps, dropdownButtonEmits, dropdownButtonProps, dropdownButtonSimpleEmits, dropdownButtonSimpleProps, dropdownEmits, dropdownProps, easyCronEmits, easyCronProps, emptyProps, epPropKey, fileToBase64, filterAllValue, findLabelByValue, footerShadowPlacement, formColumns, formComponentEmits, formComponentProps, formEmits, formOptions, formProps, formatFileSize, formatToDate, formatToDateTime, formdataTableColumns, getAmountChinese, getDateTimeUnit, getHttpMethodUri, getKeyValueItem, getType, guid, hasValue, headersTableColumns, httpUriOptions, hueSliderProps, iconBaseProps, iconPickerModalEmits, iconPickerModalProps, iconPickerProps, iconPickerSearchEmits, iconPickerSearchProps, iconProps, iconTypes, imageProps, initValue, inputNumberEmits, inputNumberProps, inputProps, install, isArray, isBoolean, isDate$1 as isDate, isElement, isEmpty, isEpProp, isFunction$1 as isFunction, isNumber$2 as isNumber, isObject$1 as isObject, isPromise, isPropAbsent, isString$1 as isString, isStringNumber, isSymbol, isUndefined$2 as isUndefined, isValidComponentSize, isWindow, jsonTableColumns, jsonXmlEmits, jsonXmlOptions, jsonXmlProps, jsonXmlTableEmits, jsonXmlTableProps, jsonXmlTableRowEmits, jsonXmlTableRowProps, jsonXmlTypeOptions, keyValueEmits, keyValueItemEmits, keyValueItemProps, keyValueProps, llMarkdownEditorEmits, llMarkdownEditorProps, llMarkdownViewerProps, mainTableEmits, mainTableProps, menuSwitchRadioList, mergeNumberOfExps, methods$1 as methods, modalEmits, modalProps, modalType, mutable, newDrawerEmits, newDrawerProps, newModalEmits, newModalProps, numberRangeEmits, numberRangeProps, operateIconEmits, operateIconProps, operateTreeEmits, operateTreeProps, paramsOptions, paramsTableColumns, paramsTableEmits, paramsTableProps, paramsTableRowProps, parseColors, placement, preDefineProps, removeQueryString, requestList, richTextEditorEmits, richTextEditorProps, secondConfirmationProps, selectGroupData, selectGroupEmits, selectGroupFormType, selectGroupProps, selectOptGroupProps, selectOptionProps, selectProps, svPanelProps, tableContentType, tableHeaderSearchEmits, tableHeaderSearchProps, tablePaginationProps, tableProps, tabsSimpleEmits, tabsSimpleProps, tagGroupEmits, tagGroupProps, thousandsFormat, toRPN, tooltipProps, treeDataFormat, treeEmits, treeProps, treeSearchEmits, treeSearchEmits1, treeSearchOperateWayType, treeSearchProps, treeSelectDirectoryTitleEmits, treeSelectDirectoryTitleProps, treeSelectHeaderSearchEmits, treeSelectHeaderSearchProps, typeRules, uploadImageEmits, uploadImageProps, uriInputEmits, uriInputProps, url, useOptions, useScroll, useSecondConfirmation, useTabEmits, useTabProps, useTabSetup, withInstall };
|
|
85823
|
+
export { ALL_VALUE, AVATAR_IMG, Color, DEFAULT_METHOD, DEFAULT_TYPE, FALLBACK_IMAGE, FALL_BACK_IMG, HEADER_SRARCH_HEIGHT, ILlUploadDragProps, ImenuSwitchType, LEFT_SELECT_MIN_WIDTH, LlAdvancedFiltering, LlAdvancedFilteringParams, LlAdvancedFilteringTags, LlApiComponent, LlAvatar, LlBreadcrumbCard, LlButton, LlCascader, LlCheckbox, LlCheckboxGroup, LlCodeEditor, LlColorPicker, LlConfigProvider, LlCropperImage, LlCropperModal, LlDatePicker, LlDateRange, LlDescriptions, LlDescriptionsItem, LlDrawer, LlDropdown, LlDropdownButton, LlDropdownButtonSimple, LlEasyCron, LlEmpty, LlForm, LlFormComponent, LlFormItem, LlIcon, LlIconBase, LlIconPicker, LlImage, LlImagePreviewGroup, LlInput, LlInputNumber, LlKeyValue, LlMarkdownEditor, LlMarkdownViewer, LlModal, LlNewDrawer, LlNewModal, LlNumberRange, LlOperateIcon, LlOperateTree, LlRadio, LlRadioButton, LlRadioGroup, LlRichTextEditor, LlSecondConfirmation, LlSegmented, LlSelect, LlSelectGroup, LlSelectOptGroup, LlSelectOption, LlSpace, LlSteps, LlSwitch, LlTable, LlTabsSimple, LlTagGroup, LlTextarea, LlTimePicker, LlTimeRange, LlTooltip, LlTree, LlTreeSearch, LlUploadDrag, LlUploadImage, LlUriInput, LlWatermark, OPTIONS_KEY, OperateTreeEmits, PAGINATION_HEIGHT, THROTTLE_TIME, TypeEnum, addUnit, advancedFilteringEmits, advancedFilteringParamsEmits, advancedFilteringParamsProps, advancedFilteringProps, advancedFilteringTagsEmits, alphaSliderProps, apiComponentEmits, apiComponentProps, apiModalEmits, apiModalProps, apiUrlEmits, apiUrlProps, avatarEmits, avatarProps, avatarType, batchEditingEmits, batchEditingOptions, batchEditingProps, bodyEmits, bodyList, bodyProps, breadcrumbCardEmits, breadcrumbCardProps, buildLocaleContext, buildProp, buildProps, buildTranslator, buttonProps, calcRPN, checkboxGroupProps, checkboxProps, checkedType, clickInputEmits, clickInputProps, codeEditorEmits, codeEditorProps, codeThemeList, colorFormatOptions, colorPickerEmits, colorPickerProps, configProviderProps, contentTypeOptions, createNamespace, cropperImageEmits, cropperImageProps, cropperModalEmits, cropperModalProps, customOverlay, dataURLtoBlob, dateUtil, deepCompare, deepUnref, installer as default, defaultButtonProps, defaultCropperOptions, defaultEditorConfig, defaultOptions, defaultToolbarConfig, definePropType, descriptionsItemProps, descriptionsProps, displayedRgb, drawerEmits, drawerOptions, drawerProps, dropdownButtonEmits, dropdownButtonProps, dropdownButtonSimpleEmits, dropdownButtonSimpleProps, dropdownEmits, dropdownProps, easyCronEmits, easyCronProps, emptyProps, epPropKey, fileToBase64, filterAllValue, findLabelByValue, footerShadowPlacement, formColumns, formComponentEmits, formComponentProps, formEmits, formOptions, formProps, formatFileSize, formatToDate, formatToDateTime, formdataTableColumns, getAmountChinese, getDateTimeUnit, getHttpMethodUri, getKeyValueItem, getType, guid, hasValue, headersTableColumns, httpUriOptions, hueSliderProps, iconBaseProps, iconPickerModalEmits, iconPickerModalProps, iconPickerProps, iconPickerSearchEmits, iconPickerSearchProps, iconProps, iconTypes, imageProps, initValue, inputNumberEmits, inputNumberProps, inputProps, install, isArray, isBoolean, isDate$1 as isDate, isElement, isEmpty, isEpProp, isFunction$1 as isFunction, isNumber$2 as isNumber, isObject$1 as isObject, isPromise, isPropAbsent, isString$1 as isString, isStringNumber, isSymbol, isUndefined$2 as isUndefined, isValidComponentSize, isWindow, jsonTableColumns, jsonXmlEmits, jsonXmlOptions, jsonXmlProps, jsonXmlTableEmits, jsonXmlTableProps, jsonXmlTableRowEmits, jsonXmlTableRowProps, jsonXmlTypeOptions, keyValueEmits, keyValueItemEmits, keyValueItemProps, keyValueProps, llMarkdownEditorEmits, llMarkdownEditorProps, llMarkdownViewerProps, localeContextKey, mainTableEmits, mainTableProps, menuSwitchRadioList, mergeNumberOfExps, methods$1 as methods, modalEmits, modalProps, modalType, mutable, newDrawerEmits, newDrawerProps, newModalEmits, newModalProps, numberRangeEmits, numberRangeProps, operateIconEmits, operateIconProps, operateTreeEmits, operateTreeProps, paramsOptions, paramsTableColumns, paramsTableEmits, paramsTableProps, paramsTableRowProps, parseColors, placement, preDefineProps, removeQueryString, requestList, richTextEditorEmits, richTextEditorProps, secondConfirmationProps, selectGroupData, selectGroupEmits, selectGroupFormType, selectGroupProps, selectOptGroupProps, selectOptionProps, selectProps, svPanelProps, tableContentType, tableHeaderSearchEmits, tableHeaderSearchProps, tablePaginationProps, tableProps, tabsSimpleEmits, tabsSimpleProps, tagGroupEmits, tagGroupProps, thousandsFormat, toRPN, tooltipProps, translate, treeDataFormat, treeEmits, treeProps, treeSearchEmits, treeSearchEmits1, treeSearchOperateWayType, treeSearchProps, treeSelectDirectoryTitleEmits, treeSelectDirectoryTitleProps, treeSelectHeaderSearchEmits, treeSelectHeaderSearchProps, typeRules, uploadImageEmits, uploadImageProps, uriInputEmits, uriInputProps, url, useLocale, useOptions, useScroll, useSecondConfirmation, useTabEmits, useTabProps, useTabSetup, withInstall };
|
|
@@ -1,8 +1,27 @@
|
|
|
1
1
|
import ConfigProvider from './src/config-provider.vue';
|
|
2
|
-
export declare const LlConfigProvider: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
|
+
export declare const LlConfigProvider: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
3
|
+
readonly autoInsertSpaceInButton: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
4
|
+
readonly componentSize: {
|
|
5
|
+
readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "small" | "middle" | "large", unknown>>;
|
|
6
|
+
readonly required: false;
|
|
7
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
8
|
+
__epPropKey: true;
|
|
9
|
+
};
|
|
10
|
+
readonly locale: {
|
|
11
|
+
readonly type: import("vue").PropType<object>;
|
|
12
|
+
readonly required: false;
|
|
13
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
14
|
+
__epPropKey: true;
|
|
15
|
+
};
|
|
16
|
+
}, {
|
|
3
17
|
attrs: {
|
|
4
18
|
[x: string]: unknown;
|
|
5
19
|
};
|
|
20
|
+
props: import("@vue/shared").LooseRequired<{
|
|
21
|
+
readonly autoInsertSpaceInButton: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
22
|
+
readonly locale?: object | undefined;
|
|
23
|
+
readonly componentSize?: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "small" | "middle" | "large", unknown> | undefined;
|
|
24
|
+
} & {}>;
|
|
6
25
|
bem: {
|
|
7
26
|
b: (blockSuffix?: string) => string;
|
|
8
27
|
e: (element?: string) => string;
|
|
@@ -13,7 +32,23 @@ export declare const LlConfigProvider: import("ll-plus/es/utils").SFCWithInstall
|
|
|
13
32
|
bem: (blockSuffix: string, element: string, modifier: string) => string;
|
|
14
33
|
is: (name?: string) => string;
|
|
15
34
|
};
|
|
16
|
-
},
|
|
35
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
|
+
readonly autoInsertSpaceInButton: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
37
|
+
readonly componentSize: {
|
|
38
|
+
readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "small" | "middle" | "large", unknown>>;
|
|
39
|
+
readonly required: false;
|
|
40
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
41
|
+
__epPropKey: true;
|
|
42
|
+
};
|
|
43
|
+
readonly locale: {
|
|
44
|
+
readonly type: import("vue").PropType<object>;
|
|
45
|
+
readonly required: false;
|
|
46
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
47
|
+
__epPropKey: true;
|
|
48
|
+
};
|
|
49
|
+
}>>, {
|
|
50
|
+
readonly autoInsertSpaceInButton: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
51
|
+
}, {}>>;
|
|
17
52
|
export default LlConfigProvider;
|
|
18
53
|
export * from './src/config-provider';
|
|
19
54
|
declare module 'vue' {
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
import ConfigProvider from './config-provider.vue';
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
2
|
+
import type { ExtractPropTypes } from 'vue';
|
|
3
|
+
export declare const configProviderProps: {
|
|
4
|
+
readonly autoInsertSpaceInButton: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
5
|
+
readonly componentSize: {
|
|
6
|
+
readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "small" | "middle" | "large", unknown>>;
|
|
7
|
+
readonly required: false;
|
|
8
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
9
|
+
__epPropKey: true;
|
|
10
|
+
};
|
|
11
|
+
readonly locale: {
|
|
12
|
+
readonly type: import("vue").PropType<object>;
|
|
13
|
+
readonly required: false;
|
|
14
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
15
|
+
__epPropKey: true;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export type ConfigProviderProps = ExtractPropTypes<typeof configProviderProps>;
|
|
19
|
+
export type ComponentSizeType = ConfigProviderProps['componentSize'];
|
|
4
20
|
export type ConfigProviderInstance = InstanceType<typeof ConfigProvider>;
|
|
@@ -1,7 +1,26 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
readonly autoInsertSpaceInButton: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
3
|
+
readonly componentSize: {
|
|
4
|
+
readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "small" | "middle" | "large", unknown>>;
|
|
5
|
+
readonly required: false;
|
|
6
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
7
|
+
__epPropKey: true;
|
|
8
|
+
};
|
|
9
|
+
readonly locale: {
|
|
10
|
+
readonly type: import("vue").PropType<object>;
|
|
11
|
+
readonly required: false;
|
|
12
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
13
|
+
__epPropKey: true;
|
|
14
|
+
};
|
|
15
|
+
}, {
|
|
2
16
|
attrs: {
|
|
3
17
|
[x: string]: unknown;
|
|
4
18
|
};
|
|
19
|
+
props: import("@vue/shared").LooseRequired<{
|
|
20
|
+
readonly autoInsertSpaceInButton: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
21
|
+
readonly locale?: object | undefined;
|
|
22
|
+
readonly componentSize?: import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "small" | "middle" | "large", unknown> | undefined;
|
|
23
|
+
} & {}>;
|
|
5
24
|
bem: {
|
|
6
25
|
b: (blockSuffix?: string) => string;
|
|
7
26
|
e: (element?: string) => string;
|
|
@@ -12,5 +31,21 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
12
31
|
bem: (blockSuffix: string, element: string, modifier: string) => string;
|
|
13
32
|
is: (name?: string) => string;
|
|
14
33
|
};
|
|
15
|
-
},
|
|
34
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
+
readonly autoInsertSpaceInButton: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
36
|
+
readonly componentSize: {
|
|
37
|
+
readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<StringConstructor, "small" | "middle" | "large", unknown>>;
|
|
38
|
+
readonly required: false;
|
|
39
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
40
|
+
__epPropKey: true;
|
|
41
|
+
};
|
|
42
|
+
readonly locale: {
|
|
43
|
+
readonly type: import("vue").PropType<object>;
|
|
44
|
+
readonly required: false;
|
|
45
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
46
|
+
__epPropKey: true;
|
|
47
|
+
};
|
|
48
|
+
}>>, {
|
|
49
|
+
readonly autoInsertSpaceInButton: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
50
|
+
}, {}>;
|
|
16
51
|
export default _default;
|
|
@@ -54,11 +54,13 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
54
54
|
readonly total?: number | undefined;
|
|
55
55
|
readonly current?: number | undefined;
|
|
56
56
|
readonly pageSize?: number | undefined;
|
|
57
|
+
readonly showTotal?: Function | undefined;
|
|
57
58
|
}) | (() => import("./src/config").TablePaginationProps) | ((new (...args: any[]) => {} & {
|
|
58
59
|
readonly onChange?: Function | undefined;
|
|
59
60
|
readonly total?: number | undefined;
|
|
60
61
|
readonly current?: number | undefined;
|
|
61
62
|
readonly pageSize?: number | undefined;
|
|
63
|
+
readonly showTotal?: Function | undefined;
|
|
62
64
|
}) | (() => import("./src/config").TablePaginationProps))[], unknown, unknown, () => import("ll-plus/es/utils").Mutable<{}>, boolean>;
|
|
63
65
|
}, {
|
|
64
66
|
props: import("@vue/shared").LooseRequired<{
|
|
@@ -73,6 +75,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
73
75
|
readonly total?: number | undefined;
|
|
74
76
|
readonly current?: number | undefined;
|
|
75
77
|
readonly pageSize?: number | undefined;
|
|
78
|
+
readonly showTotal?: Function | undefined;
|
|
76
79
|
};
|
|
77
80
|
} & {}>;
|
|
78
81
|
originDataSource: import("vue").Ref<any>;
|
|
@@ -295,6 +298,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
295
298
|
attrs: {
|
|
296
299
|
[x: string]: unknown;
|
|
297
300
|
};
|
|
301
|
+
t: import("ll-plus/es/hooks").Translator;
|
|
298
302
|
newColumns: any;
|
|
299
303
|
settingColumns: any;
|
|
300
304
|
newDataSource: any;
|
|
@@ -507,6 +511,12 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
507
511
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
508
512
|
__epPropKey: true;
|
|
509
513
|
};
|
|
514
|
+
readonly showTotal: {
|
|
515
|
+
readonly type: import("vue").PropType<Function>;
|
|
516
|
+
readonly required: false;
|
|
517
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
518
|
+
__epPropKey: true;
|
|
519
|
+
};
|
|
510
520
|
readonly onChange: {
|
|
511
521
|
readonly type: import("vue").PropType<Function>;
|
|
512
522
|
readonly required: false;
|
|
@@ -519,6 +529,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
519
529
|
readonly total?: number | undefined;
|
|
520
530
|
readonly current?: number | undefined;
|
|
521
531
|
readonly pageSize?: number | undefined;
|
|
532
|
+
readonly showTotal?: Function | undefined;
|
|
522
533
|
} & {}>;
|
|
523
534
|
attrs: {
|
|
524
535
|
[x: string]: unknown;
|
|
@@ -556,6 +567,12 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
556
567
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
557
568
|
__epPropKey: true;
|
|
558
569
|
};
|
|
570
|
+
readonly showTotal: {
|
|
571
|
+
readonly type: import("vue").PropType<Function>;
|
|
572
|
+
readonly required: false;
|
|
573
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
574
|
+
__epPropKey: true;
|
|
575
|
+
};
|
|
559
576
|
readonly onChange: {
|
|
560
577
|
readonly type: import("vue").PropType<Function>;
|
|
561
578
|
readonly required: false;
|
|
@@ -618,11 +635,13 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
618
635
|
readonly total?: number | undefined;
|
|
619
636
|
readonly current?: number | undefined;
|
|
620
637
|
readonly pageSize?: number | undefined;
|
|
638
|
+
readonly showTotal?: Function | undefined;
|
|
621
639
|
}) | (() => import("./src/config").TablePaginationProps) | ((new (...args: any[]) => {} & {
|
|
622
640
|
readonly onChange?: Function | undefined;
|
|
623
641
|
readonly total?: number | undefined;
|
|
624
642
|
readonly current?: number | undefined;
|
|
625
643
|
readonly pageSize?: number | undefined;
|
|
644
|
+
readonly showTotal?: Function | undefined;
|
|
626
645
|
}) | (() => import("./src/config").TablePaginationProps))[], unknown, unknown, () => import("ll-plus/es/utils").Mutable<{}>, boolean>;
|
|
627
646
|
}>>, {
|
|
628
647
|
readonly loading: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -636,6 +655,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
636
655
|
readonly total?: number | undefined;
|
|
637
656
|
readonly current?: number | undefined;
|
|
638
657
|
readonly pageSize?: number | undefined;
|
|
658
|
+
readonly showTotal?: Function | undefined;
|
|
639
659
|
};
|
|
640
660
|
}, {}>>;
|
|
641
661
|
export default LlTable;
|
|
@@ -17,6 +17,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
18
18
|
__epPropKey: true;
|
|
19
19
|
};
|
|
20
|
+
readonly showTotal: {
|
|
21
|
+
readonly type: import("vue").PropType<Function>;
|
|
22
|
+
readonly required: false;
|
|
23
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
24
|
+
__epPropKey: true;
|
|
25
|
+
};
|
|
20
26
|
readonly onChange: {
|
|
21
27
|
readonly type: import("vue").PropType<Function>;
|
|
22
28
|
readonly required: false;
|
|
@@ -29,6 +35,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
29
35
|
readonly total?: number | undefined;
|
|
30
36
|
readonly current?: number | undefined;
|
|
31
37
|
readonly pageSize?: number | undefined;
|
|
38
|
+
readonly showTotal?: Function | undefined;
|
|
32
39
|
} & {}>;
|
|
33
40
|
attrs: {
|
|
34
41
|
[x: string]: unknown;
|
|
@@ -66,6 +73,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
66
73
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
67
74
|
__epPropKey: true;
|
|
68
75
|
};
|
|
76
|
+
readonly showTotal: {
|
|
77
|
+
readonly type: import("vue").PropType<Function>;
|
|
78
|
+
readonly required: false;
|
|
79
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
80
|
+
__epPropKey: true;
|
|
81
|
+
};
|
|
69
82
|
readonly onChange: {
|
|
70
83
|
readonly type: import("vue").PropType<Function>;
|
|
71
84
|
readonly required: false;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import MainTable from '../components/main-table.vue';
|
|
2
|
-
import type { ExtractPropTypes } from 'vue';
|
|
3
2
|
import type { TableColumnProps } from 'ant-design-vue';
|
|
3
|
+
import type { ExtractPropTypes } from 'vue';
|
|
4
4
|
export declare const tableContentType: readonly ["table", "card"];
|
|
5
5
|
export declare const mainTableProps: {
|
|
6
6
|
readonly operateWidth: import("ll-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 120, boolean>;
|
|
@@ -19,6 +19,12 @@ export declare const tablePaginationProps: {
|
|
|
19
19
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
20
20
|
__epPropKey: true;
|
|
21
21
|
};
|
|
22
|
+
readonly showTotal: {
|
|
23
|
+
readonly type: import("vue").PropType<Function>;
|
|
24
|
+
readonly required: false;
|
|
25
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
26
|
+
__epPropKey: true;
|
|
27
|
+
};
|
|
22
28
|
readonly onChange: {
|
|
23
29
|
readonly type: import("vue").PropType<Function>;
|
|
24
30
|
readonly required: false;
|
|
@@ -56,11 +56,13 @@ export declare const tableProps: {
|
|
|
56
56
|
readonly total?: number | undefined;
|
|
57
57
|
readonly current?: number | undefined;
|
|
58
58
|
readonly pageSize?: number | undefined;
|
|
59
|
+
readonly showTotal?: Function | undefined;
|
|
59
60
|
}) | (() => TablePaginationProps) | ((new (...args: any[]) => {} & {
|
|
60
61
|
readonly onChange?: Function | undefined;
|
|
61
62
|
readonly total?: number | undefined;
|
|
62
63
|
readonly current?: number | undefined;
|
|
63
64
|
readonly pageSize?: number | undefined;
|
|
65
|
+
readonly showTotal?: Function | undefined;
|
|
64
66
|
}) | (() => TablePaginationProps))[], unknown, unknown, () => import("ll-plus/es/utils").Mutable<{}>, boolean>;
|
|
65
67
|
};
|
|
66
68
|
export declare const HEADER_SRARCH_HEIGHT = 36;
|
|
@@ -54,11 +54,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
54
54
|
readonly total?: number | undefined;
|
|
55
55
|
readonly current?: number | undefined;
|
|
56
56
|
readonly pageSize?: number | undefined;
|
|
57
|
+
readonly showTotal?: Function | undefined;
|
|
57
58
|
}) | (() => import("./config").TablePaginationProps) | ((new (...args: any[]) => {} & {
|
|
58
59
|
readonly onChange?: Function | undefined;
|
|
59
60
|
readonly total?: number | undefined;
|
|
60
61
|
readonly current?: number | undefined;
|
|
61
62
|
readonly pageSize?: number | undefined;
|
|
63
|
+
readonly showTotal?: Function | undefined;
|
|
62
64
|
}) | (() => import("./config").TablePaginationProps))[], unknown, unknown, () => import("ll-plus/es/utils").Mutable<{}>, boolean>;
|
|
63
65
|
}, {
|
|
64
66
|
props: import("@vue/shared").LooseRequired<{
|
|
@@ -73,6 +75,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
73
75
|
readonly total?: number | undefined;
|
|
74
76
|
readonly current?: number | undefined;
|
|
75
77
|
readonly pageSize?: number | undefined;
|
|
78
|
+
readonly showTotal?: Function | undefined;
|
|
76
79
|
};
|
|
77
80
|
} & {}>;
|
|
78
81
|
originDataSource: import("vue").Ref<any>;
|
|
@@ -295,6 +298,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
295
298
|
attrs: {
|
|
296
299
|
[x: string]: unknown;
|
|
297
300
|
};
|
|
301
|
+
t: import("ll-plus/es/hooks").Translator;
|
|
298
302
|
newColumns: any;
|
|
299
303
|
settingColumns: any;
|
|
300
304
|
newDataSource: any;
|
|
@@ -507,6 +511,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
507
511
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
508
512
|
__epPropKey: true;
|
|
509
513
|
};
|
|
514
|
+
readonly showTotal: {
|
|
515
|
+
readonly type: import("vue").PropType<Function>;
|
|
516
|
+
readonly required: false;
|
|
517
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
518
|
+
__epPropKey: true;
|
|
519
|
+
};
|
|
510
520
|
readonly onChange: {
|
|
511
521
|
readonly type: import("vue").PropType<Function>;
|
|
512
522
|
readonly required: false;
|
|
@@ -519,6 +529,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
519
529
|
readonly total?: number | undefined;
|
|
520
530
|
readonly current?: number | undefined;
|
|
521
531
|
readonly pageSize?: number | undefined;
|
|
532
|
+
readonly showTotal?: Function | undefined;
|
|
522
533
|
} & {}>;
|
|
523
534
|
attrs: {
|
|
524
535
|
[x: string]: unknown;
|
|
@@ -556,6 +567,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
556
567
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
557
568
|
__epPropKey: true;
|
|
558
569
|
};
|
|
570
|
+
readonly showTotal: {
|
|
571
|
+
readonly type: import("vue").PropType<Function>;
|
|
572
|
+
readonly required: false;
|
|
573
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
574
|
+
__epPropKey: true;
|
|
575
|
+
};
|
|
559
576
|
readonly onChange: {
|
|
560
577
|
readonly type: import("vue").PropType<Function>;
|
|
561
578
|
readonly required: false;
|
|
@@ -618,11 +635,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
618
635
|
readonly total?: number | undefined;
|
|
619
636
|
readonly current?: number | undefined;
|
|
620
637
|
readonly pageSize?: number | undefined;
|
|
638
|
+
readonly showTotal?: Function | undefined;
|
|
621
639
|
}) | (() => import("./config").TablePaginationProps) | ((new (...args: any[]) => {} & {
|
|
622
640
|
readonly onChange?: Function | undefined;
|
|
623
641
|
readonly total?: number | undefined;
|
|
624
642
|
readonly current?: number | undefined;
|
|
625
643
|
readonly pageSize?: number | undefined;
|
|
644
|
+
readonly showTotal?: Function | undefined;
|
|
626
645
|
}) | (() => import("./config").TablePaginationProps))[], unknown, unknown, () => import("ll-plus/es/utils").Mutable<{}>, boolean>;
|
|
627
646
|
}>>, {
|
|
628
647
|
readonly loading: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -636,6 +655,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
636
655
|
readonly total?: number | undefined;
|
|
637
656
|
readonly current?: number | undefined;
|
|
638
657
|
readonly pageSize?: number | undefined;
|
|
658
|
+
readonly showTotal?: Function | undefined;
|
|
639
659
|
};
|
|
640
660
|
}, {}>;
|
|
641
661
|
export default _default;
|
package/lib/hooks/index.d.ts
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Language } from 'll-plus/es/locale';
|
|
2
|
+
import type { MaybeRef } from '@vueuse/core';
|
|
3
|
+
import type { InjectionKey, Ref } from 'vue';
|
|
4
|
+
export type TranslatorOption = Record<string, string | number>;
|
|
5
|
+
export type Translator = (path: string, option?: TranslatorOption) => string;
|
|
6
|
+
export type LocaleContext = {
|
|
7
|
+
locale: Ref<Language>;
|
|
8
|
+
lang: Ref<string>;
|
|
9
|
+
t: Translator;
|
|
10
|
+
};
|
|
11
|
+
export declare const buildTranslator: (locale: MaybeRef<Language>) => Translator;
|
|
12
|
+
export declare const translate: (path: string, option: undefined | TranslatorOption, locale: Language) => string;
|
|
13
|
+
export declare const buildLocaleContext: (locale: MaybeRef<Language>) => LocaleContext;
|
|
14
|
+
export declare const localeContextKey: InjectionKey<Ref<Language | undefined>>;
|
|
15
|
+
export declare const useLocale: (localeOverrides?: Ref<Language | undefined>) => LocaleContext;
|
package/lib/index.js
CHANGED
|
@@ -39,6 +39,7 @@ var svPanel = require('./packages/components/color-picker/src/config/sv-panel.js
|
|
|
39
39
|
var useOptions = require('./packages/components/color-picker/src/config/use-options.js');
|
|
40
40
|
var index$8 = require('./packages/components/color-picker/index.js');
|
|
41
41
|
var color = require('./packages/components/color-picker/src/config/color.js');
|
|
42
|
+
var configProvider = require('./packages/components/config-provider/src/config-provider.js');
|
|
42
43
|
var index$9 = require('./packages/components/config-provider/index.js');
|
|
43
44
|
var cropperImage = require('./packages/components/cropper/src/cropper-image.js');
|
|
44
45
|
var index$a = require('./packages/components/cropper/index.js');
|
|
@@ -151,7 +152,8 @@ var types = require('./packages/utils/types.js');
|
|
|
151
152
|
var file = require('./packages/utils/file.js');
|
|
152
153
|
var deepUnref = require('./packages/utils/deep-unref.js');
|
|
153
154
|
var data = require('./packages/utils/data.js');
|
|
154
|
-
var index$X = require('./packages/hooks/use-
|
|
155
|
+
var index$X = require('./packages/hooks/use-locale/index.js');
|
|
156
|
+
var index$Y = require('./packages/hooks/use-scroll/index.js');
|
|
155
157
|
|
|
156
158
|
"use strict";
|
|
157
159
|
const install = defaults.default.install;
|
|
@@ -242,6 +244,7 @@ exports.OPTIONS_KEY = useOptions.OPTIONS_KEY;
|
|
|
242
244
|
exports.useOptions = useOptions.useOptions;
|
|
243
245
|
exports.LlColorPicker = index$8.LlColorPicker;
|
|
244
246
|
exports.Color = color.default;
|
|
247
|
+
exports.configProviderProps = configProvider.configProviderProps;
|
|
245
248
|
exports.LlConfigProvider = index$9.LlConfigProvider;
|
|
246
249
|
exports.cropperImageEmits = cropperImage.cropperImageEmits;
|
|
247
250
|
exports.cropperImageProps = cropperImage.cropperImageProps;
|
|
@@ -485,6 +488,11 @@ exports.deepUnref = deepUnref.deepUnref;
|
|
|
485
488
|
exports.deepCompare = data.deepCompare;
|
|
486
489
|
exports.guid = data.guid;
|
|
487
490
|
exports.hasValue = data.hasValue;
|
|
488
|
-
exports.
|
|
491
|
+
exports.buildLocaleContext = index$X.buildLocaleContext;
|
|
492
|
+
exports.buildTranslator = index$X.buildTranslator;
|
|
493
|
+
exports.localeContextKey = index$X.localeContextKey;
|
|
494
|
+
exports.translate = index$X.translate;
|
|
495
|
+
exports.useLocale = index$X.useLocale;
|
|
496
|
+
exports.useScroll = index$Y.useScroll;
|
|
489
497
|
exports.install = install;
|
|
490
498
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../packages/ll-plus/index.ts"],"sourcesContent":["import installer from './defaults'\n\nexport * from '@ll-plus/components'\nexport * from '@ll-plus/constant'\nexport * from '@ll-plus/utils'\nexport * from '@ll-plus/hooks'\n\nexport const install = installer.install\nexport default installer\n"],"names":["installer"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../packages/ll-plus/index.ts"],"sourcesContent":["import installer from './defaults'\n\nexport * from '@ll-plus/components'\nexport * from '@ll-plus/constant'\nexport * from '@ll-plus/utils'\nexport * from '@ll-plus/hooks'\n\nexport const install = installer.install\nexport default installer\n"],"names":["installer"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOO,MAAM,UAAUA,gBAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { default as en } from './lang/en';
|
|
2
|
+
export { default as zhCn } from './lang/zh-cn';
|
|
3
|
+
export { default as zhTw } from './lang/zh-tw';
|
|
4
|
+
export type TranslatePair = {
|
|
5
|
+
[key: string]: string | string[] | TranslatePair;
|
|
6
|
+
};
|
|
7
|
+
export type Language = {
|
|
8
|
+
name: string;
|
|
9
|
+
ll: TranslatePair;
|
|
10
|
+
};
|