v0.6.22

Deprecations

Last updated


This page lists forms that still work today but are planned for removal in 1.0.0, along with their replacements.
From 1.0.0 only camelCase names and the when object are maintained, to keep the syntax consistent and the bundle small. No public API has been removed yet.

Lifecycle


Planned removalUse instead
A lifecycle: { ... } objectwhen: { ... }
Hooks at the top level of the options (such as new QUI({ rendered() {} }))Move them into when
before_renderbeforeRender
before_updatebeforeUpdate
before_destroybeforeDestroy

  1. new QUI({
  2. id: "app",
  3. when: {
  4. beforeRender: () => {},
  5. },
  6. });

Style Binding


Planned removalUse instead
:bg-* such as :bg-color, :bg-image, :bg-size:background-color, :background-image, :background-size
camelCase names such as :borderRadius, :backgroundColor:border-radius, :background-color
:box-sahdow (legacy misspelled name):box-shadow

Standard kebab-case CSS property names are unaffected; see Style Binding.

Render Effects


Planned removalUse instead
animation="fade-in" and animation="expand" on the root elementeffect="fade-in" and effect="expand"

See Render Effects.
中文