ideaz-element
Version:
<p align="center"> <a href="" target="_blank" rel="noopener noreferrer"> <img src="./docs/public/logo.svg" alt="Ideaz Element" width="180" style="width: 180px;" /> </a> </p>
1 lines • 2.49 kB
Source Map (JSON)
{"version":3,"file":"TableCustomColumnContainer.cjs","sources":["../../../../../packages/element/table/src/TableCustomColumnContainer.tsx"],"sourcesContent":["import { getDynamicAttributes } from '@ideaz/shared'\nimport { isObject } from '@ideaz/utils'\nimport type { TableCol } from '../../types'\n\nexport default defineComponent({\n name: 'ZTableCustomColumnContainer',\n props: {\n modelValue: {\n type: [String, Number, Array, Boolean] as PropType<any>,\n },\n prop: {\n type: String,\n },\n componentName: {\n type: [String, Object],\n default: 'unknown',\n },\n options: {\n type: Object,\n },\n evts: {\n type: Object,\n },\n scope: {\n type: Object,\n },\n size: {\n type: String,\n },\n fieldProps: {\n type: Object,\n default: () => ({}),\n },\n column: {\n type: Object as PropType<TableCol>,\n default: () => ({}),\n },\n },\n emits: ['update:modelValue'],\n setup(props, { emit }) {\n const { attrsAll, onAll } = useFormComponentAttrs(props)\n const size = useFormSize()\n const dynamicAttributes = getDynamicAttributes(props.fieldProps, props.scope)\n\n return () => {\n return h(isObject(props.componentName) ? props.componentName : resolveComponent(props.componentName), {\n ...attrsAll.value,\n ...onAll.value,\n ...props.fieldProps,\n ...dynamicAttributes,\n 'size': size.value,\n 'modelValue': props.modelValue,\n 'onUpdate:modelValue': (val: any) => {\n emit('update:modelValue', val)\n },\n })\n }\n },\n})\n"],"names":["TableCustomColumnContainer","vue","name","props","modelValue","prop","type","componentName","default","options","evts","scope","size","fieldProps","column","emit","onAll","useFormComponentAttrs","useFormSize","is","dynamicAttributes"],"mappings":"wSAIAA,EAAAC,EAAA,gBAAA,CACEC,KAAAA,8BACAC,MAAAA,CACEC,WAAAA,qCAGAC,KAAAA,CACEC,KAAAA,QAEFC,cAAAA,CACED,KAAAA,CAAAA,OAAAA,MAAAA,EACAE,QAAAA,WAEFC,QAAAA,CACEH,KAAAA,QAEFI,KAAAA,CACEJ,KAAAA,QAEFK,MAAAA,CACEL,KAAAA,QAEFM,KAAAA,CACEN,KAAAA,QAEFO,WAAAA,CACEP,KAAAA,OACAE,QAAAA,KAAAA,CAAAA,IAEFM,OAAAA,CACER,KAAAA,OACAE,QAAAA,KAAAA,CAAAA,EACF,wCAGaO,KAAAA,CAAK,EAAA,kBACAC,MAAAA,CAAM,EAAAC,EAAA,sBAAAd,CAAA,EACxBS,EAAAM,EAAA,YAAA,iDAGA,MAAA,IACEjB,EAAA,EAAAkB,EAAA,SAAAhB,EAAA,aAAA,EAAAA,EAAA,cAAAF,EAAA,iBAAAE,EAAA,aAAA,EAAA,uCAIE,GAAAiB,iEAIEL,EAAAA,oBAAAA,CAAAA,CACF,CACF,CAAA,CAEJ,CACF,CAAA"}