classcard-ui 0.2.661 → 0.2.663

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "classcard-ui",
3
- "version": "0.2.661",
3
+ "version": "0.2.663",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -4,7 +4,7 @@
4
4
  <div
5
5
  v-for="(item, index) in items"
6
6
  class="relative pb-4 first:rounded-t-md last:rounded-b-md"
7
- v-bind:key="item.label"
7
+ v-bind:key="item[labelName]"
8
8
  :class="customClasses ? classes(item, index) : ''"
9
9
  >
10
10
  <div class="flex items-start">
@@ -29,7 +29,7 @@
29
29
  : ''
30
30
  "
31
31
  >
32
- {{ item.label }}
32
+ {{ item[labelName] }}
33
33
  </span>
34
34
  <span
35
35
  class="block text-sm"
@@ -71,6 +71,10 @@ export default {
71
71
  type: String,
72
72
  required: true,
73
73
  },
74
+ labelName:{
75
+ type:String,
76
+ default:'label'
77
+ }
74
78
  },
75
79
  data() {
76
80
  return {
@@ -24,12 +24,12 @@
24
24
  :disabled="disabled"
25
25
  class="block w-full rounded-md text-gray-900 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 disabled:opacity-50 sm:text-sm"
26
26
  ></textarea>
27
- <div
27
+ <!-- <div
28
28
  v-if="!isValidate"
29
29
  class="pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3 text-red-600"
30
30
  >
31
31
  <c-icon name="exclamation-circle" type="solid" class="h-5 w-5"></c-icon>
32
- </div>
32
+ </div> -->
33
33
  </div>
34
34
  <p v-if="!isValidate" class="mt-2 text-sm text-red-600">
35
35
  {{ errorMessage }}
@@ -40,10 +40,10 @@
40
40
  </div>
41
41
  </template>
42
42
  <script>
43
- import CIcon from "../CIcon/CIcon.vue";
43
+ // import CIcon from "../CIcon/CIcon.vue";
44
44
  export default {
45
45
  name: "CTextarea",
46
- components: { CIcon },
46
+ // components: { CIcon },
47
47
  props: {
48
48
  label: {
49
49
  type: String,
@@ -20,12 +20,12 @@ export const Default = Template.bind({});
20
20
  Default.args = {
21
21
  items: [
22
22
  {
23
- label: "Public access",
23
+ text: "Public access",
24
24
  description: "This project would be available to anyone who has the link",
25
25
  value: "value1",
26
26
  },
27
27
  {
28
- label: "Private to Project Members",
28
+ text: "Private to Project Members",
29
29
  description: "Only members of this project would be able to access",
30
30
  value: "value2",
31
31
  },