ll-plus 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/advanced-filtering/index.d.ts +2 -0
- package/es/components/advanced-filtering/src/advanced-filtering.vue.d.ts +1 -0
- package/es/components/advanced-filtering/src/components/advanced-filtering-params.vue.d.ts +1 -0
- package/es/components/drawer/src/drawer.vue2.mjs +0 -1
- package/es/components/drawer/src/drawer.vue2.mjs.map +1 -1
- package/es/components/form/index.d.ts +2 -1
- package/es/components/form/index.mjs +3 -1
- package/es/components/form/index.mjs.map +1 -1
- package/es/components/form/src/config/components.d.ts +1 -0
- package/es/components/form/src/config/components.mjs +5 -0
- package/es/components/form/src/config/components.mjs.map +1 -0
- package/es/components/form/src/{form.d.ts → config/form.d.ts} +15 -7
- package/es/components/form/src/{form.mjs → config/form.mjs} +2 -2
- package/es/components/form/src/config/form.mjs.map +1 -0
- package/es/components/form/src/config/index.d.ts +2 -0
- package/es/components/form/src/config/index.mjs +5 -0
- package/es/components/form/src/config/index.mjs.map +1 -0
- package/es/components/form/src/form.vue.d.ts +2 -1
- package/es/components/form/src/form.vue2.mjs +11 -2
- package/es/components/form/src/form.vue2.mjs.map +1 -1
- package/es/components/index.mjs +2 -1
- package/es/components/index.mjs.map +1 -1
- package/es/index.mjs +2 -1
- package/es/index.mjs.map +1 -1
- package/index.full.js +11 -2
- package/index.full.min.js +10 -10
- package/index.full.min.js.map +1 -1
- package/index.full.min.mjs +10 -10
- package/index.full.min.mjs.map +1 -1
- package/index.full.mjs +11 -3
- package/lib/components/advanced-filtering/index.d.ts +2 -0
- package/lib/components/advanced-filtering/src/advanced-filtering.vue.d.ts +1 -0
- package/lib/components/advanced-filtering/src/components/advanced-filtering-params.vue.d.ts +1 -0
- package/lib/components/drawer/src/drawer.vue2.js +0 -1
- package/lib/components/drawer/src/drawer.vue2.js.map +1 -1
- package/lib/components/form/index.d.ts +2 -1
- package/lib/components/form/index.js +4 -1
- package/lib/components/form/index.js.map +1 -1
- package/lib/components/form/src/config/components.d.ts +1 -0
- package/lib/components/form/src/config/components.js +7 -0
- package/lib/components/form/src/config/components.js.map +1 -0
- package/{types/packages/components/form/src → lib/components/form/src/config}/form.d.ts +15 -7
- package/lib/components/form/src/{form.js → config/form.js} +2 -2
- package/lib/components/form/src/config/form.js.map +1 -0
- package/lib/components/form/src/config/index.d.ts +2 -0
- package/lib/components/form/src/config/index.js +10 -0
- package/lib/components/form/src/config/index.js.map +1 -0
- package/lib/components/form/src/form.vue.d.ts +2 -1
- package/lib/components/form/src/form.vue2.js +11 -2
- package/lib/components/form/src/form.vue2.js.map +1 -1
- package/lib/components/index.js +3 -1
- package/lib/components/index.js.map +1 -1
- package/lib/index.js +3 -1
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/types/packages/components/advanced-filtering/index.d.ts +2 -0
- package/types/packages/components/advanced-filtering/src/advanced-filtering.vue.d.ts +1 -0
- package/types/packages/components/advanced-filtering/src/components/advanced-filtering-params.vue.d.ts +1 -0
- package/types/packages/components/form/index.d.ts +2 -1
- package/types/packages/components/form/src/config/components.d.ts +1 -0
- package/{lib/components/form/src → types/packages/components/form/src/config}/form.d.ts +15 -7
- package/types/packages/components/form/src/config/index.d.ts +2 -0
- package/types/packages/components/form/src/form.vue.d.ts +2 -1
- package/es/components/form/src/form.mjs.map +0 -1
- package/lib/components/form/src/form.js.map +0 -1
|
@@ -4125,6 +4125,7 @@ export declare const LlAdvancedFiltering: import("ll-plus/es/utils").SFCWithInst
|
|
|
4125
4125
|
resetFields: () => Promise<any>;
|
|
4126
4126
|
getBindValue: (item: any) => import("lodash").Omit<any, "label">;
|
|
4127
4127
|
getFormItemClass: (item?: any) => string;
|
|
4128
|
+
readonly checkedType: string[];
|
|
4128
4129
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4129
4130
|
readonly formColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
4130
4131
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
@@ -12596,6 +12597,7 @@ export declare const LlAdvancedFilteringParams: import("ll-plus/es/utils").SFCWi
|
|
|
12596
12597
|
resetFields: () => Promise<any>;
|
|
12597
12598
|
getBindValue: (item: any) => import("lodash").Omit<any, "label">;
|
|
12598
12599
|
getFormItemClass: (item?: any) => string;
|
|
12600
|
+
readonly checkedType: string[];
|
|
12599
12601
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12600
12602
|
readonly formColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
12601
12603
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
@@ -4122,6 +4122,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4122
4122
|
resetFields: () => Promise<any>;
|
|
4123
4123
|
getBindValue: (item: any) => import("lodash").Omit<any, "label">;
|
|
4124
4124
|
getFormItemClass: (item?: any) => string;
|
|
4125
|
+
readonly checkedType: string[];
|
|
4125
4126
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4126
4127
|
readonly formColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
4127
4128
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
@@ -2534,6 +2534,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2534
2534
|
resetFields: () => Promise<any>;
|
|
2535
2535
|
getBindValue: (item: any) => import("lodash").Omit<any, "label">;
|
|
2536
2536
|
getFormItemClass: (item?: any) => string;
|
|
2537
|
+
readonly checkedType: string[];
|
|
2537
2538
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2538
2539
|
readonly formColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
2539
2540
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.vue2.mjs","sources":["../../../../../packages/components/drawer/src/drawer.vue"],"sourcesContent":["<template>\n <Drawer\n v-bind=\"getBindValue\"\n :title=\"props.title\"\n :open=\"props.open\"\n :root-class-name=\"bem.b()\"\n @close=\"handleClose\"\n >\n <template #title>\n <slot name=\"title\" />\n </template>\n <template #extra>\n <slot name=\"extra\" />\n </template>\n <div :class=\"bem.e('container')\">\n <div\n ref=\"content\"\n :style=\"{ marginBottom: props.showFooter ? '72px' : 0 }\"\n :class=\"[bem.e('content'), symbolClass]\"\n >\n <slot />\n </div>\n <div\n v-if=\"props.showFooter\"\n :class=\"[bem.e('footer'), hasScroll ? bem.is('has-scroll') : '']\"\n >\n <slot name=\"footer\">\n <div :class=\"bem.e('footer-left')\">\n <slot name=\"footer-left\" />\n </div>\n <div :class=\"bem.e('footer-right')\">\n <slot name=\"footer-right\">\n <ll-button\n v-if=\"showCancel\"\n :class=\"bem.m('cancel')\"\n :label=\"props.cancelText\"\n @click=\"handleCancel\"\n >\n </ll-button>\n <ll-button\n type=\"primary\"\n :loading=\"props.loading\"\n :label=\"props.confirmText\"\n @click=\"handleConfirm\"\n >\n </ll-button>\n </slot>\n </div>\n </slot>\n </div>\n </div>\n </Drawer>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, computed, watch, nextTick, useAttrs } from 'vue'\nimport { Drawer } from 'ant-design-vue'\nimport { createNamespace } from '@ll-plus/utils'\nimport { throttle, omit } from 'lodash-es'\nimport { drawerProps, drawerEmits, drawerOptions } from './drawer'\nimport { useSecondConfirmation } from './components/second-confirmation'\n\ndefineOptions({ name: 'LlDrawer' })\n\nconst props = defineProps(drawerProps)\n\nconst emits = defineEmits(drawerEmits)\n\nconst attrs = useAttrs()\n\nconst bem = createNamespace('drawer')\n\nconst content = ref<HTMLElement>()\n\nconst hasScroll = ref(false)\n\nconst symbolClass = ref(`ll-darwer-${new Date().getTime()}`)\n\nconst getBindValue = computed(() => ({\n ...drawerOptions,\n ...omit({ ...attrs }, [...Object.keys(drawerProps), 'rootClassName'])\n}))\n\nconst handleClose = (): void => {\n if (props.useClose) {\n
|
|
1
|
+
{"version":3,"file":"drawer.vue2.mjs","sources":["../../../../../packages/components/drawer/src/drawer.vue"],"sourcesContent":["<template>\n <Drawer\n v-bind=\"getBindValue\"\n :title=\"props.title\"\n :open=\"props.open\"\n :root-class-name=\"bem.b()\"\n @close=\"handleClose\"\n >\n <template #title>\n <slot name=\"title\" />\n </template>\n <template #extra>\n <slot name=\"extra\" />\n </template>\n <div :class=\"bem.e('container')\">\n <div\n ref=\"content\"\n :style=\"{ marginBottom: props.showFooter ? '72px' : 0 }\"\n :class=\"[bem.e('content'), symbolClass]\"\n >\n <slot />\n </div>\n <div\n v-if=\"props.showFooter\"\n :class=\"[bem.e('footer'), hasScroll ? bem.is('has-scroll') : '']\"\n >\n <slot name=\"footer\">\n <div :class=\"bem.e('footer-left')\">\n <slot name=\"footer-left\" />\n </div>\n <div :class=\"bem.e('footer-right')\">\n <slot name=\"footer-right\">\n <ll-button\n v-if=\"showCancel\"\n :class=\"bem.m('cancel')\"\n :label=\"props.cancelText\"\n @click=\"handleCancel\"\n >\n </ll-button>\n <ll-button\n type=\"primary\"\n :loading=\"props.loading\"\n :label=\"props.confirmText\"\n @click=\"handleConfirm\"\n >\n </ll-button>\n </slot>\n </div>\n </slot>\n </div>\n </div>\n </Drawer>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, computed, watch, nextTick, useAttrs } from 'vue'\nimport { Drawer } from 'ant-design-vue'\nimport { createNamespace } from '@ll-plus/utils'\nimport { throttle, omit } from 'lodash-es'\nimport { drawerProps, drawerEmits, drawerOptions } from './drawer'\nimport { useSecondConfirmation } from './components/second-confirmation'\n\ndefineOptions({ name: 'LlDrawer' })\n\nconst props = defineProps(drawerProps)\n\nconst emits = defineEmits(drawerEmits)\n\nconst attrs = useAttrs()\n\nconst bem = createNamespace('drawer')\n\nconst content = ref<HTMLElement>()\n\nconst hasScroll = ref(false)\n\nconst symbolClass = ref(`ll-darwer-${new Date().getTime()}`)\n\nconst getBindValue = computed(() => ({\n ...drawerOptions,\n ...omit({ ...attrs }, [...Object.keys(drawerProps), 'rootClassName'])\n}))\n\nconst handleClose = (): void => {\n if (props.useClose) {\n emits('close')\n } else {\n handleCancel()\n return\n }\n emits('update:open')\n}\nconst handleCancel = (): void => {\n if (props.cancelConfirm) {\n useSecondConfirmation(\n props.cancelConfirmOptions || {\n title: '温馨提示',\n message: '你有未保存的更改,确定关闭?'\n }\n ).then(async () => {\n // 点击保存按钮则关闭弹窗和抽屉\n emits('cancel')\n })\n return\n }\n emits('cancel')\n}\nconst handleConfirm = (): void => {\n emits('confirm')\n}\nconst handleResize = async () => {\n await nextTick()\n const ele = document.getElementsByClassName(symbolClass.value)[0]\n if (ele) {\n setTimeout(() => {\n hasScroll.value = ele.scrollHeight > ele.clientHeight\n }, 0)\n }\n}\nwatch(\n () => props.open,\n val => {\n if (val) {\n handleResize()\n window.addEventListener('resize', throttle(handleResize, 1000))\n } else {\n window.removeEventListener('resize', handleResize)\n }\n }\n)\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAgEA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAEd,IAAA,MAAM,KAAQ,GAAA,MAAA,CAAA;AAEd,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AAEvB,IAAM,MAAA,GAAA,GAAM,gBAAgB,QAAQ,CAAA,CAAA;AAEpC,IAAA,MAAM,UAAU,GAAiB,EAAA,CAAA;AAEjC,IAAM,MAAA,SAAA,GAAY,IAAI,KAAK,CAAA,CAAA;AAE3B,IAAM,MAAA,WAAA,GAAc,IAAI,CAAa,UAAA,EAAA,iBAAA,IAAI,MAAO,EAAA,OAAA,EAAS,CAAE,CAAA,CAAA,CAAA;AAE3D,IAAM,MAAA,YAAA,GAAe,SAAS,OAAO;AAAA,MACnC,GAAG,aAAA;AAAA,MACH,GAAG,IAAA,CAAK,EAAE,GAAG,KAAM,EAAA,EAAG,CAAC,GAAG,MAAO,CAAA,IAAA,CAAK,WAAW,CAAA,EAAG,eAAe,CAAC,CAAA;AAAA,KACpE,CAAA,CAAA,CAAA;AAEF,IAAA,MAAM,cAAc,MAAY;AAC9B,MAAA,IAAI,MAAM,QAAU,EAAA;AAClB,QAAA,KAAA,CAAM,OAAO,CAAA,CAAA;AAAA,OACR,MAAA;AACL,QAAa,YAAA,EAAA,CAAA;AACb,QAAA,OAAA;AAAA,OACF;AACA,MAAA,KAAA,CAAM,aAAa,CAAA,CAAA;AAAA,KACrB,CAAA;AACA,IAAA,MAAM,eAAe,MAAY;AAC/B,MAAA,IAAI,MAAM,aAAe,EAAA;AACvB,QAAA,qBAAA;AAAA,UACE,MAAM,oBAAwB,IAAA;AAAA,YAC5B,KAAO,EAAA,0BAAA;AAAA,YACP,OAAS,EAAA,sFAAA;AAAA,WACX;AAAA,SACF,CAAE,KAAK,YAAY;AAEjB,UAAA,KAAA,CAAM,QAAQ,CAAA,CAAA;AAAA,SACf,CAAA,CAAA;AACD,QAAA,OAAA;AAAA,OACF;AACA,MAAA,KAAA,CAAM,QAAQ,CAAA,CAAA;AAAA,KAChB,CAAA;AACA,IAAA,MAAM,gBAAgB,MAAY;AAChC,MAAA,KAAA,CAAM,SAAS,CAAA,CAAA;AAAA,KACjB,CAAA;AACA,IAAA,MAAM,eAAe,YAAY;AAC/B,MAAA,MAAM,QAAS,EAAA,CAAA;AACf,MAAA,MAAM,MAAM,QAAS,CAAA,sBAAA,CAAuB,WAAY,CAAA,KAAK,EAAE,CAAC,CAAA,CAAA;AAChE,MAAA,IAAI,GAAK,EAAA;AACP,QAAA,UAAA,CAAW,MAAM;AACf,UAAU,SAAA,CAAA,KAAA,GAAQ,GAAI,CAAA,YAAA,GAAe,GAAI,CAAA,YAAA,CAAA;AAAA,WACxC,CAAC,CAAA,CAAA;AAAA,OACN;AAAA,KACF,CAAA;AACA,IAAA,KAAA;AAAA,MACE,MAAM,KAAM,CAAA,IAAA;AAAA,MACZ,CAAO,GAAA,KAAA;AACL,QAAA,IAAI,GAAK,EAAA;AACP,UAAa,YAAA,EAAA,CAAA;AACb,UAAA,MAAA,CAAO,gBAAiB,CAAA,QAAA,EAAU,QAAS,CAAA,YAAA,EAAc,GAAI,CAAC,CAAA,CAAA;AAAA,SACzD,MAAA;AACL,UAAO,MAAA,CAAA,mBAAA,CAAoB,UAAU,YAAY,CAAA,CAAA;AAAA,SACnD;AAAA,OACF;AAAA,KACF,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1390,6 +1390,7 @@ export declare const LlForm: import("ll-plus/es/utils").SFCWithInstall<import("v
|
|
|
1390
1390
|
resetFields: () => Promise<any>;
|
|
1391
1391
|
getBindValue: (item: any) => import("lodash").Omit<any, "label">;
|
|
1392
1392
|
getFormItemClass: (item?: any) => string;
|
|
1393
|
+
readonly checkedType: string[];
|
|
1393
1394
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1394
1395
|
readonly formColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
1395
1396
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
@@ -2763,7 +2764,7 @@ export declare const LlForm: import("ll-plus/es/utils").SFCWithInstall<import("v
|
|
|
2763
2764
|
};
|
|
2764
2765
|
}, {}>>;
|
|
2765
2766
|
export default LlForm;
|
|
2766
|
-
export * from './src/
|
|
2767
|
+
export * from './src/config';
|
|
2767
2768
|
declare module 'vue' {
|
|
2768
2769
|
interface GlobalComponents {
|
|
2769
2770
|
LlForm: typeof Form;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import '../../utils/index.mjs';
|
|
2
2
|
import Form from './src/form.vue.mjs';
|
|
3
|
-
|
|
3
|
+
import './src/config/index.mjs';
|
|
4
4
|
import { withInstall } from '../../utils/with-install.mjs';
|
|
5
|
+
export { formProps } from './src/config/form.mjs';
|
|
6
|
+
export { checkedType } from './src/config/components.mjs';
|
|
5
7
|
|
|
6
8
|
"use strict";
|
|
7
9
|
const LlForm = withInstall(Form);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../packages/components/form/index.ts"],"sourcesContent":["import { withInstall } from '@ll-plus/utils'\n\nimport Form from './src/form.vue'\n\nexport const LlForm = withInstall(Form)\nexport default LlForm\nexport * from './src/
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../packages/components/form/index.ts"],"sourcesContent":["import { withInstall } from '@ll-plus/utils'\n\nimport Form from './src/form.vue'\n\nexport const LlForm = withInstall(Form)\nexport default LlForm\nexport * from './src/config'\n\ndeclare module 'vue' {\n export interface GlobalComponents {\n LlForm: typeof Form\n }\n}\n"],"names":[],"mappings":";;;;;;;;AAIa,MAAA,MAAA,GAAS,YAAY,IAAI;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const checkedType: string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.mjs","sources":["../../../../../../packages/components/form/src/config/components.ts"],"sourcesContent":["// import {\n// LlButton,\n// LlCascader,\n// LlCheckbox,\n// LlCheckboxGroup,\n// LlDatePicker,\n// LlDateRange,\n// LlInput,\n// LlInputNumber,\n// LlRadio,\n// LlRadioGroup,\n// LlSelect,\n// LlSwitch,\n// LlTextarea,\n// LlTimePicker,\n// LlTimeRange,\n// LlTreeSearch\n// } from '@ll-plus/components/index'\n\nexport const checkedType = ['radio', 'checkbox', 'switch']\n\n// export const componentTypes = {\n// button: LlButton,\n// cascader: LlCascader,\n// checkbox: LlCheckbox,\n// 'checked-group': LlCheckboxGroup,\n// 'date-picker': LlDatePicker,\n// 'date-ranger': LlDateRange\n// // input: LlInput,\n// // 'input-number': LlInputNumber\n// // radio: LlRadio\n// // 'radio-group': LlRadioGroup,\n// // select: LlSelect,\n// // switch: LlSwitch,\n// // textarea: LlTextarea,\n// // 'time-picker': LlTimePicker,\n// // 'time-range': LlTimeRange\n// // 'tree-search': LlTreeSearch\n// }\n"],"names":[],"mappings":";AAmBO,MAAM,WAAc,GAAA,CAAC,OAAS,EAAA,UAAA,EAAY,QAAQ;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ExtractPropTypes } from 'vue';
|
|
2
2
|
import type { FormItemProps, ColProps } from 'ant-design-vue';
|
|
3
|
-
import type { TooltipProps } from '
|
|
4
|
-
import type Form from '
|
|
5
|
-
type FormType<T = any> = ('input' | 'input-number' | 'cascader' | 'checkbox' | 'checkbox-
|
|
3
|
+
import type { TooltipProps } from 'll-plus/es/components';
|
|
4
|
+
import type Form from '../form.vue';
|
|
5
|
+
type FormType<T = any> = ('input' | 'input-number' | 'cascader' | 'checkbox' | 'checkbox-group' | 'code-editor' | 'date-picker' | 'time-picker' | 'date-range' | 'time-range' | 'radio' | 'radio-group' | 'select' | 'switch' | 'textarea' | 'upload-image') & T;
|
|
6
6
|
export interface BasicFormColumn extends FormItemProps {
|
|
7
7
|
label?: string;
|
|
8
8
|
key: string;
|
|
@@ -958,7 +958,9 @@ export declare const formProps: {
|
|
|
958
958
|
default: import("ant-design-vue/es/grid/Row").Gutter | [import("ant-design-vue/es/grid/Row").Gutter, import("ant-design-vue/es/grid/Row").Gutter];
|
|
959
959
|
};
|
|
960
960
|
wrap: {
|
|
961
|
-
type: BooleanConstructor;
|
|
961
|
+
type: BooleanConstructor; /**
|
|
962
|
+
* @description 展开的行变化时触发
|
|
963
|
+
*/
|
|
962
964
|
default: any;
|
|
963
965
|
};
|
|
964
966
|
}>>) | (() => Partial<ExtractPropTypes<{
|
|
@@ -1004,7 +1006,9 @@ export declare const formProps: {
|
|
|
1004
1006
|
default: import("ant-design-vue/es/grid/Row").Gutter | [import("ant-design-vue/es/grid/Row").Gutter, import("ant-design-vue/es/grid/Row").Gutter];
|
|
1005
1007
|
};
|
|
1006
1008
|
wrap: {
|
|
1007
|
-
type: BooleanConstructor;
|
|
1009
|
+
type: BooleanConstructor; /**
|
|
1010
|
+
* @description 展开的行变化时触发
|
|
1011
|
+
*/
|
|
1008
1012
|
default: any;
|
|
1009
1013
|
};
|
|
1010
1014
|
}>>) | ((new (...args: any[]) => Partial<ExtractPropTypes<{
|
|
@@ -1050,7 +1054,9 @@ export declare const formProps: {
|
|
|
1050
1054
|
default: import("ant-design-vue/es/grid/Row").Gutter | [import("ant-design-vue/es/grid/Row").Gutter, import("ant-design-vue/es/grid/Row").Gutter];
|
|
1051
1055
|
};
|
|
1052
1056
|
wrap: {
|
|
1053
|
-
type: BooleanConstructor;
|
|
1057
|
+
type: BooleanConstructor; /**
|
|
1058
|
+
* @description 展开的行变化时触发
|
|
1059
|
+
*/
|
|
1054
1060
|
default: any;
|
|
1055
1061
|
};
|
|
1056
1062
|
}>>) | (() => Partial<ExtractPropTypes<{
|
|
@@ -1096,7 +1102,9 @@ export declare const formProps: {
|
|
|
1096
1102
|
default: import("ant-design-vue/es/grid/Row").Gutter | [import("ant-design-vue/es/grid/Row").Gutter, import("ant-design-vue/es/grid/Row").Gutter];
|
|
1097
1103
|
};
|
|
1098
1104
|
wrap: {
|
|
1099
|
-
type: BooleanConstructor;
|
|
1105
|
+
type: BooleanConstructor; /**
|
|
1106
|
+
* @description 展开的行变化时触发
|
|
1107
|
+
*/
|
|
1100
1108
|
default: any;
|
|
1101
1109
|
};
|
|
1102
1110
|
}>>))[], unknown, unknown, () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import { buildProps, definePropType } from '
|
|
1
|
+
import '../../../../utils/index.mjs';
|
|
2
|
+
import { buildProps, definePropType } from '../../../../utils/props/runtime.mjs';
|
|
3
3
|
|
|
4
4
|
"use strict";
|
|
5
5
|
const formProps = buildProps({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form.mjs","sources":["../../../../../../packages/components/form/src/config/form.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type {\n FormItemProps,\n RowProps,\n ColProps,\n FormProps as AntFormProps\n} from 'ant-design-vue'\nimport type { TooltipProps } from '@ll-plus/components'\nimport type Form from '../form.vue'\n\ntype FormType<T = any> = (\n | 'input'\n | 'input-number'\n | 'cascader'\n | 'checkbox'\n | 'checkbox-group'\n | 'code-editor'\n | 'date-picker'\n | 'time-picker'\n | 'date-range'\n | 'time-range'\n | 'radio'\n | 'radio-group'\n | 'select'\n | 'switch'\n | 'textarea'\n | 'upload-image'\n) &\n T\n\nexport interface BasicFormColumn extends FormItemProps {\n label?: string\n key: string\n spanCol?: number | 24 // 一行几条\n colOptions?: ColProps\n tip?: string\n tipConfig?: TooltipProps\n type: FormType\n unit?: string\n change?: () => void\n [key: string]: any\n}\n\nexport type FormColumn<T = any> = BasicFormColumn & T\n\ntype FormData = Record<string, any>\n\nexport const formProps = buildProps({\n /**\n * @description 表单项列表\n */\n formColumns: {\n type: definePropType<FormColumn[]>(Array),\n default: () => []\n },\n /**\n * @description 展开的行变化时触发\n */\n formOptions: {\n type: definePropType<AntFormProps>(Object),\n default: () => ({\n layout: 'horizontal'\n })\n },\n /**\n * @description 展开的行变化时触发\n */\n formData: {\n type: definePropType<FormData>(Object),\n default: () => ({})\n },\n /**\n * @description 展开的行变化时触发\n */\n rowOptions: {\n type: definePropType<RowProps>(Object),\n default: () => ({\n gutter: 16\n })\n },\n /**\n * @description 表单加载状态\n */\n loading: {\n type: Boolean,\n default: false\n }\n} as const)\n\n// props\nexport type FormProps = ExtractPropTypes<typeof formProps>\n\n// instance\nexport type FormInstance = InstanceType<typeof Form>\n"],"names":[],"mappings":";;;;AAiDO,MAAM,YAAY,UAAW,CAAA;AAAA;AAAA;AAAA;AAAA,EAIlC,WAAa,EAAA;AAAA,IACX,IAAA,EAAM,eAA6B,KAAK,CAAA;AAAA,IACxC,OAAA,EAAS,MAAM,EAAC;AAAA,GAClB;AAAA;AAAA;AAAA;AAAA,EAIA,WAAa,EAAA;AAAA,IACX,IAAA,EAAM,eAA6B,MAAM,CAAA;AAAA,IACzC,SAAS,OAAO;AAAA,MACd,MAAQ,EAAA,YAAA;AAAA,KACV,CAAA;AAAA,GACF;AAAA;AAAA;AAAA;AAAA,EAIA,QAAU,EAAA;AAAA,IACR,IAAA,EAAM,eAAyB,MAAM,CAAA;AAAA,IACrC,OAAA,EAAS,OAAO,EAAC,CAAA;AAAA,GACnB;AAAA;AAAA;AAAA;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,IAAA,EAAM,eAAyB,MAAM,CAAA;AAAA,IACrC,SAAS,OAAO;AAAA,MACd,MAAQ,EAAA,EAAA;AAAA,KACV,CAAA;AAAA,GACF;AAAA;AAAA;AAAA;AAAA,EAIA,OAAS,EAAA;AAAA,IACP,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AACF,CAAU;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type FormColumn } from './config';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
|
3
3
|
readonly formColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
4
4
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
@@ -1390,6 +1390,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1390
1390
|
resetFields: () => Promise<any>;
|
|
1391
1391
|
getBindValue: (item: FormColumn) => import("lodash").Omit<any, "label">;
|
|
1392
1392
|
getFormItemClass: (item?: any) => string;
|
|
1393
|
+
readonly checkedType: string[];
|
|
1393
1394
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1394
1395
|
readonly formColumns: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => any[]) | (() => any[]) | ((new (...args: any[]) => any[]) | (() => any[]))[], unknown, unknown, () => never[], boolean>;
|
|
1395
1396
|
readonly formOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("vue").ExtractPropTypes<{
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { defineComponent, reactive, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, createVNode, withCtx, mergeProps, normalizeProps, guardReactiveProps, Fragment, renderList, createBlock, renderSlot, createElementVNode, toDisplayString, createCommentVNode, resolveDynamicComponent } from 'vue';
|
|
2
2
|
import { omit } from 'lodash-es';
|
|
3
|
-
import
|
|
3
|
+
import './config/index.mjs';
|
|
4
4
|
import '../../../utils/index.mjs';
|
|
5
|
+
import { formProps } from './config/form.mjs';
|
|
5
6
|
import { createNamespace } from '../../../utils/create-namespace.mjs';
|
|
7
|
+
import { checkedType } from './config/components.mjs';
|
|
6
8
|
|
|
7
9
|
"use strict";
|
|
8
10
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -122,7 +124,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
122
124
|
item,
|
|
123
125
|
index
|
|
124
126
|
}, () => [
|
|
125
|
-
(openBlock(), createBlock(resolveDynamicComponent(`ll-${item.type}`), mergeProps({
|
|
127
|
+
unref(checkedType).includes(item.type) ? (openBlock(), createBlock(resolveDynamicComponent(`ll-${item.type}`), mergeProps({
|
|
128
|
+
key: 0,
|
|
129
|
+
checked: formData[item.key],
|
|
130
|
+
"onUpdate:checked": ($event) => formData[item.key] = $event
|
|
131
|
+
}, getBindValue(item), {
|
|
132
|
+
onChange: item.change
|
|
133
|
+
}), null, 16, ["checked", "onUpdate:checked", "onChange"])) : (openBlock(), createBlock(resolveDynamicComponent(`ll-${item.type}`), mergeProps({
|
|
134
|
+
key: 1,
|
|
126
135
|
value: formData[item.key],
|
|
127
136
|
"onUpdate:value": ($event) => formData[item.key] = $event
|
|
128
137
|
}, getBindValue(item), {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.vue2.mjs","sources":["../../../../../packages/components/form/src/form.vue"],"sourcesContent":["<template>\n <div :class=\"bem.b()\">\n <a-spin :spinning=\"props.loading\">\n <a-form ref=\"formRef\" v-bind=\"props.formOptions\" :model=\"props.formData\">\n <a-row v-bind=\"props.rowOptions\">\n <a-col\n v-for=\"(item, index) in props.formColumns\"\n :key=\"index\"\n v-bind=\"item?.colOptions ?? {}\"\n :span=\"item?.spanCol ?? 24\"\n >\n <slot name=\"formItem\" :item=\"item\" :index=\"index\">\n <ll-form-item\n :name=\"item?.key ?? index\"\n :class=\"getFormItemClass(item)\"\n v-bind=\"getBindValue(item)\"\n >\n <template #label>\n <slot name=\"label\" :item=\"item\" :index=\"index\">\n <span>{{ item.label }}</span>\n <span v-if=\"item?.tip\" :class=\"bem.e('tooltip-wrapper')\">\n <ll-tooltip\n style=\"margin-left: 8px\"\n :overlay-class-name=\"bem.e('tooltip')\"\n :arrow-point-at-center=\"true\"\n :max-width=\"item?.tipConfig?.maxWidth ?? 406\"\n :placement=\"item?.tipConfig?.placement ?? 'top'\"\n :tip=\"item.tip\"\n :font-size=\"'16px'\"\n v-bind=\"item?.tipConfig\"\n />\n </span>\n </slot>\n </template>\n <slot name=\"content\" :item=\"item\" :index=\"index\">\n <component\n
|
|
1
|
+
{"version":3,"file":"form.vue2.mjs","sources":["../../../../../packages/components/form/src/form.vue"],"sourcesContent":["<template>\n <div :class=\"bem.b()\">\n <a-spin :spinning=\"props.loading\">\n <a-form ref=\"formRef\" v-bind=\"props.formOptions\" :model=\"props.formData\">\n <a-row v-bind=\"props.rowOptions\">\n <a-col\n v-for=\"(item, index) in props.formColumns\"\n :key=\"index\"\n v-bind=\"item?.colOptions ?? {}\"\n :span=\"item?.spanCol ?? 24\"\n >\n <slot name=\"formItem\" :item=\"item\" :index=\"index\">\n <ll-form-item\n :name=\"item?.key ?? index\"\n :class=\"getFormItemClass(item)\"\n v-bind=\"getBindValue(item)\"\n >\n <template #label>\n <slot name=\"label\" :item=\"item\" :index=\"index\">\n <span>{{ item.label }}</span>\n <span v-if=\"item?.tip\" :class=\"bem.e('tooltip-wrapper')\">\n <ll-tooltip\n style=\"margin-left: 8px\"\n :overlay-class-name=\"bem.e('tooltip')\"\n :arrow-point-at-center=\"true\"\n :max-width=\"item?.tipConfig?.maxWidth ?? 406\"\n :placement=\"item?.tipConfig?.placement ?? 'top'\"\n :tip=\"item.tip\"\n :font-size=\"'16px'\"\n v-bind=\"item?.tipConfig\"\n />\n </span>\n </slot>\n </template>\n <slot name=\"content\" :item=\"item\" :index=\"index\">\n <template v-if=\"checkedType.includes(item.type)\">\n <component\n :is=\"`ll-${item.type}`\"\n v-model:checked=\"formData[item.key]\"\n v-bind=\"getBindValue(item)\"\n @change=\"item.change\"\n />\n </template>\n <template v-else>\n <component\n :is=\"`ll-${item.type}`\"\n v-model:value=\"formData[item.key]\"\n v-bind=\"getBindValue(item)\"\n @change=\"item.change\"\n />\n </template>\n </slot>\n </ll-form-item>\n </slot>\n </a-col>\n </a-row>\n </a-form>\n </a-spin>\n </div>\n</template>\n<script setup lang=\"ts\">\nimport { omit } from 'lodash-es'\nimport { reactive, ref } from 'vue'\nimport {\n formProps,\n checkedType,\n // componentTypes,\n type FormColumn\n} from './config'\n\nimport { createNamespace } from '@ll-plus/utils'\n\n// 定义组件名称\ndefineOptions({ name: 'LlForm' })\n\n// Props\nconst props = defineProps(formProps)\n\nconst bem = createNamespace('form')\n\nconst formData = reactive(props.formData)\n\nconst formRef = ref()\n\nconst validate = async () => {\n return await formRef.value.validateFields()\n}\n\nconst resetFields = async () => {\n return await formRef.value.resetFields()\n}\n\nconst getBindValue = (item: FormColumn) => {\n const obj = { ...item }\n return omit(obj, ['label'])\n}\n\nconst getFormItemClass = (item = {} as FormColumn) => {\n if (props.formOptions.layout === 'horizontal') {\n if (item?.labelCol) {\n return item.labelCol.span && item.labelCol.span >= 24\n ? bem.is('label-top')\n : bem.is('label-left')\n } else {\n return bem.is('label-left')\n }\n }\n return bem.is('label-top')\n}\n\ndefineExpose({\n validate,\n resetFields\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;AA4EA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAEd,IAAM,MAAA,GAAA,GAAM,gBAAgB,MAAM,CAAA,CAAA;AAElC,IAAM,MAAA,QAAA,GAAW,QAAS,CAAA,KAAA,CAAM,QAAQ,CAAA,CAAA;AAExC,IAAA,MAAM,UAAU,GAAI,EAAA,CAAA;AAEpB,IAAA,MAAM,WAAW,YAAY;AAC3B,MAAO,OAAA,MAAM,OAAQ,CAAA,KAAA,CAAM,cAAe,EAAA,CAAA;AAAA,KAC5C,CAAA;AAEA,IAAA,MAAM,cAAc,YAAY;AAC9B,MAAO,OAAA,MAAM,OAAQ,CAAA,KAAA,CAAM,WAAY,EAAA,CAAA;AAAA,KACzC,CAAA;AAEA,IAAM,MAAA,YAAA,GAAe,CAAC,IAAqB,KAAA;AACzC,MAAM,MAAA,GAAA,GAAM,EAAE,GAAG,IAAK,EAAA,CAAA;AACtB,MAAA,OAAO,IAAK,CAAA,GAAA,EAAK,CAAC,OAAO,CAAC,CAAA,CAAA;AAAA,KAC5B,CAAA;AAEA,IAAA,MAAM,gBAAmB,GAAA,CAAC,IAAO,GAAA,EAAqB,KAAA;AACpD,MAAI,IAAA,KAAA,CAAM,WAAY,CAAA,MAAA,KAAW,YAAc,EAAA;AAC7C,QAAA,IAAI,MAAM,QAAU,EAAA;AAClB,UAAA,OAAO,IAAK,CAAA,QAAA,CAAS,IAAQ,IAAA,IAAA,CAAK,QAAS,CAAA,IAAA,IAAQ,EAC/C,GAAA,GAAA,CAAI,EAAG,CAAA,WAAW,CAClB,GAAA,GAAA,CAAI,GAAG,YAAY,CAAA,CAAA;AAAA,SAClB,MAAA;AACL,UAAO,OAAA,GAAA,CAAI,GAAG,YAAY,CAAA,CAAA;AAAA,SAC5B;AAAA,OACF;AACA,MAAO,OAAA,GAAA,CAAI,GAAG,WAAW,CAAA,CAAA;AAAA,KAC3B,CAAA;AAEA,IAAa,QAAA,CAAA;AAAA,MACX,QAAA;AAAA,MACA,WAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/es/components/index.mjs
CHANGED
|
@@ -46,7 +46,8 @@ export { useSecondConfirmation } from './drawer/src/components/second-confirmati
|
|
|
46
46
|
export { secondConfirmationProps } from './drawer/src/components/second-confirmation/src/second-confirmation.mjs';
|
|
47
47
|
export { LlSecondConfirmation } from './drawer/src/components/second-confirmation/index.mjs';
|
|
48
48
|
export { emptyProps, url } from './empty/src/empty.mjs';
|
|
49
|
-
export { formProps } from './form/src/form.mjs';
|
|
49
|
+
export { formProps } from './form/src/config/form.mjs';
|
|
50
|
+
export { checkedType } from './form/src/config/components.mjs';
|
|
50
51
|
export { iconProps } from './icon/src/icon.mjs';
|
|
51
52
|
export { iconBaseProps, iconTypes } from './icon-base/src/icon-base.mjs';
|
|
52
53
|
export { inputProps } from './input/src/input.mjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/es/index.mjs
CHANGED
|
@@ -23,7 +23,8 @@ export { LlSecondConfirmation } from './components/drawer/src/components/second-
|
|
|
23
23
|
export { LlDrawer } from './components/drawer/index.mjs';
|
|
24
24
|
export { emptyProps, url } from './components/empty/src/empty.mjs';
|
|
25
25
|
export { LlEmpty } from './components/empty/index.mjs';
|
|
26
|
-
export { formProps } from './components/form/src/form.mjs';
|
|
26
|
+
export { formProps } from './components/form/src/config/form.mjs';
|
|
27
|
+
export { checkedType } from './components/form/src/config/components.mjs';
|
|
27
28
|
export { LlForm } from './components/form/index.mjs';
|
|
28
29
|
export { LlFormItem } from './components/form-item/index.mjs';
|
|
29
30
|
export { iconProps } from './components/icon/src/icon.mjs';
|
package/es/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../packages/ll-plus/index.ts"],"sourcesContent":["import installer from './defaults'\n// 按需导入 import {ZIcon} from 'll-plus'\nexport * from '@ll-plus/components/index'\n\nexport const install = installer.install\nexport default installer\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../packages/ll-plus/index.ts"],"sourcesContent":["import installer from './defaults'\n// 按需导入 import {ZIcon} from 'll-plus'\nexport * from '@ll-plus/components/index'\n\nexport const install = installer.install\nexport default installer\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIO,MAAM,UAAU,SAAU,CAAA;;;;"}
|
package/index.full.js
CHANGED
|
@@ -3373,7 +3373,6 @@
|
|
|
3373
3373
|
}));
|
|
3374
3374
|
const handleClose = () => {
|
|
3375
3375
|
if (props.useClose) {
|
|
3376
|
-
console.log("clossss");
|
|
3377
3376
|
emits("close");
|
|
3378
3377
|
} else {
|
|
3379
3378
|
handleCancel();
|
|
@@ -3649,6 +3648,8 @@
|
|
|
3649
3648
|
}
|
|
3650
3649
|
});
|
|
3651
3650
|
|
|
3651
|
+
const checkedType = ["radio", "checkbox", "switch"];
|
|
3652
|
+
|
|
3652
3653
|
var _sfc_main$z = /* @__PURE__ */ require$$0.defineComponent({
|
|
3653
3654
|
...{ name: "LlForm" },
|
|
3654
3655
|
__name: "form",
|
|
@@ -3766,7 +3767,14 @@
|
|
|
3766
3767
|
item,
|
|
3767
3768
|
index
|
|
3768
3769
|
}, () => [
|
|
3769
|
-
(require$$0.openBlock(), require$$0.createBlock(require$$0.resolveDynamicComponent(`ll-${item.type}`), require$$0.mergeProps({
|
|
3770
|
+
require$$0.unref(checkedType).includes(item.type) ? (require$$0.openBlock(), require$$0.createBlock(require$$0.resolveDynamicComponent(`ll-${item.type}`), require$$0.mergeProps({
|
|
3771
|
+
key: 0,
|
|
3772
|
+
checked: formData[item.key],
|
|
3773
|
+
"onUpdate:checked": ($event) => formData[item.key] = $event
|
|
3774
|
+
}, getBindValue(item), {
|
|
3775
|
+
onChange: item.change
|
|
3776
|
+
}), null, 16, ["checked", "onUpdate:checked", "onChange"])) : (require$$0.openBlock(), require$$0.createBlock(require$$0.resolveDynamicComponent(`ll-${item.type}`), require$$0.mergeProps({
|
|
3777
|
+
key: 1,
|
|
3770
3778
|
value: formData[item.key],
|
|
3771
3779
|
"onUpdate:value": ($event) => formData[item.key] = $event
|
|
3772
3780
|
}, getBindValue(item), {
|
|
@@ -20318,6 +20326,7 @@
|
|
|
20318
20326
|
exports.avatarType = avatarType;
|
|
20319
20327
|
exports.buttonProps = buttonProps;
|
|
20320
20328
|
exports.checkboxGroupProps = checkboxGroupProps;
|
|
20329
|
+
exports.checkedType = checkedType;
|
|
20321
20330
|
exports.default = installer;
|
|
20322
20331
|
exports.descriptionsItemProps = descriptionsItemProps;
|
|
20323
20332
|
exports.descriptionsProps = descriptionsProps;
|