cnhis-design-vue 3.2.12-release.0 → 3.2.13-beta.0
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/ai-chat/index.d.ts +66 -0
- package/es/components/ai-chat/src/Index.vue.d.ts +68 -2
- package/es/components/ai-chat/src/Index.vue2.js +1 -1
- package/es/components/ai-chat/src/components/ChatCard.d.ts +24 -0
- package/es/components/ai-chat/src/components/ChatCard.js +1 -0
- package/es/components/ai-chat/src/components/ChatFooter.vue.d.ts +48 -0
- package/es/components/ai-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/ai-chat/src/components/ChatMain.js +1 -1
- package/es/components/ai-chat/src/components/ChatPrompt.vue.d.ts +45 -0
- package/es/components/ai-chat/src/components/ChatPrompt.vue.js +1 -0
- package/es/components/ai-chat/src/components/ChatPrompt.vue2.js +1 -0
- package/es/components/ai-chat/src/types/index.d.ts +11 -1
- package/es/components/ai-chat/style/index.css +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +29 -0
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
- package/es/components/field-set/src/components/edit-dialog.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/iho-table/index.d.ts +29 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +30 -0
- package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/crossHeaderPlugin.d.ts +1 -0
- package/es/components/iho-table/src/plugins/crossHeaderPlugin.js +1 -0
- package/es/components/iho-table/src/plugins/dynamicFilterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/utils.d.ts +5 -5
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/utils.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +15 -0
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +1 -1
- package/es/components/template-render/index.d.ts +60 -0
- package/es/components/template-render/index.js +1 -0
- package/es/components/template-render/src/TemplateRender.vue.d.ts +62 -0
- package/es/components/template-render/src/TemplateRender.vue.js +1 -0
- package/es/components/template-render/src/TemplateRender.vue2.js +1 -0
- package/es/components/template-render/src/components/Box.vue.d.ts +44 -0
- package/es/components/template-render/src/components/Box.vue.js +1 -0
- package/es/components/template-render/src/components/Box.vue2.js +1 -0
- package/es/components/template-render/src/components/Button.vue.d.ts +49 -0
- package/es/components/template-render/src/components/Button.vue.js +1 -0
- package/es/components/template-render/src/components/Button.vue2.js +1 -0
- package/es/components/template-render/src/components/Divider.vue.d.ts +26 -0
- package/es/components/template-render/src/components/Divider.vue.js +1 -0
- package/es/components/template-render/src/components/Divider.vue2.js +1 -0
- package/es/components/template-render/src/components/Field.vue.d.ts +56 -0
- package/es/components/template-render/src/components/Field.vue.js +1 -0
- package/es/components/template-render/src/components/Field.vue2.js +1 -0
- package/es/components/template-render/src/components/FieldGroup.vue.d.ts +50 -0
- package/es/components/template-render/src/components/FieldGroup.vue.js +1 -0
- package/es/components/template-render/src/components/FieldGroup.vue2.js +1 -0
- package/es/components/template-render/src/components/Image.vue.d.ts +52 -0
- package/es/components/template-render/src/components/Image.vue.js +1 -0
- package/es/components/template-render/src/components/Image.vue2.js +1 -0
- package/es/components/template-render/src/components/Label.vue.d.ts +42 -0
- package/es/components/template-render/src/components/Label.vue.js +1 -0
- package/es/components/template-render/src/components/Label.vue2.js +1 -0
- package/es/components/template-render/src/components/Row.vue.d.ts +47 -0
- package/es/components/template-render/src/components/Row.vue.js +1 -0
- package/es/components/template-render/src/components/Row.vue2.js +1 -0
- package/es/components/template-render/src/components/Slot.d.ts +27 -0
- package/es/components/template-render/src/components/Slot.js +1 -0
- package/es/components/template-render/src/components/Text.vue.d.ts +40 -0
- package/es/components/template-render/src/components/Text.vue.js +1 -0
- package/es/components/template-render/src/components/Text.vue2.js +1 -0
- package/es/components/template-render/src/components/index.d.ts +529 -0
- package/es/components/template-render/src/components/index.js +1 -0
- package/es/components/template-render/src/constants/index.d.ts +16 -0
- package/es/components/template-render/src/constants/index.js +1 -0
- package/es/components/template-render/src/hooks/useCommon.d.ts +10 -0
- package/es/components/template-render/src/hooks/useCommon.js +1 -0
- package/es/components/template-render/src/utils/index.d.ts +6 -0
- package/es/components/template-render/src/utils/index.js +1 -0
- package/es/components/template-render/style/index.css +1 -0
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
package/es/components/index.d.ts
CHANGED
@@ -39,6 +39,7 @@ import CDefaultPage from './default-page';
|
|
39
39
|
import CStepNotice from './step-notice';
|
40
40
|
import CToothBitmap from './tooth-bitmap';
|
41
41
|
import CAiChat from './ai-chat';
|
42
|
+
import CTemplateRender from './template-render';
|
42
43
|
export * from './form-render';
|
43
44
|
export * from './shortcut-provider';
|
44
45
|
export * from './shortcut-setter';
|
@@ -62,7 +63,7 @@ export * from './audio-sdk';
|
|
62
63
|
export * from './step-notice';
|
63
64
|
export * from './info-header';
|
64
65
|
declare function install(app: App): void;
|
65
|
-
export { CGrid, CBigTable, CFieldSet, CButtonPrint, CSelectPerson, CSelectLabel, CLabelFormContent, CScaleView, CMap, CVodChunkUpload, CRadio, CCheckbox, CSelect, CDatetime, CInfoHeader, CTimeLine, CBaseSearch, CQuickSearch, CClassification, CBpmnWorkflow, CStepsWheel, CEditor, CFormRender, CFabricChart, CShortcutProvider, CShortcutSetter, CFormConfig, CIhoTable, CKeyboard, CSearchCascader, CRecommendSearch, CDatePicker, CTimePicker, CConfigProvider, CPictureClipper, CTableExportField, CExpandField, CIhoChat, CCallback, CSliderTree, CBodySelect, CDefaultPage, CStepNotice, CToothBitmap, CAiChat };
|
66
|
+
export { CGrid, CBigTable, CFieldSet, CButtonPrint, CSelectPerson, CSelectLabel, CLabelFormContent, CScaleView, CMap, CVodChunkUpload, CRadio, CCheckbox, CSelect, CDatetime, CInfoHeader, CTimeLine, CBaseSearch, CQuickSearch, CClassification, CBpmnWorkflow, CStepsWheel, CEditor, CFormRender, CFabricChart, CShortcutProvider, CShortcutSetter, CFormConfig, CIhoTable, CKeyboard, CSearchCascader, CRecommendSearch, CDatePicker, CTimePicker, CConfigProvider, CPictureClipper, CTableExportField, CExpandField, CIhoChat, CCallback, CSliderTree, CBodySelect, CDefaultPage, CStepNotice, CToothBitmap, CAiChat, CTemplateRender };
|
66
67
|
declare const _default: {
|
67
68
|
install: typeof install;
|
68
69
|
};
|
package/es/components/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
import e from"./grid/index.js";export{default as CGrid}from"./grid/index.js";import r from"./big-table/index.js";export{default as CBigTable}from"./big-table/index.js";import o from"./field-set/index.js";export{default as CFieldSet}from"./field-set/index.js";import s from"./button-print/index.js";export{default as CButtonPrint}from"./button-print/index.js";import t from"./select-person/index.js";export{default as CSelectPerson}from"./select-person/index.js";import i,{CLabelFormContent as a}from"./select-label/index.js";export{CLabelFormContent,default as CSelectLabel}from"./select-label/index.js";import d from"./map/index.js";export{default as CMap}from"./map/index.js";import n from"./vod-chunk-upload/index.js";export{default as CVodChunkUpload}from"./vod-chunk-upload/index.js";import{CScaleView as m,CRadio as f,CCheckbox as p,CSelect as l,CDatetime as c}from"./scale-view/index.js";export{CCheckbox,CDatetime,CRadio,CScaleView,CSelect}from"./scale-view/index.js";import u from"./info-header/index.js";export{default as CInfoHeader}from"./info-header/index.js";import x from"./time-line/index.js";export{default as CTimeLine}from"./time-line/index.js";import C from"./base-search/index.js";export{default as CBaseSearch}from"./base-search/index.js";import h from"./quick-search/index.js";export{default as CQuickSearch}from"./quick-search/index.js";import j from"./classification/index.js";export{default as CClassification}from"./classification/index.js";import k from"./bpmn-workflow/index.js";export{default as CBpmnWorkflow}from"./bpmn-workflow/index.js";import b from"./steps-wheel/index.js";export{default as CStepsWheel}from"./steps-wheel/index.js";import S from"./editor/index.js";export{default as CEditor}from"./editor/index.js";import g from"./form-render/index.js";export{default as CFormRender}from"./form-render/index.js";import F from"./fabric-chart/index.js";export{default as CFabricChart}from"./fabric-chart/index.js";import T from"./shortcut-provider/index.js";export{default as CShortcutProvider}from"./shortcut-provider/index.js";import v from"./shortcut-setter/index.js";export{default as CShortcutSetter}from"./shortcut-setter/index.js";import y from"./form-config/index.js";export{default as CFormConfig}from"./form-config/index.js";import D from"./iho-table/index.js";export{default as CIhoTable,useIhoTablePresetPlugins}from"./iho-table/index.js";import P from"./keyboard/index.js";export{default as CKeyboard}from"./keyboard/index.js";import A from"./search-cascader/index.js";export{default as CSearchCascader}from"./search-cascader/index.js";import R from"./recommend-search/index.js";export{default as CRecommendSearch}from"./recommend-search/index.js";import L from"./date-picker/index.js";export{default as CDatePicker}from"./date-picker/index.js";import w from"./time-picker/index.js";export{default as CTimePicker}from"./time-picker/index.js";import E from"./config-provider/index.js";export{default as CConfigProvider}from"./config-provider/index.js";import I from"./picture-clipper/index.js";export{default as CPictureClipper}from"./picture-clipper/index.js";import B from"./table-export-field/index.js";export{default as CTableExportField}from"./table-export-field/index.js";import O from"./expand-field/index.js";export{default as CExpandField}from"./expand-field/index.js";import V from"./iho-chat/index.js";export{default as CIhoChat}from"./iho-chat/index.js";import H from"./callback/index.js";export{default as CCallback}from"./callback/index.js";import K from"./slider-tree/index.js";export{default as CSliderTree}from"./slider-tree/index.js";import N from"./body-select/index.js";export{default as CBodySelect}from"./body-select/index.js";import M from"./default-page/index.js";export{default as CDefaultPage}from"./default-page/index.js";import W from"./step-notice/index.js";export{default as CStepNotice}from"./step-notice/index.js";import q from"./tooth-bitmap/index.js";export{default as CToothBitmap}from"./tooth-bitmap/index.js";import G from"./ai-chat/index.js";export{default as CAiChat}from"./ai-chat/index.js";export{default as CInsuranceSDK}from"./card-reader-sdk/src/insuranceSDK.js";export{default as CCardReaderSDK}from"./card-reader-sdk/src/cardReaderSDK.js";export{formatDateRangeInfo,presetValToDateRangestr,presetValToTimestamp}from"./table-filter/src/components/render-widget/helpers/presetValToTimestamp.js";export{DatePresetValEnums,DateRangeInnerValEnums,DateRangeOutDefEnums}from"./table-filter/src/components/render-widget/enums.js";export{createOpacityColor,useTheme}from"../shared/hooks/useTheme.js";export{handleInputEvent,useDateTime}from"../shared/hooks/useDateTime.js";export{AsyncQueue,ENTRY_STATE}from"../shared/hooks/useAsyncQueue/index.js";export{presetRequestHandler,useFormAsyncQueue,useFormRequest}from"../shared/hooks/useFormRequest/index.js";export{useLevelSearchCascader}from"../shared/hooks/useLevelSearchCascader.js";export{useSelectAllowModify}from"../shared/hooks/selectHooks/useSelectAllowModify.js";export{useOptionFiltered}from"../shared/hooks/selectHooks/useOptionFiltered.js";export{searchContentMatcher,useSearchContent}from"../shared/hooks/selectHooks/useSearchContent.js";export{useSelectRenders}from"../shared/hooks/selectHooks/useSelectRenders.js";export{useMenuWidthAuto}from"../shared/hooks/selectHooks/useMenuWidthAuto.js";export{useVersion}from"../shared/hooks/useVersion.js";export{useScrollLoading}from"../shared/hooks/useScrollLoading.js";export{vFlexibleResize}from"../shared/directive/flexibleResize.js";export{useGuide}from"./guide/src/useGuide.js";export{DragScroll,useDragScroll}from"./drag-scroll/src/index.js";export{default as CAudioSDK}from"./audio-sdk/src/audioSDK.js";export{useAnchor}from"./form-render/src/hooks/useAnchor.js";export{BusinessCollector,useBusinessBinding}from"./form-render/src/hooks/useBusinessBinding.js";export{ContextCollector,useChangeContext}from"./form-render/src/hooks/useChangeContext.js";export{useCommonInjection,useSelectOptionProps}from"./form-render/src/hooks/useCommonInjection.js";export{useCommonLog}from"./form-render/src/hooks/useCommonLog.js";export{useComplexOptions,useComplexOptionsSpan}from"./form-render/src/hooks/useComplexOptions.js";export{useFieldListAdaptor}from"./form-render/src/hooks/useFieldListAdaptor.js";export{useFieldNormalize}from"./form-render/src/hooks/useFieldNormalize.js";export{useFieldVisitor}from"./form-render/src/hooks/useFieldVisitor.js";export{useFormContext}from"./form-render/src/hooks/useFormContext.js";export{useFormDomEvent,useFormExposeEvent}from"./form-render/src/hooks/useFormEvent.js";export{useFormField}from"./form-render/src/hooks/useFormField.js";export{useFormGraph}from"./form-render/src/hooks/useFormGraph.js";export{FormItemDepsCollector,useFormItemDeps}from"./form-render/src/hooks/useFormItemDeps.js";export{useFormRenderLifeCycle}from"./form-render/src/hooks/useFormRenderLifeCycle.js";export{useAutographOptions,useRecommendOptions,useUrlConfigOptions}from"./form-render/src/hooks/useFormRenderOptions.js";export{useFormValidator,validateMessageLocale}from"./form-render/src/hooks/useFormValidator.js";export{useLowCodeEvent}from"./form-render/src/hooks/useLowCodeEvent.js";export{useLowCodeReactions}from"./form-render/src/hooks/useLowCodeReactions.js";export{useNuiThemeOverrides}from"./form-render/src/hooks/useNuiThemeOverrides.js";export{useOperationalForm}from"./form-render/src/hooks/useOperationalForm.js";export{usePresetScope}from"./form-render/src/hooks/usePresetScope.js";export{useWordbookSetting,wordbookSettingHandler}from"./form-render/src/hooks/useWordbookSetting.js";export{useNewLowCodeReactions}from"./form-render/src/hooks/useNewLowCodeReactions.js";export{useSelectedSetting}from"./form-render/src/hooks/useSelectedSetting.js";export{businessDateParser,isForeignerID,isIdCard,isMobile,parseAge2Birthday,parseAgeFromContext,parseBirthday,parseIdCard,transformDateFormat}from"./form-render/src/utils/business.js";export{findNextWidget,queryDecoratorByAddress,queryDecoratorByFieldKey,queryInput}from"./form-render/src/utils/dom.js";export{assignClearBindVisited,assignUpdateValue,assignValueBindKey,createFieldAddressId,createLinebarId,createObjSchema,createVisitedSetter,dotEscape,fieldKeyEscape,getParentLinebar,traverseDependKey,traverseSchema}from"./form-render/src/utils/schema.js";export{FieldListFilter,combineExtendKey,createInputSlot,createSlot,editorUnescape,findItemByValCondition,formRenderLog,getAbsoluteKey,injectOrProvide,isEnter,isNegative,isNestedFieldType,isNestedType,isPositive,mergeDeepProperties,parseEnhanceText,parseNumberFromMaybeString,renderDescOption,replace2Any,splitExtendKey,validateMessageParser}from"./form-render/src/utils/index.js";export{GlobalShortcutProvider,ShortcutManager,useShortcuts}from"./shortcut-provider/src/hooks/useShortcuts.js";export{useShortcutSignature}from"./shortcut-provider/src/hooks/useShortcutSignature.js";export{defineTablePlugin,useTablePlugin}from"./iho-table/src/hooks/useTablePlugin.js";export{useColumnConfigAdaptor}from"./iho-table/src/hooks/useColumnConfigAdaptor.js";export{AbstractConfigHooks,AbstractDataHooks,AbstractDomInsertHooks,AbstractEventHooks,AbstractExposeHooks,AbstractFieldHooks,AbstractSetupHooks}from"./iho-table/src/types/pluginType.js";export{Print}from"./button-print/src/utils/print.js";export{getFileUrl,isIReport,useBrowserPrint}from"./button-print/src/utils/browserPrint.js";export{transformOriginToTree}from"./slider-tree/src/utils/index.js";const U={CGrid:e,CBigTable:r,CFieldSet:o,CButtonPrint:s,CSelectPerson:t,CSelectLabel:i,CLabelFormContent:a,CScaleView:m,CMap:d,CVodChunkUpload:n,CRadio:f,CCheckbox:p,CSelect:l,CDatetime:c,CInfoHeader:u,CTimeLine:x,CBaseSearch:C,CQuickSearch:h,CClassification:j,CBpmnWorkflow:k,CStepsWheel:b,CEditor:S,CFormRender:g,CFabricChart:F,CShortcutProvider:T,CShortcutSetter:v,CFormConfig:y,CIhoTable:D,CKeyboard:P,CSearchCascader:A,CRecommendSearch:R,CDatePicker:L,CTimePicker:w,CConfigProvider:E,CPictureClipper:I,CTableExportField:B,CExpandField:O,CIhoChat:V,CCallback:H,CSliderTree:K,CBodySelect:N,CDefaultPage:M,CStepNotice:W,CToothBitmap:q,CAiChat:G};var Q={install:function(e){Object.values(U).forEach((r=>{r.install(e)}))},...U};export{Q as default};
|
1
|
+
import e from"./grid/index.js";export{default as CGrid}from"./grid/index.js";import r from"./big-table/index.js";export{default as CBigTable}from"./big-table/index.js";import o from"./field-set/index.js";export{default as CFieldSet}from"./field-set/index.js";import s from"./button-print/index.js";export{default as CButtonPrint}from"./button-print/index.js";import t from"./select-person/index.js";export{default as CSelectPerson}from"./select-person/index.js";import i,{CLabelFormContent as a}from"./select-label/index.js";export{CLabelFormContent,default as CSelectLabel}from"./select-label/index.js";import d from"./map/index.js";export{default as CMap}from"./map/index.js";import n from"./vod-chunk-upload/index.js";export{default as CVodChunkUpload}from"./vod-chunk-upload/index.js";import{CScaleView as m,CRadio as p,CCheckbox as f,CSelect as l,CDatetime as c}from"./scale-view/index.js";export{CCheckbox,CDatetime,CRadio,CScaleView,CSelect}from"./scale-view/index.js";import u from"./info-header/index.js";export{default as CInfoHeader}from"./info-header/index.js";import x from"./time-line/index.js";export{default as CTimeLine}from"./time-line/index.js";import C from"./base-search/index.js";export{default as CBaseSearch}from"./base-search/index.js";import h from"./quick-search/index.js";export{default as CQuickSearch}from"./quick-search/index.js";import j from"./classification/index.js";export{default as CClassification}from"./classification/index.js";import k from"./bpmn-workflow/index.js";export{default as CBpmnWorkflow}from"./bpmn-workflow/index.js";import b from"./steps-wheel/index.js";export{default as CStepsWheel}from"./steps-wheel/index.js";import S from"./editor/index.js";export{default as CEditor}from"./editor/index.js";import g from"./form-render/index.js";export{default as CFormRender}from"./form-render/index.js";import F from"./fabric-chart/index.js";export{default as CFabricChart}from"./fabric-chart/index.js";import T from"./shortcut-provider/index.js";export{default as CShortcutProvider}from"./shortcut-provider/index.js";import v from"./shortcut-setter/index.js";export{default as CShortcutSetter}from"./shortcut-setter/index.js";import y from"./form-config/index.js";export{default as CFormConfig}from"./form-config/index.js";import D from"./iho-table/index.js";export{default as CIhoTable,useIhoTablePresetPlugins}from"./iho-table/index.js";import P from"./keyboard/index.js";export{default as CKeyboard}from"./keyboard/index.js";import R from"./search-cascader/index.js";export{default as CSearchCascader}from"./search-cascader/index.js";import A from"./recommend-search/index.js";export{default as CRecommendSearch}from"./recommend-search/index.js";import L from"./date-picker/index.js";export{default as CDatePicker}from"./date-picker/index.js";import w from"./time-picker/index.js";export{default as CTimePicker}from"./time-picker/index.js";import E from"./config-provider/index.js";export{default as CConfigProvider}from"./config-provider/index.js";import I from"./picture-clipper/index.js";export{default as CPictureClipper}from"./picture-clipper/index.js";import B from"./table-export-field/index.js";export{default as CTableExportField}from"./table-export-field/index.js";import O from"./expand-field/index.js";export{default as CExpandField}from"./expand-field/index.js";import V from"./iho-chat/index.js";export{default as CIhoChat}from"./iho-chat/index.js";import H from"./callback/index.js";export{default as CCallback}from"./callback/index.js";import K from"./slider-tree/index.js";export{default as CSliderTree}from"./slider-tree/index.js";import N from"./body-select/index.js";export{default as CBodySelect}from"./body-select/index.js";import M from"./default-page/index.js";export{default as CDefaultPage}from"./default-page/index.js";import W from"./step-notice/index.js";export{default as CStepNotice}from"./step-notice/index.js";import q from"./tooth-bitmap/index.js";export{default as CToothBitmap}from"./tooth-bitmap/index.js";import G from"./ai-chat/index.js";export{default as CAiChat}from"./ai-chat/index.js";import U from"./template-render/index.js";export{default as CTemplateRender}from"./template-render/index.js";export{default as CInsuranceSDK}from"./card-reader-sdk/src/insuranceSDK.js";export{default as CCardReaderSDK}from"./card-reader-sdk/src/cardReaderSDK.js";export{formatDateRangeInfo,presetValToDateRangestr,presetValToTimestamp}from"./table-filter/src/components/render-widget/helpers/presetValToTimestamp.js";export{DatePresetValEnums,DateRangeInnerValEnums,DateRangeOutDefEnums}from"./table-filter/src/components/render-widget/enums.js";export{createOpacityColor,useTheme}from"../shared/hooks/useTheme.js";export{handleInputEvent,useDateTime}from"../shared/hooks/useDateTime.js";export{AsyncQueue,ENTRY_STATE}from"../shared/hooks/useAsyncQueue/index.js";export{presetRequestHandler,useFormAsyncQueue,useFormRequest}from"../shared/hooks/useFormRequest/index.js";export{useLevelSearchCascader}from"../shared/hooks/useLevelSearchCascader.js";export{useSelectAllowModify}from"../shared/hooks/selectHooks/useSelectAllowModify.js";export{useOptionFiltered}from"../shared/hooks/selectHooks/useOptionFiltered.js";export{searchContentMatcher,useSearchContent}from"../shared/hooks/selectHooks/useSearchContent.js";export{useSelectRenders}from"../shared/hooks/selectHooks/useSelectRenders.js";export{useMenuWidthAuto}from"../shared/hooks/selectHooks/useMenuWidthAuto.js";export{useVersion}from"../shared/hooks/useVersion.js";export{useScrollLoading}from"../shared/hooks/useScrollLoading.js";export{vFlexibleResize}from"../shared/directive/flexibleResize.js";export{useGuide}from"./guide/src/useGuide.js";export{DragScroll,useDragScroll}from"./drag-scroll/src/index.js";export{default as CAudioSDK}from"./audio-sdk/src/audioSDK.js";export{useAnchor}from"./form-render/src/hooks/useAnchor.js";export{BusinessCollector,useBusinessBinding}from"./form-render/src/hooks/useBusinessBinding.js";export{ContextCollector,useChangeContext}from"./form-render/src/hooks/useChangeContext.js";export{useCommonInjection,useSelectOptionProps}from"./form-render/src/hooks/useCommonInjection.js";export{useCommonLog}from"./form-render/src/hooks/useCommonLog.js";export{useComplexOptions,useComplexOptionsSpan}from"./form-render/src/hooks/useComplexOptions.js";export{useFieldListAdaptor}from"./form-render/src/hooks/useFieldListAdaptor.js";export{useFieldNormalize}from"./form-render/src/hooks/useFieldNormalize.js";export{useFieldVisitor}from"./form-render/src/hooks/useFieldVisitor.js";export{useFormContext}from"./form-render/src/hooks/useFormContext.js";export{useFormDomEvent,useFormExposeEvent}from"./form-render/src/hooks/useFormEvent.js";export{useFormField}from"./form-render/src/hooks/useFormField.js";export{useFormGraph}from"./form-render/src/hooks/useFormGraph.js";export{FormItemDepsCollector,useFormItemDeps}from"./form-render/src/hooks/useFormItemDeps.js";export{useFormRenderLifeCycle}from"./form-render/src/hooks/useFormRenderLifeCycle.js";export{useAutographOptions,useRecommendOptions,useUrlConfigOptions}from"./form-render/src/hooks/useFormRenderOptions.js";export{useFormValidator,validateMessageLocale}from"./form-render/src/hooks/useFormValidator.js";export{useLowCodeEvent}from"./form-render/src/hooks/useLowCodeEvent.js";export{useLowCodeReactions}from"./form-render/src/hooks/useLowCodeReactions.js";export{useNuiThemeOverrides}from"./form-render/src/hooks/useNuiThemeOverrides.js";export{useOperationalForm}from"./form-render/src/hooks/useOperationalForm.js";export{usePresetScope}from"./form-render/src/hooks/usePresetScope.js";export{useWordbookSetting,wordbookSettingHandler}from"./form-render/src/hooks/useWordbookSetting.js";export{useNewLowCodeReactions}from"./form-render/src/hooks/useNewLowCodeReactions.js";export{useSelectedSetting}from"./form-render/src/hooks/useSelectedSetting.js";export{businessDateParser,isForeignerID,isIdCard,isMobile,parseAge2Birthday,parseAgeFromContext,parseBirthday,parseIdCard,transformDateFormat}from"./form-render/src/utils/business.js";export{findNextWidget,queryDecoratorByAddress,queryDecoratorByFieldKey,queryInput}from"./form-render/src/utils/dom.js";export{assignClearBindVisited,assignUpdateValue,assignValueBindKey,createFieldAddressId,createLinebarId,createObjSchema,createVisitedSetter,dotEscape,fieldKeyEscape,getParentLinebar,traverseDependKey,traverseSchema}from"./form-render/src/utils/schema.js";export{FieldListFilter,combineExtendKey,createInputSlot,createSlot,editorUnescape,findItemByValCondition,formRenderLog,getAbsoluteKey,injectOrProvide,isEnter,isNegative,isNestedFieldType,isNestedType,isPositive,mergeDeepProperties,parseEnhanceText,parseNumberFromMaybeString,renderDescOption,replace2Any,splitExtendKey,validateMessageParser}from"./form-render/src/utils/index.js";export{GlobalShortcutProvider,ShortcutManager,useShortcuts}from"./shortcut-provider/src/hooks/useShortcuts.js";export{useShortcutSignature}from"./shortcut-provider/src/hooks/useShortcutSignature.js";export{defineTablePlugin,useTablePlugin}from"./iho-table/src/hooks/useTablePlugin.js";export{useColumnConfigAdaptor}from"./iho-table/src/hooks/useColumnConfigAdaptor.js";export{AbstractConfigHooks,AbstractDataHooks,AbstractDomInsertHooks,AbstractEventHooks,AbstractExposeHooks,AbstractFieldHooks,AbstractSetupHooks}from"./iho-table/src/types/pluginType.js";export{Print}from"./button-print/src/utils/print.js";export{getFileUrl,isIReport,useBrowserPrint}from"./button-print/src/utils/browserPrint.js";export{transformOriginToTree}from"./slider-tree/src/utils/index.js";const Q={CGrid:e,CBigTable:r,CFieldSet:o,CButtonPrint:s,CSelectPerson:t,CSelectLabel:i,CLabelFormContent:a,CScaleView:m,CMap:d,CVodChunkUpload:n,CRadio:p,CCheckbox:f,CSelect:l,CDatetime:c,CInfoHeader:u,CTimeLine:x,CBaseSearch:C,CQuickSearch:h,CClassification:j,CBpmnWorkflow:k,CStepsWheel:b,CEditor:S,CFormRender:g,CFabricChart:F,CShortcutProvider:T,CShortcutSetter:v,CFormConfig:y,CIhoTable:D,CKeyboard:P,CSearchCascader:R,CRecommendSearch:A,CDatePicker:L,CTimePicker:w,CConfigProvider:E,CPictureClipper:I,CTableExportField:B,CExpandField:O,CIhoChat:V,CCallback:H,CSliderTree:K,CBodySelect:N,CDefaultPage:M,CStepNotice:W,CToothBitmap:q,CAiChat:G,CTemplateRender:U};var z={install:function(e){Object.values(Q).forEach((r=>{r.install(e)}))},...Q};export{z as default};
|
@@ -0,0 +1,60 @@
|
|
1
|
+
import { SFCWithInstall } from '../../shared/types';
|
2
|
+
declare const TemplateRender: SFCWithInstall<import("vue").DefineComponent<{
|
3
|
+
config: {
|
4
|
+
type: import("vue").PropType<{
|
5
|
+
templateStyle?: import("vue").CSSProperties | undefined;
|
6
|
+
templates: import("../../shared/types").AnyObject[];
|
7
|
+
}>;
|
8
|
+
};
|
9
|
+
data: {
|
10
|
+
default: () => {};
|
11
|
+
type: import("vue").PropType<import("../../shared/types").AnyObject>;
|
12
|
+
};
|
13
|
+
renders: {
|
14
|
+
type: import("vue").PropType<Record<string, () => import("vue").VNodeChild>>;
|
15
|
+
};
|
16
|
+
}, {
|
17
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
18
|
+
config: {
|
19
|
+
type: import("vue").PropType<{
|
20
|
+
templateStyle?: import("vue").CSSProperties | undefined;
|
21
|
+
templates: import("../../shared/types").AnyObject[];
|
22
|
+
}>;
|
23
|
+
};
|
24
|
+
data: {
|
25
|
+
default: () => {};
|
26
|
+
type: import("vue").PropType<import("../../shared/types").AnyObject>;
|
27
|
+
};
|
28
|
+
renders: {
|
29
|
+
type: import("vue").PropType<Record<string, () => import("vue").VNodeChild>>;
|
30
|
+
};
|
31
|
+
}>> & {
|
32
|
+
"onButton-click"?: ((...args: any[]) => any) | undefined;
|
33
|
+
"onModule-click"?: ((...args: any[]) => any) | undefined;
|
34
|
+
}>>;
|
35
|
+
cssVars: import("vue").ComputedRef<import("../../shared/types").AnyObject>;
|
36
|
+
emit: (event: "button-click" | "module-click", ...args: any[]) => void;
|
37
|
+
style: import("vue").ComputedRef<any>;
|
38
|
+
componentsFieldList: import("vue").ComputedRef<import("../../shared/types").AnyObject[]>;
|
39
|
+
getComponent: typeof import("./src/components").getComponent;
|
40
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("button-click" | "module-click")[], "button-click" | "module-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
41
|
+
config: {
|
42
|
+
type: import("vue").PropType<{
|
43
|
+
templateStyle?: import("vue").CSSProperties | undefined;
|
44
|
+
templates: import("../../shared/types").AnyObject[];
|
45
|
+
}>;
|
46
|
+
};
|
47
|
+
data: {
|
48
|
+
default: () => {};
|
49
|
+
type: import("vue").PropType<import("../../shared/types").AnyObject>;
|
50
|
+
};
|
51
|
+
renders: {
|
52
|
+
type: import("vue").PropType<Record<string, () => import("vue").VNodeChild>>;
|
53
|
+
};
|
54
|
+
}>> & {
|
55
|
+
"onButton-click"?: ((...args: any[]) => any) | undefined;
|
56
|
+
"onModule-click"?: ((...args: any[]) => any) | undefined;
|
57
|
+
}, {
|
58
|
+
data: import("../../shared/types").AnyObject;
|
59
|
+
}>>;
|
60
|
+
export default TemplateRender;
|
@@ -0,0 +1 @@
|
|
1
|
+
import{COMPONENT_NAMESPACE as e}from"../../shared/global/variable.js";import{safeComponentRegister as r}from"../../shared/utils/index.js";import t from"./src/TemplateRender.vue.js";const a=t;a.install=function(t){r(t,a,e+"TemplateRender")};export{a as default};
|
@@ -0,0 +1,62 @@
|
|
1
|
+
import { PropType, VNodeChild, CSSProperties } from 'vue';
|
2
|
+
import { getComponent } from './components';
|
3
|
+
import { AnyObject } from '../../../shared/types';
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
5
|
+
config: {
|
6
|
+
type: PropType<{
|
7
|
+
templateStyle?: CSSProperties | undefined;
|
8
|
+
templates: AnyObject[];
|
9
|
+
}>;
|
10
|
+
};
|
11
|
+
data: {
|
12
|
+
default: () => {};
|
13
|
+
type: PropType<AnyObject>;
|
14
|
+
};
|
15
|
+
renders: {
|
16
|
+
type: PropType<Record<string, () => VNodeChild>>;
|
17
|
+
};
|
18
|
+
}, {
|
19
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
20
|
+
config: {
|
21
|
+
type: PropType<{
|
22
|
+
templateStyle?: CSSProperties | undefined;
|
23
|
+
templates: AnyObject[];
|
24
|
+
}>;
|
25
|
+
};
|
26
|
+
data: {
|
27
|
+
default: () => {};
|
28
|
+
type: PropType<AnyObject>;
|
29
|
+
};
|
30
|
+
renders: {
|
31
|
+
type: PropType<Record<string, () => VNodeChild>>;
|
32
|
+
};
|
33
|
+
}>> & {
|
34
|
+
"onButton-click"?: ((...args: any[]) => any) | undefined;
|
35
|
+
"onModule-click"?: ((...args: any[]) => any) | undefined;
|
36
|
+
}>>;
|
37
|
+
cssVars: import("vue").ComputedRef<AnyObject>;
|
38
|
+
emit: (event: "button-click" | "module-click", ...args: any[]) => void;
|
39
|
+
style: import("vue").ComputedRef<any>;
|
40
|
+
componentsFieldList: import("vue").ComputedRef<AnyObject[]>;
|
41
|
+
getComponent: typeof getComponent;
|
42
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("button-click" | "module-click")[], "button-click" | "module-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
43
|
+
config: {
|
44
|
+
type: PropType<{
|
45
|
+
templateStyle?: CSSProperties | undefined;
|
46
|
+
templates: AnyObject[];
|
47
|
+
}>;
|
48
|
+
};
|
49
|
+
data: {
|
50
|
+
default: () => {};
|
51
|
+
type: PropType<AnyObject>;
|
52
|
+
};
|
53
|
+
renders: {
|
54
|
+
type: PropType<Record<string, () => VNodeChild>>;
|
55
|
+
};
|
56
|
+
}>> & {
|
57
|
+
"onButton-click"?: ((...args: any[]) => any) | undefined;
|
58
|
+
"onModule-click"?: ((...args: any[]) => any) | undefined;
|
59
|
+
}, {
|
60
|
+
data: AnyObject;
|
61
|
+
}>;
|
62
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
import e from"./TemplateRender.vue2.js";import r from"../../../_virtual/_plugin-vue_export-helper.js";var p=r(e,[["__file","TemplateRender.vue"]]);export{p as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{defineComponent as e,computed as t,provide as o,openBlock as s,createElementBlock as r,normalizeStyle as i,unref as a,Fragment as n,renderList as m,createBlock as l,resolveDynamicComponent as p,createSlots as d,withCtx as c,renderSlot as u,normalizeProps as f,guardReactiveProps as h}from"vue";import{getComponent as v}from"./components/index.js";import{findValueIsEmpty as j}from"./utils/index.js";import{InjectionTemplateRender as g,InjectionTemplateRenderEmit as y}from"./constants/index.js";import{useTheme as k}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import"lodash-es";import"@vue/shared";import"../../../shared/utils/index.js";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import"naive-ui";import"../../../shared/hooks/useScrollLoading.js";var b=e({__name:"TemplateRender",props:{config:{type:Object},data:{default:()=>({}),type:Object},renders:{type:Object}},emits:["module-click","button-click"],setup(e,{emit:b}){const x=e,O=k(),S=t((()=>{var e;return{...O,...null==(e=x.config)?void 0:e.templateStyle}})),_=t((()=>{var e;return(null==(e=x.config)?void 0:e.templates)?x.config.templates.filter((e=>!e.setting.emptyHide||j(e,x.data))):[]}));return o(g,{...x,globalData:x.data}),o(y,b),(t,o)=>(s(),r("div",{class:"c-template-render",style:i(a(S))},[(s(!0),r(n,null,m(a(_),((o,r)=>(s(),l(p(a(v)(o.type)),{key:r,config:o,data:e.data},d({_:2},[m(t.$slots,((e,o)=>({name:o,fn:c((e=>[u(t.$slots,o,f(h(e)))]))})))]),1032,["config","data"])))),128))],4))}});export{b as default};
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import { PropType } from 'vue';
|
2
|
+
import { AnyObject } from '../../../../shared/types';
|
3
|
+
import { getComponent } from './index';
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
5
|
+
config: {
|
6
|
+
default: () => {};
|
7
|
+
type: PropType<AnyObject>;
|
8
|
+
};
|
9
|
+
data: {
|
10
|
+
default: () => {};
|
11
|
+
type: PropType<AnyObject>;
|
12
|
+
};
|
13
|
+
}, {
|
14
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
15
|
+
config: {
|
16
|
+
default: () => {};
|
17
|
+
type: PropType<AnyObject>;
|
18
|
+
};
|
19
|
+
data: {
|
20
|
+
default: () => {};
|
21
|
+
type: PropType<AnyObject>;
|
22
|
+
};
|
23
|
+
}>> & {}>>;
|
24
|
+
setting: import("vue").ComputedRef<any>;
|
25
|
+
dataComp: import("vue").ComputedRef<any[]>;
|
26
|
+
handleModuleClick: (data: AnyObject) => void;
|
27
|
+
isDisplayMatch: import("vue").ComputedRef<any>;
|
28
|
+
containerColStyle: import("vue").ComputedRef<any>;
|
29
|
+
componentsFieldList: (_data: any) => any;
|
30
|
+
getComponent: typeof getComponent;
|
31
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
32
|
+
config: {
|
33
|
+
default: () => {};
|
34
|
+
type: PropType<AnyObject>;
|
35
|
+
};
|
36
|
+
data: {
|
37
|
+
default: () => {};
|
38
|
+
type: PropType<AnyObject>;
|
39
|
+
};
|
40
|
+
}>>, {
|
41
|
+
data: AnyObject;
|
42
|
+
config: AnyObject;
|
43
|
+
}>;
|
44
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
import e from"./Box.vue2.js";import r from"../../../../_virtual/_plugin-vue_export-helper.js";var o=r(e,[["__file","Box.vue"]]);export{o as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{defineComponent as t,computed as o,unref as n,openBlock as e,createElementBlock as i,Fragment as a,renderList as l,normalizeStyle as s,normalizeClass as r,withModifiers as d,createBlock as c,resolveDynamicComponent as f,createSlots as u,withCtx as p,renderSlot as m,normalizeProps as g,guardReactiveProps as y,createCommentVNode as v}from"vue";import{cloneDeep as C}from"lodash-es";import{isFactor as k,getCurText as h,getRealWidth as x,transNumberToPx as b,findValueIsEmpty as j}from"../utils/index.js";import{getComponent as _}from"./index.js";import{useCommon as z}from"../hooks/useCommon.js";const O=["onClick"];var S=t({__name:"Box",props:{config:{default:()=>({}),type:Object},data:{default:()=>({}),type:Object}},setup(t){const S=t,{setting:$,dataComp:w,handleModuleClick:B}=z(S),H=o((()=>{const{displayCondition:t=[]}=$.value.advancedConfig||{};return!t.length||t.some((t=>k(t,h(S.data[t.field_key]))))})),M=o((()=>{const{containerStyle:t={},colStyle:o={},unitConfig:n={}}=$.value,e=x(t,n);return{"font-size":"14px",...b(t),...b(o),width:e,"box-sizing":"border-box"}}));function q(t){var o,n,e;const i=(null==(e=null==(n=null==(o=S.config)?void 0:o.childrens)?void 0:n[0])?void 0:e.children)||[];return C(i).filter((o=>{const n={config:S.config,data:S.data};return o.parentConfig=n,!o.setting.emptyHide||j(o,t)}))}return(t,o)=>n(H)?(e(!0),i(a,{key:0},l(n(w),((o,v)=>(e(),i("div",{key:v,style:s(n(M)),class:r(n($).containerClass),onClick:d((()=>n(B)(o)),["stop"])},[(e(!0),i(a,null,l(q(o),((i,a)=>(e(),c(f(n(_)(i.type)),{key:a,config:i,data:o},u({_:2},[l(t.$slots,((o,n)=>({name:n,fn:p((o=>[m(t.$slots,n,g(y(o)))]))})))]),1032,["config","data"])))),128))],14,O)))),128)):v("v-if",!0)}});export{S as default};
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import { PropType } from 'vue';
|
2
|
+
import { AnyObject } from '../../../../shared/types';
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
4
|
+
config: {
|
5
|
+
default: () => {};
|
6
|
+
type: PropType<AnyObject>;
|
7
|
+
};
|
8
|
+
data: {
|
9
|
+
default: () => {};
|
10
|
+
type: PropType<AnyObject>;
|
11
|
+
};
|
12
|
+
}, {
|
13
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
14
|
+
config: {
|
15
|
+
default: () => {};
|
16
|
+
type: PropType<AnyObject>;
|
17
|
+
};
|
18
|
+
data: {
|
19
|
+
default: () => {};
|
20
|
+
type: PropType<AnyObject>;
|
21
|
+
};
|
22
|
+
}>> & {}>>;
|
23
|
+
emit: (event: string, ...args: any[]) => void;
|
24
|
+
setting: import("vue").ComputedRef<any>;
|
25
|
+
showButtonList: import("vue").ComputedRef<any>;
|
26
|
+
containerFlexStyle: import("vue").ComputedRef<any>;
|
27
|
+
noMargin: (buttonItem: AnyObject, index: number) => any;
|
28
|
+
getButtonDisabledStatus: (button: AnyObject) => false | {
|
29
|
+
disabled: boolean;
|
30
|
+
title: any;
|
31
|
+
};
|
32
|
+
getDisabledText: (button: AnyObject) => any;
|
33
|
+
getButtonStyle: (button: AnyObject) => AnyObject;
|
34
|
+
handleButtonClick: (button: AnyObject) => void;
|
35
|
+
NButton: any;
|
36
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
37
|
+
config: {
|
38
|
+
default: () => {};
|
39
|
+
type: PropType<AnyObject>;
|
40
|
+
};
|
41
|
+
data: {
|
42
|
+
default: () => {};
|
43
|
+
type: PropType<AnyObject>;
|
44
|
+
};
|
45
|
+
}>>, {
|
46
|
+
data: AnyObject;
|
47
|
+
config: AnyObject;
|
48
|
+
}>;
|
49
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
import t from"./Button.vue2.js";import e from"../../../../_virtual/_plugin-vue_export-helper.js";var r=e(t,[["__file","Button.vue"]]);export{r as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{defineComponent as t,inject as n,computed as e,openBlock as o,createElementBlock as i,normalizeStyle as l,unref as r,normalizeClass as s,Fragment as u,renderList as a,createBlock as d,mergeProps as c,withModifiers as f,withCtx as p,createTextVNode as v,toDisplayString as m}from"vue";import{cloneDeep as b,isObject as g}from"lodash-es";import{InjectionTemplateRenderEmit as y}from"../constants/index.js";import{getRealWidth as k,transNumberToPx as x,isFactor as _,getCurText as C}from"../utils/index.js";import{NButton as h}from"naive-ui";var j=t({__name:"Button",props:{config:{default:()=>({}),type:Object},data:{default:()=>({}),type:Object}},setup(t){const j=t,z=n(y),O=e((()=>{var t;return b((null==(t=j.config)?void 0:t.setting)||{})})),S=e((()=>O.value.buttonList||[])),w=e((()=>{const{containerStyle:t={},unitConfig:n={}}=O.value,e=k(t,n);return{"font-size":"14px",...x(t),width:e,"box-sizing":"border-box"}}));function B(t,n){var e;return t.props.block||n===(null==(e=S.value)?void 0:e.length)-1}function L(t){var n,e;const o=(null==(n=null==t?void 0:t.advancedConfig)?void 0:n.disabled)||{};if((null==(e=o.conditions)?void 0:e.length)>0){if(o.conditions.some((t=>_(t,C(j.data[t.field_key])))))return{disabled:!0,title:null==o?void 0:o.title}}return!1}function T(t){const n=L(t),e=t.customTitle||t.name;return g(n)&&n.title?n.title:e}function q(t){return x(null==t?void 0:t.buttonStyle)||{}}return(t,n)=>(o(),i("div",{style:l(r(w)),class:s(r(O).containerClass)},[(o(!0),i(u,null,a(r(S),((t,n)=>(o(),d(r(h),c({class:B(t,n)?"":"c-template-render__mgr8",key:n},t.props,{style:q(t),disabled:!!L(t),onClick:f((()=>function(t){z("button-click",{...b(j),button:t})}(t)),["stop"])}),{default:p((()=>[v(m(T(t)),1)])),_:2},1040,["class","style","disabled","onClick"])))),128))],6))}});export{j as default};
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { PropType } from 'vue';
|
2
|
+
import { AnyObject } from '../../../../shared/types';
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
4
|
+
config: {
|
5
|
+
default: () => {};
|
6
|
+
type: PropType<AnyObject>;
|
7
|
+
};
|
8
|
+
}, {
|
9
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
10
|
+
config: {
|
11
|
+
default: () => {};
|
12
|
+
type: PropType<AnyObject>;
|
13
|
+
};
|
14
|
+
}>> & {}>>;
|
15
|
+
setting: import("vue").ComputedRef<any>;
|
16
|
+
containerDividerStyle: import("vue").ComputedRef<any>;
|
17
|
+
NDivider: any;
|
18
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
19
|
+
config: {
|
20
|
+
default: () => {};
|
21
|
+
type: PropType<AnyObject>;
|
22
|
+
};
|
23
|
+
}>>, {
|
24
|
+
config: AnyObject;
|
25
|
+
}>;
|
26
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
import e from"./Divider.vue2.js";import r from"../../../../_virtual/_plugin-vue_export-helper.js";var i=r(e,[["__file","Divider.vue"]]);export{i as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{defineComponent as t,computed as r,openBlock as e,createBlock as i,unref as o,normalizeStyle as n}from"vue";import{getRealWidth as u,transNumberToPx as l}from"../utils/index.js";import{NDivider as s}from"naive-ui";var a=t({__name:"Divider",props:{config:{default:()=>({}),type:Object}},setup(t){const a=t,f=r((()=>{var t;return(null==(t=a.config)?void 0:t.setting)||{}})),m=r((()=>{const{containerStyle:t={},unitConfig:r={}}=f.value,e=u(t,r);return{color:"#EBEBEB",margin:0,...l(t),width:e,"box-sizing":"border-box"}}));return(t,r)=>(e(),i(o(s),{style:n(o(m))},null,8,["style"]))}});export{a as default};
|
@@ -0,0 +1,56 @@
|
|
1
|
+
import { PropType } from 'vue';
|
2
|
+
import { AnyObject } from '../../../../shared/types';
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
4
|
+
config: {
|
5
|
+
default: () => {};
|
6
|
+
type: PropType<AnyObject>;
|
7
|
+
};
|
8
|
+
data: {
|
9
|
+
default: () => {};
|
10
|
+
type: PropType<AnyObject>;
|
11
|
+
};
|
12
|
+
}, {
|
13
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
14
|
+
config: {
|
15
|
+
default: () => {};
|
16
|
+
type: PropType<AnyObject>;
|
17
|
+
};
|
18
|
+
data: {
|
19
|
+
default: () => {};
|
20
|
+
type: PropType<AnyObject>;
|
21
|
+
};
|
22
|
+
}>> & {}>>;
|
23
|
+
setting: import("vue").ComputedRef<any>;
|
24
|
+
handleModuleClick: (data: AnyObject) => void;
|
25
|
+
prefixText: import("vue").ComputedRef<any>;
|
26
|
+
suffixText: import("vue").ComputedRef<any>;
|
27
|
+
finalContent: import("vue").ComputedRef<any>;
|
28
|
+
showRowNum: import("vue").ComputedRef<any>;
|
29
|
+
isShowTitle: import("vue").ComputedRef<any>;
|
30
|
+
titleStyle: import("vue").ComputedRef<any>;
|
31
|
+
contentStyle: import("vue").ComputedRef<any>;
|
32
|
+
showClass: import("vue").ComputedRef<any>;
|
33
|
+
containerStyle: import("vue").ComputedRef<any>;
|
34
|
+
onlyShowEllipsis: import("vue").ComputedRef<boolean>;
|
35
|
+
onlyShowMore: import("vue").ComputedRef<boolean>;
|
36
|
+
isDisplayMatch: import("vue").ComputedRef<any>;
|
37
|
+
conditionalObj: import("vue").ComputedRef<AnyObject>;
|
38
|
+
getFieldText: import("vue").ComputedRef<any>;
|
39
|
+
emptyPlaceholder: import("vue").ComputedRef<any>;
|
40
|
+
getFieldColor: import("vue").ComputedRef<any>;
|
41
|
+
conditionMatch: (list: AnyObject[]) => {};
|
42
|
+
NEllipsis: any;
|
43
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
44
|
+
config: {
|
45
|
+
default: () => {};
|
46
|
+
type: PropType<AnyObject>;
|
47
|
+
};
|
48
|
+
data: {
|
49
|
+
default: () => {};
|
50
|
+
type: PropType<AnyObject>;
|
51
|
+
};
|
52
|
+
}>>, {
|
53
|
+
data: AnyObject;
|
54
|
+
config: AnyObject;
|
55
|
+
}>;
|
56
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
import e from"./Field.vue2.js";import r from"../../../../_virtual/_plugin-vue_export-helper.js";var i=r(e,[["__file","Field.vue"]]);export{i as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{defineComponent as e,computed as t,unref as l,openBlock as n,createElementBlock as a,normalizeClass as i,normalizeStyle as o,withModifiers as s,createElementVNode as r,toDisplayString as c,createCommentVNode as u,createBlock as d,withCtx as v,createTextVNode as p}from"vue";import{transNumberToPx as f,getRealWidth as y,isFactor as k,getCurText as m}from"../utils/index.js";import{NEllipsis as g}from"naive-ui";import{useCommon as b}from"../hooks/useCommon.js";const h={key:0},x={key:2},C={key:2};var w=e({__name:"Field",props:{config:{default:()=>({}),type:Object},data:{default:()=>({}),type:Object}},setup(e){const w=e,{setting:_,handleModuleClick:j}=b(w),O=t((()=>_.value.prefix||"")),S=t((()=>_.value.suffix||"")),z=t((()=>D.value?O.value+D.value+S.value:E.value)),F=t((()=>_.value.rowNum||1)),L=t((()=>_.value.showTitle&&_.value.title)),N=t((()=>({...f(_.value.titleStyle),"box-sizing":"border-box"}))),M=t((()=>({...f(_.value.contentStyle),"word-break":"break-all","white-space":"normal","box-sizing":"border-box"}))),B=t((()=>{let e=_.value.containerClass||"";return _.value.prefixBar&&(e=`c-template-render__bar ${e}`),e})),P=t((()=>{const{containerStyle:e={},unitConfig:t={}}=_.value,l=y(e,t);return{"font-size":"14px",...f(e),width:l,"box-sizing":"border-box"}})),T=t((()=>"ellipsis"==_.value.textOverflow)),$=t((()=>"showMore"==_.value.textOverflow)),q=t((()=>{const{displayCondition:e=[]}=_.value.advancedConfig||{};return!e.length||e.some((e=>k(e,m(w.data[e.field_key]))))})),A=t((()=>{const{conditionalShowList:e=[]}=_.value.advancedConfig||{};return e.length>0?H(e):{}})),D=t((()=>{const{conditionalShowList:e=[],mappingFiled:t=[]}=_.value.advancedConfig||{},l=H(e);if(Object.keys(l).length>0){const e=m(w.data[null==l?void 0:l.fieldName]||"");if(e)return e}const n=H(t);if(Object.keys(n).length>0){const e=null==n?void 0:n.key;if(e)return e}return m(w.data[_.value.fieldName])||""})),E=t((()=>_.value.emptyPlaceholder||"--")),G=t((()=>{const{conditionalShowList:e=[],mappingFiled:t=[]}=_.value.advancedConfig||{},l=H(e);if(Object.keys(l).length>0)return"";const n=H(t);return Object.keys(n).length>0?null==n?void 0:n.color:""}));function H(e){let t={};for(let l=0;l<e.length;l++){const n=e[l];if(n.conditions.some((e=>k(e,m(w.data[e.field_key]))))){t=n;break}}return t}return(t,f)=>l(q)?(n(),a("div",{key:0,class:i(l(B)),style:o(l(P))},[l(L)?(n(),a("span",{key:0,class:i(["c-template-render__color60",l(_).titleClass]),style:o(l(N)),onClick:f[0]||(f[0]=s((()=>l(j)(e.data)),["stop"]))},[r("span",null,c(l(A).title||l(_).title),1)],6)):u("v-if",!0),u(" 如果有枚举判断的颜色,则不考虑查看更多的筛选 "),l(G)?(n(),a("span",{key:1,style:o(l(M)),class:i(l(_).contentClass),onClick:f[1]||(f[1]=(...e)=>l(j)&&l(j)(...e))},[l(O)&&l(D)?(n(),a("span",h,c(l(O)),1)):u("v-if",!0),l(G)?(n(),a("span",{key:1,style:o({color:l(G)})},c(l(D)||l(E)),5)):u("v-if",!0),l(S)&&l(D)?(n(),a("span",x,c(l(S)),1)):u("v-if",!0)],6)):(n(),a("span",{key:2,style:o(l(M)),class:i(l(_).contentClass),onClick:f[2]||(f[2]=(...e)=>l(j)&&l(j)(...e))},[l(T)?(n(),a("span",{key:0,class:"c-template-render__text-ellipsis",style:o({"-webkit-line-clamp":l(F)})},c(l(z)),5)):l($)?(n(),d(l(g),{key:1,"expand-trigger":"click","line-clamp":l(F)},{default:v((()=>[p(c(l(z)),1)])),_:1},8,["line-clamp"])):(n(),a("span",C,c(l(z)),1))],6))],6)):u("v-if",!0)}});export{w as default};
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import { PropType } from 'vue';
|
2
|
+
import { AnyObject } from '../../../../shared/types';
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
4
|
+
config: {
|
5
|
+
default: () => {};
|
6
|
+
type: PropType<AnyObject>;
|
7
|
+
};
|
8
|
+
data: {
|
9
|
+
default: () => {};
|
10
|
+
type: PropType<AnyObject>;
|
11
|
+
};
|
12
|
+
}, {
|
13
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
14
|
+
config: {
|
15
|
+
default: () => {};
|
16
|
+
type: PropType<AnyObject>;
|
17
|
+
};
|
18
|
+
data: {
|
19
|
+
default: () => {};
|
20
|
+
type: PropType<AnyObject>;
|
21
|
+
};
|
22
|
+
}>> & {}>>;
|
23
|
+
setting: import("vue").ComputedRef<any>;
|
24
|
+
handleModuleClick: (data: AnyObject) => void;
|
25
|
+
showContent: import("vue").ComputedRef<any>;
|
26
|
+
finalContent: import("vue").ComputedRef<any>;
|
27
|
+
showRowNum: import("vue").ComputedRef<any>;
|
28
|
+
isShowTitle: import("vue").ComputedRef<any>;
|
29
|
+
emptyPlaceholder: import("vue").ComputedRef<any>;
|
30
|
+
titleStyle: import("vue").ComputedRef<any>;
|
31
|
+
contentStyle: import("vue").ComputedRef<any>;
|
32
|
+
showClass: import("vue").ComputedRef<any>;
|
33
|
+
containerStyle: import("vue").ComputedRef<any>;
|
34
|
+
onlyShowEllipsis: import("vue").ComputedRef<boolean>;
|
35
|
+
onlyShowMore: import("vue").ComputedRef<boolean>;
|
36
|
+
NEllipsis: any;
|
37
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
38
|
+
config: {
|
39
|
+
default: () => {};
|
40
|
+
type: PropType<AnyObject>;
|
41
|
+
};
|
42
|
+
data: {
|
43
|
+
default: () => {};
|
44
|
+
type: PropType<AnyObject>;
|
45
|
+
};
|
46
|
+
}>>, {
|
47
|
+
data: AnyObject;
|
48
|
+
config: AnyObject;
|
49
|
+
}>;
|
50
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
import e from"./FieldGroup.vue2.js";import r from"../../../../_virtual/_plugin-vue_export-helper.js";var o=r(e,[["__file","FieldGroup.vue"]]);export{o as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{defineComponent as e,computed as l,openBlock as t,createElementBlock as a,normalizeClass as r,unref as i,normalizeStyle as s,withModifiers as o,toDisplayString as n,createCommentVNode as u,createElementVNode as c,createBlock as d,withCtx as p,createTextVNode as v}from"vue";import{getCurText as f,transNumberToPx as m,getRealWidth as x}from"../utils/index.js";import{NEllipsis as b}from"naive-ui";import{useCommon as y}from"../hooks/useCommon.js";const k={key:2};var g=e({__name:"FieldGroup",props:{config:{default:()=>({}),type:Object},data:{default:()=>({}),type:Object}},setup(e){const g=e,{setting:h,handleModuleClick:w}=y(g),_=l((()=>{if(!h.value.fields)return"";const{delimiter:e,fieldNames:l}=h.value.fields,t=(null==e?void 0:e.length)||0;if((null==l?void 0:l.length)>0){const a=l.reduce(((l,a)=>{const r=t?e:"";return l+(g.data[a]?f(g.data[a])+r:"")}),"");return t>0?a.slice(0,-t):a}return""})),C=l((()=>{const{prefix:e,suffix:l}=h.value,t=e&&_.value?e:"",a=l&&_.value?l:"";return _.value?t+_.value+a:O.value})),j=l((()=>h.value.rowNum||1)),z=l((()=>h.value.showTitle&&h.value.title)),O=l((()=>h.value.emptyPlaceholder||"--")),S=l((()=>({...m(h.value.titleStyle),"box-sizing":"border-box"}))),M=l((()=>({...m(h.value.contentStyle),"word-break":"break-all","white-space":"normal","box-sizing":"border-box"}))),N=l((()=>{let e=h.value.containerClass||"";return h.value.prefixBar&&(e=`c-template-render__bar ${e}`),e})),B=l((()=>{const{containerStyle:e={},unitConfig:l={}}=h.value,t=x(e,l);return{"font-size":"14px",...m(e),width:t,"box-sizing":"border-box"}})),F=l((()=>"ellipsis"==h.value.textOverflow)),G=l((()=>"showMore"==h.value.textOverflow));return(l,f)=>(t(),a("div",{class:r(i(N)),style:s(i(B)),onClick:f[0]||(f[0]=o((()=>i(w)(e.data)),["stop"]))},[i(z)?(t(),a("span",{key:0,class:r(["c-template-render__color60",i(h).titleClass]),style:s(i(S))},n(i(h).title)+": ",7)):u("v-if",!0),c("span",{style:s(i(M)),class:r(i(h).contentClass)},[i(F)?(t(),a("span",{key:0,class:"c-template-render__text-ellipsis",style:s({"-webkit-line-clamp":i(j)})},n(i(C)),5)):i(G)?(t(),d(i(b),{key:1,"expand-trigger":"click","line-clamp":i(j)},{default:p((()=>[v(n(i(C)),1)])),_:1},8,["line-clamp"])):(t(),a("span",k,n(i(C)),1))],6)],6))}});export{g as default};
|
@@ -0,0 +1,52 @@
|
|
1
|
+
import { PropType } from 'vue';
|
2
|
+
import { AnyObject } from '../../../../shared/types';
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
4
|
+
config: {
|
5
|
+
default: () => {};
|
6
|
+
type: PropType<AnyObject>;
|
7
|
+
};
|
8
|
+
data: {
|
9
|
+
default: () => {};
|
10
|
+
type: PropType<AnyObject>;
|
11
|
+
};
|
12
|
+
}, {
|
13
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
14
|
+
config: {
|
15
|
+
default: () => {};
|
16
|
+
type: PropType<AnyObject>;
|
17
|
+
};
|
18
|
+
data: {
|
19
|
+
default: () => {};
|
20
|
+
type: PropType<AnyObject>;
|
21
|
+
};
|
22
|
+
}>> & {}>>;
|
23
|
+
setting: import("vue").ComputedRef<any>;
|
24
|
+
handleModuleClick: (data: AnyObject) => void;
|
25
|
+
imgProps: import("vue").ComputedRef<{
|
26
|
+
alt: any;
|
27
|
+
objectFit: any;
|
28
|
+
src: any;
|
29
|
+
imgProps: {
|
30
|
+
objectPosition: string;
|
31
|
+
};
|
32
|
+
style: {
|
33
|
+
borderRadius: any;
|
34
|
+
};
|
35
|
+
}>;
|
36
|
+
containerColStyle: import("vue").ComputedRef<any>;
|
37
|
+
getPosition: (position: string) => "center top" | "right center" | "center bottom" | "center center";
|
38
|
+
NImage: any;
|
39
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
40
|
+
config: {
|
41
|
+
default: () => {};
|
42
|
+
type: PropType<AnyObject>;
|
43
|
+
};
|
44
|
+
data: {
|
45
|
+
default: () => {};
|
46
|
+
type: PropType<AnyObject>;
|
47
|
+
};
|
48
|
+
}>>, {
|
49
|
+
data: AnyObject;
|
50
|
+
config: AnyObject;
|
51
|
+
}>;
|
52
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
import e from"./Image.vue2.js";import r from"../../../../_virtual/_plugin-vue_export-helper.js";var a=r(e,[["__file","Image.vue"]]);export{a as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{defineComponent as t,computed as e,openBlock as o,createElementBlock as r,normalizeClass as a,unref as i,normalizeStyle as n,withModifiers as s,createVNode as l,mergeProps as c}from"vue";import{transNumberToPx as u}from"../utils/index.js";import{NImage as p}from"naive-ui";import{useCommon as d}from"../hooks/useCommon.js";var m=t({__name:"Image",props:{config:{default:()=>({}),type:Object},data:{default:()=>({}),type:Object}},setup(t){const m=t,{setting:f,handleModuleClick:b}=d(m),g=e((()=>{var t;const{props:e={},fieldName:o,customUpload:r,imageUrl:a}=f.value;return{alt:e.alt,objectFit:e.fit,src:r?a:e.data[o],imgProps:{objectPosition:j(e.position)},style:{borderRadius:e.round?null!=(t=e.radius)?t:"0px":"0"}}})),v=e((()=>({"font-size":"14px",...u(f.value.containerStyle),"box-sizing":"border-box"})));function j(t){switch(t){case"top":return"center top";case"right":return"right center";case"bottom":case"left":return"center bottom";default:return"center center"}}return(e,u)=>(o(),r("div",{class:a(i(f).containerClass),style:n(i(v)),onClick:u[0]||(u[0]=s((()=>i(b)(t.data)),["stop"]))},[l(i(p),c({"preview-disabled":""},i(g)),null,16)],6))}});export{m as default};
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { PropType } from 'vue';
|
2
|
+
import { AnyObject } from '../../../../shared/types';
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
4
|
+
config: {
|
5
|
+
default: () => {};
|
6
|
+
type: PropType<AnyObject>;
|
7
|
+
};
|
8
|
+
data: {
|
9
|
+
default: () => {};
|
10
|
+
type: PropType<AnyObject>;
|
11
|
+
};
|
12
|
+
}, {
|
13
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
14
|
+
config: {
|
15
|
+
default: () => {};
|
16
|
+
type: PropType<AnyObject>;
|
17
|
+
};
|
18
|
+
data: {
|
19
|
+
default: () => {};
|
20
|
+
type: PropType<AnyObject>;
|
21
|
+
};
|
22
|
+
}>> & {}>>;
|
23
|
+
setting: import("vue").ComputedRef<any>;
|
24
|
+
handleModuleClick: (data: AnyObject) => void;
|
25
|
+
cssVars: import("vue").ComputedRef<AnyObject>;
|
26
|
+
tagList: import("vue").ComputedRef<any>;
|
27
|
+
containerFlexStyle: import("vue").ComputedRef<any>;
|
28
|
+
NTag: any;
|
29
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
30
|
+
config: {
|
31
|
+
default: () => {};
|
32
|
+
type: PropType<AnyObject>;
|
33
|
+
};
|
34
|
+
data: {
|
35
|
+
default: () => {};
|
36
|
+
type: PropType<AnyObject>;
|
37
|
+
};
|
38
|
+
}>>, {
|
39
|
+
data: AnyObject;
|
40
|
+
config: AnyObject;
|
41
|
+
}>;
|
42
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
import e from"./Label.vue2.js";import r from"../../../../_virtual/_plugin-vue_export-helper.js";var l=r(e,[["__file","Label.vue"]]);export{l as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{defineComponent as e,computed as o,openBlock as t,createElementBlock as s,normalizeClass as r,unref as a,normalizeStyle as i,withModifiers as l,Fragment as n,renderList as d,createBlock as m,withCtx as u,createTextVNode as c,toDisplayString as p}from"vue";import{getRealWidth as h,transNumberToPx as f}from"../utils/index.js";import{NTag as k}from"naive-ui";import{useTheme as v}from"../../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import"lodash-es";import"@vue/shared";import"../../../../shared/utils/index.js";import"@vueuse/shared";import"../../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import"../../../../shared/hooks/useScrollLoading.js";import{useCommon as b}from"../hooks/useCommon.js";var g=e({__name:"Label",props:{config:{default:()=>({}),type:Object},data:{default:()=>({}),type:Object}},setup(e){const g=e,{setting:y,handleModuleClick:j}=b(g),x=v(),C=o((()=>g.data[y.value.fieldName]||[])),S=o((()=>{const{containerStyle:e={},contentStyle:o={},unitConfig:t={}}=y.value||{},s=h(e,t);return{"font-size":"14px",...f(e),...f(o),width:s,"box-sizing":"border-box"}}));return(o,h)=>(t(),s("div",{class:r(a(y).containerClass),style:i(a(S)),onClick:h[0]||(h[0]=l((()=>a(j)(e.data)),["stop"]))},[(t(!0),s(n,null,d(a(C),((e,o)=>(t(),m(a(k),{class:r(o==a(C).length-1?"":"c-template-render__mgr8"),key:o,style:i({background:e.backgroundColor||a(x)["--c-primary-color"]})},{default:u((()=>[c(p(e.labelShowText),1)])),_:2},1032,["class","style"])))),128))],6))}});export{g as default};
|