@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.
@@ -1,219 +1,26 @@
1
- /**
2
- * AS-Editor Components Library TypeScript 类型定义
3
- */
4
-
5
- import { DefineComponent, App } from 'vue'
6
-
7
- // 基础组件Props接口
8
- export interface ComponentData {
9
- [key: string]: any
10
- }
11
-
12
- export interface PageConfig {
13
- name?: string
14
- isPerson?: boolean
15
- isBack?: boolean
16
- titleHeight?: number
17
- bgColor?: string
18
- bgImg?: string
19
- }
20
-
21
- export interface ComponentItem {
22
- component: string
23
- setStyle: ComponentData
24
- active?: boolean
25
- text?: string
26
- type?: string
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.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
- "files": [
19
- "dist",
20
- "README.md",
21
- "package.json"
22
- ],
23
- "keywords": [
24
- "vue",
25
- "vue3",
26
- "components",
27
- "ui",
28
- "editor",
29
- "visual",
30
- "drag-drop",
31
- "as-editor",
32
- "低代码",
33
- "可视化编辑器"
34
- ],
35
- "homepage": "https://gitee.com/yangzijian1996/as-editor",
36
- "repository": {
37
- "type": "git",
38
- "url": "https://gitee.com/yangzijian1996/as-editor"
39
- },
40
- "bugs": {
41
- "url": "https://gitee.com/yangzijian1996/as-editor/issues"
42
- },
43
- "publishConfig": {
44
- "access": "public",
45
- "registry": "https://registry.npmjs.org/"
46
- },
47
- "scripts": {
48
- "dev": "vite",
49
- "build": "vite build",
50
- "build:lib": "vite build --config vite.lib.config.js && node scripts/copy-types.js",
51
- "preview": "vite preview",
52
- "lint": "eslint --ext .js,.vue src",
53
- "prepublishOnly": "npm run build:lib",
54
- "type-check": "vue-tsc --noEmit"
55
- },
56
- "dependencies": {
57
- "@tinymce/tinymce-vue": "^4.0.5",
58
- "axios": "^0.25.0",
59
- "clipboard": "^2.0.10",
60
- "core-js": "^3.21.0",
61
- "cos-js-sdk-v5": "^1.4.6",
62
- "element-plus": "^1.3.0-beta.10",
63
- "file-saver": "^2.0.5",
64
- "html2canvas": "1.0.0-alpha.9",
65
- "nprogress": "^0.2.0",
66
- "qrcode": "^1.4.4",
67
- "qs": "^6.9.1",
68
- "tinymce": "^5.10.3",
69
- "vant": "^3.4.4",
70
- "vue": "^3.5",
71
- "vue-router": "^4.0.0-0",
72
- "vuedraggable": "^4.1.0",
73
- "vuex": "^4.0.0-0"
74
- },
75
- "peerDependencies": {
76
- "vue": "^3.0.0",
77
- "vant": "^3.0.0",
78
- "element-plus": "^1.0.0"
79
- },
80
- "devDependencies": {
81
- "@vitejs/plugin-vue": "^4.2.3",
82
- "@vue/compiler-sfc": "^3.3.4",
83
- "@vue/eslint-config-prettier": "^7.1.0",
84
- "eslint": "^8.44.0",
85
- "eslint-plugin-import": "^2.27.5",
86
- "eslint-plugin-node": "^11.1.0",
87
- "eslint-plugin-prettier": "^4.2.1",
88
- "eslint-plugin-promise": "^4.3.1",
89
- "eslint-plugin-vue": "^9.15.1",
90
- "husky": "^8.0.3",
91
- "less": "^4.1.3",
92
- "prettier": "^2.8.8",
93
- "swiper": "^9.4.1",
94
- "vite": "^4.3.9"
95
- },
96
- "husky": {
97
- "hooks": {
98
- "pre-commit": "npm run lint",
99
- "commit-msg": "node script/verify-commit.js"
100
- }
101
- },
102
- "browserslist": [
103
- "> 1%",
104
- "last 2 versions"
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
+ }