wlwy-package 4.0.0-beta.2 → 4.0.0-beta.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/dist/style.css +2 -1
- package/dist/types/axios/index.d.ts +6 -0
- package/dist/types/axios/service.d.ts +21 -0
- package/dist/types/axios/types/index.d.ts +32 -0
- package/dist/types/components/antd/index.d.ts +11 -0
- package/dist/types/components/antd/src/button.vue.d.ts +10 -0
- package/dist/types/components/antd/src/datePicker.vue.d.ts +16 -0
- package/dist/types/components/antd/src/descriptions-item.vue.d.ts +9 -0
- package/dist/types/components/antd/src/descriptions.vue.d.ts +6 -0
- package/dist/types/components/antd/src/modal.vue.d.ts +30 -0
- package/dist/types/components/antd/src/rangePicker.vue.d.ts +24 -0
- package/dist/types/components/antd/src/select.vue.d.ts +22 -0
- package/dist/types/components/antd/src/statistic.vue.d.ts +3 -0
- package/dist/types/components/antd/src/upload.vue.d.ts +40 -0
- package/dist/types/components/antd/type.d.ts +188 -0
- package/dist/types/components/common/index.d.ts +20 -0
- package/dist/types/components/common/src/Analysis.vue.d.ts +5 -0
- package/dist/types/components/common/src/Redirect.vue.d.ts +2 -0
- package/dist/types/components/common/src/configProvider.vue.d.ts +13 -0
- package/dist/types/components/common/src/copyable.vue.d.ts +16 -0
- package/dist/types/components/common/src/cropper.vue.d.ts +29 -0
- package/dist/types/components/common/src/dropdown.vue.d.ts +23 -0
- package/dist/types/components/common/src/noData.vue.d.ts +7 -0
- package/dist/types/components/common/src/page.vue.d.ts +38 -0
- package/dist/types/components/common/src/page404.vue.d.ts +11 -0
- package/dist/types/components/common/src/slashHeader.vue.d.ts +7 -0
- package/dist/types/components/common/src/upload-modal.vue.d.ts +43 -0
- package/dist/types/components/common/src/warehouseSelectGate.vue.d.ts +2 -0
- package/dist/types/components/common/type.d.ts +242 -0
- package/dist/types/components/form/business/index.d.ts +8 -0
- package/dist/types/components/form/business/src/channel.vue.d.ts +5 -0
- package/dist/types/components/form/business/src/country.vue.d.ts +3 -0
- package/dist/types/components/form/business/src/customer.vue.d.ts +6 -0
- package/dist/types/components/form/business/src/sku.vue.d.ts +16 -0
- package/dist/types/components/form/business/type.d.ts +39 -0
- package/dist/types/components/form/default/index.d.ts +39 -0
- package/dist/types/components/form/default/src/checkbox.vue.d.ts +22 -0
- package/dist/types/components/form/default/src/custom.vue.d.ts +14 -0
- package/dist/types/components/form/default/src/datePicker.vue.d.ts +5 -0
- package/dist/types/components/form/default/src/dateRange.vue.d.ts +10 -0
- package/dist/types/components/form/default/src/form.vue.d.ts +430 -0
- package/dist/types/components/form/default/src/formCol.vue.d.ts +16 -0
- package/dist/types/components/form/default/src/formItem.vue.d.ts +38 -0
- package/dist/types/components/form/default/src/formItemRest.vue.d.ts +2 -0
- package/dist/types/components/form/default/src/formMultiItem.vue.d.ts +31 -0
- package/dist/types/components/form/default/src/formMultiItemOption.vue.d.ts +14 -0
- package/dist/types/components/form/default/src/input.vue.d.ts +26 -0
- package/dist/types/components/form/default/src/inputI18n.vue.d.ts +14 -0
- package/dist/types/components/form/default/src/inputMatch.vue.d.ts +23 -0
- package/dist/types/components/form/default/src/inputNumber.vue.d.ts +16 -0
- package/dist/types/components/form/default/src/inputPassword.vue.d.ts +16 -0
- package/dist/types/components/form/default/src/inputTags.vue.d.ts +23 -0
- package/dist/types/components/form/default/src/numberRange.vue.d.ts +9 -0
- package/dist/types/components/form/default/src/radio.vue.d.ts +22 -0
- package/dist/types/components/form/default/src/select.vue.d.ts +27 -0
- package/dist/types/components/form/default/src/textarea.vue.d.ts +14 -0
- package/dist/types/components/form/default/src/timePicker.vue.d.ts +6 -0
- package/dist/types/components/form/default/src/upload-image.vue.d.ts +23 -0
- package/dist/types/components/form/default/src/upload.vue.d.ts +12 -0
- package/dist/types/components/form/default/type.d.ts +624 -0
- package/dist/types/components/form/index.d.ts +2 -0
- package/dist/types/components/form/type.d.ts +2 -0
- package/dist/types/components/icon/index.d.ts +4 -0
- package/dist/types/components/icon/src/icon.vue.d.ts +12 -0
- package/dist/types/components/icon/src/index.vue.d.ts +9 -0
- package/dist/types/components/icon/src/switch.vue.d.ts +18 -0
- package/dist/types/components/icon/type.d.ts +41 -0
- package/dist/types/components/index.d.ts +6 -0
- package/dist/types/components/layout/blank.vue.d.ts +2 -0
- package/dist/types/components/layout/index.d.ts +7 -0
- package/dist/types/components/layout/index.vue.d.ts +9 -0
- package/dist/types/components/layout/skeleton/button.vue.d.ts +8 -0
- package/dist/types/components/layout/skeleton/descriptions.vue.d.ts +18 -0
- package/dist/types/components/layout/skeleton/form.vue.d.ts +25 -0
- package/dist/types/components/layout/skeleton/list.vue.d.ts +2 -0
- package/dist/types/components/layout/skeleton/switch.vue.d.ts +2 -0
- package/dist/types/components/layout/skeleton/table.vue.d.ts +20 -0
- package/dist/types/components/layout/skeleton/utils.d.ts +88 -0
- package/dist/types/components/layout/src/footer.vue.d.ts +2 -0
- package/dist/types/components/layout/src/header/index.vue.d.ts +10 -0
- package/dist/types/components/layout/src/header/modules/download.vue.d.ts +6 -0
- package/dist/types/components/layout/src/header/modules/language.vue.d.ts +2 -0
- package/dist/types/components/layout/src/header/modules/password-modal.vue.d.ts +9 -0
- package/dist/types/components/layout/src/header/modules/topMenu.vue.d.ts +2 -0
- package/dist/types/components/layout/src/header/modules/warehouse.vue.d.ts +2 -0
- package/dist/types/components/layout/src/logo.vue.d.ts +2 -0
- package/dist/types/components/layout/src/siderMenu.vue.d.ts +2 -0
- package/dist/types/components/layout/src/subMenuItem.vue.d.ts +6 -0
- package/dist/types/components/layout/src/tabsNav.vue.d.ts +2 -0
- package/dist/types/components/layout/type.d.ts +17 -0
- package/dist/types/components/private/inputTags.vue.d.ts +21 -0
- package/dist/types/components/table/constants.d.ts +13 -0
- package/dist/types/components/table/index.d.ts +8 -0
- package/dist/types/components/table/resolveToolbarButtons.d.ts +16 -0
- package/dist/types/components/table/src/action-column.vue.d.ts +11 -0
- package/dist/types/components/table/src/column.vue.d.ts +119 -0
- package/dist/types/components/table/src/detail-search.vue.d.ts +31 -0
- package/dist/types/components/table/src/list-search.vue.d.ts +32 -0
- package/dist/types/components/table/src/pager.vue.d.ts +325 -0
- package/dist/types/components/table/src/search.vue.d.ts +44 -0
- package/dist/types/components/table/src/table.vue.d.ts +948 -0
- package/dist/types/components/table/src/toolbarButtons.vue.d.ts +18 -0
- package/dist/types/components/table/type.d.ts +354 -0
- package/dist/types/components/table/useWTableConfig.d.ts +38 -0
- package/dist/types/components/table/vxeDefaultConfig.d.ts +9 -0
- package/dist/types/components/table/warnDeprecated.d.ts +4 -0
- package/dist/types/config.d.ts +29 -0
- package/dist/types/directive/auth.d.ts +4 -0
- package/dist/types/directive/auths.d.ts +4 -0
- package/dist/types/directive/index.d.ts +6 -0
- package/dist/types/hooks/business/index.d.ts +5 -0
- package/dist/types/hooks/business/src/index.d.ts +5 -0
- package/dist/types/hooks/business/src/useCountryDict.d.ts +41 -0
- package/dist/types/hooks/business/src/useCurrencyDict.d.ts +29 -0
- package/dist/types/hooks/business/src/useCustomerDict.d.ts +41 -0
- package/dist/types/hooks/business/src/useWarehouseSelect.d.ts +15 -0
- package/dist/types/hooks/business/src/useWarehouseZoneDict.d.ts +29 -0
- package/dist/types/hooks/business/useBusinessDict.d.ts +13 -0
- package/dist/types/hooks/business/useDict.d.ts +35 -0
- package/dist/types/hooks/business/useDictRaw.d.ts +14 -0
- package/dist/types/hooks/index.d.ts +2 -0
- package/dist/types/hooks/private/index.d.ts +7 -0
- package/dist/types/hooks/private/src/useFormContext.d.ts +12 -0
- package/dist/types/hooks/private/src/useFormDefaultValue.d.ts +42 -0
- package/dist/types/hooks/private/src/useFormFieldRegister.d.ts +13 -0
- package/dist/types/hooks/private/src/useFormItemProps.d.ts +45 -0
- package/dist/types/hooks/private/src/useKey.d.ts +1 -0
- package/dist/types/hooks/private/src/useRenderCell.d.ts +71 -0
- package/dist/types/hooks/private/src/useTabsNav.d.ts +13 -0
- package/dist/types/hooks/web/index.d.ts +16 -0
- package/dist/types/hooks/web/key.d.ts +4 -0
- package/dist/types/hooks/web/src/useAffix.d.ts +19 -0
- package/dist/types/hooks/web/src/useCatchPreloadError.d.ts +6 -0
- package/dist/types/hooks/web/src/useCookie.d.ts +11 -0
- package/dist/types/hooks/web/src/useDate.d.ts +86 -0
- package/dist/types/hooks/web/src/useEnum.d.ts +28 -0
- package/dist/types/hooks/web/src/useExport.d.ts +4 -0
- package/dist/types/hooks/web/src/useForm.d.ts +1 -0
- package/dist/types/hooks/web/src/useI18n.d.ts +26 -0
- package/dist/types/hooks/web/src/useListPager.d.ts +37 -0
- package/dist/types/hooks/web/src/useLocale.d.ts +6 -0
- package/dist/types/hooks/web/src/useNProgress.d.ts +5 -0
- package/dist/types/hooks/web/src/useNavigate.d.ts +11 -0
- package/dist/types/hooks/web/src/usePageBack.d.ts +19 -0
- package/dist/types/hooks/web/src/useWindowSize.d.ts +8 -0
- package/dist/types/hooks/web/type.d.ts +70 -0
- package/dist/types/index.d.ts +21 -0
- package/dist/types/keys/index.d.ts +76 -0
- package/dist/types/keys/public.d.ts +0 -0
- package/dist/types/locales/enUs.d.ts +20 -0
- package/dist/types/locales/index.d.ts +4 -0
- package/dist/types/locales/zhCn.d.ts +20 -0
- package/dist/types/plugins/index.d.ts +1 -0
- package/dist/types/plugins/vueI18n/helper.d.ts +1 -0
- package/dist/types/plugins/vueI18n/index.d.ts +14 -0
- package/dist/types/setup/dayjs.d.ts +7 -0
- package/dist/types/setup/index.d.ts +3 -0
- package/dist/types/setup/vxe.d.ts +10 -0
- package/dist/types/store/index.d.ts +9 -0
- package/dist/types/store/modules/common.d.ts +30 -0
- package/dist/types/store/modules/dict.d.ts +126 -0
- package/dist/types/store/modules/language.d.ts +91 -0
- package/dist/types/store/modules/tagsNav.d.ts +83 -0
- package/dist/types/store/modules/userPermission.d.ts +59 -0
- package/dist/types/type.d.ts +53 -0
- package/dist/types/utils/config.d.ts +1 -0
- package/dist/types/utils/createRefInstanceProxy.d.ts +13 -0
- package/dist/types/utils/form.d.ts +9 -0
- package/dist/types/utils/formatCellValue.d.ts +88 -0
- package/dist/types/utils/getPrefixTitle.d.ts +5 -0
- package/dist/types/utils/index.d.ts +50 -0
- package/dist/types/utils/localStorage.d.ts +52 -0
- package/dist/types/utils/resolveDefaultValue.d.ts +12 -0
- package/dist/types/utils/type.d.ts +32 -0
- package/dist/wlwy-package.es.js +2 -10390
- package/package.json +22 -21
- package/dist/charts/index.es.js +0 -4
- package/dist/editor/index.es.js +0 -4
- package/dist/editor-core-BGPSxIdD.js +0 -21080
- package/dist/index-5P9J8Ohq.js +0 -9633
- package/dist/index-nd_lc6wA.js +0 -101
- package/dist/index.vue_vue_type_script_setup_true_lang-BHLjWGpQ.js +0 -73515
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import './style/index.less';
|
|
2
|
+
import './setup/dayjs';
|
|
3
|
+
import type { App } from 'vue';
|
|
4
|
+
import { setConfig } from './config';
|
|
5
|
+
export * from './components';
|
|
6
|
+
export * from './store';
|
|
7
|
+
export * from './hooks';
|
|
8
|
+
export * from './plugins';
|
|
9
|
+
export * from './setup';
|
|
10
|
+
export * from './type';
|
|
11
|
+
export * from './keys';
|
|
12
|
+
export { useService, type ServiceType } from './axios';
|
|
13
|
+
export { type Config } from './config';
|
|
14
|
+
export { getTitle, createFormRules, type FormRule, type FormRules, type CreateFormRulesOptions, type CreateFormRulesField, type CreateFormRulesPrompt } from './utils';
|
|
15
|
+
export { getWarehouseId, getWarehouseCode, getWarehouseName, getPlatformCode, type WarehouseProp } from './utils/localStorage';
|
|
16
|
+
export declare const install: (app: App) => App<any>;
|
|
17
|
+
declare const _default: {
|
|
18
|
+
install: (app: App<any>) => App<any>;
|
|
19
|
+
setConfig: typeof setConfig;
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { ComputedRef, InjectionKey, ModelRef, Ref } from 'vue';
|
|
2
|
+
import type { FormProps } from 'ant-design-vue';
|
|
3
|
+
import type { WIconProp } from '../components/icon/type';
|
|
4
|
+
export declare const WHeaderForm: InjectionKey<ModelRef<Partial<FormProps>>>;
|
|
5
|
+
/** w-column type="action" 内 w-icon 的默认 size */
|
|
6
|
+
export declare const WIconSizeKey: InjectionKey<NonNullable<WIconProp['size']>>;
|
|
7
|
+
/** WSearch 重置时回调注册(如 DateRange 回写 defaultValue;可异步) */
|
|
8
|
+
export type WSearchRegisterReset = (fn: () => void | Promise<void>) => () => void;
|
|
9
|
+
export declare const WSearchRegisterResetKey: InjectionKey<WSearchRegisterReset>;
|
|
10
|
+
/**
|
|
11
|
+
* WSearch 字段注册(表单控件自报本控件占用的 form 字段名)。
|
|
12
|
+
* 传入 getter(而非快照),字段名随 props 变化时无需重新注册。
|
|
13
|
+
*/
|
|
14
|
+
export type WSearchRegisterField = (getKeys: () => string[]) => () => void;
|
|
15
|
+
export declare const WSearchRegisterFieldKey: InjectionKey<WSearchRegisterField>;
|
|
16
|
+
/** WSearch 字段注册域:首行(main)/ 折叠区(more) */
|
|
17
|
+
export type WSearchFieldScope = 'main' | 'more';
|
|
18
|
+
/** WSearch 内部字段注册表(供内部作用域组件切换注册域) */
|
|
19
|
+
export interface WSearchFieldRegistry {
|
|
20
|
+
add: (getKeys: () => string[], scope: WSearchFieldScope) => () => void;
|
|
21
|
+
}
|
|
22
|
+
export declare const WSearchFieldRegistryKey: InjectionKey<WSearchFieldRegistry>;
|
|
23
|
+
/**
|
|
24
|
+
* w-form-multi-item 已注册的 option 快照(由 WFormMultiItemOption 上报)
|
|
25
|
+
*/
|
|
26
|
+
export interface FormMultiItemRegisteredOption {
|
|
27
|
+
/** 选项标识,对应下拉 key / 非区间字段名 / clear 注册 key */
|
|
28
|
+
model: string;
|
|
29
|
+
/** 下拉文案(可为 i18n key) */
|
|
30
|
+
label?: string;
|
|
31
|
+
/** 是否禁用该下拉项 */
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* 注册「切换离开某 option」时的清理函数
|
|
36
|
+
* @param model option.model
|
|
37
|
+
* @param clear 清理回调(如删除 timeFrom/timeTo)
|
|
38
|
+
* @returns 取消注册函数
|
|
39
|
+
*/
|
|
40
|
+
export type FormMultiItemRegisterClear = (model: string, clear: () => void) => () => void;
|
|
41
|
+
/**
|
|
42
|
+
* w-form-multi-item 向子孙 provide 的上下文
|
|
43
|
+
*/
|
|
44
|
+
export interface FormMultiItemContext {
|
|
45
|
+
/** 表单 model 对象 */
|
|
46
|
+
form: ComputedRef<object>;
|
|
47
|
+
/** 当前选中的 option.model */
|
|
48
|
+
activeKey: Ref<string | undefined>;
|
|
49
|
+
/**
|
|
50
|
+
* 为 true 时,子级 WFormItem 在未显式传 bare 时跳过 FormCol/FormItem,只渲染控件
|
|
51
|
+
* (外层 MultiItem 自身使用 `:bare="false"` 保留包装)
|
|
52
|
+
*/
|
|
53
|
+
bare: true;
|
|
54
|
+
/** Option 挂载时注册到下拉列表 */
|
|
55
|
+
register: (option: FormMultiItemRegisteredOption) => void;
|
|
56
|
+
/** Option 卸载时从下拉列表移除,并删除其 clear 钩子 */
|
|
57
|
+
unregister: (model: string) => void;
|
|
58
|
+
/**
|
|
59
|
+
* 注册切换离开该 option.model 时的清理。
|
|
60
|
+
* 建议子组件挂载时注册且不要在 unmount 时取消(Option 用 v-if,卸载后仍需清残留字段)。
|
|
61
|
+
*/
|
|
62
|
+
registerClear: FormMultiItemRegisterClear;
|
|
63
|
+
}
|
|
64
|
+
/** FormMultiItemContext 的 InjectionKey */
|
|
65
|
+
export declare const FormMultiItemContextKey: InjectionKey<FormMultiItemContext>;
|
|
66
|
+
/**
|
|
67
|
+
* 当前 WFormMultiItemOption 的 model。
|
|
68
|
+
* - 非区间控件(经 useFormItemProps):覆盖自身 model,绑定 form[option.model]
|
|
69
|
+
* - 区间控件(DateRange / NumberRange):仅作 registerClear 的 key
|
|
70
|
+
*/
|
|
71
|
+
export declare const FormMultiItemOptionModelKey: InjectionKey<Ref<string>>;
|
|
72
|
+
/**
|
|
73
|
+
* 当前 WFormMultiItemOption 的 label。
|
|
74
|
+
* useFormItemProps 内优先于控件自身 label(placeholder / collectLabel)。
|
|
75
|
+
*/
|
|
76
|
+
export declare const FormMultiItemOptionLabelKey: InjectionKey<Ref<string | undefined>>;
|
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** Package local locale messages (namespace: wlwy) */
|
|
2
|
+
declare const _default: {
|
|
3
|
+
wlwy: {
|
|
4
|
+
select_time: string;
|
|
5
|
+
select_date: string;
|
|
6
|
+
more: string;
|
|
7
|
+
rule_pattern: string;
|
|
8
|
+
rule_type_number: string;
|
|
9
|
+
rule_type_array: string;
|
|
10
|
+
rule_type_url: string;
|
|
11
|
+
rule_type_email: string;
|
|
12
|
+
rule_type_date: string;
|
|
13
|
+
rule_type_hex: string;
|
|
14
|
+
rule_len: string;
|
|
15
|
+
rule_min: string;
|
|
16
|
+
rule_max: string;
|
|
17
|
+
rule_min_max: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** 本库本地语言包(namespace: wlwy) */
|
|
2
|
+
declare const _default: {
|
|
3
|
+
wlwy: {
|
|
4
|
+
select_time: string;
|
|
5
|
+
select_date: string;
|
|
6
|
+
more: string;
|
|
7
|
+
rule_pattern: string;
|
|
8
|
+
rule_type_number: string;
|
|
9
|
+
rule_type_array: string;
|
|
10
|
+
rule_type_url: string;
|
|
11
|
+
rule_type_email: string;
|
|
12
|
+
rule_type_date: string;
|
|
13
|
+
rule_type_hex: string;
|
|
14
|
+
rule_len: string;
|
|
15
|
+
rule_min: string;
|
|
16
|
+
rule_max: string;
|
|
17
|
+
rule_min_max: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './vueI18n';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const setHtmlPageLang: (locale: string) => void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { I18n } from 'vue-i18n';
|
|
2
|
+
type FnType = (locale: string) => {
|
|
3
|
+
src: string;
|
|
4
|
+
messages: any;
|
|
5
|
+
};
|
|
6
|
+
export declare const i18n: I18n;
|
|
7
|
+
/**
|
|
8
|
+
* 远程加载语言资源
|
|
9
|
+
*
|
|
10
|
+
* @param {FnType} fn
|
|
11
|
+
* @return {*} {Promise<void>}
|
|
12
|
+
*/
|
|
13
|
+
export declare const loadLocaleMessages: (fn: FnType) => Promise<I18n>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import 'vxe-pc-ui/lib/style.css';
|
|
2
|
+
import 'vxe-table/lib/style.css';
|
|
3
|
+
import type { App } from 'vue';
|
|
4
|
+
import * as VxeUIAll from 'vxe-pc-ui';
|
|
5
|
+
import * as VxeUITable from 'vxe-table';
|
|
6
|
+
export type SetupVxeCallback = (ui: typeof VxeUIAll, table: typeof VxeUITable) => void;
|
|
7
|
+
export type SetupVxeOptions = Parameters<typeof VxeUIAll.VxeUI.setConfig>[0];
|
|
8
|
+
export declare function setupVxe(app: App<Element>): void;
|
|
9
|
+
export declare function setupVxe(app: App<Element>, callback: SetupVxeCallback): void;
|
|
10
|
+
export declare function setupVxe(app: App<Element>, options: SetupVxeOptions, callback?: SetupVxeCallback): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './modules/common';
|
|
2
|
+
export * from './modules/tagsNav';
|
|
3
|
+
export * from './modules/userPermission';
|
|
4
|
+
export * from './modules/dict';
|
|
5
|
+
export * from './modules/language';
|
|
6
|
+
import type { App } from 'vue';
|
|
7
|
+
declare const store: import("pinia").Pinia;
|
|
8
|
+
export declare const setupStore: (app: App<Element>) => void;
|
|
9
|
+
export { store };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/** common store 对外类型(JSDoc 挂在此接口上,供 IDE 悬停提示) */
|
|
2
|
+
export interface CommonStore {
|
|
3
|
+
/** 全局loading */
|
|
4
|
+
readonly loading: boolean;
|
|
5
|
+
/**
|
|
6
|
+
* 设置loading
|
|
7
|
+
*
|
|
8
|
+
* @param value
|
|
9
|
+
*/
|
|
10
|
+
setLoading: (value: boolean) => void;
|
|
11
|
+
/** 仓库选择弹层是否打开 */
|
|
12
|
+
readonly warehouseSelectOpen: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* 设置仓库选择弹层开关
|
|
15
|
+
*
|
|
16
|
+
* @param value
|
|
17
|
+
*/
|
|
18
|
+
setWarehouseSelectOpen: (value: boolean) => void;
|
|
19
|
+
/** 侧边栏菜单收起状态 */
|
|
20
|
+
readonly collapsed: boolean;
|
|
21
|
+
/** 切换collapsed */
|
|
22
|
+
toggleCollapsed: () => void;
|
|
23
|
+
/** 导出结果红点标识 */
|
|
24
|
+
readonly downloadFlag: boolean;
|
|
25
|
+
/** 添加导出结果红点 */
|
|
26
|
+
addDownloadFlag: () => void;
|
|
27
|
+
/** 移除导出结果红点 */
|
|
28
|
+
removeDownloadFlag: () => void;
|
|
29
|
+
}
|
|
30
|
+
export declare const useCommonStore: () => CommonStore;
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import type { ClearDictOption, OptionType } from '../../type';
|
|
2
|
+
import type { DictNameType } from '../../hooks';
|
|
3
|
+
export declare const useDictStore: () => import("pinia").Store<"dict", Pick<{
|
|
4
|
+
dicts: {
|
|
5
|
+
[x: string & {}]: {
|
|
6
|
+
key: import("../../type").KeyType;
|
|
7
|
+
value: import("../../type").KeyType;
|
|
8
|
+
label: string;
|
|
9
|
+
disabled?: boolean | undefined;
|
|
10
|
+
}[];
|
|
11
|
+
warehouseZone: {
|
|
12
|
+
key: import("../../type").KeyType;
|
|
13
|
+
value: import("../../type").KeyType;
|
|
14
|
+
label: string;
|
|
15
|
+
disabled?: boolean | undefined;
|
|
16
|
+
}[];
|
|
17
|
+
country: {
|
|
18
|
+
key: import("../../type").KeyType;
|
|
19
|
+
value: import("../../type").KeyType;
|
|
20
|
+
label: string;
|
|
21
|
+
disabled?: boolean | undefined;
|
|
22
|
+
}[];
|
|
23
|
+
customer: {
|
|
24
|
+
key: import("../../type").KeyType;
|
|
25
|
+
value: import("../../type").KeyType;
|
|
26
|
+
label: string;
|
|
27
|
+
disabled?: boolean | undefined;
|
|
28
|
+
}[];
|
|
29
|
+
currency: {
|
|
30
|
+
key: import("../../type").KeyType;
|
|
31
|
+
value: import("../../type").KeyType;
|
|
32
|
+
label: string;
|
|
33
|
+
disabled?: boolean | undefined;
|
|
34
|
+
}[];
|
|
35
|
+
};
|
|
36
|
+
ensureDict: (name: DictNameType) => OptionType[];
|
|
37
|
+
getDict: (name: DictNameType) => Promise<OptionType[]>;
|
|
38
|
+
setDict: (name: DictNameType, data: OptionType[]) => OptionType[];
|
|
39
|
+
clearDict: (name: DictNameType, option?: ClearDictOption) => void;
|
|
40
|
+
clearAllDict: () => void;
|
|
41
|
+
setFetchIns: (name: DictNameType, ins: Promise<OptionType[]>) => void;
|
|
42
|
+
getFetchIns: (name: DictNameType) => Promise<OptionType[]> | undefined;
|
|
43
|
+
removeFetchIns: (name: DictNameType) => void;
|
|
44
|
+
}, "dicts">, Pick<{
|
|
45
|
+
dicts: {
|
|
46
|
+
[x: string & {}]: {
|
|
47
|
+
key: import("../../type").KeyType;
|
|
48
|
+
value: import("../../type").KeyType;
|
|
49
|
+
label: string;
|
|
50
|
+
disabled?: boolean | undefined;
|
|
51
|
+
}[];
|
|
52
|
+
warehouseZone: {
|
|
53
|
+
key: import("../../type").KeyType;
|
|
54
|
+
value: import("../../type").KeyType;
|
|
55
|
+
label: string;
|
|
56
|
+
disabled?: boolean | undefined;
|
|
57
|
+
}[];
|
|
58
|
+
country: {
|
|
59
|
+
key: import("../../type").KeyType;
|
|
60
|
+
value: import("../../type").KeyType;
|
|
61
|
+
label: string;
|
|
62
|
+
disabled?: boolean | undefined;
|
|
63
|
+
}[];
|
|
64
|
+
customer: {
|
|
65
|
+
key: import("../../type").KeyType;
|
|
66
|
+
value: import("../../type").KeyType;
|
|
67
|
+
label: string;
|
|
68
|
+
disabled?: boolean | undefined;
|
|
69
|
+
}[];
|
|
70
|
+
currency: {
|
|
71
|
+
key: import("../../type").KeyType;
|
|
72
|
+
value: import("../../type").KeyType;
|
|
73
|
+
label: string;
|
|
74
|
+
disabled?: boolean | undefined;
|
|
75
|
+
}[];
|
|
76
|
+
};
|
|
77
|
+
ensureDict: (name: DictNameType) => OptionType[];
|
|
78
|
+
getDict: (name: DictNameType) => Promise<OptionType[]>;
|
|
79
|
+
setDict: (name: DictNameType, data: OptionType[]) => OptionType[];
|
|
80
|
+
clearDict: (name: DictNameType, option?: ClearDictOption) => void;
|
|
81
|
+
clearAllDict: () => void;
|
|
82
|
+
setFetchIns: (name: DictNameType, ins: Promise<OptionType[]>) => void;
|
|
83
|
+
getFetchIns: (name: DictNameType) => Promise<OptionType[]> | undefined;
|
|
84
|
+
removeFetchIns: (name: DictNameType) => void;
|
|
85
|
+
}, never>, Pick<{
|
|
86
|
+
dicts: {
|
|
87
|
+
[x: string & {}]: {
|
|
88
|
+
key: import("../../type").KeyType;
|
|
89
|
+
value: import("../../type").KeyType;
|
|
90
|
+
label: string;
|
|
91
|
+
disabled?: boolean | undefined;
|
|
92
|
+
}[];
|
|
93
|
+
warehouseZone: {
|
|
94
|
+
key: import("../../type").KeyType;
|
|
95
|
+
value: import("../../type").KeyType;
|
|
96
|
+
label: string;
|
|
97
|
+
disabled?: boolean | undefined;
|
|
98
|
+
}[];
|
|
99
|
+
country: {
|
|
100
|
+
key: import("../../type").KeyType;
|
|
101
|
+
value: import("../../type").KeyType;
|
|
102
|
+
label: string;
|
|
103
|
+
disabled?: boolean | undefined;
|
|
104
|
+
}[];
|
|
105
|
+
customer: {
|
|
106
|
+
key: import("../../type").KeyType;
|
|
107
|
+
value: import("../../type").KeyType;
|
|
108
|
+
label: string;
|
|
109
|
+
disabled?: boolean | undefined;
|
|
110
|
+
}[];
|
|
111
|
+
currency: {
|
|
112
|
+
key: import("../../type").KeyType;
|
|
113
|
+
value: import("../../type").KeyType;
|
|
114
|
+
label: string;
|
|
115
|
+
disabled?: boolean | undefined;
|
|
116
|
+
}[];
|
|
117
|
+
};
|
|
118
|
+
ensureDict: (name: DictNameType) => OptionType[];
|
|
119
|
+
getDict: (name: DictNameType) => Promise<OptionType[]>;
|
|
120
|
+
setDict: (name: DictNameType, data: OptionType[]) => OptionType[];
|
|
121
|
+
clearDict: (name: DictNameType, option?: ClearDictOption) => void;
|
|
122
|
+
clearAllDict: () => void;
|
|
123
|
+
setFetchIns: (name: DictNameType, ins: Promise<OptionType[]>) => void;
|
|
124
|
+
getFetchIns: (name: DictNameType) => Promise<OptionType[]> | undefined;
|
|
125
|
+
removeFetchIns: (name: DictNameType) => void;
|
|
126
|
+
}, "ensureDict" | "getDict" | "setDict" | "clearDict" | "clearAllDict" | "setFetchIns" | "getFetchIns" | "removeFetchIns">>;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
export declare const useLanguageStore: () => import("pinia").Store<"language", Pick<{
|
|
2
|
+
value: import("vue").Ref<string, string>;
|
|
3
|
+
options: import("vue").Ref<{
|
|
4
|
+
languageType: string;
|
|
5
|
+
languageName: string;
|
|
6
|
+
key: string;
|
|
7
|
+
value: string;
|
|
8
|
+
label: string;
|
|
9
|
+
}[], ({
|
|
10
|
+
languageType: string;
|
|
11
|
+
languageName: string;
|
|
12
|
+
} & {
|
|
13
|
+
key: string;
|
|
14
|
+
value: string;
|
|
15
|
+
label: string;
|
|
16
|
+
})[] | {
|
|
17
|
+
languageType: string;
|
|
18
|
+
languageName: string;
|
|
19
|
+
key: string;
|
|
20
|
+
value: string;
|
|
21
|
+
label: string;
|
|
22
|
+
}[]>;
|
|
23
|
+
setValue: (languageType: string) => void;
|
|
24
|
+
getOptions: () => Promise<{
|
|
25
|
+
languageType: string;
|
|
26
|
+
languageName: string;
|
|
27
|
+
key: string;
|
|
28
|
+
value: string;
|
|
29
|
+
label: string;
|
|
30
|
+
}[]>;
|
|
31
|
+
}, "value" | "options">, Pick<{
|
|
32
|
+
value: import("vue").Ref<string, string>;
|
|
33
|
+
options: import("vue").Ref<{
|
|
34
|
+
languageType: string;
|
|
35
|
+
languageName: string;
|
|
36
|
+
key: string;
|
|
37
|
+
value: string;
|
|
38
|
+
label: string;
|
|
39
|
+
}[], ({
|
|
40
|
+
languageType: string;
|
|
41
|
+
languageName: string;
|
|
42
|
+
} & {
|
|
43
|
+
key: string;
|
|
44
|
+
value: string;
|
|
45
|
+
label: string;
|
|
46
|
+
})[] | {
|
|
47
|
+
languageType: string;
|
|
48
|
+
languageName: string;
|
|
49
|
+
key: string;
|
|
50
|
+
value: string;
|
|
51
|
+
label: string;
|
|
52
|
+
}[]>;
|
|
53
|
+
setValue: (languageType: string) => void;
|
|
54
|
+
getOptions: () => Promise<{
|
|
55
|
+
languageType: string;
|
|
56
|
+
languageName: string;
|
|
57
|
+
key: string;
|
|
58
|
+
value: string;
|
|
59
|
+
label: string;
|
|
60
|
+
}[]>;
|
|
61
|
+
}, never>, Pick<{
|
|
62
|
+
value: import("vue").Ref<string, string>;
|
|
63
|
+
options: import("vue").Ref<{
|
|
64
|
+
languageType: string;
|
|
65
|
+
languageName: string;
|
|
66
|
+
key: string;
|
|
67
|
+
value: string;
|
|
68
|
+
label: string;
|
|
69
|
+
}[], ({
|
|
70
|
+
languageType: string;
|
|
71
|
+
languageName: string;
|
|
72
|
+
} & {
|
|
73
|
+
key: string;
|
|
74
|
+
value: string;
|
|
75
|
+
label: string;
|
|
76
|
+
})[] | {
|
|
77
|
+
languageType: string;
|
|
78
|
+
languageName: string;
|
|
79
|
+
key: string;
|
|
80
|
+
value: string;
|
|
81
|
+
label: string;
|
|
82
|
+
}[]>;
|
|
83
|
+
setValue: (languageType: string) => void;
|
|
84
|
+
getOptions: () => Promise<{
|
|
85
|
+
languageType: string;
|
|
86
|
+
languageName: string;
|
|
87
|
+
key: string;
|
|
88
|
+
value: string;
|
|
89
|
+
label: string;
|
|
90
|
+
}[]>;
|
|
91
|
+
}, "setValue" | "getOptions">>;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type { RouteLocationNormalizedLoaded } from 'vue-router';
|
|
2
|
+
export interface NavTabType extends Pick<RouteLocationNormalizedLoaded, 'name' | 'path' | 'query' | 'meta'> {
|
|
3
|
+
}
|
|
4
|
+
export type ITabsNavState = {
|
|
5
|
+
loading: boolean;
|
|
6
|
+
inited: boolean;
|
|
7
|
+
currentTab?: NavTabType;
|
|
8
|
+
visitedTabs: Array<NavTabType>;
|
|
9
|
+
cachedTabs: Set<string>;
|
|
10
|
+
};
|
|
11
|
+
export declare const useTabsNavStore: () => import("pinia").Store<"tabsNav", Pick<{
|
|
12
|
+
getVisitedTabs: import("vue").ComputedRef<NavTabType[]>;
|
|
13
|
+
getCachedTabs: import("vue").ComputedRef<string[]>;
|
|
14
|
+
getLoading: import("vue").ComputedRef<boolean>;
|
|
15
|
+
init: () => void;
|
|
16
|
+
setLoading: (loading: boolean) => void;
|
|
17
|
+
addTab: (tab: NavTabType) => void;
|
|
18
|
+
addVisitedTab: (tab: NavTabType) => void;
|
|
19
|
+
addCachedTab: () => void;
|
|
20
|
+
delTab: (tab: NavTabType) => void;
|
|
21
|
+
delVisitedTab: (tab: NavTabType) => void;
|
|
22
|
+
delCachedTab: (tab: NavTabType) => void;
|
|
23
|
+
delAllTabs: () => void;
|
|
24
|
+
delAllVisitedTabs: () => void;
|
|
25
|
+
delOthersTabs: (tab: NavTabType) => void;
|
|
26
|
+
delLeftTabs: (tab: NavTabType) => void;
|
|
27
|
+
delRightTabs: (tab: NavTabType) => void;
|
|
28
|
+
updateVisitedTab: (tab: NavTabType) => void;
|
|
29
|
+
setCurrentTab: (tab: NavTabType) => void;
|
|
30
|
+
loading: import("vue").Ref<boolean, boolean>;
|
|
31
|
+
inited: import("vue").Ref<boolean, boolean>;
|
|
32
|
+
currentTab?: import("vue").Ref<NavTabType | undefined, NavTabType | undefined> | undefined;
|
|
33
|
+
visitedTabs: import("vue").Ref<NavTabType[], NavTabType[]>;
|
|
34
|
+
cachedTabs: import("vue").Ref<Set<string>, Set<string>>;
|
|
35
|
+
}, "loading" | "inited" | "currentTab" | "visitedTabs" | "cachedTabs">, Pick<{
|
|
36
|
+
getVisitedTabs: import("vue").ComputedRef<NavTabType[]>;
|
|
37
|
+
getCachedTabs: import("vue").ComputedRef<string[]>;
|
|
38
|
+
getLoading: import("vue").ComputedRef<boolean>;
|
|
39
|
+
init: () => void;
|
|
40
|
+
setLoading: (loading: boolean) => void;
|
|
41
|
+
addTab: (tab: NavTabType) => void;
|
|
42
|
+
addVisitedTab: (tab: NavTabType) => void;
|
|
43
|
+
addCachedTab: () => void;
|
|
44
|
+
delTab: (tab: NavTabType) => void;
|
|
45
|
+
delVisitedTab: (tab: NavTabType) => void;
|
|
46
|
+
delCachedTab: (tab: NavTabType) => void;
|
|
47
|
+
delAllTabs: () => void;
|
|
48
|
+
delAllVisitedTabs: () => void;
|
|
49
|
+
delOthersTabs: (tab: NavTabType) => void;
|
|
50
|
+
delLeftTabs: (tab: NavTabType) => void;
|
|
51
|
+
delRightTabs: (tab: NavTabType) => void;
|
|
52
|
+
updateVisitedTab: (tab: NavTabType) => void;
|
|
53
|
+
setCurrentTab: (tab: NavTabType) => void;
|
|
54
|
+
loading: import("vue").Ref<boolean, boolean>;
|
|
55
|
+
inited: import("vue").Ref<boolean, boolean>;
|
|
56
|
+
currentTab?: import("vue").Ref<NavTabType | undefined, NavTabType | undefined> | undefined;
|
|
57
|
+
visitedTabs: import("vue").Ref<NavTabType[], NavTabType[]>;
|
|
58
|
+
cachedTabs: import("vue").Ref<Set<string>, Set<string>>;
|
|
59
|
+
}, "getVisitedTabs" | "getCachedTabs" | "getLoading">, Pick<{
|
|
60
|
+
getVisitedTabs: import("vue").ComputedRef<NavTabType[]>;
|
|
61
|
+
getCachedTabs: import("vue").ComputedRef<string[]>;
|
|
62
|
+
getLoading: import("vue").ComputedRef<boolean>;
|
|
63
|
+
init: () => void;
|
|
64
|
+
setLoading: (loading: boolean) => void;
|
|
65
|
+
addTab: (tab: NavTabType) => void;
|
|
66
|
+
addVisitedTab: (tab: NavTabType) => void;
|
|
67
|
+
addCachedTab: () => void;
|
|
68
|
+
delTab: (tab: NavTabType) => void;
|
|
69
|
+
delVisitedTab: (tab: NavTabType) => void;
|
|
70
|
+
delCachedTab: (tab: NavTabType) => void;
|
|
71
|
+
delAllTabs: () => void;
|
|
72
|
+
delAllVisitedTabs: () => void;
|
|
73
|
+
delOthersTabs: (tab: NavTabType) => void;
|
|
74
|
+
delLeftTabs: (tab: NavTabType) => void;
|
|
75
|
+
delRightTabs: (tab: NavTabType) => void;
|
|
76
|
+
updateVisitedTab: (tab: NavTabType) => void;
|
|
77
|
+
setCurrentTab: (tab: NavTabType) => void;
|
|
78
|
+
loading: import("vue").Ref<boolean, boolean>;
|
|
79
|
+
inited: import("vue").Ref<boolean, boolean>;
|
|
80
|
+
currentTab?: import("vue").Ref<NavTabType | undefined, NavTabType | undefined> | undefined;
|
|
81
|
+
visitedTabs: import("vue").Ref<NavTabType[], NavTabType[]>;
|
|
82
|
+
cachedTabs: import("vue").Ref<Set<string>, Set<string>>;
|
|
83
|
+
}, "setLoading" | "init" | "addTab" | "addVisitedTab" | "addCachedTab" | "delTab" | "delVisitedTab" | "delCachedTab" | "delAllTabs" | "delAllVisitedTabs" | "delOthersTabs" | "delLeftTabs" | "delRightTabs" | "updateVisitedTab" | "setCurrentTab">>;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { RouteRecordRaw } from 'vue-router';
|
|
2
|
+
import { type VNode } from 'vue';
|
|
3
|
+
export type IPortalMenu = {
|
|
4
|
+
children?: Array<IPortalMenu>;
|
|
5
|
+
icon: string;
|
|
6
|
+
languageCode: string;
|
|
7
|
+
resourceNo: string;
|
|
8
|
+
type: string;
|
|
9
|
+
url: string;
|
|
10
|
+
};
|
|
11
|
+
export type ISysMenu = {
|
|
12
|
+
children?: Array<ISysMenu>;
|
|
13
|
+
component: string;
|
|
14
|
+
hidden: number;
|
|
15
|
+
icon: string;
|
|
16
|
+
isLeaf: number;
|
|
17
|
+
keepAlive: number;
|
|
18
|
+
languageCode: string;
|
|
19
|
+
resourceNo: string;
|
|
20
|
+
type: string;
|
|
21
|
+
url: string;
|
|
22
|
+
};
|
|
23
|
+
export type IMenuItem = {
|
|
24
|
+
key: string;
|
|
25
|
+
title: string;
|
|
26
|
+
label: string;
|
|
27
|
+
url: string;
|
|
28
|
+
icon?: VNode;
|
|
29
|
+
children?: Array<IMenuItem>;
|
|
30
|
+
type: string;
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
};
|
|
33
|
+
export type IUserPermissionApi = {
|
|
34
|
+
auth: Array<string>;
|
|
35
|
+
config: {
|
|
36
|
+
companyImg?: string;
|
|
37
|
+
companyName?: string;
|
|
38
|
+
companyNameShort?: string;
|
|
39
|
+
copyright?: string;
|
|
40
|
+
systemImg?: string;
|
|
41
|
+
systemName?: string;
|
|
42
|
+
};
|
|
43
|
+
iconGroup: Array<{
|
|
44
|
+
icon: string;
|
|
45
|
+
permissionNo: string;
|
|
46
|
+
}>;
|
|
47
|
+
loginUser: {
|
|
48
|
+
initial?: string;
|
|
49
|
+
platformCode?: string;
|
|
50
|
+
realName?: string;
|
|
51
|
+
};
|
|
52
|
+
portalMenu: Array<IPortalMenu>;
|
|
53
|
+
sysMenu: Array<ISysMenu>;
|
|
54
|
+
};
|
|
55
|
+
export interface IUserPermissionState extends IUserPermissionApi {
|
|
56
|
+
initialization: boolean;
|
|
57
|
+
routes: RouteRecordRaw[];
|
|
58
|
+
}
|
|
59
|
+
export declare const useUserPermissionStore: () => any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 页面操作模式
|
|
3
|
+
*/
|
|
4
|
+
export type HandlerMode = 'list' | 'add' | 'edit' | 'details';
|
|
5
|
+
/**
|
|
6
|
+
* 键值类型
|
|
7
|
+
*/
|
|
8
|
+
export type KeyType = string | number;
|
|
9
|
+
/**
|
|
10
|
+
* 下拉框数据类型
|
|
11
|
+
*/
|
|
12
|
+
export type OptionType<T = unknown> = {
|
|
13
|
+
key: KeyType;
|
|
14
|
+
value: KeyType;
|
|
15
|
+
label: string;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
} & T;
|
|
18
|
+
/**
|
|
19
|
+
* 比较类型
|
|
20
|
+
*/
|
|
21
|
+
type ComparedType = 'min' | 'max';
|
|
22
|
+
type NumType = number | [number, number];
|
|
23
|
+
/**
|
|
24
|
+
* 窗口大小类型
|
|
25
|
+
*/
|
|
26
|
+
export type UseWindowSizeType = {
|
|
27
|
+
/**
|
|
28
|
+
* 比较类型
|
|
29
|
+
*/
|
|
30
|
+
ComparedType: ComparedType;
|
|
31
|
+
/**
|
|
32
|
+
* 比较值
|
|
33
|
+
*/
|
|
34
|
+
NumType: NumType;
|
|
35
|
+
};
|
|
36
|
+
export type ExtendedSuffix<T extends string> = T | `${T}_${string}`;
|
|
37
|
+
export type ClearDictOption = {
|
|
38
|
+
/**
|
|
39
|
+
* 是否清除关联字典
|
|
40
|
+
*/
|
|
41
|
+
related?: boolean;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* 列表结果类型
|
|
45
|
+
*/
|
|
46
|
+
export type ListResult<T> = {
|
|
47
|
+
records: T[];
|
|
48
|
+
total: number;
|
|
49
|
+
current: number;
|
|
50
|
+
size: number;
|
|
51
|
+
pages: number;
|
|
52
|
+
};
|
|
53
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getConfig(): any;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
export type CreateRefInstanceProxyOptions = {
|
|
3
|
+
/** 优先从 target 自身读取的 key(如 defineExpose 自定义方法) */
|
|
4
|
+
ownKeys?: Set<string> | readonly string[];
|
|
5
|
+
/** 是否将 inner 上的方法 bind 到 inner 实例,默认 true */
|
|
6
|
+
bindMethods?: boolean;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* 将外层 ref / expose 对齐到 Ref 指向的内部实例(转发属性读写与 Reflect API)。
|
|
10
|
+
* 差异化 props/slots 逻辑放在各封装组件内处理,勿写入本文件。
|
|
11
|
+
*/
|
|
12
|
+
export declare function createRefInstanceProxy<TInner extends object>(innerRef: Ref<TInner | null | undefined>): TInner;
|
|
13
|
+
export declare function createRefInstanceProxy<TTarget extends object, TInner extends object>(innerRef: Ref<TInner | null | undefined>, target: TTarget, options?: CreateRefInstanceProxyOptions): TTarget & TInner;
|