@hbixinlian/as-editor-components 1.0.0 → 1.0.2
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 +451 -387
- package/dist/as-editor-components.css +1 -1
- package/dist/as-editor-components.es.js +2529 -3450
- package/dist/as-editor-components.es.js.map +1 -1
- package/dist/as-editor-components.umd.js +1 -45
- package/dist/as-editor-components.umd.js.map +1 -1
- package/dist/config/config.js +4 -4
- package/dist/index.html +21 -21
- package/dist/langs/zh_CN.js +415 -415
- package/dist/types/index.d.ts +26 -219
- package/package.json +107 -106
package/dist/types/index.d.ts
CHANGED
|
@@ -1,219 +1,26 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AS-Editor Components Library TypeScript 类型定义
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// ComponentRenderer 组件Props
|
|
30
|
-
export interface ComponentRendererProps {
|
|
31
|
-
pageConfig?: PageConfig
|
|
32
|
-
components?: ComponentItem[]
|
|
33
|
-
minHeight?: number
|
|
34
|
-
showEditControls?: boolean
|
|
35
|
-
enableInteraction?: boolean
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// ComponentRenderer 组件Emits
|
|
39
|
-
export interface ComponentRendererEmits {
|
|
40
|
-
'component-click': (data: { component: ComponentItem; index: number }) => void
|
|
41
|
-
'component-delete': (data: { index: number }) => void
|
|
42
|
-
'renderer-ready': () => void
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
// 基础组件Props接口
|
|
46
|
-
export interface BaseComponentProps {
|
|
47
|
-
datas: ComponentData
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// 组件类型声明
|
|
51
|
-
export declare const ComponentRenderer: DefineComponent<ComponentRendererProps, {}, {}, {}, {}, {}, {}, ComponentRendererEmits>
|
|
52
|
-
|
|
53
|
-
// 基础组件
|
|
54
|
-
export declare const CaptionText: DefineComponent<BaseComponentProps>
|
|
55
|
-
export declare const PictureAds: DefineComponent<BaseComponentProps>
|
|
56
|
-
export declare const RichText: DefineComponent<BaseComponentProps>
|
|
57
|
-
export declare const Notice: DefineComponent<BaseComponentProps>
|
|
58
|
-
export declare const TabBar: DefineComponent<BaseComponentProps>
|
|
59
|
-
export declare const Videos: DefineComponent<BaseComponentProps>
|
|
60
|
-
|
|
61
|
-
// 业务组件
|
|
62
|
-
export declare const CommoditySearch: DefineComponent<BaseComponentProps>
|
|
63
|
-
export declare const CommunityPowder: DefineComponent<BaseComponentProps>
|
|
64
|
-
export declare const CrowdOperation: DefineComponent<BaseComponentProps>
|
|
65
|
-
export declare const PersonalizedRecommendation: DefineComponent<BaseComponentProps>
|
|
66
|
-
export declare const StoreInformation: DefineComponent<BaseComponentProps>
|
|
67
|
-
export declare const EnterTheShop: DefineComponent<BaseComponentProps>
|
|
68
|
-
export declare const OnlineService: DefineComponent<BaseComponentProps>
|
|
69
|
-
export declare const Investigate: DefineComponent<BaseComponentProps>
|
|
70
|
-
export declare const Follow: DefineComponent<BaseComponentProps>
|
|
71
|
-
export declare const StoreNoteCard: DefineComponent<BaseComponentProps>
|
|
72
|
-
|
|
73
|
-
// 布局与装饰组件
|
|
74
|
-
export declare const AuxiliarySegmentation: DefineComponent<BaseComponentProps>
|
|
75
|
-
export declare const GraphicNavigation: DefineComponent<BaseComponentProps>
|
|
76
|
-
export declare const MagicCube: DefineComponent<BaseComponentProps>
|
|
77
|
-
export declare const ListSwitching: DefineComponent<BaseComponentProps>
|
|
78
|
-
export declare const Suspension: DefineComponent<BaseComponentProps>
|
|
79
|
-
export declare const PlacementArea: DefineComponent<BaseComponentProps>
|
|
80
|
-
export declare const CustomModule: DefineComponent<BaseComponentProps>
|
|
81
|
-
|
|
82
|
-
// 课程和直播组件
|
|
83
|
-
export declare const CourseModule: DefineComponent<BaseComponentProps>
|
|
84
|
-
export declare const LiveModule: DefineComponent<BaseComponentProps>
|
|
85
|
-
|
|
86
|
-
// 分类组件对象
|
|
87
|
-
export declare const BasicComponents: {
|
|
88
|
-
CaptionText: DefineComponent<BaseComponentProps>
|
|
89
|
-
PictureAds: DefineComponent<BaseComponentProps>
|
|
90
|
-
RichText: DefineComponent<BaseComponentProps>
|
|
91
|
-
Notice: DefineComponent<BaseComponentProps>
|
|
92
|
-
TabBar: DefineComponent<BaseComponentProps>
|
|
93
|
-
Videos: DefineComponent<BaseComponentProps>
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export declare const BusinessComponents: {
|
|
97
|
-
CommoditySearch: DefineComponent<BaseComponentProps>
|
|
98
|
-
CommunityPowder: DefineComponent<BaseComponentProps>
|
|
99
|
-
CrowdOperation: DefineComponent<BaseComponentProps>
|
|
100
|
-
PersonalizedRecommendation: DefineComponent<BaseComponentProps>
|
|
101
|
-
StoreInformation: DefineComponent<BaseComponentProps>
|
|
102
|
-
EnterTheShop: DefineComponent<BaseComponentProps>
|
|
103
|
-
OnlineService: DefineComponent<BaseComponentProps>
|
|
104
|
-
Investigate: DefineComponent<BaseComponentProps>
|
|
105
|
-
Follow: DefineComponent<BaseComponentProps>
|
|
106
|
-
StoreNoteCard: DefineComponent<BaseComponentProps>
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export declare const LayoutComponents: {
|
|
110
|
-
AuxiliarySegmentation: DefineComponent<BaseComponentProps>
|
|
111
|
-
GraphicNavigation: DefineComponent<BaseComponentProps>
|
|
112
|
-
MagicCube: DefineComponent<BaseComponentProps>
|
|
113
|
-
ListSwitching: DefineComponent<BaseComponentProps>
|
|
114
|
-
Suspension: DefineComponent<BaseComponentProps>
|
|
115
|
-
PlacementArea: DefineComponent<BaseComponentProps>
|
|
116
|
-
CustomModule: DefineComponent<BaseComponentProps>
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export declare const MediaComponents: {
|
|
120
|
-
CourseModule: DefineComponent<BaseComponentProps>
|
|
121
|
-
LiveModule: DefineComponent<BaseComponentProps>
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
// 工具类型
|
|
125
|
-
export interface ComponentProperty {
|
|
126
|
-
name: string
|
|
127
|
-
type: string
|
|
128
|
-
text: string
|
|
129
|
-
setStyle: ComponentData
|
|
130
|
-
child?: ComponentProperty[]
|
|
131
|
-
isShowList?: boolean
|
|
132
|
-
textAlign?: string[]
|
|
133
|
-
list?: any[]
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export declare const Utils: {
|
|
137
|
-
ComponentProperties: ComponentProperty[]
|
|
138
|
-
ComponentFactory: {
|
|
139
|
-
[key: string]: any
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
// 插件安装函数
|
|
144
|
-
export interface AsEditorComponentsPlugin {
|
|
145
|
-
install: (app: App) => void
|
|
146
|
-
BasicComponents: typeof BasicComponents
|
|
147
|
-
BusinessComponents: typeof BusinessComponents
|
|
148
|
-
LayoutComponents: typeof LayoutComponents
|
|
149
|
-
MediaComponents: typeof MediaComponents
|
|
150
|
-
Utils: typeof Utils
|
|
151
|
-
ComponentRenderer: typeof ComponentRenderer
|
|
152
|
-
|
|
153
|
-
// 所有组件的直接引用
|
|
154
|
-
CaptionText: typeof CaptionText
|
|
155
|
-
PictureAds: typeof PictureAds
|
|
156
|
-
RichText: typeof RichText
|
|
157
|
-
Notice: typeof Notice
|
|
158
|
-
TabBar: typeof TabBar
|
|
159
|
-
Videos: typeof Videos
|
|
160
|
-
CommoditySearch: typeof CommoditySearch
|
|
161
|
-
CommunityPowder: typeof CommunityPowder
|
|
162
|
-
CrowdOperation: typeof CrowdOperation
|
|
163
|
-
PersonalizedRecommendation: typeof PersonalizedRecommendation
|
|
164
|
-
StoreInformation: typeof StoreInformation
|
|
165
|
-
EnterTheShop: typeof EnterTheShop
|
|
166
|
-
OnlineService: typeof OnlineService
|
|
167
|
-
Investigate: typeof Investigate
|
|
168
|
-
Follow: typeof Follow
|
|
169
|
-
StoreNoteCard: typeof StoreNoteCard
|
|
170
|
-
AuxiliarySegmentation: typeof AuxiliarySegmentation
|
|
171
|
-
GraphicNavigation: typeof GraphicNavigation
|
|
172
|
-
MagicCube: typeof MagicCube
|
|
173
|
-
ListSwitching: typeof ListSwitching
|
|
174
|
-
Suspension: typeof Suspension
|
|
175
|
-
PlacementArea: typeof PlacementArea
|
|
176
|
-
CustomModule: typeof CustomModule
|
|
177
|
-
CourseModule: typeof CourseModule
|
|
178
|
-
LiveModule: typeof LiveModule
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
// 主导出
|
|
182
|
-
declare const AsEditorComponents: AsEditorComponentsPlugin
|
|
183
|
-
|
|
184
|
-
export default AsEditorComponents
|
|
185
|
-
|
|
186
|
-
// 版本号
|
|
187
|
-
export declare const version: string
|
|
188
|
-
|
|
189
|
-
// 模块声明 - 用于Vue组件的模块类型推断
|
|
190
|
-
declare module '@vue/runtime-core' {
|
|
191
|
-
interface GlobalComponents {
|
|
192
|
-
ComponentRenderer: typeof ComponentRenderer
|
|
193
|
-
CaptionText: typeof CaptionText
|
|
194
|
-
PictureAds: typeof PictureAds
|
|
195
|
-
RichText: typeof RichText
|
|
196
|
-
Notice: typeof Notice
|
|
197
|
-
TabBar: typeof TabBar
|
|
198
|
-
Videos: typeof Videos
|
|
199
|
-
CommoditySearch: typeof CommoditySearch
|
|
200
|
-
CommunityPowder: typeof CommunityPowder
|
|
201
|
-
CrowdOperation: typeof CrowdOperation
|
|
202
|
-
PersonalizedRecommendation: typeof PersonalizedRecommendation
|
|
203
|
-
StoreInformation: typeof StoreInformation
|
|
204
|
-
EnterTheShop: typeof EnterTheShop
|
|
205
|
-
OnlineService: typeof OnlineService
|
|
206
|
-
Investigate: typeof Investigate
|
|
207
|
-
Follow: typeof Follow
|
|
208
|
-
StoreNoteCard: typeof StoreNoteCard
|
|
209
|
-
AuxiliarySegmentation: typeof AuxiliarySegmentation
|
|
210
|
-
GraphicNavigation: typeof GraphicNavigation
|
|
211
|
-
MagicCube: typeof MagicCube
|
|
212
|
-
ListSwitching: typeof ListSwitching
|
|
213
|
-
Suspension: typeof Suspension
|
|
214
|
-
PlacementArea: typeof PlacementArea
|
|
215
|
-
CustomModule: typeof CustomModule
|
|
216
|
-
CourseModule: typeof CourseModule
|
|
217
|
-
LiveModule: typeof LiveModule
|
|
218
|
-
}
|
|
219
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* AS-Editor Components Library TypeScript 类型定义
|
|
3
|
+
*/
|
|
4
|
+
import { DefineComponent, App } from 'vue'
|
|
5
|
+
|
|
6
|
+
export interface BaseComponentProps {
|
|
7
|
+
datas: Record<string, any>
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare const ComponentRenderer: DefineComponent<{
|
|
11
|
+
pageConfig?: Record<string, any>
|
|
12
|
+
components?: Array<any>
|
|
13
|
+
minHeight?: number
|
|
14
|
+
showEditControls?: boolean
|
|
15
|
+
enableInteraction?: boolean
|
|
16
|
+
}, {}, {}, {}, {}, {}, {}, {}>
|
|
17
|
+
|
|
18
|
+
export interface AsEditorComponentsPlugin {
|
|
19
|
+
install: (app: App) => void
|
|
20
|
+
ComponentRenderer: typeof ComponentRenderer
|
|
21
|
+
}
|
|
22
|
+
export declare const components: {
|
|
23
|
+
[key: string]: DefineComponent<BaseComponentProps>
|
|
24
|
+
}
|
|
25
|
+
declare const AsEditorComponents: AsEditorComponentsPlugin
|
|
26
|
+
export default AsEditorComponents
|
package/package.json
CHANGED
|
@@ -1,106 +1,107 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@hbixinlian/as-editor-components",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "AS-Editor 可视化拖拽编辑器组件库 - 基于Vue3的可复用UI组件集合",
|
|
5
|
-
"author": "xizhu <1805639380@qq.com>",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"type": "module",
|
|
8
|
-
"main": "dist/as-editor-components.umd.js",
|
|
9
|
-
"module": "dist/as-editor-components.es.js",
|
|
10
|
-
"types": "dist/types/index.d.ts",
|
|
11
|
-
"exports": {
|
|
12
|
-
".": {
|
|
13
|
-
"import": "./dist/as-editor-components.es.js",
|
|
14
|
-
"require": "./dist/as-editor-components.umd.js",
|
|
15
|
-
"types": "./dist/types/index.d.ts"
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"
|
|
50
|
-
"build
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"vue
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
"@
|
|
83
|
-
"@vue/
|
|
84
|
-
"eslint": "^
|
|
85
|
-
"eslint
|
|
86
|
-
"eslint-plugin-
|
|
87
|
-
"eslint-plugin-
|
|
88
|
-
"eslint-plugin-
|
|
89
|
-
"eslint-plugin-
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
"commit
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
"
|
|
105
|
-
|
|
106
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@hbixinlian/as-editor-components",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "AS-Editor 可视化拖拽编辑器组件库 - 基于Vue3的可复用UI组件集合",
|
|
5
|
+
"author": "xizhu <1805639380@qq.com>",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "dist/as-editor-components.umd.js",
|
|
9
|
+
"module": "dist/as-editor-components.es.js",
|
|
10
|
+
"types": "dist/types/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/as-editor-components.es.js",
|
|
14
|
+
"require": "./dist/as-editor-components.umd.js",
|
|
15
|
+
"types": "./dist/types/index.d.ts"
|
|
16
|
+
},
|
|
17
|
+
"./dist/as-editor-components.css": "./dist/as-editor-components.css"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist",
|
|
21
|
+
"README.md",
|
|
22
|
+
"package.json"
|
|
23
|
+
],
|
|
24
|
+
"keywords": [
|
|
25
|
+
"vue",
|
|
26
|
+
"vue3",
|
|
27
|
+
"components",
|
|
28
|
+
"ui",
|
|
29
|
+
"editor",
|
|
30
|
+
"visual",
|
|
31
|
+
"drag-drop",
|
|
32
|
+
"as-editor",
|
|
33
|
+
"低代码",
|
|
34
|
+
"可视化编辑器"
|
|
35
|
+
],
|
|
36
|
+
"homepage": "https://gitee.com/yangzijian1996/as-editor",
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "https://gitee.com/yangzijian1996/as-editor"
|
|
40
|
+
},
|
|
41
|
+
"bugs": {
|
|
42
|
+
"url": "https://gitee.com/yangzijian1996/as-editor/issues"
|
|
43
|
+
},
|
|
44
|
+
"publishConfig": {
|
|
45
|
+
"access": "public",
|
|
46
|
+
"registry": "https://registry.npmjs.org/"
|
|
47
|
+
},
|
|
48
|
+
"scripts": {
|
|
49
|
+
"dev": "vite",
|
|
50
|
+
"build": "vite build",
|
|
51
|
+
"build:lib": "vite build --config vite.lib.config.js && node scripts/copy-types.js",
|
|
52
|
+
"preview": "vite preview",
|
|
53
|
+
"lint": "eslint --ext .js,.vue src",
|
|
54
|
+
"prepublishOnly": "npm run build:lib",
|
|
55
|
+
"type-check": "vue-tsc --noEmit"
|
|
56
|
+
},
|
|
57
|
+
"dependencies": {
|
|
58
|
+
"@tinymce/tinymce-vue": "^4.0.5",
|
|
59
|
+
"axios": "^0.25.0",
|
|
60
|
+
"clipboard": "^2.0.10",
|
|
61
|
+
"core-js": "^3.21.0",
|
|
62
|
+
"cos-js-sdk-v5": "^1.4.6",
|
|
63
|
+
"element-plus": "^1.3.0-beta.10",
|
|
64
|
+
"file-saver": "^2.0.5",
|
|
65
|
+
"html2canvas": "1.0.0-alpha.9",
|
|
66
|
+
"nprogress": "^0.2.0",
|
|
67
|
+
"qrcode": "^1.4.4",
|
|
68
|
+
"qs": "^6.9.1",
|
|
69
|
+
"tinymce": "^5.10.3",
|
|
70
|
+
"vant": "^3.4.4",
|
|
71
|
+
"vue": "^3.5",
|
|
72
|
+
"vue-router": "^4.0.0-0",
|
|
73
|
+
"vuedraggable": "^4.1.0",
|
|
74
|
+
"vuex": "^4.0.0-0"
|
|
75
|
+
},
|
|
76
|
+
"peerDependencies": {
|
|
77
|
+
"vue": "^3.0.0",
|
|
78
|
+
"vant": "^3.0.0",
|
|
79
|
+
"element-plus": "^1.0.0"
|
|
80
|
+
},
|
|
81
|
+
"devDependencies": {
|
|
82
|
+
"@vitejs/plugin-vue": "^4.2.3",
|
|
83
|
+
"@vue/compiler-sfc": "^3.3.4",
|
|
84
|
+
"@vue/eslint-config-prettier": "^7.1.0",
|
|
85
|
+
"eslint": "^8.44.0",
|
|
86
|
+
"eslint-plugin-import": "^2.27.5",
|
|
87
|
+
"eslint-plugin-node": "^11.1.0",
|
|
88
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
89
|
+
"eslint-plugin-promise": "^4.3.1",
|
|
90
|
+
"eslint-plugin-vue": "^9.15.1",
|
|
91
|
+
"husky": "^8.0.3",
|
|
92
|
+
"less": "^4.1.3",
|
|
93
|
+
"prettier": "^2.8.8",
|
|
94
|
+
"swiper": "^9.4.1",
|
|
95
|
+
"vite": "^4.3.9"
|
|
96
|
+
},
|
|
97
|
+
"husky": {
|
|
98
|
+
"hooks": {
|
|
99
|
+
"pre-commit": "npm run lint",
|
|
100
|
+
"commit-msg": "node script/verify-commit.js"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"browserslist": [
|
|
104
|
+
"> 1%",
|
|
105
|
+
"last 2 versions"
|
|
106
|
+
]
|
|
107
|
+
}
|