Skip to content

Commit

Permalink
fix: 忽略html模式下的属性
Browse files Browse the repository at this point in the history
  • Loading branch information
dntzhang committed Aug 16, 2023
1 parent 29278c2 commit 09ee924
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
6 changes: 4 additions & 2 deletions tdesign/desktop/site/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ export default class extends WeElement {
render(
<my-app id="my-app"></my-app>,
'#app',
new Store({})
new Store({
ignoreAttrs: true
})
)

const app = document.getElementById('my-app')
registerRouting(app);
registerRouting(app);
6 changes: 3 additions & 3 deletions tdesign/desktop/site/src/store.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default class Store {
constructor(parameters) {

constructor(options) {
this.ignoreAttrs = options.ignoreAttrs
}
}
}
4 changes: 2 additions & 2 deletions tdesign/desktop/src/space/space.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export default class Link extends WeElement<SpaceProps> {
static defaultProps = { breakLine: false, direction: 'horizontal', size: 'medium' }
static propTypes = {
algin: String,
// breakLine: Boolean,
breakLine: Boolean,
direction: String,
// separator: Object,
separator: Object,
size: Object,
}

Expand Down

0 comments on commit 09ee924

Please sign in to comment.