@qynpm/ui 1.0.6 → 1.0.8

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 (85) hide show
  1. package/dist/index.cjs +2 -2
  2. package/dist/index.mjs +21 -54
  3. package/dist/qy-action-bar/index.cjs +1 -1
  4. package/dist/qy-action-bar/index.mjs +2 -4
  5. package/dist/qy-date-picker/index.cjs +1 -0
  6. package/dist/qy-date-picker/index.mjs +4 -0
  7. package/dist/qy-dialog/index.cjs +1 -1
  8. package/dist/qy-dialog/index.mjs +2 -4
  9. package/dist/qy-form-section/index.cjs +1 -1
  10. package/dist/qy-form-section/index.mjs +2 -4
  11. package/dist/qy-input/index.cjs +1 -1
  12. package/dist/qy-input/index.mjs +2 -4
  13. package/dist/qy-input-number/index.cjs +1 -0
  14. package/dist/qy-input-number/index.mjs +4 -0
  15. package/dist/qy-money-input/index.cjs +1 -1
  16. package/dist/qy-money-input/index.mjs +2 -4
  17. package/dist/qy-radio-group/index.cjs +1 -1
  18. package/dist/qy-radio-group/index.mjs +2 -4
  19. package/dist/qy-record-quote-search/index.cjs +1 -1
  20. package/dist/qy-record-quote-search/index.mjs +2 -4
  21. package/dist/qy-remark-image/index.cjs +1 -1
  22. package/dist/qy-remark-image/index.mjs +2 -4
  23. package/dist/qy-remote-select/index.cjs +1 -1
  24. package/dist/qy-remote-select/index.mjs +2 -4
  25. package/dist/qy-search-input/index.cjs +1 -1
  26. package/dist/qy-search-input/index.mjs +2 -4
  27. package/dist/qy-select/index.cjs +1 -1
  28. package/dist/qy-select/index.mjs +2 -4
  29. package/dist/qy-upload/index.cjs +1 -1
  30. package/dist/qy-upload/index.mjs +2 -4
  31. package/dist/qy-voucher-upload/index.cjs +1 -1
  32. package/dist/qy-voucher-upload/index.mjs +2 -4
  33. package/dist/shared/index-C5EAafC0.cjs +1 -0
  34. package/dist/shared/index-DB0Fuuxi.mjs +2784 -0
  35. package/index.d.ts +20 -16
  36. package/package.json +13 -1
  37. package/qy-action-bar/index.js +1 -4
  38. package/qy-date-picker/index.d.ts +5 -0
  39. package/qy-date-picker/index.js +1 -0
  40. package/qy-dialog/index.js +1 -4
  41. package/qy-form-section/index.js +1 -4
  42. package/qy-input/index.js +1 -4
  43. package/qy-input-number/index.d.ts +5 -0
  44. package/qy-input-number/index.js +1 -0
  45. package/qy-money-input/index.js +1 -15
  46. package/qy-radio-group/index.js +1 -15
  47. package/qy-record-quote-search/index.js +1 -4
  48. package/qy-remark-image/index.js +1 -4
  49. package/qy-remote-select/index.js +1 -15
  50. package/qy-search-input/index.js +1 -4
  51. package/qy-select/index.js +1 -4
  52. package/qy-upload/index.js +1 -4
  53. package/qy-voucher-upload/index.js +1 -15
  54. package/dist/shared/_plugin-vue_export-helper-BHFhmbuH.cjs +0 -1
  55. package/dist/shared/_plugin-vue_export-helper-CHgC5LLL.mjs +0 -9
  56. package/dist/shared/index-Bw9kVFsm.mjs +0 -56
  57. package/dist/shared/index-BzV4959-.mjs +0 -205
  58. package/dist/shared/index-C0ADdL4S.mjs +0 -88
  59. package/dist/shared/index-CBSjmD0C.mjs +0 -217
  60. package/dist/shared/index-CJb1S7CP.cjs +0 -1
  61. package/dist/shared/index-CO8lz02r.cjs +0 -1
  62. package/dist/shared/index-ClPxDFKd.cjs +0 -1
  63. package/dist/shared/index-CtOqRiaj.cjs +0 -1
  64. package/dist/shared/index-DXB7_Tb5.cjs +0 -1
  65. package/dist/shared/index-DeWkPj3O.mjs +0 -484
  66. package/dist/shared/index-PUYQxK94.mjs +0 -123
  67. package/dist/shared/index-UzZbxoqZ.cjs +0 -1
  68. package/dist/shared/index-a90QeEC4.cjs +0 -1
  69. package/dist/shared/index-wW02nNOp.mjs +0 -277
  70. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BcZg8D-y.mjs +0 -214
  71. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BmeBeCu0.mjs +0 -162
  72. package/dist/shared/index.vue_vue_type_script_setup_true_lang-C85575cL.cjs +0 -1
  73. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DkYwdYdF.mjs +0 -90
  74. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Do5SZ8yS.cjs +0 -1
  75. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DpZzyX5f.cjs +0 -1
  76. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DuUkOqwY.cjs +0 -1
  77. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Dvh1BFaR.mjs +0 -143
  78. package/dist/shared/index.vue_vue_type_script_setup_true_lang-RtfqJ73A.mjs +0 -171
  79. package/dist/shared/index.vue_vue_type_script_setup_true_lang-VVjCLNMD.cjs +0 -1
  80. package/dist/shared/index.vue_vue_type_style_index_0_lang-DpIL_6vO.mjs +0 -325
  81. package/dist/shared/index.vue_vue_type_style_index_0_lang-haqCjB5x.cjs +0 -1
  82. package/dist/shared/install-CxBnxbuN.mjs +0 -8
  83. package/dist/shared/install-c8il9DQv.cjs +0 -1
  84. package/dist/shared/js.cookie-CojEIxHg.cjs +0 -1
  85. package/dist/shared/js.cookie-OLEfuq_g.mjs +0 -74
package/index.d.ts CHANGED
@@ -3,18 +3,20 @@ import type { App, Plugin } from 'vue'
3
3
  // 根入口类型声明,对应 @qynpm/ui 的命名导出和 app.use(QyUI) 整包注册。
4
4
  export const QyUpload: Plugin
5
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
6
+ export const QyDialog: Plugin
7
+ export const QyInput: Plugin
8
+ export const QyInputNumber: Plugin
9
+ export const QyMoneyInput: Plugin
10
+ export const QyDatePicker: Plugin
11
+ export const QyRadioGroup: Plugin
10
12
  export const QyRemoteSelect: Plugin
11
13
  export const QySearchInput: Plugin
12
14
  export const QyRecordQuoteSearch: Plugin
13
15
  export const QySelect: Plugin
14
- export const QyFormSection: Plugin
15
- export const QyActionBar: Plugin
16
- export const QyRemarkImage: Plugin
17
- export function parseRemarkText(remarkText: string): {
16
+ export const QyFormSection: Plugin
17
+ export const QyActionBar: Plugin
18
+ export const QyRemarkImage: Plugin
19
+ export function parseRemarkText(remarkText: string): {
18
20
  imageUrl: string
19
21
  text: string
20
22
  }
@@ -25,17 +27,19 @@ declare const _default: Plugin & {
25
27
  install(app: App): void
26
28
  QyUpload: typeof QyUpload
27
29
  QyVoucherUpload: typeof QyVoucherUpload
28
- QyDialog: typeof QyDialog
29
- QyInput: typeof QyInput
30
- QyMoneyInput: typeof QyMoneyInput
31
- QyRadioGroup: typeof QyRadioGroup
30
+ QyDialog: typeof QyDialog
31
+ QyInput: typeof QyInput
32
+ QyInputNumber: typeof QyInputNumber
33
+ QyMoneyInput: typeof QyMoneyInput
34
+ QyDatePicker: typeof QyDatePicker
35
+ QyRadioGroup: typeof QyRadioGroup
32
36
  QyRemoteSelect: typeof QyRemoteSelect
33
37
  QySearchInput: typeof QySearchInput
34
38
  QyRecordQuoteSearch: typeof QyRecordQuoteSearch
35
39
  QySelect: typeof QySelect
36
- QyFormSection: typeof QyFormSection
37
- QyActionBar: typeof QyActionBar
38
- QyRemarkImage: typeof QyRemarkImage
39
- }
40
+ QyFormSection: typeof QyFormSection
41
+ QyActionBar: typeof QyActionBar
42
+ QyRemarkImage: typeof QyRemarkImage
43
+ }
40
44
 
41
45
  export default _default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qynpm/ui",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "起印公共 UI 组件包。",
5
5
  "author": "qy",
6
6
  "license": "MIT",
@@ -33,11 +33,21 @@
33
33
  "import": "./dist/qy-input/index.mjs",
34
34
  "require": "./dist/qy-input/index.cjs"
35
35
  },
36
+ "./qy-input-number": {
37
+ "types": "./qy-input-number/index.d.ts",
38
+ "import": "./dist/qy-input-number/index.mjs",
39
+ "require": "./dist/qy-input-number/index.cjs"
40
+ },
36
41
  "./qy-money-input": {
37
42
  "types": "./qy-money-input/index.d.ts",
38
43
  "import": "./dist/qy-money-input/index.mjs",
39
44
  "require": "./dist/qy-money-input/index.cjs"
40
45
  },
46
+ "./qy-date-picker": {
47
+ "types": "./qy-date-picker/index.d.ts",
48
+ "import": "./dist/qy-date-picker/index.mjs",
49
+ "require": "./dist/qy-date-picker/index.cjs"
50
+ },
41
51
  "./qy-radio-group": {
42
52
  "types": "./qy-radio-group/index.d.ts",
43
53
  "import": "./dist/qy-radio-group/index.mjs",
@@ -87,7 +97,9 @@
87
97
  "qy-voucher-upload",
88
98
  "qy-dialog",
89
99
  "qy-input",
100
+ "qy-input-number",
90
101
  "qy-money-input",
102
+ "qy-date-picker",
91
103
  "qy-radio-group",
92
104
  "qy-remote-select",
93
105
  "qy-search-input",
@@ -1,4 +1 @@
1
- import QyActionBar from '../lib/qy-action-bar/index.vue'
2
- import { withInstall } from '../lib/utils/install'
3
-
4
- export default withInstall(QyActionBar, 'QyActionBar')
1
+ export { QyActionBar as default } from '../index.js'
@@ -0,0 +1,5 @@
1
+ import type { DefineComponent, Plugin } from 'vue'
2
+
3
+ declare const QyDatePicker: DefineComponent<any, any, any> & Plugin
4
+
5
+ export default QyDatePicker
@@ -0,0 +1 @@
1
+ export { QyDatePicker as default } from '../index.js'
@@ -1,4 +1 @@
1
- import QyDialog from '../lib/dialog/index.vue'
2
- import { withInstall } from '../lib/utils/install'
3
-
4
- export default withInstall(QyDialog, 'QyDialog')
1
+ export { QyDialog as default } from '../index.js'
@@ -1,4 +1 @@
1
- import QyFormSection from '../lib/qy-form-section/index.vue'
2
- import { withInstall } from '../lib/utils/install'
3
-
4
- export default withInstall(QyFormSection, 'QyFormSection')
1
+ export { QyFormSection as default } from '../index.js'
package/qy-input/index.js CHANGED
@@ -1,4 +1 @@
1
- import QyInput from '../lib/qy-input/index.vue'
2
- import { withInstall } from '../lib/utils/install'
3
-
4
- export default withInstall(QyInput, 'QyInput')
1
+ export { QyInput as default } from '../index.js'
@@ -0,0 +1,5 @@
1
+ import type { DefineComponent, Plugin } from 'vue'
2
+
3
+ declare const QyInputNumber: DefineComponent<any, any, any> & Plugin
4
+
5
+ export default QyInputNumber
@@ -0,0 +1 @@
1
+ export { QyInputNumber as default } from '../index.js'
@@ -1,15 +1 @@
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
+ export { QyMoneyInput as default } from '../index.js'
@@ -1,15 +1 @@
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
+ export { QyRadioGroup as default } from '../index.js'
@@ -1,4 +1 @@
1
- import QyRecordQuoteSearch from '../lib/qy-record-quote-search/index.vue'
2
- import { withInstall } from '../lib/utils/install'
3
-
4
- export default withInstall(QyRecordQuoteSearch, 'QyRecordQuoteSearch')
1
+ export { QyRecordQuoteSearch as default } from '../index.js'
@@ -1,4 +1 @@
1
- import QyRemarkImage from '../lib/remark-image/index.vue'
2
- import { withInstall } from '../lib/utils/install'
3
-
4
- export default withInstall(QyRemarkImage, 'QyRemarkImage')
1
+ export { QyRemarkImage as default } from '../index.js'
@@ -1,15 +1 @@
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
+ export { QyRemoteSelect as default } from '../index.js'
@@ -1,4 +1 @@
1
- import QySearchInput from '../lib/qy-search-input/index.vue'
2
- import { withInstall } from '../lib/utils/install'
3
-
4
- export default withInstall(QySearchInput, 'QySearchInput')
1
+ export { QySearchInput as default } from '../index.js'
@@ -1,4 +1 @@
1
- import QySelect from '../lib/qy-select/index.vue'
2
- import { withInstall } from '../lib/utils/install'
3
-
4
- export default withInstall(QySelect, 'QySelect')
1
+ export { QySelect as default } from '../index.js'
@@ -1,4 +1 @@
1
- import QyUpload from '../lib/upload/index.vue'
2
- import { withInstall } from '../lib/utils/install'
3
-
4
- export default withInstall(QyUpload, 'QyUpload')
1
+ export { QyUpload as default } from '../index.js'
@@ -1,15 +1 @@
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
+ export { QyVoucherUpload as default } from '../index.js'
@@ -1 +0,0 @@
1
- "use strict";const e=(t,o)=>{const c=t.__vccOpts||t;for(const[r,s]of o)c[r]=s;return c};exports._export_sfc=e;
@@ -1,9 +0,0 @@
1
- const s = (t, r) => {
2
- const o = t.__vccOpts || t;
3
- for (const [c, e] of r)
4
- o[c] = e;
5
- return o;
6
- };
7
- export {
8
- s as _
9
- };
@@ -1,56 +0,0 @@
1
- import { defineComponent as i, computed as n, createElementBlock as t, openBlock as o, normalizeStyle as f, normalizeClass as u, createCommentVNode as s, renderSlot as a } from "vue";
2
- import { _ as c } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
3
- const y = {
4
- key: 0,
5
- class: "qy-action-bar__left"
6
- }, p = {
7
- key: 1,
8
- class: "qy-action-bar__center"
9
- }, m = {
10
- key: 2,
11
- class: "qy-action-bar__right"
12
- }, b = /* @__PURE__ */ i({
13
- name: "QyActionBar",
14
- __name: "index",
15
- props: {
16
- sticky: { type: Boolean, default: !0 },
17
- offsetBottom: { default: 0 },
18
- bordered: { type: Boolean, default: !0 },
19
- shadow: { type: Boolean, default: !1 },
20
- wrap: { type: Boolean, default: !0 },
21
- justify: { default: "between" },
22
- background: { default: "#fff" }
23
- },
24
- setup(d) {
25
- const r = d, l = n(() => ({
26
- // offsetBottom 只负责业务偏移,安全区补偿由 CSS padding 处理。
27
- bottom: `${r.offsetBottom}px`,
28
- background: r.background
29
- }));
30
- return (e, _) => (o(), t("div", {
31
- class: u(["qy-action-bar", [
32
- `is-justify-${e.justify}`,
33
- {
34
- "is-sticky": e.sticky,
35
- "is-bordered": e.bordered,
36
- "is-shadow": e.shadow,
37
- "is-wrap": e.wrap
38
- }
39
- ]]),
40
- style: f(l.value)
41
- }, [
42
- e.$slots.left ? (o(), t("div", y, [
43
- a(e.$slots, "left", {}, void 0, !0)
44
- ])) : s("", !0),
45
- e.$slots.default ? (o(), t("div", p, [
46
- a(e.$slots, "default", {}, void 0, !0)
47
- ])) : s("", !0),
48
- e.$slots.right ? (o(), t("div", m, [
49
- a(e.$slots, "right", {}, void 0, !0)
50
- ])) : s("", !0)
51
- ], 6));
52
- }
53
- }), B = /* @__PURE__ */ c(b, [["__scopeId", "data-v-ecba8f49"]]);
54
- export {
55
- B as Q
56
- };
@@ -1,205 +0,0 @@
1
- import { defineComponent as U, useAttrs as I, ref as M, computed as $, createElementBlock as i, openBlock as c, renderSlot as r, createVNode as D, createCommentVNode as f, toDisplayString as p, mergeProps as J, unref as Z, createSlots as j, withCtx as d, normalizeProps as G, guardReactiveProps as H, createElementVNode as K, normalizeClass as W } from "vue";
2
- import { Q as X } from "./index-wW02nNOp.mjs";
3
- import { _ as Y } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
4
- const _ = { class: "qy-record-quote-search" }, x = {
5
- key: 0,
6
- class: "qy-record-quote-search__header"
7
- }, ee = {
8
- key: 0,
9
- class: "qy-record-quote-search__label"
10
- }, te = {
11
- key: 1,
12
- class: "qy-record-quote-search__description"
13
- }, oe = /* @__PURE__ */ U({
14
- name: "QyRecordQuoteSearch",
15
- inheritAttrs: !1,
16
- __name: "index",
17
- props: {
18
- modelValue: { default: "" },
19
- loading: { type: Boolean, default: !1 },
20
- disabled: { type: Boolean, default: !1 },
21
- placeholder: { default: "请输入报价单号" },
22
- buttonText: { default: "查询报价单" },
23
- autoNormalize: { type: Boolean, default: !0 },
24
- showStatus: { type: Boolean, default: !0 },
25
- status: { default: "default" },
26
- statusText: { default: "" },
27
- suggestions: { default: () => [] },
28
- fetchSuggestions: { type: [Function, null], default: null },
29
- fetchSuggestionsMethod: { type: [Function, null], default: null },
30
- debounce: { default: 300 },
31
- minLength: { default: 1 },
32
- searchOnSelect: { type: Boolean, default: !0 },
33
- searchMethod: { type: [Function, null], default: null },
34
- extractMethod: { type: [Function, null], default: null },
35
- normalizeMethod: { type: [Function, null], default: null },
36
- label: { default: "报价单号" },
37
- description: { default: "" },
38
- trimMode: { default: "blur" }
39
- },
40
- emits: ["update:modelValue", "search", "clear", "normalize", "enter", "select", "error", "success"],
41
- setup(k, { expose: z, emit: C }) {
42
- const o = k, a = C, Q = I(), l = M(null), h = M(!1), m = $(() => o.statusText || ""), q = $(() => o.loading || h.value);
43
- function s(e) {
44
- return e == null ? "" : String(e);
45
- }
46
- function B(e) {
47
- const t = s(e).trim(), n = g(t), u = n.match(/BJ\d{8}[A-Z0-9]{4}/i);
48
- return u ? u[0] : n;
49
- }
50
- function g(e) {
51
- return s(e).replace(/\s+/g, "").trim().toUpperCase();
52
- }
53
- function y(e) {
54
- return o.extractMethod ? o.extractMethod(e) : B(e);
55
- }
56
- function v(e) {
57
- return o.normalizeMethod ? o.normalizeMethod(e) : g(e);
58
- }
59
- function S(e, t) {
60
- const n = s(e), u = y(n), V = o.autoNormalize ? v(u) : u;
61
- return a("normalize", { rawValue: n, code: V }), {
62
- rawValue: n,
63
- code: V,
64
- item: t
65
- };
66
- }
67
- function E(e) {
68
- a("update:modelValue", e);
69
- }
70
- async function b(e) {
71
- if (a("search", e), !!o.searchMethod) {
72
- h.value = !0;
73
- try {
74
- const t = await o.searchMethod(e);
75
- a("success", t);
76
- } catch (t) {
77
- a("error", t);
78
- } finally {
79
- h.value = !1;
80
- }
81
- }
82
- }
83
- function N(e) {
84
- const t = S(e);
85
- t.code !== s(o.modelValue) && a("update:modelValue", t.code), b(t);
86
- }
87
- function O() {
88
- a("clear");
89
- }
90
- function T(e) {
91
- a("enter", e);
92
- }
93
- function w(e) {
94
- if (a("select", e), !o.searchOnSelect) return;
95
- const t = S(e.value, e);
96
- t.code !== s(o.modelValue) && a("update:modelValue", t.code), b(t);
97
- }
98
- function F(e) {
99
- a("error", e);
100
- }
101
- function R() {
102
- var e, t;
103
- (t = (e = l.value) == null ? void 0 : e.focus) == null || t.call(e);
104
- }
105
- function L() {
106
- var e, t;
107
- (t = (e = l.value) == null ? void 0 : e.blur) == null || t.call(e);
108
- }
109
- function P() {
110
- var e, t;
111
- (t = (e = l.value) == null ? void 0 : e.select) == null || t.call(e);
112
- }
113
- function A() {
114
- var e, t;
115
- (t = (e = l.value) == null ? void 0 : e.clear) == null || t.call(e);
116
- }
117
- return z({
118
- focus: R,
119
- blur: L,
120
- select: P,
121
- clear: A,
122
- extractQuoteOrderCode: y,
123
- normalizeQuoteOrderCode: v
124
- }), (e, t) => (c(), i("div", _, [
125
- r(e.$slots, "label", {}, () => [
126
- e.label || e.description ? (c(), i("div", x, [
127
- e.label ? (c(), i("div", ee, p(e.label), 1)) : f("", !0),
128
- e.description ? (c(), i("div", te, p(e.description), 1)) : f("", !0)
129
- ])) : f("", !0)
130
- ], !0),
131
- D(X, J({
132
- ref_key: "searchRef",
133
- ref: l
134
- }, Z(Q), {
135
- "model-value": e.modelValue,
136
- loading: q.value,
137
- disabled: e.disabled,
138
- placeholder: e.placeholder,
139
- "remove-space": !0,
140
- "trim-mode": e.trimMode,
141
- "button-text": e.buttonText,
142
- suggestions: e.suggestions,
143
- "fetch-suggestions": e.fetchSuggestions,
144
- "fetch-suggestions-method": e.fetchSuggestionsMethod,
145
- debounce: e.debounce,
146
- "min-length": e.minLength,
147
- "search-on-select": !1,
148
- "onUpdate:modelValue": E,
149
- onSearch: N,
150
- onClear: O,
151
- onEnter: T,
152
- onSelect: w,
153
- onError: F
154
- }), j({ _: 2 }, [
155
- e.$slots.prefix ? {
156
- name: "prefix",
157
- fn: d(() => [
158
- r(e.$slots, "prefix", {}, void 0, !0)
159
- ]),
160
- key: "0"
161
- } : void 0,
162
- e.$slots.suffix ? {
163
- name: "suffix",
164
- fn: d(() => [
165
- r(e.$slots, "suffix", {}, void 0, !0)
166
- ]),
167
- key: "1"
168
- } : void 0,
169
- e.$slots.item ? {
170
- name: "item",
171
- fn: d((n) => [
172
- r(e.$slots, "item", G(H(n)), void 0, !0)
173
- ]),
174
- key: "2"
175
- } : void 0,
176
- e.$slots.empty ? {
177
- name: "empty",
178
- fn: d(() => [
179
- r(e.$slots, "empty", {}, void 0, !0)
180
- ]),
181
- key: "3"
182
- } : void 0,
183
- e.$slots.loading ? {
184
- name: "loading",
185
- fn: d(() => [
186
- r(e.$slots, "loading", {}, void 0, !0)
187
- ]),
188
- key: "4"
189
- } : void 0
190
- ]), 1040, ["model-value", "loading", "disabled", "placeholder", "trim-mode", "button-text", "suggestions", "fetch-suggestions", "fetch-suggestions-method", "debounce", "min-length"]),
191
- e.showStatus && m.value ? r(e.$slots, "status", {
192
- key: 0,
193
- status: e.status,
194
- statusText: m.value
195
- }, () => [
196
- K("div", {
197
- class: W(["qy-record-quote-search__status", `is-${e.status}`])
198
- }, p(m.value), 3)
199
- ], !0) : f("", !0)
200
- ]));
201
- }
202
- }), le = /* @__PURE__ */ Y(oe, [["__scopeId", "data-v-3a314f64"]]);
203
- export {
204
- le as Q
205
- };
@@ -1,88 +0,0 @@
1
- import { defineComponent as y, ref as b, watch as v, createElementBlock as o, openBlock as s, normalizeClass as a, createElementVNode as d, withDirectives as _, renderSlot as i, createCommentVNode as n, toDisplayString as r, withModifiers as h, vShow as g } from "vue";
2
- import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
3
- const C = { class: "qy-form-section__heading" }, q = {
4
- key: 0,
5
- class: "qy-form-section__title"
6
- }, $ = {
7
- key: 0,
8
- class: "qy-form-section__description"
9
- }, E = { class: "qy-form-section__actions" }, w = /* @__PURE__ */ y({
10
- name: "QyFormSection",
11
- __name: "index",
12
- props: {
13
- title: { default: "" },
14
- description: { default: "" },
15
- tip: { default: "" },
16
- tipType: { default: "info" },
17
- collapsible: { type: Boolean, default: !1 },
18
- defaultExpanded: { type: Boolean, default: !0 },
19
- bordered: { type: Boolean, default: !0 },
20
- background: { default: "white" },
21
- bodyClass: { default: "" },
22
- headerClass: { default: "" }
23
- },
24
- emits: ["toggle"],
25
- setup(p, { emit: u }) {
26
- const l = p, f = u, t = b(l.defaultExpanded);
27
- v(
28
- () => l.defaultExpanded,
29
- (e) => {
30
- t.value = e;
31
- }
32
- );
33
- function c() {
34
- l.collapsible && (t.value = !t.value, f("toggle", t.value));
35
- }
36
- function m() {
37
- l.collapsible && c();
38
- }
39
- return (e, B) => (s(), o("section", {
40
- class: a(["qy-form-section", [
41
- `is-bg-${e.background}`,
42
- {
43
- "is-bordered": e.bordered,
44
- "is-collapsible": e.collapsible
45
- }
46
- ]])
47
- }, [
48
- d("header", {
49
- class: a(["qy-form-section__header", e.headerClass]),
50
- onClick: m
51
- }, [
52
- d("div", C, [
53
- i(e.$slots, "title", {}, () => [
54
- e.title ? (s(), o("div", q, r(e.title), 1)) : n("", !0)
55
- ], !0),
56
- i(e.$slots, "description", {}, () => [
57
- e.description ? (s(), o("div", $, r(e.description), 1)) : n("", !0)
58
- ], !0)
59
- ]),
60
- d("div", E, [
61
- i(e.$slots, "actions", {}, void 0, !0),
62
- e.collapsible ? (s(), o("button", {
63
- key: 0,
64
- type: "button",
65
- class: "qy-form-section__toggle",
66
- onClick: h(c, ["stop"])
67
- }, r(t.value ? "收起" : "展开"), 1)) : n("", !0)
68
- ])
69
- ], 2),
70
- _(d("div", {
71
- class: a(["qy-form-section__body", e.bodyClass])
72
- }, [
73
- i(e.$slots, "tip", {}, () => [
74
- e.tip ? (s(), o("div", {
75
- key: 0,
76
- class: a(["qy-form-section__tip", `is-${e.tipType}`])
77
- }, r(e.tip), 3)) : n("", !0)
78
- ], !0),
79
- i(e.$slots, "default", {}, void 0, !0)
80
- ], 2), [
81
- [g, t.value]
82
- ])
83
- ], 2));
84
- }
85
- }), D = /* @__PURE__ */ k(w, [["__scopeId", "data-v-8149aa01"]]);
86
- export {
87
- D as Q
88
- };