tang-ui-x 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types/index.uts +43 -0
package/package.json
CHANGED
package/types/index.uts
CHANGED
|
@@ -105,3 +105,46 @@ export type ThemeConfig = {
|
|
|
105
105
|
*/
|
|
106
106
|
fontSize: string
|
|
107
107
|
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* 模态框选项类型
|
|
111
|
+
*/
|
|
112
|
+
export type ModalOptions = {
|
|
113
|
+
/**
|
|
114
|
+
* 标题
|
|
115
|
+
*/
|
|
116
|
+
title?: string
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* 内容
|
|
120
|
+
*/
|
|
121
|
+
content: string
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* 是否显示取消按钮
|
|
125
|
+
* @default true
|
|
126
|
+
*/
|
|
127
|
+
showCancel?: boolean
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* 取消按钮文字
|
|
131
|
+
* @default '取消'
|
|
132
|
+
*/
|
|
133
|
+
cancelText?: string
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* 确认按钮文字
|
|
137
|
+
* @default '确定'
|
|
138
|
+
*/
|
|
139
|
+
confirmText?: string
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* 确认回调
|
|
143
|
+
*/
|
|
144
|
+
onConfirm?: () => void
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* 取消回调
|
|
148
|
+
*/
|
|
149
|
+
onCancel?: () => void
|
|
150
|
+
}
|