@tplc/business 0.7.82 → 0.7.83

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/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.7.83](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.82...v0.7.83) (2026-01-20)
6
+
5
7
  ### [0.7.82](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.81...v0.7.82) (2026-01-20)
6
8
 
7
9
 
@@ -11,6 +11,8 @@
11
11
  @open="emits('open')"
12
12
  @cancel="emits('cancel')"
13
13
  :initFun="beforeOpen"
14
+ :confirmText="confirmText"
15
+ @change="emits('change', $event)"
14
16
  >
15
17
  <template #header>
16
18
  <slot name="header" />
@@ -36,7 +38,7 @@ defineOptions({
36
38
  },
37
39
  })
38
40
  const holidayInfo = ref<Record<string, LcbHistoryResult>>({})
39
- const emits = defineEmits(['open', 'cancel', 'confirm'])
41
+ const emits = defineEmits(['open', 'cancel', 'confirm', 'change'])
40
42
  const props = defineProps({
41
43
  customClass: {
42
44
  type: String,
@@ -70,6 +72,10 @@ const props = defineProps({
70
72
  type: Number,
71
73
  default: undefined,
72
74
  },
75
+ confirmText: {
76
+ type: String,
77
+ default: '确认',
78
+ },
73
79
  })
74
80
  const model = defineModel<number[]>()
75
81
  const value = ref(model.value || props.defaultValue)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.7.82",
3
+ "version": "0.7.83",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -61,6 +61,10 @@ declare const __VLS_component: import('vue').DefineComponent<
61
61
  type: NumberConstructor
62
62
  default: undefined
63
63
  }
64
+ confirmText: {
65
+ type: StringConstructor
66
+ default: string
67
+ }
64
68
  modelValue: {
65
69
  type: import('vue').PropType<number[]>
66
70
  }
@@ -74,6 +78,7 @@ declare const __VLS_component: import('vue').DefineComponent<
74
78
  {
75
79
  'update:modelValue': (modelValue: number[]) => void
76
80
  confirm: (...args: any[]) => void
81
+ change: (...args: any[]) => void
77
82
  cancel: (...args: any[]) => void
78
83
  open: (...args: any[]) => void
79
84
  },
@@ -138,12 +143,17 @@ declare const __VLS_component: import('vue').DefineComponent<
138
143
  type: NumberConstructor
139
144
  default: undefined
140
145
  }
146
+ confirmText: {
147
+ type: StringConstructor
148
+ default: string
149
+ }
141
150
  modelValue: {
142
151
  type: import('vue').PropType<number[]>
143
152
  }
144
153
  }>
145
154
  > & {
146
155
  'onUpdate:modelValue'?: ((modelValue: number[]) => any) | undefined
156
+ onChange?: ((...args: any[]) => any) | undefined
147
157
  onConfirm?: ((...args: any[]) => any) | undefined
148
158
  onCancel?: ((...args: any[]) => any) | undefined
149
159
  onOpen?: ((...args: any[]) => any) | undefined
@@ -155,6 +165,7 @@ declare const __VLS_component: import('vue').DefineComponent<
155
165
  maxDate: number
156
166
  defaultValue: number[]
157
167
  defaultDays: number
168
+ confirmText: string
158
169
  },
159
170
  {}
160
171
  >