unika-components 1.0.291 → 1.0.293

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.
@@ -15,7 +15,7 @@ declare const _default: import("vue").DefineComponent<{
15
15
  modelRef: {
16
16
  name: string;
17
17
  phoneNumber: string;
18
- attendanceNumber: number;
18
+ attendanceNumber: null;
19
19
  attendanceTime: never[];
20
20
  };
21
21
  resetFields: (newValues?: import("ant-design-vue/es/form/useForm").Props | undefined) => void;
@@ -11,25 +11,6 @@ button.uni-text-component {
11
11
  box-sizing: border-box;
12
12
  white-space: pre-wrap;
13
13
  }
14
-
15
-
16
- .uni-calendar-component {
17
-
18
- }
19
- .slot-number {
20
- position: absolute;
21
- bottom: 2px;
22
- left: 7px;
23
- font-size: 12px;
24
- color: #666
25
- }
26
-
27
- .uni-image-component {
28
- max-width: 100%;
29
- }
30
- .uni-image-mask-wrapper {
31
- display: inline-block;
32
- }
33
14
 
34
15
  .slide-guide {
35
16
  position: absolute;
@@ -114,10 +95,24 @@ body, html {
114
95
  .edit-wrapper .uni-lotties-component, .edit-wrapper .uni-like-component, .edit-wrapper .uni-background-component, .edit-wrapper .uni-svg-component, .edit-wrapper .uni-register-form-component{
115
96
  position: static !important;
116
97
  }
98
+
99
+ .uni-image-component {
100
+ max-width: 100%;
101
+ }
102
+ .uni-image-mask-wrapper {
103
+ display: inline-block;
104
+ }
117
105
 
118
- .effect {
119
- width: 100%;
120
- height: 100%;
106
+
107
+ .uni-calendar-component {
108
+
109
+ }
110
+ .slot-number {
111
+ position: absolute;
112
+ bottom: 2px;
113
+ left: 7px;
114
+ font-size: 12px;
115
+ color: #666
121
116
  }
122
117
 
123
118
  .uni-video-component {
@@ -176,6 +171,11 @@ body, html {
176
171
  vertical-align: top;
177
172
  }
178
173
 
174
+ .effect {
175
+ width: 100%;
176
+ height: 100%;
177
+ }
178
+
179
179
  .like-button {
180
180
  display: flex;
181
181
  flex-direction: column;
@@ -198,6 +198,11 @@ body, html {
198
198
  color: #333;
199
199
  }
200
200
 
201
+ .uni-lotties-component {
202
+ width: 100%;
203
+ height: 100%;
204
+ }
205
+
201
206
  .uni-build-up-component {
202
207
  }
203
208
 
@@ -205,11 +210,6 @@ body, html {
205
210
  display: inline-block;
206
211
  }
207
212
 
208
- .uni-lotties-component {
209
- width: 100%;
210
- height: 100%;
211
- }
212
-
213
213
  .swiper-warp {
214
214
  width: 100%;
215
215
  height: 100%;
@@ -54032,7 +54032,7 @@ var script$6 = defineComponent({
54032
54032
  const modelRef = reactive({
54033
54033
  name: '',
54034
54034
  phoneNumber: '',
54035
- attendanceNumber: 1,
54035
+ attendanceNumber: null,
54036
54036
  attendanceTime: []
54037
54037
  });
54038
54038
  const rulesRef = reactive({
@@ -54137,51 +54137,57 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
54137
54137
  layout: "vertical"
54138
54138
  }, {
54139
54139
  default: withCtx(() => [
54140
- createVNode(_component_a_form_item, mergeProps({ label: "姓名" }, _ctx.validateInfos.name), {
54140
+ createCommentVNode(" <a-form-item label=\"姓名\" v-bind=\"validateInfos.name\">"),
54141
+ createVNode(_component_a_form_item, mergeProps(_ctx.validateInfos.name, { style: {"margin-bottom":"10px"} }), {
54141
54142
  default: withCtx(() => [
54142
54143
  createVNode(_component_a_input, {
54143
54144
  value: _ctx.modelRef.name,
54144
54145
  "onUpdate:value": _cache[0] || (_cache[0] = $event => ((_ctx.modelRef.name) = $event)),
54145
- placeholder: "please input name",
54146
+ placeholder: "ชื่อ",
54146
54147
  onBlur: _cache[1] || (_cache[1] = $event => (_ctx.validate('name', { trigger: 'blur' }).catch(() => {}))),
54147
54148
  style: {"min-width":"100%"}
54148
54149
  }, null, 8 /* PROPS */, ["value"])
54149
54150
  ]),
54150
54151
  _: 1 /* STABLE */
54151
54152
  }, 16 /* FULL_PROPS */),
54152
- createVNode(_component_a_form_item, mergeProps({ label: "出席人数" }, _ctx.validateInfos.attendanceNumber, { rules: [{ type: 'number', min: 0, max: 99 }] }), {
54153
+ createCommentVNode(" label=\"出席人数\""),
54154
+ createVNode(_component_a_form_item, mergeProps(_ctx.validateInfos.attendanceNumber, {
54155
+ rules: [{ type: 'number', min: 0, max: 99 }],
54156
+ style: {"margin-bottom":"10px"}
54157
+ }), {
54153
54158
  default: withCtx(() => [
54154
54159
  createVNode(_component_a_input_number, {
54160
+ placeholder: "attendanceNumber",
54155
54161
  value: _ctx.modelRef.attendanceNumber,
54156
54162
  "onUpdate:value": _cache[2] || (_cache[2] = $event => ((_ctx.modelRef.attendanceNumber) = $event))
54157
54163
  }, null, 8 /* PROPS */, ["value"])
54158
54164
  ]),
54159
54165
  _: 1 /* STABLE */
54160
54166
  }, 16 /* FULL_PROPS */),
54167
+ createCommentVNode(" label=\"出席时间\" "),
54161
54168
  (_ctx.attendanceTimeList && _ctx.attendanceTimeList.length>0)
54162
- ? (openBlock(), createBlock(_component_a_form_item, mergeProps({
54163
- key: 0,
54164
- label: "出席时间"
54165
- }, _ctx.validateInfos.attendanceTime), {
54169
+ ? (openBlock(), createBlock(_component_a_form_item, mergeProps({ key: 0 }, _ctx.validateInfos.attendanceTime, { style: {"margin-bottom":"10px"} }), {
54166
54170
  default: withCtx(() => [
54167
54171
  createVNode(_component_a_select, {
54168
54172
  value: _ctx.modelRef.attendanceTime,
54169
54173
  "onUpdate:value": _cache[3] || (_cache[3] = $event => ((_ctx.modelRef.attendanceTime) = $event)),
54170
54174
  options: _ctx.attendanceTimeList.map(item => ({ value: item, text: item })),
54171
54175
  mode: "tags",
54172
- placeholder: "please select attendance time"
54176
+ placeholder: "จำนวนผู้ร่วมงาน"
54173
54177
  }, null, 8 /* PROPS */, ["value", "options"])
54174
54178
  ]),
54175
54179
  _: 1 /* STABLE */
54176
54180
  }, 16 /* FULL_PROPS */))
54177
54181
  : createCommentVNode("v-if", true),
54182
+ createCommentVNode(" label=\"电话号码\""),
54178
54183
  (_ctx.isPhoneNumber)
54179
- ? (openBlock(), createBlock(_component_a_form_item, mergeProps({
54180
- key: 1,
54181
- label: "电话号码"
54182
- }, _ctx.validateInfos.phoneNumber, { placeholder: "please input phone number" }), {
54184
+ ? (openBlock(), createBlock(_component_a_form_item, mergeProps({ key: 1 }, _ctx.validateInfos.phoneNumber, {
54185
+ placeholder: "please input phone number",
54186
+ style: {"margin-bottom":"10px"}
54187
+ }), {
54183
54188
  default: withCtx(() => [
54184
54189
  createVNode(_component_a_input, {
54190
+ placeholder: "isPhoneNumber",
54185
54191
  value: _ctx.modelRef.phoneNumber,
54186
54192
  "onUpdate:value": _cache[4] || (_cache[4] = $event => ((_ctx.modelRef.phoneNumber) = $event))
54187
54193
  }, null, 8 /* PROPS */, ["value"])
@@ -54189,17 +54195,14 @@ function render$6(_ctx, _cache, $props, $setup, $data, $options) {
54189
54195
  _: 1 /* STABLE */
54190
54196
  }, 16 /* FULL_PROPS */))
54191
54197
  : createCommentVNode("v-if", true),
54192
- createVNode(_component_a_form_item, {
54193
- "wrapper-col": { span: 24 },
54194
- style: {'margin-top': '15px'}
54195
- }, {
54198
+ createVNode(_component_a_form_item, { "wrapper-col": { span: 24 } }, {
54196
54199
  default: withCtx(() => [
54197
54200
  createVNode(_component_a_button, {
54198
54201
  style: normalizeStyle$1({ backgroundColor: _ctx.buttonBackgroundColor, color: _ctx.buttonFontColor, width: '100%' }),
54199
54202
  onClick: withModifiers(_ctx.onSubmit, ["prevent"])
54200
54203
  }, {
54201
54204
  default: withCtx(() => [
54202
- createTextVNode("提交")
54205
+ createTextVNode("ส่ง")
54203
54206
  ]),
54204
54207
  _: 1 /* STABLE */
54205
54208
  }, 8 /* PROPS */, ["style", "onClick"])
@@ -75994,6 +75997,7 @@ var script = defineComponent({
75994
75997
  if (svgElement) {
75995
75998
  svgElement.setAttribute('width', width);
75996
75999
  svgElement.setAttribute('height', height);
76000
+ svgElement.setAttribute('preserveAspectRatio', 'none'); // 添加preserveAspectRatio属性
75997
76001
  }
75998
76002
  return new XMLSerializer().serializeToString(svgDoc);
75999
76003
  };
@@ -54039,7 +54039,7 @@ summary tabindex target title type usemap value width wmode wrap`;
54039
54039
  const modelRef = vue.reactive({
54040
54040
  name: '',
54041
54041
  phoneNumber: '',
54042
- attendanceNumber: 1,
54042
+ attendanceNumber: null,
54043
54043
  attendanceTime: []
54044
54044
  });
54045
54045
  const rulesRef = vue.reactive({
@@ -54144,51 +54144,57 @@ summary tabindex target title type usemap value width wmode wrap`;
54144
54144
  layout: "vertical"
54145
54145
  }, {
54146
54146
  default: vue.withCtx(() => [
54147
- vue.createVNode(_component_a_form_item, vue.mergeProps({ label: "姓名" }, _ctx.validateInfos.name), {
54147
+ vue.createCommentVNode(" <a-form-item label=\"姓名\" v-bind=\"validateInfos.name\">"),
54148
+ vue.createVNode(_component_a_form_item, vue.mergeProps(_ctx.validateInfos.name, { style: {"margin-bottom":"10px"} }), {
54148
54149
  default: vue.withCtx(() => [
54149
54150
  vue.createVNode(_component_a_input, {
54150
54151
  value: _ctx.modelRef.name,
54151
54152
  "onUpdate:value": _cache[0] || (_cache[0] = $event => ((_ctx.modelRef.name) = $event)),
54152
- placeholder: "please input name",
54153
+ placeholder: "ชื่อ",
54153
54154
  onBlur: _cache[1] || (_cache[1] = $event => (_ctx.validate('name', { trigger: 'blur' }).catch(() => {}))),
54154
54155
  style: {"min-width":"100%"}
54155
54156
  }, null, 8 /* PROPS */, ["value"])
54156
54157
  ]),
54157
54158
  _: 1 /* STABLE */
54158
54159
  }, 16 /* FULL_PROPS */),
54159
- vue.createVNode(_component_a_form_item, vue.mergeProps({ label: "出席人数" }, _ctx.validateInfos.attendanceNumber, { rules: [{ type: 'number', min: 0, max: 99 }] }), {
54160
+ vue.createCommentVNode(" label=\"出席人数\""),
54161
+ vue.createVNode(_component_a_form_item, vue.mergeProps(_ctx.validateInfos.attendanceNumber, {
54162
+ rules: [{ type: 'number', min: 0, max: 99 }],
54163
+ style: {"margin-bottom":"10px"}
54164
+ }), {
54160
54165
  default: vue.withCtx(() => [
54161
54166
  vue.createVNode(_component_a_input_number, {
54167
+ placeholder: "attendanceNumber",
54162
54168
  value: _ctx.modelRef.attendanceNumber,
54163
54169
  "onUpdate:value": _cache[2] || (_cache[2] = $event => ((_ctx.modelRef.attendanceNumber) = $event))
54164
54170
  }, null, 8 /* PROPS */, ["value"])
54165
54171
  ]),
54166
54172
  _: 1 /* STABLE */
54167
54173
  }, 16 /* FULL_PROPS */),
54174
+ vue.createCommentVNode(" label=\"出席时间\" "),
54168
54175
  (_ctx.attendanceTimeList && _ctx.attendanceTimeList.length>0)
54169
- ? (vue.openBlock(), vue.createBlock(_component_a_form_item, vue.mergeProps({
54170
- key: 0,
54171
- label: "出席时间"
54172
- }, _ctx.validateInfos.attendanceTime), {
54176
+ ? (vue.openBlock(), vue.createBlock(_component_a_form_item, vue.mergeProps({ key: 0 }, _ctx.validateInfos.attendanceTime, { style: {"margin-bottom":"10px"} }), {
54173
54177
  default: vue.withCtx(() => [
54174
54178
  vue.createVNode(_component_a_select, {
54175
54179
  value: _ctx.modelRef.attendanceTime,
54176
54180
  "onUpdate:value": _cache[3] || (_cache[3] = $event => ((_ctx.modelRef.attendanceTime) = $event)),
54177
54181
  options: _ctx.attendanceTimeList.map(item => ({ value: item, text: item })),
54178
54182
  mode: "tags",
54179
- placeholder: "please select attendance time"
54183
+ placeholder: "จำนวนผู้ร่วมงาน"
54180
54184
  }, null, 8 /* PROPS */, ["value", "options"])
54181
54185
  ]),
54182
54186
  _: 1 /* STABLE */
54183
54187
  }, 16 /* FULL_PROPS */))
54184
54188
  : vue.createCommentVNode("v-if", true),
54189
+ vue.createCommentVNode(" label=\"电话号码\""),
54185
54190
  (_ctx.isPhoneNumber)
54186
- ? (vue.openBlock(), vue.createBlock(_component_a_form_item, vue.mergeProps({
54187
- key: 1,
54188
- label: "电话号码"
54189
- }, _ctx.validateInfos.phoneNumber, { placeholder: "please input phone number" }), {
54191
+ ? (vue.openBlock(), vue.createBlock(_component_a_form_item, vue.mergeProps({ key: 1 }, _ctx.validateInfos.phoneNumber, {
54192
+ placeholder: "please input phone number",
54193
+ style: {"margin-bottom":"10px"}
54194
+ }), {
54190
54195
  default: vue.withCtx(() => [
54191
54196
  vue.createVNode(_component_a_input, {
54197
+ placeholder: "isPhoneNumber",
54192
54198
  value: _ctx.modelRef.phoneNumber,
54193
54199
  "onUpdate:value": _cache[4] || (_cache[4] = $event => ((_ctx.modelRef.phoneNumber) = $event))
54194
54200
  }, null, 8 /* PROPS */, ["value"])
@@ -54196,17 +54202,14 @@ summary tabindex target title type usemap value width wmode wrap`;
54196
54202
  _: 1 /* STABLE */
54197
54203
  }, 16 /* FULL_PROPS */))
54198
54204
  : vue.createCommentVNode("v-if", true),
54199
- vue.createVNode(_component_a_form_item, {
54200
- "wrapper-col": { span: 24 },
54201
- style: {'margin-top': '15px'}
54202
- }, {
54205
+ vue.createVNode(_component_a_form_item, { "wrapper-col": { span: 24 } }, {
54203
54206
  default: vue.withCtx(() => [
54204
54207
  vue.createVNode(_component_a_button, {
54205
54208
  style: vue.normalizeStyle({ backgroundColor: _ctx.buttonBackgroundColor, color: _ctx.buttonFontColor, width: '100%' }),
54206
54209
  onClick: vue.withModifiers(_ctx.onSubmit, ["prevent"])
54207
54210
  }, {
54208
54211
  default: vue.withCtx(() => [
54209
- vue.createTextVNode("提交")
54212
+ vue.createTextVNode("ส่ง")
54210
54213
  ]),
54211
54214
  _: 1 /* STABLE */
54212
54215
  }, 8 /* PROPS */, ["style", "onClick"])
@@ -76001,6 +76004,7 @@ summary tabindex target title type usemap value width wmode wrap`;
76001
76004
  if (svgElement) {
76002
76005
  svgElement.setAttribute('width', width);
76003
76006
  svgElement.setAttribute('height', height);
76007
+ svgElement.setAttribute('preserveAspectRatio', 'none'); // 添加preserveAspectRatio属性
76004
76008
  }
76005
76009
  return new XMLSerializer().serializeToString(svgDoc);
76006
76010
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unika-components",
3
- "version": "1.0.291",
3
+ "version": "1.0.293",
4
4
  "private": false,
5
5
  "main": "dist/unika-components.umd.js",
6
6
  "module": "dist/unika-components.esm.js",