Skip to content

Commit b517d9f

Browse files
authored
Merge pull request ecomfe#66 from ecomfe/feature/release-1.0.0-beta.2
release 1.0.0 beta.2
2 parents d1c2c3d + 9509089 commit b517d9f

28 files changed

+563
-17
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,6 @@ ioc.getComponent('list').then(list => list.enter());
115115

116116
# [API](https://doc.esdoc.org/github.com/ecomfe/uioc/)
117117

118+
# [Changelog](https://github.com/ecomfe/uioc/wiki/Changelog)
119+
118120
# [0.3.x版本文档](https://github.com/ecomfe/uioc/wiki/0.3.x-readme)

dist/bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bundle.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.
File renamed without changes.
File renamed without changes.

examples/simple-amd-module/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
simple amd module
2+
===
3+
4+
# install
5+
6+
npm install
7+
8+
# start
9+
10+
npm start

demo/config.js renamed to examples/simple-amd-module/config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
define(
55
{
66
components: {
7-
// 构件名
8-
List: {
7+
// 组件名
8+
list: {
99
// 构件的模块路径
1010
module: 'List',
1111
// 默认为 transient,每次获取构件,都将调用一次 creator
@@ -25,14 +25,14 @@ define(
2525
],
2626
// 属性依赖配置
2727
properties: {
28-
model: { $ref: 'ListModel' },
29-
view: { $ref: 'ListView' }
28+
model: { $ref: 'listModel' },
29+
view: { $ref: 'listView' }
3030
}
3131
},
32-
ListModel: {
32+
listModel: {
3333
module: 'ListModel'
3434
},
35-
ListView: {
35+
listView: {
3636
module: 'ListView',
3737
properties: { template: '<li>${name}</li>' }
3838
},
File renamed without changes.

demo/index.html renamed to examples/simple-amd-module/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
<script src="esl.js"></script>
77
<script>
88
require.config({
9-
baseUrl: './',
9+
baseUrl: '.',
1010
packages: [
1111
{
1212
name: 'ioc',
13-
location: '../dist',
13+
location: 'node_modules/uioc/dist',
1414
main: 'bundle'
1515
}
1616
]

0 commit comments

Comments
 (0)