vue-editify 0.2.0 → 0.2.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/lib/core/tool.d.ts +10 -1
- package/lib/editify/props.d.ts +1 -1
- package/lib/editify.es.js +12794 -12787
- package/lib/editify.umd.js +2 -2
- package/lib/index.d.ts +731 -5
- package/lib/plugins/infoBlock/index.d.ts +1 -1
- package/lib/plugins/mathformula/index.d.ts +1 -1
- package/lib/plugins/panel/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/button/button.vue +5 -5
- package/src/components/button/props.ts +1 -1
- package/src/components/checkbox/checkbox.vue +3 -3
- package/src/components/checkbox/props.ts +1 -1
- package/src/components/colors/colors.vue +3 -3
- package/src/components/colors/props.ts +1 -1
- package/src/components/insertImage/insertImage.vue +3 -3
- package/src/components/insertLink/insertLink.vue +1 -1
- package/src/components/insertVideo/insertVideo.vue +3 -3
- package/src/components/layer/layer.vue +3 -3
- package/src/components/menu/menu.vue +13 -13
- package/src/components/menu/props.ts +1 -1
- package/src/components/toolbar/props.ts +1 -1
- package/src/components/toolbar/toolbar.vue +10 -10
- package/src/components/tooltip/tooltip.vue +1 -1
- package/src/components/triangle/triangle.vue +1 -1
- package/src/core/function.ts +2 -2
- package/src/core/rule.ts +4 -4
- package/src/core/tool.ts +20 -6
- package/src/editify/editify.vue +8 -8
- package/src/editify/props.ts +2 -2
- package/src/index.ts +24 -21
- package/src/plugins/attachment/index.ts +7 -7
- package/src/plugins/attachment/insertAttachment/insertAttachment.vue +3 -3
- package/src/plugins/infoBlock/index.ts +4 -4
- package/src/plugins/mathformula/index.ts +4 -4
- package/src/plugins/panel/index.ts +4 -4
- package/tsconfig.json +4 -0
- package/vite.config.ts +5 -0
package/lib/core/tool.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
+
import { App, Component, ComponentInternalInstance, VNode } from 'vue';
|
1
2
|
import { AlexElement } from 'alex-editor';
|
2
3
|
import { ButtonOptionsItemType, ButtonTypeType } from '../components/button/props';
|
3
4
|
import { LocaleType } from '../locale';
|
4
5
|
import { InsertImageUploadErrorType } from '../components/insertImage/props';
|
5
|
-
import { ComponentInternalInstance, VNode } from 'vue';
|
6
6
|
import { default as Button } from '../components/button/button.vue';
|
7
7
|
|
8
8
|
export type ObjectType = {
|
@@ -193,6 +193,9 @@ export type PluginResultType = {
|
|
193
193
|
pasteKeepStyles?: (el: AlexElement) => ObjectType;
|
194
194
|
};
|
195
195
|
export type PluginType = (editifyInstance: ComponentInternalInstance, editTrans: (key: string) => any) => PluginResultType;
|
196
|
+
export type SFCWithInstall<T> = T & {
|
197
|
+
install(app: App): void;
|
198
|
+
};
|
196
199
|
/**
|
197
200
|
* 对象平替值方法
|
198
201
|
* @param o1
|
@@ -234,3 +237,9 @@ export declare const getToolbarConfig: (editTrans: (key: string) => any, editLoc
|
|
234
237
|
* @returns
|
235
238
|
*/
|
236
239
|
export declare const getMenuConfig: (editTrans: (key: string) => any, editLocale: LocaleType) => MenuConfigType;
|
240
|
+
/**
|
241
|
+
* 给组件增加install属性
|
242
|
+
* @param component
|
243
|
+
* @returns
|
244
|
+
*/
|
245
|
+
export declare const withInstall: <T extends Component>(component: T) => SFCWithInstall<T>;
|
package/lib/editify/props.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ExtractPublicPropTypes, PropType } from 'vue';
|
2
|
-
import { PluginType, MenuConfigType, ObjectType, ToolbarConfigType } from '../core/tool';
|
3
2
|
import { AlexElement } from 'alex-editor';
|
3
|
+
import { PluginType, MenuConfigType, ObjectType, ToolbarConfigType } from '../core/tool';
|
4
4
|
import { LocaleType } from '../locale';
|
5
5
|
|
6
6
|
export type EditifyResizeParamsType = {
|