@mixd-id/web-scaffold 0.1.230406156 → 0.1.230406158

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@mixd-id/web-scaffold",
3
3
  "private": false,
4
- "version": "0.1.230406156",
4
+ "version": "0.1.230406158",
5
5
  "scripts": {
6
6
  "dev": "vite serve",
7
7
  "build": "vite build",
@@ -12,6 +12,8 @@
12
12
  <div v-for="color in colors">
13
13
  <div v-if="mode === 'class'" :class="`${$style.circle} bg-${color}`"
14
14
  @click="select(`${color}`)"></div>
15
+ <div v-else :class="`${$style.circle}`" :style="{ backgroundColor: color }"
16
+ @click="select(`${color}`)"></div>
15
17
  </div>
16
18
  </div>
17
19
  <div class="grid grid-cols-2 gap-4">
@@ -345,8 +345,6 @@ export default{
345
345
  break
346
346
  }
347
347
 
348
- itemsPerPage = 300
349
-
350
348
  this.socketEmit2(this.src, { columns:this.config.columns, preset:this.preset, itemsPerPage })
351
349
  .then((res) => {
352
350
  Object.assign(this.$data, res)
@@ -220,20 +220,6 @@ let ListView = {
220
220
 
221
221
  async _load(params){
222
222
 
223
- /*const listAcl = socket.auth.user.getAclv('customer', 'list')
224
- if(listAcl === false){
225
- throw new Error('Insufficient privilege')
226
- }
227
- else if(Array.isArray(listAcl.filters) && listAcl.filters.includes('user-customers')){
228
- where = {
229
- ...where,
230
- referralType: {
231
- [Op.in]: [ "App\\Models\\User", "user" ]
232
- },
233
- referralId: socket.auth.userId
234
- }
235
- }*/
236
-
237
223
  const { afterItem, itemsPerPage = this.itemsPerPage ?? 24 } = params
238
224
 
239
225
  const { preset = {} } = params