dlzn-ui 1.10.0 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -53,5 +53,5 @@
53
53
  "**/*.css"
54
54
  ],
55
55
  "type": "module",
56
- "version": "1.10.0"
56
+ "version": "1.12.0"
57
57
  }
@@ -11,6 +11,17 @@ export default defineConfig({
11
11
  'stylelint-config-recess-order',
12
12
  'stylelint-config-recommended-vue', // 放最后一个 依赖 postcss-html
13
13
  ],
14
+ // 设置 ignoreFiles 会覆盖默认忽略 node_modules,需显式包含
15
+ // https://stylelint.io/user-guide/configure/#ignorefiles
16
+ ignoreFiles: [
17
+ '**/*.min.css',
18
+ '.vscode/**',
19
+ '.idea/**',
20
+ 'node_modules/**',
21
+ 'dist/**',
22
+ 'public/**',
23
+ 'dist-ssr/**',
24
+ ],
14
25
  // 格式化 md 文件中的 css 代码
15
26
  overrides: [
16
27
  {
package/types/env.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ declare const VITE_APP_ID: string
2
+ declare const VITE_APP_NAME: string
3
+ declare const VITE_BASE_URL: string
4
+ declare const VITE_FORCE_PWD_CHANGE: boolean
5
+ declare const VITE_USE_LOGIN_CAPTCHA: boolean
6
+ declare const VITE_API_PREFIX_ARRAY: string[]
@@ -0,0 +1,10 @@
1
+ export {} // 为了让这个声明文件变成模块声明文件,而不是一个全局声明文件
2
+
3
+ declare global {
4
+ type PettyPrimitive = null | number | string | undefined
5
+ interface Window {
6
+ pluginWebUpdateNotice_?: {
7
+ checkUpdate: () => void
8
+ }
9
+ }
10
+ }
@@ -0,0 +1,8 @@
1
+ // https://github.com/vitejs/vite/discussions/9431
2
+ declare module '*.vue' {
3
+ import type { DefineComponent } from 'vue'
4
+
5
+ const component: DefineComponent
6
+
7
+ export default component
8
+ }