vue-editify 0.2.0 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/insertImage/insertImage.vue.d.ts +3 -3
- package/lib/components/insertImage/props.d.ts +1 -1
- package/lib/components/insertVideo/insertVideo.vue.d.ts +3 -3
- package/lib/components/insertVideo/props.d.ts +1 -1
- package/lib/core/tool.d.ts +12 -3
- 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/attachment/index.d.ts +1 -1
- package/lib/plugins/attachment/insertAttachment/insertAttachment.vue.d.ts +3 -3
- package/lib/plugins/attachment/insertAttachment/props.d.ts +1 -1
- 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/insertImage/props.ts +1 -1
- package/src/components/insertLink/insertLink.vue +1 -1
- package/src/components/insertVideo/insertVideo.vue +3 -3
- package/src/components/insertVideo/props.ts +1 -1
- 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 +22 -8
- 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 +8 -8
- package/src/plugins/attachment/insertAttachment/insertAttachment.vue +3 -3
- package/src/plugins/attachment/insertAttachment/props.ts +1 -1
- 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
@@ -1,13 +1,13 @@
|
|
1
1
|
import { common as DapCommon } from 'dap-util'
|
2
|
-
import { ObjectType, PluginType, cloneData } from '../../core/tool'
|
3
2
|
import { ComponentInternalInstance, h } from 'vue'
|
4
3
|
import { AlexEditor, AlexElement, AlexElementsRangeType } from 'alex-editor'
|
4
|
+
import { ObjectType, PluginType, cloneData } from '@/core/tool'
|
5
5
|
import 'katex/dist/katex.css'
|
6
6
|
import KaTex from 'katex'
|
7
|
-
import Icon from '
|
8
|
-
import Button from '
|
7
|
+
import Icon from '@/components/icon/icon.vue'
|
8
|
+
import Button from '@/components/button/button.vue'
|
9
|
+
import { hasLinkInRange, hasPreInRange } from '@/core/function'
|
9
10
|
import InsertMathformula from './insertMathformula/insertMathformula.vue'
|
10
|
-
import { hasLinkInRange, hasPreInRange } from '../../core/function'
|
11
11
|
|
12
12
|
export type MathformulaOptionsType = {
|
13
13
|
//排序
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { common as DapCommon } from 'dap-util'
|
2
|
-
import { PluginType } from '../../core/tool'
|
3
2
|
import { ComponentInternalInstance, h } from 'vue'
|
4
3
|
import { AlexEditor, AlexElement, AlexElementsRangeType } from 'alex-editor'
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import {
|
4
|
+
import { PluginType } from '@/core/tool'
|
5
|
+
import Icon from '@/components/icon/icon.vue'
|
6
|
+
import { hasTableInRange } from '@/core/function'
|
7
|
+
import { hasMathformulaInRange } from '@/plugins/mathformula'
|
8
8
|
|
9
9
|
export type PanelOptionsType = {
|
10
10
|
//排序
|
package/tsconfig.json
CHANGED
package/vite.config.ts
CHANGED
@@ -6,6 +6,11 @@ import path from 'path'
|
|
6
6
|
|
7
7
|
export default defineConfig({
|
8
8
|
plugins: [vue(), dts(), cssInjectedByJsPlugin({ topExecutionPriority: false })],
|
9
|
+
resolve: {
|
10
|
+
alias: {
|
11
|
+
'@': path.resolve(__dirname, './src')
|
12
|
+
}
|
13
|
+
},
|
9
14
|
build: {
|
10
15
|
//打包后的目录名称
|
11
16
|
outDir: 'lib',
|