-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
33 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,14 +32,14 @@ export default defineConfig({ | |
antd: 'antd', | ||
}, | ||
headScripts: [ | ||
'https://cdn.jsdelivr.net/npm/[email protected]/umd/react.development.js', | ||
'https://cdn.jsdelivr.net/npm/[email protected]/umd/react-dom.development.js', | ||
'https://cdn.jsdelivr.net/npm/[email protected]/umd/react-is.production.min.js', | ||
'https://cdn.jsdelivr.net/npm/moment/min/moment-with-locales.js', | ||
'https://cdn.jsdelivr.net/npm/[email protected]/dist/styled-components.js', | ||
'https://cdn.jsdelivr.net/npm/[email protected]/dist/antd-with-locales.min.js', | ||
'https://cdn.jsdelivr.net/npm/[email protected]/standalone.js', | ||
'https://cdn.jsdelivr.net/npm/[email protected]/parser-babel.js', | ||
'https://unpkg.com/[email protected]/umd/react.development.js', | ||
'https://unpkg.com/[email protected]/umd/react-dom.development.js', | ||
'https://unpkg.com/[email protected]/umd/react-is.production.min.js', | ||
'https://unpkg.com/moment/min/moment-with-locales.js', | ||
'https://unpkg.com/[email protected]/dist/styled-components.js', | ||
'https://unpkg.com/[email protected]/dist/antd-with-locales.min.js', | ||
'https://unpkg.com/[email protected]/standalone.js', | ||
'https://unpkg.com/[email protected]/parser-babel.js', | ||
], | ||
https: { | ||
key: path.resolve(__dirname, 'local.netease.com-key.pem'), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ const packageJson = { | |
name: 'demo', | ||
private: true, | ||
dependencies: { | ||
'@music163/antd': '0.1.6', | ||
'@music163/tango-boot': '0.1.3', | ||
'@music163/antd': '0.2.1', | ||
'@music163/tango-boot': '0.2.5', | ||
react: '17.0.2', | ||
'react-dom': '17.0.2', | ||
'prop-types': '15.7.2', | ||
|
@@ -12,64 +12,60 @@ const packageJson = { | |
}; | ||
|
||
const tangoConfigJson = { | ||
designerConfig: { | ||
autoGenerateComponentId: true, | ||
}, | ||
packages: { | ||
react: { | ||
version: '17.0.2', | ||
library: 'React', | ||
type: 'dependency', | ||
resources: ['https://cdn.jsdelivr.net/npm/react@{{version}}/umd/react.development.js'], | ||
resources: ['https://unpkg.com/react@{{version}}/umd/react.development.js'], | ||
}, | ||
'react-dom': { | ||
version: '17.0.2', | ||
library: 'ReactDOM', | ||
type: 'dependency', | ||
resources: [ | ||
'https://cdn.jsdelivr.net/npm/react-dom@{{version}}/umd/react-dom.development.js', | ||
], | ||
resources: ['https://unpkg.com/react-dom@{{version}}/umd/react-dom.development.js'], | ||
}, | ||
'react-is': { | ||
version: '16.13.1', | ||
library: 'ReactIs', | ||
type: 'dependency', | ||
resources: [ | ||
'https://cdn.jsdelivr.net/npm/react-is@{{version}}/umd/react-is.production.min.js', | ||
], | ||
resources: ['https://unpkg.com/react-is@{{version}}/umd/react-is.production.min.js'], | ||
}, | ||
'styled-components': { | ||
version: '5.3.5', | ||
library: 'styled', | ||
type: 'dependency', | ||
resources: [ | ||
'https://cdn.jsdelivr.net/npm/styled-components@{{version}}/dist/styled-components.min.js', | ||
], | ||
resources: ['https://unpkg.com/styled-components@{{version}}/dist/styled-components.min.js'], | ||
}, | ||
moment: { | ||
version: '2.29.4', | ||
library: 'moment', | ||
type: 'dependency', | ||
resources: ['https://cdn.jsdelivr.net/npm/moment@{{version}}/moment.js'], | ||
resources: ['https://unpkg.com/moment@{{version}}/moment.js'], | ||
}, | ||
'@music163/tango-boot': { | ||
version: '0.2.1', | ||
description: '云音乐低代码运行时框架', | ||
version: '0.2.5', | ||
library: 'TangoBoot', | ||
type: 'baseDependency', | ||
resources: ['https://cdn.jsdelivr.net/npm/@music163/tango-boot@{{version}}/dist/boot.js'], | ||
resources: ['https://unpkg.com/@music163/tango-boot@{{version}}/dist/boot.js'], | ||
// resources: ['http://localhost:9001/boot.js'], | ||
description: '云音乐低代码运行时框架', | ||
}, | ||
'@music163/antd': { | ||
version: '0.1.7', | ||
description: '云音乐低代码中后台应用基础物料', | ||
version: '0.2.1', | ||
library: 'TangoAntd', | ||
type: 'baseDependency', | ||
resources: [ | ||
'https://cdn.jsdelivr.net/npm/@music163/antd@{{version}}/dist/index.js', | ||
'https://cdn.jsdelivr.net/npm/[email protected]/dist/antd.css', | ||
'https://unpkg.com/@music163/antd@{{version}}/dist/index.js', | ||
'https://unpkg.com/[email protected]/dist/antd.css', | ||
], | ||
description: '云音乐低代码中后台应用基础物料', | ||
designerResources: [ | ||
'https://cdn.jsdelivr.net/npm/@music163/antd@{{version}}/dist/designer.js', | ||
// 'http://localhost:9002/designer.js', | ||
'https://cdn.jsdelivr.net/npm/[email protected]/dist/antd.css', | ||
'https://unpkg.com/@music163/antd@{{version}}/dist/designer.js', | ||
'https://unpkg.com/[email protected]/dist/antd.css', | ||
], | ||
}, | ||
}, | ||
|
@@ -161,13 +157,14 @@ class App extends React.Component { | |
render() { | ||
return ( | ||
<Page title={tango.stores.app.title}> | ||
<Section title="Section Title"> | ||
<Section tid="section1" title="Section Title"> | ||
your input: <Input tid="input1" defaultValue="hello" /> | ||
copy input: <Input value={tango.page.input1?.value} /> | ||
</Section> | ||
<Section> | ||
<Space> | ||
<Section tid="section2"> | ||
<Space tid="space1"> | ||
<LocalButton /> | ||
<Button>button</Button> | ||
<Input /> | ||
<Button tid="button1">button</Button> | ||
</Space> | ||
</Section> | ||
</Page> | ||
|