@qynpm/ui 1.0.5 → 1.0.6

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.
Files changed (117) hide show
  1. package/README.md +228 -228
  2. package/dist/index.cjs +2 -1
  3. package/dist/index.mjs +54 -19
  4. package/dist/qy-action-bar/index.cjs +1 -1
  5. package/dist/qy-action-bar/index.mjs +4 -4
  6. package/dist/qy-dialog/index.cjs +1 -1
  7. package/dist/qy-dialog/index.mjs +4 -5
  8. package/dist/qy-form-section/index.cjs +1 -1
  9. package/dist/qy-form-section/index.mjs +2 -2
  10. package/dist/qy-input/index.cjs +1 -1
  11. package/dist/qy-input/index.mjs +4 -4
  12. package/dist/qy-money-input/index.cjs +1 -1
  13. package/dist/qy-money-input/index.mjs +4 -4
  14. package/dist/qy-radio-group/index.cjs +1 -1
  15. package/dist/qy-radio-group/index.mjs +4 -4
  16. package/dist/qy-record-quote-search/index.cjs +1 -1
  17. package/dist/qy-record-quote-search/index.mjs +2 -2
  18. package/dist/qy-remark-image/index.cjs +1 -2
  19. package/dist/qy-remark-image/index.mjs +3 -4
  20. package/dist/qy-remote-select/index.cjs +1 -1
  21. package/dist/qy-remote-select/index.mjs +4 -4
  22. package/dist/qy-search-input/index.cjs +1 -1
  23. package/dist/qy-search-input/index.mjs +3 -3
  24. package/dist/qy-select/index.cjs +1 -1
  25. package/dist/qy-select/index.mjs +4 -4
  26. package/dist/qy-upload/index.cjs +1 -1
  27. package/dist/qy-upload/index.mjs +3 -3
  28. package/dist/qy-voucher-upload/index.cjs +1 -1
  29. package/dist/qy-voucher-upload/index.mjs +4 -4
  30. package/dist/shared/_plugin-vue_export-helper-BHFhmbuH.cjs +1 -0
  31. package/dist/shared/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
  32. package/dist/{lib/qy-action-bar/index.vue2.mjs → shared/index-Bw9kVFsm.mjs} +14 -13
  33. package/dist/{lib/qy-record-quote-search/index.vue2.mjs → shared/index-BzV4959-.mjs} +58 -57
  34. package/dist/{lib/qy-form-section/index.vue2.mjs → shared/index-C0ADdL4S.mjs} +20 -19
  35. package/dist/shared/index-CBSjmD0C.mjs +217 -0
  36. package/dist/shared/index-CJb1S7CP.cjs +1 -0
  37. package/dist/shared/index-CO8lz02r.cjs +1 -0
  38. package/dist/shared/index-ClPxDFKd.cjs +1 -0
  39. package/dist/shared/index-CtOqRiaj.cjs +1 -0
  40. package/dist/shared/index-DXB7_Tb5.cjs +1 -0
  41. package/dist/{lib/upload/index.vue.mjs → shared/index-DeWkPj3O.mjs} +121 -119
  42. package/dist/{lib/qy-voucher-upload/index.vue.mjs → shared/index-PUYQxK94.mjs} +2 -2
  43. package/dist/shared/index-UzZbxoqZ.cjs +1 -0
  44. package/dist/shared/index-a90QeEC4.cjs +1 -0
  45. package/dist/{lib/qy-search-input/index.vue2.mjs → shared/index-wW02nNOp.mjs} +50 -49
  46. package/dist/{lib/qy-remote-select/index.vue.mjs → shared/index.vue_vue_type_script_setup_true_lang-BcZg8D-y.mjs} +2 -2
  47. package/dist/{lib/qy-select/index.vue.mjs → shared/index.vue_vue_type_script_setup_true_lang-BmeBeCu0.mjs} +1 -1
  48. package/dist/shared/index.vue_vue_type_script_setup_true_lang-C85575cL.cjs +1 -0
  49. package/dist/{lib/qy-radio-group/index.vue.mjs → shared/index.vue_vue_type_script_setup_true_lang-DkYwdYdF.mjs} +4 -4
  50. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Do5SZ8yS.cjs +1 -0
  51. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DpZzyX5f.cjs +1 -0
  52. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DuUkOqwY.cjs +1 -0
  53. package/dist/{lib/qy-input/index.vue.mjs → shared/index.vue_vue_type_script_setup_true_lang-Dvh1BFaR.mjs} +7 -7
  54. package/dist/{lib/qy-money-input/index.vue.mjs → shared/index.vue_vue_type_script_setup_true_lang-RtfqJ73A.mjs} +24 -24
  55. package/dist/shared/index.vue_vue_type_script_setup_true_lang-VVjCLNMD.cjs +1 -0
  56. package/dist/{lib/dialog/index.vue.mjs → shared/index.vue_vue_type_style_index_0_lang-DpIL_6vO.mjs} +1 -1
  57. package/dist/shared/index.vue_vue_type_style_index_0_lang-haqCjB5x.cjs +1 -0
  58. package/dist/{lib/utils/install.mjs → shared/install-CxBnxbuN.mjs} +2 -2
  59. package/dist/shared/install-c8il9DQv.cjs +1 -0
  60. package/dist/shared/js.cookie-CojEIxHg.cjs +1 -0
  61. package/dist/{node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.mjs → shared/js.cookie-OLEfuq_g.mjs} +13 -13
  62. package/index.d.ts +20 -20
  63. package/package.json +1 -1
  64. package/qy-money-input/index.d.ts +12 -12
  65. package/qy-money-input/index.js +15 -15
  66. package/qy-radio-group/index.d.ts +12 -12
  67. package/qy-radio-group/index.js +15 -15
  68. package/qy-remote-select/index.d.ts +12 -12
  69. package/qy-remote-select/index.js +15 -15
  70. package/qy-voucher-upload/index.d.ts +12 -12
  71. package/qy-voucher-upload/index.js +15 -15
  72. package/dist/_virtual/_plugin-vue_export-helper.cjs +0 -1
  73. package/dist/_virtual/_plugin-vue_export-helper.mjs +0 -9
  74. package/dist/lib/dialog/index.vue.cjs +0 -1
  75. package/dist/lib/dialog/index.vue3.cjs +0 -1
  76. package/dist/lib/dialog/index.vue3.mjs +0 -5
  77. package/dist/lib/index.cjs +0 -1
  78. package/dist/lib/index.mjs +0 -53
  79. package/dist/lib/qy-action-bar/index.vue.cjs +0 -1
  80. package/dist/lib/qy-action-bar/index.vue.mjs +0 -7
  81. package/dist/lib/qy-action-bar/index.vue2.cjs +0 -1
  82. package/dist/lib/qy-form-section/index.vue.cjs +0 -1
  83. package/dist/lib/qy-form-section/index.vue.mjs +0 -7
  84. package/dist/lib/qy-form-section/index.vue2.cjs +0 -1
  85. package/dist/lib/qy-input/index.vue.cjs +0 -1
  86. package/dist/lib/qy-input/index.vue2.cjs +0 -1
  87. package/dist/lib/qy-input/index.vue2.mjs +0 -4
  88. package/dist/lib/qy-money-input/index.vue.cjs +0 -1
  89. package/dist/lib/qy-money-input/index.vue2.cjs +0 -1
  90. package/dist/lib/qy-money-input/index.vue2.mjs +0 -4
  91. package/dist/lib/qy-radio-group/index.vue.cjs +0 -1
  92. package/dist/lib/qy-radio-group/index.vue2.cjs +0 -1
  93. package/dist/lib/qy-radio-group/index.vue2.mjs +0 -4
  94. package/dist/lib/qy-record-quote-search/index.vue.cjs +0 -1
  95. package/dist/lib/qy-record-quote-search/index.vue.mjs +0 -7
  96. package/dist/lib/qy-record-quote-search/index.vue2.cjs +0 -1
  97. package/dist/lib/qy-remote-select/index.vue.cjs +0 -1
  98. package/dist/lib/qy-remote-select/index.vue2.cjs +0 -1
  99. package/dist/lib/qy-remote-select/index.vue2.mjs +0 -4
  100. package/dist/lib/qy-search-input/index.vue.cjs +0 -1
  101. package/dist/lib/qy-search-input/index.vue.mjs +0 -7
  102. package/dist/lib/qy-search-input/index.vue2.cjs +0 -1
  103. package/dist/lib/qy-select/index.vue.cjs +0 -1
  104. package/dist/lib/qy-select/index.vue2.cjs +0 -1
  105. package/dist/lib/qy-select/index.vue2.mjs +0 -4
  106. package/dist/lib/qy-voucher-upload/index.vue.cjs +0 -1
  107. package/dist/lib/remark-image/index.vue.cjs +0 -1
  108. package/dist/lib/remark-image/index.vue.mjs +0 -7
  109. package/dist/lib/remark-image/index.vue2.cjs +0 -1
  110. package/dist/lib/remark-image/index.vue2.mjs +0 -197
  111. package/dist/lib/remark-image/utils.cjs +0 -1
  112. package/dist/lib/remark-image/utils.mjs +0 -22
  113. package/dist/lib/upload/index.vue.cjs +0 -1
  114. package/dist/lib/utils/auth.cjs +0 -1
  115. package/dist/lib/utils/auth.mjs +0 -8
  116. package/dist/lib/utils/install.cjs +0 -1
  117. package/dist/node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.cjs +0 -1
package/index.d.ts CHANGED
@@ -1,14 +1,14 @@
1
- import type { App, Plugin } from 'vue'
2
-
3
- // 根入口类型声明,对应 @qynpm/ui 的命名导出和 app.use(QyUI) 整包注册。
4
- export const QyUpload: Plugin
5
- export const QyVoucherUpload: Plugin
6
- export const QyDialog: Plugin
7
- export const QyInput: Plugin
8
- export const QyMoneyInput: Plugin
9
- export const QyRadioGroup: Plugin
10
- export const QyRemoteSelect: Plugin
11
- export const QySearchInput: Plugin
1
+ import type { App, Plugin } from 'vue'
2
+
3
+ // 根入口类型声明,对应 @qynpm/ui 的命名导出和 app.use(QyUI) 整包注册。
4
+ export const QyUpload: Plugin
5
+ export const QyVoucherUpload: Plugin
6
+ export const QyDialog: Plugin
7
+ export const QyInput: Plugin
8
+ export const QyMoneyInput: Plugin
9
+ export const QyRadioGroup: Plugin
10
+ export const QyRemoteSelect: Plugin
11
+ export const QySearchInput: Plugin
12
12
  export const QyRecordQuoteSearch: Plugin
13
13
  export const QySelect: Plugin
14
14
  export const QyFormSection: Plugin
@@ -22,15 +22,15 @@ export function formatRemarkText(text: string): string
22
22
  export function parseRemarkWithImage(text: string, imageUrl?: string): string
23
23
 
24
24
  declare const _default: Plugin & {
25
- install(app: App): void
26
- QyUpload: typeof QyUpload
27
- QyVoucherUpload: typeof QyVoucherUpload
28
- QyDialog: typeof QyDialog
29
- QyInput: typeof QyInput
30
- QyMoneyInput: typeof QyMoneyInput
31
- QyRadioGroup: typeof QyRadioGroup
32
- QyRemoteSelect: typeof QyRemoteSelect
33
- QySearchInput: typeof QySearchInput
25
+ install(app: App): void
26
+ QyUpload: typeof QyUpload
27
+ QyVoucherUpload: typeof QyVoucherUpload
28
+ QyDialog: typeof QyDialog
29
+ QyInput: typeof QyInput
30
+ QyMoneyInput: typeof QyMoneyInput
31
+ QyRadioGroup: typeof QyRadioGroup
32
+ QyRemoteSelect: typeof QyRemoteSelect
33
+ QySearchInput: typeof QySearchInput
34
34
  QyRecordQuoteSearch: typeof QyRecordQuoteSearch
35
35
  QySelect: typeof QySelect
36
36
  QyFormSection: typeof QyFormSection
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qynpm/ui",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "起印公共 UI 组件包。",
5
5
  "author": "qy",
6
6
  "license": "MIT",
@@ -1,12 +1,12 @@
1
- import type { DefineComponent, Plugin } from 'vue'
2
-
3
- /**
4
- * QyMoneyInput 单组件入口类型声明。
5
- *
6
- * 这里同时声明 DefineComponent 和 Plugin:
7
- * - DefineComponent 用于模板、TSX 或局部 components 注册时获得组件类型。
8
- * - Plugin 用于 app.use(QyMoneyInput) 时通过 Vue 插件类型校验。
9
- */
10
- declare const QyMoneyInput: DefineComponent<any, any, any> & Plugin
11
-
12
- export default QyMoneyInput
1
+ import type { DefineComponent, Plugin } from 'vue'
2
+
3
+ /**
4
+ * QyMoneyInput 单组件入口类型声明。
5
+ *
6
+ * 这里同时声明 DefineComponent 和 Plugin:
7
+ * - DefineComponent 用于模板、TSX 或局部 components 注册时获得组件类型。
8
+ * - Plugin 用于 app.use(QyMoneyInput) 时通过 Vue 插件类型校验。
9
+ */
10
+ declare const QyMoneyInput: DefineComponent<any, any, any> & Plugin
11
+
12
+ export default QyMoneyInput
@@ -1,15 +1,15 @@
1
- import QyMoneyInput from '../lib/qy-money-input/index.vue'
2
- import { withInstall } from '../lib/utils/install'
3
-
4
- /**
5
- * QyMoneyInput 单组件入口。
6
- *
7
- * 使用场景:
8
- * - 支持业务项目按需引入:import QyMoneyInput from '@qynpm/ui/qy-money-input'
9
- * - 支持 Vue 插件注册:app.use(QyMoneyInput)
10
- *
11
- * 发布说明:
12
- * - vite.config.ts 中的 entryMap 会把该入口构建到 dist/qy-money-input/index.*
13
- * - package.json exports['./qy-money-input'] 会指向该构建产物
14
- */
15
- export default withInstall(QyMoneyInput, 'QyMoneyInput')
1
+ import QyMoneyInput from '../lib/qy-money-input/index.vue'
2
+ import { withInstall } from '../lib/utils/install'
3
+
4
+ /**
5
+ * QyMoneyInput 单组件入口。
6
+ *
7
+ * 使用场景:
8
+ * - 支持业务项目按需引入:import QyMoneyInput from '@qynpm/ui/qy-money-input'
9
+ * - 支持 Vue 插件注册:app.use(QyMoneyInput)
10
+ *
11
+ * 发布说明:
12
+ * - vite.config.ts 中的 entryMap 会把该入口构建到 dist/qy-money-input/index.*
13
+ * - package.json exports['./qy-money-input'] 会指向该构建产物
14
+ */
15
+ export default withInstall(QyMoneyInput, 'QyMoneyInput')
@@ -1,12 +1,12 @@
1
- import type { DefineComponent, Plugin } from 'vue'
2
-
3
- /**
4
- * QyRadioGroup 单组件入口类型声明。
5
- *
6
- * 这里同时声明 DefineComponent 和 Plugin:
7
- * - DefineComponent 用于模板、TSX 或局部 components 注册时获得组件类型。
8
- * - Plugin 用于 app.use(QyRadioGroup) 时通过 Vue 插件类型校验。
9
- */
10
- declare const QyRadioGroup: DefineComponent<any, any, any> & Plugin
11
-
12
- export default QyRadioGroup
1
+ import type { DefineComponent, Plugin } from 'vue'
2
+
3
+ /**
4
+ * QyRadioGroup 单组件入口类型声明。
5
+ *
6
+ * 这里同时声明 DefineComponent 和 Plugin:
7
+ * - DefineComponent 用于模板、TSX 或局部 components 注册时获得组件类型。
8
+ * - Plugin 用于 app.use(QyRadioGroup) 时通过 Vue 插件类型校验。
9
+ */
10
+ declare const QyRadioGroup: DefineComponent<any, any, any> & Plugin
11
+
12
+ export default QyRadioGroup
@@ -1,15 +1,15 @@
1
- import QyRadioGroup from '../lib/qy-radio-group/index.vue'
2
- import { withInstall } from '../lib/utils/install'
3
-
4
- /**
5
- * QyRadioGroup 单组件入口。
6
- *
7
- * 使用场景:
8
- * - 支持业务项目按需引入:import QyRadioGroup from '@qynpm/ui/qy-radio-group'
9
- * - 支持 Vue 插件注册:app.use(QyRadioGroup)
10
- *
11
- * 发布说明:
12
- * - vite.config.ts 中的 entryMap 会把该入口构建到 dist/qy-radio-group/index.*
13
- * - package.json exports['./qy-radio-group'] 会指向该构建产物
14
- */
15
- export default withInstall(QyRadioGroup, 'QyRadioGroup')
1
+ import QyRadioGroup from '../lib/qy-radio-group/index.vue'
2
+ import { withInstall } from '../lib/utils/install'
3
+
4
+ /**
5
+ * QyRadioGroup 单组件入口。
6
+ *
7
+ * 使用场景:
8
+ * - 支持业务项目按需引入:import QyRadioGroup from '@qynpm/ui/qy-radio-group'
9
+ * - 支持 Vue 插件注册:app.use(QyRadioGroup)
10
+ *
11
+ * 发布说明:
12
+ * - vite.config.ts 中的 entryMap 会把该入口构建到 dist/qy-radio-group/index.*
13
+ * - package.json exports['./qy-radio-group'] 会指向该构建产物
14
+ */
15
+ export default withInstall(QyRadioGroup, 'QyRadioGroup')
@@ -1,12 +1,12 @@
1
- import type { DefineComponent, Plugin } from 'vue'
2
-
3
- /**
4
- * QyRemoteSelect 单组件入口类型声明。
5
- *
6
- * 这里同时声明 DefineComponent 和 Plugin:
7
- * - DefineComponent 用于模板、TSX 或局部 components 注册时获得组件类型。
8
- * - Plugin 用于 app.use(QyRemoteSelect) 时通过 Vue 插件类型校验。
9
- */
10
- declare const QyRemoteSelect: DefineComponent<any, any, any> & Plugin
11
-
12
- export default QyRemoteSelect
1
+ import type { DefineComponent, Plugin } from 'vue'
2
+
3
+ /**
4
+ * QyRemoteSelect 单组件入口类型声明。
5
+ *
6
+ * 这里同时声明 DefineComponent 和 Plugin:
7
+ * - DefineComponent 用于模板、TSX 或局部 components 注册时获得组件类型。
8
+ * - Plugin 用于 app.use(QyRemoteSelect) 时通过 Vue 插件类型校验。
9
+ */
10
+ declare const QyRemoteSelect: DefineComponent<any, any, any> & Plugin
11
+
12
+ export default QyRemoteSelect
@@ -1,15 +1,15 @@
1
- import QyRemoteSelect from '../lib/qy-remote-select/index.vue'
2
- import { withInstall } from '../lib/utils/install'
3
-
4
- /**
5
- * QyRemoteSelect 单组件入口。
6
- *
7
- * 使用场景:
8
- * - 支持业务项目按需引入:import QyRemoteSelect from '@qynpm/ui/qy-remote-select'
9
- * - 支持 Vue 插件注册:app.use(QyRemoteSelect)
10
- *
11
- * 发布说明:
12
- * - vite.config.ts 中的 entryMap 会把该入口构建到 dist/qy-remote-select/index.*
13
- * - package.json exports['./qy-remote-select'] 会指向该构建产物
14
- */
15
- export default withInstall(QyRemoteSelect, 'QyRemoteSelect')
1
+ import QyRemoteSelect from '../lib/qy-remote-select/index.vue'
2
+ import { withInstall } from '../lib/utils/install'
3
+
4
+ /**
5
+ * QyRemoteSelect 单组件入口。
6
+ *
7
+ * 使用场景:
8
+ * - 支持业务项目按需引入:import QyRemoteSelect from '@qynpm/ui/qy-remote-select'
9
+ * - 支持 Vue 插件注册:app.use(QyRemoteSelect)
10
+ *
11
+ * 发布说明:
12
+ * - vite.config.ts 中的 entryMap 会把该入口构建到 dist/qy-remote-select/index.*
13
+ * - package.json exports['./qy-remote-select'] 会指向该构建产物
14
+ */
15
+ export default withInstall(QyRemoteSelect, 'QyRemoteSelect')
@@ -1,12 +1,12 @@
1
- import type { DefineComponent, Plugin } from 'vue'
2
-
3
- /**
4
- * QyVoucherUpload 单组件入口类型声明。
5
- *
6
- * 这里同时声明 DefineComponent 和 Plugin:
7
- * - DefineComponent 用于模板、TSX 或局部 components 注册时获得组件类型。
8
- * - Plugin 用于 app.use(QyVoucherUpload) 时通过 Vue 插件类型校验。
9
- */
10
- declare const QyVoucherUpload: DefineComponent<any, any, any> & Plugin
11
-
12
- export default QyVoucherUpload
1
+ import type { DefineComponent, Plugin } from 'vue'
2
+
3
+ /**
4
+ * QyVoucherUpload 单组件入口类型声明。
5
+ *
6
+ * 这里同时声明 DefineComponent 和 Plugin:
7
+ * - DefineComponent 用于模板、TSX 或局部 components 注册时获得组件类型。
8
+ * - Plugin 用于 app.use(QyVoucherUpload) 时通过 Vue 插件类型校验。
9
+ */
10
+ declare const QyVoucherUpload: DefineComponent<any, any, any> & Plugin
11
+
12
+ export default QyVoucherUpload
@@ -1,15 +1,15 @@
1
- import QyVoucherUpload from '../lib/qy-voucher-upload/index.vue'
2
- import { withInstall } from '../lib/utils/install'
3
-
4
- /**
5
- * QyVoucherUpload 单组件入口。
6
- *
7
- * 使用场景:
8
- * - 支持业务项目按需引入:import QyVoucherUpload from '@qynpm/ui/qy-voucher-upload'
9
- * - 支持 Vue 插件注册:app.use(QyVoucherUpload)
10
- *
11
- * 发布说明:
12
- * - vite.config.ts 中的 entryMap 会把该入口构建到 dist/qy-voucher-upload/index.*
13
- * - package.json exports['./qy-voucher-upload'] 会指向该构建产物
14
- */
15
- export default withInstall(QyVoucherUpload, 'QyVoucherUpload')
1
+ import QyVoucherUpload from '../lib/qy-voucher-upload/index.vue'
2
+ import { withInstall } from '../lib/utils/install'
3
+
4
+ /**
5
+ * QyVoucherUpload 单组件入口。
6
+ *
7
+ * 使用场景:
8
+ * - 支持业务项目按需引入:import QyVoucherUpload from '@qynpm/ui/qy-voucher-upload'
9
+ * - 支持 Vue 插件注册:app.use(QyVoucherUpload)
10
+ *
11
+ * 发布说明:
12
+ * - vite.config.ts 中的 entryMap 会把该入口构建到 dist/qy-voucher-upload/index.*
13
+ * - package.json exports['./qy-voucher-upload'] 会指向该构建产物
14
+ */
15
+ export default withInstall(QyVoucherUpload, 'QyVoucherUpload')
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=(e,o)=>{const t=e.__vccOpts||e;for(const[r,s]of o)t[r]=s;return t};exports.default=u;
@@ -1,9 +0,0 @@
1
- const s = (t, e) => {
2
- const o = t.__vccOpts || t;
3
- for (const [r, c] of e)
4
- o[r] = c;
5
- return o;
6
- };
7
- export {
8
- s as default
9
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Z=require("element-plus/es"),e=require("vue"),U=require("clsx"),A=require("element-plus"),H=require("@vueuse/core"),X={class:"text-lg flex items-center pt-2 pl-[var(--content-padding)]"},W={key:0},Y={key:1},G={key:0,class:"icon-[material-symbols--square-outline-rounded]",role:"img","aria-hidden":"true"},J={key:1,class:"icon-[tdesign--fullscreen-exit-1]",role:"img","aria-hidden":"true"},K={key:0,class:"fixed -right-12 top-2 h-9 w-9 hover:bg-gray-600/80 transition-all"},Q={class:"flex justify-between h-[var(--footer-height)] px-[var(--content-padding)] items-center"},ee={class:"flex items-center justify-between w-full pl-1 pr-4 h-full ml-2"},te={class:"flex items-center gap-2"},oe={class:"text-sm text-gray-700 truncate max-w-[200px]"},le={class:"flex items-center gap-2"},L=5,C=2e3,ne=e.defineComponent({__name:"index",props:e.mergeModels({layout:{type:[Array,String,Boolean],default:()=>["confirm","cancel"]},fullscreen:{type:Boolean,default:!1},showFullscreen:{type:Boolean,default:!1},confirmProps:{default:()=>({})},size:{default:"default"},zIndex:{default:2e3}},{modelValue:{default:!0},modelModifiers:{}}),emits:e.mergeModels(["confirm","cancel","close","opened","ok"],["update:modelValue"]),setup(E,{expose:O,emit:j}){const l=E,y=e.useSlots(),M=e.ref(!0),v=e.ref(!1),b=e.ref(C),P=H.useBreakpoints({mobile:0,tablet:640,laptop:1024,desktop:1280}).isSmaller("tablet"),w=e.computed(()=>{if(Array.isArray(l.layout))return l.layout;if(typeof l.layout=="string")return l.layout.split(",").map(o=>o.trim())}),z=e.computed(()=>({CancelButton:e.createVNode(I),ConfirmButton:e.createVNode(S)})),B=e.computed(()=>y.footer||l.layout!==!1),h=e.ref(!1),s=e.ref(l.showFullscreen&&P?!0:l.fullscreen),d=j,x=e.useModel(E,"modelValue");e.watchEffect(()=>{x.value&&(h.value=!1)}),O({});const k=e.useAttrs(),i=`qy-dialog-${Math.random().toString(36).slice(2,11)}`,a=e.ref(!1),u=e.ref(null);window.minimizedCount||(window.minimizedCount=0);const{x:V,y:_}=H.useDraggable(u,{initialValue:{x:5,y:window.innerHeight-100-(window.minimizedCount||0)*60},onMove(o){var t;(t=u.value)==null||t.classList.add("dragging"),document.body.classList.add("qy-dialog--dragging"),V.value=Math.max(0,Math.min(window.innerWidth-300,o.x)),_.value=Math.max(0,Math.min(window.innerHeight-50,o.y))},onEnd(){var o;(o=u.value)==null||o.classList.remove("dragging"),document.body.classList.remove("qy-dialog--dragging")}}),T=e.computed(()=>({transform:`translate(${V.value}px, ${_.value}px)`,willChange:"transform"}));function q(o){const t=o.target,{scrollTop:n,scrollHeight:r,clientHeight:f}=t;M.value=n<=L,v.value=r-(n+f)<=L}function F(){document.querySelector(`.${i}.el-dialog`).addEventListener("scroll",q),m(),d("opened")}function N(){s.value=!s.value,m()}function c(){h.value||(h.value=!0,a.value=!1,x.value=!1,d("cancel"),d("close"))}function R(o){l.showFullscreen&&o.detail>=2&&N()}function S(){return e.h(A.ElButton,{...e.unref(l.confirmProps),type:"primary",class:"dialog__footerBtn",onClick:()=>{d("confirm"),d("ok")}},()=>e.unref(l.confirmProps).title||"确 认")}function I(){return e.h(A.ElButton,{class:"dialog__footerBtn",onClick:()=>c()},()=>"取 消")}e.onMounted(()=>{typeof window.qyDialogMaxZIndex>"u"&&(window.qyDialogMaxZIndex=C),m()});function m(){var $;const o=Array.from(document.querySelectorAll(".el-overlay")).filter(p=>window.getComputedStyle(p).display!=="none"&&!p.classList.contains("is-message")),t=($=document.querySelector(`.${i}`))==null?void 0:$.closest(".el-overlay"),n=document.querySelector(`.${i}.el-dialog`);if(!t||!n)return;const r=C;window.qyDialogMaxZIndex=window.qyDialogMaxZIndex||r;const g=Math.max(window.qyDialogMaxZIndex,...o.map(p=>parseInt(window.getComputedStyle(p).zIndex||r.toString())))+2;window.qyDialogMaxZIndex=g,e.nextTick(()=>{t.style.zIndex=g.toString(),n.style.zIndex=(g+1).toString(),b.value=g+1})}e.onUnmounted(()=>{const o=document.querySelector(`.${i} .qy-dialog__wrapper-container`);o&&o.removeEventListener("scroll",q),a.value&&window.minimizedCount--});function D(){var t;a.value=!a.value;const o=(t=document.querySelector(`.${i}`))==null?void 0:t.closest(".el-overlay");a.value?(o.style.display="none",window.minimizedCount++,_.value=window.innerHeight-50-(window.minimizedCount||0)*60):(o.style.display="block",window.minimizedCount--,m())}return(o,t)=>{const n=e.resolveComponent("Close"),r=Z.ElIcon,f=Z.ElDialog;return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(f,e.mergeProps({ref:"dialogRef",class:["qy-dialog",[l.size==="small"&&"[&_.el-dialog__header]:!hidden",i]],"model-value":x.value,"align-center":"","append-to-body":"",style:{"--el-dialog-padding-primary":0},"show-close":!1,fullscreen:s.value,"z-index":b.value,onClosed:c,onOpened:F,draggable:""},e.unref(k)),e.createSlots({header:e.withCtx(()=>[l.size==="default"?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({borderBottom:"1px solid",borderColor:M.value?"transparent":"var(--block-outline-color)",transition:"border-color .2s linear"}),class:"flex justify-between h-[var(--header-height)]",onDblclick:R},[e.createElementVNode("div",X,[e.unref(y).header?e.unref(y).header?(e.openBlock(),e.createElementBlock("div",Y,[e.renderSlot(o.$slots,"header")])):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",W,e.toDisplayString(e.unref(k).title),1))]),e.createElementVNode("div",{class:"flex",onMousedown:t[3]||(t[3]=e.withModifiers(()=>{},["stop"]))},[l.size==="default"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"qy-dialog__btn qy-dialog__btn--default",onClick:e.withModifiers(D,["stop"]),onMousedown:t[0]||(t[0]=e.withModifiers(()=>{},["stop"]))},t[4]||(t[4]=[e.createElementVNode("span",{class:"icon-[material-symbols--minimize] text-xl mb-3",role:"img","aria-hidden":"true"},null,-1)]),32)):e.createCommentVNode("",!0),l.showFullscreen?(e.openBlock(),e.createElementBlock("div",{key:1,class:"qy-dialog__btn qy-dialog__btn--default",onClick:e.withModifiers(N,["stop"]),onMousedown:t[1]||(t[1]=e.withModifiers(()=>{},["stop"]))},[s.value?(e.openBlock(),e.createElementBlock("span",J)):(e.openBlock(),e.createElementBlock("span",G))],32)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"qy-dialog__btn qy-dialog__btn--danger",onClick:e.withModifiers(c,["stop"]),onMousedown:t[2]||(t[2]=e.withModifiers(()=>{},["stop"]))},t[5]||(t[5]=[e.createElementVNode("span",{class:"icon-[ri--close-line] text-xl",role:"img","aria-hidden":"true"},null,-1)]),32)],32)],36)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["qy-dialog__wrapper",e.unref(U)(s.value&&"qy-dialog__wrapper--fullscreen")]),style:e.normalizeStyle({maxHeight:B.value?"calc(100vh - var(--header-height) - var(--footer-height) - var(--sides-gap))":"calc(100vh - var(--header-height) - var(--sides-gap))",padding:l.size==="small"?"var(--small-content-padding)":"var(--content-padding)"})},[l.size==="small"?(e.openBlock(),e.createElementBlock("div",K,[e.createVNode(r,{size:36,class:"cursor-pointer text-gray-100 active:scale-75 rounded-sm transition-all",onClick:c},{default:e.withCtx(()=>[e.createVNode(n)]),_:1})])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default")],6)]),_:2},[!o.$slots.footer&&Array.isArray(w.value)?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",Q,[e.createElementVNode("div",null,[e.renderSlot(o.$slots,"footer-left")]),e.createElementVNode("div",{class:e.normalizeClass([{"qy-dialog__footer--outline":v.value},"qy-dialog__footer flex items-center justify-end"])},[w.value.includes("cancel")?(e.openBlock(),e.createBlock(I,{key:0})):e.createCommentVNode("",!0),w.value.includes("confirm")?(e.openBlock(),e.createBlock(S,{key:1})):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"footer-append")],2)])]),key:"0"}:B.value?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([{"qy-dialog__footer--outline":v.value},"qy-dialog__footer px-[var(--content-padding)] min-h-[var(--footer-height)] flex items-center justify-end"])},[e.renderSlot(o.$slots,"footer",{layouts:z.value,layoutsNode:Object.values(z.value)})],2)]),key:"1"}:void 0]),1040,["class","model-value","fullscreen","z-index"]),e.withDirectives(e.createElementVNode("div",{ref_key:"minimizedRef",ref:u,class:"fixed left-0 top-0 bg-white rounded shadow-lg cursor-pointer z-[9999] hover:bg-gray-50",style:e.normalizeStyle([T.value,{width:"300px",height:"50px","will-change":"transform"}])},[e.createElementVNode("div",ee,[e.createElementVNode("div",te,[t[6]||(t[6]=e.createElementVNode("div",{class:"icon-[mdi--window-restore] text-gray-600"},null,-1)),e.createElementVNode("span",oe,e.toDisplayString(e.unref(k).title),1)]),e.createElementVNode("div",le,[e.createElementVNode("div",{class:"p-1 hover:bg-gray-200 rounded",onClick:e.withModifiers(D,["stop"])},t[7]||(t[7]=[e.createElementVNode("div",{class:"icon-[mdi--window-maximize] text-gray-600"},null,-1)])),e.createElementVNode("div",{class:"p-1 hover:bg-red-100 rounded",onClick:e.withModifiers(c,["stop"])},t[8]||(t[8]=[e.createElementVNode("div",{class:"icon-[mdi--close] text-red-600"},null,-1)]))])])],4),[[e.vShow,a.value]])])}}});exports.default=ne;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue.cjs");;/* empty css */exports.default=e.default;
@@ -1,5 +0,0 @@
1
- import o from "./index.vue.mjs";
2
- /* empty css */
3
- export {
4
- o as default
5
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */const p=require("./upload/index.vue.cjs"),m=require("./qy-voucher-upload/index.vue.cjs"),I=require("./dialog/index.vue.cjs");;/* empty css */const h=require("./remark-image/index.vue.cjs"),S=require("./qy-input/index.vue.cjs"),g=require("./qy-money-input/index.vue.cjs"),q=require("./qy-radio-group/index.vue.cjs"),R=require("./qy-remote-select/index.vue.cjs"),f=require("./qy-search-input/index.vue.cjs"),v=require("./qy-record-quote-search/index.vue.cjs"),x=require("./qy-select/index.vue.cjs"),w=require("./qy-form-section/index.vue.cjs"),$=require("./qy-action-bar/index.vue.cjs"),t=require("./utils/install.cjs"),n=t.withInstall(p.default,"QyUpload"),o=t.withInstall(m.default,"QyVoucherUpload"),u=t.withInstall(I.default,"QyDialog"),c=t.withInstall(h.default,"QyRemarkImage"),r=t.withInstall(S.default,"QyInput"),l=t.withInstall(g.default,"QyMoneyInput"),i=t.withInstall(q.default,"QyRadioGroup"),a=t.withInstall(R.default,"QyRemoteSelect"),y=t.withInstall(f.default,"QySearchInput"),s=t.withInstall(v.default,"QyRecordQuoteSearch"),Q=t.withInstall(x.default,"QySelect"),d=t.withInstall(w.default,"QyFormSection"),_=t.withInstall($.default,"QyActionBar"),U=e=>{e.component("QyDialog",u),e.component("QyUpload",n),e.component("QyVoucherUpload",o),e.component("QyRemarkImage",c),e.component("QyInput",r),e.component("QyMoneyInput",l),e.component("QyRadioGroup",i),e.component("QyRemoteSelect",a),e.component("QySearchInput",y),e.component("QyRecordQuoteSearch",s),e.component("QySelect",Q),e.component("QyFormSection",d),e.component("QyActionBar",_)},M={install:U,QyUpload:n,QyVoucherUpload:o,QyDialog:u,QyInput:r,QyMoneyInput:l,QyRadioGroup:i,QyRemoteSelect:a,QySearchInput:y,QyRecordQuoteSearch:s,QySelect:Q,QyFormSection:d,QyActionBar:_,QyRemarkImage:c};exports.QyActionBar=_;exports.QyDialog=u;exports.QyFormSection=d;exports.QyInput=r;exports.QyMoneyInput=l;exports.QyRadioGroup=i;exports.QyRecordQuoteSearch=s;exports.QyRemarkImage=c;exports.QyRemoteSelect=a;exports.QySearchInput=y;exports.QySelect=Q;exports.QyUpload=n;exports.QyVoucherUpload=o;exports.default=M;
@@ -1,53 +0,0 @@
1
- /* empty css */
2
- import u from "./upload/index.vue.mjs";
3
- import S from "./qy-voucher-upload/index.vue.mjs";
4
- import d from "./dialog/index.vue.mjs";
5
- /* empty css */
6
- import I from "./remark-image/index.vue.mjs";
7
- import R from "./qy-input/index.vue.mjs";
8
- import _ from "./qy-money-input/index.vue.mjs";
9
- import h from "./qy-radio-group/index.vue.mjs";
10
- import $ from "./qy-remote-select/index.vue.mjs";
11
- import g from "./qy-search-input/index.vue.mjs";
12
- import U from "./qy-record-quote-search/index.vue.mjs";
13
- import k from "./qy-select/index.vue.mjs";
14
- import A from "./qy-form-section/index.vue.mjs";
15
- import B from "./qy-action-bar/index.vue.mjs";
16
- import { withInstall as t } from "./utils/install.mjs";
17
- const n = t(u, "QyUpload"), e = t(S, "QyVoucherUpload"), m = t(d, "QyDialog"), c = t(I, "QyRemarkImage"), r = t(R, "QyInput"), Q = t(_, "QyMoneyInput"), y = t(h, "QyRadioGroup"), i = t($, "QyRemoteSelect"), a = t(g, "QySearchInput"), p = t(
18
- U,
19
- "QyRecordQuoteSearch"
20
- ), s = t(k, "QySelect"), f = t(A, "QyFormSection"), l = t(B, "QyActionBar"), F = (o) => {
21
- o.component("QyDialog", m), o.component("QyUpload", n), o.component("QyVoucherUpload", e), o.component("QyRemarkImage", c), o.component("QyInput", r), o.component("QyMoneyInput", Q), o.component("QyRadioGroup", y), o.component("QyRemoteSelect", i), o.component("QySearchInput", a), o.component("QyRecordQuoteSearch", p), o.component("QySelect", s), o.component("QyFormSection", f), o.component("QyActionBar", l);
22
- }, L = {
23
- install: F,
24
- QyUpload: n,
25
- QyVoucherUpload: e,
26
- QyDialog: m,
27
- QyInput: r,
28
- QyMoneyInput: Q,
29
- QyRadioGroup: y,
30
- QyRemoteSelect: i,
31
- QySearchInput: a,
32
- QyRecordQuoteSearch: p,
33
- QySelect: s,
34
- QyFormSection: f,
35
- QyActionBar: l,
36
- QyRemarkImage: c
37
- };
38
- export {
39
- l as QyActionBar,
40
- m as QyDialog,
41
- f as QyFormSection,
42
- r as QyInput,
43
- Q as QyMoneyInput,
44
- y as QyRadioGroup,
45
- p as QyRecordQuoteSearch,
46
- c as QyRemarkImage,
47
- i as QyRemoteSelect,
48
- a as QySearchInput,
49
- s as QySelect,
50
- n as QyUpload,
51
- e as QyVoucherUpload,
52
- L as default
53
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.cjs"),u=t.default(e.default,[["__scopeId","data-v-52704203"]]);exports.default=u;
@@ -1,7 +0,0 @@
1
- import o from "./index.vue2.mjs";
2
- /* empty css */
3
- import t from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-52704203"]]);
5
- export {
6
- p as default
7
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a={key:0,class:"qy-action-bar__left"},l={key:1,class:"qy-action-bar__center"},n={key:2,class:"qy-action-bar__right"},d=e.defineComponent({name:"QyActionBar",__name:"index",props:{sticky:{type:Boolean,default:!0},offsetBottom:{default:0},bordered:{type:Boolean,default:!0},shadow:{type:Boolean,default:!1},wrap:{type:Boolean,default:!0},justify:{default:"between"},background:{default:"#fff"}},setup(r){const o=r,s=e.computed(()=>({bottom:`${o.offsetBottom}px`,background:o.background}));return(t,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["qy-action-bar",[`is-justify-${t.justify}`,{"is-sticky":t.sticky,"is-bordered":t.bordered,"is-shadow":t.shadow,"is-wrap":t.wrap}]]),style:e.normalizeStyle(s.value)},[t.$slots.left?(e.openBlock(),e.createElementBlock("div",a,[e.renderSlot(t.$slots,"left",{},void 0,!0)])):e.createCommentVNode("",!0),t.$slots.default?(e.openBlock(),e.createElementBlock("div",l,[e.renderSlot(t.$slots,"default",{},void 0,!0)])):e.createCommentVNode("",!0),t.$slots.right?(e.openBlock(),e.createElementBlock("div",n,[e.renderSlot(t.$slots,"right",{},void 0,!0)])):e.createCommentVNode("",!0)],6))}});exports.default=d;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.cjs"),u=t.default(e.default,[["__scopeId","data-v-f66fb30e"]]);exports.default=u;
@@ -1,7 +0,0 @@
1
- import o from "./index.vue2.mjs";
2
- /* empty css */
3
- import t from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f66fb30e"]]);
5
- export {
6
- e as default
7
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d={class:"qy-form-section__heading"},c={key:0,class:"qy-form-section__title"},u={key:0,class:"qy-form-section__description"},p={class:"qy-form-section__actions"},m=e.defineComponent({name:"QyFormSection",__name:"index",props:{title:{default:""},description:{default:""},tip:{default:""},tipType:{default:"info"},collapsible:{type:Boolean,default:!1},defaultExpanded:{type:Boolean,default:!0},bordered:{type:Boolean,default:!0},background:{default:"white"},bodyClass:{default:""},headerClass:{default:""}},emits:["toggle"],setup(i,{emit:a}){const l=i,n=a,o=e.ref(l.defaultExpanded);e.watch(()=>l.defaultExpanded,t=>{o.value=t});function s(){l.collapsible&&(o.value=!o.value,n("toggle",o.value))}function r(){l.collapsible&&s()}return(t,f)=>(e.openBlock(),e.createElementBlock("section",{class:e.normalizeClass(["qy-form-section",[`is-bg-${t.background}`,{"is-bordered":t.bordered,"is-collapsible":t.collapsible}]])},[e.createElementVNode("header",{class:e.normalizeClass(["qy-form-section__header",t.headerClass]),onClick:r},[e.createElementVNode("div",d,[e.renderSlot(t.$slots,"title",{},()=>[t.title?(e.openBlock(),e.createElementBlock("div",c,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0)],!0),e.renderSlot(t.$slots,"description",{},()=>[t.description?(e.openBlock(),e.createElementBlock("div",u,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)],!0)]),e.createElementVNode("div",p,[e.renderSlot(t.$slots,"actions",{},void 0,!0),t.collapsible?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"qy-form-section__toggle",onClick:e.withModifiers(s,["stop"])},e.toDisplayString(o.value?"收起":"展开"),1)):e.createCommentVNode("",!0)])],2),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["qy-form-section__body",t.bodyClass])},[e.renderSlot(t.$slots,"tip",{},()=>[t.tip?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["qy-form-section__tip",`is-${t.tipType}`])},e.toDisplayString(t.tip),3)):e.createCommentVNode("",!0)],!0),e.renderSlot(t.$slots,"default",{},void 0,!0)],2),[[e.vShow,o.value]])],2))}});exports.default=m;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),T=require("element-plus"),P=t.defineComponent({name:"QyInput",inheritAttrs:!1,__name:"index",props:{modelValue:{default:""},removeSpace:{type:Boolean,default:!1},trimMode:{default:"none"}},emits:["update:modelValue","input","change","focus","blur","clear","enter"],setup(d,{expose:c,emit:p}){const r=d,u=p,m=t.useAttrs(),l=t.ref(null),a=t.ref(o(r.modelValue)),h=t.computed(()=>o(r.modelValue));t.watch(()=>r.modelValue,e=>{a.value=o(e)});function o(e){return e==null?"":String(e)}function v(e){return r.removeSpace?e.replace(/\s+/g,""):e}function s(e,n){return r.trimMode!==n?e:e.trim()}function f(e){return v(o(e))}function i(e){a.value=e,u("update:modelValue",e)}function V(e){const n=f(e);i(n)}function g(e){a.value=o(e),u("input",o(e))}function x(e){const n=s(f(e),"change");n!==o(r.modelValue)&&i(n),u("change",n)}function y(e){u("focus",e)}function S(e){const n=s(a.value,"blur");n!==o(r.modelValue)&&i(n),u("blur",e)}function C(){a.value="",u("update:modelValue",""),u("clear")}function $(e){u("enter",e)}function b(){var e,n;(n=(e=l.value)==null?void 0:e.focus)==null||n.call(e)}function k(){var e,n;(n=(e=l.value)==null?void 0:e.blur)==null||n.call(e)}function w(){var e,n;(n=(e=l.value)==null?void 0:e.select)==null||n.call(e)}function I(){var e,n;(n=(e=l.value)==null?void 0:e.clear)==null||n.call(e)}function M(){var e,n;(n=(e=l.value)==null?void 0:e.resizeTextarea)==null||n.call(e)}function z(){var e;return((e=l.value)==null?void 0:e.input)||null}function B(){var e;return((e=l.value)==null?void 0:e.textarea)||null}return c({focus:b,blur:k,select:w,clear:I,resizeTextarea:M,getNativeInput:z,getTextarea:B}),(e,n)=>(t.openBlock(),t.createBlock(t.unref(T.ElInput),t.mergeProps({ref_key:"inputRef",ref:l},t.unref(m),{"model-value":h.value,"onUpdate:modelValue":V,onInput:g,onChange:x,onFocus:y,onBlur:S,onClear:C,onKeydown:t.withKeys($,["enter"])}),t.createSlots({_:2},[e.$slots.prefix?{name:"prefix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.suffix?{name:"suffix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"suffix")]),key:"1"}:void 0,e.$slots.prepend?{name:"prepend",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"prepend")]),key:"2"}:void 0,e.$slots.append?{name:"append",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"append")]),key:"3"}:void 0]),1040,["model-value"]))}});exports.default=P;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue.cjs");exports.default=e.default;
@@ -1,4 +0,0 @@
1
- import f from "./index.vue.mjs";
2
- export {
3
- f as default
4
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),q=require("element-plus"),E=t.defineComponent({name:"QyMoneyInput",inheritAttrs:!1,__name:"index",props:{modelValue:{default:""},precision:{default:2},min:{default:void 0},max:{default:void 0},allowNegative:{type:Boolean,default:!1},formatTrigger:{default:"blur"},emptyValue:{default:""}},emits:["update:modelValue","input","change","focus","blur","clear","enter"],setup(v,{expose:x,emit:y}){const u=v,i=y,b=t.useAttrs(),r=t.ref(null),f=t.ref(o(u.modelValue)),M=t.computed(()=>o(u.modelValue));t.watch(()=>u.modelValue,e=>{f.value=o(e)});function o(e){return e==null?"":String(e)}function h(e){return Number.isFinite(e)?Math.max(0,Math.floor(e)):2}function d(e){const n=o(e);let a="",c=!1,g=!1;const p=h(u.precision);for(let s=0;s<n.length;s+=1){const l=n[s];if(l>="0"&&l<="9"){a+=l;continue}if(l==="."&&p>0&&!c){a+=l,c=!0;continue}l==="-"&&u.allowNegative&&s===0&&!g&&(a+=l,g=!0)}if(p>0&&c){const[s,l=""]=a.split(".");return`${s}.${l.slice(0,p)}`}return a}function N(e){let n=e;return typeof u.min=="number"&&Number.isFinite(u.min)&&(n=Math.max(n,u.min)),typeof u.max=="number"&&Number.isFinite(u.max)&&(n=Math.min(n,u.max)),n}function V(e){const n=d(e);if(!n||n==="-"||n===".")return o(u.emptyValue);const a=Number(n);if(Number.isNaN(a))return o(u.emptyValue);const c=h(u.precision);return N(a).toFixed(c)}function m(e){f.value=e,i("update:modelValue",e)}function $(e){const n=d(e);m(n)}function w(e){const n=d(e);f.value=n,i("input",n)}function C(e){const n=u.formatTrigger==="change"?V(e):d(e);n!==o(u.modelValue)&&m(n),i("change",n)}function S(e){i("focus",e)}function k(e){if(u.formatTrigger==="blur"){const n=V(f.value);n!==o(u.modelValue)&&m(n)}i("blur",e)}function F(){const e=o(u.emptyValue);f.value=e,i("update:modelValue",e),i("clear")}function I(e){i("enter",e)}function B(){var e,n;(n=(e=r.value)==null?void 0:e.focus)==null||n.call(e)}function P(){var e,n;(n=(e=r.value)==null?void 0:e.blur)==null||n.call(e)}function T(){var e,n;(n=(e=r.value)==null?void 0:e.select)==null||n.call(e)}function z(){var e,n;(n=(e=r.value)==null?void 0:e.clear)==null||n.call(e)}function A(){var e;return((e=r.value)==null?void 0:e.input)||null}return x({focus:B,blur:P,select:T,clear:z,getNativeInput:A}),(e,n)=>(t.openBlock(),t.createBlock(t.unref(q.ElInput),t.mergeProps({ref_key:"inputRef",ref:r},t.unref(b),{"model-value":M.value,inputmode:"decimal","onUpdate:modelValue":$,onInput:w,onChange:C,onFocus:S,onBlur:k,onClear:F,onKeydown:t.withKeys(I,["enter"])}),t.createSlots({_:2},[e.$slots.prefix?{name:"prefix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.suffix?{name:"suffix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"suffix")]),key:"1"}:void 0,e.$slots.prepend?{name:"prepend",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"prepend")]),key:"2"}:void 0,e.$slots.append?{name:"append",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"append")]),key:"3"}:void 0]),1040,["model-value"]))}});exports.default=E;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue.cjs");exports.default=e.default;
@@ -1,4 +0,0 @@
1
- import f from "./index.vue.mjs";
2
- export {
3
- f as default
4
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),r=require("element-plus"),k=l.defineComponent({name:"QyRadioGroup",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[String,Number,Boolean,null],default:void 0},options:{default:()=>[]},labelKey:{default:"label"},valueKey:{default:"value"},disabledKey:{default:"disabled"},disabled:{type:Boolean,default:!1},size:{default:"default"},name:{default:void 0},type:{default:"radio"},border:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(n,{expose:f,emit:b}){const a=n,s=b,m=l.useAttrs(),t=l.ref(null),c=l.computed(()=>a.type==="button"?r.ElRadioButton:r.ElRadio),v=l.computed(()=>(a.options||[]).map(e=>({raw:e,label:(e==null?void 0:e[a.labelKey])??(e==null?void 0:e.label)??(e==null?void 0:e.value)??"",value:(e==null?void 0:e[a.valueKey])??(e==null?void 0:e.value)??(e==null?void 0:e.label),disabled:!!(e!=null&&e[a.disabledKey])})));function y(e){const d={value:e.value,label:e.value,disabled:e.disabled};return a.type==="button"?d:{...d,border:a.border}}function i(e,d){return`${String(e.value??e.label??"")}-${d}`}function o(e){s("update:modelValue",e)}function g(e){s("change",e)}function B(){return t.value}return f({getRadioGroupInstance:B}),(e,d)=>(l.openBlock(),l.createBlock(l.unref(r.ElRadioGroup),l.mergeProps({ref_key:"radioGroupRef",ref:t},l.unref(m),{"model-value":e.modelValue,disabled:e.disabled,size:e.size,name:e.name,"onUpdate:modelValue":o,onChange:g}),{default:l.withCtx(()=>[e.$slots.default?l.renderSlot(e.$slots,"default",{key:0}):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(v.value,(u,h)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(c.value),l.mergeProps({key:i(u,h)},{ref_for:!0},y(u)),{default:l.withCtx(()=>[l.renderSlot(e.$slots,"option",{option:u.raw,label:u.label,value:u.value,disabled:u.disabled},()=>[l.createTextVNode(l.toDisplayString(u.label),1)])]),_:2},1040))),128))]),_:3},16,["model-value","disabled","size","name"]))}});exports.default=k;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue.cjs");exports.default=e.default;
@@ -1,4 +0,0 @@
1
- import f from "./index.vue.mjs";
2
- export {
3
- f as default
4
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.cjs"),u=t.default(e.default,[["__scopeId","data-v-6f12a6f5"]]);exports.default=u;
@@ -1,7 +0,0 @@
1
- import o from "./index.vue2.mjs";
2
- /* empty css */
3
- import r from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-6f12a6f5"]]);
5
- export {
6
- f as default
7
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),T=require("../qy-search-input/index.vue.cjs"),Q={class:"qy-record-quote-search"},F={key:0,class:"qy-record-quote-search__header"},P={key:0,class:"qy-record-quote-search__label"},L={key:1,class:"qy-record-quote-search__description"},R=t.defineComponent({name:"QyRecordQuoteSearch",inheritAttrs:!1,__name:"index",props:{modelValue:{default:""},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{default:"请输入报价单号"},buttonText:{default:"查询报价单"},autoNormalize:{type:Boolean,default:!0},showStatus:{type:Boolean,default:!0},status:{default:"default"},statusText:{default:""},suggestions:{default:()=>[]},fetchSuggestions:{type:[Function,null],default:null},fetchSuggestionsMethod:{type:[Function,null],default:null},debounce:{default:300},minLength:{default:1},searchOnSelect:{type:Boolean,default:!0},searchMethod:{type:[Function,null],default:null},extractMethod:{type:[Function,null],default:null},normalizeMethod:{type:[Function,null],default:null},label:{default:"报价单号"},description:{default:""},trimMode:{default:"blur"}},emits:["update:modelValue","search","clear","normalize","enter","select","error","success"],setup(y,{expose:v,emit:S}){const l=y,n=S,b=t.useAttrs(),a=t.ref(null),d=t.ref(!1),i=t.computed(()=>l.statusText||""),k=t.computed(()=>l.loading||d.value);function s(e){return e==null?"":String(e)}function C(e){const o=s(e).trim(),r=c(o),u=r.match(/BJ\d{8}[A-Z0-9]{4}/i);return u?u[0]:r}function c(e){return s(e).replace(/\s+/g,"").trim().toUpperCase()}function f(e){return l.extractMethod?l.extractMethod(e):C(e)}function m(e){return l.normalizeMethod?l.normalizeMethod(e):c(e)}function h(e,o){const r=s(e),u=f(r),g=l.autoNormalize?m(u):u;return n("normalize",{rawValue:r,code:g}),{rawValue:r,code:g,item:o}}function V(e){n("update:modelValue",e)}async function p(e){if(n("search",e),!!l.searchMethod){d.value=!0;try{const o=await l.searchMethod(e);n("success",o)}catch(o){n("error",o)}finally{d.value=!1}}}function M(e){const o=h(e);o.code!==s(l.modelValue)&&n("update:modelValue",o.code),p(o)}function B(){n("clear")}function $(e){n("enter",e)}function q(e){if(n("select",e),!l.searchOnSelect)return;const o=h(e.value,e);o.code!==s(l.modelValue)&&n("update:modelValue",o.code),p(o)}function z(e){n("error",e)}function E(){var e,o;(o=(e=a.value)==null?void 0:e.focus)==null||o.call(e)}function w(){var e,o;(o=(e=a.value)==null?void 0:e.blur)==null||o.call(e)}function N(){var e,o;(o=(e=a.value)==null?void 0:e.select)==null||o.call(e)}function O(){var e,o;(o=(e=a.value)==null?void 0:e.clear)==null||o.call(e)}return v({focus:E,blur:w,select:N,clear:O,extractQuoteOrderCode:f,normalizeQuoteOrderCode:m}),(e,o)=>(t.openBlock(),t.createElementBlock("div",Q,[t.renderSlot(e.$slots,"label",{},()=>[e.label||e.description?(t.openBlock(),t.createElementBlock("div",F,[e.label?(t.openBlock(),t.createElementBlock("div",P,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0),e.description?(t.openBlock(),t.createElementBlock("div",L,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],!0),t.createVNode(T.default,t.mergeProps({ref_key:"searchRef",ref:a},t.unref(b),{"model-value":e.modelValue,loading:k.value,disabled:e.disabled,placeholder:e.placeholder,"remove-space":!0,"trim-mode":e.trimMode,"button-text":e.buttonText,suggestions:e.suggestions,"fetch-suggestions":e.fetchSuggestions,"fetch-suggestions-method":e.fetchSuggestionsMethod,debounce:e.debounce,"min-length":e.minLength,"search-on-select":!1,"onUpdate:modelValue":V,onSearch:M,onClear:B,onEnter:$,onSelect:q,onError:z}),t.createSlots({_:2},[e.$slots.prefix?{name:"prefix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"prefix",{},void 0,!0)]),key:"0"}:void 0,e.$slots.suffix?{name:"suffix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"suffix",{},void 0,!0)]),key:"1"}:void 0,e.$slots.item?{name:"item",fn:t.withCtx(r=>[t.renderSlot(e.$slots,"item",t.normalizeProps(t.guardReactiveProps(r)),void 0,!0)]),key:"2"}:void 0,e.$slots.empty?{name:"empty",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"empty",{},void 0,!0)]),key:"3"}:void 0,e.$slots.loading?{name:"loading",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"loading",{},void 0,!0)]),key:"4"}:void 0]),1040,["model-value","loading","disabled","placeholder","trim-mode","button-text","suggestions","fetch-suggestions","fetch-suggestions-method","debounce","min-length"]),e.showStatus&&i.value?t.renderSlot(e.$slots,"status",{key:0,status:e.status,statusText:i.value},()=>[t.createElementVNode("div",{class:t.normalizeClass(["qy-record-quote-search__status",`is-${e.status}`])},t.toDisplayString(i.value),3)],!0):t.createCommentVNode("",!0)]))}});exports.default=R;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),P=require("../qy-select/index.vue.cjs"),U=l.defineComponent({name:"QyRemoteSelect",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[String,Number,Boolean,Array,null],default:void 0},fetchMethod:{},defaultOptions:{default:()=>[]},labelKey:{default:"label"},valueKey:{default:"value"},disabledKey:{default:"disabled"},placeholder:{default:"请选择"},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!1},collapseTagsTooltip:{type:Boolean,default:!1},autoSelectSingle:{type:Boolean,default:!1},size:{default:"default"},teleported:{type:Boolean,default:!0},appendTo:{default:"body"},fitInputWidth:{type:Boolean,default:!0},popperClass:{default:""},debounce:{default:300},minLength:{default:1},remoteOnFocus:{type:Boolean,default:!1},remoteShowSuffix:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},reserveSelectedOption:{type:Boolean,default:!0}},emits:["update:modelValue","change","clear","visible-change","focus","blur","options-change","loading-change","error"],setup(S,{expose:O,emit:B}){const t=S,o=B,V=l.useAttrs(),p=l.ref(null),s=l.ref([]),v=l.ref(new Map),m=l.ref(!1),d=l.ref("");let i=0,u=null;const C=l.computed(()=>t.loading||m.value),h=l.ref(!1),r=l.computed(()=>{const e=new Map,a=n=>{e.set(y(n),n)};return t.defaultOptions.forEach(a),t.reserveSelectedOption&&v.value.forEach(n=>a(n)),s.value.forEach(a),Array.from(e.values())});l.watch(()=>t.defaultOptions,e=>{e.forEach(f)},{immediate:!0}),l.watch(()=>t.modelValue,()=>{r.value.forEach(f)},{immediate:!0});function y(e){return(e==null?void 0:e[t.valueKey])??(e==null?void 0:e.value)??(e==null?void 0:e.label)}function w(e){return Array.isArray(t.modelValue)?t.modelValue.includes(e):t.modelValue===e}function f(e){if(!t.reserveSelectedOption)return;const a=y(e);w(a)&&v.value.set(a,e)}function T(e){return t.disabled?!1:e?e.length>=t.minLength:t.remoteOnFocus}function g(e){m.value!==e&&(m.value=e,o("loading-change",e))}async function c(e){if(d.value=e,!T(e)){i+=1,s.value=[],g(!1),o("options-change",r.value);return}const a=++i;g(!0);try{const n=await t.fetchMethod(e);if(a!==i)return;s.value=Array.isArray(n)?n:[],s.value.forEach(f),o("options-change",r.value)}catch(n){if(a!==i)return;s.value=[],o("error",n),o("options-change",r.value)}finally{a===i&&g(!1)}}function b(){h.value||(h.value=!0,c(""))}function k(e){u&&(clearTimeout(u),u=null),u=setTimeout(()=>{c(e)},t.debounce)}function F(){h.value=!0,c("")}function $(){c(d.value)}function M(e){o("update:modelValue",e)}function A(e){r.value.forEach(f),o("change",e)}function K(){o("clear")}function E(e){e&&t.remoteOnFocus&&!d.value&&b(),o("visible-change",e)}function I(e){t.remoteOnFocus&&!d.value&&b(),o("focus",e)}function R(e){o("blur",e)}function z(){var e,a;(a=(e=p.value)==null?void 0:e.focus)==null||a.call(e)}function L(){var e,a;(a=(e=p.value)==null?void 0:e.blur)==null||a.call(e)}function q(){o("update:modelValue",t.multiple?[]:""),o("clear")}return l.onBeforeUnmount(()=>{u&&clearTimeout(u)}),O({focus:z,blur:L,clear:q,retryFetch:$,fetchDefaultOptions:F}),(e,a)=>(l.openBlock(),l.createBlock(P.default,l.mergeProps({ref_key:"selectRef",ref:p},l.unref(V),{"model-value":e.modelValue,options:r.value,"label-key":e.labelKey,"value-key":e.valueKey,"disabled-key":e.disabledKey,placeholder:e.placeholder,disabled:e.disabled,clearable:e.clearable,filterable:!0,multiple:e.multiple,"collapse-tags":e.collapseTags,"collapse-tags-tooltip":e.collapseTagsTooltip,"auto-select-single":e.autoSelectSingle,size:e.size,teleported:e.teleported,"append-to":e.appendTo,"fit-input-width":e.fitInputWidth,"popper-class":e.popperClass,remote:"","remote-show-suffix":e.remoteShowSuffix,"remote-method":k,loading:C.value,"onUpdate:modelValue":M,onChange:A,onClear:K,onVisibleChange:E,onFocus:I,onBlur:R}),l.createSlots({default:l.withCtx(()=>[e.$slots.default?l.renderSlot(e.$slots,"default",{key:0}):l.createCommentVNode("",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:l.withCtx(()=>[l.renderSlot(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.empty?{name:"empty",fn:l.withCtx(()=>[l.renderSlot(e.$slots,"empty")]),key:"1"}:void 0,e.$slots.loading?{name:"loading",fn:l.withCtx(()=>[l.renderSlot(e.$slots,"loading")]),key:"2"}:void 0,e.$slots.tag?{name:"tag",fn:l.withCtx(n=>[l.renderSlot(e.$slots,"tag",l.normalizeProps(l.guardReactiveProps(n)))]),key:"3"}:void 0]),1040,["model-value","options","label-key","value-key","disabled-key","placeholder","disabled","clearable","multiple","collapse-tags","collapse-tags-tooltip","auto-select-single","size","teleported","append-to","fit-input-width","popper-class","remote-show-suffix","loading"]))}});exports.default=U;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue.cjs");exports.default=e.default;
@@ -1,4 +0,0 @@
1
- import f from "./index.vue.mjs";
2
- export {
3
- f as default
4
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.cjs"),u=t.default(e.default,[["__scopeId","data-v-9fedf1a9"]]);exports.default=u;
@@ -1,7 +0,0 @@
1
- import o from "./index.vue2.mjs";
2
- /* empty css */
3
- import t from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9fedf1a9"]]);
5
- export {
6
- p as default
7
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),w=require("element-plus"),X={class:"qy-search-input__item"},Y=["innerHTML"],Z={key:0,class:"qy-search-input__item-description"},ee=n.defineComponent({name:"QySearchInput",inheritAttrs:!1,__name:"index",props:{modelValue:{default:""},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{default:"请输入搜索内容"},removeSpace:{type:Boolean,default:!1},trimMode:{default:"none"},clearable:{type:Boolean,default:!0},buttonText:{default:"搜索"},buttonProps:{default:()=>({})},suggestions:{default:()=>[]},fetchSuggestions:{type:[Function,null],default:null},fetchSuggestionsMethod:{type:[Function,null],default:null},debounce:{default:300},minLength:{default:1},triggerOnFocus:{type:Boolean,default:!1},searchOnEnter:{type:Boolean,default:!0},searchOnSelect:{type:Boolean,default:!1},highlightKeyword:{type:Boolean,default:!0},teleported:{type:Boolean,default:!0},appendTo:{default:"body"},popperClass:{default:""},fitInputWidth:{type:Boolean,default:!0}},emits:["update:modelValue","search","clear","input","change","focus","blur","enter","select","visible-change","suggestions-change","error"],setup(k,{expose:B,emit:C}){const o=k,a=C,$=n.useAttrs(),s=n.ref(null),c=n.ref(u(o.modelValue)),f=n.computed(()=>u(o.modelValue)),M=n.computed(()=>["qy-search-input__popper",o.popperClass].filter(Boolean).join(" ")),E=n.computed(()=>u(o.modelValue)),p=n.ref("");n.watch(()=>o.modelValue,e=>{c.value=u(e)});function u(e){return e==null?"":String(e)}function T(e){return o.removeSpace?e.replace(/\s+/g,""):e}function v(e,t){return o.trimMode!==t?e:e.trim()}function g(e){return T(u(e))}function h(e){c.value=e,a("update:modelValue",e)}function y(e,t=""){return{...e,label:e.label||e.value,value:e.value||e.label,description:e.description||t}}function m(e=[]){return e.flatMap(t=>{if(Array.isArray(t.items)){const l=t;return l.items.map(r=>y(r,l.groupLabel))}return y(t)})}function F(e){const t=e.toLowerCase();return l=>[l.label,l.value,l.description].filter(Boolean).some(r=>String(r).toLowerCase().includes(t))}function L(e){return e?e.length>=o.minLength:o.triggerOnFocus}function i(e){a("suggestions-change",e),a("visible-change",e.length>0)}async function P(e){if(!L(e))return i([]),[];if(o.fetchSuggestionsMethod){const r=await new Promise(d=>{var S;(S=o.fetchSuggestionsMethod)==null||S.call(o,e,J=>{d(m(J))})});return i(r),r}if(o.fetchSuggestions){const r=await o.fetchSuggestions(e),d=m(Array.isArray(r)?r:[]);return i(d),d}const t=m(o.suggestions),l=e?t.filter(F(e)):t;return i(l),l}async function O(e,t){p.value=e;try{const l=await P(e);t(l)}catch(l){a("error",l),i([]),t([])}}function A(){var e,t;p.value&&((t=(e=s.value)==null?void 0:e.getData)==null||t.call(e,p.value))}function I(e){const t=g(e);h(t)}function z(e){const t=g(e);c.value=t,a("input",t)}function K(e){const t=v(g(e),"change");t!==u(o.modelValue)&&h(t),a("change",t)}function N(e){a("focus",e)}function R(e){const t=v(c.value,"blur");t!==u(o.modelValue)&&h(t),a("blur",e),a("visible-change",!1)}function _(){c.value="",a("update:modelValue",""),a("clear"),i([])}function q(e){a("enter",e),o.searchOnEnter&&b()}function b(){a("search",u(o.modelValue))}function H(e){a("select",e),o.searchOnSelect&&a("search",e.value)}function V(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function x(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function D(e){const t=V(e||"");if(!o.highlightKeyword||!f.value)return t;const l=x(V(f.value));return l?t.replace(new RegExp(`(${l})`,"ig"),'<mark class="qy-search-input__mark">$1</mark>'):t}function Q(){var e,t;(t=(e=s.value)==null?void 0:e.focus)==null||t.call(e)}function j(){var e,t;(t=(e=s.value)==null?void 0:e.blur)==null||t.call(e)}function U(){var e,t,l;(l=(t=(e=s.value)==null?void 0:e.inputRef)==null?void 0:t.select)==null||l.call(t)}function W(){var e,t;(t=(e=s.value)==null?void 0:e.clear)==null||t.call(e)}function G(){var e,t;(t=(e=s.value)==null?void 0:e.close)==null||t.call(e)}return B({focus:Q,blur:j,select:U,clear:W,closePanel:G,retryFetch:A}),(e,t)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["qy-search-input",{"is-disabled":e.disabled}])},[n.createVNode(n.unref(w.ElAutocomplete),n.mergeProps({ref_key:"autocompleteRef",ref:s},n.unref($),{"model-value":E.value,disabled:e.disabled,placeholder:e.placeholder,clearable:e.clearable,debounce:e.debounce,"fetch-suggestions":O,"trigger-on-focus":e.triggerOnFocus,teleported:e.teleported,"fit-input-width":e.fitInputWidth,"popper-class":M.value,"append-to":e.appendTo,"value-key":"value","onUpdate:modelValue":I,onInput:z,onChange:K,onFocus:N,onBlur:R,onClear:_,onSelect:H,onKeydown:n.withKeys(q,["enter"])}),n.createSlots({append:n.withCtx(()=>[e.$slots.append?n.renderSlot(e.$slots,"append",{key:0},void 0,!0):(n.openBlock(),n.createBlock(n.unref(w.ElButton),n.mergeProps({key:1},e.buttonProps,{loading:e.loading,disabled:e.disabled,onClick:b}),{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.buttonText),1)]),_:1},16,["loading","disabled"]))]),default:n.withCtx(({item:l})=>[n.renderSlot(e.$slots,"item",{item:l,keyword:f.value},()=>[n.createElementVNode("div",X,[n.createElementVNode("div",{class:"qy-search-input__item-label",innerHTML:D(l.label||l.value||"")},null,8,Y),l.description?(n.openBlock(),n.createElementBlock("div",Z,n.toDisplayString(l.description),1)):n.createCommentVNode("",!0)])],!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"prefix",{},void 0,!0)]),key:"0"}:void 0,e.$slots.suffix?{name:"suffix",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"suffix",{},void 0,!0)]),key:"1"}:void 0,e.$slots.prepend?{name:"prepend",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"prepend",{},void 0,!0)]),key:"2"}:void 0]),1040,["model-value","disabled","placeholder","clearable","debounce","trigger-on-focus","teleported","fit-input-width","popper-class","append-to"])],2))}});exports.default=ee;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),n=require("element-plus"),T=l.defineComponent({name:"QySelect",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[String,Number,Boolean,Array,null],default:void 0},options:{default:()=>[]},labelKey:{default:"label"},valueKey:{default:"value"},disabledKey:{default:"disabled"},placeholder:{default:"请选择"},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},filterable:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!1},collapseTagsTooltip:{type:Boolean,default:!1},autoSelectSingle:{type:Boolean,default:!1},size:{default:"default"},teleported:{type:Boolean,default:!0},appendTo:{default:"body"},fitInputWidth:{type:Boolean,default:!0},popperClass:{default:""}},emits:["update:modelValue","change","clear","visible-change","focus","blur"],setup(o,{expose:f,emit:i}){const t=o,s=i,c=l.useAttrs(),p=l.useSlots(),r=l.ref(null),m=l.computed(()=>["qy-select__popper",t.popperClass].filter(Boolean).join(" ")),d=l.computed(()=>(t.options||[]).map(e=>({raw:e,label:(e==null?void 0:e[t.labelKey])??(e==null?void 0:e.label)??(e==null?void 0:e.value)??"",value:(e==null?void 0:e[t.valueKey])??(e==null?void 0:e.value)??(e==null?void 0:e.label),disabled:!!(e!=null&&e[t.disabledKey])}))),b=l.computed(()=>{const e=p.default;return e?e().some(a=>a.type!==l.Comment):!1});function g(e){return Array.isArray(e)?e.length===0:e===""||e===null||e===void 0}l.watch([d,()=>t.modelValue,()=>t.autoSelectSingle,()=>t.disabled,()=>t.multiple],([e])=>{if(!t.autoSelectSingle||t.disabled||!g(t.modelValue)||e.length!==1)return;const[a]=e;if(a.disabled)return;const u=t.multiple?[a.value]:a.value;s("update:modelValue",u),s("change",u)},{immediate:!0});function y(e,a){return`${String(e.value??e.label??"")}-${a}`}function h(e){s("update:modelValue",e)}function v(e){s("change",e)}function S(){s("clear")}function B(e){s("visible-change",e)}function C(e){s("focus",e)}function k(e){s("blur",e)}function V(){var e,a;(a=(e=r.value)==null?void 0:e.focus)==null||a.call(e)}function $(){var e,a;(a=(e=r.value)==null?void 0:e.blur)==null||a.call(e)}return f({focus:V,blur:$}),(e,a)=>(l.openBlock(),l.createBlock(l.unref(n.ElSelect),l.mergeProps({ref_key:"selectRef",ref:r},l.unref(c),{"model-value":e.modelValue,placeholder:e.placeholder,disabled:e.disabled,clearable:e.clearable,filterable:e.filterable,multiple:e.multiple,"collapse-tags":e.collapseTags,"collapse-tags-tooltip":e.collapseTagsTooltip,size:e.size,teleported:e.teleported,"fit-input-width":e.fitInputWidth,"popper-class":m.value,"append-to":e.appendTo,"onUpdate:modelValue":h,onChange:v,onClear:S,onVisibleChange:B,onFocus:C,onBlur:k}),l.createSlots({default:l.withCtx(()=>[b.value?l.renderSlot(e.$slots,"default",{key:0}):(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:1},l.renderList(d.value,(u,w)=>(l.openBlock(),l.createBlock(l.unref(n.ElOption),{key:y(u,w),label:u.label,value:u.value,disabled:u.disabled},null,8,["label","value","disabled"]))),128))]),_:2},[e.$slots.prefix?{name:"prefix",fn:l.withCtx(()=>[l.renderSlot(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.empty?{name:"empty",fn:l.withCtx(()=>[l.renderSlot(e.$slots,"empty")]),key:"1"}:void 0,e.$slots.loading?{name:"loading",fn:l.withCtx(()=>[l.renderSlot(e.$slots,"loading")]),key:"2"}:void 0,e.$slots.tag?{name:"tag",fn:l.withCtx(u=>[l.renderSlot(e.$slots,"tag",l.normalizeProps(l.guardReactiveProps(u)))]),key:"3"}:void 0]),1040,["model-value","placeholder","disabled","clearable","filterable","multiple","collapse-tags","collapse-tags-tooltip","size","teleported","fit-input-width","popper-class","append-to"]))}});exports.default=T;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue.cjs");exports.default=e.default;
@@ -1,4 +0,0 @@
1
- import f from "./index.vue.mjs";
2
- export {
3
- f as default
4
- };