fast-element-plus 2.0.21 → 2.0.23
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/CHANGELOG.md +27 -0
- package/dist/component.d.ts +88 -67
- package/dist/components/avatar/index.d.ts +3 -3
- package/dist/components/avatar/index.mjs.map +1 -1
- package/dist/components/avatar/src/avatar.d.ts +7 -7
- package/dist/components/button/index.d.ts +3 -3
- package/dist/components/button/index.mjs.map +1 -1
- package/dist/components/button/src/button.d.ts +7 -7
- package/dist/components/carNumber/index.d.ts +1 -1
- package/dist/components/carNumber/index.mjs.map +1 -1
- package/dist/components/carNumber/src/carNumber.d.ts +5 -5
- package/dist/components/contextMenu/index.d.ts +1 -1
- package/dist/components/contextMenu/index.mjs.map +1 -1
- package/dist/components/contextMenu/src/contextMenu.type.d.ts +1 -1
- package/dist/components/dialog/index.d.ts +3 -3
- package/dist/components/dialog/index.mjs.map +1 -1
- package/dist/components/dialog/src/dialog.d.ts +3 -3
- package/dist/components/drawer/index.d.ts +3 -3
- package/dist/components/drawer/index.mjs.map +1 -1
- package/dist/components/drawer/src/drawer.d.ts +3 -3
- package/dist/components/form/index.d.ts +4 -4
- package/dist/components/form/index.mjs.map +1 -1
- package/dist/components/form/src/form.d.ts +3 -3
- package/dist/components/form/src/formItem.d.ts +6 -6
- package/dist/components/form/utils/form.d.ts +2 -2
- package/dist/components/form/utils/form.mjs +2 -2
- package/dist/components/form/utils/form.mjs.map +1 -1
- package/dist/components/formItemTip/index.d.ts +2 -2
- package/dist/components/formItemTip/index.mjs.map +1 -1
- package/dist/components/icon/index.d.ts +2 -2
- package/dist/components/icon/index.mjs.map +1 -1
- package/dist/components/iconSelector/index.d.ts +1 -1
- package/dist/components/iconSelector/index.mjs.map +1 -1
- package/dist/components/image/index.d.ts +2 -2
- package/dist/components/image/index.mjs.map +1 -1
- package/dist/components/image/src/image.d.ts +1 -1
- package/dist/components/image/src/image.mjs.map +1 -1
- package/dist/components/inputDialogPage/index.d.ts +3 -3
- package/dist/components/inputDialogPage/index.mjs.map +1 -1
- package/dist/components/layoutGrid/index.d.ts +2 -2
- package/dist/components/layoutGrid/index.mjs.map +1 -1
- package/dist/components/select/index.d.ts +4 -4
- package/dist/components/select/index.mjs.map +1 -1
- package/dist/components/select/src/select.d.ts +11 -11
- package/dist/components/select/src/select.type.d.ts +2 -2
- package/dist/components/selectPage/index.d.ts +3 -3
- package/dist/components/selectPage/index.mjs.map +1 -1
- package/dist/components/selectPage/src/selectPage.d.ts +11 -11
- package/dist/components/selectV2/index.d.ts +3 -3
- package/dist/components/selectV2/index.mjs.map +1 -1
- package/dist/components/selectV2/src/selectV2.d.ts +4 -4
- package/dist/components/table/index.d.ts +4 -4
- package/dist/components/table/index.mjs.map +1 -1
- package/dist/components/table/src/page.type.d.ts +2 -2
- package/dist/components/table/src/table.d.ts +32 -3
- package/dist/components/table/src/table.mjs +33 -24
- package/dist/components/table/src/table.mjs.map +1 -1
- package/dist/components/table/src/table.type.d.ts +6 -9
- package/dist/components/table/src/table.type.mjs.map +1 -1
- package/dist/components/table/src/tableColumn.d.ts +2 -2
- package/dist/components/table/src/tableColumn.mjs +1 -1
- package/dist/components/table/src/tableColumn.mjs.map +1 -1
- package/dist/components/table/src/tableColumnSettingDialog.mjs +0 -4
- package/dist/components/table/src/tableColumnSettingDialog.mjs.map +1 -1
- package/dist/components/table/src/useTable.mjs +5 -1
- package/dist/components/table/src/useTable.mjs.map +1 -1
- package/dist/components/table/utils/table.d.ts +18 -15
- package/dist/components/table/utils/table.mjs +18 -15
- package/dist/components/table/utils/table.mjs.map +1 -1
- package/dist/components/tree/index.d.ts +3 -3
- package/dist/components/tree/index.mjs.map +1 -1
- package/dist/components/tree/src/tree.props.d.ts +2 -2
- package/dist/components/tree/src/tree.type.d.ts +2 -2
- package/dist/components/treeSelect/index.d.ts +3 -3
- package/dist/components/treeSelect/index.mjs.map +1 -1
- package/dist/components/treeSelect/src/treeSelect.d.ts +11 -11
- package/dist/components/upload/index.d.ts +3 -3
- package/dist/components/upload/index.mjs.map +1 -1
- package/dist/components/upload/utils/upload.d.ts +15 -10
- package/dist/components/upload/utils/upload.mjs +15 -10
- package/dist/components/upload/utils/upload.mjs.map +1 -1
- package/dist/components/uploadImage/index.d.ts +3 -3
- package/dist/components/uploadImage/index.mjs.map +1 -1
- package/dist/components/uploadImages/index.d.ts +3 -3
- package/dist/components/uploadImages/index.mjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.global.min.js +4 -4
- package/dist/index.global.min.js.map +1 -1
- package/dist/internal/props.d.ts +3 -3
- package/dist/internal/props.mjs.map +1 -1
- package/dist/utils/async/index.d.ts +4 -4
- package/dist/utils/async/index.mjs +9 -9
- package/dist/utils/async/index.mjs.map +1 -1
- package/dist/utils/date/index.d.ts +8 -8
- package/dist/utils/date/index.mjs +16 -16
- package/dist/utils/date/index.mjs.map +1 -1
- package/dist/utils/dom/index.d.ts +1 -1
- package/dist/utils/dom/index.mjs +4 -4
- package/dist/utils/dom/index.mjs.map +1 -1
- package/dist/utils/object/index.d.ts +10 -10
- package/dist/utils/object/index.mjs +6 -6
- package/dist/utils/object/index.mjs.map +1 -1
- package/dist/utils/string/index.d.ts +4 -4
- package/dist/utils/string/index.mjs +14 -40
- package/dist/utils/string/index.mjs.map +1 -1
- package/dist/utils/vue/emits.d.ts +8 -8
- package/dist/utils/vue/emits.mjs +7 -7
- package/dist/utils/vue/emits.mjs.map +1 -1
- package/dist/utils/vue/expose.d.ts +3 -3
- package/dist/utils/vue/expose.mjs +3 -3
- package/dist/utils/vue/expose.mjs.map +1 -1
- package/dist/utils/vue/func.d.ts +2 -2
- package/dist/utils/vue/func.mjs +2 -2
- package/dist/utils/vue/func.mjs.map +1 -1
- package/dist/utils/vue/install.d.ts +9 -9
- package/dist/utils/vue/install.mjs +24 -24
- package/dist/utils/vue/install.mjs.map +1 -1
- package/dist/utils/vue/props.d.ts +4 -4
- package/dist/utils/vue/props.mjs +5 -5
- package/dist/utils/vue/props.mjs.map +1 -1
- package/dist/utils/vue/render.d.ts +1 -1
- package/dist/utils/vue/render.mjs +2 -2
- package/dist/utils/vue/render.mjs.map +1 -1
- package/dist/utils/vue/slots.d.ts +4 -4
- package/dist/utils/vue/slots.mjs.map +1 -1
- package/dist/utils/vue/with.d.ts +1 -1
- package/dist/utils/vue/with.mjs +1 -1
- package/dist/utils/vue/with.mjs.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.mjs +1 -1
- package/dist/version.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -6,7 +6,7 @@ import type { faIconProps } from "./src/icon";
|
|
|
6
6
|
export declare const FaIcon: TSXWithInstall<typeof Icon>;
|
|
7
7
|
export default FaIcon;
|
|
8
8
|
export { faIconProps } from "./src/icon";
|
|
9
|
-
/** FaIcon
|
|
9
|
+
/** FaIcon 暴露的组件实例类型 */
|
|
10
10
|
export type FaIconInstance = InstanceType<typeof Icon>;
|
|
11
|
-
/** FaIcon 的完整 Props
|
|
11
|
+
/** FaIcon 的完整 Props 类型 */
|
|
12
12
|
export type FaIconProps = ExtractPropTypes<typeof faIconProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["Icon"],"sources":["../../../src/components/icon/index.ts"],"sourcesContent":["import { withInstall } from \"../../utils\";\nimport Icon from \"./src/icon\";\nimport type { ExtractPropTypes } from \"vue\";\nimport type { TSXWithInstall } from \"../../utils\";\nimport type { faIconProps } from \"./src/icon\";\n\n/** 按名称或组件渲染图标的统一图标组件。 */\nexport const FaIcon: TSXWithInstall<typeof Icon> = withInstall(Icon);\nexport default FaIcon;\n\nexport { faIconProps } from \"./src/icon\";\n\n/** FaIcon
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["Icon"],"sources":["../../../src/components/icon/index.ts"],"sourcesContent":["import { withInstall } from \"../../utils\";\nimport Icon from \"./src/icon\";\nimport type { ExtractPropTypes } from \"vue\";\nimport type { TSXWithInstall } from \"../../utils\";\nimport type { faIconProps } from \"./src/icon\";\n\n/** 按名称或组件渲染图标的统一图标组件。 */\nexport const FaIcon: TSXWithInstall<typeof Icon> = withInstall(Icon);\nexport default FaIcon;\n\nexport { faIconProps } from \"./src/icon\";\n\n/** FaIcon 暴露的组件实例类型 */\nexport type FaIconInstance = InstanceType<typeof Icon>;\n\n/** FaIcon 的完整 Props 类型 */\nexport type FaIconProps = ExtractPropTypes<typeof faIconProps>;\n"],"mappings":";;;;AAOA,MAAa,SAAsC,YAAYA,YAAI"}
|
|
@@ -3,5 +3,5 @@ import type { TSXWithInstall } from "../../utils";
|
|
|
3
3
|
/** 提供图标检索与选择能力的选择器组件。 */
|
|
4
4
|
export declare const FaIconSelector: TSXWithInstall<typeof IconSelector>;
|
|
5
5
|
export default FaIconSelector;
|
|
6
|
-
/** FaIconSelector
|
|
6
|
+
/** FaIconSelector 暴露的组件实例类型 */
|
|
7
7
|
export type FaIconSelectorInstance = InstanceType<typeof IconSelector>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["IconSelector"],"sources":["../../../src/components/iconSelector/index.ts"],"sourcesContent":["import { withInstall } from \"../../utils\";\nimport IconSelector from \"./src/iconSelector\";\nimport type { TSXWithInstall } from \"../../utils\";\n\n/** 提供图标检索与选择能力的选择器组件。 */\nexport const FaIconSelector: TSXWithInstall<typeof IconSelector> = withInstall(IconSelector);\nexport default FaIconSelector;\n\n/** FaIconSelector
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["IconSelector"],"sources":["../../../src/components/iconSelector/index.ts"],"sourcesContent":["import { withInstall } from \"../../utils\";\nimport IconSelector from \"./src/iconSelector\";\nimport type { TSXWithInstall } from \"../../utils\";\n\n/** 提供图标检索与选择能力的选择器组件。 */\nexport const FaIconSelector: TSXWithInstall<typeof IconSelector> = withInstall(IconSelector);\nexport default FaIconSelector;\n\n/** FaIconSelector 暴露的组件实例类型 */\nexport type FaIconSelectorInstance = InstanceType<typeof IconSelector>;\n"],"mappings":";;;;AAKA,MAAa,iBAAsD,YAAYA,oBAAY"}
|
|
@@ -6,7 +6,7 @@ export declare const FaImage: TSXWithInstall<typeof Image>;
|
|
|
6
6
|
export default FaImage;
|
|
7
7
|
export { faImageEmits, faImageProps };
|
|
8
8
|
export type { FaImageSlots } from "./src/image";
|
|
9
|
-
/** FaImage
|
|
9
|
+
/** FaImage 暴露的组件实例类型 */
|
|
10
10
|
export type FaImageInstance = InstanceType<typeof Image>;
|
|
11
|
-
/** FaImage 的完整 Props
|
|
11
|
+
/** FaImage 的完整 Props 类型 */
|
|
12
12
|
export type FaImageProps = ExtractPropTypes<typeof faImageProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["Image"],"sources":["../../../src/components/image/index.ts"],"sourcesContent":["import { withInstall } from \"../../utils\";\nimport Image, { faImageEmits, faImageProps } from \"./src/image\";\nimport type { ExtractPropTypes } from \"vue\";\nimport type { TSXWithInstall } from \"../../utils\";\n\n/** 支持占位、失败回退和地址处理的图片组件。 */\nexport const FaImage: TSXWithInstall<typeof Image> = withInstall(Image);\nexport default FaImage;\n\nexport { faImageEmits, faImageProps };\nexport type { FaImageSlots } from \"./src/image\";\n\n/** FaImage
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["Image"],"sources":["../../../src/components/image/index.ts"],"sourcesContent":["import { withInstall } from \"../../utils\";\nimport Image, { faImageEmits, faImageProps } from \"./src/image\";\nimport type { ExtractPropTypes } from \"vue\";\nimport type { TSXWithInstall } from \"../../utils\";\n\n/** 支持占位、失败回退和地址处理的图片组件。 */\nexport const FaImage: TSXWithInstall<typeof Image> = withInstall(Image);\nexport default FaImage;\n\nexport { faImageEmits, faImageProps };\nexport type { FaImageSlots } from \"./src/image\";\n\n/** FaImage 暴露的组件实例类型 */\nexport type FaImageInstance = InstanceType<typeof Image>;\n\n/** FaImage 的完整 Props 类型 */\nexport type FaImageProps = ExtractPropTypes<typeof faImageProps>;\n"],"mappings":";;;;AAMA,MAAa,UAAwC,YAAYA,aAAK"}
|
|
@@ -247,9 +247,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
247
247
|
__epPropKey: true;
|
|
248
248
|
};
|
|
249
249
|
}>> & Readonly<{
|
|
250
|
-
onClose?: (() => any) | undefined;
|
|
251
250
|
onError?: ((evt: Event) => any) | undefined;
|
|
252
251
|
onSwitch?: ((val: number) => any) | undefined;
|
|
252
|
+
onClose?: (() => any) | undefined;
|
|
253
253
|
onLoad?: ((evt: Event) => any) | undefined;
|
|
254
254
|
onShow?: (() => any) | undefined;
|
|
255
255
|
}>, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.mjs","names":["viewer-error"],"sources":["../../../../src/components/image/src/image.tsx"],"sourcesContent":["import { computed, defineComponent, reactive, shallowRef, watch } from \"vue\";\nimport { Picture as ElIconPicture } from \"@element-plus/icons-vue\";\nimport { ElIcon, ElImage, imageEmits, imageProps } from \"element-plus\";\nimport { makeSlots, useEmits, useExpose, useProps, useRender } from \"../../../utils\";\nimport type { ImageInstance, ImageViewerAction } from \"element-plus\";\n\n/** FaImage 的运行时 Props 定义 */\nexport const faImageProps = {\n\t// eslint-disable-next-line @typescript-eslint/no-deprecated -- Element Plus 2.x 尚未提供可替代的公开运行时 props 定义。\n\t...imageProps,\n\t/** when enabling preview, use this flag to control whether clicking on backdrop can exit preview mode. */\n\thideOnClickModal: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/** whether to append image-viewer to body. A nested parent element attribute transform should have this attribute set to `true`. */\n\tpreviewTeleported: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/** whether to use lazy load. */\n\tlazy: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/** Base64图片 */\n\tbase64: Boolean,\n\t/** 原图 */\n\toriginal: Boolean,\n\t/** 标准 */\n\tnormal: Boolean,\n\t/** 小图 */\n\tsmall: Boolean,\n\t/** 缩略图 */\n\tthumb: Boolean,\n\t/** 是否可以预览图片 */\n\tpreview: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n};\n\n/** FaImage 的运行时事件定义。 */\nexport const faImageEmits = {\n\t...imageEmits,\n};\n\n/** FaImage 的插槽参数 */\nexport interface FaImageSlots extends Record<string, unknown> {\n\t/** 当图像尚未加载时,自定义的占位符内容 */\n\tplaceholder: never;\n\t/** 自定义图像加载失败的内容 */\n\terror: never;\n\t/** 当图像预览时自定义内容 */\n\tviewer: { src?: string };\n\t/** 图片预览进度内容 */\n\tprogress: { activeIndex: number; total: number };\n\t/** 图片预览工具栏内容 */\n\ttoolbar: {\n\t\tactions: (action: ImageViewerAction, options?: Record<string, never>) => void;\n\t\tprev: () => void;\n\t\tnext: () => void;\n\t\treset: () => void;\n\t\tactiveIndex: number;\n\t\tsetActiveItem: (index: number) => void;\n\t};\n\t/** 图片预览加载失败内容 */\n\t\"viewer-error\": { activeIndex: number; src: string };\n}\n\nexport default defineComponent({\n\tname: \"FaImage\",\n\tprops: faImageProps,\n\temits: faImageEmits,\n\tslots: makeSlots<FaImageSlots>(),\n\tsetup(props, { slots, emit, expose }) {\n\t\tconst imageRef = shallowRef<ImageInstance | null>(null);\n\n\t\tconst state = reactive({\n\t\t\t/** 图片加载错误 */\n\t\t\tloadError: false,\n\t\t\tsrc: computed(() => {\n\t\t\t\tif (!props.src) return undefined;\n\t\t\t\tif (props.base64) {\n\t\t\t\t\treturn `data:image/png;base64,${props.src}`;\n\t\t\t\t} else if (props.original || state.loadError) {\n\t\t\t\t\treturn props.src;\n\t\t\t\t} else if (props.normal) {\n\t\t\t\t\treturn `${props.src}@!normal`;\n\t\t\t\t} else if (props.small) {\n\t\t\t\t\treturn `${props.src}@!small`;\n\t\t\t\t} else if (props.thumb) {\n\t\t\t\t\treturn `${props.src}@!thumb`;\n\t\t\t\t} else {\n\t\t\t\t\t// 默认使用缩略图\n\t\t\t\t\treturn `${props.src}@!thumb`;\n\t\t\t\t}\n\t\t\t}),\n\t\t\tpreviewList: computed(() => (props.preview && props.src ? [props.base64 ? `data:image/png;base64,${props.src}` : props.src] : [])),\n\t\t});\n\t\twatch(\n\t\t\t() => props.src,\n\t\t\t() => {\n\t\t\t\tstate.loadError = false;\n\t\t\t}\n\t\t);\n\n\t\t// eslint-disable-next-line @typescript-eslint/no-deprecated -- 透传范围必须与继承的 Element Plus 2.x 运行时 props 保持一致。\n\t\tconst bindProps = useProps(props, imageProps, [\"src\", \"previewSrcList\"]);\n\t\tconst bindEmits = useEmits(imageEmits, emit, [\"error\"]);\n\n\t\tuseRender(() => (\n\t\t\t<ElImage\n\t\t\t\t{...bindProps.value}\n\t\t\t\t{...bindEmits.value}\n\t\t\t\tclass=\"fa-image\"\n\t\t\t\tref={imageRef}\n\t\t\t\tsrc={state.src}\n\t\t\t\tpreviewSrcList={state.previewList}\n\t\t\t\tonError={(event) => {\n\t\t\t\t\tstate.loadError ||= true;\n\t\t\t\t\temit(\"error\", event);\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{{\n\t\t\t\t\terror: () =>\n\t\t\t\t\t\tslots.error ? (\n\t\t\t\t\t\t\tslots.error()\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<div class=\"fa-image__error-image\">\n\t\t\t\t\t\t\t\t<ElIcon class=\"icon\">\n\t\t\t\t\t\t\t\t\t<ElIconPicture />\n\t\t\t\t\t\t\t\t</ElIcon>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t),\n\t\t\t\t\t...(slots.placeholder && { placeholder: () => slots.placeholder?.() ?? [] }),\n\t\t\t\t\t...(slots.viewer && { viewer: () => slots.viewer?.({ src: state.src }) ?? [] }),\n\t\t\t\t\t...(slots.progress && {\n\t\t\t\t\t\tprogress: (scope: { activeIndex: number; total: number }) => slots.progress?.(scope) ?? [],\n\t\t\t\t\t}),\n\t\t\t\t\t...(slots.toolbar && {\n\t\t\t\t\t\ttoolbar: (scope: FaImageSlots[\"toolbar\"]) => slots.toolbar?.(scope) ?? [],\n\t\t\t\t\t}),\n\t\t\t\t\t...(slots[\"viewer-error\"] && {\n\t\t\t\t\t\t\"viewer-error\": (scope: { activeIndex: number; src: string }) => slots[\"viewer-error\"]?.(scope) ?? [],\n\t\t\t\t\t}),\n\t\t\t\t}}\n\t\t\t</ElImage>\n\t\t));\n\n\t\treturn useExpose(expose, {\n\t\t\t/** 手动打开图片预览。 */\n\t\t\tshowPreview: computed(() => imageRef.value?.showPreview),\n\t\t});\n\t},\n});\n"],"mappings":";;;;;;;;;;AAOA,MAAa,eAAe;CAE3B,GAAG;;CAEH,kBAAkB;EACjB,MAAM;EACN,SAAS;CACV;;CAEA,mBAAmB;EAClB,MAAM;EACN,SAAS;CACV;;CAEA,MAAM;EACL,MAAM;EACN,SAAS;CACV;;CAEA,QAAQ;;CAER,UAAU;;CAEV,QAAQ;;CAER,OAAO;;CAEP,OAAO;;CAEP,SAAS;EACR,MAAM;EACN,SAAS;CACV;AACD;;AAGA,MAAa,eAAe,EAC3B,GAAG,WACJ;AAyBA,IAAA,gBAAe,gBAAgB;CAC9B,MAAM;CACN,OAAO;CACP,OAAO;CACP,OAAO,UAAwB;CAC/B,MAAM,OAAO,EAAE,OAAO,MAAM,UAAU;EACrC,MAAM,WAAW,WAAiC,IAAI;EAEtD,MAAM,QAAQ,SAAS;;GAEtB,WAAW;GACX,KAAK,eAAe;IACnB,IAAI,CAAC,MAAM,KAAK,OAAO,KAAA;IACvB,IAAI,MAAM,QACT,OAAO,yBAAyB,MAAM;SAChC,IAAI,MAAM,YAAY,MAAM,WAClC,OAAO,MAAM;SACP,IAAI,MAAM,QAChB,OAAO,GAAG,MAAM,IAAG;SACb,IAAI,MAAM,OAChB,OAAO,GAAG,MAAM,IAAG;SACb,IAAI,MAAM,OAChB,OAAO,GAAG,MAAM,IAAG;SAGnB,OAAO,GAAG,MAAM,IAAG;GAErB,CAAC;GACD,aAAa,eAAgB,MAAM,WAAW,MAAM,MAAM,CAAC,MAAM,SAAS,yBAAyB,MAAM,QAAQ,MAAM,GAAG,IAAI,CAAA,CAAG;EAClI,CAAC;
|
|
1
|
+
{"version":3,"file":"image.mjs","names":["viewer-error"],"sources":["../../../../src/components/image/src/image.tsx"],"sourcesContent":["import { computed, defineComponent, reactive, shallowRef, watch } from \"vue\";\nimport { Picture as ElIconPicture } from \"@element-plus/icons-vue\";\nimport { ElIcon, ElImage, imageEmits, imageProps } from \"element-plus\";\nimport { makeSlots, useEmits, useExpose, useProps, useRender } from \"../../../utils\";\nimport type { ImageInstance, ImageViewerAction } from \"element-plus\";\n\n/** FaImage 的运行时 Props 定义 */\nexport const faImageProps = {\n\t// eslint-disable-next-line @typescript-eslint/no-deprecated -- Element Plus 2.x 尚未提供可替代的公开运行时 props 定义。\n\t...imageProps,\n\t/** when enabling preview, use this flag to control whether clicking on backdrop can exit preview mode. */\n\thideOnClickModal: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/** whether to append image-viewer to body. A nested parent element attribute transform should have this attribute set to `true`. */\n\tpreviewTeleported: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/** whether to use lazy load. */\n\tlazy: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n\t/** Base64图片 */\n\tbase64: Boolean,\n\t/** 原图 */\n\toriginal: Boolean,\n\t/** 标准 */\n\tnormal: Boolean,\n\t/** 小图 */\n\tsmall: Boolean,\n\t/** 缩略图 */\n\tthumb: Boolean,\n\t/** 是否可以预览图片 */\n\tpreview: {\n\t\ttype: Boolean,\n\t\tdefault: true,\n\t},\n};\n\n/** FaImage 的运行时事件定义。 */\nexport const faImageEmits = {\n\t...imageEmits,\n};\n\n/** FaImage 的插槽参数 */\nexport interface FaImageSlots extends Record<string, unknown> {\n\t/** 当图像尚未加载时,自定义的占位符内容 */\n\tplaceholder: never;\n\t/** 自定义图像加载失败的内容 */\n\terror: never;\n\t/** 当图像预览时自定义内容 */\n\tviewer: { src?: string };\n\t/** 图片预览进度内容 */\n\tprogress: { activeIndex: number; total: number };\n\t/** 图片预览工具栏内容 */\n\ttoolbar: {\n\t\tactions: (action: ImageViewerAction, options?: Record<string, never>) => void;\n\t\tprev: () => void;\n\t\tnext: () => void;\n\t\treset: () => void;\n\t\tactiveIndex: number;\n\t\tsetActiveItem: (index: number) => void;\n\t};\n\t/** 图片预览加载失败内容 */\n\t\"viewer-error\": { activeIndex: number; src: string };\n}\n\nexport default defineComponent({\n\tname: \"FaImage\",\n\tprops: faImageProps,\n\temits: faImageEmits,\n\tslots: makeSlots<FaImageSlots>(),\n\tsetup(props, { slots, emit, expose }) {\n\t\tconst imageRef = shallowRef<ImageInstance | null>(null);\n\n\t\tconst state = reactive({\n\t\t\t/** 图片加载错误 */\n\t\t\tloadError: false,\n\t\t\tsrc: computed(() => {\n\t\t\t\tif (!props.src) return undefined;\n\t\t\t\tif (props.base64) {\n\t\t\t\t\treturn `data:image/png;base64,${props.src}`;\n\t\t\t\t} else if (props.original || state.loadError) {\n\t\t\t\t\treturn props.src;\n\t\t\t\t} else if (props.normal) {\n\t\t\t\t\treturn `${props.src}@!normal`;\n\t\t\t\t} else if (props.small) {\n\t\t\t\t\treturn `${props.src}@!small`;\n\t\t\t\t} else if (props.thumb) {\n\t\t\t\t\treturn `${props.src}@!thumb`;\n\t\t\t\t} else {\n\t\t\t\t\t// 默认使用缩略图\n\t\t\t\t\treturn `${props.src}@!thumb`;\n\t\t\t\t}\n\t\t\t}),\n\t\t\tpreviewList: computed(() => (props.preview && props.src ? [props.base64 ? `data:image/png;base64,${props.src}` : props.src] : [])),\n\t\t});\n\n\t\twatch(\n\t\t\t() => props.src,\n\t\t\t() => {\n\t\t\t\tstate.loadError = false;\n\t\t\t}\n\t\t);\n\n\t\t// eslint-disable-next-line @typescript-eslint/no-deprecated -- 透传范围必须与继承的 Element Plus 2.x 运行时 props 保持一致。\n\t\tconst bindProps = useProps(props, imageProps, [\"src\", \"previewSrcList\"]);\n\t\tconst bindEmits = useEmits(imageEmits, emit, [\"error\"]);\n\n\t\tuseRender(() => (\n\t\t\t<ElImage\n\t\t\t\t{...bindProps.value}\n\t\t\t\t{...bindEmits.value}\n\t\t\t\tclass=\"fa-image\"\n\t\t\t\tref={imageRef}\n\t\t\t\tsrc={state.src}\n\t\t\t\tpreviewSrcList={state.previewList}\n\t\t\t\tonError={(event) => {\n\t\t\t\t\tstate.loadError ||= true;\n\t\t\t\t\temit(\"error\", event);\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t{{\n\t\t\t\t\terror: () =>\n\t\t\t\t\t\tslots.error ? (\n\t\t\t\t\t\t\tslots.error()\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<div class=\"fa-image__error-image\">\n\t\t\t\t\t\t\t\t<ElIcon class=\"icon\">\n\t\t\t\t\t\t\t\t\t<ElIconPicture />\n\t\t\t\t\t\t\t\t</ElIcon>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t),\n\t\t\t\t\t...(slots.placeholder && { placeholder: () => slots.placeholder?.() ?? [] }),\n\t\t\t\t\t...(slots.viewer && { viewer: () => slots.viewer?.({ src: state.src }) ?? [] }),\n\t\t\t\t\t...(slots.progress && {\n\t\t\t\t\t\tprogress: (scope: { activeIndex: number; total: number }) => slots.progress?.(scope) ?? [],\n\t\t\t\t\t}),\n\t\t\t\t\t...(slots.toolbar && {\n\t\t\t\t\t\ttoolbar: (scope: FaImageSlots[\"toolbar\"]) => slots.toolbar?.(scope) ?? [],\n\t\t\t\t\t}),\n\t\t\t\t\t...(slots[\"viewer-error\"] && {\n\t\t\t\t\t\t\"viewer-error\": (scope: { activeIndex: number; src: string }) => slots[\"viewer-error\"]?.(scope) ?? [],\n\t\t\t\t\t}),\n\t\t\t\t}}\n\t\t\t</ElImage>\n\t\t));\n\n\t\treturn useExpose(expose, {\n\t\t\t/** 手动打开图片预览。 */\n\t\t\tshowPreview: computed(() => imageRef.value?.showPreview),\n\t\t});\n\t},\n});\n"],"mappings":";;;;;;;;;;AAOA,MAAa,eAAe;CAE3B,GAAG;;CAEH,kBAAkB;EACjB,MAAM;EACN,SAAS;CACV;;CAEA,mBAAmB;EAClB,MAAM;EACN,SAAS;CACV;;CAEA,MAAM;EACL,MAAM;EACN,SAAS;CACV;;CAEA,QAAQ;;CAER,UAAU;;CAEV,QAAQ;;CAER,OAAO;;CAEP,OAAO;;CAEP,SAAS;EACR,MAAM;EACN,SAAS;CACV;AACD;;AAGA,MAAa,eAAe,EAC3B,GAAG,WACJ;AAyBA,IAAA,gBAAe,gBAAgB;CAC9B,MAAM;CACN,OAAO;CACP,OAAO;CACP,OAAO,UAAwB;CAC/B,MAAM,OAAO,EAAE,OAAO,MAAM,UAAU;EACrC,MAAM,WAAW,WAAiC,IAAI;EAEtD,MAAM,QAAQ,SAAS;;GAEtB,WAAW;GACX,KAAK,eAAe;IACnB,IAAI,CAAC,MAAM,KAAK,OAAO,KAAA;IACvB,IAAI,MAAM,QACT,OAAO,yBAAyB,MAAM;SAChC,IAAI,MAAM,YAAY,MAAM,WAClC,OAAO,MAAM;SACP,IAAI,MAAM,QAChB,OAAO,GAAG,MAAM,IAAG;SACb,IAAI,MAAM,OAChB,OAAO,GAAG,MAAM,IAAG;SACb,IAAI,MAAM,OAChB,OAAO,GAAG,MAAM,IAAG;SAGnB,OAAO,GAAG,MAAM,IAAG;GAErB,CAAC;GACD,aAAa,eAAgB,MAAM,WAAW,MAAM,MAAM,CAAC,MAAM,SAAS,yBAAyB,MAAM,QAAQ,MAAM,GAAG,IAAI,CAAA,CAAG;EAClI,CAAC;EAED,YACO,MAAM,WACN;GACL,MAAM,YAAY;EACnB,CACD;EAGA,MAAM,YAAY,SAAS,OAAO,YAAY,CAAC,OAAO,gBAAgB,CAAC;EACvE,MAAM,YAAY,SAAS,YAAY,MAAM,CAAC,OAAO,CAAC;EAEtD,gBAAU,YAAA,SAAA,WAEJ,UAAU,OACV,UAAU,OAAK;GAAA,SAAA;GAAA,OAEd;GAAQ,OACR,MAAM;GAAG,kBACE,MAAM;GAAW,YACvB,UAAU;IACnB,MAAM,cAAc;IACpB,KAAK,SAAS,KAAK;GACpB;EAAC,CAAA,GAAA;GAGA,aACC,MAAM,QACL,MAAM,MAAM,IAAC,YAAA,OAAA,EAAA,SAAA,wBAAA,GAAA,CAAA,YAAA,QAAA,EAAA,SAAA,OAAA,GAAA,EAAA,eAAA,CAAA,YAAA,SAAA,MAAA,IAAA,CAAA,EAAA,CAAA,CAAA,CAAA;GAQf,GAAI,MAAM,eAAe,EAAE,mBAAmB,MAAM,cAAc,KAAK,CAAA,EAAG;GAC1E,GAAI,MAAM,UAAU,EAAE,cAAc,MAAM,SAAS,EAAE,KAAK,MAAM,IAAI,CAAC,KAAK,CAAA,EAAG;GAC7E,GAAI,MAAM,YAAY,EACrB,WAAW,UAAkD,MAAM,WAAW,KAAK,KAAK,CAAA,EACzF;GACA,GAAI,MAAM,WAAW,EACpB,UAAU,UAAmC,MAAM,UAAU,KAAK,KAAK,CAAA,EACxE;GACA,GAAI,MAAM,mBAAmB,EAC5B,iBAAiB,UAAgD,MAAM,eAAe,GAAG,KAAK,KAAK,CAAA,EACpG;EAAE,CAAA,CAGJ;EAED,OAAO,UAAU,QAAQ;;AAExB,aAAa,eAAe,SAAS,OAAO,WAAW,EACxD,CAAC;CACF;AACD,CAAC"}
|
|
@@ -6,9 +6,9 @@ export declare const FaInputDialogPage: TSXWithInstall<typeof InputDialogPage>;
|
|
|
6
6
|
export default FaInputDialogPage;
|
|
7
7
|
export { faInputDialogPageProps, faInputDialogPageEmits };
|
|
8
8
|
export type { FaInputDialogPageSlots } from "./src/inputDialogPage";
|
|
9
|
-
/** FaInputDialogPage
|
|
9
|
+
/** FaInputDialogPage 暴露的组件实例类型 */
|
|
10
10
|
export type FaInputDialogPageInstance = InstanceType<typeof InputDialogPage>;
|
|
11
|
-
/** FaInputDialogPage 的完整 Props
|
|
11
|
+
/** FaInputDialogPage 的完整 Props 类型 */
|
|
12
12
|
export type FaInputDialogPageProps = ExtractPropTypes<typeof faInputDialogPageProps>;
|
|
13
|
-
/** FaInputDialogPage 的 Emits
|
|
13
|
+
/** FaInputDialogPage 的 Emits 类型 */
|
|
14
14
|
export type FaInputDialogPageEmits = typeof faInputDialogPageEmits;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["InputDialogPage"],"sources":["../../../src/components/inputDialogPage/index.ts"],"sourcesContent":["import { withInstall } from \"../../utils\";\nimport InputDialogPage, { faInputDialogPageEmits, faInputDialogPageProps } from \"./src/inputDialogPage\";\nimport type { ExtractPropTypes } from \"vue\";\nimport type { TSXWithInstall } from \"../../utils\";\n\n/** 在对话框中提供分页选择与输入交互的组件。 */\nexport const FaInputDialogPage: TSXWithInstall<typeof InputDialogPage> = withInstall(InputDialogPage);\nexport default FaInputDialogPage;\n\nexport { faInputDialogPageProps, faInputDialogPageEmits };\nexport type { FaInputDialogPageSlots } from \"./src/inputDialogPage\";\n\n/** FaInputDialogPage
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["InputDialogPage"],"sources":["../../../src/components/inputDialogPage/index.ts"],"sourcesContent":["import { withInstall } from \"../../utils\";\nimport InputDialogPage, { faInputDialogPageEmits, faInputDialogPageProps } from \"./src/inputDialogPage\";\nimport type { ExtractPropTypes } from \"vue\";\nimport type { TSXWithInstall } from \"../../utils\";\n\n/** 在对话框中提供分页选择与输入交互的组件。 */\nexport const FaInputDialogPage: TSXWithInstall<typeof InputDialogPage> = withInstall(InputDialogPage);\nexport default FaInputDialogPage;\n\nexport { faInputDialogPageProps, faInputDialogPageEmits };\nexport type { FaInputDialogPageSlots } from \"./src/inputDialogPage\";\n\n/** FaInputDialogPage 暴露的组件实例类型 */\nexport type FaInputDialogPageInstance = InstanceType<typeof InputDialogPage>;\n\n/** FaInputDialogPage 的完整 Props 类型 */\nexport type FaInputDialogPageProps = ExtractPropTypes<typeof faInputDialogPageProps>;\n\n/** FaInputDialogPage 的 Emits 类型 */\nexport type FaInputDialogPageEmits = typeof faInputDialogPageEmits;\n"],"mappings":";;;;AAMA,MAAa,oBAA4D,YAAYA,uBAAe"}
|
|
@@ -11,7 +11,7 @@ export declare const FaLayoutGridItem: TSXWithInstall<typeof LayoutGridItem>;
|
|
|
11
11
|
export type * from "./src/layoutGrid.type";
|
|
12
12
|
export type { FaLayoutGridSlots } from "./src/layoutGrid";
|
|
13
13
|
export type { FaLayoutGridItemSlots } from "./src/layoutGridItem";
|
|
14
|
-
/** FaLayoutGrid
|
|
14
|
+
/** FaLayoutGrid 暴露的组件实例类型 */
|
|
15
15
|
export type FaLayoutGridInstance = InstanceType<typeof LayoutGrid>;
|
|
16
|
-
/** FaLayoutGridItem
|
|
16
|
+
/** FaLayoutGridItem 暴露的组件实例类型 */
|
|
17
17
|
export type FaLayoutGridItemInstance = InstanceType<typeof LayoutGridItem>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["LayoutGrid","LayoutGridItem"],"sources":["../../../src/components/layoutGrid/index.ts"],"sourcesContent":["import { withInstall, withNoopInstall } from \"../../utils\";\nimport LayoutGrid from \"./src/layoutGrid\";\nimport LayoutGridItem from \"./src/layoutGridItem\";\nimport type { TSXWithInstall } from \"../../utils\";\n\n/** 根据断点和容器宽度排列内容的响应式布局组件。 */\nexport const FaLayoutGrid: TSXWithInstall<typeof LayoutGrid> & { LayoutGridItem: typeof LayoutGridItem } = withInstall(LayoutGrid, {\n\tLayoutGridItem,\n});\nexport default FaLayoutGrid;\n\n/** 可独立注册的响应式布局项组件。 */\nexport const FaLayoutGridItem: TSXWithInstall<typeof LayoutGridItem> = withNoopInstall(LayoutGridItem);\n\nexport type * from \"./src/layoutGrid.type\";\nexport type { FaLayoutGridSlots } from \"./src/layoutGrid\";\nexport type { FaLayoutGridItemSlots } from \"./src/layoutGridItem\";\n\n/** FaLayoutGrid
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["LayoutGrid","LayoutGridItem"],"sources":["../../../src/components/layoutGrid/index.ts"],"sourcesContent":["import { withInstall, withNoopInstall } from \"../../utils\";\nimport LayoutGrid from \"./src/layoutGrid\";\nimport LayoutGridItem from \"./src/layoutGridItem\";\nimport type { TSXWithInstall } from \"../../utils\";\n\n/** 根据断点和容器宽度排列内容的响应式布局组件。 */\nexport const FaLayoutGrid: TSXWithInstall<typeof LayoutGrid> & { LayoutGridItem: typeof LayoutGridItem } = withInstall(LayoutGrid, {\n\tLayoutGridItem,\n});\nexport default FaLayoutGrid;\n\n/** 可独立注册的响应式布局项组件。 */\nexport const FaLayoutGridItem: TSXWithInstall<typeof LayoutGridItem> = withNoopInstall(LayoutGridItem);\n\nexport type * from \"./src/layoutGrid.type\";\nexport type { FaLayoutGridSlots } from \"./src/layoutGrid\";\nexport type { FaLayoutGridItemSlots } from \"./src/layoutGridItem\";\n\n/** FaLayoutGrid 暴露的组件实例类型 */\nexport type FaLayoutGridInstance = InstanceType<typeof LayoutGrid>;\n\n/** FaLayoutGridItem 暴露的组件实例类型 */\nexport type FaLayoutGridItemInstance = InstanceType<typeof LayoutGridItem>;\n"],"mappings":";;;;;AAMA,MAAa,eAA8F,YAAYA,oBAAY,EAClI,gBAAA,uBACD,CAAC;;AAID,MAAa,mBAA0D,gBAAgBC,sBAAc"}
|
|
@@ -13,11 +13,11 @@ export declare const FaSelectOption: TSXWithInstall<typeof SelectOption>;
|
|
|
13
13
|
export { faSelectProps };
|
|
14
14
|
export type { FaSelectSlots } from "./src/select";
|
|
15
15
|
export type * from "./src/select.type";
|
|
16
|
-
/** FaSelect
|
|
16
|
+
/** FaSelect 暴露的组件实例类型 */
|
|
17
17
|
export type FaSelectInstance = InstanceType<typeof Select>;
|
|
18
|
-
/** FaSelect 的完整 Props
|
|
18
|
+
/** FaSelect 的完整 Props 类型 */
|
|
19
19
|
export type FaSelectProps = ExtractPropTypes<typeof faSelectProps>;
|
|
20
|
-
/** FaSelect 的 Emits
|
|
20
|
+
/** FaSelect 的 Emits 类型 */
|
|
21
21
|
export type FaSelectEmits = typeof faSelectEmits;
|
|
22
|
-
/** FaSelectOption
|
|
22
|
+
/** FaSelectOption 暴露的组件实例类型 */
|
|
23
23
|
export type FaSelectOptionInstance = InstanceType<typeof SelectOption>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["Select","SelectOption"],"sources":["../../../src/components/select/index.ts"],"sourcesContent":["import { withInstall, withNoopInstall } from \"../../utils\";\nimport Select, { faSelectProps } from \"./src/select\";\nimport SelectOption from \"./src/selectOption\";\nimport type { ExtractPropTypes } from \"vue\";\nimport type { TSXWithInstall } from \"../../utils\";\nimport type { faSelectEmits } from \"./src/select\";\n\n/** 支持远程数据、分页和自定义选项的选择器组件。 */\nexport const FaSelect: TSXWithInstall<typeof Select> & { SelectOption: typeof SelectOption } = withInstall(Select, {\n\tSelectOption,\n});\nexport default FaSelect;\n\n/** 可独立注册的 FaSelect 选项组件。 */\nexport const FaSelectOption: TSXWithInstall<typeof SelectOption> = withNoopInstall(SelectOption);\n\nexport { faSelectProps };\nexport type { FaSelectSlots } from \"./src/select\";\nexport type * from \"./src/select.type\";\n\n/** FaSelect
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["Select","SelectOption"],"sources":["../../../src/components/select/index.ts"],"sourcesContent":["import { withInstall, withNoopInstall } from \"../../utils\";\nimport Select, { faSelectProps } from \"./src/select\";\nimport SelectOption from \"./src/selectOption\";\nimport type { ExtractPropTypes } from \"vue\";\nimport type { TSXWithInstall } from \"../../utils\";\nimport type { faSelectEmits } from \"./src/select\";\n\n/** 支持远程数据、分页和自定义选项的选择器组件。 */\nexport const FaSelect: TSXWithInstall<typeof Select> & { SelectOption: typeof SelectOption } = withInstall(Select, {\n\tSelectOption,\n});\nexport default FaSelect;\n\n/** 可独立注册的 FaSelect 选项组件。 */\nexport const FaSelectOption: TSXWithInstall<typeof SelectOption> = withNoopInstall(SelectOption);\n\nexport { faSelectProps };\nexport type { FaSelectSlots } from \"./src/select\";\nexport type * from \"./src/select.type\";\n\n/** FaSelect 暴露的组件实例类型 */\nexport type FaSelectInstance = InstanceType<typeof Select>;\n\n/** FaSelect 的完整 Props 类型 */\nexport type FaSelectProps = ExtractPropTypes<typeof faSelectProps>;\n\n/** FaSelect 的 Emits 类型 */\nexport type FaSelectEmits = typeof faSelectEmits;\n\n/** FaSelectOption 暴露的组件实例类型 */\nexport type FaSelectOptionInstance = InstanceType<typeof SelectOption>;\n"],"mappings":";;;;;AAQA,MAAa,WAAkF,YAAYA,gBAAQ,EAClH,cAAA,qBACD,CAAC;;AAID,MAAa,iBAAsD,gBAAgBC,oBAAY"}
|
|
@@ -93,7 +93,7 @@ export declare const faSelectProps: {
|
|
|
93
93
|
autocomplete: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
94
94
|
automaticDropdown: BooleanConstructor;
|
|
95
95
|
size: {
|
|
96
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "" | "default" | "
|
|
96
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "" | "default" | "large" | "small", never>>;
|
|
97
97
|
readonly required: false;
|
|
98
98
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
99
99
|
__epPropKey: true;
|
|
@@ -147,7 +147,7 @@ export declare const faSelectProps: {
|
|
|
147
147
|
};
|
|
148
148
|
tagEffect: {
|
|
149
149
|
default: string;
|
|
150
|
-
type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "
|
|
150
|
+
type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "dark" | "light" | "plain", unknown>>;
|
|
151
151
|
required: false;
|
|
152
152
|
validator: ((val: unknown) => boolean) | undefined;
|
|
153
153
|
__epPropKey: true;
|
|
@@ -156,7 +156,7 @@ export declare const faSelectProps: {
|
|
|
156
156
|
remoteShowSuffix: BooleanConstructor;
|
|
157
157
|
showArrow: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
158
158
|
offset: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
159
|
-
placement: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => "
|
|
159
|
+
placement: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement) | (((new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement)) | null)[], import("element-plus").Placement, unknown, string, boolean>;
|
|
160
160
|
fallbackPlacements: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]) | (((new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[])) | null)[], unknown, unknown, string[], boolean>;
|
|
161
161
|
tabindex: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(StringConstructor | NumberConstructor)[], unknown, unknown, number, boolean>;
|
|
162
162
|
appendTo: {
|
|
@@ -296,7 +296,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
296
296
|
autocomplete: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
297
297
|
automaticDropdown: BooleanConstructor;
|
|
298
298
|
size: {
|
|
299
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "" | "default" | "
|
|
299
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "" | "default" | "large" | "small", never>>;
|
|
300
300
|
readonly required: false;
|
|
301
301
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
302
302
|
__epPropKey: true;
|
|
@@ -350,7 +350,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
350
350
|
};
|
|
351
351
|
tagEffect: {
|
|
352
352
|
default: string;
|
|
353
|
-
type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "
|
|
353
|
+
type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "dark" | "light" | "plain", unknown>>;
|
|
354
354
|
required: false;
|
|
355
355
|
validator: ((val: unknown) => boolean) | undefined;
|
|
356
356
|
__epPropKey: true;
|
|
@@ -359,7 +359,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
359
359
|
remoteShowSuffix: BooleanConstructor;
|
|
360
360
|
showArrow: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
361
361
|
offset: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
362
|
-
placement: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => "
|
|
362
|
+
placement: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement) | (((new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement)) | null)[], import("element-plus").Placement, unknown, string, boolean>;
|
|
363
363
|
fallbackPlacements: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]) | (((new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[])) | null)[], unknown, unknown, string[], boolean>;
|
|
364
364
|
tabindex: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(StringConstructor | NumberConstructor)[], unknown, unknown, number, boolean>;
|
|
365
365
|
appendTo: {
|
|
@@ -489,7 +489,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
489
489
|
autocomplete: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
490
490
|
automaticDropdown: BooleanConstructor;
|
|
491
491
|
size: {
|
|
492
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "" | "default" | "
|
|
492
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "" | "default" | "large" | "small", never>>;
|
|
493
493
|
readonly required: false;
|
|
494
494
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
495
495
|
__epPropKey: true;
|
|
@@ -543,7 +543,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
543
543
|
};
|
|
544
544
|
tagEffect: {
|
|
545
545
|
default: string;
|
|
546
|
-
type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "
|
|
546
|
+
type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "dark" | "light" | "plain", unknown>>;
|
|
547
547
|
required: false;
|
|
548
548
|
validator: ((val: unknown) => boolean) | undefined;
|
|
549
549
|
__epPropKey: true;
|
|
@@ -552,7 +552,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
552
552
|
remoteShowSuffix: BooleanConstructor;
|
|
553
553
|
showArrow: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
554
554
|
offset: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
555
|
-
placement: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => "
|
|
555
|
+
placement: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement) | (((new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement)) | null)[], import("element-plus").Placement, unknown, string, boolean>;
|
|
556
556
|
fallbackPlacements: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]) | (((new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[])) | null)[], unknown, unknown, string[], boolean>;
|
|
557
557
|
tabindex: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(StringConstructor | NumberConstructor)[], unknown, unknown, number, boolean>;
|
|
558
558
|
appendTo: {
|
|
@@ -584,10 +584,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
584
584
|
"onRemove-tag"?: ((val: unknown) => any) | undefined;
|
|
585
585
|
}>, {
|
|
586
586
|
data: ElSelectorOutput<ElSelectorValue, any>[];
|
|
587
|
-
loading: boolean;
|
|
588
587
|
props: SelectComponentProps;
|
|
589
588
|
offset: number;
|
|
590
|
-
placement: import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<(new (...args: any[]) => "
|
|
589
|
+
placement: import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<(new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement) | ((new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement) | null)[], import("element-plus").Placement, unknown>;
|
|
590
|
+
loading: boolean;
|
|
591
591
|
disabled: boolean;
|
|
592
592
|
modelValue: ElSelectorModelValue;
|
|
593
593
|
autocomplete: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/** 选择器支持的单项值类型 */
|
|
2
2
|
export type ElSelectorValue = string | number | boolean | object;
|
|
3
3
|
/** 选择器的单值、多值或空模型。 */
|
|
4
4
|
export type ElSelectorModelValue = ElSelectorValue | ElSelectorValue[] | null | undefined;
|
|
5
|
-
/**
|
|
5
|
+
/** 选择器标准化后的选项数据 */
|
|
6
6
|
export interface ElSelectorOutput<T = ElSelectorValue, Data = any> {
|
|
7
7
|
/**
|
|
8
8
|
* 显示
|
|
@@ -6,9 +6,9 @@ export declare const FaSelectPage: TSXWithInstall<typeof SelectPage>;
|
|
|
6
6
|
export default FaSelectPage;
|
|
7
7
|
export { faSelectPageProps, faSelectPageEmits };
|
|
8
8
|
export type { FaSelectPageSlots } from "./src/selectPage";
|
|
9
|
-
/** FaSelectPage
|
|
9
|
+
/** FaSelectPage 暴露的组件实例类型 */
|
|
10
10
|
export type FaSelectPageInstance = InstanceType<typeof SelectPage>;
|
|
11
|
-
/** FaSelectPage 的完整 Props
|
|
11
|
+
/** FaSelectPage 的完整 Props 类型 */
|
|
12
12
|
export type FaSelectPageProps = ExtractPropTypes<typeof faSelectPageProps>;
|
|
13
|
-
/** FaSelectPage 的 Emits
|
|
13
|
+
/** FaSelectPage 的 Emits 类型 */
|
|
14
14
|
export type FaSelectPageEmits = typeof faSelectPageEmits;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["SelectPage"],"sources":["../../../src/components/selectPage/index.ts"],"sourcesContent":["import { withInstall } from \"../../utils\";\nimport SelectPage, { faSelectPageEmits, faSelectPageProps } from \"./src/selectPage\";\nimport type { ExtractPropTypes } from \"vue\";\nimport type { TSXWithInstall } from \"../../utils\";\n\n/** 支持分页数据源和远程检索的选择器组件。 */\nexport const FaSelectPage: TSXWithInstall<typeof SelectPage> = withInstall(SelectPage);\nexport default FaSelectPage;\n\nexport { faSelectPageProps, faSelectPageEmits };\nexport type { FaSelectPageSlots } from \"./src/selectPage\";\n\n/** FaSelectPage
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["SelectPage"],"sources":["../../../src/components/selectPage/index.ts"],"sourcesContent":["import { withInstall } from \"../../utils\";\nimport SelectPage, { faSelectPageEmits, faSelectPageProps } from \"./src/selectPage\";\nimport type { ExtractPropTypes } from \"vue\";\nimport type { TSXWithInstall } from \"../../utils\";\n\n/** 支持分页数据源和远程检索的选择器组件。 */\nexport const FaSelectPage: TSXWithInstall<typeof SelectPage> = withInstall(SelectPage);\nexport default FaSelectPage;\n\nexport { faSelectPageProps, faSelectPageEmits };\nexport type { FaSelectPageSlots } from \"./src/selectPage\";\n\n/** FaSelectPage 暴露的组件实例类型 */\nexport type FaSelectPageInstance = InstanceType<typeof SelectPage>;\n\n/** FaSelectPage 的完整 Props 类型 */\nexport type FaSelectPageProps = ExtractPropTypes<typeof faSelectPageProps>;\n\n/** FaSelectPage 的 Emits 类型 */\nexport type FaSelectPageEmits = typeof faSelectPageEmits;\n"],"mappings":";;;;AAMA,MAAa,eAAkD,YAAYA,kBAAU"}
|
|
@@ -72,7 +72,7 @@ export declare const faSelectPageProps: {
|
|
|
72
72
|
autocomplete: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
73
73
|
automaticDropdown: BooleanConstructor;
|
|
74
74
|
size: {
|
|
75
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "" | "default" | "
|
|
75
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "" | "default" | "large" | "small", never>>;
|
|
76
76
|
readonly required: false;
|
|
77
77
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
78
78
|
__epPropKey: true;
|
|
@@ -126,7 +126,7 @@ export declare const faSelectPageProps: {
|
|
|
126
126
|
};
|
|
127
127
|
tagEffect: {
|
|
128
128
|
default: string;
|
|
129
|
-
type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "
|
|
129
|
+
type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "dark" | "light" | "plain", unknown>>;
|
|
130
130
|
required: false;
|
|
131
131
|
validator: ((val: unknown) => boolean) | undefined;
|
|
132
132
|
__epPropKey: true;
|
|
@@ -135,7 +135,7 @@ export declare const faSelectPageProps: {
|
|
|
135
135
|
remoteShowSuffix: BooleanConstructor;
|
|
136
136
|
showArrow: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
137
137
|
offset: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
138
|
-
placement: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => "
|
|
138
|
+
placement: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement) | (((new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement)) | null)[], import("element-plus").Placement, unknown, string, boolean>;
|
|
139
139
|
fallbackPlacements: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]) | (((new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[])) | null)[], unknown, unknown, string[], boolean>;
|
|
140
140
|
tabindex: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(StringConstructor | NumberConstructor)[], unknown, unknown, number, boolean>;
|
|
141
141
|
appendTo: {
|
|
@@ -264,7 +264,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
264
264
|
autocomplete: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
265
265
|
automaticDropdown: BooleanConstructor;
|
|
266
266
|
size: {
|
|
267
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "" | "default" | "
|
|
267
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "" | "default" | "large" | "small", never>>;
|
|
268
268
|
readonly required: false;
|
|
269
269
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
270
270
|
__epPropKey: true;
|
|
@@ -318,7 +318,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
318
318
|
};
|
|
319
319
|
tagEffect: {
|
|
320
320
|
default: string;
|
|
321
|
-
type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "
|
|
321
|
+
type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "dark" | "light" | "plain", unknown>>;
|
|
322
322
|
required: false;
|
|
323
323
|
validator: ((val: unknown) => boolean) | undefined;
|
|
324
324
|
__epPropKey: true;
|
|
@@ -327,7 +327,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
327
327
|
remoteShowSuffix: BooleanConstructor;
|
|
328
328
|
showArrow: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
329
329
|
offset: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
330
|
-
placement: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => "
|
|
330
|
+
placement: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement) | (((new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement)) | null)[], import("element-plus").Placement, unknown, string, boolean>;
|
|
331
331
|
fallbackPlacements: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]) | (((new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[])) | null)[], unknown, unknown, string[], boolean>;
|
|
332
332
|
tabindex: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(StringConstructor | NumberConstructor)[], unknown, unknown, number, boolean>;
|
|
333
333
|
appendTo: {
|
|
@@ -456,7 +456,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
456
456
|
autocomplete: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
457
457
|
automaticDropdown: BooleanConstructor;
|
|
458
458
|
size: {
|
|
459
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "" | "default" | "
|
|
459
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "" | "default" | "large" | "small", never>>;
|
|
460
460
|
readonly required: false;
|
|
461
461
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
462
462
|
__epPropKey: true;
|
|
@@ -510,7 +510,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
510
510
|
};
|
|
511
511
|
tagEffect: {
|
|
512
512
|
default: string;
|
|
513
|
-
type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "
|
|
513
|
+
type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "dark" | "light" | "plain", unknown>>;
|
|
514
514
|
required: false;
|
|
515
515
|
validator: ((val: unknown) => boolean) | undefined;
|
|
516
516
|
__epPropKey: true;
|
|
@@ -519,7 +519,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
519
519
|
remoteShowSuffix: BooleanConstructor;
|
|
520
520
|
showArrow: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
521
521
|
offset: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
522
|
-
placement: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => "
|
|
522
|
+
placement: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement) | (((new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement)) | null)[], import("element-plus").Placement, unknown, string, boolean>;
|
|
523
523
|
fallbackPlacements: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]) | (((new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[])) | null)[], unknown, unknown, string[], boolean>;
|
|
524
524
|
tabindex: import("element-plus/es/utils/vue/props/types.mjs").EpPropFinalized<(StringConstructor | NumberConstructor)[], unknown, unknown, number, boolean>;
|
|
525
525
|
appendTo: {
|
|
@@ -550,10 +550,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
550
550
|
}) => any) | undefined;
|
|
551
551
|
"onRemove-tag"?: ((val: unknown) => any) | undefined;
|
|
552
552
|
}>, {
|
|
553
|
-
loading: boolean;
|
|
554
553
|
props: SelectComponentProps;
|
|
555
554
|
offset: number;
|
|
556
|
-
placement: import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<(new (...args: any[]) => "
|
|
555
|
+
placement: import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<(new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement) | ((new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement) | null)[], import("element-plus").Placement, unknown>;
|
|
556
|
+
loading: boolean;
|
|
557
557
|
disabled: boolean;
|
|
558
558
|
modelValue: ElSelectorModelValue;
|
|
559
559
|
autocomplete: string;
|
|
@@ -7,9 +7,9 @@ export declare const FaSelectV2: TSXWithInstall<typeof SelectV2>;
|
|
|
7
7
|
export default FaSelectV2;
|
|
8
8
|
export { SelectV2Props, faSelectV2Props };
|
|
9
9
|
export type { FaSelectV2Slots } from "./src/selectV2";
|
|
10
|
-
/** FaSelectV2
|
|
10
|
+
/** FaSelectV2 暴露的组件实例类型 */
|
|
11
11
|
export type FaSelectV2Instance = InstanceType<typeof SelectV2>;
|
|
12
|
-
/** FaSelectV2 的完整 Props
|
|
12
|
+
/** FaSelectV2 的完整 Props 类型 */
|
|
13
13
|
export type FaSelectV2Props = ExtractPropTypes<typeof faSelectV2Props>;
|
|
14
|
-
/** FaSelectV2 的 Emits
|
|
14
|
+
/** FaSelectV2 的 Emits 类型 */
|
|
15
15
|
export type FaSelectV2Emits = typeof faSelectV2Emits;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["SelectV2"],"sources":["../../../src/components/selectV2/index.ts"],"sourcesContent":["import { withInstall } from \"../../utils\";\nimport SelectV2, { SelectV2Props, faSelectV2Props } from \"./src/selectV2\";\nimport type { ExtractPropTypes } from \"vue\";\nimport type { TSXWithInstall } from \"../../utils\";\nimport type { faSelectV2Emits } from \"./src/selectV2\";\n\n/** 面向大数据量选项并支持远程分页的虚拟化选择器组件。 */\nexport const FaSelectV2: TSXWithInstall<typeof SelectV2> = withInstall(SelectV2);\nexport default FaSelectV2;\n\nexport { SelectV2Props, faSelectV2Props };\nexport type { FaSelectV2Slots } from \"./src/selectV2\";\n\n/** FaSelectV2
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["SelectV2"],"sources":["../../../src/components/selectV2/index.ts"],"sourcesContent":["import { withInstall } from \"../../utils\";\nimport SelectV2, { SelectV2Props, faSelectV2Props } from \"./src/selectV2\";\nimport type { ExtractPropTypes } from \"vue\";\nimport type { TSXWithInstall } from \"../../utils\";\nimport type { faSelectV2Emits } from \"./src/selectV2\";\n\n/** 面向大数据量选项并支持远程分页的虚拟化选择器组件。 */\nexport const FaSelectV2: TSXWithInstall<typeof SelectV2> = withInstall(SelectV2);\nexport default FaSelectV2;\n\nexport { SelectV2Props, faSelectV2Props };\nexport type { FaSelectV2Slots } from \"./src/selectV2\";\n\n/** FaSelectV2 暴露的组件实例类型 */\nexport type FaSelectV2Instance = InstanceType<typeof SelectV2>;\n\n/** FaSelectV2 的完整 Props 类型 */\nexport type FaSelectV2Props = ExtractPropTypes<typeof faSelectV2Props>;\n\n/** FaSelectV2 的 Emits 类型 */\nexport type FaSelectV2Emits = typeof faSelectV2Emits;\n"],"mappings":";;;;;AAOA,MAAa,aAA8C,YAAYA,gBAAQ"}
|
|
@@ -160,7 +160,7 @@ export declare const faSelectV2Props: {
|
|
|
160
160
|
default: number;
|
|
161
161
|
};
|
|
162
162
|
size: {
|
|
163
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "" | "default" | "
|
|
163
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "" | "default" | "large" | "small", never>>;
|
|
164
164
|
readonly required: false;
|
|
165
165
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
166
166
|
__epPropKey: true;
|
|
@@ -417,7 +417,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
417
417
|
default: number;
|
|
418
418
|
};
|
|
419
419
|
size: {
|
|
420
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "" | "default" | "
|
|
420
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "" | "default" | "large" | "small", never>>;
|
|
421
421
|
readonly required: false;
|
|
422
422
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
423
423
|
__epPropKey: true;
|
|
@@ -662,7 +662,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
662
662
|
default: number;
|
|
663
663
|
};
|
|
664
664
|
size: {
|
|
665
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "" | "default" | "
|
|
665
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils/vue/props/types.mjs").EpPropMergeType<StringConstructor, "" | "default" | "large" | "small", never>>;
|
|
666
666
|
readonly required: false;
|
|
667
667
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
668
668
|
__epPropKey: true;
|
|
@@ -743,10 +743,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
743
743
|
"onRemove-tag"?: ((_value: ElSelectorValue) => any) | undefined;
|
|
744
744
|
}>, {
|
|
745
745
|
data: ElSelectorOutput<ElSelectorValue, any>[];
|
|
746
|
-
loading: boolean;
|
|
747
746
|
props: import("./selectV2").Props;
|
|
748
747
|
offset: number;
|
|
749
748
|
placement: import("element-plus").Placement;
|
|
749
|
+
loading: boolean;
|
|
750
750
|
disabled: boolean;
|
|
751
751
|
modelValue: ElSelectorModelValue;
|
|
752
752
|
autocomplete: "none" | "both" | "inline" | "list";
|
|
@@ -23,12 +23,12 @@ export type * from "./src/table.type";
|
|
|
23
23
|
export { faTableEmits, faTableProps, tableColumnProps, tableProps };
|
|
24
24
|
export type { FaTableSlots };
|
|
25
25
|
export type { FaTableColumnSlots, FaTableColumnSlotsResult } from "./src/tableColumn";
|
|
26
|
-
/** FaTable
|
|
26
|
+
/** FaTable 暴露的组件实例类型 */
|
|
27
27
|
export type FaTableInstance = InstanceType<typeof Table>;
|
|
28
|
-
/** FaTable 的完整 Props
|
|
28
|
+
/** FaTable 的完整 Props 类型 */
|
|
29
29
|
export type FaTableProps = ExtractPropTypes<typeof faTableProps>;
|
|
30
|
-
/** FaTable 的 Emits
|
|
30
|
+
/** FaTable 的 Emits 类型 */
|
|
31
31
|
export type FaTableEmits = typeof faTableEmits;
|
|
32
|
-
/** FaTableColumn
|
|
32
|
+
/** FaTableColumn 暴露的组件实例类型 */
|
|
33
33
|
export type FaTableColumnInstance = InstanceType<typeof TableColumn>;
|
|
34
34
|
export * from "./utils/table";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["Table","TableColumn"],"sources":["../../../src/components/table/index.ts"],"sourcesContent":["import { withInstall, withNoopInstall } from \"../../utils\";\nimport Table, { type FaTableSlots, faTableEmits, faTableProps, tableProps } from \"./src/table\";\nimport TableColumn, { tableColumnProps } from \"./src/tableColumn\";\nimport TableColumnsSettingDialog from \"./src/tableColumnSettingDialog\";\nimport TablePagination from \"./src/tablePagination\";\nimport TableSearchForm from \"./src/tableSearchForm\";\nimport TableSearchFormItem from \"./src/tableSearchFormItem\";\nimport type { ExtractPropTypes } from \"vue\";\nimport type { TSXWithInstall } from \"../../utils\";\n\n/** 集成查询、分页、列配置和枚举映射的业务表格组件。 */\nexport const FaTable: TSXWithInstall<typeof Table> & {\n\tTableColumn: typeof TableColumn;\n\tTableColumnsSettingDialog: typeof TableColumnsSettingDialog;\n\tTablePagination: typeof TablePagination;\n\tTableSearchForm: typeof TableSearchForm;\n\tTableSearchFormItem: typeof TableSearchFormItem;\n} = withInstall(Table, {\n\tTableColumn,\n\tTableColumnsSettingDialog,\n\tTablePagination,\n\tTableSearchForm,\n\tTableSearchFormItem,\n});\nexport default FaTable;\n\n/** 可独立注册的 FaTable 列组件。 */\nexport const FaTableColumn: TSXWithInstall<typeof TableColumn> = withNoopInstall(TableColumn);\n\nexport type * from \"./src/page.type\";\nexport type * from \"./src/table.state\";\nexport type * from \"./src/table.type\";\n\nexport { faTableEmits, faTableProps, tableColumnProps, tableProps };\nexport type { FaTableSlots };\nexport type { FaTableColumnSlots, FaTableColumnSlotsResult } from \"./src/tableColumn\";\n\n/** FaTable
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["Table","TableColumn"],"sources":["../../../src/components/table/index.ts"],"sourcesContent":["import { withInstall, withNoopInstall } from \"../../utils\";\nimport Table, { type FaTableSlots, faTableEmits, faTableProps, tableProps } from \"./src/table\";\nimport TableColumn, { tableColumnProps } from \"./src/tableColumn\";\nimport TableColumnsSettingDialog from \"./src/tableColumnSettingDialog\";\nimport TablePagination from \"./src/tablePagination\";\nimport TableSearchForm from \"./src/tableSearchForm\";\nimport TableSearchFormItem from \"./src/tableSearchFormItem\";\nimport type { ExtractPropTypes } from \"vue\";\nimport type { TSXWithInstall } from \"../../utils\";\n\n/** 集成查询、分页、列配置和枚举映射的业务表格组件。 */\nexport const FaTable: TSXWithInstall<typeof Table> & {\n\tTableColumn: typeof TableColumn;\n\tTableColumnsSettingDialog: typeof TableColumnsSettingDialog;\n\tTablePagination: typeof TablePagination;\n\tTableSearchForm: typeof TableSearchForm;\n\tTableSearchFormItem: typeof TableSearchFormItem;\n} = withInstall(Table, {\n\tTableColumn,\n\tTableColumnsSettingDialog,\n\tTablePagination,\n\tTableSearchForm,\n\tTableSearchFormItem,\n});\nexport default FaTable;\n\n/** 可独立注册的 FaTable 列组件。 */\nexport const FaTableColumn: TSXWithInstall<typeof TableColumn> = withNoopInstall(TableColumn);\n\nexport type * from \"./src/page.type\";\nexport type * from \"./src/table.state\";\nexport type * from \"./src/table.type\";\n\nexport { faTableEmits, faTableProps, tableColumnProps, tableProps };\nexport type { FaTableSlots };\nexport type { FaTableColumnSlots, FaTableColumnSlotsResult } from \"./src/tableColumn\";\n\n/** FaTable 暴露的组件实例类型 */\nexport type FaTableInstance = InstanceType<typeof Table>;\n\n/** FaTable 的完整 Props 类型 */\nexport type FaTableProps = ExtractPropTypes<typeof faTableProps>;\n\n/** FaTable 的 Emits 类型 */\nexport type FaTableEmits = typeof faTableEmits;\n\n/** FaTableColumn 暴露的组件实例类型 */\nexport type FaTableColumnInstance = InstanceType<typeof TableColumn>;\n\nexport * from \"./utils/table\";\n"],"mappings":";;;;;;;;;;;AAWA,MAAa,UAMT,YAAYA,eAAO;CACtB,aAAA;CACA,2BAAA;CACA,iBAAA;CACA,iBAAA;CACA,qBAAA;AACD,CAAC;;AAID,MAAa,gBAAoD,gBAAgBC,mBAAW"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** FaTable
|
|
1
|
+
/** FaTable 统一分页返回结果 */
|
|
2
2
|
export interface PagedResult<Output = Record<string, any>> {
|
|
3
3
|
/**
|
|
4
4
|
* 当前页
|
|
@@ -111,7 +111,7 @@ export interface PagedSortInput {
|
|
|
111
111
|
*/
|
|
112
112
|
mode?: string;
|
|
113
113
|
}
|
|
114
|
-
/** FaTable
|
|
114
|
+
/** FaTable 分页、搜索和排序请求参数 */
|
|
115
115
|
export interface PagedInput {
|
|
116
116
|
/**
|
|
117
117
|
* 当前页面索引值,默认为1
|