amis-editor-core 5.2.0-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/lib/cebfe0bc5a1dbde02da1.svg +10 -0
- package/lib/compat.d.ts +30 -0
- package/lib/component/Breadcrumb.d.ts +33 -0
- package/lib/component/ClassNameControl.d.ts +31 -0
- package/lib/component/CommonConfigWrapper.d.ts +6 -0
- package/lib/component/ContainerWrapper.d.ts +12 -0
- package/lib/component/Editor.d.ts +99 -0
- package/lib/component/HighlightBox.d.ts +29 -0
- package/lib/component/IFrameBridge.d.ts +32 -0
- package/lib/component/IFramePreview.d.ts +38 -0
- package/lib/component/MiniEditor.d.ts +9 -0
- package/lib/component/NodeWrapper.d.ts +20 -0
- package/lib/component/Panel/AMisCodeEditor.d.ts +37 -0
- package/lib/component/Panel/AvailableRenderersPanel.d.ts +10 -0
- package/lib/component/Panel/CodeEditorPanel.d.ts +6 -0
- package/lib/component/Panel/ContextMenuPanel.d.ts +8 -0
- package/lib/component/Panel/DrawerPanel.d.ts +15 -0
- package/lib/component/Panel/DrawerRendererPanel.d.ts +15 -0
- package/lib/component/Panel/InsertSubRendererPanel.d.ts +11 -0
- package/lib/component/Panel/LeftPanels.d.ts +20 -0
- package/lib/component/Panel/Outline.d.ts +18 -0
- package/lib/component/Panel/RenderersPanel.d.ts +31 -0
- package/lib/component/Panel/RightPanels.d.ts +21 -0
- package/lib/component/Panel/TargetNamePanel.d.ts +7 -0
- package/lib/component/PopOverForm.d.ts +22 -0
- package/lib/component/Preview.d.ts +67 -0
- package/lib/component/RegionHLBox.d.ts +20 -0
- package/lib/component/RegionWrapper.d.ts +206 -0
- package/lib/component/RendererThumb.d.ts +22 -0
- package/lib/component/ScaffoldModal.d.ts +24 -0
- package/lib/component/SubEditor.d.ts +67 -0
- package/lib/component/VRenderer.d.ts +191 -0
- package/lib/component/base/BackTop.d.ts +26 -0
- package/lib/component/base/ErrorRenderer.d.ts +4 -0
- package/lib/component/base/SearchCustomRendererPanel.d.ts +15 -0
- package/lib/component/base/SearchPanel.d.ts +83 -0
- package/lib/component/base/SearchRendererPanel.d.ts +19 -0
- package/lib/component/base/WidthDraggableBtn.d.ts +16 -0
- package/lib/component/base/WidthDraggableContainer.d.ts +2 -0
- package/lib/component/factory.d.ts +19 -0
- package/lib/dnd/default.d.ts +47 -0
- package/lib/dnd/index.d.ts +119 -0
- package/lib/dnd/interface.d.ts +14 -0
- package/lib/dnd/position-h.d.ts +7 -0
- package/lib/env.d.ts +5 -0
- package/lib/icons/index.d.ts +2 -0
- package/lib/index.d.ts +36 -0
- package/lib/index.min.js +1 -0
- package/lib/manager.d.ts +509 -0
- package/lib/mocker.d.ts +1 -0
- package/lib/plugin/AvailableRenderers.d.ts +8 -0
- package/lib/plugin/BasicToolbar.d.ts +11 -0
- package/lib/plugin/Code.d.ts +9 -0
- package/lib/plugin/DataDebug.d.ts +19 -0
- package/lib/plugin/ErrorRenderer.d.ts +7 -0
- package/lib/plugin/Name.d.ts +8 -0
- package/lib/plugin/Outline.d.ts +8 -0
- package/lib/plugin/Unknown.d.ts +5 -0
- package/lib/plugin.d.ts +639 -0
- package/lib/store/editor.d.ts +1048 -0
- package/lib/store/node.d.ts +281 -0
- package/lib/style.css +1 -0
- package/lib/tpl.d.ts +5 -0
- package/lib/util.d.ts +80 -0
- package/package.json +102 -0
- package/scss/_backTop.scss +55 -0
- package/scss/_bcn.scss +157 -0
- package/scss/_classname-picker.scss +57 -0
- package/scss/_context-menu-setting.scss +109 -0
- package/scss/_data-chain.scss +39 -0
- package/scss/_leftPanel.scss +237 -0
- package/scss/_mixin.scss +95 -0
- package/scss/_outline.scss +206 -0
- package/scss/_renderers.scss +536 -0
- package/scss/_rightPanel.scss +424 -0
- package/scss/_searchRendererPanel.scss +244 -0
- package/scss/_selection.scss +6 -0
- package/scss/_tableview.scss +53 -0
- package/scss/_targetname.scss +30 -0
- package/scss/_tooltip.scss +111 -0
- package/scss/_variables.scss +41 -0
- package/scss/control/_api-control.scss +61 -0
- package/scss/control/_badge-control.scss +46 -0
- package/scss/control/_dateshortcut-control.scss +108 -0
- package/scss/control/_formItem-control.scss +121 -0
- package/scss/control/_formula-control.scss +108 -0
- package/scss/control/_option-control.scss +170 -0
- package/scss/control/_switch-more-control.scss +121 -0
- package/scss/control/_validation-control.scss +101 -0
- package/scss/editor.scss +1563 -0
- package/scss/style-control/_background.scss +204 -0
- package/scss/style-control/_border.scss +105 -0
- package/scss/style-control/_box-model.scss +100 -0
- package/scss/style-control/_box-shadow.scss +12 -0
- package/scss/style-control/_font.scss +28 -0
- package/scss/style-control/_size.scss +40 -0
- package/scss/style-control/_style-common.scss +22 -0
- package/static/Code-hover.png +0 -0
- package/static/Code.png +0 -0
- package/static/Outline-hover.png +0 -0
- package/static/Outline.png +0 -0
- package/static/Renderers-hover.png +0 -0
- package/static/Renderers.png +0 -0
- package/static/empty.png +0 -0
- package/static/side_hide_left.svg +10 -0
package/lib/util.d.ts
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file 功能类函数集合。
|
|
3
|
+
*/
|
|
4
|
+
import { utils } from 'amis';
|
|
5
|
+
import { Diff } from 'deep-diff';
|
|
6
|
+
import type { Schema } from 'amis/lib/types';
|
|
7
|
+
declare const guid: typeof utils.guid, omitControls: typeof utils.omitControls, isObjectShallowModified: typeof utils.isObjectShallowModified, cloneObject: typeof utils.cloneObject, anyChanged: typeof utils.anyChanged, noop: typeof utils.noop, makeHorizontalDeeper: typeof utils.makeHorizontalDeeper, isEmpty: typeof utils.isEmpty, eachTree: typeof utils.eachTree, createObject: typeof utils.createObject;
|
|
8
|
+
export { guid, isObjectShallowModified, anyChanged, noop, makeHorizontalDeeper, omitControls, isEmpty, cloneObject, eachTree, createObject };
|
|
9
|
+
export declare function __uri(id: string): string;
|
|
10
|
+
export declare function cleanUndefined(obj: any): any;
|
|
11
|
+
/**
|
|
12
|
+
* 把 schema 处理一下传给 Preview 去渲染
|
|
13
|
+
* 给每个节点加个 $$id 这样方便编辑
|
|
14
|
+
* @param obj
|
|
15
|
+
*/
|
|
16
|
+
export declare function JSONPipeIn(obj: any): any;
|
|
17
|
+
export declare function JSONPipeOut(obj: any, filterHiddenProps?: boolean | ((key: string, prop: any) => boolean)): any;
|
|
18
|
+
export declare function JSONGetByPath(json: any, paths: Array<string>, stacks?: Array<any>): any;
|
|
19
|
+
export declare function JSONGetPathById(json: any, id: string): Array<string> | null;
|
|
20
|
+
export declare function JSONGetById(json: any, id: string): any;
|
|
21
|
+
export declare function JSONGetParentById(json: any, id: string, skipArray?: boolean): any;
|
|
22
|
+
export declare function JSONUpdate(json: any, id: string, value: any, replace?: boolean): any;
|
|
23
|
+
export declare function JSONDelete(json: any, id: string, pathsRef?: Array<string>, deleteIfEmpty?: boolean): any;
|
|
24
|
+
export declare function JSONMerge(json: any, target: any): any;
|
|
25
|
+
export declare function JSONChangeInArray(json: any, id: string, operation: (arr: Array<any>, node: any, index: number) => void): any;
|
|
26
|
+
export declare function JSONCanMoveUp(json: any, id: string): boolean;
|
|
27
|
+
export declare function JSONMoveUpById(json: any, id: string): any;
|
|
28
|
+
export declare function JSONCanMoveDown(json: any, id: string): boolean | 0;
|
|
29
|
+
export declare function JSONMoveDownById(json: any, id: string): any;
|
|
30
|
+
export declare function JSONDuplicate(json: any, id: string): any;
|
|
31
|
+
/**
|
|
32
|
+
* 用于复制或粘贴的时候重新生成
|
|
33
|
+
* @param json
|
|
34
|
+
*/
|
|
35
|
+
export declare function reGenerateID(json: any): any;
|
|
36
|
+
export declare function createElementFromHTML(htmlString: string): HTMLElement;
|
|
37
|
+
export declare function deepFind(schema: any, keyValue: any, result?: any): any;
|
|
38
|
+
/**
|
|
39
|
+
* 处理一下schema的$$commonSchema
|
|
40
|
+
* @param schema
|
|
41
|
+
* @valueWithConfig 带commonConfig 配置项的schema
|
|
42
|
+
*/
|
|
43
|
+
export declare function filterSchemaForConfig(schema: any, valueWithConfig?: any): any;
|
|
44
|
+
/**
|
|
45
|
+
* 给编辑器前处理一下,把 visibleOn, hiddenOn 什么的处理掉,要不没办法编辑。
|
|
46
|
+
* @param schema
|
|
47
|
+
*/
|
|
48
|
+
export declare function filterSchemaForEditor(schema: any): any;
|
|
49
|
+
export declare function blackList(list: Array<string>): (str: string) => boolean;
|
|
50
|
+
export declare function sortByList(list: Array<string>, attr: string | Function): (a: any, b: any) => 0 | 1 | -1;
|
|
51
|
+
export declare function persistGet(key: string, defaultValue?: any): any;
|
|
52
|
+
export declare function persistSet(key: string, value: any): void;
|
|
53
|
+
export declare function normalizeId(id: string): string;
|
|
54
|
+
export declare const autobind: typeof import("amis").autobindMethod;
|
|
55
|
+
export declare function addDragingClass(el: HTMLElement): void;
|
|
56
|
+
export declare function removeDragingClass(el: HTMLElement): void;
|
|
57
|
+
export declare function camelize(str: string): string;
|
|
58
|
+
export declare const reactionWithOldValue: <T>(expression: () => T, effect: (newValue: T, oldValue?: T | undefined) => void) => import("mobx").IReactionDisposer;
|
|
59
|
+
export declare function repeatArray<T>(child: T, count?: number): Array<T>;
|
|
60
|
+
export declare type DiffChange = Diff<any, any>;
|
|
61
|
+
export declare function diff(left: any, right: any, prefilter?: (currentPath: Array<string>, key: string) => boolean): Array<DiffChange> | undefined;
|
|
62
|
+
export declare function patchDiff(left: any, changes: Array<DiffChange> | undefined): any;
|
|
63
|
+
/**
|
|
64
|
+
* 遍历 schema
|
|
65
|
+
* @param json
|
|
66
|
+
* @param mapper
|
|
67
|
+
*/
|
|
68
|
+
export declare function JSONTraverse(json: any, mapper: (value: any, key: string | number, host: Object) => any): void;
|
|
69
|
+
export declare type PanelSchemaObject = Schema;
|
|
70
|
+
/**
|
|
71
|
+
* 判断输入内容是否为数字格式
|
|
72
|
+
*/
|
|
73
|
+
export declare const isNumeric: (value: any) => boolean;
|
|
74
|
+
export declare const string2CSSUnit: (value: any, unit?: string) => any;
|
|
75
|
+
export declare function isString(obj: any): boolean;
|
|
76
|
+
/**
|
|
77
|
+
* 判断是否是对象类型
|
|
78
|
+
* */
|
|
79
|
+
export declare function isObject(curObj: any): boolean;
|
|
80
|
+
export declare function jsonToJsonSchema(json?: any): any;
|
package/package.json
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "amis-editor-core",
|
|
3
|
+
"version": "5.2.0-beta.0",
|
|
4
|
+
"description": "amis 可视化编辑器",
|
|
5
|
+
"main": "lib/index.min.js",
|
|
6
|
+
"types": "lib/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
|
+
"build": "npm run clean-dist && webpack",
|
|
10
|
+
"clean-dist": "rimraf lib/* esm/*"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"amis",
|
|
14
|
+
"editor"
|
|
15
|
+
],
|
|
16
|
+
"author": "@fex",
|
|
17
|
+
"license": "ISC",
|
|
18
|
+
"files": [
|
|
19
|
+
"lib",
|
|
20
|
+
"static",
|
|
21
|
+
"scss"
|
|
22
|
+
],
|
|
23
|
+
"lint-staged": {
|
|
24
|
+
"{src,scss,examples}/**/**/*.{js,jsx,ts,tsx,scss,json}": [
|
|
25
|
+
"prettier --write"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"amis-editor-comp": "*",
|
|
30
|
+
"deep-diff": "1.0.2",
|
|
31
|
+
"json-ast-comments": "^1.1.0",
|
|
32
|
+
"lodash": "^4.17.15",
|
|
33
|
+
"mobx": "^4.5.0",
|
|
34
|
+
"mobx-react": "^6.1.4",
|
|
35
|
+
"mobx-state-tree": "^3.17.3",
|
|
36
|
+
"sortablejs": "^1.14.0"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@fortawesome/fontawesome-free": "^5.15.3",
|
|
40
|
+
"@svgr/webpack": "^5.5.0",
|
|
41
|
+
"@types/async": "^2.0.45",
|
|
42
|
+
"@types/classnames": "^2.2.3",
|
|
43
|
+
"@types/codemirror": "^5.60.5",
|
|
44
|
+
"@types/deep-diff": "^1.0.0",
|
|
45
|
+
"@types/history": "^4.6.0",
|
|
46
|
+
"@types/hoist-non-react-statics": "^3.0.1",
|
|
47
|
+
"@types/lodash": "^4.14.76",
|
|
48
|
+
"@types/node": "^14.0.24",
|
|
49
|
+
"@types/qs": "^6.5.1",
|
|
50
|
+
"@types/react": "^16.9.11",
|
|
51
|
+
"@types/react-dom": "^16.9.4",
|
|
52
|
+
"@types/react-router": "^4.0.16",
|
|
53
|
+
"@types/react-router-dom": "^5.1.7",
|
|
54
|
+
"@types/sortablejs": "^1.10.7",
|
|
55
|
+
"@types/tinycolor2": "^1.4.3",
|
|
56
|
+
"ajv": "^8.8.2",
|
|
57
|
+
"amis": "^2.0.0-rc.10",
|
|
58
|
+
"amis-core": "^2.0.0-rc.10",
|
|
59
|
+
"amis-formula": "^2.0.0-rc.10",
|
|
60
|
+
"amis-ui": "^2.0.0-rc.10",
|
|
61
|
+
"axios": "0.21.1",
|
|
62
|
+
"concurrently": "^6.2.0",
|
|
63
|
+
"css-loader": "^6.2.0",
|
|
64
|
+
"faker": "^5.5.3",
|
|
65
|
+
"fis-parser-sass": "^1.1.0",
|
|
66
|
+
"fis-parser-svgr": "^1.0.1",
|
|
67
|
+
"fis3": "^3.5.0-beta.0",
|
|
68
|
+
"fis3-hook-commonjs": "^0.1.32",
|
|
69
|
+
"fis3-hook-node_modules": "^2.3.1",
|
|
70
|
+
"fis3-parser-typescript": "^1.4.0",
|
|
71
|
+
"fis3-postpackager-loader": "^2.1.12",
|
|
72
|
+
"fis3-prepackager-stand-alone-pack": "^1.0.1",
|
|
73
|
+
"fis3-preprocessor-js-require-css": "^0.1.3",
|
|
74
|
+
"fis3-preprocessor-js-require-file": "^0.1.3",
|
|
75
|
+
"husky": "^7.0.0",
|
|
76
|
+
"lint-staged": "^12.1.2",
|
|
77
|
+
"mini-css-extract-plugin": "^2.3.0",
|
|
78
|
+
"prettier": "^2.2.1",
|
|
79
|
+
"react": "^16.14.0",
|
|
80
|
+
"react-dom": "^16.14.0",
|
|
81
|
+
"react-overlays": "5.1.1",
|
|
82
|
+
"react-router": "5.2.0",
|
|
83
|
+
"react-router-dom": "5.2.0",
|
|
84
|
+
"rimraf": "^3.0.2",
|
|
85
|
+
"sass": "^1.49.7",
|
|
86
|
+
"sass-loader": "^12.5.0",
|
|
87
|
+
"style-loader": "^3.2.1",
|
|
88
|
+
"ts-loader": "^9.2.5",
|
|
89
|
+
"tslib": "^2.3.1",
|
|
90
|
+
"typescript": "^4.4.2",
|
|
91
|
+
"webpack": "^5.52.1",
|
|
92
|
+
"webpack-bundle-analyzer": "^4.5.0",
|
|
93
|
+
"webpack-cli": "^4.8.0",
|
|
94
|
+
"webpack-node-externals": "^3.0.0"
|
|
95
|
+
},
|
|
96
|
+
"peerDependencies": {
|
|
97
|
+
"amis": "*",
|
|
98
|
+
"amis-core": "*",
|
|
99
|
+
"amis-formula": "*",
|
|
100
|
+
"amis-ui": "*"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
.editor-backTop {
|
|
2
|
+
position: fixed;
|
|
3
|
+
right: 30px;
|
|
4
|
+
bottom: 32px;
|
|
5
|
+
z-index: 10000;
|
|
6
|
+
width: 32px;
|
|
7
|
+
height: 32px;
|
|
8
|
+
margin: 0;
|
|
9
|
+
padding: 0;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
color: rgba(0, 0, 0, 0.85);
|
|
12
|
+
font-size: 14px;
|
|
13
|
+
font-variant: tabular-nums;
|
|
14
|
+
line-height: 1.5715;
|
|
15
|
+
list-style: none;
|
|
16
|
+
font-feature-settings: 'tnum';
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
visibility: visible;
|
|
19
|
+
transition: all 0.3s;
|
|
20
|
+
|
|
21
|
+
&.hidden {
|
|
22
|
+
visibility: hidden;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
.editor-backTop:empty {
|
|
26
|
+
display: none;
|
|
27
|
+
}
|
|
28
|
+
.backTop-content {
|
|
29
|
+
width: 40px;
|
|
30
|
+
height: 40px;
|
|
31
|
+
overflow: hidden;
|
|
32
|
+
color: #fff;
|
|
33
|
+
text-align: center;
|
|
34
|
+
background-color: rgba($Editor-theme, 0.85);
|
|
35
|
+
border-radius: 20px;
|
|
36
|
+
transition: all 0.3s;
|
|
37
|
+
}
|
|
38
|
+
.backTop-content:hover {
|
|
39
|
+
background-color: $Editor-theme;
|
|
40
|
+
transition: all 0.3s;
|
|
41
|
+
}
|
|
42
|
+
.backTop-icon {
|
|
43
|
+
font-size: 20px;
|
|
44
|
+
line-height: 40px;
|
|
45
|
+
}
|
|
46
|
+
@media screen and (max-width: 768px) {
|
|
47
|
+
.editor-backTop {
|
|
48
|
+
right: 60px;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
@media screen and (max-width: 480px) {
|
|
52
|
+
.editor-backTop {
|
|
53
|
+
right: 20px;
|
|
54
|
+
}
|
|
55
|
+
}
|
package/scss/_bcn.scss
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
.ae-Breadcrumb {
|
|
2
|
+
flex: 0 0 42px;
|
|
3
|
+
position: relative;
|
|
4
|
+
padding: 0;
|
|
5
|
+
background: #fff;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
border-bottom: 1px solid $editor-border-color;
|
|
8
|
+
z-index: 1000;
|
|
9
|
+
|
|
10
|
+
.ae-Breadcrumb-content {
|
|
11
|
+
position: relative;
|
|
12
|
+
left: 0;
|
|
13
|
+
height: 100%;
|
|
14
|
+
width: max-content;
|
|
15
|
+
padding: 0 16px;
|
|
16
|
+
|
|
17
|
+
white-space: nowrap;
|
|
18
|
+
height: 42px;
|
|
19
|
+
line-height: 42px;
|
|
20
|
+
background: #fff;
|
|
21
|
+
letter-spacing: 0;
|
|
22
|
+
font-family: PingFangSC-Regular;
|
|
23
|
+
font-size: 12px;
|
|
24
|
+
color: #5c5f66;
|
|
25
|
+
font-weight: 400;
|
|
26
|
+
user-select: none;
|
|
27
|
+
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
z-index: 10000;
|
|
30
|
+
transition: left ease-out 0.15s;
|
|
31
|
+
|
|
32
|
+
> ul {
|
|
33
|
+
list-style: none;
|
|
34
|
+
display: inline-block;
|
|
35
|
+
margin: 0;
|
|
36
|
+
padding: 0;
|
|
37
|
+
> li {
|
|
38
|
+
display: inline-block;
|
|
39
|
+
margin: 0 0 0 8px;
|
|
40
|
+
padding: 0;
|
|
41
|
+
position: relative;
|
|
42
|
+
|
|
43
|
+
&:first-child {
|
|
44
|
+
margin: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
> span {
|
|
48
|
+
display: inline-block;
|
|
49
|
+
padding-right: 8px;
|
|
50
|
+
line-height: 42px !important; // 避免被覆盖
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
|
|
53
|
+
&:hover {
|
|
54
|
+
text-decoration: none;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
// 同级元素选择弹层
|
|
58
|
+
> ul {
|
|
59
|
+
position: absolute;
|
|
60
|
+
top: 46px;
|
|
61
|
+
left: 0;
|
|
62
|
+
min-width: 100px;
|
|
63
|
+
max-height: 320px;
|
|
64
|
+
line-height: 20px; // 32 - 12
|
|
65
|
+
padding: 0;
|
|
66
|
+
font-family: PingFangSC-Regular;
|
|
67
|
+
font-size: 12px;
|
|
68
|
+
color: #151b26;
|
|
69
|
+
font-weight: 400;
|
|
70
|
+
box-shadow: 0 2px 8px 0 rgba(7, 12, 20, 0.12);
|
|
71
|
+
border-radius: 4px;
|
|
72
|
+
background: #fff;
|
|
73
|
+
list-style: none;
|
|
74
|
+
z-index: 100000; // 设置一个最大的层级
|
|
75
|
+
visibility: hidden;
|
|
76
|
+
transition: all ease-out 0.15s;
|
|
77
|
+
@include minScrollBar();
|
|
78
|
+
> li > span {
|
|
79
|
+
display: block;
|
|
80
|
+
padding: 6px 12px;
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
&:hover {
|
|
83
|
+
background: $active-bg-color;
|
|
84
|
+
text-decoration: none;
|
|
85
|
+
}
|
|
86
|
+
&.is-active {
|
|
87
|
+
color: $Editor-theme;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
&:hover > ul,
|
|
92
|
+
& > ul:hover {
|
|
93
|
+
visibility: visible;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
> li:not(:last-child):after {
|
|
97
|
+
color: #5e626a;
|
|
98
|
+
content: '\003E';
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
> li:last-child > span {
|
|
102
|
+
font-family: PingFangSC-Medium;
|
|
103
|
+
font-size: 12px;
|
|
104
|
+
color: #151b26;
|
|
105
|
+
line-height: 20px;
|
|
106
|
+
font-weight: 500;
|
|
107
|
+
text-decoration: none;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.ae-Breadcrumb-scrollLeft-btn,
|
|
113
|
+
.ae-Breadcrumb-scrollRight-btn {
|
|
114
|
+
position: absolute;
|
|
115
|
+
top: 0;
|
|
116
|
+
left: 0;
|
|
117
|
+
width: 40px;
|
|
118
|
+
height: 41px;
|
|
119
|
+
background-color: #fff;
|
|
120
|
+
box-sizing: border-box;
|
|
121
|
+
box-shadow: 2px 0 20px 0 rgb(0 0 0 / 10%);
|
|
122
|
+
cursor: pointer;
|
|
123
|
+
display: flex;
|
|
124
|
+
justify-content: center;
|
|
125
|
+
align-items: center;
|
|
126
|
+
visibility: hidden;
|
|
127
|
+
z-index: 100000;
|
|
128
|
+
|
|
129
|
+
svg {
|
|
130
|
+
color: #151b26;
|
|
131
|
+
width: 16px;
|
|
132
|
+
height: 16px;
|
|
133
|
+
transform: rotate(180deg);
|
|
134
|
+
|
|
135
|
+
&:hover {
|
|
136
|
+
color: $editor-active-color;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.ae-Breadcrumb-scrollRight-btn {
|
|
142
|
+
left: auto;
|
|
143
|
+
right: 0;
|
|
144
|
+
box-shadow: -2px 0 20px 0 rgb(0 0 0 / 10%);
|
|
145
|
+
|
|
146
|
+
svg.icon-editor-double-arrow {
|
|
147
|
+
transform: rotate(0deg);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&:hover {
|
|
152
|
+
.ae-Breadcrumb-scrollLeft-btn,
|
|
153
|
+
.ae-Breadcrumb-scrollRight-btn {
|
|
154
|
+
visibility: visible;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
.ae-ClassNamePicker-popover {
|
|
2
|
+
padding: 10px;
|
|
3
|
+
width: 610px;
|
|
4
|
+
max-height: 400px;
|
|
5
|
+
overflow: auto;
|
|
6
|
+
|
|
7
|
+
&.ae-PopOver--leftBottomLeftTop {
|
|
8
|
+
margin-top: 1px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&.ae-PopOver--leftTopLeftBottom {
|
|
12
|
+
margin-top: -1px;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.ae-ClassNameControl-group {
|
|
17
|
+
margin: 10px;
|
|
18
|
+
display: inline-block;
|
|
19
|
+
width: 265px;
|
|
20
|
+
|
|
21
|
+
&.w2x {
|
|
22
|
+
width: 550px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.ae-ClassNameControl-group {
|
|
26
|
+
padding-left: 65px;
|
|
27
|
+
margin: 0;
|
|
28
|
+
display: block;
|
|
29
|
+
width: auto;
|
|
30
|
+
|
|
31
|
+
&:not(:last-child) {
|
|
32
|
+
margin: 0 0 10px 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.ae-ClassNameControl-groupLabel {
|
|
36
|
+
float: left;
|
|
37
|
+
border: none;
|
|
38
|
+
padding-top: 5px;
|
|
39
|
+
padding-bottom: 0;
|
|
40
|
+
text-align: right;
|
|
41
|
+
margin: 0 0 0 -60px;
|
|
42
|
+
font-size: 12px;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.ae-ButtonGroup + .ae-ButtonGroup {
|
|
47
|
+
margin-left: 5px;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.ae-ClassNameControl-groupLabel {
|
|
52
|
+
border-bottom: px2rem(1px) solid lighten($color: $borderColor, $amount: 5%);
|
|
53
|
+
display: block;
|
|
54
|
+
padding-bottom: 5px;
|
|
55
|
+
margin-bottom: 10px;
|
|
56
|
+
font-size: 14px;
|
|
57
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
.context-menu-setting {
|
|
2
|
+
position: relative;
|
|
3
|
+
width: 260px;
|
|
4
|
+
background: #fff;
|
|
5
|
+
box-shadow: -2px 0 20px 0 rgba(0, 0, 0, 0.1);
|
|
6
|
+
z-index: 5;
|
|
7
|
+
// 搞点动画?
|
|
8
|
+
transition: width ease-in-out 0.2s;
|
|
9
|
+
transform: translateZ(0);
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
|
|
13
|
+
.setting-header {
|
|
14
|
+
flex: 0 0 48px;
|
|
15
|
+
font-family: PingFangSC-Regular;
|
|
16
|
+
font-size: 14px;
|
|
17
|
+
color: #141a25;
|
|
18
|
+
line-height: 48px;
|
|
19
|
+
letter-spacing: 0;
|
|
20
|
+
font-weight: 400;
|
|
21
|
+
border-bottom: 1px solid #e6e6e8;
|
|
22
|
+
text-align: center;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.setting-body {
|
|
26
|
+
flex: 1 1 auto;
|
|
27
|
+
overflow-x: hidden;
|
|
28
|
+
overflow-y: auto;
|
|
29
|
+
padding: 12px 6px;
|
|
30
|
+
display: flex;
|
|
31
|
+
justify-content: flex-start;
|
|
32
|
+
align-content: flex-start;
|
|
33
|
+
flex-wrap: wrap;
|
|
34
|
+
|
|
35
|
+
.setting-item {
|
|
36
|
+
margin: 0 2px 12px 6px; // 兼容右侧可能出现滚动条情况
|
|
37
|
+
padding-top: 12px;
|
|
38
|
+
flex: 0 0 112px;
|
|
39
|
+
height: 62px;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
box-sizing: border-box;
|
|
42
|
+
border: 1px solid #ddd;
|
|
43
|
+
border-radius: 4px;
|
|
44
|
+
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-direction: column;
|
|
47
|
+
justify-content: flex-start;
|
|
48
|
+
align-items: center;
|
|
49
|
+
|
|
50
|
+
.icon-box {
|
|
51
|
+
width: 24px;
|
|
52
|
+
height: 24px;
|
|
53
|
+
box-sizing: border-box;
|
|
54
|
+
display: flex;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
align-items: center;
|
|
57
|
+
|
|
58
|
+
> svg {
|
|
59
|
+
width: 24px;
|
|
60
|
+
height: 24px;
|
|
61
|
+
fill: #bcbcbc;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.setting-info {
|
|
66
|
+
margin-top: 4px;
|
|
67
|
+
flex: 1 1 auto;
|
|
68
|
+
font-family: PingFangSC-Regular;
|
|
69
|
+
font-size: 12px;
|
|
70
|
+
color: #141a25;
|
|
71
|
+
font-weight: 400;
|
|
72
|
+
user-select: none;
|
|
73
|
+
overflow: hidden;
|
|
74
|
+
text-overflow: ellipsis;
|
|
75
|
+
white-space: nowrap;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&:hover {
|
|
79
|
+
background: #e9effd;
|
|
80
|
+
border: 1px solid $Editor-theme-color;
|
|
81
|
+
border-radius: 4px;
|
|
82
|
+
|
|
83
|
+
.icon-box > svg {
|
|
84
|
+
fill: $Editor-theme-color;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.setting-info {
|
|
88
|
+
color: $Editor-theme-color;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&.disabled {
|
|
93
|
+
cursor: not-allowed;
|
|
94
|
+
// pointer-events: none;
|
|
95
|
+
background: rgba(#bdbdbd, 0.15);
|
|
96
|
+
border: 1px solid #ddd;
|
|
97
|
+
border-radius: 4px;
|
|
98
|
+
|
|
99
|
+
.icon-box > svg {
|
|
100
|
+
fill: #bdbdbd;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.setting-info {
|
|
104
|
+
color: #bdbdbd;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
.aeDataChain {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
flex-wrap: nowrap;
|
|
5
|
+
min-height: 300px;
|
|
6
|
+
|
|
7
|
+
&-aside {
|
|
8
|
+
width: 60px;
|
|
9
|
+
flex-shrink: 0;
|
|
10
|
+
border-right: 1px solid #ccc;
|
|
11
|
+
margin-right: 10px;
|
|
12
|
+
padding-right: 10px;
|
|
13
|
+
|
|
14
|
+
> ul {
|
|
15
|
+
list-style: none;
|
|
16
|
+
margin: 0;
|
|
17
|
+
padding: 0;
|
|
18
|
+
|
|
19
|
+
> li {
|
|
20
|
+
display: block;
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
text-align: center;
|
|
23
|
+
color: #999;
|
|
24
|
+
padding: 2px 5px;
|
|
25
|
+
font-size: 12px;
|
|
26
|
+
|
|
27
|
+
&.is-active {
|
|
28
|
+
color: #333;
|
|
29
|
+
background: darken(#f6f7fb, 2.5%);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&-main {
|
|
36
|
+
flex-grow: 1;
|
|
37
|
+
flex-basis: auto;
|
|
38
|
+
}
|
|
39
|
+
}
|