cnhis-design-vue 3.2.12-release.1 → 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/README.md +87 -87
- package/es/components/ai-chat/index.d.ts +10 -0
- package/es/components/ai-chat/src/Index.vue.d.ts +11 -1
- package/es/components/ai-chat/src/Index.vue2.js +1 -1
- package/es/components/ai-chat/src/components/ChatCard.d.ts +6 -0
- package/es/components/ai-chat/src/components/ChatCard.js +1 -1
- package/es/components/ai-chat/src/components/ChatFooter.vue.d.ts +1 -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/types/index.d.ts +4 -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/classification/src/components/table-modal/index.vue.d.ts +3 -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/iho-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/PersonProfile.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/index.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 +14 -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/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.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/env.d.ts +25 -25
- package/es/shared/assets/img/ai__avatar.png.js +1 -1
- package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
- package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
- package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
- package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
- package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
- package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
- package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
- package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
- package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
- package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
- package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/logo.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/table_style_2.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/fabricjs/index.d.ts +0 -6823
- package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -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};
|
@@ -0,0 +1,47 @@
|
|
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
|
+
showChildrens: import("vue").ComputedRef<any>;
|
28
|
+
isDisplayMatch: import("vue").ComputedRef<any>;
|
29
|
+
containerColStyle: import("vue").ComputedRef<any>;
|
30
|
+
showPercentage: (value: string) => string | undefined;
|
31
|
+
showColStyles: (colItem: any, index: number) => any;
|
32
|
+
componentsFieldList: (children: AnyObject[], _data: any) => AnyObject[];
|
33
|
+
getComponent: typeof getComponent;
|
34
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
35
|
+
config: {
|
36
|
+
default: () => {};
|
37
|
+
type: PropType<AnyObject>;
|
38
|
+
};
|
39
|
+
data: {
|
40
|
+
default: () => {};
|
41
|
+
type: PropType<AnyObject>;
|
42
|
+
};
|
43
|
+
}>>, {
|
44
|
+
data: AnyObject;
|
45
|
+
config: AnyObject;
|
46
|
+
}>;
|
47
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
import e from"./Row.vue2.js";import r from"../../../../_virtual/_plugin-vue_export-helper.js";var o=r(e,[["__file","Row.vue"]]);export{o as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{defineComponent as t,computed as e,unref as n,openBlock as o,createElementBlock as i,Fragment as r,renderList as l,normalizeClass as a,normalizeStyle as s,withModifiers as u,createBlock as c,resolveDynamicComponent as d,createSlots as f,withCtx as p,createCommentVNode as g,renderSlot as m,normalizeProps as y,guardReactiveProps as v}from"vue";import{isFactor as h,getCurText as b,getRealWidth as x,transNumberToPx as C,findValueIsEmpty as k}from"../utils/index.js";import{getComponent as j}from"./index.js";import{useCommon as w}from"../hooks/useCommon.js";const _=["onClick"];var z=t({__name:"Row",props:{config:{default:()=>({}),type:Object},data:{default:()=>({}),type:Object}},setup(t){const z=t,{setting:M,dataComp:S,handleModuleClick:N}=w(z),O=e((()=>{var t;return(null==(t=z.config)?void 0:t.childrens)||[]})),P=e((()=>{const{displayCondition:t=[]}=M.value.advancedConfig||{};return!t.length||t.some((t=>h(t,b(z.data[t.field_key]))))})),$=e((()=>{const{containerStyle:t={},rowProps:e={},unitConfig:n={}}=M.value||{},o=x(t,n),i={"justify-content":e.justify,"align-items":e.align};return{"font-size":"14px",...C(t),...i,width:o,"box-sizing":"border-box"}}));function H(t){var e;const n=(null==(e=M.value)?void 0:e.columnScale)||"";if(n){const e=n.split(":").reduce(((t,e)=>t+Number(e)),0)||24,o=100*Number(t)/e,i=Math.pow(10,4);return Math.floor(o*i)/i+"%"}}function R(t,e){const{colStyle:n={},rowProps:o={}}=M.value||{},i={};e!==O.value.length-1&&(i["padding-right"]=C(o).gutter);return{flex:t.span,width:H(t.span),...i,...n,"box-sizing":"border-box"}}function q(t,e){return t.filter((t=>{const n={config:z.config,data:z.data};return t.parentConfig=n,!t.setting.emptyHide||k(t,e)}))}return(t,e)=>n(P)?(o(!0),i(r,{key:0},l(n(S),((e,h)=>(o(),i("div",{class:a(["c-template-render__flex",n(M).containerClass]),key:h,style:s(n($)),onClick:u((()=>n(N)(e)),["stop"])},[(o(!0),i(r,null,l(n(O),((a,u)=>(o(),i("div",{key:u,style:s(R(a,u))},[(o(!0),i(r,null,l(q(a.children,e),((i,r)=>(o(),c(d(n(j)(i.type)),{key:r,config:i,data:e},f({_:2},[l(t.$slots,((e,n)=>({name:n,fn:p((e=>[g(" 动态插槽 "),m(t.$slots,n,y(v(e)))]))})))]),1032,["config","data"])))),128))],4)))),128))],14,_)))),128)):g("v-if",!0)}});export{z as default};
|
@@ -0,0 +1,27 @@
|
|
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
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "button-click"[], "button-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
13
|
+
config: {
|
14
|
+
default: () => {};
|
15
|
+
type: PropType<AnyObject>;
|
16
|
+
};
|
17
|
+
data: {
|
18
|
+
default: () => {};
|
19
|
+
type: PropType<AnyObject>;
|
20
|
+
};
|
21
|
+
}>> & {
|
22
|
+
"onButton-click"?: ((...args: any[]) => any) | undefined;
|
23
|
+
}, {
|
24
|
+
data: AnyObject;
|
25
|
+
config: AnyObject;
|
26
|
+
}>;
|
27
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
import{defineComponent as t,inject as e,computed as o,createVNode as n}from"vue";import{InjectionTemplateRender as s}from"../constants/index.js";import{getRealWidth as i,transNumberToPx as r}from"../utils/index.js";import{useCommon as l}from"../hooks/useCommon.js";var a=t({name:"TemplateSlot",inheritAttrs:!1,props:{config:{default:()=>({}),type:Object},data:{default:()=>({}),type:Object}},emits:["button-click"],setup(t,{attrs:a,slots:u}){const{setting:c,handleModuleClick:p}=l(t),{renders:d}=e(s),m=o((()=>{const{containerStyle:t={},colStyle:e={},unitConfig:o={}}=c.value||{},n=i(t,o);return{"font-size":"14px",...r(t),...r(e),width:n,"box-sizing":"border-box"}}));function f(){const t=d[c.value.slotKey];return t||null}function v(e){e.stopPropagation(),p(t.data)}return()=>n("div",{class:c.value.containerClass,style:m.value,onClick:v},[f()])}});export{a as default};
|
@@ -0,0 +1,40 @@
|
|
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
|
+
containerTextStyle: import("vue").ComputedRef<any>;
|
26
|
+
showClass: import("vue").ComputedRef<any>;
|
27
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
28
|
+
config: {
|
29
|
+
default: () => {};
|
30
|
+
type: PropType<AnyObject>;
|
31
|
+
};
|
32
|
+
data: {
|
33
|
+
default: () => {};
|
34
|
+
type: PropType<AnyObject>;
|
35
|
+
};
|
36
|
+
}>>, {
|
37
|
+
data: AnyObject;
|
38
|
+
config: AnyObject;
|
39
|
+
}>;
|
40
|
+
export default _default;
|
@@ -0,0 +1 @@
|
|
1
|
+
import e from"./Text.vue2.js";import r from"../../../../_virtual/_plugin-vue_export-helper.js";var t=r(e,[["__file","Text.vue"]]);export{t as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{defineComponent as e,computed as t,openBlock as o,createElementBlock as r,normalizeClass as a,unref as n,normalizeStyle as s,withModifiers as i,toDisplayString as l}from"vue";import{getRealWidth as u,transNumberToPx as p}from"../utils/index.js";import{useCommon as d}from"../hooks/useCommon.js";var c=e({__name:"Text",props:{config:{default:()=>({}),type:Object},data:{default:()=>({}),type:Object}},setup(e){const c=e,{setting:f,handleModuleClick:m}=d(c),x=t((()=>{const{containerStyle:e={},style:t={},unitConfig:o={}}=f.value||{},r=u(e,o);return{"font-size":"14px",...p(e),...p(t),width:r,"box-sizing":"border-box"}})),b=t((()=>{let e=f.value.containerClass||"";return f.value.prefixBar&&(e=`c-template-render__bar ${e}`),e}));return(t,u)=>(o(),r("div",{class:a(n(b)),style:s(n(x)),onClick:u[0]||(u[0]=i((()=>n(m)(e.data)),["stop"]))},l(n(f).text),7))}});export{c as default};
|