cnhis-design-vue 3.2.1-beta.8 → 3.2.1-release.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/button-print/src/utils/print.d.ts +3 -3
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/calendar/index.d.ts +11 -1
- package/es/components/calendar/src/Calendar.vue.d.ts +11 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +268 -2
- package/es/components/drag-scroll/src/index.d.ts +3 -3
- package/es/components/drag-scroll/src/index.js +1 -1
- package/es/components/drag-scroll/src/types.d.ts +12 -7
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
- package/es/components/fabric-chart/src/utils/index.js +1 -1
- package/es/components/form-config/index.d.ts +11 -4
- package/es/components/form-config/src/FormConfig.vue.d.ts +11 -4
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +2 -2
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +5 -2
- package/es/components/form-render/index.d.ts +2 -2
- package/es/components/form-render/index.js +1 -1
- package/es/components/form-render/src/FormRender.vue.d.ts +1 -1
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +2 -2
- package/es/components/form-render/src/FormRenderWrapper.vue2.js +1 -1
- package/es/components/form-render/src/components/renderer/combination/tableCombination.d.ts +9 -0
- package/es/components/form-render/src/components/renderer/combination/tableCombination.js +1 -1
- package/es/components/form-render/src/components/renderer/formItem.js +1 -1
- package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
- package/es/components/form-render/src/hooks/index.d.ts +1 -0
- package/es/components/form-render/src/hooks/index.js +1 -1
- package/es/components/form-render/src/hooks/useAutoHidden.d.ts +1 -1
- package/es/components/form-render/src/hooks/useAutoHidden.js +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
- package/es/components/form-render/src/hooks/useSelectedSetting.d.ts +5 -0
- package/es/components/form-render/src/hooks/useSelectedSetting.js +1 -0
- package/es/components/form-render/src/types/fieldItem.d.ts +1 -0
- package/es/components/form-render/src/types/index.d.ts +1 -0
- package/es/components/form-render/src/utils/index.d.ts +1 -0
- package/es/components/form-render/src/utils/index.js +1 -1
- package/es/components/iho-table/index.d.ts +266 -0
- package/es/components/iho-table/src/IhoTable.vue.d.ts +266 -0
- package/es/components/iho-table/src/plugins/dragScrollPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +2 -0
- package/es/components/index.d.ts +1 -2
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +4 -4
- package/es/components/info-header/src/InfoHeader.vue.d.ts +4 -4
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +2 -2
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +2 -2
- package/es/components/search-cascader/index.d.ts +1 -1
- package/es/components/search-cascader/src/SearchCascader.vue.d.ts +1 -1
- package/es/components/search-cascader/src/components/SearchMenu.d.ts +1 -1
- package/es/components/shortcut-setter/index.d.ts +3 -2
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +3 -2
- package/es/shared/assets/img/table_style_1.png.js +1 -1
- package/es/shared/assets/img/table_style_2.png.js +1 -1
- package/es/shared/assets/img/table_style_3.png.js +1 -1
- package/es/shared/assets/img/table_style_4.png.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +15 -6
- package/es/shared/utils/business.d.ts +1 -1
- package/package.json +8 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../../../../shared/utils/index.js";import{isField as e}from"@formily/core";import{isEmpty as t}from"lodash-es";import{isMatchNewLowCodeConditionsWithSqlExpression as r}from"../../../../shared/utils/business.js";function i(i){return{applySelectedSetting:function(o){const s=i.getFormState().values;o.forEach((o=>{if(t(o.children))return;const l=o.children.find((e=>r(s,e)));l&&i.setFieldState(o.selectedField,(t=>{e(t)&&t.setValue(l.value)}))}))}}}export{i as useSelectedSetting};
|
|
@@ -128,6 +128,7 @@ export declare type FieldItem = {
|
|
|
128
128
|
whiteList: string[];
|
|
129
129
|
bordered: boolean | string;
|
|
130
130
|
displayMode: 'table' | 'form';
|
|
131
|
+
editor_title: string;
|
|
131
132
|
fieldType: SchemaTypes;
|
|
132
133
|
content: string | FormRenderer | Record<string, FormRenderer>;
|
|
133
134
|
lazyRequest: boolean;
|
|
@@ -21,3 +21,4 @@ export declare function isNestedType(type?: string): boolean | "" | undefined;
|
|
|
21
21
|
export declare function isNestedFieldType(field: FieldItem | GeneralField): boolean | "" | undefined;
|
|
22
22
|
export declare function renderDescOption(labelNode: any, option: AnyObject): JSX.Element;
|
|
23
23
|
export declare function getAbsoluteKey(fieldKey: string, field: Pattern): string;
|
|
24
|
+
export declare function editorUnescape(content: string): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{inject as n,provide as t,computed as e,createVNode as r,Fragment as o}from"vue";import{arrayed as i}from"../../../../shared/utils/index.js";import{isGeneralField as u}from"@formily/core";import{Path as f}from"@formily/path";import{HelpCircleSharp as c}from"@vicons/ionicons5";import{isObject as s}from"@vue/shared";import{useMemoize as l}from"@vueuse/core";import{isString as a,isFunction as p,omit as m}from"lodash-es";import{NTooltip as d,NIcon as h}from"naive-ui";import{NESTED_FORM_ITEM_TYPE as x}from"../constants/index.js";import"date-fns";function y(n){console.warn(`[FormRender]: ${n}`)}function g(n,t,e=["children","properties","suffixConfig"],r="val_key",o="default_val"){return function n(t,r){r.forEach((r=>{s(r)&&(null!=c(r)&&null==t[u(r)]&&f.setIn(t,u(r),c(r)),e.forEach((e=>{r[e]&&(t[u(r)]||(t[u(r)]={}),n(t[u(r)],i(r[e])))})))}))}(n,t),n;function u(n){return n[r]}function c(n){return n[o]}}function v(e,r){let o=n(e,null);return o||(o=r(),t(e,o)),o}function E(n){return n&&a(n)?+n:n}function _(n,t,e){if(s(n)&&!p(n)){const e={};return Object.entries(n).forEach((([n,r])=>{p(r)&&(e[n]=()=>r(t))})),e}return{default:()=>p(n)?n(t):e?e(n):[n]}}function K(n,t){return e((()=>{const e={};return n.prefix&&(e.prefix=()=>r(o,null,[_(n.prefix,n,t).default()])),n.suffix&&(e.suffix=()=>r(o,null,[_(n.suffix,n,t).default()])),e}))}function j(n,t){return a(n)&&n?n.replace(/\$\{([^}]*)}/g,(function(n,e){const r=e.split("||");for(const n of r){const e=t[n.trim()];if(e)return e}return""})):""}function k(n){return n.reduce(((n,t)=>(a(t.extendKey)&&t.extendKey&&n.push(t),b(t)&&n.push(...k(t.children||[])),n)),[])}function O(n,t){const e=k(n);if(!e.length)return t;const r={},o=new Map;return Object.entries(t).forEach((([n,i])=>{const u=e.find((t=>t.val_key===n));if(!u)return r[n]=i;const{val_key:f,extendKey:c}=u,s=o.get(c)||{};o.set(c,s),s[f]=t[f]})),[...o.entries()].forEach((([n,t])=>{r[n]=JSON.stringify(t)})),r}function S(n,t){const e=k(n);if(!e.length)return t;const r=l((n=>{try{return s(t[n])?t[n]:JSON.parse(t[n])||{}}catch(n){return{}}})),o=m(t,e.map((n=>n.extendKey)));return e.forEach((({val_key:n,extendKey:t})=>{Reflect.has(o,n)||(o[n]=r(t)[n])})),o}function $(n){return n&&x.includes(n)}function b(n){return $(u(n)?n.componentType:n.html_type)}function w(n,t){return r("section",{style:{display:"flex",alignItems:"center",gap:"4px"}},[n,t.desc?r(d,null,{trigger:()=>r(h,{component:c},null),default:()=>t.desc}):null])}function I(n,t){return f.parse(n.startsWith(".")?n:`.${n}`,t).toString()}export{O as combineExtendKey,K as createInputSlot,_ as createSlot,y as formRenderLog,I as getAbsoluteKey,v as injectOrProvide,b as isNestedFieldType,$ as isNestedType,g as mergeDeepProperties,E as parseNumberFromMaybeString,w as renderDescOption,S as splitExtendKey,j as validateMessageParser};
|
|
1
|
+
import{inject as n,provide as t,computed as e,createVNode as r,Fragment as o}from"vue";import{arrayed as i}from"../../../../shared/utils/index.js";import{isGeneralField as u}from"@formily/core";import{Path as f}from"@formily/path";import{HelpCircleSharp as c}from"@vicons/ionicons5";import{isObject as s}from"@vue/shared";import{useMemoize as l}from"@vueuse/core";import{isString as a,isFunction as p,omit as m}from"lodash-es";import{NTooltip as d,NIcon as h}from"naive-ui";import{NESTED_FORM_ITEM_TYPE as x}from"../constants/index.js";import"date-fns";function y(n){console.warn(`[FormRender]: ${n}`)}function g(n,t,e=["children","properties","suffixConfig"],r="val_key",o="default_val"){return function n(t,r){r.forEach((r=>{s(r)&&(null!=c(r)&&null==t[u(r)]&&f.setIn(t,u(r),c(r)),e.forEach((e=>{r[e]&&(t[u(r)]||(t[u(r)]={}),n(t[u(r)],i(r[e])))})))}))}(n,t),n;function u(n){return n[r]}function c(n){return n[o]}}function v(e,r){let o=n(e,null);return o||(o=r(),t(e,o)),o}function E(n){return n&&a(n)?+n:n}function _(n,t,e){if(s(n)&&!p(n)){const e={};return Object.entries(n).forEach((([n,r])=>{p(r)&&(e[n]=()=>r(t))})),e}return{default:()=>p(n)?n(t):e?e(n):[n]}}function K(n,t){return e((()=>{const e={};return n.prefix&&(e.prefix=()=>r(o,null,[_(n.prefix,n,t).default()])),n.suffix&&(e.suffix=()=>r(o,null,[_(n.suffix,n,t).default()])),e}))}function j(n,t){return a(n)&&n?n.replace(/\$\{([^}]*)}/g,(function(n,e){const r=e.split("||");for(const n of r){const e=t[n.trim()];if(e)return e}return""})):""}function k(n){return n.reduce(((n,t)=>(a(t.extendKey)&&t.extendKey&&n.push(t),b(t)&&n.push(...k(t.children||[])),n)),[])}function O(n,t){const e=k(n);if(!e.length)return t;const r={},o=new Map;return Object.entries(t).forEach((([n,i])=>{const u=e.find((t=>t.val_key===n));if(!u)return r[n]=i;const{val_key:f,extendKey:c}=u,s=o.get(c)||{};o.set(c,s),s[f]=t[f]})),[...o.entries()].forEach((([n,t])=>{r[n]=JSON.stringify(t)})),r}function S(n,t){const e=k(n);if(!e.length)return t;const r=l((n=>{try{return s(t[n])?t[n]:JSON.parse(t[n])||{}}catch(n){return{}}})),o=m(t,e.map((n=>n.extendKey)));return e.forEach((({val_key:n,extendKey:t})=>{Reflect.has(o,n)||(o[n]=r(t)[n])})),o}function $(n){return n&&x.includes(n)}function b(n){return $(u(n)?n.componentType:n.html_type)}function w(n,t){return r("section",{style:{display:"flex",alignItems:"center",gap:"4px"}},[n,t.desc?r(d,null,{trigger:()=>r(h,{component:c},null),default:()=>t.desc}):null])}function I(n,t){return f.parse(n.startsWith(".")?n:`.${n}`,t).toString()}function J(n){return n.replace(/</g,"<").replace(/>/g,">")}export{O as combineExtendKey,K as createInputSlot,_ as createSlot,J as editorUnescape,y as formRenderLog,I as getAbsoluteKey,v as injectOrProvide,b as isNestedFieldType,$ as isNestedType,g as mergeDeepProperties,E as parseNumberFromMaybeString,w as renderDescOption,S as splitExtendKey,j as validateMessageParser};
|
|
@@ -2149,6 +2149,139 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2149
2149
|
isBatchSelect?: import("../../shared/types").MaybeString<0 | 1> | undefined;
|
|
2150
2150
|
isSingleSelect?: import("../../shared/types").MaybeString<0 | 1> | undefined;
|
|
2151
2151
|
dragScroll?: boolean | undefined;
|
|
2152
|
+
dragScrollConfig?: {
|
|
2153
|
+
dragEle?: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | HTMLElement | {
|
|
2154
|
+
[x: string]: any;
|
|
2155
|
+
setup?: ((this: void, props: Readonly<import("@vue/shared").LooseRequired<any>>, ctx: import("vue").SetupContext<any>) => any) | undefined;
|
|
2156
|
+
name?: string | undefined;
|
|
2157
|
+
template?: string | object | undefined;
|
|
2158
|
+
render?: Function | undefined;
|
|
2159
|
+
components?: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>> | undefined;
|
|
2160
|
+
directives?: Record<string, import("vue").Directive<any, any>> | undefined;
|
|
2161
|
+
inheritAttrs?: boolean | undefined;
|
|
2162
|
+
emits?: any;
|
|
2163
|
+
expose?: string[] | undefined;
|
|
2164
|
+
serverPrefetch?: (() => Promise<any>) | undefined;
|
|
2165
|
+
compilerOptions?: {
|
|
2166
|
+
isCustomElement?: ((tag: string) => boolean) | undefined;
|
|
2167
|
+
whitespace?: "preserve" | "condense" | undefined;
|
|
2168
|
+
comments?: boolean | undefined;
|
|
2169
|
+
delimiters?: [string, string] | undefined;
|
|
2170
|
+
} | undefined;
|
|
2171
|
+
call?: ((this: unknown, ...args: unknown[]) => never) | undefined;
|
|
2172
|
+
__isFragment?: undefined;
|
|
2173
|
+
__isTeleport?: undefined;
|
|
2174
|
+
__isSuspense?: undefined;
|
|
2175
|
+
__defaults?: {} | undefined;
|
|
2176
|
+
compatConfig?: {
|
|
2177
|
+
GLOBAL_MOUNT?: boolean | "suppress-warning" | undefined;
|
|
2178
|
+
GLOBAL_MOUNT_CONTAINER?: boolean | "suppress-warning" | undefined;
|
|
2179
|
+
GLOBAL_EXTEND?: boolean | "suppress-warning" | undefined;
|
|
2180
|
+
GLOBAL_PROTOTYPE?: boolean | "suppress-warning" | undefined;
|
|
2181
|
+
GLOBAL_SET?: boolean | "suppress-warning" | undefined;
|
|
2182
|
+
GLOBAL_DELETE?: boolean | "suppress-warning" | undefined;
|
|
2183
|
+
GLOBAL_OBSERVABLE?: boolean | "suppress-warning" | undefined;
|
|
2184
|
+
GLOBAL_PRIVATE_UTIL?: boolean | "suppress-warning" | undefined;
|
|
2185
|
+
CONFIG_SILENT?: boolean | "suppress-warning" | undefined;
|
|
2186
|
+
CONFIG_DEVTOOLS?: boolean | "suppress-warning" | undefined;
|
|
2187
|
+
CONFIG_KEY_CODES?: boolean | "suppress-warning" | undefined;
|
|
2188
|
+
CONFIG_PRODUCTION_TIP?: boolean | "suppress-warning" | undefined;
|
|
2189
|
+
CONFIG_IGNORED_ELEMENTS?: boolean | "suppress-warning" | undefined;
|
|
2190
|
+
CONFIG_WHITESPACE?: boolean | "suppress-warning" | undefined;
|
|
2191
|
+
CONFIG_OPTION_MERGE_STRATS?: boolean | "suppress-warning" | undefined;
|
|
2192
|
+
INSTANCE_SET?: boolean | "suppress-warning" | undefined;
|
|
2193
|
+
INSTANCE_DELETE?: boolean | "suppress-warning" | undefined;
|
|
2194
|
+
INSTANCE_DESTROY?: boolean | "suppress-warning" | undefined;
|
|
2195
|
+
INSTANCE_EVENT_EMITTER?: boolean | "suppress-warning" | undefined;
|
|
2196
|
+
INSTANCE_EVENT_HOOKS?: boolean | "suppress-warning" | undefined;
|
|
2197
|
+
INSTANCE_CHILDREN?: boolean | "suppress-warning" | undefined;
|
|
2198
|
+
INSTANCE_LISTENERS?: boolean | "suppress-warning" | undefined;
|
|
2199
|
+
INSTANCE_SCOPED_SLOTS?: boolean | "suppress-warning" | undefined;
|
|
2200
|
+
INSTANCE_ATTRS_CLASS_STYLE?: boolean | "suppress-warning" | undefined;
|
|
2201
|
+
OPTIONS_DATA_FN?: boolean | "suppress-warning" | undefined;
|
|
2202
|
+
OPTIONS_DATA_MERGE?: boolean | "suppress-warning" | undefined;
|
|
2203
|
+
OPTIONS_BEFORE_DESTROY?: boolean | "suppress-warning" | undefined;
|
|
2204
|
+
OPTIONS_DESTROYED?: boolean | "suppress-warning" | undefined;
|
|
2205
|
+
WATCH_ARRAY?: boolean | "suppress-warning" | undefined;
|
|
2206
|
+
PROPS_DEFAULT_THIS?: boolean | "suppress-warning" | undefined;
|
|
2207
|
+
V_ON_KEYCODE_MODIFIER?: boolean | "suppress-warning" | undefined;
|
|
2208
|
+
CUSTOM_DIR?: boolean | "suppress-warning" | undefined;
|
|
2209
|
+
ATTR_FALSE_VALUE?: boolean | "suppress-warning" | undefined;
|
|
2210
|
+
ATTR_ENUMERATED_COERCION?: boolean | "suppress-warning" | undefined;
|
|
2211
|
+
TRANSITION_CLASSES?: boolean | "suppress-warning" | undefined;
|
|
2212
|
+
TRANSITION_GROUP_ROOT?: boolean | "suppress-warning" | undefined;
|
|
2213
|
+
COMPONENT_ASYNC?: boolean | "suppress-warning" | undefined;
|
|
2214
|
+
COMPONENT_FUNCTIONAL?: boolean | "suppress-warning" | undefined;
|
|
2215
|
+
COMPONENT_V_MODEL?: boolean | "suppress-warning" | undefined;
|
|
2216
|
+
RENDER_FUNCTION?: boolean | "suppress-warning" | undefined;
|
|
2217
|
+
FILTERS?: boolean | "suppress-warning" | undefined;
|
|
2218
|
+
PRIVATE_APIS?: boolean | "suppress-warning" | undefined;
|
|
2219
|
+
MODE?: 2 | 3 | ((comp: import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | null) => 2 | 3) | undefined;
|
|
2220
|
+
} | undefined;
|
|
2221
|
+
data?: ((this: any, vm: any) => any) | undefined;
|
|
2222
|
+
computed?: import("vue").ComputedOptions | undefined;
|
|
2223
|
+
methods?: import("vue").MethodOptions | undefined;
|
|
2224
|
+
watch?: {
|
|
2225
|
+
[x: string]: (string | import("vue").WatchCallback<any, any> | ({
|
|
2226
|
+
handler: string | import("vue").WatchCallback<any, any>;
|
|
2227
|
+
} & import("vue").WatchOptions<boolean>)) | (string | import("vue").WatchCallback<any, any> | ({
|
|
2228
|
+
handler: string | import("vue").WatchCallback<any, any>;
|
|
2229
|
+
} & import("vue").WatchOptions<boolean>))[];
|
|
2230
|
+
} | undefined;
|
|
2231
|
+
provide?: import("vue").ComponentProvideOptions | undefined;
|
|
2232
|
+
inject?: (string[] | {
|
|
2233
|
+
[x: string]: string | symbol | {
|
|
2234
|
+
from?: string | symbol | undefined;
|
|
2235
|
+
default?: unknown;
|
|
2236
|
+
};
|
|
2237
|
+
[x: symbol]: string | symbol | {
|
|
2238
|
+
from?: string | symbol | undefined;
|
|
2239
|
+
default?: unknown;
|
|
2240
|
+
};
|
|
2241
|
+
}) | undefined;
|
|
2242
|
+
filters?: Record<string, Function> | undefined;
|
|
2243
|
+
mixins?: any[] | undefined;
|
|
2244
|
+
extends?: any;
|
|
2245
|
+
beforeCreate?: (() => void) | undefined;
|
|
2246
|
+
created?: (() => void) | undefined;
|
|
2247
|
+
beforeMount?: (() => void) | undefined;
|
|
2248
|
+
mounted?: (() => void) | undefined;
|
|
2249
|
+
beforeUpdate?: (() => void) | undefined;
|
|
2250
|
+
updated?: (() => void) | undefined;
|
|
2251
|
+
activated?: (() => void) | undefined;
|
|
2252
|
+
deactivated?: (() => void) | undefined;
|
|
2253
|
+
beforeDestroy?: (() => void) | undefined;
|
|
2254
|
+
beforeUnmount?: (() => void) | undefined;
|
|
2255
|
+
destroyed?: (() => void) | undefined;
|
|
2256
|
+
unmounted?: (() => void) | undefined;
|
|
2257
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | undefined;
|
|
2258
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | undefined;
|
|
2259
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | undefined;
|
|
2260
|
+
delimiters?: [string, string] | undefined;
|
|
2261
|
+
__differentiator?: string | number | symbol | undefined;
|
|
2262
|
+
__isBuiltIn?: boolean | undefined;
|
|
2263
|
+
__file?: string | undefined;
|
|
2264
|
+
__name?: string | undefined;
|
|
2265
|
+
} | undefined;
|
|
2266
|
+
changeCursor?: boolean | undefined;
|
|
2267
|
+
scrollTarget?: any;
|
|
2268
|
+
duration?: number | undefined;
|
|
2269
|
+
type?: "px" | "percent" | undefined;
|
|
2270
|
+
isDraggableEle?: ((event: MouseEvent) => boolean) | undefined;
|
|
2271
|
+
getScrollState?: ((target: import("..").DragScrollTargetType | undefined) => {
|
|
2272
|
+
scrollTop: number;
|
|
2273
|
+
scrollLeft: number;
|
|
2274
|
+
}) | undefined;
|
|
2275
|
+
setScrollState?: ((target: import("..").DragScrollTargetType | undefined, state: {
|
|
2276
|
+
scrollTarget: any;
|
|
2277
|
+
scrollTop: number;
|
|
2278
|
+
scrollLeft: number;
|
|
2279
|
+
offsetX: number;
|
|
2280
|
+
offsetY: number;
|
|
2281
|
+
startScrollX: number;
|
|
2282
|
+
startScrollY: number;
|
|
2283
|
+
}) => void) | undefined;
|
|
2284
|
+
} | undefined;
|
|
2152
2285
|
selectType?: "checkbox" | "radio" | null | undefined;
|
|
2153
2286
|
rowDraggable?: boolean | undefined;
|
|
2154
2287
|
showSeq?: boolean | undefined;
|
|
@@ -4613,6 +4746,139 @@ declare const IhoTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
4613
4746
|
isBatchSelect?: import("../../shared/types").MaybeString<0 | 1> | undefined;
|
|
4614
4747
|
isSingleSelect?: import("../../shared/types").MaybeString<0 | 1> | undefined;
|
|
4615
4748
|
dragScroll?: boolean | undefined;
|
|
4749
|
+
dragScrollConfig?: {
|
|
4750
|
+
dragEle?: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | HTMLElement | {
|
|
4751
|
+
[x: string]: any;
|
|
4752
|
+
setup?: ((this: void, props: Readonly<import("@vue/shared").LooseRequired<any>>, ctx: import("vue").SetupContext<any>) => any) | undefined;
|
|
4753
|
+
name?: string | undefined;
|
|
4754
|
+
template?: string | object | undefined;
|
|
4755
|
+
render?: Function | undefined;
|
|
4756
|
+
components?: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>> | undefined;
|
|
4757
|
+
directives?: Record<string, import("vue").Directive<any, any>> | undefined;
|
|
4758
|
+
inheritAttrs?: boolean | undefined;
|
|
4759
|
+
emits?: any;
|
|
4760
|
+
expose?: string[] | undefined;
|
|
4761
|
+
serverPrefetch?: (() => Promise<any>) | undefined;
|
|
4762
|
+
compilerOptions?: {
|
|
4763
|
+
isCustomElement?: ((tag: string) => boolean) | undefined;
|
|
4764
|
+
whitespace?: "preserve" | "condense" | undefined;
|
|
4765
|
+
comments?: boolean | undefined;
|
|
4766
|
+
delimiters?: [string, string] | undefined;
|
|
4767
|
+
} | undefined;
|
|
4768
|
+
call?: ((this: unknown, ...args: unknown[]) => never) | undefined;
|
|
4769
|
+
__isFragment?: undefined;
|
|
4770
|
+
__isTeleport?: undefined;
|
|
4771
|
+
__isSuspense?: undefined;
|
|
4772
|
+
__defaults?: {} | undefined;
|
|
4773
|
+
compatConfig?: {
|
|
4774
|
+
GLOBAL_MOUNT?: boolean | "suppress-warning" | undefined;
|
|
4775
|
+
GLOBAL_MOUNT_CONTAINER?: boolean | "suppress-warning" | undefined;
|
|
4776
|
+
GLOBAL_EXTEND?: boolean | "suppress-warning" | undefined;
|
|
4777
|
+
GLOBAL_PROTOTYPE?: boolean | "suppress-warning" | undefined;
|
|
4778
|
+
GLOBAL_SET?: boolean | "suppress-warning" | undefined;
|
|
4779
|
+
GLOBAL_DELETE?: boolean | "suppress-warning" | undefined;
|
|
4780
|
+
GLOBAL_OBSERVABLE?: boolean | "suppress-warning" | undefined;
|
|
4781
|
+
GLOBAL_PRIVATE_UTIL?: boolean | "suppress-warning" | undefined;
|
|
4782
|
+
CONFIG_SILENT?: boolean | "suppress-warning" | undefined;
|
|
4783
|
+
CONFIG_DEVTOOLS?: boolean | "suppress-warning" | undefined;
|
|
4784
|
+
CONFIG_KEY_CODES?: boolean | "suppress-warning" | undefined;
|
|
4785
|
+
CONFIG_PRODUCTION_TIP?: boolean | "suppress-warning" | undefined;
|
|
4786
|
+
CONFIG_IGNORED_ELEMENTS?: boolean | "suppress-warning" | undefined;
|
|
4787
|
+
CONFIG_WHITESPACE?: boolean | "suppress-warning" | undefined;
|
|
4788
|
+
CONFIG_OPTION_MERGE_STRATS?: boolean | "suppress-warning" | undefined;
|
|
4789
|
+
INSTANCE_SET?: boolean | "suppress-warning" | undefined;
|
|
4790
|
+
INSTANCE_DELETE?: boolean | "suppress-warning" | undefined;
|
|
4791
|
+
INSTANCE_DESTROY?: boolean | "suppress-warning" | undefined;
|
|
4792
|
+
INSTANCE_EVENT_EMITTER?: boolean | "suppress-warning" | undefined;
|
|
4793
|
+
INSTANCE_EVENT_HOOKS?: boolean | "suppress-warning" | undefined;
|
|
4794
|
+
INSTANCE_CHILDREN?: boolean | "suppress-warning" | undefined;
|
|
4795
|
+
INSTANCE_LISTENERS?: boolean | "suppress-warning" | undefined;
|
|
4796
|
+
INSTANCE_SCOPED_SLOTS?: boolean | "suppress-warning" | undefined;
|
|
4797
|
+
INSTANCE_ATTRS_CLASS_STYLE?: boolean | "suppress-warning" | undefined;
|
|
4798
|
+
OPTIONS_DATA_FN?: boolean | "suppress-warning" | undefined;
|
|
4799
|
+
OPTIONS_DATA_MERGE?: boolean | "suppress-warning" | undefined;
|
|
4800
|
+
OPTIONS_BEFORE_DESTROY?: boolean | "suppress-warning" | undefined;
|
|
4801
|
+
OPTIONS_DESTROYED?: boolean | "suppress-warning" | undefined;
|
|
4802
|
+
WATCH_ARRAY?: boolean | "suppress-warning" | undefined;
|
|
4803
|
+
PROPS_DEFAULT_THIS?: boolean | "suppress-warning" | undefined;
|
|
4804
|
+
V_ON_KEYCODE_MODIFIER?: boolean | "suppress-warning" | undefined;
|
|
4805
|
+
CUSTOM_DIR?: boolean | "suppress-warning" | undefined;
|
|
4806
|
+
ATTR_FALSE_VALUE?: boolean | "suppress-warning" | undefined;
|
|
4807
|
+
ATTR_ENUMERATED_COERCION?: boolean | "suppress-warning" | undefined;
|
|
4808
|
+
TRANSITION_CLASSES?: boolean | "suppress-warning" | undefined;
|
|
4809
|
+
TRANSITION_GROUP_ROOT?: boolean | "suppress-warning" | undefined;
|
|
4810
|
+
COMPONENT_ASYNC?: boolean | "suppress-warning" | undefined;
|
|
4811
|
+
COMPONENT_FUNCTIONAL?: boolean | "suppress-warning" | undefined;
|
|
4812
|
+
COMPONENT_V_MODEL?: boolean | "suppress-warning" | undefined;
|
|
4813
|
+
RENDER_FUNCTION?: boolean | "suppress-warning" | undefined;
|
|
4814
|
+
FILTERS?: boolean | "suppress-warning" | undefined;
|
|
4815
|
+
PRIVATE_APIS?: boolean | "suppress-warning" | undefined;
|
|
4816
|
+
MODE?: 2 | 3 | ((comp: import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | null) => 2 | 3) | undefined;
|
|
4817
|
+
} | undefined;
|
|
4818
|
+
data?: ((this: any, vm: any) => any) | undefined;
|
|
4819
|
+
computed?: import("vue").ComputedOptions | undefined;
|
|
4820
|
+
methods?: import("vue").MethodOptions | undefined;
|
|
4821
|
+
watch?: {
|
|
4822
|
+
[x: string]: (string | import("vue").WatchCallback<any, any> | ({
|
|
4823
|
+
handler: string | import("vue").WatchCallback<any, any>;
|
|
4824
|
+
} & import("vue").WatchOptions<boolean>)) | (string | import("vue").WatchCallback<any, any> | ({
|
|
4825
|
+
handler: string | import("vue").WatchCallback<any, any>;
|
|
4826
|
+
} & import("vue").WatchOptions<boolean>))[];
|
|
4827
|
+
} | undefined;
|
|
4828
|
+
provide?: import("vue").ComponentProvideOptions | undefined;
|
|
4829
|
+
inject?: (string[] | {
|
|
4830
|
+
[x: string]: string | symbol | {
|
|
4831
|
+
from?: string | symbol | undefined;
|
|
4832
|
+
default?: unknown;
|
|
4833
|
+
};
|
|
4834
|
+
[x: symbol]: string | symbol | {
|
|
4835
|
+
from?: string | symbol | undefined;
|
|
4836
|
+
default?: unknown;
|
|
4837
|
+
};
|
|
4838
|
+
}) | undefined;
|
|
4839
|
+
filters?: Record<string, Function> | undefined;
|
|
4840
|
+
mixins?: any[] | undefined;
|
|
4841
|
+
extends?: any;
|
|
4842
|
+
beforeCreate?: (() => void) | undefined;
|
|
4843
|
+
created?: (() => void) | undefined;
|
|
4844
|
+
beforeMount?: (() => void) | undefined;
|
|
4845
|
+
mounted?: (() => void) | undefined;
|
|
4846
|
+
beforeUpdate?: (() => void) | undefined;
|
|
4847
|
+
updated?: (() => void) | undefined;
|
|
4848
|
+
activated?: (() => void) | undefined;
|
|
4849
|
+
deactivated?: (() => void) | undefined;
|
|
4850
|
+
beforeDestroy?: (() => void) | undefined;
|
|
4851
|
+
beforeUnmount?: (() => void) | undefined;
|
|
4852
|
+
destroyed?: (() => void) | undefined;
|
|
4853
|
+
unmounted?: (() => void) | undefined;
|
|
4854
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | undefined;
|
|
4855
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | undefined;
|
|
4856
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | undefined;
|
|
4857
|
+
delimiters?: [string, string] | undefined;
|
|
4858
|
+
__differentiator?: string | number | symbol | undefined;
|
|
4859
|
+
__isBuiltIn?: boolean | undefined;
|
|
4860
|
+
__file?: string | undefined;
|
|
4861
|
+
__name?: string | undefined;
|
|
4862
|
+
} | undefined;
|
|
4863
|
+
changeCursor?: boolean | undefined;
|
|
4864
|
+
scrollTarget?: any;
|
|
4865
|
+
duration?: number | undefined;
|
|
4866
|
+
type?: "px" | "percent" | undefined;
|
|
4867
|
+
isDraggableEle?: ((event: MouseEvent) => boolean) | undefined;
|
|
4868
|
+
getScrollState?: ((target: import("..").DragScrollTargetType | undefined) => {
|
|
4869
|
+
scrollTop: number;
|
|
4870
|
+
scrollLeft: number;
|
|
4871
|
+
}) | undefined;
|
|
4872
|
+
setScrollState?: ((target: import("..").DragScrollTargetType | undefined, state: {
|
|
4873
|
+
scrollTarget: any;
|
|
4874
|
+
scrollTop: number;
|
|
4875
|
+
scrollLeft: number;
|
|
4876
|
+
offsetX: number;
|
|
4877
|
+
offsetY: number;
|
|
4878
|
+
startScrollX: number;
|
|
4879
|
+
startScrollY: number;
|
|
4880
|
+
}) => void) | undefined;
|
|
4881
|
+
} | undefined;
|
|
4616
4882
|
selectType?: "checkbox" | "radio" | null | undefined;
|
|
4617
4883
|
rowDraggable?: boolean | undefined;
|
|
4618
4884
|
showSeq?: boolean | undefined;
|
|
@@ -2150,6 +2150,139 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2150
2150
|
isBatchSelect?: import("../../../shared/types").MaybeString<0 | 1> | undefined;
|
|
2151
2151
|
isSingleSelect?: import("../../../shared/types").MaybeString<0 | 1> | undefined;
|
|
2152
2152
|
dragScroll?: boolean | undefined;
|
|
2153
|
+
dragScrollConfig?: {
|
|
2154
|
+
dragEle?: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | HTMLElement | {
|
|
2155
|
+
[x: string]: any;
|
|
2156
|
+
setup?: ((this: void, props: Readonly<import("@vue/shared").LooseRequired<any>>, ctx: import("vue").SetupContext<any>) => any) | undefined;
|
|
2157
|
+
name?: string | undefined;
|
|
2158
|
+
template?: string | object | undefined;
|
|
2159
|
+
render?: Function | undefined;
|
|
2160
|
+
components?: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>> | undefined;
|
|
2161
|
+
directives?: Record<string, import("vue").Directive<any, any>> | undefined;
|
|
2162
|
+
inheritAttrs?: boolean | undefined;
|
|
2163
|
+
emits?: any;
|
|
2164
|
+
expose?: string[] | undefined;
|
|
2165
|
+
serverPrefetch?: (() => Promise<any>) | undefined;
|
|
2166
|
+
compilerOptions?: {
|
|
2167
|
+
isCustomElement?: ((tag: string) => boolean) | undefined;
|
|
2168
|
+
whitespace?: "preserve" | "condense" | undefined;
|
|
2169
|
+
comments?: boolean | undefined;
|
|
2170
|
+
delimiters?: [string, string] | undefined;
|
|
2171
|
+
} | undefined;
|
|
2172
|
+
call?: ((this: unknown, ...args: unknown[]) => never) | undefined;
|
|
2173
|
+
__isFragment?: undefined;
|
|
2174
|
+
__isTeleport?: undefined;
|
|
2175
|
+
__isSuspense?: undefined;
|
|
2176
|
+
__defaults?: {} | undefined;
|
|
2177
|
+
compatConfig?: {
|
|
2178
|
+
GLOBAL_MOUNT?: boolean | "suppress-warning" | undefined;
|
|
2179
|
+
GLOBAL_MOUNT_CONTAINER?: boolean | "suppress-warning" | undefined;
|
|
2180
|
+
GLOBAL_EXTEND?: boolean | "suppress-warning" | undefined;
|
|
2181
|
+
GLOBAL_PROTOTYPE?: boolean | "suppress-warning" | undefined;
|
|
2182
|
+
GLOBAL_SET?: boolean | "suppress-warning" | undefined;
|
|
2183
|
+
GLOBAL_DELETE?: boolean | "suppress-warning" | undefined;
|
|
2184
|
+
GLOBAL_OBSERVABLE?: boolean | "suppress-warning" | undefined;
|
|
2185
|
+
GLOBAL_PRIVATE_UTIL?: boolean | "suppress-warning" | undefined;
|
|
2186
|
+
CONFIG_SILENT?: boolean | "suppress-warning" | undefined;
|
|
2187
|
+
CONFIG_DEVTOOLS?: boolean | "suppress-warning" | undefined;
|
|
2188
|
+
CONFIG_KEY_CODES?: boolean | "suppress-warning" | undefined;
|
|
2189
|
+
CONFIG_PRODUCTION_TIP?: boolean | "suppress-warning" | undefined;
|
|
2190
|
+
CONFIG_IGNORED_ELEMENTS?: boolean | "suppress-warning" | undefined;
|
|
2191
|
+
CONFIG_WHITESPACE?: boolean | "suppress-warning" | undefined;
|
|
2192
|
+
CONFIG_OPTION_MERGE_STRATS?: boolean | "suppress-warning" | undefined;
|
|
2193
|
+
INSTANCE_SET?: boolean | "suppress-warning" | undefined;
|
|
2194
|
+
INSTANCE_DELETE?: boolean | "suppress-warning" | undefined;
|
|
2195
|
+
INSTANCE_DESTROY?: boolean | "suppress-warning" | undefined;
|
|
2196
|
+
INSTANCE_EVENT_EMITTER?: boolean | "suppress-warning" | undefined;
|
|
2197
|
+
INSTANCE_EVENT_HOOKS?: boolean | "suppress-warning" | undefined;
|
|
2198
|
+
INSTANCE_CHILDREN?: boolean | "suppress-warning" | undefined;
|
|
2199
|
+
INSTANCE_LISTENERS?: boolean | "suppress-warning" | undefined;
|
|
2200
|
+
INSTANCE_SCOPED_SLOTS?: boolean | "suppress-warning" | undefined;
|
|
2201
|
+
INSTANCE_ATTRS_CLASS_STYLE?: boolean | "suppress-warning" | undefined;
|
|
2202
|
+
OPTIONS_DATA_FN?: boolean | "suppress-warning" | undefined;
|
|
2203
|
+
OPTIONS_DATA_MERGE?: boolean | "suppress-warning" | undefined;
|
|
2204
|
+
OPTIONS_BEFORE_DESTROY?: boolean | "suppress-warning" | undefined;
|
|
2205
|
+
OPTIONS_DESTROYED?: boolean | "suppress-warning" | undefined;
|
|
2206
|
+
WATCH_ARRAY?: boolean | "suppress-warning" | undefined;
|
|
2207
|
+
PROPS_DEFAULT_THIS?: boolean | "suppress-warning" | undefined;
|
|
2208
|
+
V_ON_KEYCODE_MODIFIER?: boolean | "suppress-warning" | undefined;
|
|
2209
|
+
CUSTOM_DIR?: boolean | "suppress-warning" | undefined;
|
|
2210
|
+
ATTR_FALSE_VALUE?: boolean | "suppress-warning" | undefined;
|
|
2211
|
+
ATTR_ENUMERATED_COERCION?: boolean | "suppress-warning" | undefined;
|
|
2212
|
+
TRANSITION_CLASSES?: boolean | "suppress-warning" | undefined;
|
|
2213
|
+
TRANSITION_GROUP_ROOT?: boolean | "suppress-warning" | undefined;
|
|
2214
|
+
COMPONENT_ASYNC?: boolean | "suppress-warning" | undefined;
|
|
2215
|
+
COMPONENT_FUNCTIONAL?: boolean | "suppress-warning" | undefined;
|
|
2216
|
+
COMPONENT_V_MODEL?: boolean | "suppress-warning" | undefined;
|
|
2217
|
+
RENDER_FUNCTION?: boolean | "suppress-warning" | undefined;
|
|
2218
|
+
FILTERS?: boolean | "suppress-warning" | undefined;
|
|
2219
|
+
PRIVATE_APIS?: boolean | "suppress-warning" | undefined;
|
|
2220
|
+
MODE?: 2 | 3 | ((comp: import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | null) => 2 | 3) | undefined;
|
|
2221
|
+
} | undefined;
|
|
2222
|
+
data?: ((this: any, vm: any) => any) | undefined;
|
|
2223
|
+
computed?: import("vue").ComputedOptions | undefined;
|
|
2224
|
+
methods?: import("vue").MethodOptions | undefined;
|
|
2225
|
+
watch?: {
|
|
2226
|
+
[x: string]: (string | import("vue").WatchCallback<any, any> | ({
|
|
2227
|
+
handler: string | import("vue").WatchCallback<any, any>;
|
|
2228
|
+
} & import("vue").WatchOptions<boolean>)) | (string | import("vue").WatchCallback<any, any> | ({
|
|
2229
|
+
handler: string | import("vue").WatchCallback<any, any>;
|
|
2230
|
+
} & import("vue").WatchOptions<boolean>))[];
|
|
2231
|
+
} | undefined;
|
|
2232
|
+
provide?: import("vue").ComponentProvideOptions | undefined;
|
|
2233
|
+
inject?: (string[] | {
|
|
2234
|
+
[x: string]: string | symbol | {
|
|
2235
|
+
from?: string | symbol | undefined;
|
|
2236
|
+
default?: unknown;
|
|
2237
|
+
};
|
|
2238
|
+
[x: symbol]: string | symbol | {
|
|
2239
|
+
from?: string | symbol | undefined;
|
|
2240
|
+
default?: unknown;
|
|
2241
|
+
};
|
|
2242
|
+
}) | undefined;
|
|
2243
|
+
filters?: Record<string, Function> | undefined;
|
|
2244
|
+
mixins?: any[] | undefined;
|
|
2245
|
+
extends?: any;
|
|
2246
|
+
beforeCreate?: (() => void) | undefined;
|
|
2247
|
+
created?: (() => void) | undefined;
|
|
2248
|
+
beforeMount?: (() => void) | undefined;
|
|
2249
|
+
mounted?: (() => void) | undefined;
|
|
2250
|
+
beforeUpdate?: (() => void) | undefined;
|
|
2251
|
+
updated?: (() => void) | undefined;
|
|
2252
|
+
activated?: (() => void) | undefined;
|
|
2253
|
+
deactivated?: (() => void) | undefined;
|
|
2254
|
+
beforeDestroy?: (() => void) | undefined;
|
|
2255
|
+
beforeUnmount?: (() => void) | undefined;
|
|
2256
|
+
destroyed?: (() => void) | undefined;
|
|
2257
|
+
unmounted?: (() => void) | undefined;
|
|
2258
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | undefined;
|
|
2259
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | undefined;
|
|
2260
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | undefined;
|
|
2261
|
+
delimiters?: [string, string] | undefined;
|
|
2262
|
+
__differentiator?: string | number | symbol | undefined;
|
|
2263
|
+
__isBuiltIn?: boolean | undefined;
|
|
2264
|
+
__file?: string | undefined;
|
|
2265
|
+
__name?: string | undefined;
|
|
2266
|
+
} | undefined;
|
|
2267
|
+
changeCursor?: boolean | undefined;
|
|
2268
|
+
scrollTarget?: any;
|
|
2269
|
+
duration?: number | undefined;
|
|
2270
|
+
type?: "px" | "percent" | undefined;
|
|
2271
|
+
isDraggableEle?: ((event: MouseEvent) => boolean) | undefined;
|
|
2272
|
+
getScrollState?: ((target: import("../..").DragScrollTargetType | undefined) => {
|
|
2273
|
+
scrollTop: number;
|
|
2274
|
+
scrollLeft: number;
|
|
2275
|
+
}) | undefined;
|
|
2276
|
+
setScrollState?: ((target: import("../..").DragScrollTargetType | undefined, state: {
|
|
2277
|
+
scrollTarget: any;
|
|
2278
|
+
scrollTop: number;
|
|
2279
|
+
scrollLeft: number;
|
|
2280
|
+
offsetX: number;
|
|
2281
|
+
offsetY: number;
|
|
2282
|
+
startScrollX: number;
|
|
2283
|
+
startScrollY: number;
|
|
2284
|
+
}) => void) | undefined;
|
|
2285
|
+
} | undefined;
|
|
2153
2286
|
selectType?: "checkbox" | "radio" | null | undefined;
|
|
2154
2287
|
rowDraggable?: boolean | undefined;
|
|
2155
2288
|
showSeq?: boolean | undefined;
|
|
@@ -4614,6 +4747,139 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4614
4747
|
isBatchSelect?: import("../../../shared/types").MaybeString<0 | 1> | undefined;
|
|
4615
4748
|
isSingleSelect?: import("../../../shared/types").MaybeString<0 | 1> | undefined;
|
|
4616
4749
|
dragScroll?: boolean | undefined;
|
|
4750
|
+
dragScrollConfig?: {
|
|
4751
|
+
dragEle?: string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | HTMLElement | {
|
|
4752
|
+
[x: string]: any;
|
|
4753
|
+
setup?: ((this: void, props: Readonly<import("@vue/shared").LooseRequired<any>>, ctx: import("vue").SetupContext<any>) => any) | undefined;
|
|
4754
|
+
name?: string | undefined;
|
|
4755
|
+
template?: string | object | undefined;
|
|
4756
|
+
render?: Function | undefined;
|
|
4757
|
+
components?: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>> | undefined;
|
|
4758
|
+
directives?: Record<string, import("vue").Directive<any, any>> | undefined;
|
|
4759
|
+
inheritAttrs?: boolean | undefined;
|
|
4760
|
+
emits?: any;
|
|
4761
|
+
expose?: string[] | undefined;
|
|
4762
|
+
serverPrefetch?: (() => Promise<any>) | undefined;
|
|
4763
|
+
compilerOptions?: {
|
|
4764
|
+
isCustomElement?: ((tag: string) => boolean) | undefined;
|
|
4765
|
+
whitespace?: "preserve" | "condense" | undefined;
|
|
4766
|
+
comments?: boolean | undefined;
|
|
4767
|
+
delimiters?: [string, string] | undefined;
|
|
4768
|
+
} | undefined;
|
|
4769
|
+
call?: ((this: unknown, ...args: unknown[]) => never) | undefined;
|
|
4770
|
+
__isFragment?: undefined;
|
|
4771
|
+
__isTeleport?: undefined;
|
|
4772
|
+
__isSuspense?: undefined;
|
|
4773
|
+
__defaults?: {} | undefined;
|
|
4774
|
+
compatConfig?: {
|
|
4775
|
+
GLOBAL_MOUNT?: boolean | "suppress-warning" | undefined;
|
|
4776
|
+
GLOBAL_MOUNT_CONTAINER?: boolean | "suppress-warning" | undefined;
|
|
4777
|
+
GLOBAL_EXTEND?: boolean | "suppress-warning" | undefined;
|
|
4778
|
+
GLOBAL_PROTOTYPE?: boolean | "suppress-warning" | undefined;
|
|
4779
|
+
GLOBAL_SET?: boolean | "suppress-warning" | undefined;
|
|
4780
|
+
GLOBAL_DELETE?: boolean | "suppress-warning" | undefined;
|
|
4781
|
+
GLOBAL_OBSERVABLE?: boolean | "suppress-warning" | undefined;
|
|
4782
|
+
GLOBAL_PRIVATE_UTIL?: boolean | "suppress-warning" | undefined;
|
|
4783
|
+
CONFIG_SILENT?: boolean | "suppress-warning" | undefined;
|
|
4784
|
+
CONFIG_DEVTOOLS?: boolean | "suppress-warning" | undefined;
|
|
4785
|
+
CONFIG_KEY_CODES?: boolean | "suppress-warning" | undefined;
|
|
4786
|
+
CONFIG_PRODUCTION_TIP?: boolean | "suppress-warning" | undefined;
|
|
4787
|
+
CONFIG_IGNORED_ELEMENTS?: boolean | "suppress-warning" | undefined;
|
|
4788
|
+
CONFIG_WHITESPACE?: boolean | "suppress-warning" | undefined;
|
|
4789
|
+
CONFIG_OPTION_MERGE_STRATS?: boolean | "suppress-warning" | undefined;
|
|
4790
|
+
INSTANCE_SET?: boolean | "suppress-warning" | undefined;
|
|
4791
|
+
INSTANCE_DELETE?: boolean | "suppress-warning" | undefined;
|
|
4792
|
+
INSTANCE_DESTROY?: boolean | "suppress-warning" | undefined;
|
|
4793
|
+
INSTANCE_EVENT_EMITTER?: boolean | "suppress-warning" | undefined;
|
|
4794
|
+
INSTANCE_EVENT_HOOKS?: boolean | "suppress-warning" | undefined;
|
|
4795
|
+
INSTANCE_CHILDREN?: boolean | "suppress-warning" | undefined;
|
|
4796
|
+
INSTANCE_LISTENERS?: boolean | "suppress-warning" | undefined;
|
|
4797
|
+
INSTANCE_SCOPED_SLOTS?: boolean | "suppress-warning" | undefined;
|
|
4798
|
+
INSTANCE_ATTRS_CLASS_STYLE?: boolean | "suppress-warning" | undefined;
|
|
4799
|
+
OPTIONS_DATA_FN?: boolean | "suppress-warning" | undefined;
|
|
4800
|
+
OPTIONS_DATA_MERGE?: boolean | "suppress-warning" | undefined;
|
|
4801
|
+
OPTIONS_BEFORE_DESTROY?: boolean | "suppress-warning" | undefined;
|
|
4802
|
+
OPTIONS_DESTROYED?: boolean | "suppress-warning" | undefined;
|
|
4803
|
+
WATCH_ARRAY?: boolean | "suppress-warning" | undefined;
|
|
4804
|
+
PROPS_DEFAULT_THIS?: boolean | "suppress-warning" | undefined;
|
|
4805
|
+
V_ON_KEYCODE_MODIFIER?: boolean | "suppress-warning" | undefined;
|
|
4806
|
+
CUSTOM_DIR?: boolean | "suppress-warning" | undefined;
|
|
4807
|
+
ATTR_FALSE_VALUE?: boolean | "suppress-warning" | undefined;
|
|
4808
|
+
ATTR_ENUMERATED_COERCION?: boolean | "suppress-warning" | undefined;
|
|
4809
|
+
TRANSITION_CLASSES?: boolean | "suppress-warning" | undefined;
|
|
4810
|
+
TRANSITION_GROUP_ROOT?: boolean | "suppress-warning" | undefined;
|
|
4811
|
+
COMPONENT_ASYNC?: boolean | "suppress-warning" | undefined;
|
|
4812
|
+
COMPONENT_FUNCTIONAL?: boolean | "suppress-warning" | undefined;
|
|
4813
|
+
COMPONENT_V_MODEL?: boolean | "suppress-warning" | undefined;
|
|
4814
|
+
RENDER_FUNCTION?: boolean | "suppress-warning" | undefined;
|
|
4815
|
+
FILTERS?: boolean | "suppress-warning" | undefined;
|
|
4816
|
+
PRIVATE_APIS?: boolean | "suppress-warning" | undefined;
|
|
4817
|
+
MODE?: 2 | 3 | ((comp: import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | null) => 2 | 3) | undefined;
|
|
4818
|
+
} | undefined;
|
|
4819
|
+
data?: ((this: any, vm: any) => any) | undefined;
|
|
4820
|
+
computed?: import("vue").ComputedOptions | undefined;
|
|
4821
|
+
methods?: import("vue").MethodOptions | undefined;
|
|
4822
|
+
watch?: {
|
|
4823
|
+
[x: string]: (string | import("vue").WatchCallback<any, any> | ({
|
|
4824
|
+
handler: string | import("vue").WatchCallback<any, any>;
|
|
4825
|
+
} & import("vue").WatchOptions<boolean>)) | (string | import("vue").WatchCallback<any, any> | ({
|
|
4826
|
+
handler: string | import("vue").WatchCallback<any, any>;
|
|
4827
|
+
} & import("vue").WatchOptions<boolean>))[];
|
|
4828
|
+
} | undefined;
|
|
4829
|
+
provide?: import("vue").ComponentProvideOptions | undefined;
|
|
4830
|
+
inject?: (string[] | {
|
|
4831
|
+
[x: string]: string | symbol | {
|
|
4832
|
+
from?: string | symbol | undefined;
|
|
4833
|
+
default?: unknown;
|
|
4834
|
+
};
|
|
4835
|
+
[x: symbol]: string | symbol | {
|
|
4836
|
+
from?: string | symbol | undefined;
|
|
4837
|
+
default?: unknown;
|
|
4838
|
+
};
|
|
4839
|
+
}) | undefined;
|
|
4840
|
+
filters?: Record<string, Function> | undefined;
|
|
4841
|
+
mixins?: any[] | undefined;
|
|
4842
|
+
extends?: any;
|
|
4843
|
+
beforeCreate?: (() => void) | undefined;
|
|
4844
|
+
created?: (() => void) | undefined;
|
|
4845
|
+
beforeMount?: (() => void) | undefined;
|
|
4846
|
+
mounted?: (() => void) | undefined;
|
|
4847
|
+
beforeUpdate?: (() => void) | undefined;
|
|
4848
|
+
updated?: (() => void) | undefined;
|
|
4849
|
+
activated?: (() => void) | undefined;
|
|
4850
|
+
deactivated?: (() => void) | undefined;
|
|
4851
|
+
beforeDestroy?: (() => void) | undefined;
|
|
4852
|
+
beforeUnmount?: (() => void) | undefined;
|
|
4853
|
+
destroyed?: (() => void) | undefined;
|
|
4854
|
+
unmounted?: (() => void) | undefined;
|
|
4855
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | undefined;
|
|
4856
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | undefined;
|
|
4857
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | undefined;
|
|
4858
|
+
delimiters?: [string, string] | undefined;
|
|
4859
|
+
__differentiator?: string | number | symbol | undefined;
|
|
4860
|
+
__isBuiltIn?: boolean | undefined;
|
|
4861
|
+
__file?: string | undefined;
|
|
4862
|
+
__name?: string | undefined;
|
|
4863
|
+
} | undefined;
|
|
4864
|
+
changeCursor?: boolean | undefined;
|
|
4865
|
+
scrollTarget?: any;
|
|
4866
|
+
duration?: number | undefined;
|
|
4867
|
+
type?: "px" | "percent" | undefined;
|
|
4868
|
+
isDraggableEle?: ((event: MouseEvent) => boolean) | undefined;
|
|
4869
|
+
getScrollState?: ((target: import("../..").DragScrollTargetType | undefined) => {
|
|
4870
|
+
scrollTop: number;
|
|
4871
|
+
scrollLeft: number;
|
|
4872
|
+
}) | undefined;
|
|
4873
|
+
setScrollState?: ((target: import("../..").DragScrollTargetType | undefined, state: {
|
|
4874
|
+
scrollTarget: any;
|
|
4875
|
+
scrollTop: number;
|
|
4876
|
+
scrollLeft: number;
|
|
4877
|
+
offsetX: number;
|
|
4878
|
+
offsetY: number;
|
|
4879
|
+
startScrollX: number;
|
|
4880
|
+
startScrollY: number;
|
|
4881
|
+
}) => void) | undefined;
|
|
4882
|
+
} | undefined;
|
|
4617
4883
|
selectType?: "checkbox" | "radio" | null | undefined;
|
|
4618
4884
|
rowDraggable?: boolean | undefined;
|
|
4619
4885
|
showSeq?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{findAncestor as e}from"../../../../shared/utils/index.js";import{noop as
|
|
1
|
+
import{findAncestor as e}from"../../../../shared/utils/index.js";import{noop as r}from"lodash-es";import{computed as l,unref as t,onBeforeUnmount as o}from"vue";import{useDragScroll as a}from"../../../drag-scroll/src/index.js";import"../../index.js";import{useUUIDMap as u}from"../utils/index.js";import{defineTablePlugin as n}from"../hooks/useTablePlugin.js";function s(){const e="dragScrollPlugin";return n({name:e,apply(n){const{getItemFromUUID:s,setItemFromUUID:c,removeItemFromUUID:m}=u((()=>r),!1);n.configHooks.config.tap(e,((e,{$table:r})=>{if(!0!==e.dragScroll||!e.uuid)return e;const o=l((()=>{var e;return t(null==(e=r.value)?void 0:e.getRefMaps().refElem)})),u=l((()=>{var e;return null==(e=o.value)?void 0:e.querySelector(".vxe-table--body-wrapper.body--wrapper")}));return c(e.uuid,a(e.uuid,{...e.dragScrollConfig,dragEle:o,scrollTarget:u,isDraggableEle(e){const{bodyEle:l,inEmptyArea:o}=function(e,r){const l=e.target,o="TD"===l.tagName||l.classList.contains("vxe-cell"),a=t(r);return a?{target:l,bodyEle:i(l,a),inEmptyArea:o}:{target:l,inEmptyArea:o,bodyEle:null}}(e,r);return!!l&&o},getScrollState(){var e;return null!=(e=u.value)?e:r.value.getScroll()},setScrollState:(e,l)=>r.value.scrollTo(l.scrollLeft,l.scrollTop)})),e})),n.setupHooks.setup.tap(e,(e=>{o((()=>{var r;e.value.uuid&&(null==(r=s(e.value.uuid))||r(),m(e.value.uuid))}))}))}})}function i(r,l){const o=t(l.getRefMaps().refElem);let a=!1,u=!1,n=null;return e(r,(e=>(a||(a=e===o),u||(u=e.classList.contains("vxe-table--body-wrapper"),n=e),a&&u)))?n:null}export{s as dragScrollPlugin};
|