Files
高奕GaoYi 0acf8cc004 fix(components): [table-v2] sass declaration deprecation error (#18218)
Update table-v2.scss. Fix Warning

Deprecation Warning: Sass's behavior for declarations that appear after nested
rules will be changing to match the behavior specified by CSS in an upcoming
version. To keep the existing behavior, move the declaration above the nested
rule. To opt into the new behavior, wrap the declaration in `& {}`.

More info: https://sass-lang.com/d/mixed-decls

    ╷
44  │ ┌   .#{$namespace}-vl__vertical,
45  │ │   .#{$namespace}-vl__horizontal {
46  │ │     z-index: -1;
47  │ │   }
    │ └─── nested rule
... │
89  │       z-index: 1;
    │       ^^^^^^^^^^ declaration
    ╵
    ..\..\node_modules\.pnpm\element-plus@2.8.2_vue@3.5.3_typescript@5.4.5_\node_modules\element-plus\theme-chalk\src\table-v2.scss 89:5       @content

.........
2024-09-09 08:05:34 +08:00
..

element-theme-chalk

element component chalk theme.

Installation

npm i element-plus

Usage

Use Sass import

@use 'element-plus/lib/theme-chalk/index.scss';

Or Use vite/webpack

import 'element-plus/lib/theme-chalk/index.css'

Or

<link
  rel="stylesheet"
  href="https://unpkg.com/element-plus/lib/theme-chalk/index.css"
/>

Import on demand

import 'element-plus/lib/theme-chalk/input.css'
import 'element-plus/lib/theme-chalk/select.css'

// ...