pages refactoring, fix bug (#7066)
* pages refactoring * pages: fix if block * fix code format * remove passing of the page parameter * remove comment * fix indent * replace with unref * fix conditions of isVarBlock() * Update src/client/scripts/hpml/block.ts use includes() instead of find() Co-authored-by: syuilo <Syuilotan@yahoo.co.jp> Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
This commit is contained in:
		@@ -61,8 +61,10 @@ import { faPencilAlt, faPlug } from '@fortawesome/free-solid-svg-icons';
 | 
			
		||||
import { v4 as uuid } from 'uuid';
 | 
			
		||||
import XContainer from './page-editor.container.vue';
 | 
			
		||||
import MkTextarea from '@/components/ui/textarea.vue';
 | 
			
		||||
import { isLiteralBlock, funcDefs, blockDefs } from '@/scripts/hpml/index';
 | 
			
		||||
import { blockDefs } from '@/scripts/hpml/index';
 | 
			
		||||
import * as os from '@/os';
 | 
			
		||||
import { isLiteralValue } from '@/scripts/hpml/expr';
 | 
			
		||||
import { funcDefs } from '@/scripts/hpml/lib';
 | 
			
		||||
 | 
			
		||||
export default defineComponent({
 | 
			
		||||
	components: {
 | 
			
		||||
@@ -166,7 +168,7 @@ export default defineComponent({
 | 
			
		||||
				return;
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			if (isLiteralBlock(this.value)) return;
 | 
			
		||||
			if (isLiteralValue(this.value)) return;
 | 
			
		||||
 | 
			
		||||
			const empties = [];
 | 
			
		||||
			for (let i = 0; i < funcDefs[this.value.type].in.length; i++) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user