Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
dntzhang committed Nov 11, 2018
1 parent 28dc845 commit 736b0c7
Show file tree
Hide file tree
Showing 10 changed files with 43 additions and 24 deletions.
13 changes: 10 additions & 3 deletions packages/omi/dist/omi.dev.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/omi/dist/omi.dev.js.map

Large diffs are not rendered by default.

15 changes: 11 additions & 4 deletions packages/omi/dist/omi.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/omi/dist/omi.esm.js.map

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions packages/omi/dist/omi.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/omi/dist/omi.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/omi/dist/omi.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/omi/dist/omi.min.js.map

Large diffs are not rendered by default.

11 changes: 5 additions & 6 deletions packages/omi/examples/rpx/main.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { render, WeElement, define, rpx } from '../../src/omi'

define('my-counter',
class extends WeElement {
static observe = true
define('my-counter', class extends WeElement {
static observe = true

css() {
return rpx(`div{font-size:375rpx}`)
}
css() {
return rpx(`div{font-size:375rpx}`)
}

data = {
count: 1
Expand Down
8 changes: 4 additions & 4 deletions packages/omi/src/omi.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const omi = {
define,
observe,
cloneElement,
getHost,
rpx
getHost,
rpx
}

options.root.Omi = omi
Expand All @@ -42,6 +42,6 @@ export {
define,
observe,
cloneElement,
getHost,
rpx
getHost,
rpx
}

0 comments on commit 736b0c7

Please sign in to comment.