Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Tencent/omi
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 657bda225cad630bcd3a21dc07a8c0542f343a39
Choose a base ref
...
head repository: Tencent/omi
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3fe356fe49eafa3db53165797d5a60fb015c2aae
Choose a head ref
  • 3 commits
  • 3 files changed
  • 3 contributors

Commits on Dec 31, 2024

  1. chore(omi): publish

    dntzhang committed Dec 31, 2024
    Copy the full SHA
    e9352b6 View commit details

Commits on Jan 13, 2025

  1. feat(omi): 增加jsxFactory静态方法

    duenyang committed Jan 13, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    c8a9853 View commit details
  2. Merge pull request #939 from duenyang/master

    feat(omi): 增加jsxFactory静态方法
    dntzhang authored Jan 13, 2025
    Copy the full SHA
    3fe356f View commit details
Showing with 6 additions and 3 deletions.
  1. +1 −1 packages/omi/package.json
  2. +4 −1 packages/omi/src/component.ts
  3. +1 −1 packages/omi/src/index.ts
2 changes: 1 addition & 1 deletion packages/omi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "omi",
"version": "7.7.3",
"version": "7.7.4",
"scripts": {
"start": "vite",
"dev-vite": "vite",
5 changes: 4 additions & 1 deletion packages/omi/src/component.ts
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ import {
import { diff } from './diff'
import { ExtendedElement } from './dom'
import 'weakmap-polyfill'
import { ObjectVNode, VNode } from './vdom'
import { ObjectVNode, VNode, createElement } from './vdom'
import { setActiveComponent, clearActiveComponent } from 'reactive-signal'
import { options } from './options'
import { define } from './define'
@@ -53,6 +53,9 @@ export type ComponentHookRegistry = Record<
export type Ref<T = any> = { current?: T }

export class Component<State = any> extends HTMLElement {
static h = createElement
static f = createElement.f

static is = 'Component'
static defaultProps: Record<string, unknown>
static reflectProps: ReflectProps
2 changes: 1 addition & 1 deletion packages/omi/src/index.ts
Original file line number Diff line number Diff line change
@@ -22,4 +22,4 @@ export type { Signal, SignalObject, Signal as SignalValue } from 'reactive-signa
export { css } from './css-tag'
export { mixin, globalCSS } from './options'
export { registerDirective } from './directive'
export const version = '7.7.3'
export const version = '7.7.4'