demo-26-2-02 0.1.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/README.md +11 -0
- package/build/index.css +2 -0
- package/build/index.html +1 -0
- package/build/index.js +60 -0
- package/build/lowcode/assets-daily.json +67 -0
- package/build/lowcode/assets-dev.json +67 -0
- package/build/lowcode/assets-prod.json +67 -0
- package/build/lowcode/designer.html +302 -0
- package/build/lowcode/index.html +304 -0
- package/build/lowcode/index.js +1 -0
- package/build/lowcode/meta.js +1 -0
- package/build/lowcode/preview.css +1 -0
- package/build/lowcode/preview.html +33 -0
- package/build/lowcode/preview.js +310 -0
- package/build/lowcode/render/default/view.css +0 -0
- package/build/lowcode/render/default/view.js +1 -0
- package/build/lowcode/view.css +0 -0
- package/build/lowcode/view.js +1 -0
- package/demo/usage.md +24 -0
- package/dist/BizComp.css +1 -0
- package/dist/BizComp.js +1 -0
- package/es/index.d.ts +7 -0
- package/es/index.js +17 -0
- package/es/index.scss +4 -0
- package/es/style.js +1 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.js +23 -0
- package/lib/index.scss +4 -0
- package/lib/style.js +1 -0
- package/lowcode/demo26202/meta.ts +132 -0
- package/lowcode_es/demo26202/meta.d.ts +22 -0
- package/lowcode_es/demo26202/meta.js +115 -0
- package/lowcode_es/meta.js +164 -0
- package/lowcode_es/view.js +18 -0
- package/lowcode_lib/demo26202/meta.d.ts +22 -0
- package/lowcode_lib/demo26202/meta.js +120 -0
- package/lowcode_lib/meta.js +168 -0
- package/lowcode_lib/view.js +28 -0
- package/package.json +86 -0
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function e(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.BizComp=n():t.BizComp=n()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function t(){return e.default}:function t(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t){e.exports=window.React},function(e,t,n){e.exports=n(3)},function(e,t,n){},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return l}));var r={};n.r(r),n.d(r,"default",(function(){return l}));var o=n(0),u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},f=function e(t,n){var r=t.title,f=t.content,i=u(t,["title","content"]);return o.createElement("div",Object.assign({ref:n,className:"ExampleComponent"},i),o.createElement("h1",null,r),f||"Hello ExampleComponent")},i=Object(o.forwardRef)(f);i.displayName="ExampleComponent";var l=i,c=n(2),a={},p="BizComp",d=!0;function s(e,t){return e.default?e.default:e[t]?e[t]:e}}])}));
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function e(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.BizComp=n():t.BizComp=n()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function t(){return e.default}:function t(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=307)}({0:function(e,t){e.exports=window.React},307:function(e,t,n){e.exports=n(387)},308:function(e,t,n){},387:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r={};n.r(r),n.d(r,"default",(function(){return l}));var o=n(0),u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},f=function e(t,n){var r=t.title,f=t.content,i=u(t,["title","content"]);return o.createElement("div",Object.assign({ref:n,className:"ExampleComponent"},i),o.createElement("h1",null,r),f||"Hello ExampleComponent")},i=Object(o.forwardRef)(f);i.displayName="ExampleComponent";var l=i,c=n(308),a=l,p={},d="BizComp",s=!0;function y(e,t){return e.default?e.default:e[t]?e[t]:e}}})}));
|
package/demo/usage.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Simple Usage
|
|
3
|
+
order: 1
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
本 Demo 演示一行文字的用法。
|
|
7
|
+
|
|
8
|
+
```jsx
|
|
9
|
+
import React, { Component } from 'react';
|
|
10
|
+
import ReactDOM from 'react-dom';
|
|
11
|
+
import ExampleComponent from 'demo-26-2-02';
|
|
12
|
+
|
|
13
|
+
class App extends Component {
|
|
14
|
+
render() {
|
|
15
|
+
return (
|
|
16
|
+
<div>
|
|
17
|
+
<ExampleComponent />
|
|
18
|
+
</div>
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
ReactDOM.render(<App />, mountNode);
|
|
24
|
+
```
|
package/dist/BizComp.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.next-sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;top:0;margin:-1px}
|
package/dist/BizComp.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function e(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):"object"==typeof exports?exports.BizComp=n(require("react")):t.BizComp=n(t.React)}(window,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function t(){return e.default}:function t(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="./dist/",n(n.s=1)}([function(t,n){t.exports=e},function(e,t,n){n(2),e.exports=n(3)},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},i=function e(t,n){var o=t.title,i=t.content,c=u(t,["title","content"]);return r.createElement("div",Object.assign({ref:n,className:"ExampleComponent"},c),r.createElement("h1",null,o),i||"Hello ExampleComponent")},c=Object(r.forwardRef)(i);c.displayName="ExampleComponent",t.default=c}])}));
|
package/es/index.d.ts
ADDED
package/es/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
+
var _excluded = ["title", "content"];
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { forwardRef } from 'react';
|
|
6
|
+
var ExampleComponent = function ExampleComponent(props, ref) {
|
|
7
|
+
var title = props.title,
|
|
8
|
+
content = props.content,
|
|
9
|
+
others = _objectWithoutPropertiesLoose(props, _excluded);
|
|
10
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
11
|
+
ref: ref,
|
|
12
|
+
className: "ExampleComponent"
|
|
13
|
+
}, others), /*#__PURE__*/React.createElement("h1", null, title), content || 'Hello ExampleComponent');
|
|
14
|
+
};
|
|
15
|
+
var RefExampleComponent = /*#__PURE__*/forwardRef(ExampleComponent);
|
|
16
|
+
RefExampleComponent.displayName = 'ExampleComponent';
|
|
17
|
+
export default RefExampleComponent;
|
package/es/index.scss
ADDED
package/es/style.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.scss';
|
package/lib/index.d.ts
ADDED
package/lib/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports["default"] = void 0;
|
|
6
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
7
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var React = _react;
|
|
10
|
+
var _excluded = ["title", "content"];
|
|
11
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
12
|
+
var ExampleComponent = function ExampleComponent(props, ref) {
|
|
13
|
+
var title = props.title,
|
|
14
|
+
content = props.content,
|
|
15
|
+
others = (0, _objectWithoutPropertiesLoose2["default"])(props, _excluded);
|
|
16
|
+
return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({
|
|
17
|
+
ref: ref,
|
|
18
|
+
className: "ExampleComponent"
|
|
19
|
+
}, others), /*#__PURE__*/React.createElement("h1", null, title), content || 'Hello ExampleComponent');
|
|
20
|
+
};
|
|
21
|
+
var RefExampleComponent = /*#__PURE__*/(0, _react.forwardRef)(ExampleComponent);
|
|
22
|
+
RefExampleComponent.displayName = 'ExampleComponent';
|
|
23
|
+
var _default = exports["default"] = RefExampleComponent;
|
package/lib/index.scss
ADDED
package/lib/style.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require('./index.scss');
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
|
|
2
|
+
import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
|
|
3
|
+
|
|
4
|
+
const Demo26202Meta: IPublicTypeComponentMetadata = {
|
|
5
|
+
"componentName": "Demo26202",
|
|
6
|
+
"title": "Demo26202",
|
|
7
|
+
"docUrl": "",
|
|
8
|
+
"screenshot": "",
|
|
9
|
+
"devMode": "proCode",
|
|
10
|
+
"npm": {
|
|
11
|
+
"package": "demo-26-2-02",
|
|
12
|
+
"version": "0.1.0",
|
|
13
|
+
"exportName": "default",
|
|
14
|
+
"main": "src\\index.tsx",
|
|
15
|
+
"destructuring": false,
|
|
16
|
+
"subName": ""
|
|
17
|
+
},
|
|
18
|
+
"configure": {
|
|
19
|
+
"props": [
|
|
20
|
+
{
|
|
21
|
+
"title": {
|
|
22
|
+
"label": {
|
|
23
|
+
"type": "i18n",
|
|
24
|
+
"en-US": "title",
|
|
25
|
+
"zh-CN": "title"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"name": "title",
|
|
29
|
+
"setter": {
|
|
30
|
+
"componentName": "StringSetter",
|
|
31
|
+
"isRequired": true,
|
|
32
|
+
"initialValue": ""
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"title": {
|
|
37
|
+
"label": {
|
|
38
|
+
"type": "i18n",
|
|
39
|
+
"en-US": "content",
|
|
40
|
+
"zh-CN": "content"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"name": "content",
|
|
44
|
+
"setter": {
|
|
45
|
+
"componentName": "StringSetter",
|
|
46
|
+
"isRequired": true,
|
|
47
|
+
"initialValue": ""
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"title": {
|
|
52
|
+
"label": {
|
|
53
|
+
"type": "i18n",
|
|
54
|
+
"en-US": "ref",
|
|
55
|
+
"zh-CN": "ref"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"name": "ref",
|
|
59
|
+
"setter": {
|
|
60
|
+
"componentName": "MixedSetter",
|
|
61
|
+
"props": {
|
|
62
|
+
"setters": [
|
|
63
|
+
{
|
|
64
|
+
"componentName": "FunctionSetter"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"componentName": "ObjectSetter",
|
|
68
|
+
"props": {
|
|
69
|
+
"config": {
|
|
70
|
+
"extraSetter": {
|
|
71
|
+
"componentName": "MixedSetter",
|
|
72
|
+
"isRequired": false,
|
|
73
|
+
"props": {}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"isRequired": false,
|
|
78
|
+
"initialValue": {}
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"title": {
|
|
86
|
+
"label": {
|
|
87
|
+
"type": "i18n",
|
|
88
|
+
"en-US": "key",
|
|
89
|
+
"zh-CN": "key"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"name": "key",
|
|
93
|
+
"setter": {
|
|
94
|
+
"componentName": "MixedSetter",
|
|
95
|
+
"props": {
|
|
96
|
+
"setters": [
|
|
97
|
+
{
|
|
98
|
+
"componentName": "StringSetter",
|
|
99
|
+
"isRequired": false,
|
|
100
|
+
"initialValue": ""
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"componentName": "NumberSetter",
|
|
104
|
+
"isRequired": false,
|
|
105
|
+
"initialValue": 0
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"supports": {
|
|
113
|
+
"style": true
|
|
114
|
+
},
|
|
115
|
+
"component": {}
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
const snippets: IPublicTypeSnippet[] = [
|
|
119
|
+
{
|
|
120
|
+
"title": "Demo26202",
|
|
121
|
+
"screenshot": "",
|
|
122
|
+
"schema": {
|
|
123
|
+
"componentName": "Demo26202",
|
|
124
|
+
"props": {}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
];
|
|
128
|
+
|
|
129
|
+
export default {
|
|
130
|
+
...Demo26202Meta,
|
|
131
|
+
snippets
|
|
132
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IPublicTypeSnippet } from '@alilc/lowcode-types';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
snippets: IPublicTypeSnippet[];
|
|
4
|
+
componentName: string;
|
|
5
|
+
uri?: string;
|
|
6
|
+
title?: import("@alilc/lowcode-types").IPublicTypeTitleContent;
|
|
7
|
+
icon?: import("@alilc/lowcode-types").IPublicTypeIconType;
|
|
8
|
+
tags?: string[];
|
|
9
|
+
description?: string;
|
|
10
|
+
docUrl?: string;
|
|
11
|
+
screenshot?: string;
|
|
12
|
+
devMode?: "proCode" | "lowCode";
|
|
13
|
+
npm?: import("@alilc/lowcode-types").IPublicTypeNpmInfo;
|
|
14
|
+
props?: import("@alilc/lowcode-types").IPublicTypePropConfig[];
|
|
15
|
+
configure?: import("@alilc/lowcode-types").IPublicTypeFieldConfig[] | import("@alilc/lowcode-types").IPublicTypeConfigure;
|
|
16
|
+
experimental?: import("@alilc/lowcode-types").IPublicTypeAdvanced;
|
|
17
|
+
schema?: import("@alilc/lowcode-types").IPublicTypeComponentSchema;
|
|
18
|
+
group?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
|
|
19
|
+
category?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
|
|
20
|
+
priority?: number;
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
var Demo26202Meta = {
|
|
3
|
+
"componentName": "Demo26202",
|
|
4
|
+
"title": "Demo26202",
|
|
5
|
+
"docUrl": "",
|
|
6
|
+
"screenshot": "",
|
|
7
|
+
"devMode": "proCode",
|
|
8
|
+
"npm": {
|
|
9
|
+
"package": "demo-26-2-02",
|
|
10
|
+
"version": "0.1.0",
|
|
11
|
+
"exportName": "default",
|
|
12
|
+
"main": "src\\index.tsx",
|
|
13
|
+
"destructuring": false,
|
|
14
|
+
"subName": ""
|
|
15
|
+
},
|
|
16
|
+
"configure": {
|
|
17
|
+
"props": [{
|
|
18
|
+
"title": {
|
|
19
|
+
"label": {
|
|
20
|
+
"type": "i18n",
|
|
21
|
+
"en-US": "title",
|
|
22
|
+
"zh-CN": "title"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"name": "title",
|
|
26
|
+
"setter": {
|
|
27
|
+
"componentName": "StringSetter",
|
|
28
|
+
"isRequired": true,
|
|
29
|
+
"initialValue": ""
|
|
30
|
+
}
|
|
31
|
+
}, {
|
|
32
|
+
"title": {
|
|
33
|
+
"label": {
|
|
34
|
+
"type": "i18n",
|
|
35
|
+
"en-US": "content",
|
|
36
|
+
"zh-CN": "content"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"name": "content",
|
|
40
|
+
"setter": {
|
|
41
|
+
"componentName": "StringSetter",
|
|
42
|
+
"isRequired": true,
|
|
43
|
+
"initialValue": ""
|
|
44
|
+
}
|
|
45
|
+
}, {
|
|
46
|
+
"title": {
|
|
47
|
+
"label": {
|
|
48
|
+
"type": "i18n",
|
|
49
|
+
"en-US": "ref",
|
|
50
|
+
"zh-CN": "ref"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"name": "ref",
|
|
54
|
+
"setter": {
|
|
55
|
+
"componentName": "MixedSetter",
|
|
56
|
+
"props": {
|
|
57
|
+
"setters": [{
|
|
58
|
+
"componentName": "FunctionSetter"
|
|
59
|
+
}, {
|
|
60
|
+
"componentName": "ObjectSetter",
|
|
61
|
+
"props": {
|
|
62
|
+
"config": {
|
|
63
|
+
"extraSetter": {
|
|
64
|
+
"componentName": "MixedSetter",
|
|
65
|
+
"isRequired": false,
|
|
66
|
+
"props": {}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"isRequired": false,
|
|
71
|
+
"initialValue": {}
|
|
72
|
+
}]
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}, {
|
|
76
|
+
"title": {
|
|
77
|
+
"label": {
|
|
78
|
+
"type": "i18n",
|
|
79
|
+
"en-US": "key",
|
|
80
|
+
"zh-CN": "key"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"name": "key",
|
|
84
|
+
"setter": {
|
|
85
|
+
"componentName": "MixedSetter",
|
|
86
|
+
"props": {
|
|
87
|
+
"setters": [{
|
|
88
|
+
"componentName": "StringSetter",
|
|
89
|
+
"isRequired": false,
|
|
90
|
+
"initialValue": ""
|
|
91
|
+
}, {
|
|
92
|
+
"componentName": "NumberSetter",
|
|
93
|
+
"isRequired": false,
|
|
94
|
+
"initialValue": 0
|
|
95
|
+
}]
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}],
|
|
99
|
+
"supports": {
|
|
100
|
+
"style": true
|
|
101
|
+
},
|
|
102
|
+
"component": {}
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
var snippets = [{
|
|
106
|
+
"title": "Demo26202",
|
|
107
|
+
"screenshot": "",
|
|
108
|
+
"schema": {
|
|
109
|
+
"componentName": "Demo26202",
|
|
110
|
+
"props": {}
|
|
111
|
+
}
|
|
112
|
+
}];
|
|
113
|
+
export default _extends({}, Demo26202Meta, {
|
|
114
|
+
snippets: snippets
|
|
115
|
+
});
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import Demo26202Meta from 'D:/AAAImport-Work/Newwork-ddm/demo-general/demo-26-2-02/lowcode/demo26202/meta';
|
|
3
|
+
var componentCategorySort = {};
|
|
4
|
+
["基础元素", "布局容器类", "表格类", "表单详情类", "帮助类", "对话框类", "业务类", "通用", "引导", "信息输入", "信息展示", "信息反馈"].reverse().forEach(function (item, index) {
|
|
5
|
+
componentCategorySort[item] = ++index;
|
|
6
|
+
});
|
|
7
|
+
function generateComponentList(components) {
|
|
8
|
+
var componentList = [{
|
|
9
|
+
title: '常用',
|
|
10
|
+
icon: '',
|
|
11
|
+
children: []
|
|
12
|
+
}, {
|
|
13
|
+
title: '容器',
|
|
14
|
+
icon: '',
|
|
15
|
+
children: []
|
|
16
|
+
}, {
|
|
17
|
+
title: '导航',
|
|
18
|
+
icon: '',
|
|
19
|
+
children: []
|
|
20
|
+
}, {
|
|
21
|
+
title: '内容',
|
|
22
|
+
icon: '',
|
|
23
|
+
children: []
|
|
24
|
+
}, {
|
|
25
|
+
title: 'Feedback 反馈',
|
|
26
|
+
icon: '',
|
|
27
|
+
children: []
|
|
28
|
+
}];
|
|
29
|
+
var groupMap = {
|
|
30
|
+
原子组件: true
|
|
31
|
+
};
|
|
32
|
+
var compGroup = {};
|
|
33
|
+
components.forEach(function (comp) {
|
|
34
|
+
var category = comp.category || '其他';
|
|
35
|
+
if (comp.group && !compGroup[comp.componentName]) {
|
|
36
|
+
compGroup[comp.componentName] = comp.group;
|
|
37
|
+
}
|
|
38
|
+
if (comp.group && !groupMap[comp.group]) {
|
|
39
|
+
groupMap[comp.group] = true;
|
|
40
|
+
}
|
|
41
|
+
var target = componentList.find(function (item) {
|
|
42
|
+
return item.title === category;
|
|
43
|
+
});
|
|
44
|
+
if (!target) {
|
|
45
|
+
target = {
|
|
46
|
+
title: category,
|
|
47
|
+
icon: '',
|
|
48
|
+
children: []
|
|
49
|
+
};
|
|
50
|
+
componentList.push(target);
|
|
51
|
+
}
|
|
52
|
+
if (comp.snippets && comp.snippets.length) {
|
|
53
|
+
target.children.push({
|
|
54
|
+
componentName: comp.componentName,
|
|
55
|
+
title: comp.title || comp.componentName,
|
|
56
|
+
sort: {
|
|
57
|
+
category: target.title,
|
|
58
|
+
group: compGroup[comp.componentName] || '原子组件',
|
|
59
|
+
priority: componentCategorySort[target.title] || 0
|
|
60
|
+
},
|
|
61
|
+
icon: '',
|
|
62
|
+
"package": comp.npm.pkg,
|
|
63
|
+
snippets: comp.snippets || []
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
return componentList;
|
|
68
|
+
}
|
|
69
|
+
function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
|
|
70
|
+
if (packageName === void 0) {
|
|
71
|
+
packageName = 'demo-26-2-02';
|
|
72
|
+
}
|
|
73
|
+
if (version === void 0) {
|
|
74
|
+
version = '0.1.0';
|
|
75
|
+
}
|
|
76
|
+
if (basicLibraryVersion === void 0) {
|
|
77
|
+
basicLibraryVersion = {
|
|
78
|
+
"@alifd/next": "1.25.23",
|
|
79
|
+
"@alifd/meet": "2.6.3",
|
|
80
|
+
"antd": "4.17.3"
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
if (!meta || !version) {
|
|
84
|
+
return meta;
|
|
85
|
+
}
|
|
86
|
+
var npm = meta.npm;
|
|
87
|
+
if (!npm) {
|
|
88
|
+
return meta;
|
|
89
|
+
}
|
|
90
|
+
if (typeof basicLibraryVersion === 'object' && basicLibraryVersion[npm["package"]]) {
|
|
91
|
+
meta.npm = _extends({}, npm, {
|
|
92
|
+
version: basicLibraryVersion[npm["package"]]
|
|
93
|
+
});
|
|
94
|
+
} else if (npm["package"] === packageName) {
|
|
95
|
+
meta.npm = _extends({}, npm, {
|
|
96
|
+
version: version
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
return meta;
|
|
100
|
+
}
|
|
101
|
+
var componentMetas = [Demo26202Meta];
|
|
102
|
+
var components = [];
|
|
103
|
+
var npmInfo = {};
|
|
104
|
+
componentMetas.forEach(function (meta) {
|
|
105
|
+
if (Array.isArray(meta)) {
|
|
106
|
+
components.push.apply(components, meta.map(function (item) {
|
|
107
|
+
if (!item.npm) {
|
|
108
|
+
var componentName = item.componentName;
|
|
109
|
+
var names = componentName.split('.');
|
|
110
|
+
var exportName = names[0],
|
|
111
|
+
subName = names[1];
|
|
112
|
+
item.npm = {
|
|
113
|
+
exportName: exportName,
|
|
114
|
+
main: '',
|
|
115
|
+
destructuring: true,
|
|
116
|
+
subName: names.length > 1 ? componentName.slice(componentName.indexOf('.') + 1) : subName
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
item.npm = _extends({}, npmInfo, item.npm || {});
|
|
120
|
+
return fillRealVersion(item);
|
|
121
|
+
}));
|
|
122
|
+
} else if (meta.components) {
|
|
123
|
+
components.push.apply(components, meta.components.map(function (item) {
|
|
124
|
+
if (!item.npm) {
|
|
125
|
+
var componentName = item.componentName;
|
|
126
|
+
var names = componentName.split('.');
|
|
127
|
+
var exportName = names[0],
|
|
128
|
+
subName = names[1];
|
|
129
|
+
item.npm = {
|
|
130
|
+
exportName: exportName,
|
|
131
|
+
main: '',
|
|
132
|
+
destructuring: true,
|
|
133
|
+
subName: names.length > 1 ? componentName.slice(componentName.indexOf('.') + 1) : subName
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
item.npm = _extends({}, npmInfo, item.npm || {});
|
|
137
|
+
return fillRealVersion(item);
|
|
138
|
+
}));
|
|
139
|
+
} else {
|
|
140
|
+
if (!meta.npm) {
|
|
141
|
+
var componentName = meta.componentName;
|
|
142
|
+
var names = componentName.split('.');
|
|
143
|
+
var exportName = names[0],
|
|
144
|
+
subName = names[1];
|
|
145
|
+
meta.npm = {
|
|
146
|
+
exportName: exportName,
|
|
147
|
+
main: '',
|
|
148
|
+
destructuring: true,
|
|
149
|
+
subName: names.length > 1 ? componentName.slice(componentName.indexOf('.') + 1) : subName
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
meta.npm = _extends({}, npmInfo, meta.npm || {});
|
|
153
|
+
components.push(fillRealVersion(meta));
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
var componentList = generateComponentList(components);
|
|
157
|
+
export { components, componentList };
|
|
158
|
+
var execCompile = !!true;
|
|
159
|
+
if (!execCompile) {
|
|
160
|
+
window.Demo26202Meta = {
|
|
161
|
+
components: components,
|
|
162
|
+
componentList: componentList
|
|
163
|
+
};
|
|
164
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as componentInstances from 'D:/AAAImport-Work/Newwork-ddm/demo-general/demo-26-2-02/src/index';
|
|
2
|
+
import 'D:/AAAImport-Work/Newwork-ddm/demo-general/demo-26-2-02/src/index.scss';
|
|
3
|
+
var entryDefault = componentInstances["default"];
|
|
4
|
+
export { entryDefault as default };
|
|
5
|
+
export * from 'D:/AAAImport-Work/Newwork-ddm/demo-general/demo-26-2-02/src/index';
|
|
6
|
+
var coveredComponents = {};
|
|
7
|
+
var library = 'BizComp';
|
|
8
|
+
var execCompile = !!true;
|
|
9
|
+
if (!execCompile) {
|
|
10
|
+
window[library] = Object.assign({
|
|
11
|
+
__esModule: true
|
|
12
|
+
}, componentInstances || {}, coveredComponents || {});
|
|
13
|
+
}
|
|
14
|
+
function getRealComponent(component, componentName) {
|
|
15
|
+
if (component["default"]) return component["default"];
|
|
16
|
+
if (component[componentName]) return component[componentName];
|
|
17
|
+
return component;
|
|
18
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IPublicTypeSnippet } from '@alilc/lowcode-types';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
snippets: IPublicTypeSnippet[];
|
|
4
|
+
componentName: string;
|
|
5
|
+
uri?: string;
|
|
6
|
+
title?: import("@alilc/lowcode-types").IPublicTypeTitleContent;
|
|
7
|
+
icon?: import("@alilc/lowcode-types").IPublicTypeIconType;
|
|
8
|
+
tags?: string[];
|
|
9
|
+
description?: string;
|
|
10
|
+
docUrl?: string;
|
|
11
|
+
screenshot?: string;
|
|
12
|
+
devMode?: "proCode" | "lowCode";
|
|
13
|
+
npm?: import("@alilc/lowcode-types").IPublicTypeNpmInfo;
|
|
14
|
+
props?: import("@alilc/lowcode-types").IPublicTypePropConfig[];
|
|
15
|
+
configure?: import("@alilc/lowcode-types").IPublicTypeFieldConfig[] | import("@alilc/lowcode-types").IPublicTypeConfigure;
|
|
16
|
+
experimental?: import("@alilc/lowcode-types").IPublicTypeAdvanced;
|
|
17
|
+
schema?: import("@alilc/lowcode-types").IPublicTypeComponentSchema;
|
|
18
|
+
group?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
|
|
19
|
+
category?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
|
|
20
|
+
priority?: number;
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|