x-star-design 0.0.46 → 0.0.47
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/dist/feedback/index.d.ts +33 -0
- package/dist/feedback/index.js +198 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/locales/en_US.d.ts +10 -0
- package/dist/locales/en_US.js +10 -0
- package/dist/locales/index.d.ts +21 -1
- package/dist/locales/zh_CN.d.ts +10 -0
- package/dist/locales/zh_CN.js +10 -0
- package/dist/styles/index.css +67 -0
- package/package.json +1 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type feedbackItem = {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
};
|
|
6
|
+
interface FeedbackProps {
|
|
7
|
+
/**
|
|
8
|
+
* @description Radio.Group 的选项
|
|
9
|
+
*/
|
|
10
|
+
feedbackList?: feedbackItem[];
|
|
11
|
+
/**
|
|
12
|
+
* @description 选中的颜色
|
|
13
|
+
*/
|
|
14
|
+
activeColor: string;
|
|
15
|
+
/**
|
|
16
|
+
* @description 提交的回调
|
|
17
|
+
*/
|
|
18
|
+
onSubmit?: (value: any) => void;
|
|
19
|
+
/**
|
|
20
|
+
* @description 好评、差评的Form.Item name
|
|
21
|
+
*/
|
|
22
|
+
feedbackKey: string;
|
|
23
|
+
/**
|
|
24
|
+
* @description 问题类型的Form.Item name
|
|
25
|
+
*/
|
|
26
|
+
feedbackTypeKey: string;
|
|
27
|
+
/**
|
|
28
|
+
* @description 问题描述TextArea的Form.Item name
|
|
29
|
+
*/
|
|
30
|
+
feedbackTextAreaKey: string;
|
|
31
|
+
}
|
|
32
|
+
declare const Feedback: React.FC<FeedbackProps>;
|
|
33
|
+
export default Feedback;
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
|
+
import { CoffeeOutlined, DislikeFilled, DislikeOutlined, LikeFilled, LikeOutlined } from '@ant-design/icons';
|
|
4
|
+
import { Button, Checkbox, Col, Form, Input, Popover, Radio, Row, Space, Typography } from 'antd';
|
|
5
|
+
import classNames from 'classnames';
|
|
6
|
+
import React, { useRef, useState } from 'react';
|
|
7
|
+
import ConfigProviderWrapper from "../config-provider-wrapper";
|
|
8
|
+
import { useLocale } from "../locales";
|
|
9
|
+
import { prefix } from "../utils/global";
|
|
10
|
+
var Text = Typography.Text;
|
|
11
|
+
var TextArea = Input.TextArea;
|
|
12
|
+
var Feedback = function Feedback(_ref) {
|
|
13
|
+
var feedbackList = _ref.feedbackList,
|
|
14
|
+
activeColor = _ref.activeColor,
|
|
15
|
+
onSubmit = _ref.onSubmit,
|
|
16
|
+
feedbackKey = _ref.feedbackKey,
|
|
17
|
+
feedbackTypeKey = _ref.feedbackTypeKey,
|
|
18
|
+
feedbackTextAreaKey = _ref.feedbackTextAreaKey;
|
|
19
|
+
var _Form$useForm = Form.useForm(),
|
|
20
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
21
|
+
form = _Form$useForm2[0];
|
|
22
|
+
var _useState = useState(),
|
|
23
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
24
|
+
choiceType = _useState2[0],
|
|
25
|
+
setChoiceType = _useState2[1];
|
|
26
|
+
var _useState3 = useState(false),
|
|
27
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
28
|
+
showSubmitContent = _useState4[0],
|
|
29
|
+
setShowSubmitContent = _useState4[1];
|
|
30
|
+
var _useLocale = useLocale('Feedback'),
|
|
31
|
+
t = _useLocale.format;
|
|
32
|
+
var mainContainer = useRef(null);
|
|
33
|
+
var submittedContent = function submittedContent() {
|
|
34
|
+
return /*#__PURE__*/React.createElement(Space, {
|
|
35
|
+
direction: "vertical",
|
|
36
|
+
className: classNames("".concat(prefix, "-feedbackSpace"), _defineProperty({}, "".concat(prefix, "-feedbackHidden"), !showSubmitContent)),
|
|
37
|
+
style: {
|
|
38
|
+
width: '100%'
|
|
39
|
+
}
|
|
40
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
41
|
+
className: classNames("".concat(prefix, "-feedbackIcon"))
|
|
42
|
+
}, /*#__PURE__*/React.createElement(CoffeeOutlined, null)), /*#__PURE__*/React.createElement("div", null, t('FEEDBACK_RESPONSE')));
|
|
43
|
+
};
|
|
44
|
+
var submitFormContent = function submitFormContent() {
|
|
45
|
+
return /*#__PURE__*/React.createElement(Form, {
|
|
46
|
+
form: form,
|
|
47
|
+
onFinish: function onFinish(val) {
|
|
48
|
+
onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit(val);
|
|
49
|
+
setShowSubmitContent(true);
|
|
50
|
+
},
|
|
51
|
+
className: classNames("".concat(prefix, "-feedbackForm"), _defineProperty({}, "".concat(prefix, "-feedbackFormHidden"), showSubmitContent))
|
|
52
|
+
}, /*#__PURE__*/React.createElement(Space, {
|
|
53
|
+
className: classNames(_defineProperty({}, "".concat(prefix, "-feedbackHidden"), showSubmitContent)),
|
|
54
|
+
direction: "vertical",
|
|
55
|
+
size: 0,
|
|
56
|
+
style: {
|
|
57
|
+
width: '100%'
|
|
58
|
+
}
|
|
59
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Form.Item, {
|
|
60
|
+
name: feedbackKey,
|
|
61
|
+
rules: [{
|
|
62
|
+
required: true,
|
|
63
|
+
message: t('PLEASE_SELECT_FEEDBACK_TYPE')
|
|
64
|
+
}]
|
|
65
|
+
}, /*#__PURE__*/React.createElement(Radio.Group, {
|
|
66
|
+
className: classNames("".concat(prefix, "-feedbackRadioGroup")),
|
|
67
|
+
style: {
|
|
68
|
+
padding: '20px 0 10px 0'
|
|
69
|
+
}
|
|
70
|
+
}, /*#__PURE__*/React.createElement(Radio, {
|
|
71
|
+
value: 1,
|
|
72
|
+
"data-testid": "feedbackKey-testId",
|
|
73
|
+
onClick: function onClick() {
|
|
74
|
+
setChoiceType(1);
|
|
75
|
+
},
|
|
76
|
+
style: {
|
|
77
|
+
color: choiceType === 1 ? activeColor : '#d9d9d9',
|
|
78
|
+
transition: 'color 0.3s ease-in-out',
|
|
79
|
+
fontSize: '36px'
|
|
80
|
+
}
|
|
81
|
+
}, /*#__PURE__*/React.createElement(LikeFilled, null)), /*#__PURE__*/React.createElement(Radio, {
|
|
82
|
+
value: 0,
|
|
83
|
+
"data-testid": "feedbackKey-testId-dislike",
|
|
84
|
+
style: {
|
|
85
|
+
color: choiceType === 0 ? activeColor : '#d9d9d9',
|
|
86
|
+
transition: 'color 0.3s ease-in-out',
|
|
87
|
+
fontSize: '36px'
|
|
88
|
+
},
|
|
89
|
+
onClick: function onClick() {
|
|
90
|
+
setChoiceType(0);
|
|
91
|
+
}
|
|
92
|
+
}, /*#__PURE__*/React.createElement(DislikeFilled, null))))), /*#__PURE__*/React.createElement("div", {
|
|
93
|
+
style: {
|
|
94
|
+
marginBottom: 10
|
|
95
|
+
}
|
|
96
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
97
|
+
type: "secondary",
|
|
98
|
+
style: {
|
|
99
|
+
marginBottom: '24px'
|
|
100
|
+
}
|
|
101
|
+
}, t('FEEDBACK_TYPE'))), /*#__PURE__*/React.createElement(Form.Item, {
|
|
102
|
+
name: feedbackTypeKey,
|
|
103
|
+
rules: [{
|
|
104
|
+
required: true,
|
|
105
|
+
message: t('PLEASE_SELECT_FEEDBACK_TYPE')
|
|
106
|
+
}]
|
|
107
|
+
}, /*#__PURE__*/React.createElement(Checkbox.Group, {
|
|
108
|
+
style: {
|
|
109
|
+
width: '100%'
|
|
110
|
+
},
|
|
111
|
+
"data-testid": "feedbackTypeKey-testId"
|
|
112
|
+
}, /*#__PURE__*/React.createElement(Row, {
|
|
113
|
+
gutter: [4, 4],
|
|
114
|
+
style: {
|
|
115
|
+
width: '100%'
|
|
116
|
+
}
|
|
117
|
+
}, feedbackList === null || feedbackList === void 0 ? void 0 : feedbackList.map(function (item) {
|
|
118
|
+
return /*#__PURE__*/React.createElement(Col, {
|
|
119
|
+
span: 8,
|
|
120
|
+
key: item.value
|
|
121
|
+
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
122
|
+
value: item.value
|
|
123
|
+
}, item.label));
|
|
124
|
+
})))), /*#__PURE__*/React.createElement(Form.Item, {
|
|
125
|
+
name: feedbackTextAreaKey,
|
|
126
|
+
rules: [{
|
|
127
|
+
required: true,
|
|
128
|
+
message: t('PLEASE_SELECT_FEEDBACK_TYPE')
|
|
129
|
+
}]
|
|
130
|
+
}, /*#__PURE__*/React.createElement(TextArea, {
|
|
131
|
+
"data-testid": "feedbackTextAreaKey-testId",
|
|
132
|
+
placeholder: "\u8BF7\u8BE6\u7EC6\u63CF\u8FF0\u4F60\u7684\u53CD\u9988\uFF0C\u6211\u4EEC\u4F1A\u5C3D\u5FEB\u5904\u7406",
|
|
133
|
+
className: "".concat(prefix, "-feedbackTextArea")
|
|
134
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
135
|
+
style: {
|
|
136
|
+
marginBottom: 0
|
|
137
|
+
}
|
|
138
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
139
|
+
type: "primary",
|
|
140
|
+
className: classNames("".concat(prefix, "-feedbackButton")),
|
|
141
|
+
htmlType: "submit"
|
|
142
|
+
}, t('SUBMIT')))));
|
|
143
|
+
};
|
|
144
|
+
var content = /*#__PURE__*/React.createElement("div", {
|
|
145
|
+
className: classNames("".concat(prefix, "-feedbackContent"))
|
|
146
|
+
}, submittedContent(), submitFormContent());
|
|
147
|
+
return /*#__PURE__*/React.createElement(ConfigProviderWrapper, null, /*#__PURE__*/React.createElement("div", {
|
|
148
|
+
ref: mainContainer,
|
|
149
|
+
className: classNames("".concat(prefix, "-feedbackContainer"))
|
|
150
|
+
}, /*#__PURE__*/React.createElement(Popover, {
|
|
151
|
+
content: content,
|
|
152
|
+
title: t('FEEDBACK_ON_THE_PROBLEM'),
|
|
153
|
+
placement: "bottom",
|
|
154
|
+
getPopupContainer: function getPopupContainer() {
|
|
155
|
+
return mainContainer.current;
|
|
156
|
+
},
|
|
157
|
+
trigger: ['click'],
|
|
158
|
+
onOpenChange: function onOpenChange(open) {
|
|
159
|
+
if (open) {
|
|
160
|
+
setShowSubmitContent(false);
|
|
161
|
+
} else {
|
|
162
|
+
form.resetFields();
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
overlayInnerStyle: {
|
|
166
|
+
width: '400px',
|
|
167
|
+
minHeight: '320px',
|
|
168
|
+
padding: 20
|
|
169
|
+
}
|
|
170
|
+
}, /*#__PURE__*/React.createElement(Space, {
|
|
171
|
+
size: 0
|
|
172
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
173
|
+
type: "link",
|
|
174
|
+
"data-testid": "feedback-button-like",
|
|
175
|
+
icon: choiceType === 1 ? /*#__PURE__*/React.createElement(LikeFilled, {
|
|
176
|
+
style: {
|
|
177
|
+
color: activeColor
|
|
178
|
+
}
|
|
179
|
+
}) : /*#__PURE__*/React.createElement(LikeOutlined, null),
|
|
180
|
+
onClick: function onClick() {
|
|
181
|
+
setChoiceType(1);
|
|
182
|
+
form.setFieldsValue(_defineProperty({}, "".concat(feedbackKey), 1));
|
|
183
|
+
}
|
|
184
|
+
}, t('ACCLAIM')), /*#__PURE__*/React.createElement(Button, {
|
|
185
|
+
type: "link",
|
|
186
|
+
"data-testid": "feedback-button-dislike",
|
|
187
|
+
icon: choiceType === 0 ? /*#__PURE__*/React.createElement(DislikeFilled, {
|
|
188
|
+
style: {
|
|
189
|
+
color: activeColor
|
|
190
|
+
}
|
|
191
|
+
}) : /*#__PURE__*/React.createElement(DislikeOutlined, null),
|
|
192
|
+
onClick: function onClick() {
|
|
193
|
+
setChoiceType(0);
|
|
194
|
+
form.setFieldsValue(_defineProperty({}, "".concat(feedbackKey), 0));
|
|
195
|
+
}
|
|
196
|
+
}, t('BAD_REVIEW'))))));
|
|
197
|
+
};
|
|
198
|
+
export default Feedback;
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export { default as ContactButton } from './contact-button';
|
|
|
8
8
|
export { default as DraggableLayout } from './draggable-layout';
|
|
9
9
|
export { default as ErrorBoundary } from './error-boundary';
|
|
10
10
|
export type { FallbackProps } from './error-boundary';
|
|
11
|
+
export { default as Feedback } from './feedback';
|
|
11
12
|
export { default as InputNumbers } from './input-numbers';
|
|
12
13
|
export { default as LoadingMask } from './loading-mask';
|
|
13
14
|
export { LocaleProvider } from './locales';
|
package/dist/index.js
CHANGED
|
@@ -6,6 +6,7 @@ export { LangId, Language, Theme } from "./code-mirror-wrapper/define";
|
|
|
6
6
|
export { default as ContactButton } from "./contact-button";
|
|
7
7
|
export { default as DraggableLayout } from "./draggable-layout";
|
|
8
8
|
export { default as ErrorBoundary } from "./error-boundary";
|
|
9
|
+
export { default as Feedback } from "./feedback";
|
|
9
10
|
export { default as InputNumbers } from "./input-numbers";
|
|
10
11
|
export { default as LoadingMask } from "./loading-mask";
|
|
11
12
|
export { LocaleProvider } from "./locales";
|
package/dist/locales/en_US.d.ts
CHANGED
|
@@ -62,5 +62,15 @@ declare const _default: {
|
|
|
62
62
|
readonly RETRY: "Retry";
|
|
63
63
|
readonly TECHNICAL_DEPARTMENT_CONTACT_EMAIL: "Technical department contact email: ";
|
|
64
64
|
};
|
|
65
|
+
readonly Feedback: {
|
|
66
|
+
readonly FEEDBACK_RESPONSE: "Thank you for your valuable comments, we will continue to improve~";
|
|
67
|
+
readonly FEEDBACK_TYPE: "Feedback Type";
|
|
68
|
+
readonly SUBMIT: "Submit";
|
|
69
|
+
readonly FEEDBACK_ON_THE_PROBLEM: "Your feedback on this problem";
|
|
70
|
+
readonly ACCLAIM: "Acclaim";
|
|
71
|
+
readonly BAD_REVIEW: "Bad Review";
|
|
72
|
+
readonly PLEASE_SELECT_FEEDBACK_TYPE: "Please fill in the feedback review";
|
|
73
|
+
readonly FEEDBACK_TEXTAREA_PLACEHOLDER: "Please describe your feedback in detail and we will deal with it as soon as possible";
|
|
74
|
+
};
|
|
65
75
|
};
|
|
66
76
|
export default _default;
|
package/dist/locales/en_US.js
CHANGED
|
@@ -61,5 +61,15 @@ export default {
|
|
|
61
61
|
RETURN_TO_HOME: 'Return to home',
|
|
62
62
|
RETRY: 'Retry',
|
|
63
63
|
TECHNICAL_DEPARTMENT_CONTACT_EMAIL: 'Technical department contact email: '
|
|
64
|
+
},
|
|
65
|
+
Feedback: {
|
|
66
|
+
FEEDBACK_RESPONSE: 'Thank you for your valuable comments, we will continue to improve~',
|
|
67
|
+
FEEDBACK_TYPE: 'Feedback Type',
|
|
68
|
+
SUBMIT: 'Submit',
|
|
69
|
+
FEEDBACK_ON_THE_PROBLEM: 'Your feedback on this problem',
|
|
70
|
+
ACCLAIM: 'Acclaim',
|
|
71
|
+
BAD_REVIEW: 'Bad Review',
|
|
72
|
+
PLEASE_SELECT_FEEDBACK_TYPE: 'Please fill in the feedback review',
|
|
73
|
+
FEEDBACK_TEXTAREA_PLACEHOLDER: 'Please describe your feedback in detail and we will deal with it as soon as possible'
|
|
64
74
|
}
|
|
65
75
|
};
|
package/dist/locales/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ interface LocaleProviderProps {
|
|
|
7
7
|
}
|
|
8
8
|
export declare const LocaleProvider: ({ children, locale, }: LocaleProviderProps) => React.JSX.Element;
|
|
9
9
|
type MessageMap = typeof zh_CN | typeof en_US;
|
|
10
|
-
export declare const useLocale: <T extends "VisualDataConfig" | "TranslateButton" | "CodeDetailModal" | "ContactButton" | "ErrorPage">(slice: T) => {
|
|
10
|
+
export declare const useLocale: <T extends "VisualDataConfig" | "TranslateButton" | "CodeDetailModal" | "ContactButton" | "ErrorPage" | "Feedback">(slice: T) => {
|
|
11
11
|
locale: string;
|
|
12
12
|
format: <U extends keyof MessageMap[T]>(key: U) => ({
|
|
13
13
|
readonly VisualDataConfig: {
|
|
@@ -73,6 +73,16 @@ export declare const useLocale: <T extends "VisualDataConfig" | "TranslateButton
|
|
|
73
73
|
readonly RETRY: "重试";
|
|
74
74
|
readonly TECHNICAL_DEPARTMENT_CONTACT_EMAIL: "技术部联系邮箱:";
|
|
75
75
|
};
|
|
76
|
+
readonly Feedback: {
|
|
77
|
+
readonly FEEDBACK_RESPONSE: "感谢您宝贵的意见,我们会持续改进~";
|
|
78
|
+
readonly FEEDBACK_TYPE: "反馈类型";
|
|
79
|
+
readonly SUBMIT: "提交";
|
|
80
|
+
readonly FEEDBACK_ON_THE_PROBLEM: "您对本题目的反馈";
|
|
81
|
+
readonly ACCLAIM: "好评";
|
|
82
|
+
readonly BAD_REVIEW: "差评";
|
|
83
|
+
readonly PLEASE_SELECT_FEEDBACK_TYPE: "请填写反馈评价";
|
|
84
|
+
readonly FEEDBACK_TEXTAREA_PLACEHOLDER: "请详细描述你的反馈,我们会尽快处理";
|
|
85
|
+
};
|
|
76
86
|
} | {
|
|
77
87
|
readonly VisualDataConfig: {
|
|
78
88
|
readonly Time_MS: "Time Limit(MS)";
|
|
@@ -137,6 +147,16 @@ export declare const useLocale: <T extends "VisualDataConfig" | "TranslateButton
|
|
|
137
147
|
readonly RETRY: "Retry";
|
|
138
148
|
readonly TECHNICAL_DEPARTMENT_CONTACT_EMAIL: "Technical department contact email: ";
|
|
139
149
|
};
|
|
150
|
+
readonly Feedback: {
|
|
151
|
+
readonly FEEDBACK_RESPONSE: "Thank you for your valuable comments, we will continue to improve~";
|
|
152
|
+
readonly FEEDBACK_TYPE: "Feedback Type";
|
|
153
|
+
readonly SUBMIT: "Submit";
|
|
154
|
+
readonly FEEDBACK_ON_THE_PROBLEM: "Your feedback on this problem";
|
|
155
|
+
readonly ACCLAIM: "Acclaim";
|
|
156
|
+
readonly BAD_REVIEW: "Bad Review";
|
|
157
|
+
readonly PLEASE_SELECT_FEEDBACK_TYPE: "Please fill in the feedback review";
|
|
158
|
+
readonly FEEDBACK_TEXTAREA_PLACEHOLDER: "Please describe your feedback in detail and we will deal with it as soon as possible";
|
|
159
|
+
};
|
|
140
160
|
})[T][U];
|
|
141
161
|
};
|
|
142
162
|
export {};
|
package/dist/locales/zh_CN.d.ts
CHANGED
|
@@ -62,5 +62,15 @@ declare const _default: {
|
|
|
62
62
|
readonly RETRY: "重试";
|
|
63
63
|
readonly TECHNICAL_DEPARTMENT_CONTACT_EMAIL: "技术部联系邮箱:";
|
|
64
64
|
};
|
|
65
|
+
readonly Feedback: {
|
|
66
|
+
readonly FEEDBACK_RESPONSE: "感谢您宝贵的意见,我们会持续改进~";
|
|
67
|
+
readonly FEEDBACK_TYPE: "反馈类型";
|
|
68
|
+
readonly SUBMIT: "提交";
|
|
69
|
+
readonly FEEDBACK_ON_THE_PROBLEM: "您对本题目的反馈";
|
|
70
|
+
readonly ACCLAIM: "好评";
|
|
71
|
+
readonly BAD_REVIEW: "差评";
|
|
72
|
+
readonly PLEASE_SELECT_FEEDBACK_TYPE: "请填写反馈评价";
|
|
73
|
+
readonly FEEDBACK_TEXTAREA_PLACEHOLDER: "请详细描述你的反馈,我们会尽快处理";
|
|
74
|
+
};
|
|
65
75
|
};
|
|
66
76
|
export default _default;
|
package/dist/locales/zh_CN.js
CHANGED
|
@@ -61,5 +61,15 @@ export default {
|
|
|
61
61
|
RETURN_TO_HOME: '回到首页',
|
|
62
62
|
RETRY: '重试',
|
|
63
63
|
TECHNICAL_DEPARTMENT_CONTACT_EMAIL: '技术部联系邮箱:'
|
|
64
|
+
},
|
|
65
|
+
Feedback: {
|
|
66
|
+
FEEDBACK_RESPONSE: '感谢您宝贵的意见,我们会持续改进~',
|
|
67
|
+
FEEDBACK_TYPE: '反馈类型',
|
|
68
|
+
SUBMIT: '提交',
|
|
69
|
+
FEEDBACK_ON_THE_PROBLEM: '您对本题目的反馈',
|
|
70
|
+
ACCLAIM: '好评',
|
|
71
|
+
BAD_REVIEW: '差评',
|
|
72
|
+
PLEASE_SELECT_FEEDBACK_TYPE: '请填写反馈评价',
|
|
73
|
+
FEEDBACK_TEXTAREA_PLACEHOLDER: '请详细描述你的反馈,我们会尽快处理'
|
|
64
74
|
}
|
|
65
75
|
};
|
package/dist/styles/index.css
CHANGED
|
@@ -168,6 +168,73 @@
|
|
|
168
168
|
color: #40a9ff;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
+
.x-star-design-feedbackContainer .x-star-design-feedbackContent {
|
|
172
|
+
display: flex;
|
|
173
|
+
align-items: center;
|
|
174
|
+
height: 100%;
|
|
175
|
+
width: 100%;
|
|
176
|
+
}
|
|
177
|
+
.x-star-design-feedbackContainer .x-star-design-feedbackContent .x-star-design-feedbackRow {
|
|
178
|
+
width: 100%;
|
|
179
|
+
margin-bottom: 20px;
|
|
180
|
+
}
|
|
181
|
+
.x-star-design-feedbackContainer .x-star-design-feedbackContent .x-star-design-feedbackRow .x-star-design-feedbackCol {
|
|
182
|
+
font-size: 36px;
|
|
183
|
+
text-align: center;
|
|
184
|
+
}
|
|
185
|
+
.x-star-design-feedbackContainer .x-star-design-feedbackContent .x-star-design-feedbackButton {
|
|
186
|
+
width: 100%;
|
|
187
|
+
}
|
|
188
|
+
.x-star-design-feedbackContainer .x-star-design-feedbackContent .x-star-design-feedbackTextArea {
|
|
189
|
+
height: 100px;
|
|
190
|
+
}
|
|
191
|
+
.x-star-design-feedbackContainer .x-star-design-feedbackContent :global(.x-star-design-form-item) {
|
|
192
|
+
margin-bottom: 10px;
|
|
193
|
+
}
|
|
194
|
+
.x-star-design-feedbackContainer .x-star-design-feedbackContent .x-star-design-feedbackHidden {
|
|
195
|
+
display: none;
|
|
196
|
+
}
|
|
197
|
+
.x-star-design-feedbackContainer .x-star-design-feedbackContent .x-star-design-feedbackRadioGroup {
|
|
198
|
+
width: 100%;
|
|
199
|
+
display: flex;
|
|
200
|
+
justify-content: space-evenly;
|
|
201
|
+
}
|
|
202
|
+
.x-star-design-feedbackContainer .x-star-design-feedbackContent .x-star-design-feedbackRadioGroup .x-star-design-radio {
|
|
203
|
+
display: none !important;
|
|
204
|
+
}
|
|
205
|
+
.x-star-design-feedbackContainer .x-star-design-feedbackContent .x-star-design-form-item {
|
|
206
|
+
margin-bottom: 10px;
|
|
207
|
+
}
|
|
208
|
+
.x-star-design-feedbackContainer .x-star-design-popover-title {
|
|
209
|
+
margin-bottom: 0 !important;
|
|
210
|
+
}
|
|
211
|
+
.x-star-design-feedbackContainer .x-star-design-popover-inner {
|
|
212
|
+
display: flex;
|
|
213
|
+
flex-direction: column;
|
|
214
|
+
}
|
|
215
|
+
.x-star-design-feedbackContainer .x-star-design-popover-inner .x-star-design-popover-inner-content {
|
|
216
|
+
height: 200px;
|
|
217
|
+
display: flex;
|
|
218
|
+
align-items: center;
|
|
219
|
+
flex: 1;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.x-star-design-feedbackSpace {
|
|
223
|
+
width: 100%;
|
|
224
|
+
text-align: center;
|
|
225
|
+
}
|
|
226
|
+
.x-star-design-feedbackSpace .x-star-design-feedbackIcon {
|
|
227
|
+
font-size: 45px;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.x-star-design-feedbackForm {
|
|
231
|
+
width: 100%;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.x-star-design-feedbackFormHidden {
|
|
235
|
+
width: unset;
|
|
236
|
+
}
|
|
237
|
+
|
|
171
238
|
.x-star-design-loadingMask {
|
|
172
239
|
position: absolute;
|
|
173
240
|
inset: 0;
|